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D,WAAaA,GACjB2D,GAAIzD,qBAAuBA,EAC3ByD,GAAIxD,+BAAiCA,EACrCwD,GAAIvD,aAAeA,EACnBuD,GAAItD,WAAaA,EACjBsD,GAAIrD,WAAaA,GACjBqD,GAAIpD,oBAAsBA,EAC1BoD,GAAInD,iBAAmBA,GACvBmD,GAAIlD,sBAAwBA,EAC5BkD,GAAIjD,kBAAoB5sF,OAAO4kF,eAC/BiL,GAAIhD,eAAiBA,GACrBgD,GAAI1D,iBAAmB,WAAc,MAAQ,CACzCmJ,cAAeA,GACfD,qBAAsBA,GACtBgH,WAAYA,GACZtlG,UAAWA,GACXg3F,MAAOA,GACP92F,OAAQA,GACRk2F,SAAUA,EACVC,UAAWA,EACXC,mBAAoBA,EACpBN,uBAAwBA,EACxBC,0BAA2BA,EAC1B,CACR,GAwZD,IA8PWU,GACH5J,GAtDJuY,GAAa7Y,EAAcA,EAAcA,EAAcA,EAAcA,EAAcA,EAAcA,EAAcA,EAAc,GAzM7F,CAChC,QACA,kBACA,eACA,qBACA,WACA,cACA,OACA,SACA,UACA,iBACA,SACA,mBACA,oBACA,iBACA,YACA,QACA,QACA,cACA,aACA,WACA,OACA,UACA,YACA,WACA,YACA,WACA,OACA,iBACA,UACA,QACA,QACA,QACA,UACA,WACA,oBACA,QACA,UACA,UACA,WACA,QACA,OACA,YACA,aACA,iBACA,qBACA,YACA,aACA,aACA,YACA,WACA,YACA,UACA,aACA,oBACA,QACA,OACA,UACA,gBACA,cACA,eACA,eACA,oBACA,uBACA,4BACA,mBACA,sBACA,yBACA,cACA,WACA,cACA,YACA,WACA,aACA,QACA,SACA,SACA,SACA,UACA,SACA,kBACA,cACA,OACA,OACA,UACA,SACA,UACA,aACA,eACA,cACA,YACA,aACA,WACA,mBACA,gBACA,UACA,UAyGgK,GAH9I,CAAC,uBAAwB,mBAAoB,8BAGyH,GAFvK,CAAC,eAAgB,sBAE6K,GAD5L,CAAC,WACoN,GAvGnN,CACrB,qBAAsB,sBAAuB,mBAAoB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4pb,OAEA7uY,uEACA,CAEO,iBACP,oCACA,oCAA+CjvC,MAAOA,KAEtD,cADAqH,iBACA/H,4DAEA,QACA,EACAy+a,uBACA,EAcO,sBACP,2FACA,qGACA,sBAA2C/9a,MAAQA,kEACnD,kDACA,CAEO,gBACP,uBAAkCyiL,WAClC,CA+CO,gBACP,6FACA,CAEO,sBAEP,6CACA,gBAAkC,IAAMl7K,eAA2C,CAA3C,MAA+BjO,IAAYshC,QACnF,gBAAiC,IAAMrzB,gBAA+C,CAA/C,MAAmCjO,IAAYshC,QACtF,gBAA8Br+B,qBAJ9B,gBAA0B,+CAA+DykB,QAAiB,CAI5Eg9Z,uBAC9Bz2a,iCACA,EACA,CA2FO,oBACP,wDAA2EvH,MAAOA,MAClF2kE,kBACAA,4CACAA,cAGA,kDACA,CAEO,cACP,iDACA,CAEO,mBACP,qFACA,kCACA,8HACA,gBAA4B,oBAAsB,0CADlD3kE,oCAAwM,aAAcA,GAEtN,mBAAwBw7C,SAAYx7C,oBAAsB,mCAAqC0uC,qCAA2C,EAAM53B,yBAChJ,mBAA0B,KAC1B,gBAAqBwnC,8EADW/2C,YAA6B,CAA7B,MAAiBjO,IAAY2kb,iBAE7D,gBAA4BC,cAC5B,gBAA2BA,eAC3B,mBAA0Bpna,mDAC1B,CAQO,eACP,qFACA,iCACA,sBAjFO,cACP,iEACA,wBACA,uCACA9U,gBACA,mCACA,CAAmB5H,yBACnB,GAEA,kFACA,CAuEA+jb,UAAyGC,wEAAuF,aAAcp+a,IAC9M,gBAAqBA,2BAA8B,oCACnD,yBAA2C+gB,sCAAsCC,IAAU5mB,kBAAmB,EAAIwgC,IADfqjZ,sCAAwD,EAE3J,CA2EA,mDAyEA","names":["WildcardCustomService","WildcardService","constructor","this","inject","EnvironmentSettings","formatOperation","operation","replace","environmentSettings","apiVisEndpoint","super","t","factory","customServices","customMainServices","provide","useClass","AppInitializerCustomService","CustomInitService","AppInitializerCustomBaseService","initialize","_this","addChat","node","document","createElement","append","type","getElementsByTagName","appendChild","script","defer","src","invalidTimingValue","exp","ɵRuntimeError","ngDevMode","isBrowser","window","isNode","process","toString","call","optimizeGroupPlayer","players","length","NoopAnimationPlayer","ɵAnimationGroupPlayer","normalizeKeyframes$1","driver","normalizer","element","keyframes","preStyles","Map","postStyles","errors","normalizedKeyframes","previousOffset","previousKeyframe","forEach","kf","offset","get","isSameOffset","normalizedKeyframe","val","prop","normalizedProp","normalizedValue","normalizePropertyName","ɵPRE_STYLE","AUTO_STYLE","normalizeStyleValue","set","push","animationFailed","listenOnPlayer","player","eventName","event","callback","onStart","copyAnimationEvent","onDone","onDestroy","e","phaseName","makeAnimationEvent","triggerName","fromState","toState","totalTime","disabled","data","_data","getOrSetDefaultValue","map","key","defaultValue","value","parseTimelineCommand","command","separatorPos","indexOf","substring","slice","_contains","elm1","elm2","_query","selector","multi","_documentElement","getParentElement","parent","parentNode","host","Element","documentElement","contains","Array","from","querySelectorAll","elem","querySelector","_CACHED_BODY","_IS_WEBKIT","containsElement","invokeQuery","NoopAnimationDriver","validateStyleProperty","getBodyNode","body","style","result","containsVendorPrefix","charAt","toUpperCase","matchesElement","_element","_selector","query","computeStyle","animate","duration","delay","easing","previousPlayers","scrubberAccessRequested","ɵfac","ɵprov","i0","AnimationDriver","NOOP","ENTER_CLASSNAME","LEAVE_CLASSNAME","NG_TRIGGER_CLASSNAME","NG_TRIGGER_SELECTOR","NG_ANIMATING_CLASSNAME","NG_ANIMATING_SELECTOR","resolveTimingValue","matches","match","_convertTimeValueToMS","parseFloat","unit","resolveTiming","timings","allowNegativeValues","hasOwnProperty","parseTimeExpression","delayMatch","easingVal","containsErrors","startIndex","negativeStepValue","negativeDelayValue","splice","copyObj","obj","destination","Object","keys","convertToMap","styleMap","copyStyles","styles","backfill","getStyleAttributeString","writeStyleAttribute","styleAttrValue","i","item","getPropertyValue","startsWith","camelCaseToDashCase","setAttribute","setStyles","formerStyles","camelProp","dashCaseToCamelCase","has","eraseStyles","_","normalizeAnimationEntry","steps","isArray","sequence","PARAM_REGEX","RegExp","extractStyleParams","params","exec","lastIndex","interpolateParams","original","str","varName","localVal","invalidParamValue","iteratorToArray","iterator","arr","next","done","DASH_CASE_REGEXP","input","m","toLowerCase","visitDslNode","visitor","context","visitTrigger","visitState","visitTransition","visitSequence","visitGroup","visitAnimate","visitKeyframes","visitStyle","visitReference","visitAnimateChild","visitAnimateRef","visitQuery","visitStagger","invalidNodeType","nodeType","getComputedStyle","parseTransitionExpr","transitionValue","expressions","split","parseInnerTransitionStr","eventStr","parseAnimationAlias","alias","invalidTransitionAlias","invalidExpression","expr","separator","makeLambdaFromStates","TRUE_BOOLEAN_VALUES","Set","FALSE_BOOLEAN_VALUES","lhs","rhs","LHS_MATCH_BOOLEAN","RHS_MATCH_BOOLEAN","lhsMatch","rhsMatch","SELF_TOKEN_REGEX","buildAnimationAst","metadata","warnings","AnimationAstBuilderVisitor","build","_driver","AnimationAstBuilderContext","_resetContextStyleTimingState","currentQuerySelector","collectedStyles","currentTime","queryCount","depCount","states","transitions","name","invalidTrigger","definitions","def","stateDef","n","transition","invalidDefinition","options","styleAst","astParams","containsDynamicStyles","missingSubs","sub","add","size","values","invalidState","metadataName","animation","matchers","normalizeAnimationOptions","s","furthestTime","step","innerAst","Math","max","timingAst","constructTimingAst","makeTimingAst","strValue","some","v","ast","dynamic","currentAnimateTimings","styleMetadata","isEmpty","newStyleData","_styleAst","isEmptyStep","_makeStyleAst","_validateStyleAst","metadataStyles","styleTuple","collectedEasing","styleData","delete","endTime","startTime","tuple","collectedEntry","updateCollectedStyle","invalidParallelAnimation","firstStart","firstEnd","secondStart","secondEnd","validateStyleParams","invalidStyleParams","invalidKeyframes","totalKeyframesWithOffsets","offsets","offsetsOutOfOrder","keyframesOutOfRange","offsetVal","consumeOffset","invalidOffset","keyframeOffsetsOutOfOrder","generatedOffset","keyframesMissingOffsets","limit","animateDuration","durationUpToThisFrame","parentSelector","currentQuery","includeSelf","normalizeSelector","hasAmpersand","find","token","optional","originalSelector","invalidStagger","currentTransition","unsupportedCSSPropertiesFound","normalizeParams","createTimelineInstruction","preStyleProps","postStyleProps","subTimeline","ElementInstructionMap","_map","instructions","existingInstructions","clear","ENTER_TOKEN_REGEX","LEAVE_TOKEN_REGEX","buildAnimationTimelines","rootElement","enterClassName","leaveClassName","startingStyles","finalStyles","subInstructions","AnimationTimelineBuilderVisitor","buildKeyframes","AnimationTimelineContext","currentTimeline","delayNextStep","timelines","filter","timeline","containsAnimation","lastRootTimeline","allowOnlyTimelineStyles","elementInstructions","innerContext","createSubContext","_visitSubInstructions","transformIntoNewTimeline","previousNode","_applyAnimationRefDelays","animationsRefsOptions","animationRefOptions","animationDelay","animationDelayValue","instruction","instructionTimings","appendInstructionToTimeline","updateOptions","subContextCount","ctx","snapshotCurrentStyles","DEFAULT_NOOP_PREVIOUS_NODE","applyStylesToKeyframe","innerTimelines","mergeTimelineCollectedStyles","_visitTiming","incrementTime","hasCurrentStyleProperties","forwardFrame","applyEmptyStep","innerTimeline","forwardTime","elms","currentQueryTotal","sameElementTimeline","currentQueryIndex","parentContext","tl","abs","maxTime","currentStaggerTime","startingTime","_enterClassName","_leaveClassName","initialTimeline","TimelineBuilder","skipIfExists","newOptions","optionsToUpdate","newParams","paramsToUpdate","_copyOptions","oldParams","newTime","target","fork","updatedTimings","builder","SubTimelineBuilder","stretchStartingKeyframe","time","results","elements","invalidQuery","_elementTimelineStylesLookup","_previousKeyframe","_currentKeyframe","_keyframes","_styleSummary","_localTimelineStyles","_pendingStyles","_backFill","_currentEmptyStepKeyframe","_globalTimelineStyles","_loadKeyframe","hasPreStyleStep","_updateStyle","flattenStyles","allStyles","allProperties","getFinalKeyframe","properties","details1","details0","finalKeyframes","keyframe","finalKeyframe","preProps","postProps","kf0","kf1","_stretchStartingKeyframe","newKeyframes","startingGap","newFirstKeyframe","oldFirstKeyframe","roundOffset","oldOffset","decimalPoints","mult","pow","round","AnimationStyleNormalizer","DIMENSIONAL_PROP_SET","WebAnimationsStyleNormalizer","propertyName","userProvidedProperty","normalizedProperty","strVal","trim","valAndSuffixMatch","invalidCssUnitValue","createTransitionInstruction","isRemovalTransition","fromStyles","toStyles","queriedElements","EMPTY_OBJECT","AnimationTransitionFactory","_triggerName","_stateStyles","currentState","nextState","oneOrMoreTransitionsMatch","matchFns","fn","buildStyles","stateName","styler","undefined","currentOptions","nextOptions","skipAstBuild","transitionAnimationParams","currentStateStyles","nextAnimationParams","nextStateStyles","preStyleMap","postStyleMap","isRemoval","animationOptions","applyParamDefaults","elm","queriedElementsList","userParams","defaults","AnimationStateStyles","defaultParams","combinedParams","AnimationTrigger","_normalizer","transitionFactories","balanceProperties","fallbackTransition","createFallbackTransition","containsQueries","matchTransition","f","matchStyles","stateMap","key1","key2","EMPTY_INSTRUCTION_MAP","TimelineAnimationEngine","bodyNode","_animations","_playersById","register","id","registerFailed","_buildPlayer","create","autoStylesMap","inst","missingOrDestroyedAnimation","createAnimationFailed","destroy","_getPlayer","index","missingPlayer","listen","baseEvent","args","play","pause","reset","restart","finish","init","setPosition","QUEUED_CLASSNAME","DISABLED_CLASSNAME","EMPTY_PLAYER_ARRAY","NULL_REMOVAL_STATE","namespaceId","setForRemoval","setForMove","hasAnimation","removedBeforeQueried","NULL_REMOVED_QUERIED_STATE","REMOVAL_FLAG","StateValue","isObj","normalizeTriggerValue","absorbOptions","VOID_VALUE","DEFAULT_STATE_VALUE","AnimationTransitionNamespace","hostElement","_engine","_triggers","_queue","_elementListeners","_hostClassName","addClass","phase","missingTrigger","missingEvent","isTriggerEventValid","unsupportedTriggerEvent","listeners","triggersWithStates","statesByElement","afterFlush","_getTrigger","trigger","unregisteredTrigger","defaultToFallback","TransitionAnimationPlayer","objEquals","a","b","k1","k2","reportError","playersOnElement","playersByElement","queued","isFallbackTransition","totalQueuedPlayers","removeClass","deregister","entry","clearElementCache","elementPlayers","_signalRemovalForInnerTriggers","namespaces","fetchNamespacesByElement","ns","triggerLeaveAnimation","afterFlushAnimationsDone","destroyAfterComplete","triggerStates","previousTriggersValues","state","markElementAsRemoved","processLeaveNode","prepareLeaveAnimationListeners","elementStates","visitedTriggers","listener","removeNode","engine","childElementCount","containsPotentialParentTransition","totalAnimations","currentPlayers","playersByQueriedElement","removalFlag","destroyInnerAnimations","_onRemovalComplete","insertNode","drainQueuedTransitions","microtaskId","destroyed","markedForDestroy","sort","d0","d1","p","elementContainsData","containsData","TransitionAnimationEngine","newHostElements","disabledNodes","_namespaceLookup","_namespaceList","_flushFns","_whenQuietFns","namespacesByHostElement","collectedEnterElements","collectedLeaveElements","onRemovalComplete","queuedPlayers","createNamespace","_balanceNamespaceList","collectEnterElement","namespaceList","found","ancestor","ancestorNs","unshift","registerTrigger","_fetchNamespace","stateValue","isElementNode","insertBefore","details","markElementAsDisabled","isHostElement","hostNS","_buildInstruction","subTimelines","skipBuildAst","containerElement","destroyActiveAnimationsForElement","finishActiveQueriedAnimationOnElement","whenRenderingDone","Promise","resolve","classList","flush","cleanupFns","_flushAnimations","quietFns","triggerTransitionsFailed","skippedPlayers","skippedPlayersMap","queuedInstructions","allPreStyleElements","allPostStyleElements","disabledElementsSet","nodesThatAreDisabled","allTriggerElements","enterNodeMap","buildRootMap","enterNodeMapIds","nodes","root","className","allLeaveNodes","mergedLeaveNodes","leaveNodesWithoutAnimations","leaveNodeMapIds","leaveNodeMap","allPlayers","erroneousTransitions","previousValue","nodeIsOrphaned","stringMap","setVal","transitionFailed","allPreviousPlayersMap","animationElementMap","_beforeAnimationBuild","_getPreviousPlayers","prevPlayer","replaceNodes","replacePostStylesAsPre","postStylesMap","cloakAndComputeStyles","preStylesMap","post","pre","entries","rootPlayers","subPlayers","NO_PARENT_ANIMATION_ELEMENT_DETECTED","overrideTotalTime","parentWithAnimation","parentsToAdd","detectedParent","innerPlayer","_buildAnimation","setRealPlayer","parentPlayers","parentPlayer","playersForElement","syncPlayerEvents","queriedPlayerResults","queriedInnerElements","j","queriedPlayers","activePlayers","removeNodesAfterAnimationDone","isQueriedElement","toStateValue","queriedElementPlayers","isRemovalAnimation","targetNameSpaceId","targetTriggerName","timelineInstruction","realPlayer","getRealPlayer","beforeDestroy","allQueriedPlayers","allConsumedElements","allSubElements","allNewPlayers","flattenGroupPlayers","finalPlayers","_flattenGroupPlayersRecur","wrappedPlayer","deleteOrUnsetInMap","currentValues","_player","_containsRealPlayer","_queuedCallbacks","callbacks","triggerCallback","_queueEvent","hasStarted","getPosition","cloakElement","oldValue","display","valuesMap","elementPropsMap","defaultStyle","cloakVals","failedElements","props","roots","rootMap","nodeSet","localRootMap","getRoot","remove","postEntry","preEntry","AnimationEngine","_triggerCache","_transitionEngine","_timelineEngine","componentId","cacheKey","triggerBuildFailed","buildTrigger","onInsert","onRemove","disableAnimations","disable","property","action","eventPhase","concat","SpecialCasedStyles","_startStyles","_endStyles","_state","initialStyles","initialStylesByElement","_initialStyles","start","WeakMap","filterNonAnimatableStyles","isNonAnimatableStyle","WebAnimationsPlayer","_specialStyles","_onDoneFns","_onStartFns","_onDestroyFns","_initialized","_finished","_started","_destroyed","_originalOnDoneFns","_originalOnStartFns","currentSnapshot","_duration","_delay","_onFinish","_preparePlayerBeforeStart","domPlayer","_triggerWebAnimation","_finalKeyframe","addEventListener","_resetDomPlayerState","_convertKeyframesToObject","kfs","frame","fromEntries","cancel","methods","WebAnimationsDriver","validateAnimatableStyleProperty","playerOptions","fill","previousStyles","previousWebAnimationPlayers","allowPreviousPlayerStylesMerge","normalizeKeyframes","balancePreviousStylesIntoKeyframes","startingKeyframe","missingStyleProps","specialStyles","packageNonAnimatableStyles","startStyles","endStyles","BrowserAnimationBuilder","AnimationBuilder","rootRenderer","doc","_nextAnimationId","_renderer","createRenderer","encapsulation","ViewEncapsulation","issueAnimationCommand","BrowserAnimationFactory","DOCUMENT","AnimationFactory","_id","RendererAnimationPlayer","_command","_listen","renderer","setProperty","DISABLE_ANIMATIONS_FLAG","AnimationRendererFactory","delegate","_zone","_currentId","_microtaskId","_animationCallbacksBuffer","_rendererCache","_cdRecurDepth","promise","removeChild","BaseAnimationRenderer","animationTriggers","AnimationRenderer","begin","_scheduleCountTask","then","scheduleListenerCallback","count","run","end","runOutsideAngular","i1","_onDestroy","destroyNode","namespace","createComment","createText","newChild","refChild","isMove","oldChild","selectRootElement","selectorOrNode","preserveContent","nextSibling","el","removeAttribute","setStyle","flags","removeStyle","setValue","resolveElementFromTarget","parseTriggerCallbackName","dotIndex","SHARED_ANIMATION_PROVIDERS","ɵAnimationStyleNormalizer","useFactory","instantiateDefaultStyleNormalizer","ɵWebAnimationsStyleNormalizer","ɵAnimationEngine","InjectableAnimationEngine","appRef","ngOnDestroy","RendererFactory2","instantiateRendererFactory","zone","deps","ɵDomRendererFactory2","NgZone","BROWSER_ANIMATIONS_PROVIDERS","ɵWebAnimationsDriver","ANIMATION_MODULE_TYPE","useValue","BROWSER_NOOP_ANIMATIONS_PROVIDERS","ɵNoopAnimationDriver","BrowserAnimationsModule","static","config","ngModule","providers","ɵmod","ɵinj","imports","BrowserModule","AppComponent","titleService","settingsService","appContextService","broadcastService","appInitializer","BehaviorSubject","subscribe","getElementsByClassName","appReady$","ready$","_this2","loading$","productName","getContext","setTitle","selectors","mainRoutes","path","canActivate","IdentityGuard","AmsGuard","loadChildren","__webpack_require__","AppModule","outlet","component","ModalRouterInjectorComponent","children","PanelRouterInjectorComponent","redirectTo","LowerCaseUrlSerializer","DefaultUrlSerializer","parse","url","HybridUrlHandlingStrategy","shouldProcessUrl","extract","merge","whole","urlTree","primary","segments","seg","MainModule","envSettings","bootstrap","UrlSerializer","UrlHandlingStrategy","APP_INITIALIZER","AppInitializer","HttpClientModule","PrimaveraServicesModule","ShellModule","RouterModule","enableTracing","fetch","DEPLOY_URL_PROVIDER","response","json","production","enableProdMode","bootstrapModule","__NgCli_bootstrap_1","catch","err","console","error","HandshakeProtocol","writeHandshakeRequest","handshakeRequest","TextMessageFormat","JSON","stringify","parseHandshakeResponse","messageData","remainingData","isArrayBuffer","binaryData","Uint8Array","separatorIndex","Error","responseLength","String","fromCharCode","apply","prototype","byteLength","buffer","textData","messages","Subject","observers","observer","complete","SubjectSubscription","HubConnectionState","Disconnected","Connecting","Connected","Disconnecting","Reconnecting","HubConnection","connection","logger","protocol","reconnectPolicy","_nextKeepAlive","_freezeEventListener","_logger","log","LogLevel","Arg","serverTimeoutInMilliseconds","keepAliveIntervalInMilliseconds","_protocol","_reconnectPolicy","_handshakeProtocol","onreceive","_processIncomingData","onclose","_connectionClosed","_callbacks","_methods","_closedCallbacks","_reconnectingCallbacks","_reconnectedCallbacks","_invocationId","_receivedHandshakeResponse","_connectionState","_connectionStarted","_cachedPingMessage","writeMessage","MessageType","connectionId","baseUrl","_startPromise","_startWithStateTransitions","reject","_startInternal","Platform","_stopDuringStartError","handshakePromise","_handshakeResolver","_handshakeRejecter","transferFormat","version","_sendMessage","_cleanupTimeout","_resetTimeoutPeriod","_resetKeepAliveInterval","_cleanupPingTimer","stop","startPromise","_this3","_stopPromise","_stopInternal","_reconnectDelayHandle","clearTimeout","_completeClose","stream","methodName","streams","streamIds","_replaceStreamingParams","invocationDescriptor","_createStreamInvocation","promiseQueue","subject","cancelCallback","cancelInvocation","_createCancelInvocation","invocationId","_sendWithProtocol","invocationEvent","_launchStreams","message","send","sendPromise","_createInvocation","invoke","on","newMethod","off","method","handlers","removeIdx","onreconnecting","onreconnected","_processHandshakeResponse","parseMessages","_invokeClientMethod","getErrorString","allowReconnect","responseMessage","features","inherentKeepAlive","Date","getTime","_timeoutHandle","setTimeout","serverTimeout","_pingServerHandle","nextPing","_this4","invocationMessage","arguments","_cancelCallbacksWithError","_reconnect","removeEventListener","c","reconnectStartTime","now","previousReconnectAttempts","retryError","nextRetryDelay","_this5","_getNextRetryDelay","previousRetryCount","elapsedMilliseconds","retryReason","nextRetryDelayInMilliseconds","nonblocking","streamId","_createCompletionMessage","_createStreamItemMessage","argument","_isObservable","arg","Invocation","StreamItem","Completion","StreamInvocation","CancelInvocation","Ping","Close","Trace","Debug","Information","Warning","Critical","None","NullLogger","_logLevel","_message","instance","output","RecordSeparator","pop","RecordSeparatorCode","isWebWorker","self","isReactNative","getDataDetail","includeContent","detail","formatArrayBuffer","view","num","substr","ArrayBuffer","sendMessage","_x","transportName","httpClient","accessTokenFactory","content","headers","Authorization","getUserAgentHeader","logMessageContent","responseType","timeout","withCredentials","statusCode","createLogger","ConsoleLogger","_subject","_observer","dispose","minimumLogLevel","_minLevel","out","logLevel","msg","toISOString","warn","info","userAgentHeaderName","constructUserAgent","getOsName","getRuntimeVersion","os","runtime","runtimeVersion","userAgent","majorAndMinor","platform","versions","stack","getGlobalThis","globalThis","global","defaultLocale","defaultOptions","getDefaultOptions","dateLongFormatter","pattern","formatLong","date","width","timeLongFormatter","P","dateTimeFormat","matchResult","datePattern","timePattern","dateTime","longFormatters","getTimezoneOffsetInMilliseconds","utcDate","UTC","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","setUTCFullYear","getUTCISOWeekYear","dirtyDate","requiredArgs","toDate","year","getUTCFullYear","fourthOfJanuaryOfNextYear","setUTCHours","startOfNextYear","startOfUTCISOWeek","fourthOfJanuaryOfThisYear","startOfThisYear","startOfUTCISOWeekYear","fourthOfJanuary","MILLISECONDS_IN_WEEK","getUTCISOWeek","diff","getUTCWeekYear","_ref","_ref2","_ref3","_options$firstWeekCon","_options$locale","_options$locale$optio","_defaultOptions$local","_defaultOptions$local2","firstWeekContainsDate","toInteger","locale","RangeError","firstWeekOfNextYear","startOfUTCWeek","firstWeekOfThisYear","startOfUTCWeekYear","firstWeek","getUTCWeek","protectedDayOfYearTokens","protectedWeekYearTokens","isProtectedDayOfYearToken","isProtectedWeekYearToken","throwProtectedError","format","required","TypeError","roundingMap","ceil","floor","trunc","getRoundingMethod","defaultRoundingMethod","weekStartsOn","day","getUTCDay","setUTCDate","getUTCDate","_options$weekStartsOn","dirtyNumber","NaN","number","Number","isNaN","addDays","dirtyAmount","amount","setDate","addMilliseconds","timestamp","addMonths","dayOfMonth","endOfDesiredMonth","setMonth","daysInMonth","setFullYear","addWeeks","days","addYears","millisecondsInMinute","millisecondsInHour","millisecondsInSecond","differenceInMilliseconds","dateLeft","dateRight","endOfDay","setHours","endOfMonth","month","endOfWeek","getDay","endOfYear","isDate","_typeof","isValid","MILLISECONDS_IN_DAY","addLeadingZeros","targetLength","sign","signedYear","lightFormatters","getUTCMonth","getUTCHours","getUTCMinutes","getUTCSeconds","numberOfDigits","milliseconds","getUTCMilliseconds","formatTimezoneShort","dirtyDelimiter","absOffset","hours","minutes","delimiter","formatTimezoneWithOptionalMinutes","formatTimezone","G","localize","era","y","ordinalNumber","Y","signedWeekYear","weekYear","R","isoWeekYear","u","Q","quarter","q","M","L","w","week","I","isoWeek","d","D","dayOfYear","getUTCDayOfYear","setUTCMonth","startOfYearTimestamp","E","dayOfWeek","localDayOfWeek","isoDayOfWeek","dayPeriodEnumValue","dayPeriod","B","h","H","K","k","S","X","_localize","timezoneOffset","_originalDate","getTimezoneOffset","x","O","z","T","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","dirtyFormatStr","_ref4","_options$locale2","_options$locale2$opti","_ref5","_ref6","_ref7","_options$locale3","_options$locale3$opti","_defaultOptions$local3","_defaultOptions$local4","formatStr","originalDate","subMilliseconds","formatterOptions","firstCharacter","longFormatter","join","cleanEscapedString","formatter","formatters","useAdditionalWeekYearTokens","useAdditionalDayOfYearTokens","matched","isSameDay","dirtyDateLeft","dirtyDateRight","dateLeftStartOfDay","startOfDay","dateRightStartOfDay","buildFormatLongFn","defaultWidth","formats","buildLocalizeFn","dirtyIndex","valuesArray","formattingValues","defaultFormattingWidth","_defaultWidth","_width","argumentCallback","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchedString","parsePatterns","defaultParseWidth","findIndex","test","findKey","valueCallback","rest","object","predicate","array","buildMatchPatternFn","parseResult","parsePattern","full","long","medium","short","code","formatDistance","formatRelative","formatDistanceLocale","lessThanXSeconds","one","other","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","tokenValue","addSuffix","comparison","formatRelativeLocale","lastWeek","yesterday","today","tomorrow","nextWeek","_date","_baseDate","_options","rem100","narrow","abbreviated","wide","am","pm","midnight","noon","morning","afternoon","evening","night","parseInt","any","parseISO","_options$additionalDi","additionalDigits","dateStrings","splitDateString","parseYearResult","parseYear","parseDate","restDateString","parseTime","timezone","parseTimezone","patterns","dateTimeDelimiter","timeZoneDelimiter","dateRegex","timeRegex","timezoneRegex","dateString","timeString","regex","captures","century","isWeekDate","parseDateUnit","validateWeekDate","_year","dayOfISOWeekYear","validateDate","daysInMonths","isLeapYearIndex","validateDayOfYearDate","parseTimeUnit","seconds","validateTime","timezoneString","validateTimezone","_hours","startOfMonth","startOfWeek","startOfYear","cleanDate","argStr","module","exports","equal","source","valueOf","__esModule","digestLength","blockSize","Uint32Array","hashBlocks","pos","len","g","t1","t2","Hash","Int32Array","temp","bufferLength","bytesHashed","finished","clean","update","dataLength","dataPos","left","bitLenHi","bitLenLo","padLength","digest","_saveState","_restoreState","HMAC","inner","outer","pad","istate","ostate","hash","hmac","fillBuffer","counter","default","hkdfSalt","hkdf","salt","okm","hmac_","bufpos","pbkdf2","password","iterations","dkLen","prf","ctr","dk","sha256","define","r","o","l","require","esprima","Token","TokenName","FnExprTokens","Syntax","PropertyKind","Messages","Regex","SyntaxTreeDelegate","strict","lineNumber","lineStart","lookahead","extra","assert","condition","isDecimalDigit","ch","isHexDigit","isOctalDigit","isWhiteSpace","isLineTerminator","isIdentifierStart","NonAsciiIdentifierStart","isIdentifierPart","NonAsciiIdentifierPart","isStrictModeReservedWord","isRestrictedWord","isKeyword","addComment","loc","comment","lastCommentStart","range","comments","attachComment","leadingComments","trailingComments","skipSingleLineComment","line","column","charCodeAt","skipMultiLineComment","throwError","UnexpectedToken","skipComment","scanHexEscape","prefix","getEscapedIdentifier","getIdentifier","scanPunctuator","code2","ch2","ch3","ch4","ch1","tokenize","openParenToken","tokens","openCurlyToken","Punctuator","scanNumericLiteral","scanHexLiteral","NumericLiteral","scanOctalLiteral","octal","scanRegExp","scanRegExpBody","classMarker","terminated","UnterminatedRegExp","literal","scanRegExpFlags","restore","throwErrorTolerant","testRegExp","InvalidRegExp","RegularExpression","collectRegex","advance","EOF","scanIdentifier","Identifier","Keyword","NullLiteral","BooleanLiteral","scanStringLiteral","quote","unescaped","startLineNumber","startLineStart","StringLiteral","advanceSlash","prevToken","checkToken","collectToken","lex","peek","Position","SourceLocation","startLine","startColumn","peekLineTerminator","messageFormat","description","throwUnexpected","UnexpectedEOS","UnexpectedNumber","UnexpectedString","UnexpectedIdentifier","isFutureReservedWord","UnexpectedReserved","StrictReservedWord","expect","expectKeyword","keyword","matchKeyword","consumeSemicolon","isLeftHandSide","MemberExpression","parsePropertyFunction","param","first","previousStrict","startToken","parseFunctionSourceElements","StrictParamName","markEnd","createFunctionExpression","parseObjectPropertyKey","StrictOctalLiteral","createLiteral","createIdentifier","parseObjectProperty","parseAssignmentExpression","createProperty","parseVariableIdentifier","parsePrimaryExpression","parseGroupExpression","parseExpression","parseArrayInitialiser","createArrayExpression","parseObjectInitialiser","kind","Data","Get","StrictDuplicateProperty","AccessorDataProperty","AccessorGetSet","createObjectExpression","parseFunctionExpression","stricted","firstRestricted","tmp","StrictFunctionName","parseParams","createThisExpression","parseArguments","parseNonComputedProperty","isIdentifierName","parseNonComputedMember","parseComputedMember","parseNewExpression","callee","parseLeftHandSideExpression","previousAllowIn","allowIn","createMemberExpression","createNewExpression","parsePostfixExpression","parseLeftHandSideExpressionAllowCall","createCallExpression","StrictLHSPostfix","InvalidLHSInAssignment","createPostfixExpression","parseUnaryExpression","StrictLHSPrefix","createUnaryExpression","operator","StrictDelete","binaryPrecedence","prec","parseConditionalExpression","consequent","alternate","parseBinaryExpression","marker","markers","right","createBinaryExpression","createConditionalExpression","matchAssign","op","StrictLHSAssignment","createAssignmentExpression","createSequenceExpression","parseBlock","block","parseStatementList","statement","list","parseSourceElement","createBlockStatement","parseVariableDeclaration","StrictVarName","createVariableDeclarator","parseVariableDeclarationList","parseForStatement","oldInIteration","parseForVariableDeclaration","declarations","createVariableDeclaration","InvalidLHSInForIn","inIteration","parseStatement","createForStatement","createForInStatement","parseSwitchCase","createSwitchCase","parseTryStatement","finalizer","parseCatchClause","StrictCatchVariable","createCatchClause","NoCatchOrFinally","createTryStatement","labeledBody","parseEmptyStatement","createEmptyStatement","parseExpressionStatement","createExpressionStatement","parseBreakStatement","label","inSwitch","IllegalBreak","createBreakStatement","labelSet","UnknownLabel","parseContinueStatement","IllegalContinue","createContinueStatement","parseDebuggerStatement","createDebuggerStatement","parseDoWhileStatement","createDoWhileStatement","parseFunctionDeclaration","parseIfStatement","createIfStatement","parseReturnStatement","inFunctionBody","IllegalReturn","createReturnStatement","parseSwitchStatement","discriminant","cases","clause","oldInSwitch","defaultFound","createSwitchStatement","MultipleDefaultsInSwitch","parseThrowStatement","NewlineAfterThrow","createThrowStatement","parseVariableStatement","parseWhileStatement","createWhileStatement","parseWithStatement","StrictModeWith","createWithStatement","Redeclaration","createLabeledStatement","sourceElement","oldLabelSet","oldInFunctionBody","sourceElements","expression","Literal","paramSet","StrictParamDupe","createFunctionDeclaration","parseConstLetDeclaration","parseProgram","parseSourceElements","createProgram","filterTokenLocation","AssignmentExpression","ArrayExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExpressionStatement","ForStatement","ForInStatement","FunctionDeclaration","FunctionExpression","IfStatement","LabeledStatement","LogicalExpression","NewExpression","ObjectExpression","Program","Property","ReturnStatement","SequenceExpression","SwitchStatement","SwitchCase","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","processComment","lastChild","bottomRightStack","postProcess","each","generator","raw","accessor","computed","guardedHandlers","tolerant","lexError","program","types","freeze","parser","trace","yy","symbols_","JSON_PATH","DOLLAR","PATH_COMPONENTS","LEADING_CHILD_MEMBER_EXPRESSION","PATH_COMPONENT","MEMBER_COMPONENT","SUBSCRIPT_COMPONENT","CHILD_MEMBER_COMPONENT","DESCENDANT_MEMBER_COMPONENT","DOT","MEMBER_EXPRESSION","DOT_DOT","STAR","IDENTIFIER","SCRIPT_EXPRESSION","INTEGER","END","CHILD_SUBSCRIPT_COMPONENT","DESCENDANT_SUBSCRIPT_COMPONENT","SUBSCRIPT","SUBSCRIPT_EXPRESSION","SUBSCRIPT_EXPRESSION_LIST","SUBSCRIPT_EXPRESSION_LISTABLE","STRING_LITERAL","ARRAY_SLICE","FILTER_EXPRESSION","QQ_STRING","Q_STRING","$accept","$end","terminals_","productions_","performAction","yytext","yyleng","yylineno","yystate","$$","_$","_ast","$0","yield","scope","$","table","defaultActions","parseError","recoverable","vstack","lstack","recovering","TERROR","lexer","setInput","yylloc","yyloc","ranges","getPrototypeOf","symbol","preErrorSymbol","expected","yyval","errStr","showPosition","text","first_line","last_line","first_column","last_column","_nodes","_node","_stash","Parser","_input","_more","_backtrack","conditionStack","unput","lines","oldLines","more","backtrack_lexer","less","pastInput","past","upcomingInput","test_match","indexed_rule","backup","tempMatch","rules","_currentRules","flex","popState","conditions","INITIAL","topState","pushState","stateStackSize","yy_","$avoiding_name_collisions","YY_START","inclusive","main","exit","readFileSync","normalize","argv","_process","fs","identifier","integer","qq_string","q_string","dict","grammar","macros","esc","int","bnf","moduleInclude","actionInclude","aesprim","_evaluate","_uniq","uniq","Handlers","eval_recurse","partial","template","jp","evaluate","is_array","traverser","recurse","ref","passable","descend","is_object","bind","_descend","_traverse","traverse","unique","_parse_nullable_int","sval","_fns","handler","Function","_component","_results","underscore","JSONPath","_is_string","ok","shift","_vivify","paths","partials","_partials","templates","_normalize","_path","gparser","_parseError","isFinite","min","util","pSlice","hasOwn","replacer","isUndefined","isNumber","isFunction","isRegExp","truncate","isString","fail","actual","stackStartFunction","AssertionError","_deepEqual","isBuffer","multiline","ignoreCase","isObject","objEquiv","isNullOrUndefined","isPrimitive","aIsArgs","isArguments","bIsArgs","ka","objectKeys","kb","expectedException","_throws","shouldThrow","generatedMessage","getMessage","captureStackTrace","idx","next_line","inherits","notEqual","deepEqual","notDeepEqual","strictEqual","notStrictEqual","throws","doesNotThrow","ifError","ctor","superCtor","super_","enumerable","writable","configurable","TempCtor","copy","readUInt8","formatRegExp","objects","inspect","isNull","deprecate","noDeprecation","warned","deprecated","throwDeprecation","traceDeprecation","debugEnviron","debugs","opts","seen","stylize","stylizeNoColor","depth","colors","isBoolean","showHidden","_extend","customInspect","stylizeWithColor","formatValue","styleType","recurseTimes","ret","primitive","formatPrimitive","simple","visibleKeys","arrayToHash","getOwnPropertyNames","isError","formatError","base","braces","toUTCString","formatArray","formatProperty","reduceToSingleString","reduce","prev","cur","numLinesEst","desc","getOwnPropertyDescriptor","ar","re","objectToString","debuglog","env","NODE_DEBUG","pid","bold","italic","underline","inverse","white","grey","black","blue","cyan","green","magenta","red","yellow","special","boolean","null","regexp","isSymbol","months","origin","normalizeArray","parts","allowAboveRoot","up","last","xs","res","resolvedPath","resolvedAbsolute","cwd","isAbsolute","trailingSlash","relative","to","fromParts","toParts","samePartsLength","outputParts","sep","dirname","hasRoot","matchedSlash","basename","ext","extname","startDot","startPart","preDotState","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","runClearTimeout","Item","noop","nextTick","title","browser","addListener","once","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","binding","chdir","dir","umask","unparse","generate","vars","FAIL","walk","scopeVars","bodies","oldVars","vals","quasis","tag","quasi","strings","cooked","escodegen","jsonpath","_value","getValue","_subscribe","subscriber","subscription","closed","hasError","thrownError","_throwIfClosed","Observable","lift","observable","observerOrNext","isSubscriber","Subscriber","isObserver","isSubscription","SafeSubscriber","errorContext","_trySubscribe","sink","promiseCtor","getPromiseCtor","unsubscribe","_a","Symbol_observable","pipe","operations","pipeFromArray","toPromise","ReplaySubject","_bufferSize","Infinity","_windowTime","_timestampProvider","dateTimestampProvider","_buffer","_infiniteTimeWindow","isStopped","_trimBuffer","_innerSubscribe","_checkFinalizedStatuses","adjustedBufferSize","ObjectUnsubscribedError","createErrorClass","_super","currentObservers","AnonymousSubject","observed","EMPTY_SUBSCRIPTION","Subscription","arrRemove","asObservable","_b","COMPLETE_NOTIFICATION","createNotification","EMPTY_OBSERVER","handleStoppedNotification","nextNotification","_next","errorNotification","_error","_complete","_bind","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","captureError","reportUnhandledError","notification","onStoppedNotification","timeoutProvider","defaultErrorHandler","UnsubscriptionError","initialTeardown","_parentage","_finalizers","initialFinalizer","execFinalizer","teardown","_hasParent","_addParent","includes","_removeParent","EMPTY","empty","onUnhandledError","useDeprecatedSynchronousErrorHandling","useDeprecatedNextContext","firstValueFrom","hasConfig","EmptyError","ConnectableObservable","subjectFactory","_refCount","_connection","hasLift","getSubject","_teardown","connect","createOperatorSubscriber","refCount","higherOrderRefCount","combineLatest","scheduler","popScheduler","resultSelector","popResultSelector","observables","argsArgArrayOrObject","combineLatestInit","valueTransform","identity","maybeSchedule","active","remainingFirstValues","hasFirstValue","createObject","mapOneOrManyArgs","execute","executeSchedule","concatAll","mergeAll","observableFactory","innerFrom","emptyScheduled","schedule","forkJoin","sources","remainingCompletions","remainingEmissions","sourceIndex","hasValue","subscribeOn","operate","scheduleAsyncIterable","Symbol","asyncIterator","scheduled","isInteropObservable","scheduleObservable","observeOn","isArrayLike","scheduleArray","isPromise","schedulePromise","isAsyncIterable","isIterable","scheduleIterable","Symbol_iterator","return","isReadableStreamLike","scheduleReadableStreamLike","readableStreamLikeToAsyncGenerator","createInvalidObservableTypeError","nodeEventEmitterMethods","eventTargetMethods","jqueryMethods","fromEvent","isEventTarget","isNodeStyleEventEmitter","toCommonHandlerRegistry","isJQueryStyleEventEmitter","mergeMap","subTarget","fromInteropObservable","obs","fromArrayLike","fromPromise","fromAsyncIterable","fromIterable","iterable","fromReadableStreamLike","readableStream","asyncIterable","asyncIterable_1","asyncIterable_1_1","e_1","__awaiter","__asyncValues","e_1_1","interval","period","asyncScheduler","timer","concurrent","popNumber","of","race","argsOrArgArray","raceInit","subscriptions","errorOrErrorFactory","errorFactory","dueTime","intervalOrScheduler","intervalDuration","isScheduler","due","isValidDate","onNext","onComplete","onError","onFinalize","OperatorSubscriber","shouldUnsubscribe","auditTime","audit","durationSelector","lastValue","durationSubscriber","isComplete","endDuration","cleanupDuration","catchError","handledResult","innerSub","syncUnsub","concatMap","project","debounceTime","activeTask","lastTime","emitWhenIdle","targetTime","defaultIfEmpty","delayWhen","delayDurationSelector","subscriptionDelay","take","ignoreElements","mapTo","distinctUntilChanged","comparator","keySelector","defaultCompare","previousKey","currentKey","finalize","hasDefaultValue","throwIfEmpty","ii","mergeInternals","onBeforeNext","expand","innerSubScheduler","additionalFinalizer","checkComplete","outerNext","doInnerSub","innerComplete","innerValue","bufferedValue","pairwise","hasPrev","refCounter","sharedConnection","conn","retry","configOrCount","resetOnSuccess","soFar","subscribeForRetry","resub","notifier","notifierSubscriber","scan","accumulator","seed","scanInternals","hasSeed","emitOnNext","emitBeforeComplete","hasState","share","connector","resetOnError","resetOnComplete","resetOnRefCountZero","wrapperSource","resetConnection","hasCompleted","hasErrored","cancelReset","resetAndUnsubscribe","dest","handleReset","onSubscriber","skip","startWith","switchMap","innerSubscriber","innerIndex","outerIndex","takeUntil","takeWhile","tap","tapObserver","isUnsub","defaultErrorFactory","TimeoutError","schedulerArg","with","_with","timeoutErrorFactory","meta","originalSourceSubscription","timerSubscription","startTimer","Action","work","intervalProvider","setInterval","clearInterval","handle","AsyncAction","pending","recycleAsyncId","requestAsyncId","_scheduler","_execute","errorValue","errored","actions","Scheduler","schedulerActionCtor","AsyncScheduler","SchedulerAction","_active","animationFrameProvider","request","requestAnimationFrame","cancelAnimationFrame","animationFrameScheduler","AnimationFrameScheduler","flushId","_scheduled","AnimationFrameAction","async","getSymbolIterator","objectProto","getKeys","isPOJO","createImpl","ctorFunc","cb","isRoot","errorThrown","parentSubscription","repeat","scheduleSubscription","isObservable","__asyncGenerator","reader","getReader","__await","read","releaseLock","liftedSource","callOrApply","fns","userpilotNodeScript","Userpilot","initializedUserpilot","appToken","load","loaded","userpilot","settings","userpilotSettings","endpoint","domain","reload","suppress","unsuppress","identify","userId","createdAt","created_at","anonymous","track","theme","__spreadArray","pack","performance","mark","performanceMeasure","measure","symbolPrefix","__Zone_symbol_prefix","__symbol__","checkDuplicate","Zone","zoneSpec","_parent","_name","_properties","_zoneDelegate","_ZoneDelegate","assertZonePatched","patches","ZoneAwarePromise","defineProperty","current","_currentZoneFrame","_currentTask","__load_patch","ignoreDuplicate","perfName","_api","getZoneWith","wrap","_callback","intercept","runGuarded","applyThis","applyArgs","handleError","runTask","task","NO_ZONE","notScheduled","eventTask","macroTask","reEntryGuard","running","_transitionTo","runCount","previousTask","isPeriodic","cancelFn","invokeTask","unknown","_updateTaskCount","scheduleTask","newZone","scheduling","zoneDelegates","_zoneDelegates","scheduleMicroTask","customSchedule","ZoneTask","microTask","scheduleMacroTask","customCancel","scheduleEventTask","cancelTask","canceling","nativeMicroTaskQueuePromise","DELEGATE_ZS","onHasTask","hasTaskState","hasTask","onScheduleTask","onInvokeTask","onCancelTask","parentDelegate","_taskCounts","_parentDelegate","_forkZS","onFork","_forkDlgt","_forkCurrZone","_interceptZS","onIntercept","_interceptDlgt","_interceptCurrZone","_invokeZS","onInvoke","_invokeDlgt","_invokeCurrZone","_handleErrorZS","onHandleError","_handleErrorDlgt","_handleErrorCurrZone","_scheduleTaskZS","_scheduleTaskDlgt","_scheduleTaskCurrZone","_invokeTaskZS","_invokeTaskDlgt","_invokeTaskCurrZone","_cancelTaskZS","_cancelTaskDlgt","_cancelTaskCurrZone","_hasTaskZS","_hasTaskDlgt","_hasTaskDlgtOwner","_hasTaskCurrZone","zoneSpecHasTask","targetZone","returnTask","scheduleFn","counts","change","useG","_numberOfNestedTaskFrames","drainMicroTaskQueue","cancelScheduleRequest","fromState1","fromState2","handleId","toJSON","symbolSetTimeout","symbolPromise","symbolThen","_microTaskQueue","_isDrainingMicrotaskQueue","nativeScheduleMicroTask","func","nativeThen","microtaskDrainDone","currentZoneFrame","showUncaughtError","patchEventTarget","patchOnProperties","patchMethod","bindArguments","patchThen","patchMacroTask","patchEventPrototype","isIEOrEdge","getGlobalObjects","ObjectDefineProperty","ObjectGetOwnPropertyDescriptor","ObjectCreate","ArraySlice","patchClass","wrapWithCurrentZone","filterProperties","attachOriginToPatched","_redefineProperty","patchCallbacks","ObjectGetPrototypeOf","ADD_EVENT_LISTENER_STR","REMOVE_EVENT_LISTENER_STR","ZONE_SYMBOL_ADD_EVENT_LISTENER","ZONE_SYMBOL_REMOVE_EVENT_LISTENER","TRUE_STR","FALSE_STR","ZONE_SYMBOL_PREFIX","scheduleMacroTaskWithCurrentZone","zoneSymbol$1","isWindowExists","internalWindow","_global","isPropertyWritable","propertyDesc","WorkerGlobalScope","HTMLElement","isMix","zoneSymbolEventNames$1","wrapFn","eventNameSymbol","filename","lineno","colno","preventDefault","patchProperty","onPropPatchedSymbol","originalDescGet","originalDescSet","newValue","REMOVE_ATTRIBUTE","onProperties","originalInstanceKey","OriginalClass","patchFn","proto","delegateName","patchDelegate_1","funcName","metaCreator","setNative","cbIdx","patched","isDetectedIEOrEdge","ieOrEdge","ua","navigator","api","_uncaughtPromiseErrors","isDisableWrappingUncaughtPromiseRejection","rejection","_loop_2","uncaughtPromiseError","throwOriginal","handleUnhandledRejection","UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL","isThenable","forwardResolution","forwardRejection","symbolState","symbolValue","symbolFinally","symbolParentPromiseValue","symbolParentPromiseState","UNRESOLVED","REJECTED","makeResolver","resolvePromise","wasCalled","wrappedFunction","CURRENT_TASK_TRACE_SYMBOL","onceWrapper","clearRejectedNoCatch","currentTask","creationTrace","scheduleResolveOrReject","readableObjectToString","REJECTION_HANDLED_HANDLER","chainPromise","onFulfilled","onRejected","promiseState","parentPromiseValue","isFinallyPromise","AggregateError","executor","promises","_i","values_1","rej","onResolve","onReject","values_2","all","allWithCallback","allSettled","thenCallback","status","errorCallback","reason","unresolvedCount","valueIndex","resolvedValues","_loop_3","this_1","curValueIndex","thenErr","values_3","toStringTag","species","C","finally","onFinally","NativePromise","symbolThenPatched","Ctor","originalThen","zoneify","resultPromise","originalFunctionToString","ORIGINAL_DELEGATE_SYMBOL","PROMISE_SYMBOL","ERROR_SYMBOL","newFunctionToString","originalDelegate","nativePromise","nativeError","originalObjectToString","passiveSupported","zoneSymbol","_defineProperty","_getOwnPropertyDescriptor","_create","unconfigurablesKey","OPTIMIZED_ZONE_EVENT_TASK_DATA","zoneSymbolEventNames","globalSources","EVENT_NAME_SYMBOL_REGX","IMMEDIATE_PROPAGATION_SYMBOL","prepareEventNames","eventNameToString","falseEventName","trueEventName","symbolCapture","apis","patchOptions","ADD_EVENT_LISTENER","REMOVE_EVENT_LISTENER","rm","LISTENERS_EVENT_LISTENER","REMOVE_ALL_LISTENERS_EVENT_LISTENER","rmAll","zoneSymbolAddEventListener","ADD_EVENT_LISTENER_SOURCE","PREPEND_EVENT_LISTENER","isRemoved","handleEvent","globalCallback","isCapture","tasks","copyTasks","_loop_4","globalZoneAwareCallback","globalZoneAwareCaptureCallback","patchEventTargetMethods","useGlobalCallback","validateHandler","vh","chkDup","returnTarget","rt","nativePrependEventListener","taskData","nativeAddEventListener","nativeRemoveEventListener","nativeListeners","nativeRemoveAllListeners","buildEventListenerOptions","passive","capture","assign","prepend","isExisting","symbolEventNames","symbolEventName","existingTasks","allRemoved","compare","typeOfDelegate","unpatchedEvents","passiveEvents","makeAddListener","nativeListener","addSource","customScheduleFn","customCancelFn","transferEventName","isHandleEvent","constructorName","targetSource","existingTask","findEventTasks","captureTasks","removeTasks","evtName","foundTasks","captureFalseTasks","captureTrueTasks","Event","targetName","nativeDelegate","descriptor","ignoreProperties","tip","ip","targetIgnoreProperties","patchFilteredProperties","getOnEventNames","propertyDescriptorPatch","__Zone_ignore_on_properties","patchTargets","internalWindow_1","ignoreErrorProperties","isIE","originalConfigurableFlag","_tryDefineProperty","rewriteDescriptor","isUnconfigurable","isFrozen","swallowError","descJson","propertyDescriptorLegacyPatch","canPatchViaPropertyDescriptor","onclick","XMLHttpRequest","ON_READY_STATE_CHANGE","XMLHttpRequestPrototype","xhrDesc","req","onreadystatechange","SYMBOL_FAKE_ONREADYSTATECHANGE_1","detectFunc","supportsWebSocket","WebSocket","patchViaCapturingAllTheEvents","unboundKey","_loop_5","eventNames","onproperty","bound","elt","parentElement","WS","EventTarget","proxySocket","proxySocketProto","socket","onmessageDesc","propName","propertySymbol","globalWebSocket","SYMBOL_BLACK_LISTED_EVENTS","SYMBOL_UNPATCHED_EVENTS","propertyPatch","defineProperties","getOwnPropertySymbols","sym","propertiesObject","registerElementPatch","eventTargetLegacyPatch","NO_EVENT_TARGET","EVENT_TARGET","isWtf","wtf","WTF_ISSUE_555_ARRAY","isDisableIECheck","__Zone_disable_IE_check","isEnableCrossContextCheck","__Zone_enable_cross_context_check","FUNCTION_WRAPPER","BROWSER_TOOLS","pointerEventsMap","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","targets","apiTypes","testString","taskSymbol","patchTimer","setName","cancelName","nameSuffix","clearNative","tasksByHandleId","clearTask","options_1","callback_1","unref","legacyPatch","blockingMethods","patchEvent","eventTargetPatch","XMLHttpRequestEventTarget","patchCustomElements","customElements","patchXHR","oriAddListener","oriRemoveListener","XMLHttpRequestEventTarget_1","XMLHttpRequestEventTargetPrototype","READY_STATE_CHANGE","SCHEDULED","openNative","XHR_SYNC","XHR_URL","fetchTaskAborting","fetchTaskScheduling","sendNative","aborted","placeholderCallback","XHR_ERROR_BEFORE_SCHEDULED","abortNative","findPendingTask","XHR_TASK","XHR_SCHEDULED","XHR_LISTENER","newListener","readyState","DONE","loadTasks","oriInvoke_1","geolocation","patchPrototype","fnNames","_loop_1","name_1","findPromiseRejectionHandler","PromiseRejectionEvent","evt","group","stateChangeExpr","animateChild","stagger","_position","_onStart","triggerMicrotask","position","AnimationGroupPlayer","_players","doneCount","destroyCount","startCount","total","timeAtPosition","longestPlayer","longestSoFar","getAriaReferenceIds","attr","getAttribute","CDK_DESCRIBEDBY_ID_PREFIX","CDK_DESCRIBEDBY_HOST_ATTRIBUTE","nextId","AriaDescriber","_document","_platform","_messageRegistry","_messagesContainer","APP_ID","describe","role","_canBeDescribed","getKey","setMessageId","messageElement","referenceCount","_createMessageElement","_isElementDescribedByMessage","_addMessageReference","removeDescription","_isElementNode","_removeMessageReference","registeredMessage","_deleteMessageElement","childNodes","describedElements","_removeCdkDescribedByReferenceIds","textContent","_createMessagesContainer","containerClassName","serverContainers","messagesContainer","visibility","originalReferenceIds","addAriaReferencedId","ids","existingId","removeAriaReferencedId","filteredIds","referenceIds","messageId","trimmedMessage","ariaLabel","ELEMENT_NODE","serviceId","ListKeyManager","_items","_activeItemIndex","_activeItem","_wrap","_letterKeyStream","_typeaheadSubscription","_vertical","_allowedModifierKeys","_homeAndEnd","_skipPredicateFn","_pressedLetters","tabOut","QueryList","changes","newItems","newIndex","toArray","skipPredicate","withWrap","shouldWrap","withVerticalOrientation","enabled","withHorizontalOrientation","direction","_horizontal","withAllowedModifierKeys","withTypeAhead","debounceInterval","letter","inputString","items","_getItemsArray","getLabel","setActiveItem","withHomeAndEnd","previousActiveItem","updateActiveItem","onKeydown","keyCode","isModifierAllowed","every","modifier","TAB","DOWN_ARROW","setNextItemActive","UP_ARROW","setPreviousItemActive","RIGHT_ARROW","LEFT_ARROW","HOME","setFirstItemActive","setLastItemActive","hasModifierKey","toLocaleUpperCase","A","Z","ZERO","NINE","activeItemIndex","activeItem","isTyping","_setActiveItemByIndex","_setActiveItemByDelta","itemArray","delta","_setActiveInWrapMode","_setActiveInDefaultMode","fallbackDelta","ActiveDescendantKeyManager","setInactiveStyles","setActiveStyles","FocusKeyManager","_origin","setFocusOrigin","focus","InteractivityChecker","isDisabled","hasAttribute","isVisible","hasGeometry","offsetWidth","offsetHeight","getClientRects","isTabbable","frameElement","getFrameElement","getWindow","ownerDocument","defaultView","getTabIndexValue","nodeName","tabIndexValue","WEBKIT","IOS","isPotentiallyTabbableIOS","inputType","FIREFOX","tabIndex","isFocusable","isPotentiallyFocusable","isHiddenInput","isInputElement","isNativeFormElement","isAnchorWithHref","isAnchorElement","hasValidTabIndex","ignoreVisibility","FocusTrap","_checker","_ngZone","deferAnchors","_hasAttached","startAnchorListener","focusLastTabbableElement","endAnchorListener","focusFirstTabbableElement","_enabled","attachAnchors","_startAnchor","_endAnchor","_toggleAnchorTabIndex","startAnchor","endAnchor","_createAnchor","focusInitialElementWhenReady","_executeOnStable","focusInitialElement","focusFirstTabbableElementWhenReady","focusLastTabbableElementWhenReady","_getRegionBoundary","_getFirstTabbableElement","_getLastTabbableElement","redirectToElement","focusableChild","hasAttached","tabbableChild","anchor","isEnabled","toggleAnchors","isStable","onStable","FocusTrapFactory","deferCaptureElements","isFakeMousedownFromScreenReader","buttons","offsetX","offsetY","isFakeTouchstartFromScreenReader","touch","touches","changedTouches","radiusX","radiusY","INPUT_MODALITY_DETECTOR_OPTIONS","InjectionToken","INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS","ignoreKeys","ALT","CONTROL","MAC_META","META","SHIFT","modalityEventListenerOptions","normalizePassiveListenerOptions","InputModalityDetector","ngZone","_mostRecentTarget","_modality","_lastTouchMs","_onKeydown","_getEventTarget","_onMousedown","_onTouchstart","modalityDetected","modalityChanged","mostRecentModality","LIVE_ANNOUNCER_ELEMENT_TOKEN","providedIn","LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY","LIVE_ANNOUNCER_DEFAULT_OPTIONS","LiveAnnouncer","elementToken","_defaultOptions","_liveElement","_createLiveElement","announce","politeness","_previousTimeout","_currentPromise","_currentResolve","elementClass","previousElements","liveEl","FOCUS_MONITOR_DEFAULT_OPTIONS","captureEventListenerOptions","FocusMonitor","_inputModalityDetector","_windowFocused","_originFromTouchInteraction","_elementInfo","_monitoredElementCount","_rootNodeFocusListenerCount","_windowFocusListener","_windowFocusTimeoutId","_stopInputModalityDetector","_rootNodeFocusAndBlurListener","_onFocus","_onBlur","_detectionMode","detectionMode","monitor","checkChildren","nativeElement","coerceElement","rootNode","_getShadowRoot","_getDocument","cachedInfo","_registerGlobalListeners","stopMonitoring","elementInfo","_setClasses","_removeGlobalListeners","focusVia","activeElement","_getClosestElementsInfo","currentElement","_originChanged","_setOrigin","_info","_getWindow","_getFocusOrigin","focusEventTarget","_shouldBeAttributedToTouch","_lastFocusOrigin","_isLastInteractionFromInputLabel","toggle","isFromInteraction","_originTimeoutId","relatedTarget","Node","_emitOrigin","rootNodeFocusListeners","modality","mostRecentTarget","labels","CdkMonitorFocus","_elementRef","_focusMonitor","_focusOrigin","cdkFocusChange","EventEmitter","focusOrigin","ngAfterViewInit","_monitorSubscription","ɵdir","BLACK_ON_WHITE_CSS_CLASS","WHITE_ON_BLACK_CSS_CLASS","HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS","HighContrastModeDetector","_breakpointSubscription","BreakpointObserver","observe","_hasCheckedHighContrastMode","_applyBodyHighContrastModeCssClasses","getHighContrastMode","testElement","backgroundColor","documentWindow","computedStyle","computedColor","bodyClasses","mode","A11yModule","highContrastModeDetector","ObserversModule","DIR_DOCUMENT","DIR_DOCUMENT_FACTORY","RTL_LOCALE_PATTERN","Directionality","htmlDir","_resolveDirectionality","rawValue","language","BidiModule","coerceBooleanProperty","coerceNumberProperty","fallbackValue","_isNumberValue","coerceArray","coerceCssPixelValue","elementOrRef","ElementRef","DataSource","isDataSource","SelectionModel","_multiple","initiallySelectedValues","_emitChanges","compareWith","_selection","_deselectedToEmit","_selectedToEmit","changed","_markSelected","selected","_selected","select","_verifyValueAssignment","_hasQueuedChanges","_emitChangeEvent","deselect","_unmarkSelected","setSelection","oldValues","newSelectedSet","isSelected","flushEvent","_unmarkAll","otherValue","isMultipleSelection","added","removed","UniqueSelectionDispatcher","_listeners","notify","registered","extendStyles","importantProperties","removeProperty","toggleNativeDragInteractions","enable","userSelect","toggleVisibility","top","opacity","combineTransforms","transform","initialTransform","parseCssTimeUnitsToMs","multiplier","parseCssPropertyValue","part","getMutableClientRect","clientRect","getBoundingClientRect","bottom","height","isInsideClientRect","adjustClientRect","isPointerNearClientRect","rect","threshold","pointerX","pointerY","xThreshold","yThreshold","ParentPositionTracker","positions","cache","scrollPosition","getViewportScrollPosition","scrollTop","scrollLeft","handleScroll","cachedPosition","newTop","newLeft","viewportScrollPosition","topDifference","leftDifference","scrollY","scrollX","deepCloneNode","clone","cloneNode","descendantsWithId","transferCanvasData","transferInputData","transferData","descendantElements","cloneElements","cloneUniqueId","drawImage","passiveEventListenerOptions","activeEventListenerOptions","dragImportantProperties","DragRef","_config","_viewportRuler","_dragDropRegistry","_passiveTransform","_activeTransform","_hasStartedDragging","_moveEvents","_pointerMoveSubscription","_pointerUpSubscription","_scrollSubscription","_resizeSubscription","_boundaryElement","_nativeInteractionsEnabled","_handles","_disabledHandles","_direction","dragStartDelay","_disabled","beforeStarted","started","released","ended","entered","exited","dropped","moved","_pointerDown","targetHandle","_getTargetHandle","_initializeDragSequence","_rootElement","_pointerMove","pointerPosition","_getPointerPositionOnPage","_pickupPositionOnPage","dragStartThreshold","isDelayElapsed","_dragStartTime","_getDragStartDelay","container","_dropContainer","_endDragSequence","isDragging","isReceiving","_startDragSequence","constrainedPointerPosition","_getConstrainedPointerPosition","_hasMoved","_lastKnownPointerPosition","_updatePointerDirectionDelta","_updateActiveDropContainer","constrainPosition","_initialClientRect","activeTransform","_applyRootElementTransform","distance","_getDragDistance","_pointerDirectionDelta","_pointerUp","_nativeDragStart","withRootElement","withParent","parentDragRef","_parentPositions","registerDragItem","_toggleNativeDragInteractions","getPlaceholderElement","_placeholder","getRootElement","getVisibleElement","withHandles","handles","disabledHandles","withPreviewTemplate","_previewTemplate","withPlaceholderTemplate","_placeholderTemplate","_removeRootElementListeners","_initialTransform","SVGElement","_ownerSVGElement","ownerSVGElement","withBoundaryElement","boundaryElement","_containInsideBoundaryOnResize","_parentDragRef","_anchor","_destroyPreview","_destroyPlaceholder","removeDragItem","_removeSubscriptions","disableHandle","enableHandle","withDirection","_withDropContainer","getFreeDragPosition","setFreeDragPosition","withPreviewContainer","_previewContainer","_sortFromLastPointerPosition","_preview","_previewRef","_placeholderRef","stopDragging","webkitTapHighlightColor","_rootElementTapHighlight","_stopScrolling","_animatePreviewToPlaceholder","_cleanupDragArtifacts","_cleanupCachedDimensions","dropPoint","isTouchEvent","_lastTouchEventTime","dropContainer","placeholder","_createPlaceholderElement","shadowRoot","_createPreviewElement","replaceChild","_getPreviewInsertionPoint","_initialContainer","_initialIndex","getItemIndex","getScrollableParents","referenceElement","stopPropagation","isTouchSequence","isAuxiliaryMouseButton","button","isSyntheticEvent","isFakeEvent","draggable","rootStyles","pointerMove","pointerUp","scrolled","scrollEvent","_updateOnScroll","_boundaryRect","previewTemplate","_pickupPositionInElement","matchSize","_getPointerPositionInElement","_pointerPositionAtLastDirectionChange","startDragging","_previewRect","currentIndex","isPointerOverContainer","_isOverContainer","previousIndex","previousContainer","drop","rawX","rawY","newContainer","_getSiblingContainerFromPosition","enter","sortingDisabled","_startScrollingIfNecessary","_sortItem","_applyPreviewTransform","previewConfig","previewClass","preview","rootRect","viewRef","viewContainer","createEmbeddedView","detectChanges","getRootNode","matchElementSize","getTransform","margin","zIndex","placeholderRect","getTransformTransitionDurationInMs","transitionedProperties","propertyIndex","rawDurations","rawDelays","placeholderConfig","placeholderTemplate","pointerEvents","elementRect","handleElement","referenceRect","point","targetTouches","_getViewportScrollPosition","pageX","pageY","svgMatrix","getScreenCTM","svgPoint","createSVGPoint","matrixTransform","dropContainerLock","lockAxis","pickupX","pickupY","boundaryRect","previewWidth","previewHeight","_getPreviewRect","minY","maxY","clamp$1","pointerPositionOnPage","positionSinceLastChange","changeX","changeY","pointerDirectionChangeThreshold","shouldEnable","currentPosition","pickupPosition","leftOverflow","rightOverflow","topOverflow","bottomOverflow","mouse","scrollDifference","_cachedShadowRoot","initialParent","previewContainer","documentRef","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","rootNodes","wrapper","sourceRect","moveItemInArray","fromIndex","toIndex","clamp","SingleAxisSortStrategy","_itemPositions","orientation","_previousSwap","drag","overlaps","withItems","pointerDelta","siblings","_getItemIndexFromPointerPosition","isHorizontal","currentItem","siblingAtNewPosition","newPosition","itemOffset","_getItemOffsetPx","siblingOffset","_getSiblingOffsetPx","oldOrder","sibling","isDraggedItem","elementToOffset","activeDraggables","_activeDraggables","newPositionReference","_shouldEnterAsFirstChild","_cacheItemPositions","withSortPredicate","_sortPredicate","getActiveItemsSnapshot","reverse","updateOnScroll","elementToMeasure","immediateSibling","itemPositions","lastItemRect","firstItemRect","DropListRef","autoScrollDisabled","autoScrollStep","enterPredicate","sortPredicate","sorted","_isDragging","_draggables","_siblings","_activeSiblings","_viewportScrollSubscription","_verticalScrollDirection","_horizontalScrollDirection","_stopScrollTimers","_startScrollInterval","_scrollNode","scrollStep","scrollBy","withScrollableParents","registerDropContainer","_sortStrategy","removeDropContainer","_draggingStarted","_notifyReceivingSiblings","_cacheParentPositions","_reset","previousItems","connectedTo","withOrientation","_scrollableElements","_clientRect","scrollNode","verticalScrollDirection","horizontalScrollDirection","getElementScrollDirections","computedVertical","getVerticalScrollDirection","computedHorizontal","getHorizontalScrollDirection","scrollHeight","clientHeight","scrollWidth","clientWidth","getViewportSize","_initialScrollSnap","msScrollSnapType","scrollSnapType","_listenToScrollEvents","_stopReceiving","_canReceive","elementFromPoint","_startReceiving","activeSiblings","draggedItems","activeCapturingEventOptions","DragDropRegistry","_dropInstances","_dragInstances","_activeDragInstances","_globalListeners","_draggingPredicate","scroll","_preventDefaultWhileDragging","_persistentTouchmoveListener","_clearGlobalListeners","eventOptions","DEFAULT_CONFIG","DragDrop","createDrag","createDropList","CDK_DRAG_PARENT","CDK_DROP_LIST_GROUP","CDK_DRAG_CONFIG","_uniqueIdCounter","CDK_DROP_LIST","CdkDropList","dragDrop","_changeDetectorRef","_scrollDispatcher","_dir","_group","_unsortedItems","_dropListRef","_assignDefaults","_setupInputSyncSubscription","_handleEvents","_dropLists","addItem","_syncItemsWithRef","removeItem","getSortedItems","_dragRef","compareDocumentPosition","DOCUMENT_POSITION_FOLLOWING","_scrollableParentsResolved","scrollableParents","getAncestorScrollContainers","scrollable","getElementRef","markForCheck","dropEvent","draggingDisabled","listAutoScrollDisabled","listOrientation","i3","useExisting","CDK_DRAG_HANDLE","CDK_DRAG_PLACEHOLDER","CDK_DRAG_PREVIEW","CdkDrag","_viewContainerRef","_selfHandle","_parentDrag","movedEvent","_syncInputs","_updateRootElement","_setupHandlesListener","freeDragPosition","ngOnChanges","rootSelectorChange","rootElementSelector","positionChange","firstChange","closest","_getBoundaryElement","boundary","templateRef","startEvent","releaseEvent","endEvent","enterEvent","exitEvent","childHandleElements","_stateChanges","handleInstance","dragRef","dirIndex","_t","DragDropModule","CdkScrollableModule","ENTER","ESCAPE","SPACE","PAGE_UP","PAGE_DOWN","modifiers","altKey","shiftKey","ctrlKey","metaKey","mediaQueriesForWebkitCompatibility","mediaQueryStyleNode","MediaMatcher","_matchMedia","matchMedia","noopMatchMedia","BLINK","createEmptyStyleRule","head","sheet","insertRule","media","_mediaMatcher","_queries","_destroySubject","isMatched","splitQueries","mediaQuery","_registerQuery","mql","stateObservable","breakpointStates","breakpoints","queries","a1","a2","Breakpoints","XSmall","Small","Medium","Large","XLarge","Handset","Tablet","Web","HandsetPortrait","TabletPortrait","WebPortrait","HandsetLandscape","TabletLandscape","WebLandscape","MutationObserverFactory","MutationObserver","ContentObserver","_mutationObserverFactory","_observedElements","_cleanupObserver","_observeElement","_unobserveElement","mutations","characterData","childList","subtree","disconnect","CdkObserveContent","_contentObserver","_currentSubscription","_unsubscribe","debounce","_debounce","ngAfterContentInit","scrollBehaviorSupported","supportsScrollBehavior","BlockScrollStrategy","_previousHTMLStyles","_isEnabled","attach","_canBeEnabled","_previousScrollPosition","html","htmlStyle","bodyStyle","previousHtmlScrollBehavior","scrollBehavior","previousBodyScrollBehavior","viewport","CloseScrollStrategy","_detach","_overlayRef","detach","overlayRef","_initialScrollPosition","updatePosition","NoopScrollStrategy","isElementScrolledOutsideView","scrollContainers","containerBounds","isElementClippedByScrolling","scrollContainerRect","RepositionScrollStrategy","scrollThrottle","autoClose","overlayRect","overlayElement","ScrollStrategyOptions","close","reposition","OverlayConfig","scrollStrategy","panelClass","hasBackdrop","backdropClass","disposeOnNavigation","configKeys","ConnectedOverlayPositionChange","connectionPair","scrollableViewProperties","BaseOverlayDispatcher","_attachedOverlays","OverlayKeyboardDispatcher","_keydownListener","overlays","_keydownEvents","keydownEvents","_isAttached","OverlayOutsideClickDispatcher","_cursorStyleIsSet","_pointerDownListener","_pointerDownEventTarget","_clickListener","_outsidePointerEvents","outsidePointerEvents","_addEventListeners","_cursorOriginalValue","cursor","i1$1","OverlayContainer","_containerElement","getContainerElement","_createContainer","containerClass","_isTestEnvironment","oppositePlatformContainers","OverlayRef","_portalOutlet","_host","_pane","_keyboardDispatcher","_location","_outsideClickDispatcher","_animationsDisabled","_backdropElement","_backdropClick","_attachments","_detachments","_locationChanges","_backdropClickHandler","_backdropTransitionendHandler","_disposeBackdrop","_scrollStrategy","_positionStrategy","positionStrategy","backdropElement","portal","_previousHostParent","attachResult","_updateStackingOrder","_updateElementSize","_updateElementDirection","_togglePointerEvents","_attachBackdrop","_toggleClasses","detachBackdrop","detachmentResult","_detachContentWhenStable","isAttached","_disposeScrollStrategy","backdropClick","attachments","detachments","getConfig","updatePositionStrategy","strategy","updateSize","sizeConfig","setDirection","addPanelClass","classes","removePanelClass","getDirection","updateScrollStrategy","minWidth","minHeight","maxWidth","maxHeight","enablePointer","showingClass","backdropToDetach","_backdropTimeout","cssClasses","isAdd","backdrop","boundingBoxClass","cssUnitPattern","FlexibleConnectedPositionStrategy","_overlayContainer","_lastBoundingBoxSize","_isPushed","_canPush","_growAfterOpen","_hasFlexibleDimensions","_positionLocked","_viewportMargin","_scrollables","_preferredPositions","_positionChanges","_offsetX","_offsetY","_appliedPanelClasses","positionChanges","setOrigin","_validatePositions","_boundingBox","_isDisposed","_isInitialRender","_lastPosition","reapplyLastPosition","_clearPanelClasses","_resetOverlayElementStyles","_resetBoundingBoxStyles","_viewportRect","_getNarrowedViewportRect","_originRect","_getOriginRect","_overlayRect","_containerRect","originRect","viewportRect","containerRect","flexibleFits","fallback","originPoint","_getOriginPoint","overlayPoint","_getOverlayPoint","overlayFit","_getOverlayFit","isCompletelyWithinViewport","_applyPosition","_canFitWithFlexibleDimensions","boundingBoxRect","_calculateBoundingBoxRect","visibleArea","bestFit","bestScore","fit","score","weight","_previousPushAmount","alignItems","justifyContent","lastPosition","withScrollableContainers","scrollables","withPositions","withViewportMargin","withFlexibleDimensions","flexibleDimensions","withGrowAfterOpen","growAfterOpen","withPush","canPush","withLockedPosition","isLocked","withDefaultOffsetX","withDefaultOffsetY","withTransformOriginOn","_transformOriginSelector","originX","startX","_isRtl","endX","originY","overlayStartX","overlayStartY","overlayX","overlayY","rawOverlayRect","overlay","getRoundedBoundingClientRect","_getOffset","visibleWidth","_subtractOverflows","visibleHeight","fitsInViewportVertically","fitsInViewportHorizontally","availableHeight","availableWidth","getPixelValue","horizontalFit","_pushOverlayOnScreen","overflowRight","overflowBottom","overflowTop","overflowLeft","pushX","pushY","_setTransformOrigin","_setOverlayElementStyles","_setBoundingBoxStyles","_addPanelClasses","_getScrollVisibility","changeEvent","xOrigin","yOrigin","transformOrigin","isRtl","smallestDistanceToViewportEdge","previousHeight","previousWidth","_hasExactPosition","hasExactPosition","hasFlexibleDimensions","_getExactOverlayY","_getExactOverlayX","transformString","horizontalStyleProperty","originBounds","overlayBounds","scrollContainerBounds","isOriginClipped","isOriginOutsideView","isOverlayClipped","isOverlayOutsideView","overflows","currentValue","currentOverflow","axis","cssClass","units","wrapperClass","GlobalPositionStrategy","_cssPosition","_topOffset","_bottomOffset","_alignItems","_xPosition","_xOffset","_height","centerHorizontally","centerVertically","parentStyles","shouldBeFlushHorizontally","shouldBeFlushVertically","xPosition","xOffset","marginLeft","marginRight","marginTop","marginBottom","OverlayPositionBuilder","flexibleConnectedTo","nextUniqueId","Overlay","scrollStrategies","_componentFactoryResolver","_positionBuilder","_injector","_directionality","_animationsModuleType","_createHostElement","pane","_createPaneElement","portalOutlet","_createPortalOutlet","overlayConfig","_appRef","ApplicationRef","DomPortalOutlet","i5","i6","defaultPositionList","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY","CdkOverlayOrigin","elementRef","CdkConnectedOverlay","_overlay","viewContainerRef","scrollStrategyFactory","_hasBackdrop","_lockPosition","_flexibleDimensions","_push","_backdropSubscription","_attachSubscription","_detachSubscription","_positionSubscription","viewportMargin","open","disableClose","overlayKeydown","overlayOutsideClick","_templatePortal","TemplatePortal","_scrollStrategyFactory","_updatePositionStrategy","lockPosition","_attachOverlay","_detachOverlay","_createOverlay","_buildConfig","_createPositionStrategy","_getFlexibleConnectedPositionStrategyOrigin","transformOriginSelector","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY","OverlayModule","PortalModule","ScrollingModule","FullscreenOverlayContainer","hasV8BreakIterator","Intl","v8BreakIterator","supportsPassiveEvents","shadowDomIsSupported","_platformId","isPlatformBrowser","EDGE","TRIDENT","chrome","CSS","ANDROID","SAFARI","PLATFORM_ID","supportsPassiveEventListeners","scrollToFunction","scrollTo","_supportsShadowDom","createShadowRoot","attachShadow","ShadowRoot","_getFocusedElementPierceShadowDom","newActiveElement","composedPath","__karma__","jasmine","jest","Mocha","Portal","_attachedHost","setAttachedHost","ComponentPortal","injector","componentFactoryResolver","DomPortal","BasePortalOutlet","attachDomPortal","_attachedPortal","attachComponentPortal","attachTemplatePortal","_invokeDisposeFn","setDisposeFn","_disposeFn","outletElement","_defaultInjector","anchorNode","componentFactory","resolveComponentFactory","componentRef","createComponent","Injector","attachView","hostView","viewCount","detachView","_getComponentRootNode","CdkPortal","CdkPortalOutlet","_isInitialized","attached","_getRootNode","attachedRef","_attachedRef","ngOnInit","resolved","nextHandle","activeHandles","findAndClearHandle","Immediate","setImmediate","clearImmediate","immediateProvider","AsapScheduler","AsapAction","ScrollDispatcher","_scrolled","_globalSubscription","_scrolledCount","elementScrolled","scrollableReference","auditTimeInMs","_addGlobalListener","_removeGlobalListener","ancestorScrolled","elementOrElementRef","ancestors","scrollingContainers","_subscription","_scrollableContainsElement","scrollableElement","ViewportRuler","_change","_changeListener","_viewportSize","_updateViewportSize","getViewportRect","documentRect","throttleTime","innerWidth","innerHeight","BaseTreeControl","expansionModel","dataNode","_trackByValue","collapse","isExpanded","toggleDescendants","collapseDescendants","expandDescendants","collapseAll","toBeProcessed","getDescendants","trackBy","FlatTreeControl","getLevel","isExpandable","dataNodes","expandAll","NestedTreeControl","getChildren","allNodes","descendants","_getDescendants","childrenNodes","child","Boolean","CDK_TREE_NODE_OUTLET_NODE","CdkTreeNodeOutlet","CdkTreeNodeOutletContext","$implicit","CdkTreeNodeDef","CdkTree","_differs","_levels","viewChange","MAX_VALUE","dataSource","_dataSource","_switchDataSource","_dataDiffer","_nodeOutlet","_dataSubscription","ngAfterContentChecked","defaultNodeDefs","_nodeDefs","when","_defaultNodeDef","_observeRenderChanges","dataStream","renderNodeChanges","dataDiffer","parentData","forEachOperation","adjustedPreviousIndex","move","_getNodeDef","nodeData","level","treeControl","CdkTreeNode","mostRecentTreeNode","ɵcmp","_tree","_dataChanges","_role","_setRoleFromData","_parentNodeAriaLevel","getParentNodeAriaLevel","nodeElement","isNodeElement","CdkNestedTreeNode","tree","updateChildrenNodes","nodeOutlet","_clear","_getNodeOutlet","_children","outlets","CdkTreeNodePadding","_treeNode","indentUnits","_indent","_setPadding","_level","_setLevelInput","indent","_setIndentInput","_paddingIndent","nodeLevel","forceChange","padding","_currentPadding","paddingProp","resetProp","i2","CdkTreeNodeToggle","_recursive","recursive","_toggle","CdkTreeModule","_DOM","getDOM","setRootDomAdapter","adapter","DomAdapter","PlatformLocation","historyGo","relativePosition","useBrowserPlatformLocation","ɵɵinject","BrowserPlatformLocation","LOCATION_INITIALIZED","_doc","_init","location","_history","history","getBaseHrefFromDOM","getBaseHref","onPopState","getGlobalEventTarget","onHashChange","href","hostname","port","pathname","search","newPath","supportsState","replaceState","forward","back","go","getState","createBrowserPlatformLocation","joinWithSlash","slashes","endsWith","stripTrailingSlash","pathEndIdx","normalizeQueryParams","LocationStrategy","PathLocationStrategy","APP_BASE_HREF","_platformLocation","_removeListenerFns","_baseHref","prepareExternalUrl","internal","includeHash","queryParams","externalUrl","HashLocationStrategy","Location","locationStrategy","_urlChangeListeners","_urlChangeSubscription","_locationStrategy","browserBaseHref","_stripIndexHtml","ev","isCurrentPathEqualTo","_stripBaseHref","baseHref","_notifyUrlChangeListeners","onUrlChange","fnIndex","onThrow","onReturn","createLocation","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","Decimal","Percent","Currency","Scientific","FormStyle","Format","Standalone","TranslationWidth","Narrow","Abbreviated","Wide","Short","FormatWidth","Long","Full","NumberSymbol","Group","List","PercentSign","PlusSign","MinusSign","Exponential","SuperscriptingExponent","PerMille","TimeSeparator","CurrencyDecimal","CurrencyGroup","getLocaleDateFormat","getLastDefinedValue","ɵfindLocaleData","ɵLocaleDataIndex","getLocaleTimeFormat","getLocaleDateTimeFormat","dateTimeFormatData","getLocaleNumberSymbol","getLocaleNumberFormat","checkFullData","extractTime","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","ZoneWidth","ShortGMT","Extended","DateType","FullYear","Month","Hours","Minutes","Seconds","FractionalSeconds","Day","TranslationType","DayPeriods","Days","Months","Eras","formatDate","createDate","parsedNb","isoStringToDate","tzHour","tzMin","dateSetter","timeSetter","ms","getNamedFormat","dateTimezoneOffset","timezoneToOffset","convertTimezoneToLocal","reverseValue","addDateMinutes","setMinutes","dateFormatter","getDateFormatter","DATE_FORMATS","dateStrGetter","dateGetter","weekNumberingYearGetter","weekGetter","timeZoneGetter","newDate","localeId","getLocaleId","shortTime","shortDate","formatDateTime","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","opt_values","padNumber","digits","minusSign","negWrap","neg","strNum","getDatePart","formatFractionalSeconds","localeMinus","form","extended","getDateTranslation","getLocaleMonthNames","formStyle","getLocaleDayNames","currentHours","currentMinutes","getLocaleExtraDayPeriodRules","rule","dayPeriods","getLocaleExtraDayPeriods","afterFrom","beforeTo","getLocaleDayPeriods","amPm","getLocaleEraNames","erasData","getThursdayThisWeek","datetime","monthBased","nbDaysBefore1stDayOfMonth","thisThurs","firstThurs","getFirstThursdayOfYear","firstDayOfYear","THURSDAY","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","groups","lgSize","gSize","negPre","negSuf","posPre","posSuf","formatCurrency","currency","currencyCode","parseNumberFormat","getNumberOfCurrencyDigits","formatPercent","formatNumber","patternParts","positive","negative","positiveParts","lastIndexOf","fraction","trunkLen","registerLocaleData","extraData","ɵregisterLocaleData","parseCookieValue","cookieStr","encodeURIComponent","cookie","eqIndex","cookieName","cookieValue","decodeURIComponent","NgClass","_iterableDiffers","_keyValueDiffers","_ngEl","_iterableDiffer","_keyValueDiffer","_initialClasses","_rawClass","klass","_removeClasses","_applyClasses","ngClass","ɵisListLikeIterable","ngDoCheck","iterableChanges","_applyIterableChanges","keyValueChanges","_applyKeyValueChanges","forEachAddedItem","record","_toggleClass","forEachChangedItem","forEachRemovedItem","ɵstringify","rawClassVal","NgForOfContext","ngForOf","even","odd","NgForOf","_viewContainer","_template","_ngForOf","_ngForOfDirty","_differ","ngForTrackBy","_trackByFn","ngForTemplate","_applyChanges","applyViewChange","ilen","forEachIdentityChange","NgIf","_context","NgIfContext","_thenTemplateRef","_elseTemplateRef","_thenViewRef","_elseViewRef","ngIf","_updateView","ngIfThen","assertTemplate","ngIfElse","SwitchView","_templateRef","_created","enforceState","created","NgSwitch","_defaultUsed","_caseCount","_lastCaseCheckIndex","_lastCasesMatched","ngSwitch","_ngSwitch","_updateDefaultCases","_addCase","_addDefault","_defaultViews","_matchCase","useDefault","NgSwitchCase","_view","ngSwitchCase","NgSwitchDefault","NgStyle","_ngStyle","ngStyle","_setStyle","nameAndUnit","RendererStyleFlags2","NgTemplateOutlet","_viewRef","ngTemplateOutletContext","ngTemplateOutlet","ngTemplateOutletInjector","invalidPipeArgumentError","SubscribableStrategy","createSubscription","updateLatestValue","PromiseStrategy","_promiseStrategy","_subscribableStrategy","AsyncPipe","_latestValue","_obj","_strategy","_dispose","_selectStrategy","_updateLatestValue","ɵisPromise","ɵisSubscribable","ɵpipe","pure","LowerCasePipe","UpperCasePipe","DATE_PIPE_DEFAULT_TIMEZONE","DatePipe","defaultTimezone","LOCALE_ID","DecimalPipe","_locale","isValue","strToNumber","CurrencyPipe","_defaultCurrencyCode","getCurrencySymbol","getLocaleCurrencies","symbolNarrow","DEFAULT_CURRENCY_CODE","SlicePipe","supports","CommonModule","PLATFORM_BROWSER_ID","platformId","isPlatformServer","ViewportScroller","ɵɵdefineInjectable","BrowserViewportScroller","setOffset","getScrollPosition","supportsScrolling","pageXOffset","pageYOffset","scrollToPosition","scrollToAnchor","elSelected","findAnchorFromDocument","documentResult","getElementById","getElementsByName","createTreeWalker","treeWalker","NodeFilter","SHOW_ELEMENT","currentNode","nextNode","scrollToElement","setHistoryScrollRestoration","scrollRestoration","supportScrollRestoration","scrollRestorationDescriptor","getScrollRestorationProperty","XhrFactory","HttpHandler","HttpBackend","HttpHeaders","normalizedNames","lazyUpdate","lazyInit","maybeSetNormalizedName","getAll","lcName","copyFrom","applyUpdate","toDelete","existing","HttpUrlEncodingCodec","encodeKey","standardEncoding","encodeValue","decodeKey","decodeValue","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","valueToString","HttpParams","updates","cloneFrom","encoder","fromString","fromObject","paramParser","rawParams","codec","eqIdx","appendAll","eKey","HttpContextToken","HttpContext","isBlob","Blob","isFormData","FormData","HttpRequest","third","fourth","reportProgress","mightHaveBody","urlWithParams","qIdx","serializeBody","isUrlSearchParams","URLSearchParams","detectContentTypeHeader","setHeaders","setParams","HttpEventType","Sent","UploadProgress","ResponseHeader","DownloadProgress","Response","User","HttpResponseBase","defaultStatus","defaultStatusText","statusText","HttpHeaderResponse","HttpResponse","HttpErrorResponse","addBody","HttpClient","events$","res$","jsonp","callbackParam","patch","put","HttpInterceptorHandler","interceptor","HTTP_INTERCEPTORS","NoopInterceptor","XSSI_PREFIX","HttpXhrBackend","xhrFactory","xhr","setRequestHeader","detectedType","reqBody","headerResponse","partialFromXhr","getAllResponseHeaders","getResponseUrl","responseURL","getResponseHeader","onLoad","responseText","originalBody","sentHeaders","onDownProgress","progressEvent","lengthComputable","partialText","onUpProgress","progress","upload","abort","XSRF_COOKIE_NAME","XSRF_HEADER_NAME","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","lastCookieString","lastToken","parseCount","getToken","cookieString","ɵparseCookieValue","HttpXsrfInterceptor","tokenService","headerName","lcUrl","HttpInterceptingHandler","backend","chain","interceptors","HttpClientXsrfModule","withOptions","XhrFactory$1","__WEBPACK_DEFAULT_EXPORT__","plural","getClosureSafeProperty","objWithPropertyToExtract","fillProperties","overriddenName","newLineIndex","concatStringsWithSpace","before","after","__forward_ref__","forwardRef","forwardRefFn","resolveForwardRef","isForwardRef","RuntimeError","formatRuntimeError","renderStringify","throwProviderNotFoundError","injectorName","ɵɵdefineInjector","getInjectableDef","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","isInjectable","field","getInjectorDef","NG_INJ_DEF","NG_INJECTOR_DEF","ngInjectableDef","ngInjectorDef","InjectFlags","Default","Host","Self","SkipSelf","Optional","_injectImplementation","setInjectImplementation","impl","previous","injectRootLimpMode","notFoundValue","injectableDef","noSideEffects","ChangeDetectionStrategy","OnPush","ViewEncapsulation$1","Emulated","ShadowDom","EMPTY_OBJ","EMPTY_ARRAY","NG_COMP_DEF","NG_DIR_DEF","NG_PIPE_DEF","NG_MOD_DEF","NG_FACTORY_DEF","NG_ELEMENT_ID","__NG_ELEMENT_ID__","componentDefCount","ɵɵdefineComponent","componentDefinition","standalone","declaredInputs","providersResolver","decls","consts","ngContentSelectors","hostBindings","hostVars","hostAttrs","contentQueries","inputs","outputs","exportAs","onPush","changeDetection","directiveDefs","pipeDefs","dependencies","getStandaloneInjector","viewQuery","schemas","tView","feature","invertObject","extractDirectiveDef","nonNull","getPipeDef$1","getComponentDef","getDirectiveDef","ɵɵdefineNgModule","transitiveCompileScopes","ɵɵsetNgModuleScope","ngModuleDef","getNgModuleDef","secondary","newLookup","minifiedKey","publicName","declaredName","ɵɵdefineDirective","ɵɵdefinePipe","pipeDef","isStandalone","throwNotFound","isLView","isLContainer","isContentQueryHost","tNode","isComponentHost","isDirectiveHost","isComponentDef","isRootView","getFactoryDef","SimpleChange","isFirstChange","ɵɵNgOnChangesFeature","NgOnChangesFeatureImpl","definition","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","privateName","setSimpleChangesStore","store","SIMPLE_CHANGES_STORE","previousChange","ngInherit","unwrapRNode","getNativeByIndex","lView","getNativeByTNode","getTNode","getComponentLViewByIndex","nodeIndex","slotValue","viewAttachedToChangeDetector","getConstant","resetPreOrderHookFlags","updateTransplantedViewCount","lContainer","viewOrContainer","instructionState","lFrame","createLFrame","bindingsEnabled","getBindingsEnabled","getLView","getTView","ɵɵrestoreView","viewToRestore","contextLView","ɵɵresetView","getCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","getCurrentParentTNode","isParent","setCurrentTNode","isCurrentTNodeParent","setCurrentTNodeAsNotParent","getBindingRoot","bindingRootIndex","bindingStartIndex","getBindingIndex","bindingIndex","nextBindingIndex","incrementBindingIndex","setInI18nBlock","isInI18nBlock","inI18n","setBindingRootForHostBindings","currentDirectiveIndex","setCurrentDirectiveIndex","getCurrentDirectiveDef","tData","getCurrentQueryIndex","setCurrentQueryIndex","getDeclarationTNode","declTNode","enterDI","parentTNode","parentLView","allocLFrame","enterView","newView","newLFrame","firstChild","currentLFrame","childLFrame","selectedIndex","elementDepthCount","currentNamespace","leaveViewLight","oldLFrame","leaveDI","leaveView","getSelectedIndex","setSelectedIndex","getSelectedTNode","ɵɵnamespaceSVG","ɵɵnamespaceHTML","namespaceHTMLInternal","registerPostOrderHooks","directiveStart","directiveEnd","lifecycleHooks","ngAfterViewChecked","contentHooks","contentCheckHooks","viewHooks","viewCheckHooks","destroyHooks","executeCheckHooks","hooks","callHooks","executeInitAndCheckHooks","initPhase","incrementInitPhaseFlags","currentView","currentNodeIndex","nodeIndexLimit","lastNodeIndexFound","callHook","isInitHook","hook","directive","NodeInjectorFactory","isViewProvider","injectImplementation","resolving","canSeeViewProviders","injectImpl","setUpAttributes","native","attrs","namespaceURI","attrName","attrVal","isAnimationProp","isNameOnlyAttributeMarker","mergeHostAttrs","dst","srcMarker","mergeHostAttribute","markerInsertPosition","dstValue","hasParentInjector","parentLocation","getParentInjectorIndex","getParentInjectorView","startView","viewOffset","getParentInjectorViewOffset","parentView","includeViewProviders","setIncludeViewProviders","nextNgElementId","NOT_FOUND","getOrCreateNodeInjectorForNode","existingInjectorIndex","getInjectorIndex","firstCreatePass","injectorIndex","insertBloom","blueprint","parentLoc","getParentInjectorLocation","parentIndex","footer","declarationViewOffset","lViewCursor","getTNodeFromLView","diPublicInInjector","bloomAdd","bloomHash","notFoundValueOrThrow","lookupTokenUsingModuleInjector","moduleInjector","previousInjectImplementation","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","endIndex","providerTokenOrDef","dirDef","isFactory","throwCyclicDependencyError","depPath","stringifyForError","previousIncludeViewProviders","registerPreOrderHooks","directiveIndex","directiveDef","wrappedOnChanges","preOrderHooks","preOrderCheckHooks","injectorView","isFirstHostTNode","NodeInjector","_tNode","_lView","ɵɵgetInheritedFactory","ownConstructor","ownFactory","getFactoryOf","objectPrototype","tViewType","ɵɵinjectAttribute","attrNameToInject","injectAttributeImpl","attrsLength","PARAMETERS","PROP_METADATA","makeMetadataCtor","makeParamDecorator","parentClass","metaCtor","ParamDecoratorFactory","annotationInstance","ParamDecorator","annotation","cls","unusedKey","parameters","ngMetadataName","annotationCls","makePropDecorator","additionalProcessing","PropDecoratorFactory","decoratorInstance","PropDecorator","_desc","Query","ContentChildren","isViewQuery","emitDistinctChangesOnly","flatten","deepForEach","addToArray","removeFromArray","newArray","keyValueArraySet","keyValueArray","keyValueArrayIndexOf","arrayInsert2","value1","value2","keyValueArrayGet","_arrayIndexOfSorted","middle","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NEW_LINE","SOURCE","_currentInjector","setCurrentInjector","former","injectInjectorOnly","getInjectImplementation","skipSelf","injectArgs","flag","getInjectFlag","attachInjectFlag","decorator","Inject","Important","DashCase","COMMENT_DISALLOWED","COMMENT_DELIMITER","TRACKED_LVIEWS","uniqueIdCounter","MONKEY_PATCH_KEY_NAME","attachPatchData","registerLView","_icuContainerIterate","icuContainerIterate","tIcuContainerNode","getLViewParent","getFirstLContainer","getNearestLContainer","getNextLContainer","applyToElementOrContainer","lNodeToHandle","beforeNode","isComponent","rNode","nativeAppendChild","nativeInsertBefore","nativeRemoveNode","applyContainer","parentRElement","applyView","createTextNode","updateTextNode","createCommentNode","escapeCommentText","createElementNode","detachMovedView","declarationContainer","movedViews","declarationViewIndex","insertionLContainer","removeIndex","indexInContainer","viewToDetach","declarationLContainer","removedLView","removeViewFromContainer","lQueries","destroyLView","destroyViewTree","rootView","lViewOrLContainer","cleanUpView","firstView","executeOnDestroys","toCall","callContext","processCleanups","tCleanup","cleanup","lCleanup","lastLCleanupIndex","idxOrTargetGetter","useCaptureOrSubIdx","instanceCleanupFn","unregisterLView","getParentRElement","getClosestRElement","nativeAppendOrInsertBefore","nativeParentNode","getInsertInFrontOfRNode","_getInsertInFrontOfRNodeWithI18n","getInsertInFrontOfRNodeWithNoI18n","_processI18nInsertBefore","policy$1","policy","setI18nHandling","getInsertInFrontOfRNodeWithI18n","processI18nInsertBefore","childRNode","childTNode","parentRNode","getFirstNativeNode","tNodeType","getBeforeNodeForView","elIcuContainerChild","rNodeOrLContainer","projectionNodes","getProjectionNodes","projection","viewIndexInContainer","nextViewIndex","firstTNodeOfView","nativeParent","nativeRemoveChild","applyNodes","isProjection","rawSlotValue","nextRNode","applyProjectionRecursive","projectionNext","tProjectionNode","componentLView","nodeToProjectOrRNodes","writeDirectStyle","writeDirectClass","trustedHTMLFromString","getPolicy$1","trustedTypes","createPolicy","createHTML","createScript","createScriptURL","setDocument","getDocument","getPolicy","trustedHTMLFromStringBypass","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","DOMParser","parseFromString","DOMParserHelper","getInertBodyElement","inertDocument","implementation","createHTMLDocument","inertHtml","inertBodyElement","templateEl","innerHTML","inertBody","documentMode","stripCustomNsAttrs","elAttrs","attributes","childNode","SAFE_URL_PATTERN","_sanitizeUrl","tagSet","tags","sets","VOID_ELEMENTS","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","SanitizingHtmlSerializer","sanitizedSomething","buf","sanitizeChildren","traverseContent","startElement","TEXT_NODE","chars","nodeValue","endElement","checkClobberedElement","tagName","elAttr","lower","encodeEntities","DOCUMENT_POSITION_CONTAINED_BY","outerHTML","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","inertBodyHelper","_sanitizeHtml","unsafeHtmlInput","unsafeHtml","mXSSAttempts","parsedHtml","getTemplateContent","isTemplateElement","SecurityContext","NONE","HTML","STYLE","SCRIPT","URL","RESOURCE_URL","ɵɵsanitizeHtml","sanitizer","getSanitizer","sanitize","ɵɵsanitizeUrl","unsafeUrl","ɵɵsanitizeResourceUrl","unsafeResourceUrl","ENVIRONMENT_INITIALIZER","INJECTOR","INJECTOR_DEF_TYPES","NullInjector","importProvidersFrom","ɵproviders","internalImportProvidersFrom","checkForStandaloneCmp","providersOut","dedup","injectorTypesWithProviders","internalSource","walkProviderTree","processInjectorTypesWithProviders","typesWithProviders","provider","parents","defType","injDef","cmpDef","isDuplicate","dep","importTypesWithProviders","imported","defProviders","USE_VALUE$1","isValueProvider","isTypeProvider","INJECTOR_SCOPE","NOT_YET","CIRCULAR","NULL_INJECTOR$1","getNullInjector","EnvironmentInjector","R3Injector","scopes","records","_ngOnDestroyHooks","_onDestroyHooks","forEachSingleProvider","processProvider","makeRecord","injectorDefTypes","assertNotDestroyed","service","runInContext","previousInjector","couldBeInjectableType","injectableDefInScope","injectableDefOrInjectorDefFactory","hydrate","catchInjectorError","injectorErrorName","tokenPath","NG_TOKEN_PATH","resolveInjectorInitializers","initializers","initializer","providerToRecord","providerToFactory","multiRecord","hasOnDestroy","getUndecoratedInjectableFactory","paramLength","inheritedInjectableDef","getInheritedInjectableDef","typeName","ngModuleType","unwrappedProvider","isFactoryProvider","isExistingProvider","classRef","hasDeps","isImportedNgModuleProviders","ComponentFactory$1","_NullComponentFactoryResolver","noComponentFactoryError","ERROR_COMPONENT","ComponentFactoryResolver$1","NULL","injectElementRef","createElementRef","unwrapElementRef","Renderer2","injectRenderer2","nodeAtIndex","Sanitizer","Version","major","minor","VERSION","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","getOriginalError","ERROR_ORIGINAL_ERROR","ErrorHandler","_console","originalError","_findOriginalError","ɵɵresolveWindow","ɵɵresolveDocument","maybeUnwrapFn","classIndexOf","classToSearch","startingIndex","foundIndex","NG_TEMPLATE_SELECTOR","isCssClassMatching","cssClassToMatch","isProjectionMode","isInlineTemplate","hasTagAndTypeMatch","currentSelector","isNodeMatchingSelector","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","isPositive","selectorAttrValue","attrIndexInNode","findAttrIndexInNode","nodeAttrValue","compareAgainstClassName","bindingsMode","maybeAttrName","matchTemplateAttribute","isNodeMatchingSelectorList","isSelectorInSelectorList","selectorListLoop","currentSelectorInList","maybeWrapInNotSelector","isNegativeMode","chunk","stringifyCSSSelector","currentChunk","valueOrMarker","attrValue","NO_CHANGE","ɵɵadvance","selectIndexInternal","checkNoChangesMode","createInjector","additionalProviders","createInjectorWithoutInjectorInstances","ɵɵdirectiveInject","ɵɵinvalidFactory","toTStylingRange","getTStylingRangePrev","tStylingRange","setTStylingRangePrevDuplicate","getTStylingRangeNext","setTStylingRangeNext","setTStylingRangeNextDuplicate","refreshContentQueries","queryStartIdx","directiveDefIdx","createLView","tHostNode","rendererFactory","getUniqueLViewId","getOrCreateTNode","createTNodeAtIndex","createTNode","tParent","insertBeforeIndex","directiveStylingLast","propertyBindings","mergedAttrs","localNames","initialInputs","tViews","stylesWithoutHost","residualStyles","classesWithoutHost","residualClasses","classBindings","styleBindings","allocExpando","numSlotsToAlloc","initialValue","allocIdx","renderView","executeViewQueryFn","templateFn","executeTemplate","staticContentQueries","staticViewQueries","components","renderChildComponents","hostLView","renderComponent","incompleteFirstPass","refreshView","setBindingIndex","hooksInitPhaseCompleted","markTransplantedViewsForRefresh","movedLView","refreshEmbeddedViews","embeddedLView","embeddedTView","processHostBindingOpCodes","hostBindingOpCodes","opCode","directiveIdx","bindingRootIndx","hostBindingFn","refreshChildComponents","refreshComponent","firstUpdatePass","rf","prevSelectedIndex","isUpdatePhase","executeContentQueries","createDirectivesInstances","instantiateAllDirectives","addComponentLogic","setInputsFromAttrs","invokeDirectivesHostBindings","elementIndex","getCurrentDirectiveIndex","invokeHostBindingsInCreationMode","saveResolvedLocalsInData","viewData","localRefExtractor","localIndex","getOrCreateComponentTView","createTView","directives","pipes","constsOrFactory","initialViewLength","createViewBlueprint","expandoStartIndex","directiveRegistry","pipeRegistry","storeCleanupWithContext","cleanupFn","getOrCreateLViewCleanup","getOrCreateTViewCleanup","generatePropertyAliases","inputAliasMap","propStore","internalName","initializeInputAndOutputAliases","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","directiveInputs","generateInitialInputs","elementPropertyInternal","nativeOnly","dataValue","inputData","setInputsForProperty","markDirtyIfOnPush","mapPropName","viewIndex","childComponentLView","resolveDirectives","localRefs","hasDirectives","findDirectiveDefMatches","registry","markAsComponentHost","exportsMap","initTNodeFlags","preOrderHooksFound","preOrderCheckHooksFound","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","cacheMatchingLocalNames","registerHostBindingOpCodes","directiveVarsIdx","elementIndx","lastSelectedElementIdx","hostTNode","numberOfDirectives","directiveFactory","nodeInjectorFactory","componentView","addToViewTree","elementAttributeInternal","setElementAttribute","initialInputData","inputsToStore","createLContainer","hostNative","componentHostIdx","refreshContainsDirtyView","componentTView","syncViewWithBlueprint","markViewDirty","detectChangesInternal","notifyErrorHandler","viewQueryFn","loadComponentRenderer","currentDef","unwrapLView","errorHandler","textBindingInternal","computeStaticStyling","writeToHost","collectNativeNodes","lNode","lViewInAContainer","lViewFirstChildTNode","nodesInSlot","ViewRef$1","_cdRefInjectingView","_attachedToViewContainer","viewRefs","reattach","checkNoChanges","attachToViewContainerRef","detachFromAppRef","renderDetachView","attachToAppRef","RootViewRef","ComponentFactoryResolver","componentDef","ComponentFactory","toRefArray","nonMinified","templateName","ChainedInjector","parentInjector","componentType","stringifyCSSSelectorList","selectorList","isBoundToModule","projectableNodes","rootSelectorOrNode","environmentInjector","realEnvironmentInjector","rootViewInjector","hostRenderer","elementName","hostRNode","locateHostElement","elementOrSelector","getNamespace","rootFlags","rootTView","rootLView","tElementNode","createRootComponentView","viewRenderer","extractAttrsAndClassesFromSelector","nodesforSlot","createRootComponent","hostFeatures","instantiateRootComponent","rootTNode","LifecycleHooksFeature","ComponentRef","ComponentRef$1","_rootLView","changeDetectorRef","ɵɵInheritDefinitionFeature","superType","getSuperType","shouldInheritFields","inheritanceChain","superDef","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","defData","mergeHostAttrsAcrossInheritance","prevViewQuery","prevContentQueries","prevHostBindings","_symbolIterator","isListLikeIterable","isJsObject","updateBinding","getBinding","bindingUpdated","is","bindingUpdated2","exp1","exp2","different","bindingUpdated3","exp3","bindingUpdated4","exp4","ɵɵattribute","interpolation1","v0","suffix","interpolation2","v1","interpolation3","v2","interpolation5","v3","v4","ɵɵattributeInterpolate1","interpolatedValue","ɵɵattributeInterpolate2","ɵɵtemplate","attrsIndex","localRefsIndex","adjustedIndex","templateFirstCreatePass","tViewConsts","ɵɵreference","getContextLView","ɵɵproperty","setDirectiveInputsWhichShadowsStyling","isClassBased","ɵɵelementStart","getNamespace$1","elementStartFirstCreatePass","elementStart","getElementDepthCount","increaseElementDepthCount","ɵɵelementEnd","decreaseElementDepthCount","elementEnd","hasClassInput","hasStyleInput","ɵɵelement","ɵɵelementContainerStart","elementContainerStartFirstCreatePass","ɵɵelementContainerEnd","ɵɵelementContainer","ɵɵgetCurrentView","isSubscribable","ɵɵlistener","listenerFn","useCapture","eventTargetResolver","listenerInternal","ɵɵsyntheticHostListener","isTNodeDirectiveHost","processOutputs","lCleanupIndex","existingListener","findExistingListener","tNodeIdx","cleanupEventName","listenerIdxInLCleanup","__ngLastListenerFn__","__ngNextListenerFn__","wrapListener","propsLength","executeListenerWithErrorHandling","profiler","wrapWithPreventDefault","wrapListenerIn_markDirtyAndPreventDefault","nextListenerFn","returnValue","ɵɵnextContext","nextContextImpl","walkUpViews","nestingLevel","matchingProjectionSlotIndex","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","getProjectAsAttrValue","ngProjectAsAttrIdx","ɵɵprojectionDef","componentNode","projectionHeads","tails","componentChild","slotIndex","ɵɵprojection","selectorIndex","applyProjection","ɵɵpropertyInterpolate","ɵɵpropertyInterpolate1","ɵɵpropertyInterpolate2","ɵɵpropertyInterpolate3","markDuplicates","tStylingKey","isPrevDir","isClassBinding","tStylingAtIndex","isMap","foundDuplicate","tStyleRangeAtCursor","isStylingMatch","tStylingKeyCursor","parserState","textEnd","keyEnd","valueEnd","getLastParsedKey","getLastParsedValue","parseClassNameNext","consumeClassToken","consumeWhitespace","parseStyleNext","consumeStyleKey","consumeSeparator","consumeStyleValue","lastChIndex","consumeQuotedText","resetParserState","quoteCharCode","ɵɵstyleProp","checkStylingProperty","ɵɵclassProp","ɵɵstyleMap","checkStylingMap","styleKeyValueArraySet","styleStringParser","parseStyle","ɵɵclassMap","classStringParser","parseClassName","stylingFirstUpdatePass","updateStyling","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","updateStylingMap","oldKeyValueArray","newKeyValueArray","oldIndex","oldKey","newKey","setKey","toStylingKeyValueArray","styleKeyValueArray","unwrappedValue","isHostBindings","wrapInStaticStylingKey","stylingKey","hostDirectiveDef","residual","collectStylingFromTAttrs","collectStylingFromDirectives","templateStylingKey","getTemplateHeadTStylingKey","bindings","setTemplateHeadTStylingKey","collectResidual","insertTStylingBinding","tStylingKeyWithStatic","isHostBinding","tBindings","tmplHead","tmplTail","isKeyDuplicateOfStatic","staticKeyValueArray","setTStylingRangePrev","markDuplicateOfResidualStyling","currentDirective","desiredMarker","currentMarker","tRange","isStylingValuePresent","getTStylingRangeNextDuplicate","findStylingValue","getTStylingRangePrevDuplicate","applyStyling","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","ɵɵtext","textNative","ɵɵtextInterpolate","ɵɵtextInterpolate1","interpolated","ɵɵtextInterpolate2","ɵɵtextInterpolate3","ɵɵtextInterpolate5","ɵɵclassMapInterpolate1","ɵɵclassMapInterpolate2","ɵɵclassMapInterpolate3","ɵɵclassMapInterpolate4","interpolation4","ɵɵclassMapInterpolate5","ɵɵhostProperty","ɵɵsyntheticHostProperty","localeEn","LOCALE_DATA","LocaleDataIndex","LocaleId","ExtraData","findLocaleData","normalizedLocale","normalizeLocale","getLocaleData","parentLocale","getLocalePluralCase","PluralCase","ng","common","locales","DayPeriodsFormat","DayPeriodsStandalone","DaysFormat","DaysStandalone","MonthsFormat","MonthsStandalone","FirstDayOfWeek","WeekendRange","DateFormat","TimeFormat","DateTimeFormat","NumberSymbols","NumberFormats","CurrencyCode","CurrencySymbol","CurrencyName","Currencies","pluralMapping","DEFAULT_LOCALE_ID","ELEMENT_MARKER","ICU_MARKER","I18nCreateOpCode","APPEND_EAGERLY","COMMENT","LOCALE_ID$1","setLocaleId","assertDefined","tNodeInsertBeforeIndex","i18nParent","anchorRNode","addTNodeAndUpdateInsertBeforeIndex","previousTNodes","newTNode","existingTNode","isI18nText","isNewTNodeCreatedBefore","getInsertBeforeIndex","setInsertBeforeIndex","getTIcu","createTNodePlaceholder","getCurrentICUCaseIndex","tIcu","currentCase","currentCaseLViewIndex","getParentFromIcuCreateOpCode","mergedCode","getRefFromIcuCreateOpCode","changeMask","changeMaskCounter","applyMutableOpCodes","mutableOpCodes","rootRNode","rootIdx","textNodeIndex","parentIdx","insertInFrontOf","refIdx","caseIndex","anchorIdx","commentValue","commentNodeIndex","elementNodeIndex","applyUpdateOpCodes","updateOpCodes","bindingsStartIndex","checkBit","skipCodes","sanitizeFn","tNodeOrTagName","rText","applyIcuSwitchCase","applyIcuUpdateCase","activeCaseIndex","mask","getCaseIndex","icuExpression","bindingValue","resolvedCase","getPluralCase","applyIcuSwitchCaseRemove","removeCodes","nodeOrIcuIndex","loadIcuContainerVisitor","_stack","_removes","_index","enterIcu","icuContainerIteratorNext","removeOpCode","icuContainerIteratorStart","BINDING_REGEXP","ICU_REGEXP","NESTED_ICU","ICU_BLOCK_REGEXP","SUBTEMPLATE_REGEXP","PH_REGEXP","NGSP_UNICODE_REGEXP","createTNodeAndAddOpCode","existingTNodes","createOpCodes","isICU","i18nNodeIdx","ensureIcuContainerVisitorLoaded","loader","setTNodeInsertBeforeIndex","assertEqual","i18nStartFirstCreatePassProcessTextNode","hasBinding","generateBindingUpdateOpCodes","destinationNode","bindingStart","maskIndex","sizeIndex","textParts","textValue","toMaskBit","countBindings","opCodes","removeInnerTemplateTranslation","tagMatched","inTemplate","icuStart","bindingMask","addUpdateIcuSwitch","mainBinding","setTIcu","valueArr","nestedIcus","icuIndex","parseIcuCase","addUpdateIcuUpdate","parseICUBlock","icuType","i18nParseTextIntoPartsAndICU","blocks","prevPos","braceStack","caseName","unsafeCaseHtml","inertRootNode","walkIcuTree","sharedUpdateOpCodes","addCreateNodeAndAppend","lowerAttrName","addCreateAttribute","addRemoveNode","COMMENT_NODE","isNestedIcu","addRemoveNestedIcu","appendToParentIdx","createAtIdx","icuCreateOpCode","ɵɵi18nStart","messageIndex","subTemplateIndex","i18nStartFirstCreatePass","parentTNodeIndex","existingTNodeStack","getTranslationForTemplate","isRootTemplateMessage","msgParts","replaceNgsp","isClosing","tI18n","applyCreateOpCodes","isComment","appendNow","ɵɵi18n","ɵɵi18nEnd","ɵɵi18nAttributes","i18nAttributesFirstPass","previousElementIndex","ɵɵi18nExp","setMaskBit","hasChange","ɵɵi18nApply","applyI18n","resolveProvider","lInjectablesBlueprint","providerFactory","beginIndex","existingFactoryIndex","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesProvidersFactoryExist","doesViewProvidersFactoryExist","multiFactory","factoryFn","componentProviders","multiFactoryAdd","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","contextIndex","indexInFactory","providerIsTypeProvider","providerIsClassProvider","isClassProvider","existingCallbacksIndex","isComponentProvider","lData","multiResolve","factories","componentCount","multiProviders","ɵɵProvidersFeature","viewProviders","processProvidersFn","NgModuleRef$1","NgModuleFactory$1","createNgModule","NgModuleRef","_bootstrapComponents","destroyCbs","_r3Injector","NgModuleFactory","moduleType","EnvironmentNgModuleRefAdapter","createEnvironmentInjector","debugName","StandaloneService","cachedInjectors","getOrCreateStandaloneInjector","standaloneInjector","ɵɵStandaloneFeature","ɵɵpureFunction0","slotOffset","pureFn","ɵɵpureFunction1","pureFunction1Internal","ɵɵpureFunction2","pureFunction2Internal","ɵɵpureFunction3","pureFunction3Internal","ɵɵpureFunction4","pureFunction4Internal","ɵɵpureFunction5","exp5","ɵɵpureFunction6","exp6","ɵɵpureFunction7","exp7","ɵɵpureFunction8","exp8","ɵɵpureFunctionV","exps","pureFunctionVInternal","getPureFunctionReturnValue","returnValueIndex","lastReturnValue","bindingRoot","ɵɵpipe","pipeName","getPipeDef","pipeFactory","pipeInstance","ɵɵpipeBind1","isPure","ɵɵpipeBind2","ɵɵpipeBind3","ɵɵpipeBind4","ɵɵpipeBindV","_wrapInTimeout","EventEmitter_","isAsync","__isAsync","nextFn","errorFn","completeFn","symbolIterator","_emitDistinctChangesOnly","dirty","_changesDetected","_changes","resultsTree","identityAccessor","newResultFlat","arrayEquals","valueA","valueB","notifyOnChanges","setDirty","TemplateRef","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","declarationViewLQueries","createTemplateRef","ViewContainerRef","injectViewContainerRef","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","getViewRefs","indexOrOptions","insert","componentFactoryOrType","isComponentFactory","isType","ngModuleRef","contextInjector","viewAttachedToContainer","prevIdx","prevLContainer","prevVCRef","adjustedIdx","_adjustIndex","insertView","containerLength","trackMovedView","addViewToContainer","parentNativeNode","getOrCreateViewRefs","viewRefsArr","detachedView","commentNode","nativeNextSibling","LQuery_","queryList","LQueries_","tQueries","noOfInheritedQueries","viewLQueries","tQuery","getByIndex","indexInDeclarationView","dirtyQueriesWithMatches","getTQuery","TQueryMetadata_","TQueries_","queriesForTemplateRef","childQueryIndex","tqueryClone","tquery","TQuery_","crossesNgTemplate","_appliesToNextNode","_declarationNodeIndex","isApplyingToNode","matchTNode","addMatch","declarationNodeIdx","matchTNodeWithReadOption","getIdxOfMatchingSelector","nodeMatchIdx","directiveOrProviderIdx","matchIdx","createResultForNode","matchingIdx","createResultByTNodeType","createSpecialToken","materializeViewResults","queryIndex","lQuery","tQueryMatches","matchedNodeIdx","collectQueryResults","lViewResults","embeddedLViews","ɵɵqueryRefresh","isCreationMode","ɵɵviewQuery","createTQuery","createLQuery","ɵɵcontentQuery","saveContentQueryAndDirectiveIndex","tViewContentQueries","ɵɵloadQuery","loadQueryInternal","ɵɵtemplateRefExtractor","Input","bindingPropertyName","Output","HostListener","ApplicationInitStatus","appInits","initialized","donePromise","runInitializers","asyncInitPromises","initResult","observableAsPromise","_appIdRandomProviderFactory","_randomChar","random","PLATFORM_INITIALIZER","APP_BOOTSTRAP_LISTENER","Console","getGlobalLocale","$localize","ModuleWithComponentFactories","ngModuleFactory","componentFactories","Compiler","compileModuleSync","compileModuleAsync","compileModuleAndAllComponentsSync","declaration","compileModuleAndAllComponentsAsync","clearCache","clearCacheFor","getModuleId","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","hasPendingMacrotasks","hasPendingMicrotasks","onUnstable","onMicrotaskEmpty","_nesting","_outer","_inner","AsyncStackTaggingZoneSpec","TaskTrackingZoneSpec","longStackTraceZoneSpec","lastRequestAnimationFrameId","nativeRequestAnimationFrame","getNativeRequestAnimationFrame","nativeCancelAnimationFrame","unpatchedRequestAnimationFrame","unpatchedCancelAnimationFrame","forkInnerZoneWithAngularBehavior","delayChangeDetectionForEventsDelegate","delayChangeDetectionForEvents","isCheckStableRunning","fakeTopEventTask","updateMicroTaskStatus","checkStable","isAngularZone","onEnter","onLeave","_hasPendingMicrotasks","isInAngularZone","EMPTY_PAYLOAD","NoopNgZone","TESTABILITY","TESTABILITY_GETTER","_testabilityGetter","Testability","testabilityGetter","_pendingCount","_isZoneStable","_didWork","taskTrackingZone","setTestabilityGetter","getter","addToWindow","_watchAngularEvents","assertNotInAngularZone","_runCallbacksIfReady","increasePendingRequestCount","decreasePendingRequestCount","timeoutId","doneCb","getPendingTasks","updateCb","macroTasks","creationLocation","addCallback","whenStable","getPendingRequestCount","registerApplication","unregisterApplication","findProviders","using","exactMatch","TestabilityRegistry","_applications","testability","unregisterAllApplications","getTestability","getAllTestabilities","getAllRootElements","findTestabilityInTree","findInAncestors","_platformInjector","ALLOW_MULTIPLE_PLATFORMS","PLATFORM_DESTROY_LISTENERS","NgProbeToken","createPlatformFactory","parentPlatformFactory","extraProviders","getPlatform","platformProviders","createPlatform","PlatformRef","runPlatformInitializers","inits","createPlatformInjector","assertPlatform","requiredToken","_modules","_destroyListeners","bootstrapModuleFactory","moduleFactory","getNgZone","ngZoneToUse","getNgZoneOptions","ngZoneEventCoalescing","ngZoneRunCoalescing","ngZoneInjector","moduleRef","exceptionHandler","_callAndReportToErrorHandler","initStatus","_moduleDoBootstrap","compilerOptions","optionsReducer","compileNgModuleFactory","ngDoBootstrap","destroyListeners","objs","_exceptionHandler","_bootstrapListeners","_views","_runningTick","_stable","componentTypes","_onMicrotaskEmptySubscription","tick","isCurrentlyStable","stableSub","unstableSub","assertInAngularZone","merge$1","componentOrFactory","cf","compRef","_loadComponent","NG_DEV_MODE","warnIfDestroyed","_devMode","_runModeLocked","isDevMode","ChangeDetectorRef","injectChangeDetectorRef","createViewRef","isPipe","DefaultIterableDifferFactory","trackByFn","DefaultIterableDiffer","trackByIdentity","_linkedRecords","_unlinkedRecords","_previousItHead","_itHead","_itTail","_additionsHead","_additionsTail","_movesHead","_movesTail","_removalsHead","_removalsTail","_identityChangesHead","_identityChangesTail","forEachItem","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","_nextRemoved","localMovePreviousIndex","localCurrentIndex","forEachPreviousItem","_nextPrevious","_nextAdded","forEachMovedItem","_nextMoved","_nextIdentityChange","collection","check","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","defaultKeyValueDiffersFactory","KeyValueDiffers","kv","platformCore","ApplicationModule","coerceToBoolean","elementInjector","BaseControlValueAccessor","onChange","onTouched","registerOnTouched","registerOnChange","setDisabledState","BuiltInControlValueAccessor","NG_VALUE_ACCESSOR","CHECKBOX_VALUE_ACCESSOR","CheckboxControlValueAccessor","writeValue","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","COMPOSITION_BUFFER_MODE","_compositionMode","_composing","_isAndroid","ɵgetDOM","getUserAgent","_handleInput","_compositionStart","_compositionEnd","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","Validators","minValidator","control","maxValidator","requiredValidator","requiredTrueValidator","emailValidator","email","minLength","minLengthValidator","minlength","requiredLength","actualLength","maxLength","maxLengthValidator","patternValidator","nullValidator","regexStr","requiredPattern","actualValue","validators","compose","composeAsync","maxlength","isPresent","toObservable","mergeErrors","arrayOfErrors","executeValidators","validator","normalizeValidators","isValidatorFn","validate","presentValidators","composeValidators","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","_rawValidators","getControlAsyncValidators","_rawAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","validatorsToAdd","removeValidators","AbstractControlDirective","_onDestroyCallbacks","valid","invalid","pristine","touched","untouched","statusChanges","valueChanges","_setValidators","_composedValidatorFn","_setAsyncValidators","_composedAsyncValidatorFn","asyncValidator","_registerOnDestroy","_invokeOnDestroyCallbacks","errorCode","getError","ControlContainer","formDirective","NgControl","valueAccessor","AbstractControlStatus","cd","_cd","isTouched","isUntouched","isPristine","isInvalid","isPending","isSubmitted","submitted","NgControlStatus","NgControlStatusGroup","VALID","INVALID","PENDING","DISABLED","pickValidators","validatorOrOpts","isOptionsObj","coerceToValidator","pickAsyncValidators","asyncValidators","coerceToAsyncValidator","assertControlPresent","isGroup","controls","assertAllValuesPresent","_forEachChild","AbstractControl","_pendingDirty","_hasOwnPendingAsyncValidator","_pendingTouched","_onCollectionChange","_onDisabledChange","validatorFn","asyncValidatorFn","updateOn","_updateOn","setValidators","setAsyncValidators","addAsyncValidators","removeAsyncValidators","hasAsyncValidator","clearValidators","clearAsyncValidators","markAsTouched","onlySelf","markAllAsTouched","markAsUntouched","_updateTouched","markAsDirty","markAsPristine","_updatePristine","markAsPending","emitEvent","skipPristineCheck","_parentMarkedDirty","_updateValue","_updateAncestors","changeFn","updateValueAndValidity","setParent","getRawValue","_setInitialStatus","_cancelExistingSubscription","_runValidator","_calculateStatus","_runAsyncValidator","_updateTreeValidity","ctrl","_allControlsDisabled","_asyncValidationSubscription","setErrors","_updateControlsErrors","currPath","_find","_initObservables","_anyControlsHaveStatus","_anyControls","_anyControlsDirty","_anyControlsTouched","_registerOnCollectionChange","_setUpdateStrategy","FormGroup","_setUpControls","registerControl","addControl","removeControl","setControl","controlName","patchValue","_reduceChildren","acc","_syncPendingControls","subtreeUpdated","updated","_reduceValue","initValue","FormRecord","controlPath","setUpControl","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","model","syncPendingControls","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","isBuiltInAccessor","formDirectiveProvider$1","NgForm","resolvedPromise$1","_directives","ngSubmit","_findContainer","getControl","addFormGroup","removeFormGroup","getFormGroup","updateModel","onSubmit","$event","onReset","resetForm","removeListItem","isFormControlState","formState","FormControl","_onChange","_applyFormState","nonNullable","initialValueIsDefault","emitViewToModelChange","formControlBinding$1","NgModel","resolvedPromise","_registered","_checkForErrors","_checkName","oldName","_getPath","_setUpControl","_updateDisabled","_isStandalone","_setUpStandalone","_checkParentType","disabledValue","ɵcoerceToBoolean","ɵNgNoValidate","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistryModule","RadioControlRegistry","_accessors","_isSameGroup","fireUncheck","controlPair","_control","_registry","_fn","formControlName","NG_MODEL_WITH_FORM_CONTROL_WARNING","formControlBinding","FormControlDirective","_ngModelWarningConfig","_ngModelWarningSent","_isControlChanged","previousForm","_ngModelWarningSentOnce","formDirectiveProvider","FormGroupDirective","_updateDomValue","_checkFormPresent","_updateValidators","_updateRegistrations","_oldForm","removeListItem$1","_setUpFormContainer","_cleanUpFormContainer","addFormArray","removeFormArray","getFormArray","oldCtrl","newCtrl","isFormControl","cleanUpFormContainer","controlNameBinding","FormControlName","_added","SELECT_VALUE_ACCESSOR","SelectControlValueAccessor","_buildValueString$1","_optionMap","_idCounter","_compareWith","valueString","_getOptionId","_getOptionValue","_registerOption","_extractId$1","NgSelectOption","_select","ngValue","_setElementValue","SELECT_MULTIPLE_VALUE_ACCESSOR","SelectMultipleControlValueAccessor","_buildValueString","optionSelectedStateSetter","opt","_setSelected","selectedOptions","_extractId","ɵNgSelectMultipleOption","AbstractValidatorDirective","_validator","inputName","normalizeInput","createValidator","REQUIRED_VALIDATOR","RequiredValidator","CHECKBOX_REQUIRED_VALIDATOR","CheckboxRequiredValidator","MAX_LENGTH_VALIDATOR","MaxLengthValidator","ɵInternalFormsSharedModule","FormsModule","ReactiveFormsModule","warnOnNgModelWithFormControl","FormArray","at","_registerControl","removeAt","isAbstractControlOptions","FormBuilder","useNonNullable","nnfb","reducedControls","_reduceControls","createdControls","_createControl","MATERIAL_SANITY_CHECKS","MATERIAL_SANITY_CHECKS_FACTORY","MatCommonModule","_sanityChecks","_hasDoneGlobalChecks","_checkIsEnabled","mixinDisabled","mixinColor","defaultColor","color","_color","colorPalette","mixinDisableRipple","_disableRipple","disableRipple","mixinTabIndex","defaultTabIndex","_tabIndex","mixinErrorState","errorState","updateErrorState","oldState","newState","errorStateMatcher","_defaultErrorStateMatcher","isErrorState","ngControl","_parentFormGroup","_parentForm","stateChanges","ErrorStateMatcher","MatLine","setLines","setClass","MatLineModule","RippleRef","_animationForciblyDisabledThroughCss","fadeOut","fadeOutRipple","defaultRippleAnimationConfig","enterDuration","exitDuration","passiveEventOptions","pointerDownEvents","pointerUpEvents","RippleRenderer","_target","_isPointerDown","_activeRipples","_pointerUpEventsRegistered","fadeInRipple","animationConfig","centered","radius","distanceToFurthestCorner","distX","distY","sqrt","ripple","transitionDuration","computedStyles","userTransitionDuration","animationForciblyDisabledThroughCss","transitionProperty","rippleRef","persistent","_mostRecentTransientRipple","eventListeners","onTransitionEnd","_finishRippleTransition","onTransitionCancel","_destroyRipple","rippleEl","fadeOutAll","_getActiveRipples","fadeOutAllNonPersistent","setupTriggerEvents","_triggerElement","_removeTriggerEvents","_registerEvents","_onTouchStart","_onPointerUp","_startFadeOutTransition","isMostRecentTransientRipple","isFakeMousedown","_lastTouchStartEvent","rippleDisabled","clientX","clientY","rippleConfig","terminateOnPointerUp","eventTypes","MAT_RIPPLE_GLOBAL_OPTIONS","MatRipple","globalOptions","_animationMode","_globalOptions","_rippleRenderer","_setupTriggerEventsIfEnabled","_trigger","launch","configOrX","MatRippleModule","MatPseudoCheckbox","MatPseudoCheckboxModule","MAT_OPTION_PARENT_COMPONENT","MAT_OPTGROUP","MatOptionSelectionChange","isUserInput","_MatOptionBase","_mostRecentViewValue","onSelectionChange","multiple","viewValue","_getHostElement","_emitSelectionChangeEvent","_handleKeydown","_selectViaInteraction","_getAriaSelected","_getTabIndex","MatOption","_countGroupLabelsBeforeOption","optionIndex","optionGroups","optionsArray","groupCounter","_getOptionScrollPosition","optionOffset","optionHeight","currentScrollPosition","panelHeight","MatOptionModule","_r10","ctx_r9","ctx_r12","_r16","ctx_r15","ctx_r17","MAT_ERROR","matFormFieldAnimations","transitionMessages","MatFormFieldControl","_MAT_HINT","MatLabel","MatPlaceholder","MAT_PREFIX","MAT_SUFFIX","_MatFormFieldBase","MAT_FORM_FIELD_DEFAULT_OPTIONS","MAT_FORM_FIELD","MatFormField","_defaults","_outlineGapCalculationNeededImmediately","_outlineGapCalculationNeededOnStable","_hideRequiredMarker","_showAlwaysAnimate","_subscriptAnimationState","_hintLabel","_hintLabelId","_labelId","floatLabel","_getDefaultFloatLabelState","_animationsEnabled","appearance","hideRequiredMarker","_appearance","_shouldAlwaysFloat","_canLabelFloat","hintLabel","_processHints","_floatLabel","_explicitFormFieldControl","_controlNonStatic","_controlStatic","getLabelId","_hasFloatingLabel","getConnectedOverlayOrigin","_connectionContainerRef","_validateControlChild","controlType","_validatePlaceholders","_syncDescribedByIds","updateOutlineGap","_prefixChildren","_suffixChildren","_hintChildren","_errorChildren","_shouldForward","_hasPlaceholder","_placeholderChild","_hasLabel","_labelChildNonStatic","_labelChildStatic","_shouldLabelFloat","shouldLabelFloat","_hideControlPlaceholder","_getDisplayedMessages","_animateAndLockLabel","_label","_validateHints","userAriaDescribedBy","startHint","hint","align","endHint","setDescribedByIds","labelEl","outlineStartSelector","outlineGapSelector","gapElements","_isAttachedToDOM","startWidth","gapWidth","startEls","gapEls","containerStart","_getStartEnd","labelChildren","labelStart","labelWidth","outlineGapPadding","_c0","_c1","_c2","_c3","i4","MatFormFieldModule","MatIconModule","ctx_r2","ctx_r5","_r9","ctx_r8","ctx_r10","matSelectAnimations","transformPanelWrap","transformPanel","SELECT_PANEL_MAX_HEIGHT","MAT_SELECT_SCROLL_STRATEGY","MAT_SELECT_CONFIG","MAT_SELECT_SCROLL_STRATEGY_PROVIDER","MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY","MatSelectChange","_MatSelectMixinBase","MAT_SELECT_TRIGGER","MatSelectTrigger","_MatSelectBase","_parentFormField","_liveAnnouncer","_panelOpen","o1","o2","_uid","_triggerAriaLabelledBy","_destroy","_onTouched","_valueId","_panelDoneAnimatingStream","_overlayPanelClass","overlayPanelClass","_focused","_disableOptionCentering","disableOptionCentering","optionSelectionChanges","option","openedChange","_openedStream","_closedStream","selectionChange","valueChange","typeaheadDebounceInterval","_typeaheadDebounceInterval","focused","_required","_selectionModel","_initializeSelection","_assignValue","_panelDoneAnimating","panelOpen","_initKeyManager","_resetOptions","newAriaLabelledby","_getTriggerAriaLabelledby","_previousControl","_keyManager","_canOpen","_highlightCorrectOption","triggerValue","_handleOpenKeydown","_handleClosedKeydown","isArrowKey","isOpenKey","manager","previouslySelectedOption","selectedOption","hasDeselectedOptions","previouslyFocusedIndex","_onAttached","_overlayDir","_positioningSettled","_getPanelTheme","_setSelectionByValue","_selectOptionByValue","_sortValues","correspondingOption","panel","_scrollOptionIntoView","changedOrDestroyed","_onSelect","wasSelected","_propagateChanges","sortComparator","valueToEmit","_getChangeEvent","_getPanelAriaLabelledby","labelId","ariaLabelledby","_getAriaActiveDescendant","isOpen","onContainerClick","MatSelect","_scrollTop","_triggerFontSize","_transformOrigin","_positions","_calculateOverlayScroll","scrollBuffer","maxScroll","itemHeight","_getItemHeight","_triggerRect","fontSize","_calculateOverlayPosition","labelCount","_calculateOverlayOffsetX","viewportSize","paddingWidth","SELECT_MULTIPLE_PANEL_PADDING_X","SELECT_PANEL_PADDING_X","_calculateOverlayOffsetY","optionHeightAdjustment","maxOptionsDisplayed","optionOffsetFromPanelTop","_getItemCount","_checkOverlayWithinViewport","topSpaceAvailable","bottomSpaceAvailable","panelHeightTop","panelHeightBottom","_adjustPanelUp","_adjustPanelDown","_getOriginBasedOnOption","distanceBelowViewport","distanceAboveViewport","selectedOptionOffset","i7","i8","MatSelectModule","MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS","disableToggleValue","MAT_SLIDE_TOGGLE_VALUE_ACCESSOR","MatSlideToggle","MatSlideToggleChange","checked","_MatSlideToggleMixinBase","_MatSlideToggleBase","animationMode","idPrefix","_checked","labelPosition","toggleChange","_noopAnimations","_uniqueId","inputId","_createChangeEvent","focusMonitor","isChecked","_onChangeEvent","_inputElement","_onInputClick","_onLabelTextChange","_MatSlideToggleRequiredValidatorModule","MatSlideToggleModule","activeEventOptions","MAT_SLIDER_VALUE_ACCESSOR","MatSlider","MatSliderChange","_MatSliderBase","_invert","_max","_min","_step","_thumbLabel","_tickInterval","_percent","_isSliding","_isActive","_tickIntervalPercent","_sliderDimensions","_controlValueAccessorChangeFn","_dirChangeSubscription","_touchId","getTouchIdForSlider","sliderHost","getPointerPositionOnPage","_lastPointerEvent","_focusHostElement","_onMouseenter","_bindGlobalEvents","_updateValueFromPosition","_valueOnSlideStart","cancelable","_emitInputEvent","findMatchingTouch","_removeGlobalEvents","_windowBlur","invert","_calculatePercentage","_roundToDecimal","thumbLabel","tickInterval","toFixed","vertical","displayValue","displayWith","blur","_blurHostElement","percent","_clamp","_shouldInvertAxis","_isMinValue","_getThumbGap","_getTrackBackgroundStyles","scale","_shouldInvertMouseCoords","_getTrackFillStyles","_getTicksContainerStyles","_getDirection","_getTicksStyles","tickSize","backgroundSize","shouldInvertAxis","side","_getThumbContainerStyles","_getSliderDimensions","_updateTickIntervalPercent","_increment","_onKeyup","triggerEvent","isTouch","endEventName","numSteps","clampedValue","exactValue","_calculateValue","closestValue","tickIntervalPercent","trackSize","isSafeNumber","percentage","_sliderWrapper","MatSliderModule","tab_r4","_r13","_r0","ctx_r14","_r18","ctx_r19","_MAT_INK_BAR_POSITIONER","_MAT_INK_BAR_POSITIONER_FACTORY","offsetLeft","MatInkBar","_inkBarPositioner","alignToElement","show","inkBar","hide","MAT_TAB_CONTENT","MatTabContent","MAT_TAB_LABEL","MAT_TAB","MatTabLabel","_closestTab","_MatTabBase","MAT_TAB_GROUP","MatTab","_closestTabGroup","textLabel","_contentPortal","isActive","templateLabel","_templateLabel","_setTemplateLabelInput","_explicitContent","_implicitContent","matTabsAnimations","translateTab","MatTabBodyPortal","_centeringSub","_leavingSub","_beforeCentering","_isCenterPosition","isCentering","_content","_afterLeavingCenter","MatTabBody","_MatTabBodyBase","_translateTabComplete","_onCentering","_onCentered","animationDuration","_computePositionAnimationState","_positionIndex","_computePositionFromOrigin","_onTranslateTabStarted","_getLayoutDirection","MAT_TABS_CONFIG","_MatTabLabelWrapperBase","MatTabLabelWrapper","getOffsetLeft","getOffsetWidth","MatPaginatedTabHeader","_scrollDistance","_selectedIndexChanged","_showPaginationControls","_disableScrollAfter","_disableScrollBefore","_disablePagination","_selectedIndex","selectFocusedIndex","indexFocused","_stopInterval","disablePagination","_previousPaginator","_handlePaginatorPress","_nextPaginator","dirChange","resize","realign","updatePagination","_alignInkBarToSelectedTab","_itemsResized","_getMaxScrollDistance","newFocusIndex","_setTabFocus","ResizeObserver","tabItems","resizeObserver","contentRect","_tabLabelCount","_scrollToLabel","_checkScrollingControls","_scrollDistanceChanged","_updateTabScrollPosition","focusIndex","_itemSelected","_onContentChanges","_currentTextContent","_checkPaginationEnabled","_isValidIndex","tab","containerEl","_tabListContainer","scrollDistance","translateX","_tabList","_scrollTo","_scrollHeader","_handlePaginatorClick","labelIndex","selectedLabel","viewLength","labelBeforePos","labelAfterPos","_tabListInner","beforeVisiblePos","afterVisiblePos","selectedItem","selectedLabelWrapper","_inkBar","mouseEvent","maxScrollDistance","_MatTabHeaderBase","viewportRuler","MatTabHeader","_c4","_c5","_c6","_c7","MatTabChangeEvent","_MatTabGroupMixinBase","_MatTabGroupBase","defaultConfig","_tabs","_indexToSelect","_lastFocusedTabIndex","_tabBodyWrapperHeight","_tabsSubscription","_tabLabelSubscription","_dynamicHeight","headerPosition","_preserveContent","selectedIndexChange","focusChange","animationDone","selectedTabChange","_groupId","dynamicHeight","contentTabIndex","_animationDuration","_contentTabIndex","_backgroundColor","indexToSelect","_clampTabIndex","isFirstRun","_tabBodyWrapper","_subscribeToAllTabChanges","_subscribeToTabLabels","tabs","selectedTab","_allTabs","realignInkBar","_tabHeader","focusTab","header","_focusChanged","_getTabLabelId","_getTabContentId","_setTabBodyWrapperHeight","tabHeight","_removeTabBodyWrapperHeight","_handleClick","tabHeader","_tabFocusChanged","MatTabGroup","_c8","_c9","i1$2","_MatTabNavBase","updateActiveLink","tabPanel","_activeTabId","_getRole","MatTabNav","MatTabLink","_MatTabLinkMixinBase","_MatTabLinkBase","_tabNavBar","globalRippleOptions","_handleFocus","click","_getAriaControls","_getAriaCurrent","tabNavBar","_tabLinkRipple","MatTabsModule","PANEL_CLASS","passiveListenerOptions","MAT_TOOLTIP_SCROLL_STRATEGY","MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER","MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY","MAT_TOOLTIP_DEFAULT_OPTIONS","MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY","showDelay","hideDelay","touchendHideDelay","_MatTooltipBase","_ariaDescriber","_viewInitialized","_pointerExitEventsInitialized","_cssClassPrefix","_showDelay","_hideDelay","touchGestures","_passiveListeners","_updatePosition","_tooltipInstance","_setupPointerEnterEventsIfNeeded","_mouseLeaveHideDelay","_isTooltipVisible","_updateTooltipMessage","tooltipClass","_tooltipClass","_setTooltipClass","_touchstartTimeout","_cancelPendingAnimations","_portal","_tooltipComponent","afterHidden","scrollableAncestors","_updateCurrentPositionClass","_handleBodyInteraction","disableTooltipInteractivity","_getOrigin","_getOverlayPosition","_addOffset","isLtr","originPosition","_invertPosition","overlayPosition","_markForCheck","_currentPosition","classPrefix","_platformSupportsMouseEvents","_setupPointerExitEventsIfNeeded","_disableNativeGesturesIfNecessary","_addListeners","exitListeners","newTarget","_wheelListener","touchendListener","elementUnderPointer","gestures","msUserSelect","webkitUserSelect","MozUserSelect","webkitUserDrag","touchAction","MatTooltip","scrollDispatcher","ariaDescriber","TooltipComponent","_TooltipComponentBase","_closeOnInteraction","_isVisible","_onHide","_hideTimeoutId","_showTimeoutId","_toggleVisibility","_handleMouseLeave","_finalizeAnimation","_onShow","_handleAnimationEnd","animationName","_showAnimation","_hideAnimation","toVisible","tooltip","_tooltip","showClass","hideClass","_breakpointObserver","_isHandset","MatTooltipModule","GenericBrowserDomAdapter","ɵDomAdapter","supportsDOMEvents","BrowserDomAdapter","ɵsetRootDomAdapter","onAndCancel","dispatchEvent","getDefaultDocument","createHtmlDocument","isShadowRoot","DocumentFragment","getBaseElementHref","baseElement","relativePath","urlParsingNode","pathName","resetBaseElement","getCookie","TRANSITION_ID","SERVER_TRANSITION_PROVIDERS","appInitializerFactory","transitionId","dom","BrowserXhr","EVENT_MANAGER_PLUGINS","EventManager","plugins","_eventNameToPlugin","_plugins","_findPluginFor","addGlobalEventListener","getZone","plugin","EventManagerPlugin","SharedStylesHost","_stylesSet","addStyles","additions","onStylesAdded","getAllStyles","DomSharedStylesHost","_hostNodes","_addStylesToHost","styleNodes","styleEl","addHost","hostNode","removeHost","styleNode","NAMESPACE_URIS","svg","xhtml","xlink","xml","xmlns","math","COMPONENT_REGEX","compId","decoratePreventDefault","eventHandler","DomRendererFactory2","eventManager","sharedStylesHost","appId","rendererByCompId","defaultRenderer","DefaultDomRenderer2","EmulatedEncapsulationDomRenderer2","applyToHost","ShadowDomRenderer","createElementNS","isTemplateNode","namespaceUri","setAttributeNS","removeAttributeNS","contentAttr","shimContentAttribute","componentShortId","hostAttr","shimHostAttribute","hostEl","nodeOrShadowRoot","DomEventsPlugin","MODIFIER_KEYS","_keyMap","Del","Esc","Left","Right","Up","Down","Menu","Scroll","Win","MODIFIER_KEY_GETTERS","alt","KeyEventsPlugin","parseEventName","parsedEvent","outsideHandler","eventCallback","fullKey","domEventName","_normalizeKey","codeIX","modifierName","fullKeyCode","keycode","modifierGetter","matchEventFullKeyCode","keyName","platformBrowser","ɵPLATFORM_BROWSER_ID","initDomAdapter","makeCurrent","ɵsetDocument","BROWSER_MODULE_PROVIDERS_MARKER","TESTABILITY_PROVIDERS","ɵTESTABILITY_GETTER","BrowserGetTestability","ɵglobal","testabilities","didWork","decrement","didWork_","ɵTESTABILITY","BROWSER_MODULE_PROVIDERS","ɵINJECTOR_SCOPE","providersAlreadyPresent","Title","getTitle","newTitle","createTitle","makeStateKey","TransferState","onSerializeCallbacks","hasKey","onSerialize","toJson","retrieveTransferredState","initialState","unescapeHtml","unescapedText","BrowserTransferStateModule","DomSanitizer","DomSanitizerImpl","ɵallowSanitizationBypassAndThrow","ɵunwrapSafeValue","ɵ_sanitizeHtml","ɵ_sanitizeUrl","bypassSecurityTrustHtml","ɵbypassSanitizationTrustHtml","bypassSecurityTrustStyle","ɵbypassSanitizationTrustStyle","bypassSecurityTrustScript","ɵbypassSanitizationTrustScript","bypassSecurityTrustUrl","ɵbypassSanitizationTrustUrl","bypassSecurityTrustResourceUrl","ɵbypassSanitizationTrustResourceUrl","domSanitizerImplFactory","takeLast","PRIMARY_OUTLET","RouteTitleKey","ParamsAsMap","convertToParamMap","defaultUrlMatcher","segmentGroup","route","pathMatch","hasChildren","posParams","segment","consumed","shallowEqual","equalArraysOrString","aSorted","bSorted","wrapIntoObservable","ɵisObservable","pathCompareMap","exact","equalSegmentGroups","containee","matrixParams","equalPath","matrixParamsMatch","numberOfChildren","subset","containsSegmentGroup","paramCompareMap","equalParams","containsParams","ignored","containsTree","fragment","containsSegmentGroupHelper","containeePaths","containerPaths","containeeSegment","UrlTree","queryParamMap","_queryParamMap","DEFAULT_SERIALIZER","serialize","UrlSegmentGroup","serializePaths","UrlSegment","parameterMap","_parameterMap","serializePath","as","bs","UrlParser","parseRootSegment","parseQueryParams","parseFragment","serializeSegment","serializeQueryParams","strParams","encodeUriQuery","encodeUriFragment","encodeURI","mapChildrenIntoArray","childOutlet","encodeUriString","encodeUriSegment","decode","decodeQuery","serializeMatrixParams","SEGMENT_RE","matchSegments","QUERY_PARAM_RE","QUERY_PARAM_VALUE_RE","remaining","consumeOptional","peekStartsWith","parseChildren","parseQueryParam","parseSegment","parseParens","parseMatrixParams","parseParam","valueMatch","matchQueryParams","matchUrlQueryParamValue","decodedKey","decodedVal","currentVal","allowPrimary","outletName","createRoot","rootCandidate","te","squashSegmentGroup","newChildren","childCandidate","mergeTrivialChildren","isUrlTree","createUrlTree","commands","nav","computeNavigation","Navigation","numberOfDoubleDots","cmd","cmdIdx","segmentPath","urlPart","partIndex","toRoot","createTreeUsingPathIndex","lastPathIndex","startingPosition","findStartingPosition","createPositionApplyingDoubleDots","ci","dd","isMatrixParams","snapshot","_urlSegment","processChildren","updateSegmentGroupChildren","updateSegmentGroup","_lastPathIndex","isCommandWithOutlets","oldRoot","oldSegmentGroup","newSegmentGroup","qp","replaceSegment","newRoot","oldSegment","newSegment","cmdWithOutlet","prefixedWith","currentCommandIndex","currentPathIndex","noMatch","pathIndex","commandIndex","curr","slicedCommands","createNewSegmentGroup","getOutlets","createNewSegmentChildren","RouterEvent","NavigationStart","navigationTrigger","restoredState","NavigationEnd","urlAfterRedirects","NavigationCancel","NavigationError","RoutesRecognized","GuardsCheckStart","GuardsCheckEnd","shouldActivate","ResolveStart","ResolveEnd","RouteConfigLoadStart","RouteConfigLoadEnd","ChildActivationStart","routeConfig","ChildActivationEnd","ActivationStart","ActivationEnd","routerEvent","Tree","_root","pathFromRoot","findNode","findPath","cc","TreeNode","nodeChildrenAsMap","RouterState","setRouterState","createEmptyState","rootComponent","createEmptyStateSnapshot","activated","ActivatedRouteSnapshot","RouterStateSnapshot","emptyUrl","emptyParams","emptyData","emptyQueryParams","ActivatedRoute","futureSnapshot","_futureSnapshot","_routerState","paramMap","_paramMap","inheritedParamsDataResolve","paramsInheritanceStrategy","inheritingStartingFrom","flattenInherited","_resolvedData","urlSegment","correctedLastPathIndex","_correctedLastPathIndex","_resolve","serializeNode","advanceActivatedRoute","nextSnapshot","shallowEqualArrays","equalParamsAndUrlSegments","equalUrlParams","equalSegments","createNode","routeReuseStrategy","prevState","shouldReuseRoute","createOrReuseChildren","shouldAttach","detachedRouteHandle","retrieve","createActivatedRoute","NAVIGATION_CANCELING_ERROR","redirectingNavigationError","urlSerializer","redirect","navigationBehaviorOptions","navigationCancelingError","redirectUrl","cancellationCode","isRedirectingNavigationCancelingError$1","isNavigationCancelingError$1","OutletContext","resolver","ChildrenOutletContexts","attachRef","contexts","onChildOutletCreated","childName","getOrCreateContext","onChildOutletDestroyed","onOutletDeactivated","onOutletReAttached","NG_DEV_MODE$7","RouterOutlet","parentContexts","changeDetector","_activatedRoute","activateEvents","deactivateEvents","attachEvents","detachEvents","activateWith","isActivated","activatedRoute","activatedRouteData","cmp","deactivate","resolverOrInjector","childContexts","OutletInjector","isComponentFactoryResolver","ɵEmptyOutletComponent","getOrCreateRouteInjectorIfNeeded","currentInjector","standardizeConfig","loadComponent","getOutlet","sortByMatchingOutlets","routes","sortedConfig","getClosestRouteInjector","_loadedInjector","ActivateRoutes","futureState","currState","forwardEvent","activate","futureRoot","currRoot","deactivateChildRoutes","activateChildRoutes","futureNode","currNode","futureChild","childOutletName","deactivateRoutes","deactivateRouteAndItsChildren","future","shouldDetach","detachAndStoreRouteSubtree","deactivateRouteAndOutlet","activateRoutes","stored","cmpFactoryResolver","CanActivate","CanDeactivate","getAllRouteGuards","getChildRouteGuards","getTokenOrFunctionIdentity","tokenOrFunction","ɵisInjectable","futurePath","checks","canDeactivateChecks","canActivateChecks","prevChildren","getRouteGuards","shouldRun","shouldRunGuardsAndResolvers","runGuardsAndResolvers","isEmptyError","INITIAL_VALUE","prioritizedGuardValue","redirectIfUrlTree","noMatch$1","consumedSegments","remainingSegments","positionalParamSegments","matchWithChecks","runCanMatchGuards","canMatch","canMatchObservables","injectionToken","guard","isCanMatch","matcher","slicedSegments","relativeLinkResolution","containsEmptyPathMatchesWithNamedOutlets","emptyPathMatch","createChildrenForEmptyPaths","primarySegment","_sourceSegment","_segmentIndexShift","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","isImmediateMatch","rawSegment","noLeftoversInUrl","NG_DEV_MODE$6","NoMatch$1","AbsoluteRedirect","absoluteRedirect","newTree","ApplyRedirects","configLoader","allowRedirects","splitGroup","rootSegmentGroup","expandSegmentGroup","noMatchError","expandChildren","expandSegment","childOutlets","sortedRoutes","expandedChild","last$1","expandSegmentAgainstRoute","matchSegmentAgainstRoute","expandSegmentAgainstRouteUsingRedirect","expandWildCardWithParamsAgainstRouteUsingRedirect","expandRegularSegmentAgainstRouteUsingRedirect","applyRedirectCommands","lineralizeSegments","newSegments","rawSegmentGroup","_loadedRoutes","cfg","getChildConfig","routerConfig","childInjector","childConfig","splitSegmentGroup","matchedOnOutlet","cs","runCanLoadGuards","canLoad","canLoadObservables","isCanLoad","shouldLoadResult","canLoadFails","applyRedirectCreateUrlTree","createSegmentGroup","createQueryParams","redirectToParams","actualParams","sourceName","updatedSegments","createSegments","redirectToSegments","actualSegments","findPosParam","findOrReturn","redirectToUrlSegment","NoMatch","Recognizer","rootComponentType","recognize","processSegmentGroup","routeState","inheritParamsAndData","routeNode","processSegment","outletChildren","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","localeCompare","processSegmentAgainstRoute","pathIndexShift","getPathIndexShift","getData","_loadedComponent","getSourceSegmentGroup","getResolve","hasEmptyPathConfig","mergedNodes","duplicateEmptyPathNode","resultNode","mergedNode","hasStaticTitle","switchTap","nextResult","TitleStrategy","buildTitle","pageTitle","getResolvedTitleForRoute","DefaultTitleStrategy","updateTitle","RouteReuseStrategy","DefaultRouteReuseStrategy","BaseRouteReuseStrategy","detachedTree","ROUTER_CONFIGURATION","ROUTES","RouterConfigLoader","compiler","componentLoaders","childrenLoaders","onLoadStartListener","loadRunner","onLoadEndListener","loadModuleFactoryOrRoutes","factoryOrRoutes","rawRoutes","requireStandaloneComponents","NG_DEV_MODE$3","DefaultUrlHandlingStrategy","newUrlPart","wholeUrl","defaultMalformedUriErrorHandler","exactMatchOptions","subsetMatchOptions","setupRouter","defaultTitleStrategy","titleStrategy","urlHandlingStrategy","router","Router","assignExtraOptionsToRouter","malformedUriErrorHandler","onSameUrlNavigation","urlUpdateStrategy","canceledNavigationResolution","rootContexts","lastSuccessfulNavigation","currentNavigation","disposed","navigationId","currentPageId","isNgZoneEnabled","events","navigated","lastSuccessfulId","afterPreactivation","ɵConsole","resetConfig","currentUrlTree","createEmptyUrlTree","rawUrlTree","browserUrlTree","routerState","targetPageId","currentRawUrl","extractedUrl","rawUrl","extras","targetSnapshot","currentRouterState","targetRouterState","guards","guardsResult","navigations","setupNavigations","processNavigations","browserPageId","ɵrouterPageId","eventsSubject","overallTransitionState","completed","initialUrl","previousNavigation","urlTransition","isBrowserTriggeredNavigation","serializeUrl","applyRedirects","applyRedirects$1","finalUrl","serializer","recognize$1","newObservableError","skipLocationChange","setBrowserUrl","routesRecognized","navStart","replaceUrl","guardsStart","checkGuards","runCanDeactivateChecks","futureRSS","currRSS","runCanDeactivate","currARS","canDeactivate","canDeactivateObservables","closestInjector","isCanDeactivate","runCanActivateChecks","fireChildActivationStart","fireActivationStart","runCanActivateChild","futureARS","canActivateChildGuardsMapped","getCanActivateChild","canActivateChild","guardsMapped","isCanActivateChild","runCanActivate","canActivateObservables","isCanActivate","guardsEnd","restoreHistory","cancelNavigationTransition","resolveStart","dataResolved","resolveData","canActivateChecksResolved","runResolve","resolveNode","getDataKeys","getResolver","resolvedData","resolveEnd","loadComponents","loaders","loadedComponent","createRouterState","navCancel","mergedTree","scheduleNavigation","navError","ee","resetRootComponentType","setTransition","initialNavigation","setUpLocationChangeListener","navigateByUrl","locationSubscription","stateCopy","parseUrl","getCurrentNavigation","navigationExtras","relativeTo","queryParamsHandling","preserveFragment","removeEmptyProps","navigate","validateCommands","matchOptions","priorPromise","generateNgRouterState","restoringFromCaughtError","targetPagePosition","resetState","resetUrlToCurrentUrlTree","routerPageId","RouterLinkWithHref","_preserveFragment","_skipLocationChange","_replaceUrl","onChanges","updateTargetUrlAndHref","routerLink","onClick","PreloadingStrategy","RouterPreloader","preloadingStrategy","setUpPreloading","preload","processRoutes","injectorForCurrentRoute","injectorForChildren","preloadConfig","loadedChildren$","recursiveLoadChildren$","loadComponent$","ROUTER_SCROLLER","RouterScroller","viewportScroller","lastId","lastSource","restoredId","scrollPositionRestoration","anchorScrolling","routerEventsSubscription","createScrollEvents","scrollEventsSubscription","consumeScrollEvents","scheduleScrollEvent","routerFeature","ɵkind","provideRoutes","getBootstrapListener","bootstrappedComponentRef","bootstrapDone","BOOTSTRAP_DONE","INITIAL_NAVIGATION","ROUTER_PRELOADER","withPreloading","ROUTER_FORROOT_GUARD","ROUTER_PROVIDERS","rootRoute","routerNgProbeToken","provideForRootGuard","useHash","scrollOffset","provideInitialNavigation","ROUTER_INITIALIZER","locationInitialized","initNavigation","afterNextNavigation","_r4","ctx_r3","_r6","RightPanelService","title$","openRightPanel$","closeRightPanel$","RightPanelComponent","rightPanelService","deviceService","modalService","closeFinish","destroy$","clickout","panelIsOpened","closeOnOutsideClick","getModalsCount","onClose","currentOpenComponentRef","onOpenSettingsClick","openSettings","hasAlerts","getDevice","isMobileDevice","RightPanelModule","PrimaveraI18nModule","ModalWrapperComponent","domService","routeHelperService","showCloseButton","modalSize","closeEvent","hasActions","backgroundColorClass","sizeClass","popupVisibilityEventSubscription","popupVisibilityChangedEvent","changeAllowFocusOnlyOnPopup","actionsHeight","unsubscribeFocusEvents","keyDownSubscriptionEvent","unFocusElementNotInsideModal","focusSubscriptionEvent","focusedElement","isElementInsideModal","unfocusedElement","findAncestorByDomElementName","routerHelperService","modalBackgroundColor","viewTitle","navigationSubscription","navigationEndEvent","popupId","popupid","destroyInjectedComponent","currentRoute","outletActivatedRouteData","injectableComponent","routeModalSize","popupSize","appendComponentToBody","closeOutlet","PanelRouterWrapperComponent","routeComponent","onOutletClose","openRightPanel","listenRightPanelClose","listenEventTitleChanges","listenViewTitleChanges","eventTitleChangedSubscription","viewTitleSubscription","bodyID","isOutletActive","i3$1","InjectorComponentsModule","MAT_CHECKBOX_DEFAULT_OPTIONS","MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY","clickAction","MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR","MatCheckbox","MatCheckboxChange","_MatCheckboxMixinBase","_MatCheckboxBase","indeterminateChange","_currentAnimationClass","_currentCheckState","_indeterminate","_syncIndeterminate","indeterminate","_transitionCheckState","_isRippleDisabled","_getAriaChecked","_getAnimationTargetElement","_getAnimationClassForCheckStateTransition","animationClass","_handleInputClick","_onInteractionEvent","_animationClasses","uncheckedToChecked","checkedToIndeterminate","uncheckedToIndeterminate","checkedToUnchecked","indeterminateToChecked","indeterminateToUnchecked","nativeCheckbox","_MatCheckboxRequiredValidatorModule","MatCheckboxModule","bound01","isOnePointZero","isPercentage","clamp01","boundAlpha","convertToPercentage","pad2","rgbToHsl","hue2rgb","rgbToHsv","rgbToHex","allow3Char","hex","convertDecimalToHex","convertHexToDecimal","parseIntFromHex","names","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","goldenrod","gold","gray","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavenderblush","lavender","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","CSS_UNIT","PERMISSIVE_MATCH3","PERMISSIVE_MATCH4","rgb","rgba","hsl","hsla","hsv","hsva","hex3","hex6","hex4","hex8","isValidCSSUnit","TinyColor","numberInputToObject","originalInput","inputToRGB","stringInputToObject","named","rgbToRgb","hsvToRgb","mod","hslToRgb","roundA","gradientType","isDark","getBrightness","isLight","toRgb","getLuminance","RsRGB","GsRGB","BsRGB","getAlpha","setAlpha","alpha","isMonochrome","toHsl","toHsv","toHsvString","toHslString","toHex","toHexString","toHex8","allow4Char","rgbaToHex","toHex8String","toHexShortString","allowShortChar","toRgbString","toPercentageRgb","fmt","toPercentageRgbString","rnd","toName","formatSet","formattedString","toNumber","lighten","brighten","darken","tint","mix","shade","desaturate","saturate","greyscale","spin","hue","rgb1","rgb2","analogous","slices","complement","monochromatic","modification","splitcomplement","onBackground","background","fg","bg","triad","polyad","tetrad","increment","equals","_r2","ctx_r1","checkboardCache","CheckboardComponent","getCheckerboard","c1","c2","checkboard","render","canvas","fillStyle","fillRect","translate","toDataURL","gridStyles","borderRadius","boxShadow","CheckboardModule","CoordinatesDirective","coordinatesChange","mousechange","mouseListening","mousemove","mouseup","mousedown","handleChange","containerWidth","containerHeight","CoordinatesModule","AlphaComponent","pointerLeft","pointerTop","gradient","AlphaModule","simpleCheckForValidColor","passed","keysToCheck","oldHue","disableAlpha","ColorMode","HEX","HSL","HSV","RGB","ColorWrap","colorChange","onChangeComplete","onSwatchHover","_onChangeCompleteSubscription","_onSwatchHoverSubscription","setState","currentColor","afterValidChange","handleSwatchHover","EditableInputComponent","uniqueId","wrapStyle","inputStyle","labelStyle","dragLabel","handleFocus","handleFocusOut","blurValue","handleKeydown","stringValue","arrowOffset","handleKeyup","handleDrag","handleMousedown","movementX","dragMax","EditableInputModule","HueComponent","hidePointer","HueModule","SaturationComponent","bright","SaturationModule","_r7","ctx_r6","_r12","ctx_r11","ctx_r13","_r17","ctx_r16","_r19","ctx_r18","ctx_r20","ctx_r21","ChromeFieldsComponent","border","toggleViews","isValidHex","ChromeComponent","circle","pointer","activeBackground","handleValueChange","ColorChromeModule","newestOnTop","ToastRef","duplicatesCount","_afterClosed","_activate","_manualClose","_resetTimeout","_countDuplicate","manualClose","manualClosed","timeoutReset","countDuplicate","afterClosed","isInactive","afterActivate","onDuplicate","resetTimeout","ToastPackage","toastId","toastType","toastRef","_onTap","_onAction","triggerTap","tapToDismiss","onTap","triggerAction","onAction","TOAST_CONFIG","DomPortalHost","BasePortalHost","_hostDomElement","_portalHost","_paneElements","positionClass","overlayContainer","_createOverlayRef","getPaneElement","_createPortalHost","ToastrService","currentlyActive","toasts","toastrConfig","iconClasses","override","_preBuildNotification","applyConfig","success","warning","toast","_findToast","activeToast","maxOpened","findDuplicate","resetOnDuplicate","countDuplicates","includeTitleDuplicates","hasDuplicateTitle","onActivateTick","_buildNotification","toastComponent","duplicate","resetTimeoutOnDuplicate","timeOut","preventDuplicates","previousToastMessage","keepInactive","autoDismiss","sanitizedMessage","enableHtml","toastPackage","toastInjector","componentInstance","ins","onShown","onHidden","DefaultGlobalConfig","closeButton","disableTimeOut","extendedTimeOut","progressBar","toastClass","titleClass","messageClass","easeTime","progressAnimation","payload","Toast","toastrService","toastClasses","originalTimeout","activateToast","sub1","sub2","sub3","displayStyle","intervalId","outsideTimeout","hideTime","outsideInterval","updateProgress","tapToast","stickAround","delayedHideToast","runInsideAngular","ToastrModule","_arrayLikeToArray","_unsupportedIterableToArray","F","_setPrototypeOf","esm_typeof","_assertThisInitialized","_isNativeReflectConstruct","_getPrototypeOf","_possibleConstructorReturn","toPrimitive","toPropertyKey","Setter","_classCallCheck","_createClass","_utcDate","ValueSetter","_Setter","_inherits","_createSuper","validateValue","priority","subPriority","DateToSystemTimezoneSetter","_Setter2","_super2","_len","_key","timestampIsSet","convertedDate","setter","EraParser","_Parser","numericPatterns","timezonePatterns","mapValue","parseFnResult","mapFn","parseNumericPattern","parseTimezonePattern","parseAnyDigitsSigned","parseNDigits","parseNDigitsSigned","dayPeriodEnumToHours","normalizeTwoDigitYear","twoDigitYear","currentYear","isCommonEra","absCurrentYear","rangeEnd","YearParser","isTwoDigitYear","normalizedTwoDigitYear","LocalWeekYearParser","ISOWeekYearParser","_flags","firstWeekOfYear","ExtendedYearParser","QuarterParser","StandAloneQuarterParser","MonthParser","StandAloneMonthParser","LocalWeekParser","setUTCWeek","dirtyWeek","ISOWeekParser","setUTCISOWeek","dirtyISOWeek","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","DateParser","isLeapYear","DayOfYearParser","setUTCDay","dirtyDay","currentDay","remainder","dayIndex","DayParser","LocalDayParser","wholeWeekDays","StandAloneLocalDayParser","ISODayParser","setUTCISODay","AMPMParser","AMPMMidnightParser","DayPeriodParser","Hour1to12Parser","isPM","Hour0to23Parser","Hour0To11Parser","Hour1To24Parser","MinuteParser","setUTCMinutes","SecondParser","setUTCSeconds","FractionOfSecondParser","setUTCMilliseconds","ISOTimezoneWithZParser","ISOTimezoneParser","TimestampSecondsParser","TimestampMillisecondsParser","parsers","notWhitespaceRegExp","compareAsc","differenceInCalendarMonths","yearDiff","monthDiff","isLastDayOfMonth","differenceInMonths","difference","isLastMonthNotFull","differenceInSeconds","roundingMethod","cloneObject","MINUTES_IN_MONTH","dirtyBaseDate","localizeOptions","offsetInSeconds","includeSeconds","nearestMonth","monthsSinceStartOfYear","years","eleven","formatRelativeLocalePlural","isSameUTCWeek","dateLeftStartOfWeek","dateRightStartOfWeek","weekdays","thisWeek","baseDate","_lastWeek","_nextWeek","weekday","item_r9","item_r15","_r20","iconAction_r2","_r14","ctx_r4","ctx_r0","item_r4","_r11","_r15","_r3","_r22","ctx_r7","_r21","_r28","ctx_r26","radioButton_r1","_r8","_r36","onFocusDataItem_r15","ctx_r38","onSelectDataItem_r16","tab_r1","_r5","node_r7","_r29","action_r24","_r34","ctx_r32","ctx_r35","_r45","ctx_r44","_r52","ctx_r50","_r55","ctx_r54","_r58","ctx_r57","title_r8","description_r9","BannerBulkActionType","Icon","Text","DropDownMenuBottomPosition","parentTop","menuSpacingY","getMenuBottomPosition","DropDownMenuTopPosition","parentHeight","getMenuTopPosition","DropDownMenuPositionEnum","Above","Below","TooltipHoverDirective","onHover","priTooltipHover","nowrapTooltip","lineClampTooltip","innerText","DropDownMenuComponent","menuSpacingX","selectedItemIndex","subItems","subItemsStyle","menuPositionLeft","menuPositionRight","borderWidth","menuRowHeight","menuStyle$","customClass","_customClass","onDocumentClick","clickedComponent","inside","onWindowResize","menuPositionUpdater","ScrollObserver","anchorElementRef","calculateInitialPosition","maxWidthPx","onRowClick","calculateSubItemsPosition","onRowMouseEnter","onSubsectionMouseLeave","errorHasLink","parentX","parentY","parentWidth","getParentElementMetadata","menuWidth","getMenuWidth","menuPositionY","getMenuPositionY","menuX","getMenuPositionX","menuPositionIsLeft","menuLeft","getStyle","onMenuPositionYChange","menuPosition","menuTop","windowScrollY","isHiddenBothSides","positionIsRight","menuRight","menuPositionIsTop","menuTopPosition","maxAvailableHeightBelow","getMaxAvailableHeightBelow","hasAvailableSpaceBelow","menuBottomPosition","maxAvailableHeightAbove","getMaxAvailableHeightAbove","isPositionLeft","spacing","getFormattedComputedStyleValue","replacedValue","menuPositionX","toPX","hasAvailableSpaceAbove","maxAvailableHeight","menuTopPx","menuLeftPx","maxHeightPx","dismissView","onDismiss","primavera_components_c0","primavera_components_c1","DropDownMenuDirective","dropDownMenuShow","dropDownMenuHide","menuPositionYChange","anchorElement","availableTriggers","DomService","closeMenuInstanceCallback","onShowDropdown","showDropdown","priDropDownMenuShow","showEventSubscription","priDropDownMenuHide","hideEventSubscription","priDropDownMenuTrigger","priDropDownMenuMaxWidth","priDropDownMenuItems","priDropDownMenuPosition","priDropDownMenuCustomClass","customPanelTemplate","BulkActionsBannerComponent","visible","iconActions","textActions","hidden","isHidden","getSubActions","subActions","subAction","executeAction","i2$1","AutofocusDirective","priAutofocus","_autofocus","FormNavigationService","_onNavigate","onNavigate","goNext","DatatabstopDirective","formNavigationService","datatabStopEmitter","_isDetail","priDatatabstop","_datatabstop","_line","_lastColumn","lastColumn","datatabstopDetail","handleKeyboardEvent","gotoNextInput","HTMLInputElement","InnerHTMLDirective","amsService","onAnchorClick","navigateToUrl","anchors","currentTarget","account","entriesMap","ro","_resizeCallback","ResizeObserverDirective","sizeChanges","unobserve","FieldsSizeEnum","Regular","ButtonActionEnum","Submit","Button","ButtonColorEnum","Theme","Grey","Info","Success","White","Black","ButtonIconSideEnum","ButtonTypeEnum","PrimaryFilled","PrimaryOutlined","SecondaryFilled","SecondaryOutlined","Tertiary","ButtonOptions","iconSide","subActionsPosition","ButtonComponent","loading","subActionsVisible","hasMainClickAction","onClickOutside","onActionClick","toggleSubActions","onSubActionClick","FormButtonType","Primary","Secondary","Danger","NextIcon","BackIcon","RemoveIcon","FormButtonStyle","margins","Stepper","isReady","currentStepIndex","totalNumberOfSteps","onNextSubscriber","onBack","onBackSubscriber","onCancel","onCancelSubscriber","onScroll","onScrollSubscriber","goBack","emitScrollEvent","DraftOperationEnum","SelectedMultipleLines","SelectAll","UnselectAll","DraftStoringStrategy","Server","InMemory","LocalStorage","LoadingStateEnum","Loading","Ready","LoadingSpinnerSizeEnum","LoadingSpinnerTypeEnum","Circular","Determinate","Indeterminate","MessageInfo","messageType","PopoverSize","CheckboxOptions","checkbox","CheckboxComponent","isDisabled$","selected$","indeterminate$","onChanged","toggleCheckbox","CircleCountComponent","setClassName","PriColorPickerComponent","colorChanged","colorInputFocus","lastValidColor","colorInputBlur","validateHexColor","triggerBlur","colorInputKeyUp","isBlur","i1$3","i2$2","PriDownloadProgressBarComponent","LoadingSpinnerComponent","customThickness","availableSizes","small","large","progressValue","renderProgress","rotate_0_25","resetRotationIn","rotate_25_50","calculateAngle","rotate_50_75","rotate_75_100","rotationVariables","rotationVariable","DatesUtil","dateFormat","enUS","pt","es","ca","enGB","it","ro$1","fr","userLocale","formattedDate","dirtyDateString","dirtyFormatString","dirtyReferenceDate","formatString","subFnOptions","setters","usedTokens","_iterator","_createForOfIteratorHelper","_loop","incompatibleTokens","incompatibleToken","usedToken","fullToken","_ret","uniquePrioritySetters","setterArray","_step2","_iterator2","convertToMDY","formatDistanceToNow","distanceInWords","dateSeparator","dateSplitted","DateFieldViewPipe","user","culture","systemLocale","getFormatConverted","getFormattedDate","parsedDate","formatsConverted","convertDateFormat","DropDownEditionHistoryComponent","http","i18nService","normalZIndex","nvarZIndex","modalZIndex","arrowHeight","arrowWidth","defaultMenuMaxHeight","isComponentInitialized","emailPattern","isBuilding","loadData","findElementByClassName","getZIndex","hasAction","dataLoaded","SYS_AUTHOR","SYS_AUTHOR_RES","createByBeforeDataLoaded","author","modifiedByBeforeDataLoaded","getUserDisplayNameByLogin","createdBy","requestModifiedByName","username","modifiedBy","parentElementRef","menuY","getMenuHeight","menuStyle","isPositionTop","menuHeight","i1$4","i2$3","DropDownEditionHistoryDirective","applicationRef","priDropDownEditionHistoryItems","priDropDownEditionHistoryTransformToLink","transformToLink","ErrorPageSvgComponent","PriErrorComponent","storageService","shellStateService","showDetails","useSVG","errorDetailStorageKey","getErrorInfo","setLoadingState","sessionGet","canGoToSubscriptionsPage","goToSubscriptionsPage","clearErrorFromStorage","sessionRemove","goToPreviousPage","navigateBack","redirectToSetAccountAndSubscriptionPage","goHome","isLangAssetError","errorType","onImgLoadError","FormFooterActionsComponent","isLoading$","isLoading","_c15","ExternalScripts","tinymce","EXTERNAL_SCRIPTS","getTinymce","HTML_EDITOR_VALUE_ACCESSOR","HtmlEditorFieldComponent","externalScriptsService","hasChanges","hidden$","scriptLoaded","defaultCulture","toolbarOptions","unsubscribeThemeChange","setupStyle","editorConfig","editorDefaultConfig","setEditorDisabledState","tinyMceEditor","setContent","getBody","iframes","contentDocument","setupEditor","editor","getContent","setup","content_style","content_css","branding","menubar","statusbar","automatic_uploads","contextmenu","init_instance_callback","toolbar","readonly","file_picker_types","file_picker_callback","onchange","file","files","FileReader","onload","blobCache","activeEditor","editorUpload","base64","blobInfo","blobUri","readAsDataURL","ImageSourcePipe","imageService","domSanitizer","sanitizeUrl","getImageBlob","blobUrl","i2$4","TextInitialsComponent","getInitials","rgx","initials","ImageComponent","imageSourcePipe","defaultImagePadding","_showDefaultImage","imageUrl","_imageUrl","loadImageSubscription","loadImage","defaultImageUrl","_defaultImageUrl","showDefaultImage","hasDefaultText","showImage","showText","imageStyle","defaultText","ConnectionModalContentComponent","initializationData","subMessage","submessage","tryAgainVisible","tryAgain","onLine","closeModal","i2$5","ModalContentComponent","bsModalRef","chRef","isDetailOpen","consent","showModelInfo","image","imageClass","innerDetail","hasInnerDetail","consentMessage","okVisible","yesVisible","yes","noVisible","no","cancelVisible","closeVisible","i1$5","MessagesService","toastr","isModalOpen","innerHTMLDirective","messageInfo","showModal","class","ignoreBackdropClick","showConnectionModal","i1$6","ExceptionHandlerService","messagesService","roleService","treatErrorMessagePipe","showError","retryRequest","ProgressEvent","DownloadService","exceptionHandlerService","download","encoded","downloadHttpResponseArrayBuffer","downloadHttpResponseString","downloadHttpResponseBlob","downloadPost","contentType","downloadImage","getImage","downloadFile","downloadXML","downloadCSV","csv","getFileNameFromResponse","blob","openOrDownloadBlob","base64toBlob","b64Data","byteCharacters","atob","byteArrays","byteNumbers","byteArray","downloadPDF","pdf","fileContent","mimeType","openPDFInTab","openOrDownloadFile","readAsText","fileName","createObjectURL","newWin","revokeObjectURL","contentDisposition","utfFilenameMatch","regularFilenameMatch","EditionHistoryEventModel","EditionHistoryEventService","onEvent","getOnEvent","DropDownEditionHistoryItemModel","EditionHistoryEventsModel","editionHistoryEvent","getDropDownEditionHistoryItems","dropDownEditionHistoryItem","DropDownMenuItem","dropDownMenuItem","ReplacePipe","searchValue","replaceValue","FormControlErrorComponent","formGroupDirective","invalid$","touched$","dirty$","firstError$","formInstance","formControl","checkRequiredInputs","checkFormState","setInvalidState","setTouchedState","setDirtyState","setFirstError","listenFormControlStatusChanges","formControlStatus","formControlErrors","firstErrorKey","firstErrorValue","currentFirstError","FormFieldComponent","reserveLabelSpace","isRequired$","parentForm","checkIfRequired","isRequired","_c23","InputTypeEnum","Checkbox","Color","DateTimeLocal","Email","File","Hidden","Image","Num","Password","Radio","Range","Reset","Search","Tel","Time","Url","Week","InputOptions","IsLinkInputTypePipe","LinkInputHrefPipe","InputComponent","detailClick","clearValue","modelChange","onDetailClick","showPassword","_c25","LoaderComponent","_size","borderSize","loadingStateEnum","MatSelectSearchComponent","matSelect","placeholderLabel","noEntriesFoundLabel","overlayClassSet","takeUntil$1","opened","_focus","take$1","keyManager","initMultipleHandling","setOverlayClass","onInputChange","triggerInputChange","onBlur","searchSelectInput","cdkOverlayPane","restoreSelectedValues","previousSelectedValues","optionValues","_c26","MatSelectComponent","searchEnabled","showInitialsOnImageUnavailable","allOptionsSelectedText","noOptionsSelectedText","hasErrors","searchControl","selectedOptionsText","hasResults","_visibleOptions","visibleOptions","errorClass","searchControlValueChangesSubscription","filterOptions","setDisplayMessage","onValueChange","icon","selectedOptionImageUrl","selectedOptionLabel","onOpenedChange","optionsResult","selectAllOptions","clearSelectedOptions","onImgError","_c28","i3$2","i4$1","i5$1","FullScreenModalComponent","injectedComponentRef","appendComponentToBodyAndGetReference","customInjector","PopoverComponent","windowService","arrowStyle","popoverPadding","popupStyle","recalculatePosition","setOnResizeSetInterval","calculatePosition","containerSize","SizeModel$1","updateContext","onUpdateContext","localAppRef","onSizeChange","onResize","onSizeChangeSetInterval","onDismissCallback","onCloseCallback","getMenuMaxHeight","pointerLeftPosition","windowScrollValues","getScrollValues","parentLeft","screenSize","getScreenSize","parentRight","deviceMarginTop","getMarginTop","getMarginLeft","getElementSizeByElementClassName","devicesEnum","PriPopoverDirective","priPopover","_popover","_contentRef","_componentRef","popoverComponentRef","elementBounding","componentBounding","placement","attachment","elementBoundingCenter","styleLeft","transformX","transformY","transformValue","getTranslate3dValues","ProgressBarComponent","RadioButtonGroupOptions","radioButtonGroup","RadioButtonGroupComponent","layout","BehaviorSubject$1","GuidService","setSelectedRadio","onRadioChange","radioSelected","RecordSelectorComponent","eventService","eventRecordSelector","componentFn","listDefinition","openRecordList","FormEvent","SelectBoxMultiSelectModeEnum","OnlyFromData","FreeInput","SelectBoxSelectModeEnum","SingleSelect","MultiSelect","SelectBoxSelectorModeEnum","Filterable","Unfilterable","SelectBoxFilterStrategy","isSyncFilter","isAsyncFilter","SelectBoxInputStrategy","isFreeInput","isOnlyFromData","SelectBoxSelectStrategy","isSingleSelect","isMultiSelect","SelectBoxSelectorStrategy","isFilterable","isUnfilterable","SelectBoxWriteValueStrategy","isFormValue","isManualValue","SelectBoxUnselectedItemsPipe","valueKey","selectedValue","SelectBoxService","tagWasRemoved$","inputHasFocus$","dataPanelPosition$","canClearInputValue","data$","isOpenDataPanel$","selectBoxHasFocus$","onSelectItem$","preInputValueChange$","inputValueChange$","selectedValueChange$","removeSelectedItem$","maxVisibleItems$","performFilterFn$","_inputValue","inputValue","trackByItemValueKey","onSelectDataItem","focusedItemMetadata","onFocusDataItem","focusedItem","onBlurDataItem","handleFocusInSelectBox","clickedNode","clickInMainContainer","mainContainer","clickInDataPanelContainer","dataPanelContainer","handleFocusOutSelectBox","focusedNode","isFocusOutsideMainContainer","isFocusOutsideDataPanelContainer","selectBoxHasFocus","isOpenDataPanel","hasInputValue","selectStrategy","clearInputValue","resetDataToDefault","setAndEmitInputValue","setAndEmitSelectedValue","selectedValue$","setIsLoading","multiSelectMode","keepInputVisible","filterContainer","defaultData","isEqual","SelectBoxFilterAsyncStrategy","selectBoxService","listenPerformFilterFn","asyncFilterDebounceTime","handleDataFilter","openDataPanel","asyncResult","asyncFilterFn","labelKey","SelectBoxFilterSyncStrategy","syncFilterFn","SelectBoxMultiSelectStrategy","getSelectedValue","getDataOnFocus","minFilterLength","handleSelectItem","newSelectedItems","writeValueFromData","isValidValue","dataItems","getDataItems","writeValueStrategy","setSelectedValue","typeIsValid","errorMessage","SelectBoxInputFreeStrategy","multiSelectStrategy","defineSelectedValue","prepareStrategy","handleInputFocus","handleInputValueChange","handleAccessibilityEnterClick","minFreeInputLength","emitOnSelectItem","selectedValues","SelectBoxInputOnlyFromDataStrategy","filter$1","inputElement","notFoundText","SelectBoxSelectorFilterableService","cancelAccessibilityArrowNavigation","hasFocusInFilterContext","hasData","handleOpenDataPanelFromArrowDownNavigation","SelectBoxSelectorUnfilterableService","SelectBoxSingleSelectStrategy","dataItem","getDataItem","SelectBoxWriteValueFormStrategy","SelectBoxWriteValueManuallyStrategy","SelectBoxFilterInputComponent","_SelectBoxMultiSelectModeEnum","handleEnterPress","listenInputValueChanges","onInputValueChange","inputStrategy","onInputFocus","onInputClick","handleDropDownComponentClickListener","onInputBlur","onClearFilter","onFakeZoneClick","onArrowClick","_this6","disabled$","selectorStrategy","preventInputBlur","_c30","IsEmptyArrayPipe","FromComputedStylePipe","ToFixedPipe","decimalPlaces","parsedValue","getInputStrategy","SelectBoxDataPanelComponent","leftRightBorderWidth","handleArrowUpPress","handleAccessibilityArrowUpNavigation","handleArrowDownPress","handleAccessibilityArrowDownNavigation","handleEscapeKeyDown","handleAccessibilityEscapeClick","listenOpenDataPanelChanges","listenDataChanges","hasFocusInDataItem","lastDataItemElement","lastElementChild","previousElement","firstDataItemElement","firstElementChild","nextElement","_c31","TagBadgeService","TagBadgeServiceProvider","ScopedDependencyResolver","TagBadgeComponent","tagBadgeService","customElementClass","forcePopover","hasFocus","isRemovable$","isRemovable","onRemoveClick","onFocus","PopoverModule","i2$6","SelectBoxSelectedItemsContainerComponent","_selectedItemsPopover","listenOpenDataPanel","handleRemoveSelectedItem","_c36","_c37","SelectBoxMultiSelectBehaviorComponent","inputHasFocus","_filterContainer","deltaY","listenInputHasFocus","listenOnSelectItemChanges","listenPreInputValueChanges","calculateMaxVisibleItems","filterContainerElement","itemsCounterElement","selectBoxSelectedItemsContainerComponent","dropDownArrowElement","selectBoxFilterInputComponent","tagBadgeElement","filterContainerComputedStyle","dropDownArrowComputedStyle","itemsCounterComputedStyle","tagBadgeComputedStyle","currentFilterContainerWidth","displayFlexGapWidth","minInputWidth","itemsContainerWidth","maxTagWidthPx","maxVisibleItemsWithoutGap","maxVisibleItems","_c40","SelectBoxSingleSelectBehaviorComponent","listenRemoveSelectedItemChanges","selectedValueHasValidValue","inputValueIsDistinctFromSelectedValue","SelectBoxComponent","canFilterData","hasDropdownArrow","selectBoxContainer","filterInput","filterClearIcon","selectedItemsPanel","filterChange","selectedValueChange","isOnlyFromData$","_selectedValue","_defaultData","openDataPanel$","closeDataPanel$","handleFocusInEvents","handleFocusOutEvents","setFormControlInstance","setWriteValueStrategy","setInputStrategy","setSelectStrategy","setSelectorStrategy","setFilterStrategy","startSelectBoxService","filterStrategy","listenSelectedValueChanges","listenTagRemovals","updateDataPanelPosition","onHideDataPanel","getWriteValueStrategy","getSelectStrategy","getSelectorStrategy","getFilterStrategy","customDataPanelTemplate","getSelectedIDValues","fakeMarkAsDirty","_c41","PriSliderToggleComponent","i1$7","PriSliderComponent","autoTicks","showTicks","minValueVisible","maxValueVisible","formatLabel","slider","valueChanged","sliderChange","_c42","i3$3","FormButtonComponent","isEnable","loadingState","loaderSize","formClick","_style","textSettledByParent","iconSettledByParent","styleSettledByParent","buttonStyle","buttonType","_type","setDefaultButtonStyle","_icon","setDefaultIconStyle","_text","formButtonType","getStyleClass","borderClass","buttonClass","fontSizeClass","marginClass","StepperComponent","stepChange","stepScroll","currentStep","nextDisabled","nextButtonStyle","tooltipPlacement","wrapperMargins","maxScrollBottom","_maxScrollBottom","buttonsMargin","stepperComponent","headerBottomMargin","scrollSubscription","stepperActions","goToNextStep","goToBackStep","onContentScroll","srcElement","dynamicComponent","navigationButtons","_c45","EmptyStateBulletListSvgComponent","EmptyStateChartsSvgComponent","EmptyStateChecklistSvgComponent","EmptyStateTableSvgComponent","ErrorSvgComponent","SuccessSvgComponent","TableOptionsColumnsFieldComponent","columnVisibilityChange","onColumnVisibilityChange","canChangeColumnVisibility","FullScreenModalService","injectedModalComponentRef","ModalService","bsModelRef","dismiss","onHideSubscription","CommandHandlerService","actionsHandler","executeShowMessageAction","getMessageTypeFromString","DraftModel","companyDependent","sequentialRequest","onDraftCreation","buildUrl","createExtension","getExtension","createLine","uri","createLineAbove","referenceLineId","createLineClone","lineId","deleteLine","getLineAditionalActionsModel","aditionalActionsOperationName","getLines","page","filterSelected","searchTerm","getStuff","changeHistory","fromDraft","edit","secondaryAction","validationAction","requestOptions","getEntity","lookup","detailId","detailPropertyName","isCustomAttribute","naturalKey","searchProperty","masterProperty","currentCompany","getCurrentCompany","companyFilterExpression","tap$1","imageUpload","valueList","valueListCustom","commandAction","recordSearch","getExpander","expander","detailName","unselectedIndex","pickingTrackedChanges","unselectedItems","allItemsSelected","validations","draftState","paramUri","itemValue","save","saveAndNew","deleteDraft","documentId","draftId","serviceAction","batchSelect","originalModel","editableFields","getPickingChanges","getCustom","getParameterByName","selectedItems","bulkChanges","bulkDataPlain","lineOriginal","Nt","parentPath","bulkData","detailArray","DraftModelService","defaultMode","draftIds","getParametersFromUri","panelid","getDraftId","HelpPageService","messageService","wildcardService","help","helpPageData","currentContextHelpPageId","helpPageAvailable","availableHelpPageIds","helpPageTaskQueue","defaultContextHelpPageId","openHelpCenterPage","setting","getHelpCenterBaseUrl","openUrlNewWindow","showCurrentContextHelpPage","showOnce","showShortcutsHelpPage","shortcutsButton","setDefaultContextHelpPageId","setCurrentContextHelpPageId","helpPageId","showHelpPage","isServiceReady","openNewWindow","address","newUrl","pageId","PopoverService","showPopover","popoverContext","hidePopover","updateToNewContext","RoleInterceptorService","configurationActionsAllowed","allowedOperations","extractAllowedOperationsFromDefinition","roleDefinition","interceptViewDefinition","viewDef","viewDefinition","row","interceptViewRow","operationActions","interceptOperationActions","interceptListConfiguration","listConfig","updateOperationId","updateAction","operationId","createActions","createOperationId","genericActions","listSetup","allowsusercustomization","customizationOperationId","getCustomizationOperationIdFromListConfigurationUri","listConfigSerialized","drillDown","getOperationIdFromListConfigurationUri","checkOperationAccessPromise","operationIds","checkOperationAccess","contextActions","interceptContextAction","otherActions","interceptOtherAction","interceptSecondaryAction","configurationActions","interceptConfigurationAction","containerType","columns","interceptViewColumn","interceptViewExpander","expanderDefinition","fields","interceptViewField","drilldown","interceptViewDrilldown","extensibilityConfiguration","interceptViewDetailExtensibility","viewOperationId","allowedOperationExtensibility","allowedOperationIds","containsClaims","allowExtensibilityClaim","createOperation","availableInEditMode","availableInViewMode","serviceActionId","childrenActions","childAction","interceptChildrenAction","editOperationId","deleteOperationId","Id","i2$7","UsersInvitationEvents","formModelService","formEvent","resendInvitation","setLoading","refreshPage","onModelChange","eventContext","ViewDefinitionsService","roleInterceptorService","cacheHelperService","subscriberCurrentRole","subscriberRoleDefinition","getCurrentUrlDefinition","buildViewDefinitionUrl","getOperationId","getDefinition","getDefinitionByRoleKey","getConfiguration","getLocalViewDefinitions","localViewDefinitionsPath","urlParts","localFilepath","getViewDefinitionWithExtensibility","translateElements","entityInfo","allowExtensibility","localViewDefinition","viewDefinitionSystem","cacheKeyLowerCase","generateCacheKey","toLocaleLowerCase","sessionSet","tenantKey","organizationKey","TableOptionsColumnsComponent","columnsConfigChange","columnChanged","newOrderedColumns","order","changeType","trackByColumnField","columnVisible","columnsWithoutChanged","columnsWithChanged","i4$2","TabsComponent","changeSelectedTab","defaultSelectedTab","onSelectedTabChange","i2$8","TagSelectorFilterItemComponent","removable","TagSelectorFilterPopoverListComponent","tagArray","TagSelectorFilterSearchItemComponent","SizeModel","widthInPixels","heightInPixels","PriTypeAheadComponent","onReady","insideTypeAhead","insideParentElement","onDocumentScroll","addInputEvents","subscriberDataSource","updateItems","removeInputEvents","calculateAndSetsRowSizes","getRowClass","rowIndex","rowClass","onInputKeyUp","updateListElementPosition","onSelect","onInputKeyDown","domElement","scrollIntoView","onItemSelected","keyupFn","keydownFn","inputEventFunctions","keyup","keydown","dropdownHeight","dropdownWidth","horizontalPos","verticalPos","setVerticalPosition","minWidthValue","lookupHeight","yStartPos","spaceAfterParent","yMargin","availableSpaceBeforeParent","availableSpaceAfterParent","rowElement","listContainerElement","offsetTop","parentSize","rows","findElementsByClassName","findElementsByQuery","convertNodeListOfToArrayHTMLElement","htmlElements","PriTypeAheadDirective","priTypeaheadOnSelect","listDataSource","typeaheadReady","priTypeahead","priTypeaheadOpenOnNoResult","priTypeaheadFocus","typeaheadReadySubscription","boundingElementRect","priTypeaheadDismiss","subscriberDismissEvent","priTypeaheadDestroy","subscriberDestroy","closeTypeAheadInstanceCallback","priTypeaheadAnchorElement","customStyleClass","priTypeaheadClass","itemTemplate","priTypeaheadItemTemplate","footerTemplate","priTypeaheadFooterTemplate","priTypeaheadMinWidth","subscriberTypeaheadReady","onDismissView","appendTo","dismissComponentInstanceCallback","domElem","elementToAppend","TagSelectorFilterComponent","popoverService","maxNumber","placeholderSearch","isOnFocus","moreFiltersIsVisible","internalModel","doSearch","typeaheadDataSource","typeaheadDestroy","debounceTime$1","ls","getSearchResult","filtersAnimationFn","filtersAnimation","inputContent","subjectSearchResult","onSearchCompleted","resultSearch","defaultValueTag","typeaheadAnchorElement","typeaheadAnchor","onInputFocusOut","typeaheadOnSelect","onValueChanged","openMoreFilters","isMoreFiltersOpen","removeItemCallback","moreFiltersButton","term","filtersContent","_c48","_c49","_c50","_c51","_c52","_c53","TaskCardComponent","stepsCollapsed","completedStepsCount","collapsingSteps","formattedDueDate","statusResName","expired","stepCompletionEnabled","userInitials","newStatusValue","activeStatusValue","stalledStatusValue","completedStatusValue","onClickTask","configuration","sideBar","externalOperations","calcProgress","loggedInUserId","assignedToKey","dueDate","assignmentState","assignedToPicture","assignedToDescription","onStatusChanged","toggleStepsVisibility","stepsContainer","sectionHeight","elementTransition","hideStepsHandler","hideStepsTransitionCallback","updateStepState","stepId","assignmentSteps","newStatus","onStepStatusChanged","assignmentKey","onClickStep","onAssignedToImgError","prevStatus","_c59","i5$2","PriTextAlignComponent","showAlignLeftBtn","showAlignRightBtn","showAlignCenterBtn","showJustifyBtn","handleClick","PriTextStyleComponent","showBoldBtn","showItalicBtn","showUnderlineBtn","decoration","TranslationInputOptions","TranslationResourceTextPipe","resources","TranslationModalComponent","saveTranslations","cultures","isReady$","wasChanged","isMobile","_this7","userCulture","languageNames","DisplayNames","getCultures","focusFirstInput","_this8","getI18nDefaults","mapTranslationsToCultures","mapCulturesToTranslations","translations","trackByKey","translation","inputsList","TranslationComponent","inputOptions","detailLabel","openModal","fieldName","TreeStyleEnum","Transparent","ShapedLight","ShapedGrey","TreeNodeAction","treeNodeAction","treeNode","hasMore","TreeOptions","sortEnabled","showExpandLines","DropTypeEnum","After","Before","Inside","ReserveExpanderPipe","loadingNodes","TreeComponent","nodeDrop","loadMore","nodeExpand","nodeCollapse","dropTargetIds","nodeLookup","dropActionTodo","isDragging$","loadingNodes$","_canceledByEsc","selectedNodeId","nodeId","_selectedNodeId","expandNodeAscendants","prepareDragDrop","addRootNode","addChildNode","deleteNode","indexOnRoot","indexOnDropTargets","trackByIdAndChildren","toggleNodeExpansion","getNodeExpandEvent","nodeClick","loadMoreChildren","dragMoved","clearDragClass","targetRect","oneThird","targetId","addDragClass","rootId","initialData","deepClone","draggedItemId","draggedItem","parentItemId","parentItem","targetListId","getParentNodeId","oldItemContainer","indexAtOldContainer","targetIndex","showDropDownAction","activeDropDownActionId","closeDropDownAction","parentId","findNodeById","expandItself","nodePath","ascendantNode","startLoading","stopLoading","loadingNodeId","PriWebserviceTypeaheadComponent","infoMessage","openOnNoResult","shouldDestroyTypeahead","sendValue","datatabstops","_saveProperty","_saveAsJson","stopSearch","JsonPath","jsonPath","lastSearchResults","fieldModel","saveProperty","saveAsJson","isJSON","jsonValue","valueToRestore","fieldInput","clearInfoMessage","limitValue","myJSON","lastSelectedItem","inputFieldMaxLength","serviceResultDescriptionKey","putSearchResult","parseSearchResult","setInfoMessage","finalResult","servicejsonPath","finalItem","serviceResultValueKey","serviceResultTitleKey","isStringOrNumber","getResultFromService","httpError","errorTranslations","transformedUrl","serviceUrl","removeInvalidCharacters","beforeSearch","bsDropdownModule","BsDropdownModule","popoverModule","toastrModule","ComponentsModule","usersInvitationEvents","registerScripts","BsModalService","en_GB","en_IE","es_AR","es_CL","es_MX","MRU","pt_AO","PTE","pt_CV","CVE","pt_MZ","MZN","pt_PT","BEF","CYP","FRF","IEP","ILP","MTP","RHD","WST","fr_BE","fr_CA","fr_LU","fr_CH","I18nServiceConfig","I18nService","errorsService","_resources","getResourcesFromFile","frameworkResources","resourcesFromFile","showErrorMessage","canBackToHome","canBackToPreviousPage","customResource","customResourceFromFile","_sources","getDefaultsFromFile","getDefault","getResources","openRequestCounter","verifyLastRequest","getResourcesFromSource","updateResources","twoLetterISOLanguageName","isLanguageDefault","finalSource","sourcePath","cachedResource","PriI18nDirective","_i18nService","resourceKey","PriI18nPipe","localeEnIE","localeEnGB","localePtPT","localePtMZ","localePtAO","localePtCV","localeEsES","localeEsAR","localeEsCL","localeEsMX","localeCaES","localeItIT","localeRoRO","localeFr","localeFrBE","localeFrCA","localeFrLU","localeFrCH","subDays","isSameWeek","getWeekYear","startOfWeekYear","getWeek","group_r4","BellComponent","panelIsOpenedChange","signalRConnectionStates","openNotifications","existsCriticalNotifications","cards","card","NotificationTypeEnum","CardComponent","disposeCard","notificationTypeEnum","maxSwipeValue","cardLocal","cardFormattedDate","cleanCard","touchstart","swipeStartX","touchmove","swipeValueX","animationCardMobileEnable","touchend","resetStyle","createdOn","differenceInMinutes","removeCard","animationEnable","TabsGroupsModel","PanelComponent","disposeCardGroup","maxCardsVisible","intervals","groupsIntervals","levels","groupsLevel","isMobileBrowser","refreshCards","setGroupsCards","resetPanelScroll","cardGroup","removeCardGroup","cleanGroup","groupCards","createIntervalGroups","createLevelGroups","cardGroups","isToday","isYesterday","isThisWeek","isBefore","dirtyDateToCompare","dateToCompare","startOfYesterday","cardsPanel","PriNotificationsComponent","signalRService","panelTitle","attempts","timeToReconnect","notificationsToDisposed","maxNotificationsToDisposed","convertToCard","connectionComplete","getNotifications","getNotificationsComplete","disposedComplete","sendToDispose","signalRStatus","SignalRStateEnum","_timeout","initSignalR","rightPanelModel","bell","roleSubscription","onTogglePanel","disposeNotifications","accountKey","subscriptionKey","roleKey","SignalRHelper","pnsUri","getAllNotifications","disposedItems","disposedNotification","disposedBy","getMessageByCulture","notificationType","addCard","messagesByKey","sortCards","PushNotificationsModule","item_r10","ListItemComponent","SearchService","_providers","registerProvider","reading","providersCount","SearchProvider","SearchEngineService","searchService","authorityTitle","authorityName","snippet","readFactsUrl","getShellGeneralSettings","getParameters","SanitizeHtmlPipe","SearchComponent","searchEngineService","hotkeysService","disableKeyFocus","isClearSearchKeyDown","noResultsLength","searchResults","maxNoResultsDefaultLength","mouseDown","addHotKeys","onMouseUp","searchIsActive","searchText","onMouseDown","unsubscribeHotkeys","addHotkeys","hotkey","onSearchKeyBoard","searchField","cleanText","isResultEmpty","scrollByKeyCode","navigateUrl","useCustomUri","searchResultsList","elHeight","elMaxHeight","onSearchTextChanged","performSearch","onSearchHasNoResults","searchNoResults","navigateTo","setSearchAsActive","elemFocus","inputElem","setSearchAsInactive","allowLeave","primaveraI18nModule","PrimaveraSearchModule","DEFAULT_RETRY_DELAYS_IN_MILLISECONDS","DefaultReconnectPolicy","retryDelays","_retryDelays","retryContext","HttpError","trueProto","__proto__","AbortError","UnsupportedTransportError","transport","DisabledTransportError","FailedToStartTransportError","FailedToNegotiateWithServerError","AggregateErrors","innerErrors","getCookieString","FetchHttpClient","requireFunc","__non_webpack_require__","_jar","CookieJar","_fetchType","AbortController","_abortControllerType","abortSignal","abortController","onabort","credentials","signal","deserializeContent","cookies","getCookies","arrayBuffer","XhrHttpClient","onerror","ontimeout","DefaultHttpClient","_httpClient","HeaderNames","Cookie","HttpTransportType","WebSockets","ServerSentEvents","LongPolling","TransferFormat","Binary","_isAborted","LongPollingTransport","_accessTokenFactory","_pollAbort","_running","pollAborted","_url","pollOptions","_getAccessToken","_updateHeaderToken","pollUrl","_closeError","_receiving","_poll","_raiseOnClose","deleteOptions","logMessage","ServerSentEventsTransport","eventSource","EventSource","onmessage","_close","onopen","_eventSource","WebSocketTransport","webSocketConstructor","_logMessageContent","_webSocketConstructor","_headers","webSocket","binaryType","_event","_webSocket","ErrorEvent","OPEN","_isCloseEvent","wasClean","HttpConnection","_stopPromiseResolver","_negotiateVersion","_resolveUrl","webSocketModule","eventSourceModule","_startInternalPromise","_sendQueue","TransportSendQueue","_stopError","_stopConnection","skipNegotiation","_constructTransport","_startTransport","negotiateResponse","redirects","_getNegotiationResponse","ProtocolVersion","accessToken","_createTransport","negotiateUrl","_resolveNegotiateUrl","negotiateVersion","connectionToken","_createConnectUrl","requestedTransport","requestedTransferFormat","connectUrl","_isITransport","transportExceptions","transports","availableTransports","negotiate","transportOrError","_resolveTransportOrError","ex","transportMatches","actualTransport","transferFormats","aTag","_transport","_executing","_sendBufferedData","PromiseSource","_transportResult","_sendLoopPromise","_sendLoop","_bufferData","transportResult","_concatBuffers","arrayBuffers","totalLength","_resolver","_rejecter","JsonHubProtocol","hubMessages","parsedMessage","_isInvocationMessage","_isStreamItemMessage","_isCompletionMessage","_assertNotEmptyString","LogLevelNameMapping","debug","information","critical","none","HubConnectionBuilder","configureLogging","logging","isLogger","parseLogLevel","mapping","withUrl","transportTypeOrOptions","httpConnectionOptions","withHubProtocol","withAutomaticReconnect","retryDelaysOrReconnectPolicy","getOrientation","isOrientationEqual","isOrientationNotEqual","CoordinatesModel","WindowService","getSize","BroadcastService","broadcastCenter","BroadcastCenter","listner","ThemesEnum","Light","Dark","SettingsService","shellGeneralSettingsSubject","serverApiUrl","localServerApiUrl","environment","apiEndpoint","localShellGeneralSettings","getMergedConfiguration","getShellGeneralSettingsObservable","getCurrentShellGeneralSettings","getApplicationsConfiguration","getAboutConfiguration","getUserPilotConfiguration","isElevationFW","shellResources","isElevation","getContextPageConfiguration","getCustomViewConfiguration","customViewId","getWidgetConfiguration","widgetId","_this9","folder","baseSettings","_this10","mergeSettings","StorageService","versionSeparator","localStorage","getItem","removeByPrefix","setItem","sessionStorage","sessionRemoveByPrefix","UserSettingsService","appContext","setCurrentUserSetting","_this11","clientId","settingKey","resetCurrentUserSetting","_this12","getCurrentUserSettings","_this13","getCurrentUserSetting","_this14","AppContextService","RoleService","userSettings","userSubscriptionRolesValue","userSubscriptionRoles","roleKeyValue","roleDefinitionValue","_this15","getUserSubscriptionRolesAsync","setRoleKeyValue","getCurrentUserRoleKeyAsync","isCurrentRoleStillValidAsync","setCurrentRoleToDefaultAsync","getRoleDefinitionAsync","setCurrentUserRoleKeyAsync","_this16","setCurrentRoleKeySettingAsync","refreshUserRoles","_this17","_this18","roles","isDefault","backupRoleKey","_this19","userSetting","_this20","settingDefinition","_this21","_this22","CacheHelperService","allSubscriptionsCacheKeyPart","subscriptionAware","cultureAware","roleAware","keyParts","versionParts","keyArray","versionArray","caching","isolationKey","databaseVersion","RouteInfoModel","moduleName","serviceName","actionName","listName","routeInfo","RouteHelperService","closeOutletEvent","startSaveHistory","getHistory","getPreviousUrl","getUrl","withQueryParams","removeQueryParameters","isPopupVisible","popupActivatedRoute","navigationStartEvent","getRouteInfo","localUrl","listname","getCurrentRouteOperationId","getOperationIdFromRoute","matching","getAppRoutes","getRouteFromOperationId","getCustomizationOperationIdFromRoutes","getOperationIdFromRoutes","parseUriFromListConfiguration","parsedUri","parametersString","keyValuePairs","changeCurrentUrlParameters","parametersToRemove","saveInBrowserHistory","parametersFromUri","mergeQueryParam","addParametersToUrl","preserveQueryParam","extractRouteInfo","emitNavigationEvent","localQueryParams","_this23","navigateToRoute","navigateToRouteUsingUrl","navigateUsingRouteInfo","navigateOnInit","navigateToRoot","rootUrl","emitEventOnly","getNumberOfActiveOutlets","getRouteFromOutlet","getActiveOutlet","getOutletNameCapitalized","destroyAndRefreshPage","nocache","innerConfigRoutes","urlParameters","parameter","outletInfo","queryParameters","sourceKey","tgKey","IdentityService","oauthService","onLogoutEvent","CLAIMS_KEY","isInitialized","applyRedirectUrl","isAuthenticated","hasIdToken","hasValidIdToken","hasAccessToken","hasValidAccessToken","authConfig","getAuthConfigFromEnvironmentSettings","configure","setStorage","tokenValidationHandler","NullValidationHandler","logout","loadDiscoveryDocumentAndTryLogin","onTokenReceived","auth","singleSignOutEnabled","setupAutomaticSilentRefresh","login","initImplicitFlow","profile","issuer","logOut","redirect_uri","getUser","getIdentityClaims","tokenInfo","displayName","display_name","picture","getSessionClaims","returnAsJsonText","claims","redirectUri","callbackEndpoint","silentRefreshRedirectUri","loginUrl","authorizationEndpoint","requestAccessToken","logoutUrl","postLogoutRedirectUri","postLogoutUri","oidc","requireHttps","customQueryParams","acr_values","sessionChecksEnabled","sessionCheckIFrameName","sessionCheckIntervall","AmsService","identityService","_account","accountManagement","domainUrl","_this24","useDefaultSubscription","defaultAccount","defaultSubscription","setAccountAndSubscriptionFromUrl","handleSessionStorageData","getStorageKey","product","hasAccountAndSubscription","addAccountAndSubscriptionToUrl","accountSubscription","hostSplit","accountSubscriptionString","ErrorsService","currentCompanySubject","subscriptionsClaimsSubject","contextAvailableEvent","_user","subscriptionClaimsObservable","hasErrorInContextLoading","_hasErrorInContextLoading","companySubscribe","appContextModel","loadContextFromServer","_this25","loadContext","subscriptionClaims","loadCompany","getDefaultUser","selectedCompany","companyKey","getCurrentCompanyId","companyId","getSubscriptionClaims","getSubscriptionAlias","requiredClaims","parametersClaim","isAllowed","claimCount","alerts","hasPendingPayments","hasProductWarning","isDemonstrationSubscription","getMenuVersion","menuLastModifiedDate","helpCenterBaseUrl","_this26","getDefaultAppContext","exceptionMessage","appTheme","zopim","countryKey","fileUploadSettings","helpCenterUrl","pnsExternalUri","productBrand","subscriptionAlias","subscriptionEndDate","subscriptionId","subscriptionManagementUrl","subscriptionPlan","subscriptionStartDate","allowInviteTechnician","identityUser","creationDate","cultureSupported","fallbackCulture","userProfileUrl","emitSelectedCompany","company","CompanyDependentService","selectCompany","lockCompany","refreshCompanies","companiesCount","companyEndPoint","getLockCompanyDependent","getRefreshCompanies","getSelectCompany","getCompaniesCount","onRefreshCompanies","onSelectCompany","onLockCompanyDependent","lock","onCompaniesCount","getCompanies","companies","setCompanyDependentUrlEndpoint","CompanyInterceptor","companyDependentService","CorsInterceptor","EnvironmentInterceptor","appUrl","FrameworkInterceptors","skipAuthentication","skipErrors","FrameworkInterceptorsOptions","TreatErrorMessagePipe","errorResponse","HttpConfigInterceptor","formatUrl","requestUrl","requestUrlLower","trimSlashes","IdentityInterceptor","currentRoleKey","getAccessToken","caught","handleAuthError","DEPLOY_URL","deployUrl","scripts","RewriteRulesInterceptor","appDeployVersionUrl","combinedPath","isDebuggingMode","TypeOfPipe","isGuid","culturePlaceholder","cultureTwoLetterISOPlaceholder","companyPlaceholder","accountPlaceholder","subscriptionPlaceholder","audiencePlaceholder","datePlaceholder","dateTimePlaceholder","dateNextDayPlaceholder","todayStartDateTimePlaceholder","todayEndDateTimePlaceholder","previousWeekStartDatePlaceholder","previousWeekEndDatePlaceholder","previousWeekStartDateTimePlaceholder","previousWeekEndDateTimePlaceholder","currentWeekStartDatePlaceholder","currentWeekEndDatePlaceholder","currentWeekStartDateTimePlaceholder","currentWeekEndDateTimePlaceholder","nextWeekStartDatePlaceholder","nextWeekEndDatePlaceholder","nextWeekStartDateTimePlaceholder","nextWeekEndDateTimePlaceholder","previousMonthStartDatePlaceholder","previousMonthEndDatePlaceholder","currentMonthStartDatePlaceholder","currentMonthEndDatePlaceholder","nextMonthStartDatePlaceholder","nextMonthEndDatePlaceholder","previousYearStartDatePlaceholder","previousYearEndDatePlaceholder","currentYearStartDatePlaceholder","currentYearEndDatePlaceholder","nextYearStartDatePlaceholder","nextYearEndDatePlaceholder","getCompaniesCountSubscription","selectedCompanySubscription","isCompanyDependent","verifyCompanyDependency","isRoleDependent","verifyRoleDependency","replaceOperationTags","newOperation","operationHasTags","replaceTemporalOperationTags","replaceOperationSubscriptionTags","dictionaryDates","isDateTime","returnPlaceholder","numberRegex","operationRegex","arrayReplaceOperations","replaceOperation","returnDate","dateTimeRegex","numberToAdd","addHours","verifyAccountDependency","verifySubscriptionDependency","verifyTemporalDependency","UserPilotService","userPilotConfiguration","userPilotNavigateToActionStr","handleWindowPostMessage","_this27","about","applicationId","userPilotId","country","plan","frameworkVersion","elevationFwVersion","productVersion","addCounters","tryAgainReloadUserPilot","publishEntityEvent","eventType","eventInfo","eventConfiguration","entityConfiguration","entity","publishImportEvent","templateKey","importConfiguration","publishEvent","contentId","_this28","counters","formattedUri","valuePath","GetObjectPathValue","maxNumberOfTimes","numberOfTimes","AppCueService","accountId","loadScript","Appcues","tryAgainReloadAppCues","charset","HeapService","_this29","_this30","heap","addUserProperties","viewportHeight","viewportWidth","InspectletService","_this31","UserEngagementService","userPilotService","appCueService","heapService","inspectletService","userEngagement","_this32","appcues","inspectlet","TelemetryService","hasEnvironmentTelemetry","telemetryEventSource","telemetryEvent$","telemetry","EnvironmentTelemetrySettings","setAuthenticatedUserContext","logPageView","pageView","logEvent","logMetric","average","metric","logException","exception","severityLevel","logTrace","markName","metricName","fromMark","includeRequestsInfo","endMark","getEntriesByName","eventProperties","resourcesList","getEntriesByType","resourceItem","resource","initiatorType","totalTransferSize","totalDuration","transferSize","ThemeService","addTheme","styleId","oldStyle","rel","userEngagementService","themeService","userSettingsService","appInitializerCustomService","_this33","_this34","initializeTheme","_this35","ConverterService","decimalSeparatorChar","valueParts","intPart","decimalPart","parseFloatToNumberWithoutSeparators","DocumentService","documentService","allowMultiplesInstances","componentProp","duplicatedElement","removeComponentFromBody","convertNodeToHtmlElement","domElementType","eventListenerHandler","domElementName","stopInDomParentElementName","findElementByQuery","arrayOfElements","findElementByDomName","domName","findElementsByAttributeProperty","attributeName","attributeValue","findOperation","findElementByAttributeProperty","findElementsById","findElementById","getCoordinatesRelativeToDocument","box","docEl","clientTop","clientLeft","behavior","elementCoordenates","elementSize","getElementSize","nvarSize","getBodyElement","getBodySize","withScrollSize","screen","getAllChildElements","getAllChildElementsRecursive","scrollBottom","elementToScroll","convertPlainHtmlToHtmlElement","plainHtml","div","hideBodyScrollBar","overflowY","showBodyScrollBar","scrollToChildElement","elementScrollable","childElement","childrens","childElements","DeviceService","getDetailedDevice","vendor","ElectronicCertificateService","getElectronicCertificateStatusByCompany","_this36","EventService","onFormEvent","getOnFormEvent","operationInfo","FormEventResponse","FormEventOperation","ExternalScriptsService","externalScripts","FormModelService","modelChangeEvent","formFieldsChangeEvent","getOnModelChanged","onFormFieldsChange","getOnFormFieldsChanged","HotkeysService","_lastPressedKeyCode","_hotkeys","_hotkeysDefinitions","_onWindowKeyDown","keyDown","_onWindowKeyUp","keyUp","hotkeysDefintions","hotkeyDefinition","hotkeyString","buildHotkeysList","removeHotkey","hotKeys","stopImmediatePropagation","hotkeysDefinitions","hotKey","hotKeyActionsDefinitions","hotkeys","ImageService","_this37","PendingRequestsService","pendingRequest","pendingSelectedFields","readingSelectedFields","pendingServicesCount","registerPendingRequest","onPendingRequestCompleted","clearPendingRequests","getPendingRequestsCount","addSelectedFieldRequests","getSelectedFields","ProductInitialization","requiresInitialization","initializationUri","requiresLoadViewFromInitialization","fromProductInitialization","navigateToInitializationPopup","SequentialRequest","addRequestToQueue","requestData","startNextRequest","ShellStateService","isLoadingState","lockViewContent","setlockViewContent","connectError","registerError","getNotificationError","disposedError","connectionClose","reconnecting","reconnected","SignalRService","contextData","signalRUrl","connectContextId","hubMessageConnection","configureSignalR","connectSignalR","getNotificationsByGroup","signalR","newNotification","_this38","_this39","_this40","notificationsComplete","TaskModel","detailAttribute","TaskService","registerPendingTask","attribute","isSaveAndReturn","defaultExtension","allowSameIDsFirstTimeRegisterTask","cacheTask","getPendingTask","getTask","removePendingTask","disablePendingTask","pendingTask","UpgradeApplicationService","UpgradeApplicationBaseService","upgradeApplication","_this41","checkApplicationUpgradesStatus","_this42","ViewState","domElementId","openedExpanders","extensionId","gridLineIndex","gridId","viewState","fullEquals","notEquals","removeOpenedExpander","expanderId","exId","addOpenedExpander","expanderID","isExpanderOpened","array1","array2","ViewStateStack","viewCacheStack","addNode","getNode","_viewState","removeNodeByViewState","removeNodeByDraftID","ViewStatePersisteService","viewFifoStack","getViewStateStack","setViewStack","addOrSetDomElement","addOrSet","addOrSetGridLineIndex","addOrSetGridId","addOrSetExtensionSelected","removeExtension","draftID","exists","ConvertAnyToStack","ViewStateService","findValidIDFromDOMElementOrAncestors","findGridLineIndex","findGridId","ViewTitleService","setViewTitle","element1","element2","_route","oAuthService","ClaimGuard","canActivateSubject","intersectArray","CaseStylesHelper","attributesMatched","matchAll","attrConverted","camelCase","hasScrollBar","overflow","map$1","UpgradeStatusEnum","Init","Progress","Completed","CompletedWithError","Lock","lockReasonDescription","ViewStateRestoreProperties","madeFocus","OAuthModule","draft_r3","r_r3","_r26","ctx_r25","item_r24","_r31","ctx_r30","item_r27","_r33","ctx_r34","_r40","ctx_r39","_r42","ctx_r41","_r44","ctx_r43","ctx_r45","ctx_r46","ctx_r47","ctx_r48","ctx_r49","ctx_r51","_r54","ctx_r53","_r59","item_r55","_r62","ctx_r61","_r64","ctx_r63","_r66","ctx_r65","_r68","ctx_r67","application_r5","_r24","ctx_r23","ctx_r31","_r37","ctx_r36","_r25","ctx_r24","_r27","ctx_r37","_r41","ctx_r40","item_r31","_r43","ctx_r42","SubscriptionsService","getSubscriptionUsers","isCurrentUserSubscriptionManager","isSingleUserProduct","getSubscriptionRoles","sendInvitation","isTechnician","removeAccess","userName","AlertBarComponent","subscriptionsService","loadAlerts","demonstrationMessage","productWarningLevel","productWarningMessage","paymentGatewayGetFirstPaymentUrl","gatewayPaymentUrl","ContextComponentContainerComponent","_unsubscribeBroadcastService","onPropertyUpdated","destroyComponent","ContextPageComponent","ContextBarComponent","currentPageTitle","pages","nextPageTitle","previousPageTitle","showPageNavigator","openFirstTime","ctxComponents","loadCtxComponents","dataCache","mappings","pageLoad","currentActivator","startWithConfiguration","initializePages","entityModelChanges","activator","notifyComponents","showPageWithActivator","showPageOnIndex","totalPages","currentPage","leftPageIndex","showNextPage","showPreviousPage","componentBinding","propertyInfo","entityProperty","componentsList","newComponentsList","contextPages","typedComponent","changedProperties","eval","findActivator","newProps","isAnyAffectedContextPageReady","mappingProperty","propsData","propertiesList","map1","propertyValue","map2","activatorPageIndex","affectedBindings","bindingId","isBindingReady","dataCacheElement","contextComponents","DownloadsPanelComponent","progressBars","downloadComplete","uid","allDownloadComplete","MenuItem","caption","extraClass","menuItems","isSearchable","menuItem","getDefaultIcon","getSelectedIcon","replaceDiacritics","diacritics","OverviewMenuId","MenuDefinition","menuDefinition","flatMenu","useDefaultIcons","MenuService","i18n","globalMenuDefinition","MenuItemDefaultType","getMenuDefinition","menuVersion","menu","storedMenuDefinition","applyClaimsRestriction","overviewMenu","createOverviewMenu","getCustomMenu","menusToSearch","menuFoundIndex","controlFlag","subMenuItem","findMenuRecursive","getQuickActions","quickActions","searchResult","deepFindResult","deepFind","navigateToHomePage","defaultAction","contextUri","findParentMenuItem","findMenuItemRecursive","menuToSearch","childMenuItem","childResult","dashboardHeading","parentName","subMenus","breadcrumb","deepFindResults","applyDefaultActionsClaimsRestriction","applyClaimsRestrictionRecursive","allowedMenuItems","claimString","splitClaims","claim","parentMenuItemsToRemove","childMenuItems","allowedMenuItem","menuToRemove","allowedDefaultActions","DraftsService","menuService","_allItems","_subscribers","Add","populateUserWorkInProgress","forceGet","startingFrom","minDate","until","maxDate","subsc","_initialLoad","getEndpointResponse","draftOperationMenu","configUrl","DraftsComponent","draftModelService","draftsService","changeDetRef","toggleMenu","userWorkInProgressItemsLocal","allWorkInProgressItemsLocal","loadedWorkInProgressItems","lastNotifiedRefreshDrafts","checkForDraftUpdates","toUpdate","canGetWorkInProgress","setWorkInProgress","userWorkInProgressItems","allWorkInProgressItems","removeDraft","draft","showMoreWorkInProgress","onMenuToggle","getDraftUri","activityItem","getDraftQueryParams","urlQueryParams","getWorkInProgress","selectedMenu","refresh","notifiedRefreshDrafts","workInProgressItemsUri","replaceStandardRequestParameters","AboutComponent","aboutInfo","SubscriptionUserCardComponent","userPicture","doRemoveAccess","SubscriptionUserInvitation","sendInvite","SubscriptionUserInvitationComponent","loadingStateChange","sentInvite","userInvitationForm","validateEmail","selectedRole","invalidEmail","userInvitation","SubscriptionUsersWrapperComponent","hasMoreThanOneRole","isManager","loadUsers","loadRoles","onLoadingStateChange","onRemovedUser","users","SupportRequestService","getSupportRequestsInfo","SupportRequestComponent","supportRequestService","supportRequestForm","availableRequests","loadSupportRequestInfo","supportRequestInfo","subscriptionRequests","usedRequests","setSupportRequestsLeftMessage","supportRequestsLeftMessage","PriUpgradeComponent","upgradeApplicationService","upgradeCompleted","upgradeStatusEnum","loadingSpinnerType","checkUpgradeStatus","upgrade","upgradeComplete","upgradeCompleteWithError","ZendeskConfig","accountUrl","zE","ZopimService","zendeskConfig","isChatOpen","increaseOffset","initializeZendesk","webWidget","horizontal","chat","departments","department","concierge","offlineForm","greeting","switchFlag","zEmbed","finishLoading","cssText","injectionTag","contentWindow","_l","zendeskHost","zEQueue","write","LayoutRootService","scrollSubscriber","scrollObservable","onMenuStateChanged","menuSubscriber","menuObservable","emitMenuState","ShellConfigurationService","getGeneralConfiguration","QuickActionsComponent","shellConfigurationService","quickActionsHasItems","clickOut","quickActionsMenuUri","onItemClick","UserAreaComponent","zopimService","helpPageService","elementReference","isChatEnabled","isSmallDevice","subscriptionUsersPageUrl","roleState","themeState","userAreaMenuSettings","userProfile","subscriptionUsersButton","subscriptionButton","changeThemeMenu","supportButton","chatButton","helpCenterButton","aboutButton","applicationButton","logoutButton","generalSettings","hasIdentity","hasSubscriptions","subscriptionsSourceUri","getUserAreaMenuSettings","setUserInfo","loadHelpPageItems","roleData","currentRole","applicationsExternalUri","hideRoleIfSingleRole","helpPageEventsSubscription","handleUserAreaButtonClick","scrollPerformed","_blank","onUserImgError","userInfo","openSupportRequestModal","openAboutModal","toggleLiveChat","changeTheme","signOut","setUserDefaultRole","openRoleMenu","openUserProfile","menuOption","claimsToCheck","helpPageItems","iconClass","elementId","canBeMounted","ApplicationsMenuComponent","hasApplicationsEvent","applications","openApplication","application","apps","listAllowedApps","app","tmpListAllowedApps","TopbarComponent","toggleMenuState","hideTopbarButtons","hideTopbarSearch","hasApplications","productLogo","hasQuickActions","contextBarState","contextBarButtonState","topBarSettings","hiddenApplicationMenuButton","hiddenLogo","hiddenSearchBar","hiddenQuickActionsButton","hiddenChatButton","hiddenContextBarButton","hiddenResourceCenterButton","hiddenNotificationsButton","hiddenUserAreaMenuButton","closeContextBar","openContextBar","logo","updateIsMobileVariable","menuIsCollapsed","getTopbarSettings","topbarSettings","verifyApplicationsAccess","changeMenuState","toggleSearchActive","toggleNotificationsMenu","showNotificationsDropDown","toggleContextBar","brandLabel","brandTitle","toggleQuickActionsButton","hasItems","triggerUserPilot","resourceCenter","_c12","enterLeaveHeightAnimation","RootMenuSelectorItemComponent","menuItemClick","getCurrentIcon","getIcon","isHeading","getCaptionKey","handleMenuItemClicked","getRouterLink","getRouterQueryParams","RootMenuSelectorComponent","toggleRootMenu","selectedRootMenuChange","rootMenuSelectorElement","toggleRootMenuOptions","selectRootMenu","selectedRootMenu","_c16","MenutItemIsSelectedDirective","updateSelection","hasLink","getUrlParts","url1","url2","url1Parts","url2Parts","SubMenuItemIconDirective","menuItemIconClass","defaultClass","activeMenuItem","SubMenuItemComponent","toggleMenuItem","selectMenuItem","hasDropdownMenu","foundItemMenu","findMenuItemByUrl","selectChildMenuItem","selectedChildMenuItem","currentUrlInner","menuUrlInner","subitemMatch","SubMenuComponent","viewTitleService","parentMenu","_parentMenu","hasDraftSupport","onToggleMenu","isOverviewMenu","selectMenu","collapsed","lastClickedMenuItem","EnvParamItemProperties","EnvParamName","Key","Name","Description","IsSelected","Logo","FavoriteDate","Companies","ContextInfo","EnvParamItem","envParamName","favoriteDate","contextInfo","FilterPipe","searchProperties","buildSearchQuery","SortByPropertyPipe","defaultDate","favItems","nonFavItems","item1","item2","SelectorComponent","showEnvSelector","envParamChanged","titleToolTipConfiguration","lockMenuCompany","showEnvSelectorOptions","favoriteCompanies","favoriteSubscriptions","populateUserTopSubscriptions","subscriptionSettingKey","companiesSourceUri","getCompany","setCurrentCompany","companySettingKey","envSelectorElement","toggleEnvSelectorOptions","hasEnvironmentOptions","selectEnvironmentParameter","selectedSubscription","changeSubscription","setLastUsedCompany","companyChangedMessage","favoriteEnvironmentParameter","settingsKey","envParamList","envParamFavorite","envItem","getEnvironmentItemTopPosition","isFavoriteItem","itemType","getSearchInputPlaceholder","createNewSubscriptionMenuEntry","loadFavoriteEnvParameter","matchSubs","toSubscription","baseAddress","concatenateAddressSegments","populateUserTopCompanies","fromCompanyRefresh","retryCount","retryWaitMilliSeconds","companyTaxID","logoThumbnail","currentCompanyIndex","envParamFav","envParam","interceptorsOptions","subscriptionInfo","accountKeyInfo","subscriptionDescription","_c19","MenuComponent","productInitialization","telemetryService","hoverState","showRootMenuSelector","onEnvironmentParameterChange","populateMenuDefinition","compareUrls","rootMenuUri","isStartPage","showCurrentPageMenuItem","rootCustomMenuUri","currentUrl","showCurrentPageMenuItemRecursive","menuUrl","SidebarComponent","menuHoverState","onMenuHoverStateChange","ViewTitleComponent","showDeletedLabel","showInactiveLabel","isToProceedWithEvent","historyItems","titleDefinition","onEditionHistoryEvent","isDeleted","getProductName","titles","LayoutRootComponent","layoutRootService","hotKeysService","iosDevice","showingAlerts","hasErrorInLoading","currentSize","readShellConfiguration","onToggleMenuState","closeMenu","handleDownloadPanelComponent","listenRightPanelOpen","isSafari","iOS","MSStream","scrollHandler","onCloseFinish","handleRightPanelComponentOpen","callBackValue","handleRightPanelComponentClose","shellConfiguration","checkToUpdates","requireUpgrade","handleUpgradeComponent","handleContextBarComponent","upgradeComponentRef","downloadComponentRef","onAllComplete","rightPanelComponentData","rightPanelComponentRef","errorInContext","parseConfigurationUris","zendeskAccountUrl","ready","i7$1","primaveraServicesModule","componentsModule","DateTimeProvider","SystemDateTimeProvider","new","LoginOptions","disableNonceCheck","preventClearHashAfterLogin","OAuthLogger","OAuthStorage","MemoryStorage","ReceivedTokens","OAuthEvent","OAuthSuccessEvent","OAuthInfoEvent","OAuthErrorEvent","b64DecodeUnicode","base64UrlEncode","btoa","AuthConfig","redirectUriAsPostLogoutRedirectUriFallback","rngUrl","clearHashAfterLogin","tokenEndpoint","revocationEndpoint","customTokenParameters","userinfoEndpoint","showDebugInformation","silentRefreshMessagePrefix","silentRefreshShowIFrame","siletRefreshTimeout","silentRefreshTimeout","dummyClientSecret","strictDiscoveryDocumentValidation","jwks","silentRefreshIFrameName","timeoutFactor","sessionCheckIFrameUrl","disableAtHashCheck","skipSubjectCheck","useIdTokenHintForSilentRefresh","skipIssuerCheck","nonceStateSeparator","useHttpBasicAuth","waitForTokenInMsec","disablePKCE","preserveRequestedRoute","openUri","WebHttpUrlEncodingCodec","ValidationHandler","AbstractValidationHandler","validateAtHash","hashAlg","inferHashAlgorithm","idTokenHeader","tokenHash","calcHash","atHash","claimsAtHash","idTokenClaims","at_hash","jwtHeader","alg","UrlHelperService","getHashFragmentParams","customHashFragment","questionMarkPosition","parseQueryString","queryString","pairs","pair","escapedKey","escapedValue","ERROR","WINDOW","JS_SHA256_NO_WINDOW","WEB_WORKER","NODE_JS","JS_SHA256_NO_NODE_JS","COMMON_JS","JS_SHA256_NO_COMMON_JS","amd","ARRAY_BUFFER","JS_SHA256_NO_ARRAY_BUFFER","HEX_CHARS","EXTRA","OUTPUT_TYPES","JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW","isView","createOutputMethod","outputType","is224","Sha256","createMethod","nodeWrap","crypto","Buffer","algorithm","nodeMethod","createHash","createHmacOutputMethod","HmacSha256","createHmacMethod","sharedMemory","h0","h1","h2","h3","h4","h5","h6","h7","bytes","hBytes","finalized","hashed","oKeyPad","iKeyPad","notString","lastByteIndex","ab","da","bc","dataView","DataView","setUint32","innerHash","sha224","HashHandler","decodeUTF8","encodeUTF8","DefaultHashHandler","valueToHash","fsha256","toHashString2","toHashString","OAuthService","storage","urlHelper","dateTimeService","discoveryDocumentLoaded","discoveryDocumentLoadedSubject","grantTypesSupported","inImplicitFlow","saveNoncesInLocalStorage","discoveryDocumentLoaded$","checkLocalStorageAccessable","setupRefreshTimer","setupSessionCheck","configChanged","restartSessionChecksIfStillLoggedIn","initSessionCheck","restartRefreshTimerIfStillLoggedIn","setupExpirationTimers","listenTo","noPrompt","shouldRunSilentRefresh","clearAutomaticRefreshTimer","automaticRefreshSubscription","refreshInternal","useSilentRefresh","silentRefresh","refreshToken","loadDiscoveryDocument","tryLogin","loadDiscoveryDocumentAndLogin","initLoginFlow","validateUrlFromDiscoveryDocument","httpsCheck","validateUrlForHttps","issuerCheck","validateUrlAgainstIssuer","assertUrlNotNullAndCorrectProtocol","clearAccessTokenTimer","clearIdTokenTimer","tokenReceivedSubscription","setupAccessTokenTimer","setupIdTokenTimer","expiration","getAccessTokenExpiration","storedAt","getAccessTokenStoredAt","calcTimeout","accessTokenTimeoutSubscription","getIdTokenExpiration","getIdTokenStoredAt","idTokenTimeoutSubscription","stopAutomaticRefresh","_storage","fullUrl","validateDiscoveryDocument","authorization_endpoint","end_session_endpoint","grant_types_supported","token_endpoint","userinfo_endpoint","jwksUri","jwks_uri","check_session_iframe","revocation_endpoint","loadJwks","discoveryDocument","fetchTokenUsingPasswordFlowAndLoadUserProfile","fetchTokenUsingPasswordFlow","loadUserProfile","existingClaims","fetchTokenUsingGrant","grantType","tokenResponse","storeAccessTokenResponse","access_token","refresh_token","expires_in","fallbackAccessTokenExpirationTimeInSec","extractRecognizedCustomParameters","id_token","processIdToken","storeIdToken","removeSilentRefreshEventListener","silentRefreshPostMessageEventListener","setupSilentRefreshEventListener","processMessageEventMessage","customRedirectUri","id_token_hint","getIdToken","existingIframe","silentRefreshSubject","iframe","createLoginUrl","initImplicitFlowInPopup","initLoginFlowInPopup","checkForPopupClosedTimer","windowRef","calculatePopupFeatures","checkForPopupClosedInterval","storageListener","screenLeft","outerWidth","screenTop","outerHeight","expectedPrefix","prefixedMessage","canPerformSessionCheck","getSessionState","setupSessionCheckEventListener","removeSessionCheckEventListener","sessionCheckEventListener","handleSessionUnchanged","handleSessionChange","handleSessionError","stopSessionCheckTimer","waitForSilentRefreshAfterSessionChange","startSessionCheckTimer","sessionCheckTimer","checkSession","sessionState","postMessage","loginHint","that","nonce","createAndSaveNonce","seperationChar","challenge","verifier","createChallangeVerifierPairForPKCE","initImplicitFlowInternal","additionalState","addParams","resetImplicitFlow","callOnTokenReceivedIfExists","tokenParams","idClaims","idToken","expiresIn","grantedScopes","customParameters","expiresInMilliSeconds","expiresAt","tryLoginCodeFlow","tryLoginImplicitFlow","querySource","getCodePartsFromUrl","session_state","nonceInState","userState","parseState","handleLoginError","saveRequestedRoute","disableOAuth2StateCheck","validateNonce","storeSessionState","getTokenFromCode","restoreRequestedRoute","requestedRoute","PKCEVerifier","fetchAndProcessToken","validationHandler","clearLocationHash","savedNonce","idTokenClaimsJson","idTokenExpiresAt","onLoginError","getClockSkewInMsec","defaultSkewMsc","clockSkewInSec","skipNonceCheck","tokenParts","headerJson","padBase64","claimsJson","aud","iat","iss","issuedAtMSec","expiresAtMSec","clockSkewInMSec","validationParams","loadKeys","checkSignature","idTokenHeaderJson","checkAtHash","atHashValid","getGrantedScopes","base64data","getRefreshToken","getCustomTokenResponseProperty","requestedProperty","authorizationHeader","noRedirectToLogoutUrl","customParam","postLogoutUrl","createNonce","silentRefreshFrame","sessionCheckFrame","unreserved","msCrypto","getRandomValues","validateSignature","initCodeFlow","initCodeFlowInternal","foundParameters","recognizedParameter","revokeTokenAndLogout","ignoreCorsIssues","revokeEndpoint","revokeAccessToken","revokeRefreshToken","revokationParams","OAuthModuleConfig","OAuthResourceServerConfig","OAuthResourceServerErrorHandler","OAuthNoopResourceServerErrorHandler","DefaultOAuthInterceptor","moduleConfig","checkUrl","resourceServer","customUrlValidation","allowedUrls","sendAccessToken","createDefaultLogger","createDefaultStorage","validationHandlerClass","JwksValidationHandler","AUTH_CONFIG","ContentRef","ComponentLoader","_applicationRef","_posService","onBeforeShow","onBeforeHide","_isHiding","containerDefaultSelector","_listenOpts","_globalListener","isShown","compType","_componentFactory","_subscribePositioning","_innerComponent","_getContentRef","selectedElement","_registerOutsideClick","deletePositionElement","componentEl","_unsubscribePositioning","_unregisterListenersFn","listenOpts","triggers","outsideClick","outsideEsc","registerHide","listenToTriggersV2","attachInline","vRef","_inlineViewRef","registerOutsideClick","registerEscClick","getInnerComponent","_zoneSubscription","appendToBody","calcPosition","contentCmptFactory","modalContentInjector","ComponentLoaderFactory","createLoader","BsDropdownConfig","insideClick","isAnimated","stopOnClickPropagation","BsDropdownState","isOpenChange","isDisabledChange","toggleClick","dropdownMenu","resolveDropdownMenu","dropdownAnimation","DROPDOWN_ANIMATION_TIMING","BsDropdownContainerComponent","_builder","_factoryDropDownAnimation","dropdown","isBs3","BsDropdownDirective","_cis","dropup","_isInlineOpen","_isDisabled","_subscriptions","_isInited","_dropdown","_showInline","isBs4","_inlinedMenu","addBs4Polyfills","playAnimation","_dropup","_placement","removeShowClass","removeDropupStyles","navigationClick","firstActive","allRef","addShowClass","checkRightAlignment","addDropupStyles","isRightAligned","BsDropdownMenuDirective","BsDropdownToggleDirective","_documentClickListener","_escKeyUpListener","PositioningService","FocusTrapManager","_focusTrapStack","focusTrap","ft","_disable","_enable","FocusTrapDirective","_focusTrapFactory","_previouslyFocusedElement","_autoCapture","autoCapture","_captureFocus","autoCaptureChange","FocusTrapModule","BsModalRef","ModalOptions","modalConfigDefaults","keyboard","animated","closeInterceptor","MODAL_CONFIG_DEFAULT_OVERRIDE","ModalContainerComponent","isModalHiding","clickStartedInContent","bsModalService","checkScrollbar","setScrollbar","onClickStarted","onClickStop","setDismissReason","onEsc","_hide","ModalBackdropComponent","_isAnimated","_isShown","Utils","currentId","clf","modalDefaultOption","onShow","onHide","isBodyOverflowing","originalBodyPadding","scrollbarWidth","modalsCount","_backdropLoader","_createLoaders","_showBackdrop","lastDismissReason","_showModal","_hideBackdrop","resetScrollbar","_hideModal","removeLoaders","isBackdropEnabled","isBackdropInDOM","backdropRef","removeBackdrop","modalLoader","modalContainerRef","newClass","copyEvent","indexToRemove","getScrollbarWidth","paddingRight","scrollDiv","ModalModule","PopoverConfig","adaptivePosition","PopoverContainerComponent","_bsVersions","isBs5","PlacementForBs5","getBsVer","checkMarginNecessity","checkMargins","PopoverDirective","cis","_positionService","popoverId","setAriaDescribedBy","_ariaDescribedby","popover","_delayTimeoutId","setOptions","flip","preventOverflow","boundariesElement","popoverTitle","cancelDelayedTooltipShowing","_popoverCancelShowFn","_timer","parseTriggers","MapPlacementInToRL","auto","getStyleComputedProperty","css","getOffsetParent","offsetParent","nextElementSibling","findCommonOffsetParent","createRange","setStart","setEnd","commonAncestorContainer","isOffsetContainer","element1root","getFixedPositionOffsetParent","getBordersSize","sideA","sideB","getWindowSizes","getClientRect","sizes","horizScrollbar","vertScrollbar","getParentNode","getScrollParent","overflowX","getOffsetRectRelativeToArbitraryNode","fixedPosition","isHTML","childrenRect","parentRect","borderTopWidth","borderLeftWidth","getScroll","upperSide","scrollingElement","isFixed","getBoundaries","boundaries","getViewportOffsetRectRelativeToArtbitraryNode","excludeScroll","relativeOffset","boundariesNode","getArea","computeAutoPlacement","refRect","allowedPositions","rects","sortedAreas","area","filteredAreas","allowedPosition","computedPlacement","variation","getOuterSizes","getReferenceOffsets","getTargetOffsets","hostOffsets","targetOffsets","isHoriz","mainSide","secondarySide","measurement","secondaryMeasurement","getOppositePlacement","isModifierEnabled","availablePositions","checkPopoverMargin","checkPosition","isNumeric","arrow","arrowElement","isVertical","sideCapitalized","altSide","opSide","arrowElementSize","placementVariation","targetMarginSide","targetBorderSide","center","targetBorderRadius","targetSideArrowOffset","sideValue","Le","de","flipOrder","overlapsRef","overflowsLeft","overflowsRight","overflowsTop","overflowsBottom","overflowsBoundaries","flippedVariation","getOppositeVariation","transformProp","targetStyles","Te","isPlacementHorizontal","lt","basePlacement","shiftVariation","shiftOffsets","positionService","Positioning","targetElement","positionElements","chainOfModifiers","initData","hostElPosition","placementAuto","positionFixed","modifiedData","update$$","triggerEvent$","positionElement","getOffsets","updateContainerClass","dataPlacement","_getHtmlElement","addPositionElement","event$","elRef","Trigger","isManual","DEFAULT_ALIASES","hover","aliases","trimmedTriggers","parsedTriggers","triggerPair","manualTriggers","_registerHide","useToggle","showFn","unsubscribeFn","win","BsVerions","guessedVersion","_guessBsVersion","spanEl","checkPadding","paddingLeft","__theme","OnChange","propertyKey","prevValue","opener","bsVer","currentBsVersion","resVersion","crossorigin","integrity","cdnLink","_messagesHash","_hideMsg","warnOnce","asyncGeneratorStep","extendStatics","__assign","adopt","settle","resume","__values","verb"],"sourceRoot":"webpack:///","sources":["./src/custom-code/services/wildcard-custom.service.ts","./src/custom-code/custom.services.ts","./src/custom-code/services/custom-init.service.ts","./node_modules/@angular/animations/fesm2020/browser.mjs","./node_modules/@angular/platform-browser/fesm2020/animations.mjs","./src/generated-code/app/app.component.html","./src/generated-code/app/app.component.ts","./src/generated-code/app/main.routes.ts","./src/generated-code/app/main.module.ts","./src/generated-code/main.ts","./node_modules/@microsoft/signalr/dist/esm/HandshakeProtocol.js","./node_modules/@microsoft/signalr/dist/esm/Subject.js","./node_modules/@microsoft/signalr/dist/esm/HubConnection.js","./node_modules/@microsoft/signalr/dist/esm/IHubProtocol.js","./node_modules/@microsoft/signalr/dist/esm/ILogger.js","./node_modules/@microsoft/signalr/dist/esm/Loggers.js","./node_modules/@microsoft/signalr/dist/esm/TextMessageFormat.js","./node_modules/@microsoft/signalr/dist/esm/Utils.js","./node_modules/date-fns/esm/_lib/defaultLocale/index.js","./node_modules/date-fns/esm/_lib/defaultOptions/index.js","./node_modules/date-fns/esm/_lib/format/longFormatters/index.js","./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","./node_modules/date-fns/esm/_lib/getUTCWeek/index.js","./node_modules/date-fns/esm/_lib/protectedTokens/index.js","./node_modules/date-fns/esm/_lib/requiredArgs/index.js","./node_modules/date-fns/esm/_lib/roundingMethods/index.js","./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","./node_modules/date-fns/esm/_lib/toInteger/index.js","./node_modules/date-fns/esm/addDays/index.js","./node_modules/date-fns/esm/addMilliseconds/index.js","./node_modules/date-fns/esm/addMonths/index.js","./node_modules/date-fns/esm/addWeeks/index.js","./node_modules/date-fns/esm/addYears/index.js","./node_modules/date-fns/esm/constants/index.js","./node_modules/date-fns/esm/differenceInMilliseconds/index.js","./node_modules/date-fns/esm/endOfDay/index.js","./node_modules/date-fns/esm/endOfMonth/index.js","./node_modules/date-fns/esm/endOfWeek/index.js","./node_modules/date-fns/esm/endOfYear/index.js","./node_modules/date-fns/esm/isDate/index.js","./node_modules/date-fns/esm/isValid/index.js","./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","./node_modules/date-fns/esm/_lib/format/formatters/index.js","./node_modules/date-fns/esm/format/index.js","./node_modules/date-fns/esm/isSameDay/index.js","./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","./node_modules/date-fns/esm/locale/en-GB/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/en-GB/index.js","./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/en-US/index.js","./node_modules/date-fns/esm/parseISO/index.js","./node_modules/date-fns/esm/startOfDay/index.js","./node_modules/date-fns/esm/startOfMonth/index.js","./node_modules/date-fns/esm/startOfWeek/index.js","./node_modules/date-fns/esm/startOfYear/index.js","./node_modules/date-fns/esm/subMilliseconds/index.js","./node_modules/date-fns/esm/toDate/index.js","./node_modules/fast-deep-equal/index.js","./node_modules/fast-sha256/sha256.js","./node_modules/jsonpath/jsonpath.js","./node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","./node_modules/rxjs/dist/esm/internal/Observable.js","./node_modules/rxjs/dist/esm/internal/ReplaySubject.js","./node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","./node_modules/rxjs/dist/esm/internal/Subject.js","./node_modules/rxjs/dist/esm/internal/NotificationFactories.js","./node_modules/rxjs/dist/esm/internal/Subscriber.js","./node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","./node_modules/rxjs/dist/esm/internal/Subscription.js","./node_modules/rxjs/dist/esm/internal/config.js","./node_modules/rxjs/dist/esm/internal/firstValueFrom.js","./node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","./node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","./node_modules/rxjs/dist/esm/internal/observable/concat.js","./node_modules/rxjs/dist/esm/internal/operators/concatAll.js","./node_modules/rxjs/dist/esm/internal/observable/defer.js","./node_modules/rxjs/dist/esm/internal/observable/empty.js","./node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","./node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","./node_modules/rxjs/dist/esm/internal/observable/from.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","./node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","./node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","./node_modules/rxjs/dist/esm/internal/observable/fromEvent.js","./node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","./node_modules/rxjs/dist/esm/internal/observable/interval.js","./node_modules/rxjs/dist/esm/internal/observable/merge.js","./node_modules/rxjs/dist/esm/internal/observable/of.js","./node_modules/rxjs/dist/esm/internal/observable/race.js","./node_modules/rxjs/dist/esm/internal/observable/throwError.js","./node_modules/rxjs/dist/esm/internal/observable/timer.js","./node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","./node_modules/rxjs/dist/esm/internal/operators/auditTime.js","./node_modules/rxjs/dist/esm/internal/operators/audit.js","./node_modules/rxjs/dist/esm/internal/operators/catchError.js","./node_modules/rxjs/dist/esm/internal/operators/concatMap.js","./node_modules/rxjs/dist/esm/internal/operators/debounceTime.js","./node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","./node_modules/rxjs/dist/esm/internal/operators/delayWhen.js","./node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js","./node_modules/rxjs/dist/esm/internal/operators/delay.js","./node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js","./node_modules/rxjs/dist/esm/internal/operators/filter.js","./node_modules/rxjs/dist/esm/internal/operators/finalize.js","./node_modules/rxjs/dist/esm/internal/operators/first.js","./node_modules/rxjs/dist/esm/internal/operators/map.js","./node_modules/rxjs/dist/esm/internal/operators/mapTo.js","./node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","./node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","./node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","./node_modules/rxjs/dist/esm/internal/operators/observeOn.js","./node_modules/rxjs/dist/esm/internal/operators/pairwise.js","./node_modules/rxjs/dist/esm/internal/operators/refCount.js","./node_modules/rxjs/dist/esm/internal/operators/retry.js","./node_modules/rxjs/dist/esm/internal/operators/scan.js","./node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","./node_modules/rxjs/dist/esm/internal/operators/share.js","./node_modules/rxjs/dist/esm/internal/operators/skip.js","./node_modules/rxjs/dist/esm/internal/operators/startWith.js","./node_modules/rxjs/dist/esm/internal/operators/switchMap.js","./node_modules/rxjs/dist/esm/internal/operators/take.js","./node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","./node_modules/rxjs/dist/esm/internal/operators/takeWhile.js","./node_modules/rxjs/dist/esm/internal/operators/tap.js","./node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","./node_modules/rxjs/dist/esm/internal/operators/timeout.js","./node_modules/rxjs/dist/esm/internal/scheduler/Action.js","./node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js","./node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js","./node_modules/rxjs/dist/esm/internal/Scheduler.js","./node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js","./node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js","./node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js","./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js","./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js","./node_modules/rxjs/dist/esm/internal/scheduler/async.js","./node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js","./node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","./node_modules/rxjs/dist/esm/internal/symbol/iterator.js","./node_modules/rxjs/dist/esm/internal/symbol/observable.js","./node_modules/rxjs/dist/esm/internal/util/EmptyError.js","./node_modules/rxjs/dist/esm/internal/util/args.js","./node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","./node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js","./node_modules/rxjs/dist/esm/internal/util/arrRemove.js","./node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","./node_modules/rxjs/dist/esm/internal/util/createObject.js","./node_modules/rxjs/dist/esm/internal/util/errorContext.js","./node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","./node_modules/rxjs/dist/esm/internal/util/identity.js","./node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","./node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","./node_modules/rxjs/dist/esm/internal/util/isDate.js","./node_modules/rxjs/dist/esm/internal/util/isFunction.js","./node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","./node_modules/rxjs/dist/esm/internal/util/isIterable.js","./node_modules/rxjs/dist/esm/internal/util/isObservable.js","./node_modules/rxjs/dist/esm/internal/util/isPromise.js","./node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","./node_modules/rxjs/dist/esm/internal/util/isScheduler.js","./node_modules/rxjs/dist/esm/internal/util/lift.js","./node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","./node_modules/rxjs/dist/esm/internal/util/noop.js","./node_modules/rxjs/dist/esm/internal/util/pipe.js","./node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","./node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","./node_modules/userpilot/lib/index.js","./node_modules/zone.js/dist/zone.js","./node_modules/@angular/animations/fesm2020/animations.mjs","./node_modules/@angular/cdk/fesm2020/a11y.mjs","./node_modules/@angular/cdk/fesm2020/bidi.mjs","./node_modules/@angular/cdk/fesm2020/coercion.mjs","./node_modules/@angular/cdk/fesm2020/collections.mjs","./node_modules/@angular/cdk/fesm2020/drag-drop.mjs","./node_modules/@angular/cdk/fesm2020/keycodes.mjs","./node_modules/@angular/cdk/fesm2020/layout.mjs","./node_modules/@angular/cdk/fesm2020/observers.mjs","./node_modules/@angular/cdk/fesm2020/overlay.mjs","./node_modules/@angular/cdk/fesm2020/platform.mjs","./node_modules/@angular/cdk/fesm2020/portal.mjs","./node_modules/rxjs/dist/esm/internal/util/Immediate.js","./node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js","./node_modules/rxjs/dist/esm/internal/scheduler/asap.js","./node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js","./node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js","./node_modules/@angular/cdk/fesm2020/scrolling.mjs","./node_modules/@angular/cdk/fesm2020/tree.mjs","./node_modules/@angular/common/fesm2020/common.mjs","./node_modules/@angular/common/fesm2020/http.mjs","./node_modules/@angular/common/locales/it.mjs","./node_modules/@angular/core/fesm2020/core.mjs","./node_modules/@angular/forms/fesm2020/forms.mjs","./node_modules/@angular/material/fesm2020/core.mjs","./node_modules/@angular/material/fesm2020/form-field.mjs","./node_modules/@angular/material/fesm2020/icon.mjs","./node_modules/@angular/material/fesm2020/select.mjs","./node_modules/@angular/material/fesm2020/slide-toggle.mjs","./node_modules/@angular/material/fesm2020/slider.mjs","./node_modules/@angular/material/fesm2020/tabs.mjs","./node_modules/@angular/material/fesm2020/tooltip.mjs","./node_modules/@angular/platform-browser/fesm2020/platform-browser.mjs","./node_modules/rxjs/dist/esm/internal/operators/takeLast.js","./node_modules/rxjs/dist/esm/internal/operators/last.js","./node_modules/@angular/router/fesm2020/router.mjs","./node_modules/@primavera/components/fesm2020/primavera-components-features-right-panel.mjs","./node_modules/@primavera/components/fesm2020/primavera-components-features-routing.mjs","./node_modules/@angular/material/fesm2020/checkbox.mjs","./node_modules/@ctrl/tinycolor/dist/module/util.js","./node_modules/@ctrl/tinycolor/dist/module/conversion.js","./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js","./node_modules/@ctrl/tinycolor/dist/module/format-input.js","./node_modules/@ctrl/tinycolor/dist/module/index.js","./node_modules/ngx-color/fesm2020/ngx-color.mjs","./node_modules/ngx-color/fesm2020/ngx-color-chrome.mjs","./node_modules/ngx-toastr/fesm2020/ngx-toastr.mjs","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","./node_modules/date-fns/esm/_lib/assign/index.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/inherits.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/createSuper.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/createClass.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/defineProperty.js","./node_modules/date-fns/esm/parse/_lib/Setter.js","./node_modules/date-fns/esm/parse/_lib/Parser.js","./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js","./node_modules/date-fns/esm/parse/_lib/constants.js","./node_modules/date-fns/esm/parse/_lib/utils.js","./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js","./node_modules/date-fns/esm/_lib/setUTCWeek/index.js","./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js","./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js","./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js","./node_modules/date-fns/esm/_lib/setUTCDay/index.js","./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js","./node_modules/date-fns/esm/_lib/setUTCISODay/index.js","./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js","./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js","./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js","./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js","./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js","./node_modules/date-fns/esm/parse/_lib/parsers/index.js","./node_modules/date-fns/esm/parse/index.js","./node_modules/date-fns/esm/compareAsc/index.js","./node_modules/date-fns/esm/differenceInCalendarMonths/index.js","./node_modules/date-fns/esm/isLastDayOfMonth/index.js","./node_modules/date-fns/esm/differenceInMonths/index.js","./node_modules/date-fns/esm/differenceInSeconds/index.js","./node_modules/date-fns/esm/_lib/cloneObject/index.js","./node_modules/date-fns/esm/formatDistance/index.js","./node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/ca/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/ca/_lib/localize/index.js","./node_modules/date-fns/esm/locale/ca/index.js","./node_modules/date-fns/esm/locale/ca/_lib/match/index.js","./node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/es/index.js","./node_modules/date-fns/esm/locale/es/_lib/localize/index.js","./node_modules/date-fns/esm/locale/es/_lib/match/index.js","./node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/fr/index.js","./node_modules/date-fns/esm/locale/fr/_lib/localize/index.js","./node_modules/date-fns/esm/locale/fr/_lib/match/index.js","./node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js","./node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js","./node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/it/index.js","./node_modules/date-fns/esm/locale/it/_lib/localize/index.js","./node_modules/date-fns/esm/locale/it/_lib/match/index.js","./node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/pt/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/pt/index.js","./node_modules/date-fns/esm/locale/pt/_lib/localize/index.js","./node_modules/date-fns/esm/locale/pt/_lib/match/index.js","./node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js","./node_modules/date-fns/esm/locale/ro/_lib/formatLong/index.js","./node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js","./node_modules/date-fns/esm/locale/ro/index.js","./node_modules/date-fns/esm/locale/ro/_lib/localize/index.js","./node_modules/date-fns/esm/locale/ro/_lib/match/index.js","./node_modules/@primavera/components/fesm2020/primavera-components.mjs","./node_modules/date-fns/esm/formatDistanceToNow/index.js","./node_modules/@angular/common/locales/ca.mjs","./node_modules/@angular/common/locales/en-GB.mjs","./node_modules/@angular/common/locales/en-IE.mjs","./node_modules/@angular/common/locales/es.mjs","./node_modules/@angular/common/locales/es-AR.mjs","./node_modules/@angular/common/locales/es-CL.mjs","./node_modules/@angular/common/locales/es-MX.mjs","./node_modules/@angular/common/locales/pt-AO.mjs","./node_modules/@angular/common/locales/pt-CV.mjs","./node_modules/@angular/common/locales/pt-MZ.mjs","./node_modules/@angular/common/locales/pt-PT.mjs","./node_modules/@angular/common/locales/ro.mjs","./node_modules/@angular/common/locales/fr.mjs","./node_modules/@angular/common/locales/fr-BE.mjs","./node_modules/@angular/common/locales/fr-CA.mjs","./node_modules/@angular/common/locales/fr-LU.mjs","./node_modules/@angular/common/locales/fr-CH.mjs","./node_modules/@primavera/localization/fesm2020/primavera-localization.mjs","./node_modules/date-fns/esm/subDays/index.js","./node_modules/date-fns/esm/isSameWeek/index.js","./node_modules/date-fns/esm/getWeekYear/index.js","./node_modules/date-fns/esm/startOfWeekYear/index.js","./node_modules/date-fns/esm/getWeek/index.js","./node_modules/@primavera/pushnotifications/fesm2020/primavera-pushnotifications.mjs","./node_modules/date-fns/esm/differenceInMinutes/index.js","./node_modules/date-fns/esm/isToday/index.js","./node_modules/date-fns/esm/isYesterday/index.js","./node_modules/date-fns/esm/isThisWeek/index.js","./node_modules/date-fns/esm/isBefore/index.js","./node_modules/date-fns/esm/startOfYesterday/index.js","./node_modules/@primavera/search/fesm2020/primavera-search.mjs","./node_modules/@microsoft/signalr/dist/esm/DefaultReconnectPolicy.js","./node_modules/@microsoft/signalr/dist/esm/Errors.js","./node_modules/@microsoft/signalr/dist/esm/HttpClient.js","./node_modules/@microsoft/signalr/dist/esm/FetchHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/XhrHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/DefaultHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/HeaderNames.js","./node_modules/@microsoft/signalr/dist/esm/ITransport.js","./node_modules/@microsoft/signalr/dist/esm/AbortController.js","./node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js","./node_modules/@microsoft/signalr/dist/esm/ServerSentEventsTransport.js","./node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js","./node_modules/@microsoft/signalr/dist/esm/HttpConnection.js","./node_modules/@microsoft/signalr/dist/esm/JsonHubProtocol.js","./node_modules/@microsoft/signalr/dist/esm/HubConnectionBuilder.js","./node_modules/@primavera/services/fesm2020/primavera-services.mjs","./node_modules/date-fns/esm/addHours/index.js","./node_modules/@primavera/shell/fesm2020/primavera-shell.mjs","./node_modules/angular-oauth2-oidc/fesm2020/angular-oauth2-oidc.mjs","./node_modules/ngx-bootstrap/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs","./node_modules/ngx-bootstrap/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs","./node_modules/ngx-bootstrap/focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs","./node_modules/ngx-bootstrap/modal/fesm2020/ngx-bootstrap-modal.mjs","./node_modules/ngx-bootstrap/popover/fesm2020/ngx-bootstrap-popover.mjs","./node_modules/ngx-bootstrap/positioning/fesm2020/ngx-bootstrap-positioning.mjs","./node_modules/ngx-bootstrap/utils/fesm2020/ngx-bootstrap-utils.mjs","./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","./node_modules/date-fns/node_modules/@babel/runtime/helpers/esm/typeof.js","./node_modules/tslib/tslib.es6.mjs"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\r\nimport { EnvironmentSettings, WildcardService } from '@primavera/services';\r\nimport { Observable, Subscriber, firstValueFrom } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class WildcardCustomService extends WildcardService {\r\n\tprivate environmentSettings = inject(EnvironmentSettings);\r\n\r\n\toverride formatOperation(operation: string): Observable<string> {\r\n\t\toperation = operation.replace('{apiVisEndpoint}', (this.environmentSettings as any).apiVisEndpoint);\r\n\t\treturn super.formatOperation(operation);\r\n\t}\r\n}\r\n","import { Provider } from '@angular/core';\nimport { WildcardService, AppInitializerCustomService } from '@primavera/services';\nimport { WildcardCustomService } from './services/wildcard-custom.service';\nimport { CustomInitService } from './services/custom-init.service';\n\nexport const customServices: Array<Provider> = [];\nexport const customMainServices: Array<Provider> = [\n    {\n        provide: WildcardService,\n        useClass: WildcardCustomService\n    },\n    {\n        provide: AppInitializerCustomService,\n        useClass: CustomInitService\n    }\n];\n","import { Injectable } from '@angular/core';\r\nimport { AppInitializerCustomBaseService } from '@primavera/services';\r\n\r\n@Injectable()\r\nexport class CustomInitService extends AppInitializerCustomBaseService {\r\n\toverride async initialize(): Promise<void> {\r\n\t\tthis.addChat();\r\n\t}\r\n\r\n\tprivate addChat(): void {\r\n\t\tconst node: HTMLScriptElement = document.createElement('script');\r\n\t\tconst uid = '15d8d882db614c7b8473de6b3b580700';\r\n\r\n\t\tnode.append(`window.GPTTConfig={uuid:\"${uid}\"}`);\r\n\t\tnode.type = 'text/javascript';\r\n\t\tdocument.getElementsByTagName('head')[0].appendChild(node);\r\n\r\n\t\tconst script: HTMLScriptElement = document.createElement('script');\r\n\t\tscript.type = 'text/javascript';\r\n\t\tscript.defer = true;\r\n\t\tscript.src = 'https://app.gpt-trainer.com/widget-asset.min.js';\r\n\r\n\t\tdocument.getElementsByTagName('head')[0].appendChild(script);\r\n\t}\r\n}\r\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, sequence, style } from '@angular/animations';\nimport * as i0 from '@angular/core';\nimport { ɵRuntimeError, Injectable } from '@angular/core';\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.io/license\n */\nconst LINE_START = '\\n - ';\nfunction invalidTimingValue(exp) {\n    return new ɵRuntimeError(3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, ngDevMode && `The provided timing value \"${exp}\" is invalid.`);\n}\nfunction negativeStepValue() {\n    return new ɵRuntimeError(3100 /* RuntimeErrorCode.NEGATIVE_STEP_VALUE */, ngDevMode && 'Duration values below 0 are not allowed for this animation step.');\n}\nfunction negativeDelayValue() {\n    return new ɵRuntimeError(3101 /* RuntimeErrorCode.NEGATIVE_DELAY_VALUE */, ngDevMode && 'Delay values below 0 are not allowed for this animation step.');\n}\nfunction invalidStyleParams(varName) {\n    return new ɵRuntimeError(3001 /* RuntimeErrorCode.INVALID_STYLE_PARAMS */, ngDevMode &&\n        `Unable to resolve the local animation param ${varName} in the given list of values`);\n}\nfunction invalidParamValue(varName) {\n    return new ɵRuntimeError(3003 /* RuntimeErrorCode.INVALID_PARAM_VALUE */, ngDevMode && `Please provide a value for the animation param ${varName}`);\n}\nfunction invalidNodeType(nodeType) {\n    return new ɵRuntimeError(3004 /* RuntimeErrorCode.INVALID_NODE_TYPE */, ngDevMode && `Unable to resolve animation metadata node #${nodeType}`);\n}\nfunction invalidCssUnitValue(userProvidedProperty, value) {\n    return new ɵRuntimeError(3005 /* RuntimeErrorCode.INVALID_CSS_UNIT_VALUE */, ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`);\n}\nfunction invalidTrigger() {\n    return new ɵRuntimeError(3006 /* RuntimeErrorCode.INVALID_TRIGGER */, ngDevMode &&\n        'animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))');\n}\nfunction invalidDefinition() {\n    return new ɵRuntimeError(3007 /* RuntimeErrorCode.INVALID_DEFINITION */, ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()');\n}\nfunction invalidState(metadataName, missingSubs) {\n    return new ɵRuntimeError(3008 /* RuntimeErrorCode.INVALID_STATE */, ngDevMode &&\n        `state(\"${metadataName}\", ...) must define default values for all the following style substitutions: ${missingSubs.join(', ')}`);\n}\nfunction invalidStyleValue(value) {\n    return new ɵRuntimeError(3002 /* RuntimeErrorCode.INVALID_STYLE_VALUE */, ngDevMode && `The provided style string value ${value} is not allowed.`);\n}\nfunction invalidProperty(prop) {\n    return new ɵRuntimeError(3009 /* RuntimeErrorCode.INVALID_PROPERTY */, ngDevMode &&\n        `The provided animation property \"${prop}\" is not a supported CSS property for animations`);\n}\nfunction invalidParallelAnimation(prop, firstStart, firstEnd, secondStart, secondEnd) {\n    return new ɵRuntimeError(3010 /* RuntimeErrorCode.INVALID_PARALLEL_ANIMATION */, ngDevMode &&\n        `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${firstEnd}ms\" is also being animated in a parallel animation between the times of \"${secondStart}ms\" and \"${secondEnd}ms\"`);\n}\nfunction invalidKeyframes() {\n    return new ɵRuntimeError(3011 /* RuntimeErrorCode.INVALID_KEYFRAMES */, ngDevMode && `keyframes() must be placed inside of a call to animate()`);\n}\nfunction invalidOffset() {\n    return new ɵRuntimeError(3012 /* RuntimeErrorCode.INVALID_OFFSET */, ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`);\n}\nfunction keyframeOffsetsOutOfOrder() {\n    return new ɵRuntimeError(3200 /* RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER */, ngDevMode && `Please ensure that all keyframe offsets are in order`);\n}\nfunction keyframesMissingOffsets() {\n    return new ɵRuntimeError(3202 /* RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS */, ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`);\n}\nfunction invalidStagger() {\n    return new ɵRuntimeError(3013 /* RuntimeErrorCode.INVALID_STAGGER */, ngDevMode && `stagger() can only be used inside of query()`);\n}\nfunction invalidQuery(selector) {\n    return new ɵRuntimeError(3014 /* RuntimeErrorCode.INVALID_QUERY */, ngDevMode &&\n        `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${selector}\", { optional: true })\\` if you wish to allow this.)`);\n}\nfunction invalidExpression(expr) {\n    return new ɵRuntimeError(3015 /* RuntimeErrorCode.INVALID_EXPRESSION */, ngDevMode && `The provided transition expression \"${expr}\" is not supported`);\n}\nfunction invalidTransitionAlias(alias) {\n    return new ɵRuntimeError(3016 /* RuntimeErrorCode.INVALID_TRANSITION_ALIAS */, ngDevMode && `The transition alias value \"${alias}\" is not supported`);\n}\nfunction validationFailed(errors) {\n    return new ɵRuntimeError(3500 /* RuntimeErrorCode.VALIDATION_FAILED */, ngDevMode && `animation validation failed:\\n${errors.map(err => err.message).join('\\n')}`);\n}\nfunction buildingFailed(errors) {\n    return new ɵRuntimeError(3501 /* RuntimeErrorCode.BUILDING_FAILED */, ngDevMode && `animation building failed:\\n${errors.map(err => err.message).join('\\n')}`);\n}\nfunction triggerBuildFailed(name, errors) {\n    return new ɵRuntimeError(3404 /* RuntimeErrorCode.TRIGGER_BUILD_FAILED */, ngDevMode &&\n        `The animation trigger \"${name}\" has failed to build due to the following errors:\\n - ${errors.map(err => err.message).join('\\n - ')}`);\n}\nfunction animationFailed(errors) {\n    return new ɵRuntimeError(3502 /* RuntimeErrorCode.ANIMATION_FAILED */, ngDevMode &&\n        `Unable to animate due to the following errors:${LINE_START}${errors.map(err => err.message).join(LINE_START)}`);\n}\nfunction registerFailed(errors) {\n    return new ɵRuntimeError(3503 /* RuntimeErrorCode.REGISTRATION_FAILED */, ngDevMode &&\n        `Unable to build the animation due to the following errors: ${errors.map(err => err.message).join('\\n')}`);\n}\nfunction missingOrDestroyedAnimation() {\n    return new ɵRuntimeError(3300 /* RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION */, ngDevMode && 'The requested animation doesn\\'t exist or has already been destroyed');\n}\nfunction createAnimationFailed(errors) {\n    return new ɵRuntimeError(3504 /* RuntimeErrorCode.CREATE_ANIMATION_FAILED */, ngDevMode &&\n        `Unable to create the animation due to the following errors:${errors.map(err => err.message).join('\\n')}`);\n}\nfunction missingPlayer(id) {\n    return new ɵRuntimeError(3301 /* RuntimeErrorCode.MISSING_PLAYER */, ngDevMode && `Unable to find the timeline player referenced by ${id}`);\n}\nfunction missingTrigger(phase, name) {\n    return new ɵRuntimeError(3302 /* RuntimeErrorCode.MISSING_TRIGGER */, ngDevMode &&\n        `Unable to listen on the animation trigger event \"${phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`);\n}\nfunction missingEvent(name) {\n    return new ɵRuntimeError(3303 /* RuntimeErrorCode.MISSING_EVENT */, ngDevMode &&\n        `Unable to listen on the animation trigger \"${name}\" because the provided event is undefined!`);\n}\nfunction unsupportedTriggerEvent(phase, name) {\n    return new ɵRuntimeError(3400 /* RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT */, ngDevMode &&\n        `The provided animation trigger event \"${phase}\" for the animation trigger \"${name}\" is not supported!`);\n}\nfunction unregisteredTrigger(name) {\n    return new ɵRuntimeError(3401 /* RuntimeErrorCode.UNREGISTERED_TRIGGER */, ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`);\n}\nfunction triggerTransitionsFailed(errors) {\n    return new ɵRuntimeError(3402 /* RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED */, ngDevMode &&\n        `Unable to process animations due to the following failed trigger transitions\\n ${errors.map(err => err.message).join('\\n')}`);\n}\nfunction triggerParsingFailed(name, errors) {\n    return new ɵRuntimeError(3403 /* RuntimeErrorCode.TRIGGER_PARSING_FAILED */, ngDevMode &&\n        `Animation parsing for the ${name} trigger have failed:${LINE_START}${errors.map(err => err.message).join(LINE_START)}`);\n}\nfunction transitionFailed(name, errors) {\n    return new ɵRuntimeError(3505 /* RuntimeErrorCode.TRANSITION_FAILED */, ngDevMode && `@${name} has failed due to:\\n ${errors.map(err => err.message).join('\\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.io/license\n */\n/**\n * Set of all animatable CSS properties\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties\n */\nconst ANIMATABLE_PROP_SET = new Set([\n    '-moz-outline-radius',\n    '-moz-outline-radius-bottomleft',\n    '-moz-outline-radius-bottomright',\n    '-moz-outline-radius-topleft',\n    '-moz-outline-radius-topright',\n    '-ms-grid-columns',\n    '-ms-grid-rows',\n    '-webkit-line-clamp',\n    '-webkit-text-fill-color',\n    '-webkit-text-stroke',\n    '-webkit-text-stroke-color',\n    'accent-color',\n    'all',\n    'backdrop-filter',\n    'background',\n    'background-color',\n    'background-position',\n    'background-size',\n    'block-size',\n    'border',\n    'border-block-end',\n    'border-block-end-color',\n    'border-block-end-width',\n    'border-block-start',\n    'border-block-start-color',\n    'border-block-start-width',\n    'border-bottom',\n    'border-bottom-color',\n    'border-bottom-left-radius',\n    'border-bottom-right-radius',\n    'border-bottom-width',\n    'border-color',\n    'border-end-end-radius',\n    'border-end-start-radius',\n    'border-image-outset',\n    'border-image-slice',\n    'border-image-width',\n    'border-inline-end',\n    'border-inline-end-color',\n    'border-inline-end-width',\n    'border-inline-start',\n    'border-inline-start-color',\n    'border-inline-start-width',\n    'border-left',\n    'border-left-color',\n    'border-left-width',\n    'border-radius',\n    'border-right',\n    'border-right-color',\n    'border-right-width',\n    'border-start-end-radius',\n    'border-start-start-radius',\n    'border-top',\n    'border-top-color',\n    'border-top-left-radius',\n    'border-top-right-radius',\n    'border-top-width',\n    'border-width',\n    'bottom',\n    'box-shadow',\n    'caret-color',\n    'clip',\n    'clip-path',\n    'color',\n    'column-count',\n    'column-gap',\n    'column-rule',\n    'column-rule-color',\n    'column-rule-width',\n    'column-width',\n    'columns',\n    'filter',\n    'flex',\n    'flex-basis',\n    'flex-grow',\n    'flex-shrink',\n    'font',\n    'font-size',\n    'font-size-adjust',\n    'font-stretch',\n    'font-variation-settings',\n    'font-weight',\n    'gap',\n    'grid-column-gap',\n    'grid-gap',\n    'grid-row-gap',\n    'grid-template-columns',\n    'grid-template-rows',\n    'height',\n    'inline-size',\n    'input-security',\n    'inset',\n    'inset-block',\n    'inset-block-end',\n    'inset-block-start',\n    'inset-inline',\n    'inset-inline-end',\n    'inset-inline-start',\n    'left',\n    'letter-spacing',\n    'line-clamp',\n    'line-height',\n    'margin',\n    'margin-block-end',\n    'margin-block-start',\n    'margin-bottom',\n    'margin-inline-end',\n    'margin-inline-start',\n    'margin-left',\n    'margin-right',\n    'margin-top',\n    'mask',\n    'mask-border',\n    'mask-position',\n    'mask-size',\n    'max-block-size',\n    'max-height',\n    'max-inline-size',\n    'max-lines',\n    'max-width',\n    'min-block-size',\n    'min-height',\n    'min-inline-size',\n    'min-width',\n    'object-position',\n    'offset',\n    'offset-anchor',\n    'offset-distance',\n    'offset-path',\n    'offset-position',\n    'offset-rotate',\n    'opacity',\n    'order',\n    'outline',\n    'outline-color',\n    'outline-offset',\n    'outline-width',\n    'padding',\n    'padding-block-end',\n    'padding-block-start',\n    'padding-bottom',\n    'padding-inline-end',\n    'padding-inline-start',\n    'padding-left',\n    'padding-right',\n    'padding-top',\n    'perspective',\n    'perspective-origin',\n    'right',\n    'rotate',\n    'row-gap',\n    'scale',\n    'scroll-margin',\n    'scroll-margin-block',\n    'scroll-margin-block-end',\n    'scroll-margin-block-start',\n    'scroll-margin-bottom',\n    'scroll-margin-inline',\n    'scroll-margin-inline-end',\n    'scroll-margin-inline-start',\n    'scroll-margin-left',\n    'scroll-margin-right',\n    'scroll-margin-top',\n    'scroll-padding',\n    'scroll-padding-block',\n    'scroll-padding-block-end',\n    'scroll-padding-block-start',\n    'scroll-padding-bottom',\n    'scroll-padding-inline',\n    'scroll-padding-inline-end',\n    'scroll-padding-inline-start',\n    'scroll-padding-left',\n    'scroll-padding-right',\n    'scroll-padding-top',\n    'scroll-snap-coordinate',\n    'scroll-snap-destination',\n    'scrollbar-color',\n    'shape-image-threshold',\n    'shape-margin',\n    'shape-outside',\n    'tab-size',\n    'text-decoration',\n    'text-decoration-color',\n    'text-decoration-thickness',\n    'text-emphasis',\n    'text-emphasis-color',\n    'text-indent',\n    'text-shadow',\n    'text-underline-offset',\n    'top',\n    'transform',\n    'transform-origin',\n    'translate',\n    'vertical-align',\n    'visibility',\n    'width',\n    'word-spacing',\n    'z-index',\n    'zoom',\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.io/license\n */\nfunction isBrowser() {\n    return (typeof window !== 'undefined' && typeof window.document !== 'undefined');\n}\nfunction isNode() {\n    // Checking only for `process` isn't enough to identify whether or not we're in a Node\n    // environment, because Webpack by default will polyfill the `process`. While we can discern\n    // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and\n    // might not be future-proof. Instead we look at the stringified version of `process` which\n    // is `[object process]` in Node and `[object Object]` when polyfilled.\n    return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n}\nfunction optimizeGroupPlayer(players) {\n    switch (players.length) {\n        case 0:\n            return new NoopAnimationPlayer();\n        case 1:\n            return players[0];\n        default:\n            return new ɵAnimationGroupPlayer(players);\n    }\n}\nfunction normalizeKeyframes$1(driver, normalizer, element, keyframes, preStyles = new Map(), postStyles = new Map()) {\n    const errors = [];\n    const normalizedKeyframes = [];\n    let previousOffset = -1;\n    let previousKeyframe = null;\n    keyframes.forEach(kf => {\n        const offset = kf.get('offset');\n        const isSameOffset = offset == previousOffset;\n        const normalizedKeyframe = (isSameOffset && previousKeyframe) || new Map();\n        kf.forEach((val, prop) => {\n            let normalizedProp = prop;\n            let normalizedValue = val;\n            if (prop !== 'offset') {\n                normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);\n                switch (normalizedValue) {\n                    case ɵPRE_STYLE:\n                        normalizedValue = preStyles.get(prop);\n                        break;\n                    case AUTO_STYLE:\n                        normalizedValue = postStyles.get(prop);\n                        break;\n                    default:\n                        normalizedValue =\n                            normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);\n                        break;\n                }\n            }\n            normalizedKeyframe.set(normalizedProp, normalizedValue);\n        });\n        if (!isSameOffset) {\n            normalizedKeyframes.push(normalizedKeyframe);\n        }\n        previousKeyframe = normalizedKeyframe;\n        previousOffset = offset;\n    });\n    if (errors.length) {\n        throw animationFailed(errors);\n    }\n    return normalizedKeyframes;\n}\nfunction listenOnPlayer(player, eventName, event, callback) {\n    switch (eventName) {\n        case 'start':\n            player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));\n            break;\n        case 'done':\n            player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));\n            break;\n        case 'destroy':\n            player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));\n            break;\n    }\n}\nfunction copyAnimationEvent(e, phaseName, player) {\n    const totalTime = player.totalTime;\n    const disabled = player.disabled ? true : false;\n    const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);\n    const data = e['_data'];\n    if (data != null) {\n        event['_data'] = data;\n    }\n    return event;\n}\nfunction makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {\n    return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };\n}\nfunction getOrSetDefaultValue(map, key, defaultValue) {\n    let value = map.get(key);\n    if (!value) {\n        map.set(key, value = defaultValue);\n    }\n    return value;\n}\nfunction parseTimelineCommand(command) {\n    const separatorPos = command.indexOf(':');\n    const id = command.substring(1, separatorPos);\n    const action = command.slice(separatorPos + 1);\n    return [id, action];\n}\nlet _contains = (elm1, elm2) => false;\nlet _query = (element, selector, multi) => {\n    return [];\n};\nlet _documentElement = null;\nfunction getParentElement(element) {\n    const parent = element.parentNode || element.host; // consider host to support shadow DOM\n    if (parent === _documentElement) {\n        return null;\n    }\n    return parent;\n}\n// Define utility methods for browsers and platform-server(domino) where Element\n// and utility methods exist.\nconst _isNode = isNode();\nif (_isNode || typeof Element !== 'undefined') {\n    if (!isBrowser()) {\n        _contains = (elm1, elm2) => elm1.contains(elm2);\n    }\n    else {\n        // Read the document element in an IIFE that's been marked pure to avoid a top-level property\n        // read that may prevent tree-shaking.\n        _documentElement = /* @__PURE__ */ (() => document.documentElement)();\n        _contains = (elm1, elm2) => {\n            while (elm2) {\n                if (elm2 === elm1) {\n                    return true;\n                }\n                elm2 = getParentElement(elm2);\n            }\n            return false;\n        };\n    }\n    _query = (element, selector, multi) => {\n        if (multi) {\n            return Array.from(element.querySelectorAll(selector));\n        }\n        const elem = element.querySelector(selector);\n        return elem ? [elem] : [];\n    };\n}\nfunction containsVendorPrefix(prop) {\n    // Webkit is the only real popular vendor prefix nowadays\n    // cc: http://shouldiprefix.com/\n    return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit\n}\nlet _CACHED_BODY = null;\nlet _IS_WEBKIT = false;\nfunction validateStyleProperty(prop) {\n    if (!_CACHED_BODY) {\n        _CACHED_BODY = getBodyNode() || {};\n        _IS_WEBKIT = _CACHED_BODY.style ? ('WebkitAppearance' in _CACHED_BODY.style) : false;\n    }\n    let result = true;\n    if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {\n        result = prop in _CACHED_BODY.style;\n        if (!result && _IS_WEBKIT) {\n            const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);\n            result = camelProp in _CACHED_BODY.style;\n        }\n    }\n    return result;\n}\nfunction validateWebAnimatableStyleProperty(prop) {\n    return ANIMATABLE_PROP_SET.has(prop);\n}\nfunction getBodyNode() {\n    if (typeof document != 'undefined') {\n        return document.body;\n    }\n    return null;\n}\nconst containsElement = _contains;\nconst invokeQuery = _query;\nfunction hypenatePropsKeys(original) {\n    const newMap = new Map();\n    original.forEach((val, prop) => {\n        const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');\n        newMap.set(newProp, val);\n    });\n    return newMap;\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.io/license\n */\n/**\n * @publicApi\n */\nclass NoopAnimationDriver {\n    validateStyleProperty(prop) {\n        return validateStyleProperty(prop);\n    }\n    matchesElement(_element, _selector) {\n        // This method is deprecated and no longer in use so we return false.\n        return false;\n    }\n    containsElement(elm1, elm2) {\n        return containsElement(elm1, elm2);\n    }\n    getParentElement(element) {\n        return getParentElement(element);\n    }\n    query(element, selector, multi) {\n        return invokeQuery(element, selector, multi);\n    }\n    computeStyle(element, prop, defaultValue) {\n        return defaultValue || '';\n    }\n    animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n        return new NoopAnimationPlayer(duration, delay);\n    }\n}\nNoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationDriver });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationDriver, decorators: [{\n            type: Injectable\n        }] });\n/**\n * @publicApi\n */\nclass AnimationDriver {\n}\nAnimationDriver.NOOP = ( /* @__PURE__ */new NoopAnimationDriver());\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.io/license\n */\nconst ONE_SECOND = 1000;\nconst SUBSTITUTION_EXPR_START = '{{';\nconst SUBSTITUTION_EXPR_END = '}}';\nconst ENTER_CLASSNAME = 'ng-enter';\nconst LEAVE_CLASSNAME = 'ng-leave';\nconst NG_TRIGGER_CLASSNAME = 'ng-trigger';\nconst NG_TRIGGER_SELECTOR = '.ng-trigger';\nconst NG_ANIMATING_CLASSNAME = 'ng-animating';\nconst NG_ANIMATING_SELECTOR = '.ng-animating';\nfunction resolveTimingValue(value) {\n    if (typeof value == 'number')\n        return value;\n    const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);\n    if (!matches || matches.length < 2)\n        return 0;\n    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n}\nfunction _convertTimeValueToMS(value, unit) {\n    switch (unit) {\n        case 's':\n            return value * ONE_SECOND;\n        default: // ms or something else\n            return value;\n    }\n}\nfunction resolveTiming(timings, errors, allowNegativeValues) {\n    return timings.hasOwnProperty('duration') ?\n        timings :\n        parseTimeExpression(timings, errors, allowNegativeValues);\n}\nfunction parseTimeExpression(exp, errors, allowNegativeValues) {\n    const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;\n    let duration;\n    let delay = 0;\n    let easing = '';\n    if (typeof exp === 'string') {\n        const matches = exp.match(regex);\n        if (matches === null) {\n            errors.push(invalidTimingValue(exp));\n            return { duration: 0, delay: 0, easing: '' };\n        }\n        duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n        const delayMatch = matches[3];\n        if (delayMatch != null) {\n            delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);\n        }\n        const easingVal = matches[5];\n        if (easingVal) {\n            easing = easingVal;\n        }\n    }\n    else {\n        duration = exp;\n    }\n    if (!allowNegativeValues) {\n        let containsErrors = false;\n        let startIndex = errors.length;\n        if (duration < 0) {\n            errors.push(negativeStepValue());\n            containsErrors = true;\n        }\n        if (delay < 0) {\n            errors.push(negativeDelayValue());\n            containsErrors = true;\n        }\n        if (containsErrors) {\n            errors.splice(startIndex, 0, invalidTimingValue(exp));\n        }\n    }\n    return { duration, delay, easing };\n}\nfunction copyObj(obj, destination = {}) {\n    Object.keys(obj).forEach(prop => {\n        destination[prop] = obj[prop];\n    });\n    return destination;\n}\nfunction convertToMap(obj) {\n    const styleMap = new Map();\n    Object.keys(obj).forEach(prop => {\n        const val = obj[prop];\n        styleMap.set(prop, val);\n    });\n    return styleMap;\n}\nfunction normalizeKeyframes(keyframes) {\n    if (!keyframes.length) {\n        return [];\n    }\n    if (keyframes[0] instanceof Map) {\n        return keyframes;\n    }\n    return keyframes.map(kf => convertToMap(kf));\n}\nfunction normalizeStyles(styles) {\n    const normalizedStyles = new Map();\n    if (Array.isArray(styles)) {\n        styles.forEach(data => copyStyles(data, normalizedStyles));\n    }\n    else {\n        copyStyles(styles, normalizedStyles);\n    }\n    return normalizedStyles;\n}\nfunction copyStyles(styles, destination = new Map(), backfill) {\n    if (backfill) {\n        for (let [prop, val] of backfill) {\n            destination.set(prop, val);\n        }\n    }\n    for (let [prop, val] of styles) {\n        destination.set(prop, val);\n    }\n    return destination;\n}\nfunction getStyleAttributeString(element, key, value) {\n    // Return the key-value pair string to be added to the style attribute for the\n    // given CSS style key.\n    if (value) {\n        return key + ':' + value + ';';\n    }\n    else {\n        return '';\n    }\n}\nfunction writeStyleAttribute(element) {\n    // Read the style property of the element and manually reflect it to the\n    // style attribute. This is needed because Domino on platform-server doesn't\n    // understand the full set of allowed CSS properties and doesn't reflect some\n    // of them automatically.\n    let styleAttrValue = '';\n    for (let i = 0; i < element.style.length; i++) {\n        const key = element.style.item(i);\n        styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));\n    }\n    for (const key in element.style) {\n        // Skip internal Domino properties that don't need to be reflected.\n        if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {\n            continue;\n        }\n        const dashKey = camelCaseToDashCase(key);\n        styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);\n    }\n    element.setAttribute('style', styleAttrValue);\n}\nfunction setStyles(element, styles, formerStyles) {\n    if (element['style']) {\n        styles.forEach((val, prop) => {\n            const camelProp = dashCaseToCamelCase(prop);\n            if (formerStyles && !formerStyles.has(prop)) {\n                formerStyles.set(prop, element.style[camelProp]);\n            }\n            element.style[camelProp] = val;\n        });\n        // On the server set the 'style' attribute since it's not automatically reflected.\n        if (isNode()) {\n            writeStyleAttribute(element);\n        }\n    }\n}\nfunction eraseStyles(element, styles) {\n    if (element['style']) {\n        styles.forEach((_, prop) => {\n            const camelProp = dashCaseToCamelCase(prop);\n            element.style[camelProp] = '';\n        });\n        // On the server set the 'style' attribute since it's not automatically reflected.\n        if (isNode()) {\n            writeStyleAttribute(element);\n        }\n    }\n}\nfunction normalizeAnimationEntry(steps) {\n    if (Array.isArray(steps)) {\n        if (steps.length == 1)\n            return steps[0];\n        return sequence(steps);\n    }\n    return steps;\n}\nfunction validateStyleParams(value, options, errors) {\n    const params = options.params || {};\n    const matches = extractStyleParams(value);\n    if (matches.length) {\n        matches.forEach(varName => {\n            if (!params.hasOwnProperty(varName)) {\n                errors.push(invalidStyleParams(varName));\n            }\n        });\n    }\n}\nconst PARAM_REGEX = new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g');\nfunction extractStyleParams(value) {\n    let params = [];\n    if (typeof value === 'string') {\n        let match;\n        while (match = PARAM_REGEX.exec(value)) {\n            params.push(match[1]);\n        }\n        PARAM_REGEX.lastIndex = 0;\n    }\n    return params;\n}\nfunction interpolateParams(value, params, errors) {\n    const original = value.toString();\n    const str = original.replace(PARAM_REGEX, (_, varName) => {\n        let localVal = params[varName];\n        // this means that the value was never overridden by the data passed in by the user\n        if (localVal == null) {\n            errors.push(invalidParamValue(varName));\n            localVal = '';\n        }\n        return localVal.toString();\n    });\n    // we do this to assert that numeric values stay as they are\n    return str == original ? value : str;\n}\nfunction iteratorToArray(iterator) {\n    const arr = [];\n    let item = iterator.next();\n    while (!item.done) {\n        arr.push(item.value);\n        item = iterator.next();\n    }\n    return arr;\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 camelCaseToDashCase(input) {\n    return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\nfunction allowPreviousPlayerStylesMerge(duration, delay) {\n    return duration === 0 || delay === 0;\n}\nfunction balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {\n    if (previousStyles.size && keyframes.length) {\n        let startingKeyframe = keyframes[0];\n        let missingStyleProps = [];\n        previousStyles.forEach((val, prop) => {\n            if (!startingKeyframe.has(prop)) {\n                missingStyleProps.push(prop);\n            }\n            startingKeyframe.set(prop, val);\n        });\n        if (missingStyleProps.length) {\n            for (let i = 1; i < keyframes.length; i++) {\n                let kf = keyframes[i];\n                missingStyleProps.forEach(prop => kf.set(prop, computeStyle(element, prop)));\n            }\n        }\n    }\n    return keyframes;\n}\nfunction visitDslNode(visitor, node, context) {\n    switch (node.type) {\n        case 7 /* AnimationMetadataType.Trigger */:\n            return visitor.visitTrigger(node, context);\n        case 0 /* AnimationMetadataType.State */:\n            return visitor.visitState(node, context);\n        case 1 /* AnimationMetadataType.Transition */:\n            return visitor.visitTransition(node, context);\n        case 2 /* AnimationMetadataType.Sequence */:\n            return visitor.visitSequence(node, context);\n        case 3 /* AnimationMetadataType.Group */:\n            return visitor.visitGroup(node, context);\n        case 4 /* AnimationMetadataType.Animate */:\n            return visitor.visitAnimate(node, context);\n        case 5 /* AnimationMetadataType.Keyframes */:\n            return visitor.visitKeyframes(node, context);\n        case 6 /* AnimationMetadataType.Style */:\n            return visitor.visitStyle(node, context);\n        case 8 /* AnimationMetadataType.Reference */:\n            return visitor.visitReference(node, context);\n        case 9 /* AnimationMetadataType.AnimateChild */:\n            return visitor.visitAnimateChild(node, context);\n        case 10 /* AnimationMetadataType.AnimateRef */:\n            return visitor.visitAnimateRef(node, context);\n        case 11 /* AnimationMetadataType.Query */:\n            return visitor.visitQuery(node, context);\n        case 12 /* AnimationMetadataType.Stagger */:\n            return visitor.visitStagger(node, context);\n        default:\n            throw invalidNodeType(node.type);\n    }\n}\nfunction computeStyle(element, prop) {\n    return window.getComputedStyle(element)[prop];\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.io/license\n */\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;\nfunction createListOfWarnings(warnings) {\n    const LINE_START = '\\n - ';\n    return `${LINE_START}${warnings.filter(Boolean).map(warning => warning).join(LINE_START)}`;\n}\nfunction warnValidation(warnings) {\n    NG_DEV_MODE && console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnTriggerBuild(name, warnings) {\n    NG_DEV_MODE &&\n        console.warn(`The animation trigger \"${name}\" has built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnRegister(warnings) {\n    NG_DEV_MODE &&\n        console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction triggerParsingWarnings(name, warnings) {\n    NG_DEV_MODE &&\n        console.warn(`Animation parsing for the ${name} trigger presents the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction pushUnrecognizedPropertiesWarning(warnings, props) {\n    if (props.length) {\n        warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);\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.io/license\n */\nconst ANY_STATE = '*';\nfunction parseTransitionExpr(transitionValue, errors) {\n    const expressions = [];\n    if (typeof transitionValue == 'string') {\n        transitionValue.split(/\\s*,\\s*/).forEach(str => parseInnerTransitionStr(str, expressions, errors));\n    }\n    else {\n        expressions.push(transitionValue);\n    }\n    return expressions;\n}\nfunction parseInnerTransitionStr(eventStr, expressions, errors) {\n    if (eventStr[0] == ':') {\n        const result = parseAnimationAlias(eventStr, errors);\n        if (typeof result == 'function') {\n            expressions.push(result);\n            return;\n        }\n        eventStr = result;\n    }\n    const match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);\n    if (match == null || match.length < 4) {\n        errors.push(invalidExpression(eventStr));\n        return expressions;\n    }\n    const fromState = match[1];\n    const separator = match[2];\n    const toState = match[3];\n    expressions.push(makeLambdaFromStates(fromState, toState));\n    const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;\n    if (separator[0] == '<' && !isFullAnyStateExpr) {\n        expressions.push(makeLambdaFromStates(toState, fromState));\n    }\n}\nfunction parseAnimationAlias(alias, errors) {\n    switch (alias) {\n        case ':enter':\n            return 'void => *';\n        case ':leave':\n            return '* => void';\n        case ':increment':\n            return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);\n        case ':decrement':\n            return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);\n        default:\n            errors.push(invalidTransitionAlias(alias));\n            return '* => *';\n    }\n}\n// DO NOT REFACTOR ... keep the follow set instantiations\n// with the values intact (closure compiler for some reason\n// removes follow-up lines that add the values outside of\n// the constructor...\nconst TRUE_BOOLEAN_VALUES = new Set(['true', '1']);\nconst FALSE_BOOLEAN_VALUES = new Set(['false', '0']);\nfunction makeLambdaFromStates(lhs, rhs) {\n    const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);\n    const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);\n    return (fromState, toState) => {\n        let lhsMatch = lhs == ANY_STATE || lhs == fromState;\n        let rhsMatch = rhs == ANY_STATE || rhs == toState;\n        if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {\n            lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);\n        }\n        if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {\n            rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);\n        }\n        return lhsMatch && rhsMatch;\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.io/license\n */\nconst SELF_TOKEN = ':self';\nconst SELF_TOKEN_REGEX = new RegExp(`\\s*${SELF_TOKEN}\\s*,?`, 'g');\n/*\n * [Validation]\n * The visitor code below will traverse the animation AST generated by the animation verb functions\n * (the output is a tree of objects) and attempt to perform a series of validations on the data. The\n * following corner-cases will be validated:\n *\n * 1. Overlap of animations\n * Given that a CSS property cannot be animated in more than one place at the same time, it's\n * important that this behavior is detected and validated. The way in which this occurs is that\n * each time a style property is examined, a string-map containing the property will be updated with\n * the start and end times for when the property is used within an animation step.\n *\n * If there are two or more parallel animations that are currently running (these are invoked by the\n * group()) on the same element then the validator will throw an error. Since the start/end timing\n * values are collected for each property then if the current animation step is animating the same\n * property and its timing values fall anywhere into the window of time that the property is\n * currently being animated within then this is what causes an error.\n *\n * 2. Timing values\n * The validator will validate to see if a timing value of `duration delay easing` or\n * `durationNumber` is valid or not.\n *\n * (note that upon validation the code below will replace the timing data with an object containing\n * {duration,delay,easing}.\n *\n * 3. Offset Validation\n * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().\n * Offsets within keyframes() are considered valid when:\n *\n *   - No offsets are used at all\n *   - Each style() entry contains an offset value\n *   - Each offset is between 0 and 1\n *   - Each offset is greater to or equal than the previous one\n *\n * Otherwise an error will be thrown.\n */\nfunction buildAnimationAst(driver, metadata, errors, warnings) {\n    return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings);\n}\nconst ROOT_SELECTOR = '';\nclass AnimationAstBuilderVisitor {\n    constructor(_driver) {\n        this._driver = _driver;\n    }\n    build(metadata, errors, warnings) {\n        const context = new AnimationAstBuilderContext(errors);\n        this._resetContextStyleTimingState(context);\n        const ast = visitDslNode(this, normalizeAnimationEntry(metadata), context);\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            if (context.unsupportedCSSPropertiesFound.size) {\n                pushUnrecognizedPropertiesWarning(warnings, [...context.unsupportedCSSPropertiesFound.keys()]);\n            }\n        }\n        return ast;\n    }\n    _resetContextStyleTimingState(context) {\n        context.currentQuerySelector = ROOT_SELECTOR;\n        context.collectedStyles = new Map();\n        context.collectedStyles.set(ROOT_SELECTOR, new Map());\n        context.currentTime = 0;\n    }\n    visitTrigger(metadata, context) {\n        let queryCount = context.queryCount = 0;\n        let depCount = context.depCount = 0;\n        const states = [];\n        const transitions = [];\n        if (metadata.name.charAt(0) == '@') {\n            context.errors.push(invalidTrigger());\n        }\n        metadata.definitions.forEach(def => {\n            this._resetContextStyleTimingState(context);\n            if (def.type == 0 /* AnimationMetadataType.State */) {\n                const stateDef = def;\n                const name = stateDef.name;\n                name.toString().split(/\\s*,\\s*/).forEach(n => {\n                    stateDef.name = n;\n                    states.push(this.visitState(stateDef, context));\n                });\n                stateDef.name = name;\n            }\n            else if (def.type == 1 /* AnimationMetadataType.Transition */) {\n                const transition = this.visitTransition(def, context);\n                queryCount += transition.queryCount;\n                depCount += transition.depCount;\n                transitions.push(transition);\n            }\n            else {\n                context.errors.push(invalidDefinition());\n            }\n        });\n        return {\n            type: 7 /* AnimationMetadataType.Trigger */,\n            name: metadata.name,\n            states,\n            transitions,\n            queryCount,\n            depCount,\n            options: null\n        };\n    }\n    visitState(metadata, context) {\n        const styleAst = this.visitStyle(metadata.styles, context);\n        const astParams = (metadata.options && metadata.options.params) || null;\n        if (styleAst.containsDynamicStyles) {\n            const missingSubs = new Set();\n            const params = astParams || {};\n            styleAst.styles.forEach(style => {\n                if (style instanceof Map) {\n                    style.forEach(value => {\n                        extractStyleParams(value).forEach(sub => {\n                            if (!params.hasOwnProperty(sub)) {\n                                missingSubs.add(sub);\n                            }\n                        });\n                    });\n                }\n            });\n            if (missingSubs.size) {\n                const missingSubsArr = iteratorToArray(missingSubs.values());\n                context.errors.push(invalidState(metadata.name, missingSubsArr));\n            }\n        }\n        return {\n            type: 0 /* AnimationMetadataType.State */,\n            name: metadata.name,\n            style: styleAst,\n            options: astParams ? { params: astParams } : null\n        };\n    }\n    visitTransition(metadata, context) {\n        context.queryCount = 0;\n        context.depCount = 0;\n        const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n        const matchers = parseTransitionExpr(metadata.expr, context.errors);\n        return {\n            type: 1 /* AnimationMetadataType.Transition */,\n            matchers,\n            animation,\n            queryCount: context.queryCount,\n            depCount: context.depCount,\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitSequence(metadata, context) {\n        return {\n            type: 2 /* AnimationMetadataType.Sequence */,\n            steps: metadata.steps.map(s => visitDslNode(this, s, context)),\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitGroup(metadata, context) {\n        const currentTime = context.currentTime;\n        let furthestTime = 0;\n        const steps = metadata.steps.map(step => {\n            context.currentTime = currentTime;\n            const innerAst = visitDslNode(this, step, context);\n            furthestTime = Math.max(furthestTime, context.currentTime);\n            return innerAst;\n        });\n        context.currentTime = furthestTime;\n        return {\n            type: 3 /* AnimationMetadataType.Group */,\n            steps,\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitAnimate(metadata, context) {\n        const timingAst = constructTimingAst(metadata.timings, context.errors);\n        context.currentAnimateTimings = timingAst;\n        let styleAst;\n        let styleMetadata = metadata.styles ? metadata.styles : style({});\n        if (styleMetadata.type == 5 /* AnimationMetadataType.Keyframes */) {\n            styleAst = this.visitKeyframes(styleMetadata, context);\n        }\n        else {\n            let styleMetadata = metadata.styles;\n            let isEmpty = false;\n            if (!styleMetadata) {\n                isEmpty = true;\n                const newStyleData = {};\n                if (timingAst.easing) {\n                    newStyleData['easing'] = timingAst.easing;\n                }\n                styleMetadata = style(newStyleData);\n            }\n            context.currentTime += timingAst.duration + timingAst.delay;\n            const _styleAst = this.visitStyle(styleMetadata, context);\n            _styleAst.isEmptyStep = isEmpty;\n            styleAst = _styleAst;\n        }\n        context.currentAnimateTimings = null;\n        return {\n            type: 4 /* AnimationMetadataType.Animate */,\n            timings: timingAst,\n            style: styleAst,\n            options: null\n        };\n    }\n    visitStyle(metadata, context) {\n        const ast = this._makeStyleAst(metadata, context);\n        this._validateStyleAst(ast, context);\n        return ast;\n    }\n    _makeStyleAst(metadata, context) {\n        const styles = [];\n        const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];\n        for (let styleTuple of metadataStyles) {\n            if (typeof styleTuple === 'string') {\n                if (styleTuple === AUTO_STYLE) {\n                    styles.push(styleTuple);\n                }\n                else {\n                    context.errors.push(invalidStyleValue(styleTuple));\n                }\n            }\n            else {\n                styles.push(convertToMap(styleTuple));\n            }\n        }\n        let containsDynamicStyles = false;\n        let collectedEasing = null;\n        styles.forEach(styleData => {\n            if (styleData instanceof Map) {\n                if (styleData.has('easing')) {\n                    collectedEasing = styleData.get('easing');\n                    styleData.delete('easing');\n                }\n                if (!containsDynamicStyles) {\n                    for (let value of styleData.values()) {\n                        if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {\n                            containsDynamicStyles = true;\n                            break;\n                        }\n                    }\n                }\n            }\n        });\n        return {\n            type: 6 /* AnimationMetadataType.Style */,\n            styles,\n            easing: collectedEasing,\n            offset: metadata.offset,\n            containsDynamicStyles,\n            options: null\n        };\n    }\n    _validateStyleAst(ast, context) {\n        const timings = context.currentAnimateTimings;\n        let endTime = context.currentTime;\n        let startTime = context.currentTime;\n        if (timings && startTime > 0) {\n            startTime -= timings.duration + timings.delay;\n        }\n        ast.styles.forEach(tuple => {\n            if (typeof tuple === 'string')\n                return;\n            tuple.forEach((value, prop) => {\n                if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                    if (!this._driver.validateStyleProperty(prop)) {\n                        tuple.delete(prop);\n                        context.unsupportedCSSPropertiesFound.add(prop);\n                        return;\n                    }\n                }\n                // This is guaranteed to have a defined Map at this querySelector location making it\n                // safe to add the assertion here. It is set as a default empty map in prior methods.\n                const collectedStyles = context.collectedStyles.get(context.currentQuerySelector);\n                const collectedEntry = collectedStyles.get(prop);\n                let updateCollectedStyle = true;\n                if (collectedEntry) {\n                    if (startTime != endTime && startTime >= collectedEntry.startTime &&\n                        endTime <= collectedEntry.endTime) {\n                        context.errors.push(invalidParallelAnimation(prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));\n                        updateCollectedStyle = false;\n                    }\n                    // we always choose the smaller start time value since we\n                    // want to have a record of the entire animation window where\n                    // the style property is being animated in between\n                    startTime = collectedEntry.startTime;\n                }\n                if (updateCollectedStyle) {\n                    collectedStyles.set(prop, { startTime, endTime });\n                }\n                if (context.options) {\n                    validateStyleParams(value, context.options, context.errors);\n                }\n            });\n        });\n    }\n    visitKeyframes(metadata, context) {\n        const ast = { type: 5 /* AnimationMetadataType.Keyframes */, styles: [], options: null };\n        if (!context.currentAnimateTimings) {\n            context.errors.push(invalidKeyframes());\n            return ast;\n        }\n        const MAX_KEYFRAME_OFFSET = 1;\n        let totalKeyframesWithOffsets = 0;\n        const offsets = [];\n        let offsetsOutOfOrder = false;\n        let keyframesOutOfRange = false;\n        let previousOffset = 0;\n        const keyframes = metadata.steps.map(styles => {\n            const style = this._makeStyleAst(styles, context);\n            let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);\n            let offset = 0;\n            if (offsetVal != null) {\n                totalKeyframesWithOffsets++;\n                offset = style.offset = offsetVal;\n            }\n            keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;\n            offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;\n            previousOffset = offset;\n            offsets.push(offset);\n            return style;\n        });\n        if (keyframesOutOfRange) {\n            context.errors.push(invalidOffset());\n        }\n        if (offsetsOutOfOrder) {\n            context.errors.push(keyframeOffsetsOutOfOrder());\n        }\n        const length = metadata.steps.length;\n        let generatedOffset = 0;\n        if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {\n            context.errors.push(keyframesMissingOffsets());\n        }\n        else if (totalKeyframesWithOffsets == 0) {\n            generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);\n        }\n        const limit = length - 1;\n        const currentTime = context.currentTime;\n        const currentAnimateTimings = context.currentAnimateTimings;\n        const animateDuration = currentAnimateTimings.duration;\n        keyframes.forEach((kf, i) => {\n            const offset = generatedOffset > 0 ? (i == limit ? 1 : (generatedOffset * i)) : offsets[i];\n            const durationUpToThisFrame = offset * animateDuration;\n            context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;\n            currentAnimateTimings.duration = durationUpToThisFrame;\n            this._validateStyleAst(kf, context);\n            kf.offset = offset;\n            ast.styles.push(kf);\n        });\n        return ast;\n    }\n    visitReference(metadata, context) {\n        return {\n            type: 8 /* AnimationMetadataType.Reference */,\n            animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitAnimateChild(metadata, context) {\n        context.depCount++;\n        return {\n            type: 9 /* AnimationMetadataType.AnimateChild */,\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitAnimateRef(metadata, context) {\n        return {\n            type: 10 /* AnimationMetadataType.AnimateRef */,\n            animation: this.visitReference(metadata.animation, context),\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitQuery(metadata, context) {\n        const parentSelector = context.currentQuerySelector;\n        const options = (metadata.options || {});\n        context.queryCount++;\n        context.currentQuery = metadata;\n        const [selector, includeSelf] = normalizeSelector(metadata.selector);\n        context.currentQuerySelector =\n            parentSelector.length ? (parentSelector + ' ' + selector) : selector;\n        getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());\n        const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n        context.currentQuery = null;\n        context.currentQuerySelector = parentSelector;\n        return {\n            type: 11 /* AnimationMetadataType.Query */,\n            selector,\n            limit: options.limit || 0,\n            optional: !!options.optional,\n            includeSelf,\n            animation,\n            originalSelector: metadata.selector,\n            options: normalizeAnimationOptions(metadata.options)\n        };\n    }\n    visitStagger(metadata, context) {\n        if (!context.currentQuery) {\n            context.errors.push(invalidStagger());\n        }\n        const timings = metadata.timings === 'full' ?\n            { duration: 0, delay: 0, easing: 'full' } :\n            resolveTiming(metadata.timings, context.errors, true);\n        return {\n            type: 12 /* AnimationMetadataType.Stagger */,\n            animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n            timings,\n            options: null\n        };\n    }\n}\nfunction normalizeSelector(selector) {\n    const hasAmpersand = selector.split(/\\s*,\\s*/).find(token => token == SELF_TOKEN) ? true : false;\n    if (hasAmpersand) {\n        selector = selector.replace(SELF_TOKEN_REGEX, '');\n    }\n    // Note: the :enter and :leave aren't normalized here since those\n    // selectors are filled in at runtime during timeline building\n    selector = selector.replace(/@\\*/g, NG_TRIGGER_SELECTOR)\n        .replace(/@\\w+/g, match => NG_TRIGGER_SELECTOR + '-' + match.slice(1))\n        .replace(/:animating/g, NG_ANIMATING_SELECTOR);\n    return [selector, hasAmpersand];\n}\nfunction normalizeParams(obj) {\n    return obj ? copyObj(obj) : null;\n}\nclass AnimationAstBuilderContext {\n    constructor(errors) {\n        this.errors = errors;\n        this.queryCount = 0;\n        this.depCount = 0;\n        this.currentTransition = null;\n        this.currentQuery = null;\n        this.currentQuerySelector = null;\n        this.currentAnimateTimings = null;\n        this.currentTime = 0;\n        this.collectedStyles = new Map();\n        this.options = null;\n        this.unsupportedCSSPropertiesFound = new Set();\n    }\n}\nfunction consumeOffset(styles) {\n    if (typeof styles == 'string')\n        return null;\n    let offset = null;\n    if (Array.isArray(styles)) {\n        styles.forEach(styleTuple => {\n            if (styleTuple instanceof Map && styleTuple.has('offset')) {\n                const obj = styleTuple;\n                offset = parseFloat(obj.get('offset'));\n                obj.delete('offset');\n            }\n        });\n    }\n    else if (styles instanceof Map && styles.has('offset')) {\n        const obj = styles;\n        offset = parseFloat(obj.get('offset'));\n        obj.delete('offset');\n    }\n    return offset;\n}\nfunction constructTimingAst(value, errors) {\n    if (value.hasOwnProperty('duration')) {\n        return value;\n    }\n    if (typeof value == 'number') {\n        const duration = resolveTiming(value, errors).duration;\n        return makeTimingAst(duration, 0, '');\n    }\n    const strValue = value;\n    const isDynamic = strValue.split(/\\s+/).some(v => v.charAt(0) == '{' && v.charAt(1) == '{');\n    if (isDynamic) {\n        const ast = makeTimingAst(0, 0, '');\n        ast.dynamic = true;\n        ast.strValue = strValue;\n        return ast;\n    }\n    const timings = resolveTiming(strValue, errors);\n    return makeTimingAst(timings.duration, timings.delay, timings.easing);\n}\nfunction normalizeAnimationOptions(options) {\n    if (options) {\n        options = copyObj(options);\n        if (options['params']) {\n            options['params'] = normalizeParams(options['params']);\n        }\n    }\n    else {\n        options = {};\n    }\n    return options;\n}\nfunction makeTimingAst(duration, delay, easing) {\n    return { duration, delay, easing };\n}\n\nfunction createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {\n    return {\n        type: 1 /* AnimationTransitionInstructionType.TimelineAnimation */,\n        element,\n        keyframes,\n        preStyleProps,\n        postStyleProps,\n        duration,\n        delay,\n        totalTime: duration + delay,\n        easing,\n        subTimeline\n    };\n}\n\nclass ElementInstructionMap {\n    constructor() {\n        this._map = new Map();\n    }\n    get(element) {\n        return this._map.get(element) || [];\n    }\n    append(element, instructions) {\n        let existingInstructions = this._map.get(element);\n        if (!existingInstructions) {\n            this._map.set(element, existingInstructions = []);\n        }\n        existingInstructions.push(...instructions);\n    }\n    has(element) {\n        return this._map.has(element);\n    }\n    clear() {\n        this._map.clear();\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.io/license\n */\nconst ONE_FRAME_IN_MILLISECONDS = 1;\nconst ENTER_TOKEN = ':enter';\nconst ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');\nconst LEAVE_TOKEN = ':leave';\nconst LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');\n/*\n * The code within this file aims to generate web-animations-compatible keyframes from Angular's\n * animation DSL code.\n *\n * The code below will be converted from:\n *\n * ```\n * sequence([\n *   style({ opacity: 0 }),\n *   animate(1000, style({ opacity: 0 }))\n * ])\n * ```\n *\n * To:\n * ```\n * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]\n * duration = 1000\n * delay = 0\n * easing = ''\n * ```\n *\n * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a\n * combination of AST traversal and merge-sort-like algorithms are used.\n *\n * [AST Traversal]\n * Each of the animation verbs, when executed, will return an string-map object representing what\n * type of action it is (style, animate, group, etc...) and the data associated with it. This means\n * that when functional composition mix of these functions is evaluated (like in the example above)\n * then it will end up producing a tree of objects representing the animation itself.\n *\n * When this animation object tree is processed by the visitor code below it will visit each of the\n * verb statements within the visitor. And during each visit it will build the context of the\n * animation keyframes by interacting with the `TimelineBuilder`.\n *\n * [TimelineBuilder]\n * This class is responsible for tracking the styles and building a series of keyframe objects for a\n * timeline between a start and end time. The builder starts off with an initial timeline and each\n * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a\n * `sequence()` then it will generate a sub timeline for each step as well as a new one after\n * they are complete.\n *\n * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub\n * timeline was created (based on one of the cases above) then the parent timeline will attempt to\n * merge the styles used within the sub timelines into itself (only with group() this will happen).\n * This happens with a merge operation (much like how the merge works in mergeSort) and it will only\n * copy the most recently used styles from the sub timelines into the parent timeline. This ensures\n * that if the styles are used later on in another phase of the animation then they will be the most\n * up-to-date values.\n *\n * [How Missing Styles Are Updated]\n * Each timeline has a `backFill` property which is responsible for filling in new styles into\n * already processed keyframes if a new style shows up later within the animation sequence.\n *\n * ```\n * sequence([\n *   style({ width: 0 }),\n *   animate(1000, style({ width: 100 })),\n *   animate(1000, style({ width: 200 })),\n *   animate(1000, style({ width: 300 }))\n *   animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere\n * else\n * ])\n * ```\n *\n * What is happening here is that the `height` value is added later in the sequence, but is missing\n * from all previous animation steps. Therefore when a keyframe is created it would also be missing\n * from all previous keyframes up until where it is first used. For the timeline keyframe generation\n * to properly fill in the style it will place the previous value (the value from the parent\n * timeline) or a default value of `*` into the backFill map. The `copyStyles` method in util.ts\n * handles propagating that backfill map to the styles object.\n *\n * When a sub-timeline is created it will have its own backFill property. This is done so that\n * styles present within the sub-timeline do not accidentally seep into the previous/future timeline\n * keyframes\n *\n * [Validation]\n * The code in this file is not responsible for validation. That functionality happens with within\n * the `AnimationValidatorVisitor` code.\n */\nfunction buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = new Map(), finalStyles = new Map(), options, subInstructions, errors = []) {\n    return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);\n}\nclass AnimationTimelineBuilderVisitor {\n    buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {\n        subInstructions = subInstructions || new ElementInstructionMap();\n        const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);\n        context.options = options;\n        const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n        context.currentTimeline.delayNextStep(delay);\n        context.currentTimeline.setStyles([startingStyles], null, context.errors, options);\n        visitDslNode(this, ast, context);\n        // this checks to see if an actual animation happened\n        const timelines = context.timelines.filter(timeline => timeline.containsAnimation());\n        // note: we just want to apply the final styles for the rootElement, so we do not\n        //       just apply the styles to the last timeline but the last timeline which\n        //       element is the root one (basically `*`-styles are replaced with the actual\n        //       state style values only for the root element)\n        if (timelines.length && finalStyles.size) {\n            let lastRootTimeline;\n            for (let i = timelines.length - 1; i >= 0; i--) {\n                const timeline = timelines[i];\n                if (timeline.element === rootElement) {\n                    lastRootTimeline = timeline;\n                    break;\n                }\n            }\n            if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {\n                lastRootTimeline.setStyles([finalStyles], null, context.errors, options);\n            }\n        }\n        return timelines.length ?\n            timelines.map(timeline => timeline.buildKeyframes()) :\n            [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];\n    }\n    visitTrigger(ast, context) {\n        // these values are not visited in this AST\n    }\n    visitState(ast, context) {\n        // these values are not visited in this AST\n    }\n    visitTransition(ast, context) {\n        // these values are not visited in this AST\n    }\n    visitAnimateChild(ast, context) {\n        const elementInstructions = context.subInstructions.get(context.element);\n        if (elementInstructions) {\n            const innerContext = context.createSubContext(ast.options);\n            const startTime = context.currentTimeline.currentTime;\n            const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);\n            if (startTime != endTime) {\n                // we do this on the upper context because we created a sub context for\n                // the sub child animations\n                context.transformIntoNewTimeline(endTime);\n            }\n        }\n        context.previousNode = ast;\n    }\n    visitAnimateRef(ast, context) {\n        const innerContext = context.createSubContext(ast.options);\n        innerContext.transformIntoNewTimeline();\n        this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);\n        this.visitReference(ast.animation, innerContext);\n        context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);\n        context.previousNode = ast;\n    }\n    _applyAnimationRefDelays(animationsRefsOptions, context, innerContext) {\n        for (const animationRefOptions of animationsRefsOptions) {\n            const animationDelay = animationRefOptions?.delay;\n            if (animationDelay) {\n                const animationDelayValue = typeof animationDelay === 'number' ?\n                    animationDelay :\n                    resolveTimingValue(interpolateParams(animationDelay, animationRefOptions?.params ?? {}, context.errors));\n                innerContext.delayNextStep(animationDelayValue);\n            }\n        }\n    }\n    _visitSubInstructions(instructions, context, options) {\n        const startTime = context.currentTimeline.currentTime;\n        let furthestTime = startTime;\n        // this is a special-case for when a user wants to skip a sub\n        // animation from being fired entirely.\n        const duration = options.duration != null ? resolveTimingValue(options.duration) : null;\n        const delay = options.delay != null ? resolveTimingValue(options.delay) : null;\n        if (duration !== 0) {\n            instructions.forEach(instruction => {\n                const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);\n                furthestTime =\n                    Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);\n            });\n        }\n        return furthestTime;\n    }\n    visitReference(ast, context) {\n        context.updateOptions(ast.options, true);\n        visitDslNode(this, ast.animation, context);\n        context.previousNode = ast;\n    }\n    visitSequence(ast, context) {\n        const subContextCount = context.subContextCount;\n        let ctx = context;\n        const options = ast.options;\n        if (options && (options.params || options.delay)) {\n            ctx = context.createSubContext(options);\n            ctx.transformIntoNewTimeline();\n            if (options.delay != null) {\n                if (ctx.previousNode.type == 6 /* AnimationMetadataType.Style */) {\n                    ctx.currentTimeline.snapshotCurrentStyles();\n                    ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n                }\n                const delay = resolveTimingValue(options.delay);\n                ctx.delayNextStep(delay);\n            }\n        }\n        if (ast.steps.length) {\n            ast.steps.forEach(s => visitDslNode(this, s, ctx));\n            // this is here just in case the inner steps only contain or end with a style() call\n            ctx.currentTimeline.applyStylesToKeyframe();\n            // this means that some animation function within the sequence\n            // ended up creating a sub timeline (which means the current\n            // timeline cannot overlap with the contents of the sequence)\n            if (ctx.subContextCount > subContextCount) {\n                ctx.transformIntoNewTimeline();\n            }\n        }\n        context.previousNode = ast;\n    }\n    visitGroup(ast, context) {\n        const innerTimelines = [];\n        let furthestTime = context.currentTimeline.currentTime;\n        const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;\n        ast.steps.forEach(s => {\n            const innerContext = context.createSubContext(ast.options);\n            if (delay) {\n                innerContext.delayNextStep(delay);\n            }\n            visitDslNode(this, s, innerContext);\n            furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);\n            innerTimelines.push(innerContext.currentTimeline);\n        });\n        // this operation is run after the AST loop because otherwise\n        // if the parent timeline's collected styles were updated then\n        // it would pass in invalid data into the new-to-be forked items\n        innerTimelines.forEach(timeline => context.currentTimeline.mergeTimelineCollectedStyles(timeline));\n        context.transformIntoNewTimeline(furthestTime);\n        context.previousNode = ast;\n    }\n    _visitTiming(ast, context) {\n        if (ast.dynamic) {\n            const strValue = ast.strValue;\n            const timingValue = context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;\n            return resolveTiming(timingValue, context.errors);\n        }\n        else {\n            return { duration: ast.duration, delay: ast.delay, easing: ast.easing };\n        }\n    }\n    visitAnimate(ast, context) {\n        const timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);\n        const timeline = context.currentTimeline;\n        if (timings.delay) {\n            context.incrementTime(timings.delay);\n            timeline.snapshotCurrentStyles();\n        }\n        const style = ast.style;\n        if (style.type == 5 /* AnimationMetadataType.Keyframes */) {\n            this.visitKeyframes(style, context);\n        }\n        else {\n            context.incrementTime(timings.duration);\n            this.visitStyle(style, context);\n            timeline.applyStylesToKeyframe();\n        }\n        context.currentAnimateTimings = null;\n        context.previousNode = ast;\n    }\n    visitStyle(ast, context) {\n        const timeline = context.currentTimeline;\n        const timings = context.currentAnimateTimings;\n        // this is a special case for when a style() call\n        // directly follows  an animate() call (but not inside of an animate() call)\n        if (!timings && timeline.hasCurrentStyleProperties()) {\n            timeline.forwardFrame();\n        }\n        const easing = (timings && timings.easing) || ast.easing;\n        if (ast.isEmptyStep) {\n            timeline.applyEmptyStep(easing);\n        }\n        else {\n            timeline.setStyles(ast.styles, easing, context.errors, context.options);\n        }\n        context.previousNode = ast;\n    }\n    visitKeyframes(ast, context) {\n        const currentAnimateTimings = context.currentAnimateTimings;\n        const startTime = (context.currentTimeline).duration;\n        const duration = currentAnimateTimings.duration;\n        const innerContext = context.createSubContext();\n        const innerTimeline = innerContext.currentTimeline;\n        innerTimeline.easing = currentAnimateTimings.easing;\n        ast.styles.forEach(step => {\n            const offset = step.offset || 0;\n            innerTimeline.forwardTime(offset * duration);\n            innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);\n            innerTimeline.applyStylesToKeyframe();\n        });\n        // this will ensure that the parent timeline gets all the styles from\n        // the child even if the new timeline below is not used\n        context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);\n        // we do this because the window between this timeline and the sub timeline\n        // should ensure that the styles within are exactly the same as they were before\n        context.transformIntoNewTimeline(startTime + duration);\n        context.previousNode = ast;\n    }\n    visitQuery(ast, context) {\n        // in the event that the first step before this is a style step we need\n        // to ensure the styles are applied before the children are animated\n        const startTime = context.currentTimeline.currentTime;\n        const options = (ast.options || {});\n        const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n        if (delay &&\n            (context.previousNode.type === 6 /* AnimationMetadataType.Style */ ||\n                (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {\n            context.currentTimeline.snapshotCurrentStyles();\n            context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n        }\n        let furthestTime = startTime;\n        const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);\n        context.currentQueryTotal = elms.length;\n        let sameElementTimeline = null;\n        elms.forEach((element, i) => {\n            context.currentQueryIndex = i;\n            const innerContext = context.createSubContext(ast.options, element);\n            if (delay) {\n                innerContext.delayNextStep(delay);\n            }\n            if (element === context.element) {\n                sameElementTimeline = innerContext.currentTimeline;\n            }\n            visitDslNode(this, ast.animation, innerContext);\n            // this is here just incase the inner steps only contain or end\n            // with a style() call (which is here to signal that this is a preparatory\n            // call to style an element before it is animated again)\n            innerContext.currentTimeline.applyStylesToKeyframe();\n            const endTime = innerContext.currentTimeline.currentTime;\n            furthestTime = Math.max(furthestTime, endTime);\n        });\n        context.currentQueryIndex = 0;\n        context.currentQueryTotal = 0;\n        context.transformIntoNewTimeline(furthestTime);\n        if (sameElementTimeline) {\n            context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);\n            context.currentTimeline.snapshotCurrentStyles();\n        }\n        context.previousNode = ast;\n    }\n    visitStagger(ast, context) {\n        const parentContext = context.parentContext;\n        const tl = context.currentTimeline;\n        const timings = ast.timings;\n        const duration = Math.abs(timings.duration);\n        const maxTime = duration * (context.currentQueryTotal - 1);\n        let delay = duration * context.currentQueryIndex;\n        let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;\n        switch (staggerTransformer) {\n            case 'reverse':\n                delay = maxTime - delay;\n                break;\n            case 'full':\n                delay = parentContext.currentStaggerTime;\n                break;\n        }\n        const timeline = context.currentTimeline;\n        if (delay) {\n            timeline.delayNextStep(delay);\n        }\n        const startingTime = timeline.currentTime;\n        visitDslNode(this, ast.animation, context);\n        context.previousNode = ast;\n        // time = duration + delay\n        // the reason why this computation is so complex is because\n        // the inner timeline may either have a delay value or a stretched\n        // keyframe depending on if a subtimeline is not used or is used.\n        parentContext.currentStaggerTime =\n            (tl.currentTime - startingTime) + (tl.startTime - parentContext.currentTimeline.startTime);\n    }\n}\nconst DEFAULT_NOOP_PREVIOUS_NODE = {};\nclass AnimationTimelineContext {\n    constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {\n        this._driver = _driver;\n        this.element = element;\n        this.subInstructions = subInstructions;\n        this._enterClassName = _enterClassName;\n        this._leaveClassName = _leaveClassName;\n        this.errors = errors;\n        this.timelines = timelines;\n        this.parentContext = null;\n        this.currentAnimateTimings = null;\n        this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n        this.subContextCount = 0;\n        this.options = {};\n        this.currentQueryIndex = 0;\n        this.currentQueryTotal = 0;\n        this.currentStaggerTime = 0;\n        this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);\n        timelines.push(this.currentTimeline);\n    }\n    get params() {\n        return this.options.params;\n    }\n    updateOptions(options, skipIfExists) {\n        if (!options)\n            return;\n        const newOptions = options;\n        let optionsToUpdate = this.options;\n        // NOTE: this will get patched up when other animation methods support duration overrides\n        if (newOptions.duration != null) {\n            optionsToUpdate.duration = resolveTimingValue(newOptions.duration);\n        }\n        if (newOptions.delay != null) {\n            optionsToUpdate.delay = resolveTimingValue(newOptions.delay);\n        }\n        const newParams = newOptions.params;\n        if (newParams) {\n            let paramsToUpdate = optionsToUpdate.params;\n            if (!paramsToUpdate) {\n                paramsToUpdate = this.options.params = {};\n            }\n            Object.keys(newParams).forEach(name => {\n                if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {\n                    paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);\n                }\n            });\n        }\n    }\n    _copyOptions() {\n        const options = {};\n        if (this.options) {\n            const oldParams = this.options.params;\n            if (oldParams) {\n                const params = options['params'] = {};\n                Object.keys(oldParams).forEach(name => {\n                    params[name] = oldParams[name];\n                });\n            }\n        }\n        return options;\n    }\n    createSubContext(options = null, element, newTime) {\n        const target = element || this.element;\n        const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));\n        context.previousNode = this.previousNode;\n        context.currentAnimateTimings = this.currentAnimateTimings;\n        context.options = this._copyOptions();\n        context.updateOptions(options);\n        context.currentQueryIndex = this.currentQueryIndex;\n        context.currentQueryTotal = this.currentQueryTotal;\n        context.parentContext = this;\n        this.subContextCount++;\n        return context;\n    }\n    transformIntoNewTimeline(newTime) {\n        this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n        this.currentTimeline = this.currentTimeline.fork(this.element, newTime);\n        this.timelines.push(this.currentTimeline);\n        return this.currentTimeline;\n    }\n    appendInstructionToTimeline(instruction, duration, delay) {\n        const updatedTimings = {\n            duration: duration != null ? duration : instruction.duration,\n            delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,\n            easing: ''\n        };\n        const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);\n        this.timelines.push(builder);\n        return updatedTimings;\n    }\n    incrementTime(time) {\n        this.currentTimeline.forwardTime(this.currentTimeline.duration + time);\n    }\n    delayNextStep(delay) {\n        // negative delays are not yet supported\n        if (delay > 0) {\n            this.currentTimeline.delayNextStep(delay);\n        }\n    }\n    invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {\n        let results = [];\n        if (includeSelf) {\n            results.push(this.element);\n        }\n        if (selector.length > 0) { // only if :self is used then the selector can be empty\n            selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);\n            selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);\n            const multi = limit != 1;\n            let elements = this._driver.query(this.element, selector, multi);\n            if (limit !== 0) {\n                elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) :\n                    elements.slice(0, limit);\n            }\n            results.push(...elements);\n        }\n        if (!optional && results.length == 0) {\n            errors.push(invalidQuery(originalSelector));\n        }\n        return results;\n    }\n}\nclass TimelineBuilder {\n    constructor(_driver, element, startTime, _elementTimelineStylesLookup) {\n        this._driver = _driver;\n        this.element = element;\n        this.startTime = startTime;\n        this._elementTimelineStylesLookup = _elementTimelineStylesLookup;\n        this.duration = 0;\n        this._previousKeyframe = new Map();\n        this._currentKeyframe = new Map();\n        this._keyframes = new Map();\n        this._styleSummary = new Map();\n        this._localTimelineStyles = new Map();\n        this._pendingStyles = new Map();\n        this._backFill = new Map();\n        this._currentEmptyStepKeyframe = null;\n        if (!this._elementTimelineStylesLookup) {\n            this._elementTimelineStylesLookup = new Map();\n        }\n        this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);\n        if (!this._globalTimelineStyles) {\n            this._globalTimelineStyles = this._localTimelineStyles;\n            this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);\n        }\n        this._loadKeyframe();\n    }\n    containsAnimation() {\n        switch (this._keyframes.size) {\n            case 0:\n                return false;\n            case 1:\n                return this.hasCurrentStyleProperties();\n            default:\n                return true;\n        }\n    }\n    hasCurrentStyleProperties() {\n        return this._currentKeyframe.size > 0;\n    }\n    get currentTime() {\n        return this.startTime + this.duration;\n    }\n    delayNextStep(delay) {\n        // in the event that a style() step is placed right before a stagger()\n        // and that style() step is the very first style() value in the animation\n        // then we need to make a copy of the keyframe [0, copy, 1] so that the delay\n        // properly applies the style() values to work with the stagger...\n        const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;\n        if (this.duration || hasPreStyleStep) {\n            this.forwardTime(this.currentTime + delay);\n            if (hasPreStyleStep) {\n                this.snapshotCurrentStyles();\n            }\n        }\n        else {\n            this.startTime += delay;\n        }\n    }\n    fork(element, currentTime) {\n        this.applyStylesToKeyframe();\n        return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);\n    }\n    _loadKeyframe() {\n        if (this._currentKeyframe) {\n            this._previousKeyframe = this._currentKeyframe;\n        }\n        this._currentKeyframe = this._keyframes.get(this.duration);\n        if (!this._currentKeyframe) {\n            this._currentKeyframe = new Map();\n            this._keyframes.set(this.duration, this._currentKeyframe);\n        }\n    }\n    forwardFrame() {\n        this.duration += ONE_FRAME_IN_MILLISECONDS;\n        this._loadKeyframe();\n    }\n    forwardTime(time) {\n        this.applyStylesToKeyframe();\n        this.duration = time;\n        this._loadKeyframe();\n    }\n    _updateStyle(prop, value) {\n        this._localTimelineStyles.set(prop, value);\n        this._globalTimelineStyles.set(prop, value);\n        this._styleSummary.set(prop, { time: this.currentTime, value });\n    }\n    allowOnlyTimelineStyles() {\n        return this._currentEmptyStepKeyframe !== this._currentKeyframe;\n    }\n    applyEmptyStep(easing) {\n        if (easing) {\n            this._previousKeyframe.set('easing', easing);\n        }\n        // special case for animate(duration):\n        // all missing styles are filled with a `*` value then\n        // if any destination styles are filled in later on the same\n        // keyframe then they will override the overridden styles\n        // We use `_globalTimelineStyles` here because there may be\n        // styles in previous keyframes that are not present in this timeline\n        for (let [prop, value] of this._globalTimelineStyles) {\n            this._backFill.set(prop, value || AUTO_STYLE);\n            this._currentKeyframe.set(prop, AUTO_STYLE);\n        }\n        this._currentEmptyStepKeyframe = this._currentKeyframe;\n    }\n    setStyles(input, easing, errors, options) {\n        if (easing) {\n            this._previousKeyframe.set('easing', easing);\n        }\n        const params = (options && options.params) || {};\n        const styles = flattenStyles(input, this._globalTimelineStyles);\n        for (let [prop, value] of styles) {\n            const val = interpolateParams(value, params, errors);\n            this._pendingStyles.set(prop, val);\n            if (!this._localTimelineStyles.has(prop)) {\n                this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);\n            }\n            this._updateStyle(prop, val);\n        }\n    }\n    applyStylesToKeyframe() {\n        if (this._pendingStyles.size == 0)\n            return;\n        this._pendingStyles.forEach((val, prop) => {\n            this._currentKeyframe.set(prop, val);\n        });\n        this._pendingStyles.clear();\n        this._localTimelineStyles.forEach((val, prop) => {\n            if (!this._currentKeyframe.has(prop)) {\n                this._currentKeyframe.set(prop, val);\n            }\n        });\n    }\n    snapshotCurrentStyles() {\n        for (let [prop, val] of this._localTimelineStyles) {\n            this._pendingStyles.set(prop, val);\n            this._updateStyle(prop, val);\n        }\n    }\n    getFinalKeyframe() {\n        return this._keyframes.get(this.duration);\n    }\n    get properties() {\n        const properties = [];\n        for (let prop in this._currentKeyframe) {\n            properties.push(prop);\n        }\n        return properties;\n    }\n    mergeTimelineCollectedStyles(timeline) {\n        timeline._styleSummary.forEach((details1, prop) => {\n            const details0 = this._styleSummary.get(prop);\n            if (!details0 || details1.time > details0.time) {\n                this._updateStyle(prop, details1.value);\n            }\n        });\n    }\n    buildKeyframes() {\n        this.applyStylesToKeyframe();\n        const preStyleProps = new Set();\n        const postStyleProps = new Set();\n        const isEmpty = this._keyframes.size === 1 && this.duration === 0;\n        let finalKeyframes = [];\n        this._keyframes.forEach((keyframe, time) => {\n            const finalKeyframe = copyStyles(keyframe, new Map(), this._backFill);\n            finalKeyframe.forEach((value, prop) => {\n                if (value === ɵPRE_STYLE) {\n                    preStyleProps.add(prop);\n                }\n                else if (value === AUTO_STYLE) {\n                    postStyleProps.add(prop);\n                }\n            });\n            if (!isEmpty) {\n                finalKeyframe.set('offset', time / this.duration);\n            }\n            finalKeyframes.push(finalKeyframe);\n        });\n        const preProps = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];\n        const postProps = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : [];\n        // special case for a 0-second animation (which is designed just to place styles onscreen)\n        if (isEmpty) {\n            const kf0 = finalKeyframes[0];\n            const kf1 = new Map(kf0);\n            kf0.set('offset', 0);\n            kf1.set('offset', 1);\n            finalKeyframes = [kf0, kf1];\n        }\n        return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);\n    }\n}\nclass SubTimelineBuilder extends TimelineBuilder {\n    constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {\n        super(driver, element, timings.delay);\n        this.keyframes = keyframes;\n        this.preStyleProps = preStyleProps;\n        this.postStyleProps = postStyleProps;\n        this._stretchStartingKeyframe = _stretchStartingKeyframe;\n        this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };\n    }\n    containsAnimation() {\n        return this.keyframes.length > 1;\n    }\n    buildKeyframes() {\n        let keyframes = this.keyframes;\n        let { delay, duration, easing } = this.timings;\n        if (this._stretchStartingKeyframe && delay) {\n            const newKeyframes = [];\n            const totalTime = duration + delay;\n            const startingGap = delay / totalTime;\n            // the original starting keyframe now starts once the delay is done\n            const newFirstKeyframe = copyStyles(keyframes[0]);\n            newFirstKeyframe.set('offset', 0);\n            newKeyframes.push(newFirstKeyframe);\n            const oldFirstKeyframe = copyStyles(keyframes[0]);\n            oldFirstKeyframe.set('offset', roundOffset(startingGap));\n            newKeyframes.push(oldFirstKeyframe);\n            /*\n              When the keyframe is stretched then it means that the delay before the animation\n              starts is gone. Instead the first keyframe is placed at the start of the animation\n              and it is then copied to where it starts when the original delay is over. This basically\n              means nothing animates during that delay, but the styles are still rendered. For this\n              to work the original offset values that exist in the original keyframes must be \"warped\"\n              so that they can take the new keyframe + delay into account.\n      \n              delay=1000, duration=1000, keyframes = 0 .5 1\n      \n              turns into\n      \n              delay=0, duration=2000, keyframes = 0 .33 .66 1\n             */\n            // offsets between 1 ... n -1 are all warped by the keyframe stretch\n            const limit = keyframes.length - 1;\n            for (let i = 1; i <= limit; i++) {\n                let kf = copyStyles(keyframes[i]);\n                const oldOffset = kf.get('offset');\n                const timeAtKeyframe = delay + oldOffset * duration;\n                kf.set('offset', roundOffset(timeAtKeyframe / totalTime));\n                newKeyframes.push(kf);\n            }\n            // the new starting keyframe should be added at the start\n            duration = totalTime;\n            delay = 0;\n            easing = '';\n            keyframes = newKeyframes;\n        }\n        return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);\n    }\n}\nfunction roundOffset(offset, decimalPoints = 3) {\n    const mult = Math.pow(10, decimalPoints - 1);\n    return Math.round(offset * mult) / mult;\n}\nfunction flattenStyles(input, allStyles) {\n    const styles = new Map();\n    let allProperties;\n    input.forEach(token => {\n        if (token === '*') {\n            allProperties = allProperties || allStyles.keys();\n            for (let prop of allProperties) {\n                styles.set(prop, AUTO_STYLE);\n            }\n        }\n        else {\n            copyStyles(token, styles);\n        }\n    });\n    return styles;\n}\n\nclass Animation {\n    constructor(_driver, input) {\n        this._driver = _driver;\n        const errors = [];\n        const warnings = [];\n        const ast = buildAnimationAst(_driver, input, errors, warnings);\n        if (errors.length) {\n            throw validationFailed(errors);\n        }\n        if (warnings.length) {\n            warnValidation(warnings);\n        }\n        this._animationAst = ast;\n    }\n    buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {\n        const start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) :\n            startingStyles;\n        const dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) :\n            destinationStyles;\n        const errors = [];\n        subInstructions = subInstructions || new ElementInstructionMap();\n        const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);\n        if (errors.length) {\n            throw buildingFailed(errors);\n        }\n        return result;\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.io/license\n */\n/**\n * @publicApi\n */\nclass AnimationStyleNormalizer {\n}\n/**\n * @publicApi\n */\nclass NoopAnimationStyleNormalizer {\n    normalizePropertyName(propertyName, errors) {\n        return propertyName;\n    }\n    normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n        return value;\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.io/license\n */\nconst DIMENSIONAL_PROP_SET = new Set([\n    'width',\n    'height',\n    'minWidth',\n    'minHeight',\n    'maxWidth',\n    'maxHeight',\n    'left',\n    'top',\n    'bottom',\n    'right',\n    'fontSize',\n    'outlineWidth',\n    'outlineOffset',\n    'paddingTop',\n    'paddingLeft',\n    'paddingBottom',\n    'paddingRight',\n    'marginTop',\n    'marginLeft',\n    'marginBottom',\n    'marginRight',\n    'borderRadius',\n    'borderWidth',\n    'borderTopWidth',\n    'borderLeftWidth',\n    'borderRightWidth',\n    'borderBottomWidth',\n    'textIndent',\n    'perspective'\n]);\nclass WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {\n    normalizePropertyName(propertyName, errors) {\n        return dashCaseToCamelCase(propertyName);\n    }\n    normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n        let unit = '';\n        const strVal = value.toString().trim();\n        if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {\n            if (typeof value === 'number') {\n                unit = 'px';\n            }\n            else {\n                const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n                if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n                    errors.push(invalidCssUnitValue(userProvidedProperty, value));\n                }\n            }\n        }\n        return strVal + unit;\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.io/license\n */\nfunction createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {\n    return {\n        type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */,\n        element,\n        triggerName,\n        isRemovalTransition,\n        fromState,\n        fromStyles,\n        toState,\n        toStyles,\n        timelines,\n        queriedElements,\n        preStyleProps,\n        postStyleProps,\n        totalTime,\n        errors\n    };\n}\n\nconst EMPTY_OBJECT = {};\nclass AnimationTransitionFactory {\n    constructor(_triggerName, ast, _stateStyles) {\n        this._triggerName = _triggerName;\n        this.ast = ast;\n        this._stateStyles = _stateStyles;\n    }\n    match(currentState, nextState, element, params) {\n        return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);\n    }\n    buildStyles(stateName, params, errors) {\n        let styler = this._stateStyles.get('*');\n        if (stateName !== undefined) {\n            styler = this._stateStyles.get(stateName?.toString()) || styler;\n        }\n        return styler ? styler.buildStyles(params, errors) : new Map();\n    }\n    build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {\n        const errors = [];\n        const transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;\n        const currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;\n        const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);\n        const nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;\n        const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);\n        const queriedElements = new Set();\n        const preStyleMap = new Map();\n        const postStyleMap = new Map();\n        const isRemoval = nextState === 'void';\n        const animationOptions = {\n            params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),\n            delay: this.ast.options?.delay,\n        };\n        const timelines = skipAstBuild ?\n            [] :\n            buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);\n        let totalTime = 0;\n        timelines.forEach(tl => {\n            totalTime = Math.max(tl.duration + tl.delay, totalTime);\n        });\n        if (errors.length) {\n            return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);\n        }\n        timelines.forEach(tl => {\n            const elm = tl.element;\n            const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set());\n            tl.preStyleProps.forEach(prop => preProps.add(prop));\n            const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set());\n            tl.postStyleProps.forEach(prop => postProps.add(prop));\n            if (elm !== element) {\n                queriedElements.add(elm);\n            }\n        });\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            checkNonAnimatableInTimelines(timelines, this._triggerName, driver);\n        }\n        const queriedElementsList = iteratorToArray(queriedElements.values());\n        return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);\n    }\n}\n/**\n * Checks inside a set of timelines if they try to animate a css property which is not considered\n * animatable, in that case it prints a warning on the console.\n * Besides that the function doesn't have any other effect.\n *\n * Note: this check is done here after the timelines are built instead of doing on a lower level so\n * that we can make sure that the warning appears only once per instruction (we can aggregate here\n * all the issues instead of finding them separately).\n *\n * @param timelines The built timelines for the current instruction.\n * @param triggerName The name of the trigger for the current instruction.\n * @param driver Animation driver used to perform the check.\n *\n */\nfunction checkNonAnimatableInTimelines(timelines, triggerName, driver) {\n    if (!driver.validateAnimatableStyleProperty) {\n        return;\n    }\n    const invalidNonAnimatableProps = new Set();\n    timelines.forEach(({ keyframes }) => {\n        const nonAnimatablePropsInitialValues = new Map();\n        keyframes.forEach(keyframe => {\n            for (const [prop, value] of keyframe.entries()) {\n                if (!driver.validateAnimatableStyleProperty(prop)) {\n                    if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {\n                        const propInitialValue = nonAnimatablePropsInitialValues.get(prop);\n                        if (propInitialValue !== value) {\n                            invalidNonAnimatableProps.add(prop);\n                        }\n                    }\n                    else {\n                        nonAnimatablePropsInitialValues.set(prop, value);\n                    }\n                }\n            }\n        });\n    });\n    if (invalidNonAnimatableProps.size > 0) {\n        console.warn(`Warning: The animation trigger \"${triggerName}\" is attempting to animate the following` +\n            ' not animatable properties: ' + Array.from(invalidNonAnimatableProps).join(', ') + '\\n' +\n            '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');\n    }\n}\nfunction oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {\n    return matchFns.some(fn => fn(currentState, nextState, element, params));\n}\nfunction applyParamDefaults(userParams, defaults) {\n    const result = copyObj(defaults);\n    for (const key in userParams) {\n        if (userParams.hasOwnProperty(key) && userParams[key] != null) {\n            result[key] = userParams[key];\n        }\n    }\n    return result;\n}\nclass AnimationStateStyles {\n    constructor(styles, defaultParams, normalizer) {\n        this.styles = styles;\n        this.defaultParams = defaultParams;\n        this.normalizer = normalizer;\n    }\n    buildStyles(params, errors) {\n        const finalStyles = new Map();\n        const combinedParams = copyObj(this.defaultParams);\n        Object.keys(params).forEach(key => {\n            const value = params[key];\n            if (value !== null) {\n                combinedParams[key] = value;\n            }\n        });\n        this.styles.styles.forEach(value => {\n            if (typeof value !== 'string') {\n                value.forEach((val, prop) => {\n                    if (val) {\n                        val = interpolateParams(val, combinedParams, errors);\n                    }\n                    const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);\n                    val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);\n                    finalStyles.set(normalizedProp, val);\n                });\n            }\n        });\n        return finalStyles;\n    }\n}\n\nfunction buildTrigger(name, ast, normalizer) {\n    return new AnimationTrigger(name, ast, normalizer);\n}\nclass AnimationTrigger {\n    constructor(name, ast, _normalizer) {\n        this.name = name;\n        this.ast = ast;\n        this._normalizer = _normalizer;\n        this.transitionFactories = [];\n        this.states = new Map();\n        ast.states.forEach(ast => {\n            const defaultParams = (ast.options && ast.options.params) || {};\n            this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));\n        });\n        balanceProperties(this.states, 'true', '1');\n        balanceProperties(this.states, 'false', '0');\n        ast.transitions.forEach(ast => {\n            this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));\n        });\n        this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);\n    }\n    get containsQueries() {\n        return this.ast.queryCount > 0;\n    }\n    matchTransition(currentState, nextState, element, params) {\n        const entry = this.transitionFactories.find(f => f.match(currentState, nextState, element, params));\n        return entry || null;\n    }\n    matchStyles(currentState, params, errors) {\n        return this.fallbackTransition.buildStyles(currentState, params, errors);\n    }\n}\nfunction createFallbackTransition(triggerName, states, normalizer) {\n    const matchers = [(fromState, toState) => true];\n    const animation = { type: 2 /* AnimationMetadataType.Sequence */, steps: [], options: null };\n    const transition = {\n        type: 1 /* AnimationMetadataType.Transition */,\n        animation,\n        matchers,\n        options: null,\n        queryCount: 0,\n        depCount: 0\n    };\n    return new AnimationTransitionFactory(triggerName, transition, states);\n}\nfunction balanceProperties(stateMap, key1, key2) {\n    if (stateMap.has(key1)) {\n        if (!stateMap.has(key2)) {\n            stateMap.set(key2, stateMap.get(key1));\n        }\n    }\n    else if (stateMap.has(key2)) {\n        stateMap.set(key1, stateMap.get(key2));\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.io/license\n */\nconst EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();\nclass TimelineAnimationEngine {\n    constructor(bodyNode, _driver, _normalizer) {\n        this.bodyNode = bodyNode;\n        this._driver = _driver;\n        this._normalizer = _normalizer;\n        this._animations = new Map();\n        this._playersById = new Map();\n        this.players = [];\n    }\n    register(id, metadata) {\n        const errors = [];\n        const warnings = [];\n        const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n        if (errors.length) {\n            throw registerFailed(errors);\n        }\n        else {\n            if (warnings.length) {\n                warnRegister(warnings);\n            }\n            this._animations.set(id, ast);\n        }\n    }\n    _buildPlayer(i, preStyles, postStyles) {\n        const element = i.element;\n        const keyframes = normalizeKeyframes$1(this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);\n        return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);\n    }\n    create(id, element, options = {}) {\n        const errors = [];\n        const ast = this._animations.get(id);\n        let instructions;\n        const autoStylesMap = new Map();\n        if (ast) {\n            instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(), options, EMPTY_INSTRUCTION_MAP, errors);\n            instructions.forEach(inst => {\n                const styles = getOrSetDefaultValue(autoStylesMap, inst.element, new Map());\n                inst.postStyleProps.forEach(prop => styles.set(prop, null));\n            });\n        }\n        else {\n            errors.push(missingOrDestroyedAnimation());\n            instructions = [];\n        }\n        if (errors.length) {\n            throw createAnimationFailed(errors);\n        }\n        autoStylesMap.forEach((styles, element) => {\n            styles.forEach((_, prop) => {\n                styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));\n            });\n        });\n        const players = instructions.map(i => {\n            const styles = autoStylesMap.get(i.element);\n            return this._buildPlayer(i, new Map(), styles);\n        });\n        const player = optimizeGroupPlayer(players);\n        this._playersById.set(id, player);\n        player.onDestroy(() => this.destroy(id));\n        this.players.push(player);\n        return player;\n    }\n    destroy(id) {\n        const player = this._getPlayer(id);\n        player.destroy();\n        this._playersById.delete(id);\n        const index = this.players.indexOf(player);\n        if (index >= 0) {\n            this.players.splice(index, 1);\n        }\n    }\n    _getPlayer(id) {\n        const player = this._playersById.get(id);\n        if (!player) {\n            throw missingPlayer(id);\n        }\n        return player;\n    }\n    listen(id, element, eventName, callback) {\n        // triggerName, fromState, toState are all ignored for timeline animations\n        const baseEvent = makeAnimationEvent(element, '', '', '');\n        listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);\n        return () => { };\n    }\n    command(id, element, command, args) {\n        if (command == 'register') {\n            this.register(id, args[0]);\n            return;\n        }\n        if (command == 'create') {\n            const options = (args[0] || {});\n            this.create(id, element, options);\n            return;\n        }\n        const player = this._getPlayer(id);\n        switch (command) {\n            case 'play':\n                player.play();\n                break;\n            case 'pause':\n                player.pause();\n                break;\n            case 'reset':\n                player.reset();\n                break;\n            case 'restart':\n                player.restart();\n                break;\n            case 'finish':\n                player.finish();\n                break;\n            case 'init':\n                player.init();\n                break;\n            case 'setPosition':\n                player.setPosition(parseFloat(args[0]));\n                break;\n            case 'destroy':\n                this.destroy(id);\n                break;\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.io/license\n */\nconst QUEUED_CLASSNAME = 'ng-animate-queued';\nconst QUEUED_SELECTOR = '.ng-animate-queued';\nconst DISABLED_CLASSNAME = 'ng-animate-disabled';\nconst DISABLED_SELECTOR = '.ng-animate-disabled';\nconst STAR_CLASSNAME = 'ng-star-inserted';\nconst STAR_SELECTOR = '.ng-star-inserted';\nconst EMPTY_PLAYER_ARRAY = [];\nconst NULL_REMOVAL_STATE = {\n    namespaceId: '',\n    setForRemoval: false,\n    setForMove: false,\n    hasAnimation: false,\n    removedBeforeQueried: false\n};\nconst NULL_REMOVED_QUERIED_STATE = {\n    namespaceId: '',\n    setForMove: false,\n    setForRemoval: false,\n    hasAnimation: false,\n    removedBeforeQueried: true\n};\nconst REMOVAL_FLAG = '__ng_removed';\nclass StateValue {\n    constructor(input, namespaceId = '') {\n        this.namespaceId = namespaceId;\n        const isObj = input && input.hasOwnProperty('value');\n        const value = isObj ? input['value'] : input;\n        this.value = normalizeTriggerValue(value);\n        if (isObj) {\n            const options = copyObj(input);\n            delete options['value'];\n            this.options = options;\n        }\n        else {\n            this.options = {};\n        }\n        if (!this.options.params) {\n            this.options.params = {};\n        }\n    }\n    get params() {\n        return this.options.params;\n    }\n    absorbOptions(options) {\n        const newParams = options.params;\n        if (newParams) {\n            const oldParams = this.options.params;\n            Object.keys(newParams).forEach(prop => {\n                if (oldParams[prop] == null) {\n                    oldParams[prop] = newParams[prop];\n                }\n            });\n        }\n    }\n}\nconst VOID_VALUE = 'void';\nconst DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);\nclass AnimationTransitionNamespace {\n    constructor(id, hostElement, _engine) {\n        this.id = id;\n        this.hostElement = hostElement;\n        this._engine = _engine;\n        this.players = [];\n        this._triggers = new Map();\n        this._queue = [];\n        this._elementListeners = new Map();\n        this._hostClassName = 'ng-tns-' + id;\n        addClass(hostElement, this._hostClassName);\n    }\n    listen(element, name, phase, callback) {\n        if (!this._triggers.has(name)) {\n            throw missingTrigger(phase, name);\n        }\n        if (phase == null || phase.length == 0) {\n            throw missingEvent(name);\n        }\n        if (!isTriggerEventValid(phase)) {\n            throw unsupportedTriggerEvent(phase, name);\n        }\n        const listeners = getOrSetDefaultValue(this._elementListeners, element, []);\n        const data = { name, phase, callback };\n        listeners.push(data);\n        const triggersWithStates = getOrSetDefaultValue(this._engine.statesByElement, element, new Map());\n        if (!triggersWithStates.has(name)) {\n            addClass(element, NG_TRIGGER_CLASSNAME);\n            addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);\n            triggersWithStates.set(name, DEFAULT_STATE_VALUE);\n        }\n        return () => {\n            // the event listener is removed AFTER the flush has occurred such\n            // that leave animations callbacks can fire (otherwise if the node\n            // is removed in between then the listeners would be deregistered)\n            this._engine.afterFlush(() => {\n                const index = listeners.indexOf(data);\n                if (index >= 0) {\n                    listeners.splice(index, 1);\n                }\n                if (!this._triggers.has(name)) {\n                    triggersWithStates.delete(name);\n                }\n            });\n        };\n    }\n    register(name, ast) {\n        if (this._triggers.has(name)) {\n            // throw\n            return false;\n        }\n        else {\n            this._triggers.set(name, ast);\n            return true;\n        }\n    }\n    _getTrigger(name) {\n        const trigger = this._triggers.get(name);\n        if (!trigger) {\n            throw unregisteredTrigger(name);\n        }\n        return trigger;\n    }\n    trigger(element, triggerName, value, defaultToFallback = true) {\n        const trigger = this._getTrigger(triggerName);\n        const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n        let triggersWithStates = this._engine.statesByElement.get(element);\n        if (!triggersWithStates) {\n            addClass(element, NG_TRIGGER_CLASSNAME);\n            addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);\n            this._engine.statesByElement.set(element, triggersWithStates = new Map());\n        }\n        let fromState = triggersWithStates.get(triggerName);\n        const toState = new StateValue(value, this.id);\n        const isObj = value && value.hasOwnProperty('value');\n        if (!isObj && fromState) {\n            toState.absorbOptions(fromState.options);\n        }\n        triggersWithStates.set(triggerName, toState);\n        if (!fromState) {\n            fromState = DEFAULT_STATE_VALUE;\n        }\n        const isRemoval = toState.value === VOID_VALUE;\n        // normally this isn't reached by here, however, if an object expression\n        // is passed in then it may be a new object each time. Comparing the value\n        // is important since that will stay the same despite there being a new object.\n        // The removal arc here is special cased because the same element is triggered\n        // twice in the event that it contains animations on the outer/inner portions\n        // of the host container\n        if (!isRemoval && fromState.value === toState.value) {\n            // this means that despite the value not changing, some inner params\n            // have changed which means that the animation final styles need to be applied\n            if (!objEquals(fromState.params, toState.params)) {\n                const errors = [];\n                const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);\n                const toStyles = trigger.matchStyles(toState.value, toState.params, errors);\n                if (errors.length) {\n                    this._engine.reportError(errors);\n                }\n                else {\n                    this._engine.afterFlush(() => {\n                        eraseStyles(element, fromStyles);\n                        setStyles(element, toStyles);\n                    });\n                }\n            }\n            return;\n        }\n        const playersOnElement = getOrSetDefaultValue(this._engine.playersByElement, element, []);\n        playersOnElement.forEach(player => {\n            // only remove the player if it is queued on the EXACT same trigger/namespace\n            // we only also deal with queued players here because if the animation has\n            // started then we want to keep the player alive until the flush happens\n            // (which is where the previousPlayers are passed into the new player)\n            if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {\n                player.destroy();\n            }\n        });\n        let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);\n        let isFallbackTransition = false;\n        if (!transition) {\n            if (!defaultToFallback)\n                return;\n            transition = trigger.fallbackTransition;\n            isFallbackTransition = true;\n        }\n        this._engine.totalQueuedPlayers++;\n        this._queue.push({ element, triggerName, transition, fromState, toState, player, isFallbackTransition });\n        if (!isFallbackTransition) {\n            addClass(element, QUEUED_CLASSNAME);\n            player.onStart(() => {\n                removeClass(element, QUEUED_CLASSNAME);\n            });\n        }\n        player.onDone(() => {\n            let index = this.players.indexOf(player);\n            if (index >= 0) {\n                this.players.splice(index, 1);\n            }\n            const players = this._engine.playersByElement.get(element);\n            if (players) {\n                let index = players.indexOf(player);\n                if (index >= 0) {\n                    players.splice(index, 1);\n                }\n            }\n        });\n        this.players.push(player);\n        playersOnElement.push(player);\n        return player;\n    }\n    deregister(name) {\n        this._triggers.delete(name);\n        this._engine.statesByElement.forEach(stateMap => stateMap.delete(name));\n        this._elementListeners.forEach((listeners, element) => {\n            this._elementListeners.set(element, listeners.filter(entry => {\n                return entry.name != name;\n            }));\n        });\n    }\n    clearElementCache(element) {\n        this._engine.statesByElement.delete(element);\n        this._elementListeners.delete(element);\n        const elementPlayers = this._engine.playersByElement.get(element);\n        if (elementPlayers) {\n            elementPlayers.forEach(player => player.destroy());\n            this._engine.playersByElement.delete(element);\n        }\n    }\n    _signalRemovalForInnerTriggers(rootElement, context) {\n        const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);\n        // emulate a leave animation for all inner nodes within this node.\n        // If there are no animations found for any of the nodes then clear the cache\n        // for the element.\n        elements.forEach(elm => {\n            // this means that an inner remove() operation has already kicked off\n            // the animation on this element...\n            if (elm[REMOVAL_FLAG])\n                return;\n            const namespaces = this._engine.fetchNamespacesByElement(elm);\n            if (namespaces.size) {\n                namespaces.forEach(ns => ns.triggerLeaveAnimation(elm, context, false, true));\n            }\n            else {\n                this.clearElementCache(elm);\n            }\n        });\n        // If the child elements were removed along with the parent, their animations might not\n        // have completed. Clear all the elements from the cache so we don't end up with a memory leak.\n        this._engine.afterFlushAnimationsDone(() => elements.forEach(elm => this.clearElementCache(elm)));\n    }\n    triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {\n        const triggerStates = this._engine.statesByElement.get(element);\n        const previousTriggersValues = new Map();\n        if (triggerStates) {\n            const players = [];\n            triggerStates.forEach((state, triggerName) => {\n                previousTriggersValues.set(triggerName, state.value);\n                // this check is here in the event that an element is removed\n                // twice (both on the host level and the component level)\n                if (this._triggers.has(triggerName)) {\n                    const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);\n                    if (player) {\n                        players.push(player);\n                    }\n                }\n            });\n            if (players.length) {\n                this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);\n                if (destroyAfterComplete) {\n                    optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n    prepareLeaveAnimationListeners(element) {\n        const listeners = this._elementListeners.get(element);\n        const elementStates = this._engine.statesByElement.get(element);\n        // if this statement fails then it means that the element was picked up\n        // by an earlier flush (or there are no listeners at all to track the leave).\n        if (listeners && elementStates) {\n            const visitedTriggers = new Set();\n            listeners.forEach(listener => {\n                const triggerName = listener.name;\n                if (visitedTriggers.has(triggerName))\n                    return;\n                visitedTriggers.add(triggerName);\n                const trigger = this._triggers.get(triggerName);\n                const transition = trigger.fallbackTransition;\n                const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;\n                const toState = new StateValue(VOID_VALUE);\n                const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n                this._engine.totalQueuedPlayers++;\n                this._queue.push({\n                    element,\n                    triggerName,\n                    transition,\n                    fromState,\n                    toState,\n                    player,\n                    isFallbackTransition: true\n                });\n            });\n        }\n    }\n    removeNode(element, context) {\n        const engine = this._engine;\n        if (element.childElementCount) {\n            this._signalRemovalForInnerTriggers(element, context);\n        }\n        // this means that a * => VOID animation was detected and kicked off\n        if (this.triggerLeaveAnimation(element, context, true))\n            return;\n        // find the player that is animating and make sure that the\n        // removal is delayed until that player has completed\n        let containsPotentialParentTransition = false;\n        if (engine.totalAnimations) {\n            const currentPlayers = engine.players.length ? engine.playersByQueriedElement.get(element) : [];\n            // when this `if statement` does not continue forward it means that\n            // a previous animation query has selected the current element and\n            // is animating it. In this situation want to continue forwards and\n            // allow the element to be queued up for animation later.\n            if (currentPlayers && currentPlayers.length) {\n                containsPotentialParentTransition = true;\n            }\n            else {\n                let parent = element;\n                while (parent = parent.parentNode) {\n                    const triggers = engine.statesByElement.get(parent);\n                    if (triggers) {\n                        containsPotentialParentTransition = true;\n                        break;\n                    }\n                }\n            }\n        }\n        // at this stage we know that the element will either get removed\n        // during flush or will be picked up by a parent query. Either way\n        // we need to fire the listeners for this element when it DOES get\n        // removed (once the query parent animation is done or after flush)\n        this.prepareLeaveAnimationListeners(element);\n        // whether or not a parent has an animation we need to delay the deferral of the leave\n        // operation until we have more information (which we do after flush() has been called)\n        if (containsPotentialParentTransition) {\n            engine.markElementAsRemoved(this.id, element, false, context);\n        }\n        else {\n            const removalFlag = element[REMOVAL_FLAG];\n            if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {\n                // we do this after the flush has occurred such\n                // that the callbacks can be fired\n                engine.afterFlush(() => this.clearElementCache(element));\n                engine.destroyInnerAnimations(element);\n                engine._onRemovalComplete(element, context);\n            }\n        }\n    }\n    insertNode(element, parent) {\n        addClass(element, this._hostClassName);\n    }\n    drainQueuedTransitions(microtaskId) {\n        const instructions = [];\n        this._queue.forEach(entry => {\n            const player = entry.player;\n            if (player.destroyed)\n                return;\n            const element = entry.element;\n            const listeners = this._elementListeners.get(element);\n            if (listeners) {\n                listeners.forEach((listener) => {\n                    if (listener.name == entry.triggerName) {\n                        const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);\n                        baseEvent['_data'] = microtaskId;\n                        listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);\n                    }\n                });\n            }\n            if (player.markedForDestroy) {\n                this._engine.afterFlush(() => {\n                    // now we can destroy the element properly since the event listeners have\n                    // been bound to the player\n                    player.destroy();\n                });\n            }\n            else {\n                instructions.push(entry);\n            }\n        });\n        this._queue = [];\n        return instructions.sort((a, b) => {\n            // if depCount == 0 them move to front\n            // otherwise if a contains b then move back\n            const d0 = a.transition.ast.depCount;\n            const d1 = b.transition.ast.depCount;\n            if (d0 == 0 || d1 == 0) {\n                return d0 - d1;\n            }\n            return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;\n        });\n    }\n    destroy(context) {\n        this.players.forEach(p => p.destroy());\n        this._signalRemovalForInnerTriggers(this.hostElement, context);\n    }\n    elementContainsData(element) {\n        let containsData = false;\n        if (this._elementListeners.has(element))\n            containsData = true;\n        containsData =\n            (this._queue.find(entry => entry.element === element) ? true : false) || containsData;\n        return containsData;\n    }\n}\nclass TransitionAnimationEngine {\n    constructor(bodyNode, driver, _normalizer) {\n        this.bodyNode = bodyNode;\n        this.driver = driver;\n        this._normalizer = _normalizer;\n        this.players = [];\n        this.newHostElements = new Map();\n        this.playersByElement = new Map();\n        this.playersByQueriedElement = new Map();\n        this.statesByElement = new Map();\n        this.disabledNodes = new Set();\n        this.totalAnimations = 0;\n        this.totalQueuedPlayers = 0;\n        this._namespaceLookup = {};\n        this._namespaceList = [];\n        this._flushFns = [];\n        this._whenQuietFns = [];\n        this.namespacesByHostElement = new Map();\n        this.collectedEnterElements = [];\n        this.collectedLeaveElements = [];\n        // this method is designed to be overridden by the code that uses this engine\n        this.onRemovalComplete = (element, context) => { };\n    }\n    /** @internal */\n    _onRemovalComplete(element, context) {\n        this.onRemovalComplete(element, context);\n    }\n    get queuedPlayers() {\n        const players = [];\n        this._namespaceList.forEach(ns => {\n            ns.players.forEach(player => {\n                if (player.queued) {\n                    players.push(player);\n                }\n            });\n        });\n        return players;\n    }\n    createNamespace(namespaceId, hostElement) {\n        const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);\n        if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {\n            this._balanceNamespaceList(ns, hostElement);\n        }\n        else {\n            // defer this later until flush during when the host element has\n            // been inserted so that we know exactly where to place it in\n            // the namespace list\n            this.newHostElements.set(hostElement, ns);\n            // given that this host element is a part of the animation code, it\n            // may or may not be inserted by a parent node that is of an\n            // animation renderer type. If this happens then we can still have\n            // access to this item when we query for :enter nodes. If the parent\n            // is a renderer then the set data-structure will normalize the entry\n            this.collectEnterElement(hostElement);\n        }\n        return this._namespaceLookup[namespaceId] = ns;\n    }\n    _balanceNamespaceList(ns, hostElement) {\n        const namespaceList = this._namespaceList;\n        const namespacesByHostElement = this.namespacesByHostElement;\n        const limit = namespaceList.length - 1;\n        if (limit >= 0) {\n            let found = false;\n            // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,\n            // establishing a top-down ordering of namespaces in `this._namespaceList`.\n            let ancestor = this.driver.getParentElement(hostElement);\n            while (ancestor) {\n                const ancestorNs = namespacesByHostElement.get(ancestor);\n                if (ancestorNs) {\n                    // An animation namespace has been registered for this ancestor, so we insert `ns`\n                    // right after it to establish top-down ordering of animation namespaces.\n                    const index = namespaceList.indexOf(ancestorNs);\n                    namespaceList.splice(index + 1, 0, ns);\n                    found = true;\n                    break;\n                }\n                ancestor = this.driver.getParentElement(ancestor);\n            }\n            if (!found) {\n                // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to\n                // ensure that any existing descendants are ordered after `ns`, retaining the desired\n                // top-down ordering.\n                namespaceList.unshift(ns);\n            }\n        }\n        else {\n            namespaceList.push(ns);\n        }\n        namespacesByHostElement.set(hostElement, ns);\n        return ns;\n    }\n    register(namespaceId, hostElement) {\n        let ns = this._namespaceLookup[namespaceId];\n        if (!ns) {\n            ns = this.createNamespace(namespaceId, hostElement);\n        }\n        return ns;\n    }\n    registerTrigger(namespaceId, name, trigger) {\n        let ns = this._namespaceLookup[namespaceId];\n        if (ns && ns.register(name, trigger)) {\n            this.totalAnimations++;\n        }\n    }\n    destroy(namespaceId, context) {\n        if (!namespaceId)\n            return;\n        const ns = this._fetchNamespace(namespaceId);\n        this.afterFlush(() => {\n            this.namespacesByHostElement.delete(ns.hostElement);\n            delete this._namespaceLookup[namespaceId];\n            const index = this._namespaceList.indexOf(ns);\n            if (index >= 0) {\n                this._namespaceList.splice(index, 1);\n            }\n        });\n        this.afterFlushAnimationsDone(() => ns.destroy(context));\n    }\n    _fetchNamespace(id) {\n        return this._namespaceLookup[id];\n    }\n    fetchNamespacesByElement(element) {\n        // normally there should only be one namespace per element, however\n        // if @triggers are placed on both the component element and then\n        // its host element (within the component code) then there will be\n        // two namespaces returned. We use a set here to simply deduplicate\n        // the namespaces in case (for the reason described above) there are multiple triggers\n        const namespaces = new Set();\n        const elementStates = this.statesByElement.get(element);\n        if (elementStates) {\n            for (let stateValue of elementStates.values()) {\n                if (stateValue.namespaceId) {\n                    const ns = this._fetchNamespace(stateValue.namespaceId);\n                    if (ns) {\n                        namespaces.add(ns);\n                    }\n                }\n            }\n        }\n        return namespaces;\n    }\n    trigger(namespaceId, element, name, value) {\n        if (isElementNode(element)) {\n            const ns = this._fetchNamespace(namespaceId);\n            if (ns) {\n                ns.trigger(element, name, value);\n                return true;\n            }\n        }\n        return false;\n    }\n    insertNode(namespaceId, element, parent, insertBefore) {\n        if (!isElementNode(element))\n            return;\n        // special case for when an element is removed and reinserted (move operation)\n        // when this occurs we do not want to use the element for deletion later\n        const details = element[REMOVAL_FLAG];\n        if (details && details.setForRemoval) {\n            details.setForRemoval = false;\n            details.setForMove = true;\n            const index = this.collectedLeaveElements.indexOf(element);\n            if (index >= 0) {\n                this.collectedLeaveElements.splice(index, 1);\n            }\n        }\n        // in the event that the namespaceId is blank then the caller\n        // code does not contain any animation code in it, but it is\n        // just being called so that the node is marked as being inserted\n        if (namespaceId) {\n            const ns = this._fetchNamespace(namespaceId);\n            // This if-statement is a workaround for router issue #21947.\n            // The router sometimes hits a race condition where while a route\n            // is being instantiated a new navigation arrives, triggering leave\n            // animation of DOM that has not been fully initialized, until this\n            // is resolved, we need to handle the scenario when DOM is not in a\n            // consistent state during the animation.\n            if (ns) {\n                ns.insertNode(element, parent);\n            }\n        }\n        // only *directives and host elements are inserted before\n        if (insertBefore) {\n            this.collectEnterElement(element);\n        }\n    }\n    collectEnterElement(element) {\n        this.collectedEnterElements.push(element);\n    }\n    markElementAsDisabled(element, value) {\n        if (value) {\n            if (!this.disabledNodes.has(element)) {\n                this.disabledNodes.add(element);\n                addClass(element, DISABLED_CLASSNAME);\n            }\n        }\n        else if (this.disabledNodes.has(element)) {\n            this.disabledNodes.delete(element);\n            removeClass(element, DISABLED_CLASSNAME);\n        }\n    }\n    removeNode(namespaceId, element, isHostElement, context) {\n        if (isElementNode(element)) {\n            const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;\n            if (ns) {\n                ns.removeNode(element, context);\n            }\n            else {\n                this.markElementAsRemoved(namespaceId, element, false, context);\n            }\n            if (isHostElement) {\n                const hostNS = this.namespacesByHostElement.get(element);\n                if (hostNS && hostNS.id !== namespaceId) {\n                    hostNS.removeNode(element, context);\n                }\n            }\n        }\n        else {\n            this._onRemovalComplete(element, context);\n        }\n    }\n    markElementAsRemoved(namespaceId, element, hasAnimation, context, previousTriggersValues) {\n        this.collectedLeaveElements.push(element);\n        element[REMOVAL_FLAG] = {\n            namespaceId,\n            setForRemoval: context,\n            hasAnimation,\n            removedBeforeQueried: false,\n            previousTriggersValues\n        };\n    }\n    listen(namespaceId, element, name, phase, callback) {\n        if (isElementNode(element)) {\n            return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);\n        }\n        return () => { };\n    }\n    _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {\n        return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);\n    }\n    destroyInnerAnimations(containerElement) {\n        let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);\n        elements.forEach(element => this.destroyActiveAnimationsForElement(element));\n        if (this.playersByQueriedElement.size == 0)\n            return;\n        elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);\n        elements.forEach(element => this.finishActiveQueriedAnimationOnElement(element));\n    }\n    destroyActiveAnimationsForElement(element) {\n        const players = this.playersByElement.get(element);\n        if (players) {\n            players.forEach(player => {\n                // special case for when an element is set for destruction, but hasn't started.\n                // in this situation we want to delay the destruction until the flush occurs\n                // so that any event listeners attached to the player are triggered.\n                if (player.queued) {\n                    player.markedForDestroy = true;\n                }\n                else {\n                    player.destroy();\n                }\n            });\n        }\n    }\n    finishActiveQueriedAnimationOnElement(element) {\n        const players = this.playersByQueriedElement.get(element);\n        if (players) {\n            players.forEach(player => player.finish());\n        }\n    }\n    whenRenderingDone() {\n        return new Promise(resolve => {\n            if (this.players.length) {\n                return optimizeGroupPlayer(this.players).onDone(() => resolve());\n            }\n            else {\n                resolve();\n            }\n        });\n    }\n    processLeaveNode(element) {\n        const details = element[REMOVAL_FLAG];\n        if (details && details.setForRemoval) {\n            // this will prevent it from removing it twice\n            element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;\n            if (details.namespaceId) {\n                this.destroyInnerAnimations(element);\n                const ns = this._fetchNamespace(details.namespaceId);\n                if (ns) {\n                    ns.clearElementCache(element);\n                }\n            }\n            this._onRemovalComplete(element, details.setForRemoval);\n        }\n        if (element.classList?.contains(DISABLED_CLASSNAME)) {\n            this.markElementAsDisabled(element, false);\n        }\n        this.driver.query(element, DISABLED_SELECTOR, true).forEach(node => {\n            this.markElementAsDisabled(node, false);\n        });\n    }\n    flush(microtaskId = -1) {\n        let players = [];\n        if (this.newHostElements.size) {\n            this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));\n            this.newHostElements.clear();\n        }\n        if (this.totalAnimations && this.collectedEnterElements.length) {\n            for (let i = 0; i < this.collectedEnterElements.length; i++) {\n                const elm = this.collectedEnterElements[i];\n                addClass(elm, STAR_CLASSNAME);\n            }\n        }\n        if (this._namespaceList.length &&\n            (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {\n            const cleanupFns = [];\n            try {\n                players = this._flushAnimations(cleanupFns, microtaskId);\n            }\n            finally {\n                for (let i = 0; i < cleanupFns.length; i++) {\n                    cleanupFns[i]();\n                }\n            }\n        }\n        else {\n            for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n                const element = this.collectedLeaveElements[i];\n                this.processLeaveNode(element);\n            }\n        }\n        this.totalQueuedPlayers = 0;\n        this.collectedEnterElements.length = 0;\n        this.collectedLeaveElements.length = 0;\n        this._flushFns.forEach(fn => fn());\n        this._flushFns = [];\n        if (this._whenQuietFns.length) {\n            // we move these over to a variable so that\n            // if any new callbacks are registered in another\n            // flush they do not populate the existing set\n            const quietFns = this._whenQuietFns;\n            this._whenQuietFns = [];\n            if (players.length) {\n                optimizeGroupPlayer(players).onDone(() => {\n                    quietFns.forEach(fn => fn());\n                });\n            }\n            else {\n                quietFns.forEach(fn => fn());\n            }\n        }\n    }\n    reportError(errors) {\n        throw triggerTransitionsFailed(errors);\n    }\n    _flushAnimations(cleanupFns, microtaskId) {\n        const subTimelines = new ElementInstructionMap();\n        const skippedPlayers = [];\n        const skippedPlayersMap = new Map();\n        const queuedInstructions = [];\n        const queriedElements = new Map();\n        const allPreStyleElements = new Map();\n        const allPostStyleElements = new Map();\n        const disabledElementsSet = new Set();\n        this.disabledNodes.forEach(node => {\n            disabledElementsSet.add(node);\n            const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);\n            for (let i = 0; i < nodesThatAreDisabled.length; i++) {\n                disabledElementsSet.add(nodesThatAreDisabled[i]);\n            }\n        });\n        const bodyNode = this.bodyNode;\n        const allTriggerElements = Array.from(this.statesByElement.keys());\n        const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);\n        // this must occur before the instructions are built below such that\n        // the :enter queries match the elements (since the timeline queries\n        // are fired during instruction building).\n        const enterNodeMapIds = new Map();\n        let i = 0;\n        enterNodeMap.forEach((nodes, root) => {\n            const className = ENTER_CLASSNAME + i++;\n            enterNodeMapIds.set(root, className);\n            nodes.forEach(node => addClass(node, className));\n        });\n        const allLeaveNodes = [];\n        const mergedLeaveNodes = new Set();\n        const leaveNodesWithoutAnimations = new Set();\n        for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n            const element = this.collectedLeaveElements[i];\n            const details = element[REMOVAL_FLAG];\n            if (details && details.setForRemoval) {\n                allLeaveNodes.push(element);\n                mergedLeaveNodes.add(element);\n                if (details.hasAnimation) {\n                    this.driver.query(element, STAR_SELECTOR, true).forEach(elm => mergedLeaveNodes.add(elm));\n                }\n                else {\n                    leaveNodesWithoutAnimations.add(element);\n                }\n            }\n        }\n        const leaveNodeMapIds = new Map();\n        const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));\n        leaveNodeMap.forEach((nodes, root) => {\n            const className = LEAVE_CLASSNAME + i++;\n            leaveNodeMapIds.set(root, className);\n            nodes.forEach(node => addClass(node, className));\n        });\n        cleanupFns.push(() => {\n            enterNodeMap.forEach((nodes, root) => {\n                const className = enterNodeMapIds.get(root);\n                nodes.forEach(node => removeClass(node, className));\n            });\n            leaveNodeMap.forEach((nodes, root) => {\n                const className = leaveNodeMapIds.get(root);\n                nodes.forEach(node => removeClass(node, className));\n            });\n            allLeaveNodes.forEach(element => {\n                this.processLeaveNode(element);\n            });\n        });\n        const allPlayers = [];\n        const erroneousTransitions = [];\n        for (let i = this._namespaceList.length - 1; i >= 0; i--) {\n            const ns = this._namespaceList[i];\n            ns.drainQueuedTransitions(microtaskId).forEach(entry => {\n                const player = entry.player;\n                const element = entry.element;\n                allPlayers.push(player);\n                if (this.collectedEnterElements.length) {\n                    const details = element[REMOVAL_FLAG];\n                    // animations for move operations (elements being removed and reinserted,\n                    // e.g. when the order of an *ngFor list changes) are currently not supported\n                    if (details && details.setForMove) {\n                        if (details.previousTriggersValues &&\n                            details.previousTriggersValues.has(entry.triggerName)) {\n                            const previousValue = details.previousTriggersValues.get(entry.triggerName);\n                            // we need to restore the previous trigger value since the element has\n                            // only been moved and hasn't actually left the DOM\n                            const triggersWithStates = this.statesByElement.get(entry.element);\n                            if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {\n                                const state = triggersWithStates.get(entry.triggerName);\n                                state.value = previousValue;\n                                triggersWithStates.set(entry.triggerName, state);\n                            }\n                        }\n                        player.destroy();\n                        return;\n                    }\n                }\n                const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);\n                const leaveClassName = leaveNodeMapIds.get(element);\n                const enterClassName = enterNodeMapIds.get(element);\n                const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);\n                if (instruction.errors && instruction.errors.length) {\n                    erroneousTransitions.push(instruction);\n                    return;\n                }\n                // even though the element may not be in the DOM, it may still\n                // be added at a later point (due to the mechanics of content\n                // projection and/or dynamic component insertion) therefore it's\n                // important to still style the element.\n                if (nodeIsOrphaned) {\n                    player.onStart(() => eraseStyles(element, instruction.fromStyles));\n                    player.onDestroy(() => setStyles(element, instruction.toStyles));\n                    skippedPlayers.push(player);\n                    return;\n                }\n                // if an unmatched transition is queued and ready to go\n                // then it SHOULD NOT render an animation and cancel the\n                // previously running animations.\n                if (entry.isFallbackTransition) {\n                    player.onStart(() => eraseStyles(element, instruction.fromStyles));\n                    player.onDestroy(() => setStyles(element, instruction.toStyles));\n                    skippedPlayers.push(player);\n                    return;\n                }\n                // this means that if a parent animation uses this animation as a sub-trigger\n                // then it will instruct the timeline builder not to add a player delay, but\n                // instead stretch the first keyframe gap until the animation starts. This is\n                // important in order to prevent extra initialization styles from being\n                // required by the user for the animation.\n                const timelines = [];\n                instruction.timelines.forEach(tl => {\n                    tl.stretchStartingKeyframe = true;\n                    if (!this.disabledNodes.has(tl.element)) {\n                        timelines.push(tl);\n                    }\n                });\n                instruction.timelines = timelines;\n                subTimelines.append(element, instruction.timelines);\n                const tuple = { instruction, player, element };\n                queuedInstructions.push(tuple);\n                instruction.queriedElements.forEach(element => getOrSetDefaultValue(queriedElements, element, []).push(player));\n                instruction.preStyleProps.forEach((stringMap, element) => {\n                    if (stringMap.size) {\n                        let setVal = allPreStyleElements.get(element);\n                        if (!setVal) {\n                            allPreStyleElements.set(element, setVal = new Set());\n                        }\n                        stringMap.forEach((_, prop) => setVal.add(prop));\n                    }\n                });\n                instruction.postStyleProps.forEach((stringMap, element) => {\n                    let setVal = allPostStyleElements.get(element);\n                    if (!setVal) {\n                        allPostStyleElements.set(element, setVal = new Set());\n                    }\n                    stringMap.forEach((_, prop) => setVal.add(prop));\n                });\n            });\n        }\n        if (erroneousTransitions.length) {\n            const errors = [];\n            erroneousTransitions.forEach(instruction => {\n                errors.push(transitionFailed(instruction.triggerName, instruction.errors));\n            });\n            allPlayers.forEach(player => player.destroy());\n            this.reportError(errors);\n        }\n        const allPreviousPlayersMap = new Map();\n        // this map tells us which element in the DOM tree is contained by\n        // which animation. Further down this map will get populated once\n        // the players are built and in doing so we can use it to efficiently\n        // figure out if a sub player is skipped due to a parent player having priority.\n        const animationElementMap = new Map();\n        queuedInstructions.forEach(entry => {\n            const element = entry.element;\n            if (subTimelines.has(element)) {\n                animationElementMap.set(element, element);\n                this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);\n            }\n        });\n        skippedPlayers.forEach(player => {\n            const element = player.element;\n            const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);\n            previousPlayers.forEach(prevPlayer => {\n                getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);\n                prevPlayer.destroy();\n            });\n        });\n        // this is a special case for nodes that will be removed either by\n        // having their own leave animations or by being queried in a container\n        // that will be removed once a parent animation is complete. The idea\n        // here is that * styles must be identical to ! styles because of\n        // backwards compatibility (* is also filled in by default in many places).\n        // Otherwise * styles will return an empty value or \"auto\" since the element\n        // passed to getComputedStyle will not be visible (since * === destination)\n        const replaceNodes = allLeaveNodes.filter(node => {\n            return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);\n        });\n        // POST STAGE: fill the * styles\n        const postStylesMap = new Map();\n        const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);\n        allLeaveQueriedNodes.forEach(node => {\n            if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {\n                replaceNodes.push(node);\n            }\n        });\n        // PRE STAGE: fill the ! styles\n        const preStylesMap = new Map();\n        enterNodeMap.forEach((nodes, root) => {\n            cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, ɵPRE_STYLE);\n        });\n        replaceNodes.forEach(node => {\n            const post = postStylesMap.get(node);\n            const pre = preStylesMap.get(node);\n            postStylesMap.set(node, new Map([...Array.from(post?.entries() ?? []), ...Array.from(pre?.entries() ?? [])]));\n        });\n        const rootPlayers = [];\n        const subPlayers = [];\n        const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};\n        queuedInstructions.forEach(entry => {\n            const { element, player, instruction } = entry;\n            // this means that it was never consumed by a parent animation which\n            // means that it is independent and therefore should be set for animation\n            if (subTimelines.has(element)) {\n                if (disabledElementsSet.has(element)) {\n                    player.onDestroy(() => setStyles(element, instruction.toStyles));\n                    player.disabled = true;\n                    player.overrideTotalTime(instruction.totalTime);\n                    skippedPlayers.push(player);\n                    return;\n                }\n                // this will flow up the DOM and query the map to figure out\n                // if a parent animation has priority over it. In the situation\n                // that a parent is detected then it will cancel the loop. If\n                // nothing is detected, or it takes a few hops to find a parent,\n                // then it will fill in the missing nodes and signal them as having\n                // a detected parent (or a NO_PARENT value via a special constant).\n                let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;\n                if (animationElementMap.size > 1) {\n                    let elm = element;\n                    const parentsToAdd = [];\n                    while (elm = elm.parentNode) {\n                        const detectedParent = animationElementMap.get(elm);\n                        if (detectedParent) {\n                            parentWithAnimation = detectedParent;\n                            break;\n                        }\n                        parentsToAdd.push(elm);\n                    }\n                    parentsToAdd.forEach(parent => animationElementMap.set(parent, parentWithAnimation));\n                }\n                const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);\n                player.setRealPlayer(innerPlayer);\n                if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {\n                    rootPlayers.push(player);\n                }\n                else {\n                    const parentPlayers = this.playersByElement.get(parentWithAnimation);\n                    if (parentPlayers && parentPlayers.length) {\n                        player.parentPlayer = optimizeGroupPlayer(parentPlayers);\n                    }\n                    skippedPlayers.push(player);\n                }\n            }\n            else {\n                eraseStyles(element, instruction.fromStyles);\n                player.onDestroy(() => setStyles(element, instruction.toStyles));\n                // there still might be a ancestor player animating this\n                // element therefore we will still add it as a sub player\n                // even if its animation may be disabled\n                subPlayers.push(player);\n                if (disabledElementsSet.has(element)) {\n                    skippedPlayers.push(player);\n                }\n            }\n        });\n        // find all of the sub players' corresponding inner animation players\n        subPlayers.forEach(player => {\n            // even if no players are found for a sub animation it\n            // will still complete itself after the next tick since it's Noop\n            const playersForElement = skippedPlayersMap.get(player.element);\n            if (playersForElement && playersForElement.length) {\n                const innerPlayer = optimizeGroupPlayer(playersForElement);\n                player.setRealPlayer(innerPlayer);\n            }\n        });\n        // the reason why we don't actually play the animation is\n        // because all that a skipped player is designed to do is to\n        // fire the start/done transition callback events\n        skippedPlayers.forEach(player => {\n            if (player.parentPlayer) {\n                player.syncPlayerEvents(player.parentPlayer);\n            }\n            else {\n                player.destroy();\n            }\n        });\n        // run through all of the queued removals and see if they\n        // were picked up by a query. If not then perform the removal\n        // operation right away unless a parent animation is ongoing.\n        for (let i = 0; i < allLeaveNodes.length; i++) {\n            const element = allLeaveNodes[i];\n            const details = element[REMOVAL_FLAG];\n            removeClass(element, LEAVE_CLASSNAME);\n            // this means the element has a removal animation that is being\n            // taken care of and therefore the inner elements will hang around\n            // until that animation is over (or the parent queried animation)\n            if (details && details.hasAnimation)\n                continue;\n            let players = [];\n            // if this element is queried or if it contains queried children\n            // then we want for the element not to be removed from the page\n            // until the queried animations have finished\n            if (queriedElements.size) {\n                let queriedPlayerResults = queriedElements.get(element);\n                if (queriedPlayerResults && queriedPlayerResults.length) {\n                    players.push(...queriedPlayerResults);\n                }\n                let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);\n                for (let j = 0; j < queriedInnerElements.length; j++) {\n                    let queriedPlayers = queriedElements.get(queriedInnerElements[j]);\n                    if (queriedPlayers && queriedPlayers.length) {\n                        players.push(...queriedPlayers);\n                    }\n                }\n            }\n            const activePlayers = players.filter(p => !p.destroyed);\n            if (activePlayers.length) {\n                removeNodesAfterAnimationDone(this, element, activePlayers);\n            }\n            else {\n                this.processLeaveNode(element);\n            }\n        }\n        // this is required so the cleanup method doesn't remove them\n        allLeaveNodes.length = 0;\n        rootPlayers.forEach(player => {\n            this.players.push(player);\n            player.onDone(() => {\n                player.destroy();\n                const index = this.players.indexOf(player);\n                this.players.splice(index, 1);\n            });\n            player.play();\n        });\n        return rootPlayers;\n    }\n    elementContainsData(namespaceId, element) {\n        let containsData = false;\n        const details = element[REMOVAL_FLAG];\n        if (details && details.setForRemoval)\n            containsData = true;\n        if (this.playersByElement.has(element))\n            containsData = true;\n        if (this.playersByQueriedElement.has(element))\n            containsData = true;\n        if (this.statesByElement.has(element))\n            containsData = true;\n        return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;\n    }\n    afterFlush(callback) {\n        this._flushFns.push(callback);\n    }\n    afterFlushAnimationsDone(callback) {\n        this._whenQuietFns.push(callback);\n    }\n    _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {\n        let players = [];\n        if (isQueriedElement) {\n            const queriedElementPlayers = this.playersByQueriedElement.get(element);\n            if (queriedElementPlayers) {\n                players = queriedElementPlayers;\n            }\n        }\n        else {\n            const elementPlayers = this.playersByElement.get(element);\n            if (elementPlayers) {\n                const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;\n                elementPlayers.forEach(player => {\n                    if (player.queued)\n                        return;\n                    if (!isRemovalAnimation && player.triggerName != triggerName)\n                        return;\n                    players.push(player);\n                });\n            }\n        }\n        if (namespaceId || triggerName) {\n            players = players.filter(player => {\n                if (namespaceId && namespaceId != player.namespaceId)\n                    return false;\n                if (triggerName && triggerName != player.triggerName)\n                    return false;\n                return true;\n            });\n        }\n        return players;\n    }\n    _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {\n        const triggerName = instruction.triggerName;\n        const rootElement = instruction.element;\n        // when a removal animation occurs, ALL previous players are collected\n        // and destroyed (even if they are outside of the current namespace)\n        const targetNameSpaceId = instruction.isRemovalTransition ? undefined : namespaceId;\n        const targetTriggerName = instruction.isRemovalTransition ? undefined : triggerName;\n        for (const timelineInstruction of instruction.timelines) {\n            const element = timelineInstruction.element;\n            const isQueriedElement = element !== rootElement;\n            const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);\n            const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);\n            previousPlayers.forEach(player => {\n                const realPlayer = player.getRealPlayer();\n                if (realPlayer.beforeDestroy) {\n                    realPlayer.beforeDestroy();\n                }\n                player.destroy();\n                players.push(player);\n            });\n        }\n        // this needs to be done so that the PRE/POST styles can be\n        // computed properly without interfering with the previous animation\n        eraseStyles(rootElement, instruction.fromStyles);\n    }\n    _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {\n        const triggerName = instruction.triggerName;\n        const rootElement = instruction.element;\n        // we first run this so that the previous animation player\n        // data can be passed into the successive animation players\n        const allQueriedPlayers = [];\n        const allConsumedElements = new Set();\n        const allSubElements = new Set();\n        const allNewPlayers = instruction.timelines.map(timelineInstruction => {\n            const element = timelineInstruction.element;\n            allConsumedElements.add(element);\n            // FIXME (matsko): make sure to-be-removed animations are removed properly\n            const details = element[REMOVAL_FLAG];\n            if (details && details.removedBeforeQueried)\n                return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);\n            const isQueriedElement = element !== rootElement;\n            const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY)\n                .map(p => p.getRealPlayer()))\n                .filter(p => {\n                // the `element` is not apart of the AnimationPlayer definition, but\n                // Mock/WebAnimations\n                // use the element within their implementation. This will be added in Angular5 to\n                // AnimationPlayer\n                const pp = p;\n                return pp.element ? pp.element === element : false;\n            });\n            const preStyles = preStylesMap.get(element);\n            const postStyles = postStylesMap.get(element);\n            const keyframes = normalizeKeyframes$1(this.driver, this._normalizer, element, timelineInstruction.keyframes, preStyles, postStyles);\n            const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);\n            // this means that this particular player belongs to a sub trigger. It is\n            // important that we match this player up with the corresponding (@trigger.listener)\n            if (timelineInstruction.subTimeline && skippedPlayersMap) {\n                allSubElements.add(element);\n            }\n            if (isQueriedElement) {\n                const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);\n                wrappedPlayer.setRealPlayer(player);\n                allQueriedPlayers.push(wrappedPlayer);\n            }\n            return player;\n        });\n        allQueriedPlayers.forEach(player => {\n            getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);\n            player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));\n        });\n        allConsumedElements.forEach(element => addClass(element, NG_ANIMATING_CLASSNAME));\n        const player = optimizeGroupPlayer(allNewPlayers);\n        player.onDestroy(() => {\n            allConsumedElements.forEach(element => removeClass(element, NG_ANIMATING_CLASSNAME));\n            setStyles(rootElement, instruction.toStyles);\n        });\n        // this basically makes all of the callbacks for sub element animations\n        // be dependent on the upper players for when they finish\n        allSubElements.forEach(element => {\n            getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);\n        });\n        return player;\n    }\n    _buildPlayer(instruction, keyframes, previousPlayers) {\n        if (keyframes.length > 0) {\n            return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);\n        }\n        // special case for when an empty transition|definition is provided\n        // ... there is no point in rendering an empty animation\n        return new NoopAnimationPlayer(instruction.duration, instruction.delay);\n    }\n}\nclass TransitionAnimationPlayer {\n    constructor(namespaceId, triggerName, element) {\n        this.namespaceId = namespaceId;\n        this.triggerName = triggerName;\n        this.element = element;\n        this._player = new NoopAnimationPlayer();\n        this._containsRealPlayer = false;\n        this._queuedCallbacks = new Map();\n        this.destroyed = false;\n        this.markedForDestroy = false;\n        this.disabled = false;\n        this.queued = true;\n        this.totalTime = 0;\n    }\n    setRealPlayer(player) {\n        if (this._containsRealPlayer)\n            return;\n        this._player = player;\n        this._queuedCallbacks.forEach((callbacks, phase) => {\n            callbacks.forEach(callback => listenOnPlayer(player, phase, undefined, callback));\n        });\n        this._queuedCallbacks.clear();\n        this._containsRealPlayer = true;\n        this.overrideTotalTime(player.totalTime);\n        this.queued = false;\n    }\n    getRealPlayer() {\n        return this._player;\n    }\n    overrideTotalTime(totalTime) {\n        this.totalTime = totalTime;\n    }\n    syncPlayerEvents(player) {\n        const p = this._player;\n        if (p.triggerCallback) {\n            player.onStart(() => p.triggerCallback('start'));\n        }\n        player.onDone(() => this.finish());\n        player.onDestroy(() => this.destroy());\n    }\n    _queueEvent(name, callback) {\n        getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);\n    }\n    onDone(fn) {\n        if (this.queued) {\n            this._queueEvent('done', fn);\n        }\n        this._player.onDone(fn);\n    }\n    onStart(fn) {\n        if (this.queued) {\n            this._queueEvent('start', fn);\n        }\n        this._player.onStart(fn);\n    }\n    onDestroy(fn) {\n        if (this.queued) {\n            this._queueEvent('destroy', fn);\n        }\n        this._player.onDestroy(fn);\n    }\n    init() {\n        this._player.init();\n    }\n    hasStarted() {\n        return this.queued ? false : this._player.hasStarted();\n    }\n    play() {\n        !this.queued && this._player.play();\n    }\n    pause() {\n        !this.queued && this._player.pause();\n    }\n    restart() {\n        !this.queued && this._player.restart();\n    }\n    finish() {\n        this._player.finish();\n    }\n    destroy() {\n        this.destroyed = true;\n        this._player.destroy();\n    }\n    reset() {\n        !this.queued && this._player.reset();\n    }\n    setPosition(p) {\n        if (!this.queued) {\n            this._player.setPosition(p);\n        }\n    }\n    getPosition() {\n        return this.queued ? 0 : this._player.getPosition();\n    }\n    /** @internal */\n    triggerCallback(phaseName) {\n        const p = this._player;\n        if (p.triggerCallback) {\n            p.triggerCallback(phaseName);\n        }\n    }\n}\nfunction deleteOrUnsetInMap(map, key, value) {\n    let currentValues = map.get(key);\n    if (currentValues) {\n        if (currentValues.length) {\n            const index = currentValues.indexOf(value);\n            currentValues.splice(index, 1);\n        }\n        if (currentValues.length == 0) {\n            map.delete(key);\n        }\n    }\n    return currentValues;\n}\nfunction normalizeTriggerValue(value) {\n    // we use `!= null` here because it's the most simple\n    // way to test against a \"falsy\" value without mixing\n    // in empty strings or a zero value. DO NOT OPTIMIZE.\n    return value != null ? value : null;\n}\nfunction isElementNode(node) {\n    return node && node['nodeType'] === 1;\n}\nfunction isTriggerEventValid(eventName) {\n    return eventName == 'start' || eventName == 'done';\n}\nfunction cloakElement(element, value) {\n    const oldValue = element.style.display;\n    element.style.display = value != null ? value : 'none';\n    return oldValue;\n}\nfunction cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {\n    const cloakVals = [];\n    elements.forEach(element => cloakVals.push(cloakElement(element)));\n    const failedElements = [];\n    elementPropsMap.forEach((props, element) => {\n        const styles = new Map();\n        props.forEach(prop => {\n            const value = driver.computeStyle(element, prop, defaultStyle);\n            styles.set(prop, value);\n            // there is no easy way to detect this because a sub element could be removed\n            // by a parent animation element being detached.\n            if (!value || value.length == 0) {\n                element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;\n                failedElements.push(element);\n            }\n        });\n        valuesMap.set(element, styles);\n    });\n    // we use a index variable here since Set.forEach(a, i) does not return\n    // an index value for the closure (but instead just the value)\n    let i = 0;\n    elements.forEach(element => cloakElement(element, cloakVals[i++]));\n    return failedElements;\n}\n/*\nSince the Angular renderer code will return a collection of inserted\nnodes in all areas of a DOM tree, it's up to this algorithm to figure\nout which nodes are roots for each animation @trigger.\n\nBy placing each inserted node into a Set and traversing upwards, it\nis possible to find the @trigger elements and well any direct *star\ninsertion nodes, if a @trigger root is found then the enter element\nis placed into the Map[@trigger] spot.\n */\nfunction buildRootMap(roots, nodes) {\n    const rootMap = new Map();\n    roots.forEach(root => rootMap.set(root, []));\n    if (nodes.length == 0)\n        return rootMap;\n    const NULL_NODE = 1;\n    const nodeSet = new Set(nodes);\n    const localRootMap = new Map();\n    function getRoot(node) {\n        if (!node)\n            return NULL_NODE;\n        let root = localRootMap.get(node);\n        if (root)\n            return root;\n        const parent = node.parentNode;\n        if (rootMap.has(parent)) { // ngIf inside @trigger\n            root = parent;\n        }\n        else if (nodeSet.has(parent)) { // ngIf inside ngIf\n            root = NULL_NODE;\n        }\n        else { // recurse upwards\n            root = getRoot(parent);\n        }\n        localRootMap.set(node, root);\n        return root;\n    }\n    nodes.forEach(node => {\n        const root = getRoot(node);\n        if (root !== NULL_NODE) {\n            rootMap.get(root).push(node);\n        }\n    });\n    return rootMap;\n}\nfunction addClass(element, className) {\n    element.classList?.add(className);\n}\nfunction removeClass(element, className) {\n    element.classList?.remove(className);\n}\nfunction removeNodesAfterAnimationDone(engine, element, players) {\n    optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));\n}\nfunction flattenGroupPlayers(players) {\n    const finalPlayers = [];\n    _flattenGroupPlayersRecur(players, finalPlayers);\n    return finalPlayers;\n}\nfunction _flattenGroupPlayersRecur(players, finalPlayers) {\n    for (let i = 0; i < players.length; i++) {\n        const player = players[i];\n        if (player instanceof ɵAnimationGroupPlayer) {\n            _flattenGroupPlayersRecur(player.players, finalPlayers);\n        }\n        else {\n            finalPlayers.push(player);\n        }\n    }\n}\nfunction objEquals(a, b) {\n    const k1 = Object.keys(a);\n    const k2 = Object.keys(b);\n    if (k1.length != k2.length)\n        return false;\n    for (let i = 0; i < k1.length; i++) {\n        const prop = k1[i];\n        if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])\n            return false;\n    }\n    return true;\n}\nfunction replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {\n    const postEntry = allPostStyleElements.get(element);\n    if (!postEntry)\n        return false;\n    let preEntry = allPreStyleElements.get(element);\n    if (preEntry) {\n        postEntry.forEach(data => preEntry.add(data));\n    }\n    else {\n        allPreStyleElements.set(element, postEntry);\n    }\n    allPostStyleElements.delete(element);\n    return true;\n}\n\nclass AnimationEngine {\n    constructor(bodyNode, _driver, _normalizer) {\n        this.bodyNode = bodyNode;\n        this._driver = _driver;\n        this._normalizer = _normalizer;\n        this._triggerCache = {};\n        // this method is designed to be overridden by the code that uses this engine\n        this.onRemovalComplete = (element, context) => { };\n        this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, _normalizer);\n        this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, _normalizer);\n        this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);\n    }\n    registerTrigger(componentId, namespaceId, hostElement, name, metadata) {\n        const cacheKey = componentId + '-' + name;\n        let trigger = this._triggerCache[cacheKey];\n        if (!trigger) {\n            const errors = [];\n            const warnings = [];\n            const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n            if (errors.length) {\n                throw triggerBuildFailed(name, errors);\n            }\n            if (warnings.length) {\n                warnTriggerBuild(name, warnings);\n            }\n            trigger = buildTrigger(name, ast, this._normalizer);\n            this._triggerCache[cacheKey] = trigger;\n        }\n        this._transitionEngine.registerTrigger(namespaceId, name, trigger);\n    }\n    register(namespaceId, hostElement) {\n        this._transitionEngine.register(namespaceId, hostElement);\n    }\n    destroy(namespaceId, context) {\n        this._transitionEngine.destroy(namespaceId, context);\n    }\n    onInsert(namespaceId, element, parent, insertBefore) {\n        this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);\n    }\n    onRemove(namespaceId, element, context, isHostElement) {\n        this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);\n    }\n    disableAnimations(element, disable) {\n        this._transitionEngine.markElementAsDisabled(element, disable);\n    }\n    process(namespaceId, element, property, value) {\n        if (property.charAt(0) == '@') {\n            const [id, action] = parseTimelineCommand(property);\n            const args = value;\n            this._timelineEngine.command(id, element, action, args);\n        }\n        else {\n            this._transitionEngine.trigger(namespaceId, element, property, value);\n        }\n    }\n    listen(namespaceId, element, eventName, eventPhase, callback) {\n        // @@listen\n        if (eventName.charAt(0) == '@') {\n            const [id, action] = parseTimelineCommand(eventName);\n            return this._timelineEngine.listen(id, element, action, callback);\n        }\n        return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);\n    }\n    flush(microtaskId = -1) {\n        this._transitionEngine.flush(microtaskId);\n    }\n    get players() {\n        return this._transitionEngine.players\n            .concat(this._timelineEngine.players);\n    }\n    whenRenderingDone() {\n        return this._transitionEngine.whenRenderingDone();\n    }\n}\n\n/**\n * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are\n * detected.\n *\n * In CSS there exist properties that cannot be animated within a keyframe animation\n * (whether it be via CSS keyframes or web-animations) and the animation implementation\n * will ignore them. This function is designed to detect those special cased styles and\n * return a container that will be executed at the start and end of the animation.\n *\n * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`\n */\nfunction packageNonAnimatableStyles(element, styles) {\n    let startStyles = null;\n    let endStyles = null;\n    if (Array.isArray(styles) && styles.length) {\n        startStyles = filterNonAnimatableStyles(styles[0]);\n        if (styles.length > 1) {\n            endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);\n        }\n    }\n    else if (styles instanceof Map) {\n        startStyles = filterNonAnimatableStyles(styles);\n    }\n    return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :\n        null;\n}\n/**\n * Designed to be executed during a keyframe-based animation to apply any special-cased styles.\n *\n * When started (when the `start()` method is run) then the provided `startStyles`\n * will be applied. When finished (when the `finish()` method is called) the\n * `endStyles` will be applied as well any any starting styles. Finally when\n * `destroy()` is called then all styles will be removed.\n */\nclass SpecialCasedStyles {\n    constructor(_element, _startStyles, _endStyles) {\n        this._element = _element;\n        this._startStyles = _startStyles;\n        this._endStyles = _endStyles;\n        this._state = 0 /* SpecialCasedStylesState.Pending */;\n        let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);\n        if (!initialStyles) {\n            SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = new Map());\n        }\n        this._initialStyles = initialStyles;\n    }\n    start() {\n        if (this._state < 1 /* SpecialCasedStylesState.Started */) {\n            if (this._startStyles) {\n                setStyles(this._element, this._startStyles, this._initialStyles);\n            }\n            this._state = 1 /* SpecialCasedStylesState.Started */;\n        }\n    }\n    finish() {\n        this.start();\n        if (this._state < 2 /* SpecialCasedStylesState.Finished */) {\n            setStyles(this._element, this._initialStyles);\n            if (this._endStyles) {\n                setStyles(this._element, this._endStyles);\n                this._endStyles = null;\n            }\n            this._state = 1 /* SpecialCasedStylesState.Started */;\n        }\n    }\n    destroy() {\n        this.finish();\n        if (this._state < 3 /* SpecialCasedStylesState.Destroyed */) {\n            SpecialCasedStyles.initialStylesByElement.delete(this._element);\n            if (this._startStyles) {\n                eraseStyles(this._element, this._startStyles);\n                this._endStyles = null;\n            }\n            if (this._endStyles) {\n                eraseStyles(this._element, this._endStyles);\n                this._endStyles = null;\n            }\n            setStyles(this._element, this._initialStyles);\n            this._state = 3 /* SpecialCasedStylesState.Destroyed */;\n        }\n    }\n}\nSpecialCasedStyles.initialStylesByElement = ( /* @__PURE__ */new WeakMap());\nfunction filterNonAnimatableStyles(styles) {\n    let result = null;\n    styles.forEach((val, prop) => {\n        if (isNonAnimatableStyle(prop)) {\n            result = result || new Map();\n            result.set(prop, val);\n        }\n    });\n    return result;\n}\nfunction isNonAnimatableStyle(prop) {\n    return prop === 'display' || prop === 'position';\n}\n\nclass WebAnimationsPlayer {\n    constructor(element, keyframes, options, _specialStyles) {\n        this.element = element;\n        this.keyframes = keyframes;\n        this.options = options;\n        this._specialStyles = _specialStyles;\n        this._onDoneFns = [];\n        this._onStartFns = [];\n        this._onDestroyFns = [];\n        this._initialized = false;\n        this._finished = false;\n        this._started = false;\n        this._destroyed = false;\n        // the following original fns are persistent copies of the _onStartFns and _onDoneFns\n        // and are used to reset the fns to their original values upon reset()\n        // (since the _onStartFns and _onDoneFns get deleted after they are called)\n        this._originalOnDoneFns = [];\n        this._originalOnStartFns = [];\n        this.time = 0;\n        this.parentPlayer = null;\n        this.currentSnapshot = new Map();\n        this._duration = options['duration'];\n        this._delay = options['delay'] || 0;\n        this.time = this._duration + this._delay;\n    }\n    _onFinish() {\n        if (!this._finished) {\n            this._finished = true;\n            this._onDoneFns.forEach(fn => fn());\n            this._onDoneFns = [];\n        }\n    }\n    init() {\n        this._buildPlayer();\n        this._preparePlayerBeforeStart();\n    }\n    _buildPlayer() {\n        if (this._initialized)\n            return;\n        this._initialized = true;\n        const keyframes = this.keyframes;\n        this.domPlayer =\n            this._triggerWebAnimation(this.element, keyframes, this.options);\n        this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();\n        this.domPlayer.addEventListener('finish', () => this._onFinish());\n    }\n    _preparePlayerBeforeStart() {\n        // this is required so that the player doesn't start to animate right away\n        if (this._delay) {\n            this._resetDomPlayerState();\n        }\n        else {\n            this.domPlayer.pause();\n        }\n    }\n    _convertKeyframesToObject(keyframes) {\n        const kfs = [];\n        keyframes.forEach(frame => {\n            kfs.push(Object.fromEntries(frame));\n        });\n        return kfs;\n    }\n    /** @internal */\n    _triggerWebAnimation(element, keyframes, options) {\n        // jscompiler doesn't seem to know animate is a native property because it's not fully\n        // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]\n        return element['animate'](this._convertKeyframesToObject(keyframes), options);\n    }\n    onStart(fn) {\n        this._originalOnStartFns.push(fn);\n        this._onStartFns.push(fn);\n    }\n    onDone(fn) {\n        this._originalOnDoneFns.push(fn);\n        this._onDoneFns.push(fn);\n    }\n    onDestroy(fn) {\n        this._onDestroyFns.push(fn);\n    }\n    play() {\n        this._buildPlayer();\n        if (!this.hasStarted()) {\n            this._onStartFns.forEach(fn => fn());\n            this._onStartFns = [];\n            this._started = true;\n            if (this._specialStyles) {\n                this._specialStyles.start();\n            }\n        }\n        this.domPlayer.play();\n    }\n    pause() {\n        this.init();\n        this.domPlayer.pause();\n    }\n    finish() {\n        this.init();\n        if (this._specialStyles) {\n            this._specialStyles.finish();\n        }\n        this._onFinish();\n        this.domPlayer.finish();\n    }\n    reset() {\n        this._resetDomPlayerState();\n        this._destroyed = false;\n        this._finished = false;\n        this._started = false;\n        this._onStartFns = this._originalOnStartFns;\n        this._onDoneFns = this._originalOnDoneFns;\n    }\n    _resetDomPlayerState() {\n        if (this.domPlayer) {\n            this.domPlayer.cancel();\n        }\n    }\n    restart() {\n        this.reset();\n        this.play();\n    }\n    hasStarted() {\n        return this._started;\n    }\n    destroy() {\n        if (!this._destroyed) {\n            this._destroyed = true;\n            this._resetDomPlayerState();\n            this._onFinish();\n            if (this._specialStyles) {\n                this._specialStyles.destroy();\n            }\n            this._onDestroyFns.forEach(fn => fn());\n            this._onDestroyFns = [];\n        }\n    }\n    setPosition(p) {\n        if (this.domPlayer === undefined) {\n            this.init();\n        }\n        this.domPlayer.currentTime = p * this.time;\n    }\n    getPosition() {\n        return this.domPlayer.currentTime / this.time;\n    }\n    get totalTime() {\n        return this._delay + this._duration;\n    }\n    beforeDestroy() {\n        const styles = new Map();\n        if (this.hasStarted()) {\n            // note: this code is invoked only when the `play` function was called prior to this\n            // (thus `hasStarted` returns true), this implies that the code that initializes\n            // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here\n            const finalKeyframe = this._finalKeyframe;\n            finalKeyframe.forEach((val, prop) => {\n                if (prop !== 'offset') {\n                    styles.set(prop, this._finished ? val : computeStyle(this.element, prop));\n                }\n            });\n        }\n        this.currentSnapshot = styles;\n    }\n    /** @internal */\n    triggerCallback(phaseName) {\n        const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;\n        methods.forEach(fn => fn());\n        methods.length = 0;\n    }\n}\n\nclass WebAnimationsDriver {\n    validateStyleProperty(prop) {\n        // Perform actual validation in dev mode only, in prod mode this check is a noop.\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            return validateStyleProperty(prop);\n        }\n        return true;\n    }\n    validateAnimatableStyleProperty(prop) {\n        // Perform actual validation in dev mode only, in prod mode this check is a noop.\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            const cssProp = camelCaseToDashCase(prop);\n            return validateWebAnimatableStyleProperty(cssProp);\n        }\n        return true;\n    }\n    matchesElement(_element, _selector) {\n        // This method is deprecated and no longer in use so we return false.\n        return false;\n    }\n    containsElement(elm1, elm2) {\n        return containsElement(elm1, elm2);\n    }\n    getParentElement(element) {\n        return getParentElement(element);\n    }\n    query(element, selector, multi) {\n        return invokeQuery(element, selector, multi);\n    }\n    computeStyle(element, prop, defaultValue) {\n        return window.getComputedStyle(element)[prop];\n    }\n    animate(element, keyframes, duration, delay, easing, previousPlayers = []) {\n        const fill = delay == 0 ? 'both' : 'forwards';\n        const playerOptions = { duration, delay, fill };\n        // we check for this to avoid having a null|undefined value be present\n        // for the easing (which results in an error for certain browsers #9752)\n        if (easing) {\n            playerOptions['easing'] = easing;\n        }\n        const previousStyles = new Map();\n        const previousWebAnimationPlayers = previousPlayers.filter(player => player instanceof WebAnimationsPlayer);\n        if (allowPreviousPlayerStylesMerge(duration, delay)) {\n            previousWebAnimationPlayers.forEach(player => {\n                player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));\n            });\n        }\n        let _keyframes = normalizeKeyframes(keyframes).map(styles => copyStyles(styles));\n        _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);\n        const specialStyles = packageNonAnimatableStyles(element, _keyframes);\n        return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);\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.io/license\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.io/license\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationDriver, Animation as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, NoopAnimationDriver as ɵNoopAnimationDriver, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, containsElement as ɵcontainsElement, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty };\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ViewEncapsulation, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport { AnimationBuilder, sequence, AnimationFactory } from '@angular/animations';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, ɵNoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\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.io/license\n */\nclass BrowserAnimationBuilder extends AnimationBuilder {\n    constructor(rootRenderer, doc) {\n        super();\n        this._nextAnimationId = 0;\n        const typeData = { id: '0', encapsulation: ViewEncapsulation.None, styles: [], data: { animation: [] } };\n        this._renderer = rootRenderer.createRenderer(doc.body, typeData);\n    }\n    build(animation) {\n        const id = this._nextAnimationId.toString();\n        this._nextAnimationId++;\n        const entry = Array.isArray(animation) ? sequence(animation) : animation;\n        issueAnimationCommand(this._renderer, null, id, 'register', [entry]);\n        return new BrowserAnimationFactory(id, this._renderer);\n    }\n}\nBrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationBuilder });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\nclass BrowserAnimationFactory extends AnimationFactory {\n    constructor(_id, _renderer) {\n        super();\n        this._id = _id;\n        this._renderer = _renderer;\n    }\n    create(element, options) {\n        return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);\n    }\n}\nclass RendererAnimationPlayer {\n    constructor(id, element, options, _renderer) {\n        this.id = id;\n        this.element = element;\n        this._renderer = _renderer;\n        this.parentPlayer = null;\n        this._started = false;\n        this.totalTime = 0;\n        this._command('create', options);\n    }\n    _listen(eventName, callback) {\n        return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);\n    }\n    _command(command, ...args) {\n        return issueAnimationCommand(this._renderer, this.element, this.id, command, args);\n    }\n    onDone(fn) {\n        this._listen('done', fn);\n    }\n    onStart(fn) {\n        this._listen('start', fn);\n    }\n    onDestroy(fn) {\n        this._listen('destroy', fn);\n    }\n    init() {\n        this._command('init');\n    }\n    hasStarted() {\n        return this._started;\n    }\n    play() {\n        this._command('play');\n        this._started = true;\n    }\n    pause() {\n        this._command('pause');\n    }\n    restart() {\n        this._command('restart');\n    }\n    finish() {\n        this._command('finish');\n    }\n    destroy() {\n        this._command('destroy');\n    }\n    reset() {\n        this._command('reset');\n        this._started = false;\n    }\n    setPosition(p) {\n        this._command('setPosition', p);\n    }\n    getPosition() {\n        return this._renderer.engine.players[+this.id]?.getPosition() ?? 0;\n    }\n}\nfunction issueAnimationCommand(renderer, element, id, command, args) {\n    return renderer.setProperty(element, `@@${id}:${command}`, args);\n}\n\nconst ANIMATION_PREFIX = '@';\nconst DISABLE_ANIMATIONS_FLAG = '@.disabled';\nclass AnimationRendererFactory {\n    constructor(delegate, engine, _zone) {\n        this.delegate = delegate;\n        this.engine = engine;\n        this._zone = _zone;\n        this._currentId = 0;\n        this._microtaskId = 1;\n        this._animationCallbacksBuffer = [];\n        this._rendererCache = new Map();\n        this._cdRecurDepth = 0;\n        this.promise = Promise.resolve(0);\n        engine.onRemovalComplete = (element, delegate) => {\n            // Note: if a component element has a leave animation, and a host leave animation,\n            // the view engine will call `removeChild` for the parent\n            // component renderer as well as for the child component renderer.\n            // Therefore, we need to check if we already removed the element.\n            const parentNode = delegate?.parentNode(element);\n            if (parentNode) {\n                delegate.removeChild(parentNode, element);\n            }\n        };\n    }\n    createRenderer(hostElement, type) {\n        const EMPTY_NAMESPACE_ID = '';\n        // cache the delegates to find out which cached delegate can\n        // be used by which cached renderer\n        const delegate = this.delegate.createRenderer(hostElement, type);\n        if (!hostElement || !type || !type.data || !type.data['animation']) {\n            let renderer = this._rendererCache.get(delegate);\n            if (!renderer) {\n                // Ensure that the renderer is removed from the cache on destroy\n                // since it may contain references to detached DOM nodes.\n                const onRendererDestroy = () => this._rendererCache.delete(delegate);\n                renderer =\n                    new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);\n                // only cache this result when the base renderer is used\n                this._rendererCache.set(delegate, renderer);\n            }\n            return renderer;\n        }\n        const componentId = type.id;\n        const namespaceId = type.id + '-' + this._currentId;\n        this._currentId++;\n        this.engine.register(namespaceId, hostElement);\n        const registerTrigger = (trigger) => {\n            if (Array.isArray(trigger)) {\n                trigger.forEach(registerTrigger);\n            }\n            else {\n                this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);\n            }\n        };\n        const animationTriggers = type.data['animation'];\n        animationTriggers.forEach(registerTrigger);\n        return new AnimationRenderer(this, namespaceId, delegate, this.engine);\n    }\n    begin() {\n        this._cdRecurDepth++;\n        if (this.delegate.begin) {\n            this.delegate.begin();\n        }\n    }\n    _scheduleCountTask() {\n        // always use promise to schedule microtask instead of use Zone\n        this.promise.then(() => {\n            this._microtaskId++;\n        });\n    }\n    /** @internal */\n    scheduleListenerCallback(count, fn, data) {\n        if (count >= 0 && count < this._microtaskId) {\n            this._zone.run(() => fn(data));\n            return;\n        }\n        if (this._animationCallbacksBuffer.length == 0) {\n            Promise.resolve(null).then(() => {\n                this._zone.run(() => {\n                    this._animationCallbacksBuffer.forEach(tuple => {\n                        const [fn, data] = tuple;\n                        fn(data);\n                    });\n                    this._animationCallbacksBuffer = [];\n                });\n            });\n        }\n        this._animationCallbacksBuffer.push([fn, data]);\n    }\n    end() {\n        this._cdRecurDepth--;\n        // this is to prevent animations from running twice when an inner\n        // component does CD when a parent component instead has inserted it\n        if (this._cdRecurDepth == 0) {\n            this._zone.runOutsideAngular(() => {\n                this._scheduleCountTask();\n                this.engine.flush(this._microtaskId);\n            });\n        }\n        if (this.delegate.end) {\n            this.delegate.end();\n        }\n    }\n    whenRenderingDone() {\n        return this.engine.whenRenderingDone();\n    }\n}\nAnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AnimationRendererFactory, deps: [{ token: i0.RendererFactory2 }, { token: i1.ɵAnimationEngine }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nAnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AnimationRendererFactory });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AnimationRendererFactory, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ɵAnimationEngine }, { type: i0.NgZone }]; } });\nclass BaseAnimationRenderer {\n    constructor(namespaceId, delegate, engine, _onDestroy) {\n        this.namespaceId = namespaceId;\n        this.delegate = delegate;\n        this.engine = engine;\n        this._onDestroy = _onDestroy;\n        this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode(n) : null;\n    }\n    get data() {\n        return this.delegate.data;\n    }\n    destroy() {\n        this.engine.destroy(this.namespaceId, this.delegate);\n        this.delegate.destroy();\n        this._onDestroy?.();\n    }\n    createElement(name, namespace) {\n        return this.delegate.createElement(name, namespace);\n    }\n    createComment(value) {\n        return this.delegate.createComment(value);\n    }\n    createText(value) {\n        return this.delegate.createText(value);\n    }\n    appendChild(parent, newChild) {\n        this.delegate.appendChild(parent, newChild);\n        this.engine.onInsert(this.namespaceId, newChild, parent, false);\n    }\n    insertBefore(parent, newChild, refChild, isMove = true) {\n        this.delegate.insertBefore(parent, newChild, refChild);\n        // If `isMove` true than we should animate this insert.\n        this.engine.onInsert(this.namespaceId, newChild, parent, isMove);\n    }\n    removeChild(parent, oldChild, isHostElement) {\n        this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);\n    }\n    selectRootElement(selectorOrNode, preserveContent) {\n        return this.delegate.selectRootElement(selectorOrNode, preserveContent);\n    }\n    parentNode(node) {\n        return this.delegate.parentNode(node);\n    }\n    nextSibling(node) {\n        return this.delegate.nextSibling(node);\n    }\n    setAttribute(el, name, value, namespace) {\n        this.delegate.setAttribute(el, name, value, namespace);\n    }\n    removeAttribute(el, name, namespace) {\n        this.delegate.removeAttribute(el, name, namespace);\n    }\n    addClass(el, name) {\n        this.delegate.addClass(el, name);\n    }\n    removeClass(el, name) {\n        this.delegate.removeClass(el, name);\n    }\n    setStyle(el, style, value, flags) {\n        this.delegate.setStyle(el, style, value, flags);\n    }\n    removeStyle(el, style, flags) {\n        this.delegate.removeStyle(el, style, flags);\n    }\n    setProperty(el, name, value) {\n        if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {\n            this.disableAnimations(el, !!value);\n        }\n        else {\n            this.delegate.setProperty(el, name, value);\n        }\n    }\n    setValue(node, value) {\n        this.delegate.setValue(node, value);\n    }\n    listen(target, eventName, callback) {\n        return this.delegate.listen(target, eventName, callback);\n    }\n    disableAnimations(element, value) {\n        this.engine.disableAnimations(element, value);\n    }\n}\nclass AnimationRenderer extends BaseAnimationRenderer {\n    constructor(factory, namespaceId, delegate, engine, onDestroy) {\n        super(namespaceId, delegate, engine, onDestroy);\n        this.factory = factory;\n        this.namespaceId = namespaceId;\n    }\n    setProperty(el, name, value) {\n        if (name.charAt(0) == ANIMATION_PREFIX) {\n            if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {\n                value = value === undefined ? true : !!value;\n                this.disableAnimations(el, value);\n            }\n            else {\n                this.engine.process(this.namespaceId, el, name.slice(1), value);\n            }\n        }\n        else {\n            this.delegate.setProperty(el, name, value);\n        }\n    }\n    listen(target, eventName, callback) {\n        if (eventName.charAt(0) == ANIMATION_PREFIX) {\n            const element = resolveElementFromTarget(target);\n            let name = eventName.slice(1);\n            let phase = '';\n            // @listener.phase is for trigger animation callbacks\n            // @@listener is for animation builder callbacks\n            if (name.charAt(0) != ANIMATION_PREFIX) {\n                [name, phase] = parseTriggerCallbackName(name);\n            }\n            return this.engine.listen(this.namespaceId, element, name, phase, event => {\n                const countId = event['_data'] || -1;\n                this.factory.scheduleListenerCallback(countId, callback, event);\n            });\n        }\n        return this.delegate.listen(target, eventName, callback);\n    }\n}\nfunction resolveElementFromTarget(target) {\n    switch (target) {\n        case 'body':\n            return document.body;\n        case 'document':\n            return document;\n        case 'window':\n            return window;\n        default:\n            return target;\n    }\n}\nfunction parseTriggerCallbackName(triggerName) {\n    const dotIndex = triggerName.indexOf('.');\n    const trigger = triggerName.substring(0, dotIndex);\n    const phase = triggerName.slice(dotIndex + 1);\n    return [trigger, phase];\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.io/license\n */\nclass InjectableAnimationEngine extends ɵAnimationEngine {\n    // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n    // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n    // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n    constructor(doc, driver, normalizer, appRef) {\n        super(doc.body, driver, normalizer);\n    }\n    ngOnDestroy() {\n        this.flush();\n    }\n}\nInjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });\nInjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectableAnimationEngine });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectableAnimationEngine, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1.AnimationDriver }, { type: i1.ɵAnimationStyleNormalizer }, { type: i0.ApplicationRef }]; } });\nfunction instantiateDefaultStyleNormalizer() {\n    return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n    return new AnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [\n    { provide: AnimationBuilder, useClass: BrowserAnimationBuilder },\n    { provide: ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },\n    { provide: ɵAnimationEngine, useClass: InjectableAnimationEngine }, {\n        provide: RendererFactory2,\n        useFactory: instantiateRendererFactory,\n        deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n    }\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [\n    { provide: AnimationDriver, useFactory: () => new ɵWebAnimationsDriver() },\n    { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [\n    { provide: AnimationDriver, useClass: ɵNoopAnimationDriver },\n    { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS\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.io/license\n */\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nclass BrowserAnimationsModule {\n    /**\n     * Configures the module based on the specified object.\n     *\n     * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n     * @see `BrowserAnimationsModuleConfig`\n     *\n     * @usageNotes\n     * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n     * function as follows:\n     * ```\n     * @NgModule({\n     *   imports: [BrowserAnimationsModule.withConfig(config)]\n     * })\n     * class MyNgModule {}\n     * ```\n     */\n    static withConfig(config) {\n        return {\n            ngModule: BrowserAnimationsModule,\n            providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :\n                BROWSER_ANIMATIONS_PROVIDERS\n        };\n    }\n}\nBrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });\nBrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserAnimationsModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [BrowserModule],\n                    providers: BROWSER_ANIMATIONS_PROVIDERS,\n                }]\n        }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n *   providers: [\n *     provideAnimations()\n *   ]\n * });\n * ```\n *\n * @publicApi\n * @developerPreview\n */\nfunction provideAnimations() {\n    // Return a copy to prevent changes to the original array in case any in-place\n    // alterations are performed to the `provideAnimations` call results in app code.\n    return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nclass NoopAnimationsModule {\n}\nNoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nNoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });\nNoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopAnimationsModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [BrowserModule],\n                    providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n                }]\n        }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n *   providers: [\n *     provideNoopAnimations()\n *   ]\n * });\n * ```\n *\n * @publicApi\n * @developerPreview\n */\nfunction provideNoopAnimations() {\n    // Return a copy to prevent changes to the original array in case any in-place\n    // alterations are performed to the `provideNoopAnimations` call results in app code.\n    return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\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.io/license\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.io/license\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, BrowserAnimationFactory as ɵBrowserAnimationFactory, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","<pri-layout-root\r\n\t*ngIf=\"(loading$ | async) === false\"\r\n\t[attr.hidden]=\"(appReady$ | async) === false ? '' : null\"></pri-layout-root>\r\n","import { Component, ViewEncapsulation } from '@angular/core';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { AppContextService, AppInitializer, BroadcastService, SettingsService } from '@primavera/services';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Component({\r\n    selector: 'app-root',\r\n    templateUrl: './app.component.html',\r\n    styleUrls: ['./app.component.scss'],\r\n    encapsulation: ViewEncapsulation.None\r\n})\r\nexport class AppComponent {\r\n    appReady$: BehaviorSubject<boolean> = new BehaviorSubject(false);\r\n    loading$: BehaviorSubject<boolean> = new BehaviorSubject(true);\r\n\r\n    readonly className = 'is-app-initializing';\r\n\r\n    constructor(private titleService: Title,\r\n        private settingsService: SettingsService,\r\n        private appContextService: AppContextService,\r\n        private broadcastService: BroadcastService,\r\n        private appInitializer: AppInitializer) {\r\n        this.broadcastService.subscribe('clientAppReady', () => {\r\n            if (document.getElementsByClassName('main-loader')?.length > 0) {\r\n                document.body.classList.remove(this.className);\r\n\r\n                document.getElementsByClassName('main-loader')[0].remove();\r\n            }\r\n\r\n            this.appReady$.next(true);\r\n        });\r\n\r\n        this.appInitializer.ready$.subscribe(async value => {\r\n            if (value) {\r\n                await this.init();\r\n            }\r\n        });\r\n    }\r\n\r\n    private async init() {\r\n        try {\r\n            document.body.classList.add(this.className);\r\n\r\n            await this.appInitializer.initialize();\r\n\r\n            this.loading$.next(false);\r\n\r\n            const context = this.appContextService.getContext();\r\n\r\n            let productName = context.productName;\r\n            if (!productName) {\r\n                productName = this.settingsService.environmentSettings.productName;\r\n            }\r\n\r\n            this.titleService.setTitle(productName);\r\n        } catch {\r\n            this.loading$.next(false);\r\n        }\r\n    }\r\n}\r\n","import { Routes } from '@angular/router';\r\nimport { ModalRouterInjectorComponent, PanelRouterInjectorComponent } from '@primavera/components/features/routing';\r\nimport { AmsGuard, IdentityGuard } from '@primavera/services';\r\n\r\nexport const mainRoutes: Routes = [\r\n  {\r\n    path: ':account/:subscription',\r\n    canActivate: [IdentityGuard, AmsGuard],\r\n    loadChildren: () => import('./app.module').then(m => m.AppModule),\r\n  },\r\n  {\r\n    path: 'popup',\r\n    outlet: 'popup',\r\n    component: ModalRouterInjectorComponent,\r\n    children: [\r\n      {\r\n        path: '',\r\n        loadChildren: () => import('./app.module').then(m => m.AppModule),\r\n      }\r\n    ]\r\n  },\r\n  {\r\n    path: 'panel',\r\n    outlet: 'panel',\r\n    component: PanelRouterInjectorComponent,\r\n\r\n    children: [\r\n      {\r\n        path: '',\r\n        loadChildren: () => import('./app.module').then(m => m.AppModule),\r\n      }\r\n    ]\r\n  },\r\n  {\r\n    path: '**',\r\n    redirectTo: '/'\r\n  }\r\n];\r\n\r\nexport const customRoutes: any = ['/start'];\r\n\r\n","import { HttpClientModule } from '@angular/common/http';\r\nimport { APP_INITIALIZER, NgModule } from '@angular/core';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { DefaultUrlSerializer, RouterModule, UrlHandlingStrategy, UrlSerializer, UrlTree } from '@angular/router';\r\nimport { AppInitializer, EnvironmentSettings, PrimaveraServicesModule } from '@primavera/services';\r\nimport { ShellModule } from '@primavera/shell';\r\nimport { customMainServices } from '../../custom-code/custom.services';\r\nimport { AppComponent } from './app.component';\r\nimport { mainRoutes } from './main.routes';\r\n\r\nexport class LowerCaseUrlSerializer extends DefaultUrlSerializer {\r\n    override parse(url: string): UrlTree {\r\n        return super.parse(url.toLowerCase());\r\n    }\r\n}\r\n\r\nexport class HybridUrlHandlingStrategy implements UrlHandlingStrategy {\r\n    shouldProcessUrl(url: UrlTree) {\r\n        return true;\r\n    }\r\n    extract(url: UrlTree) {\r\n        return url;\r\n    }\r\n    merge(url: UrlTree, whole: UrlTree) {\r\n        const urlTree = url as UrlTree;\r\n\r\n        // fix camel case when using router.navigate\r\n\r\n        // eslint-disable-next-line @typescript-eslint/dot-notation\r\n        urlTree.root.children['primary']?.segments.forEach(seg => {\r\n            seg.path = seg.path.toLowerCase();\r\n        });\r\n\r\n        return urlTree;\r\n    }\r\n}\r\n\r\n@NgModule({\r\n    declarations: [\r\n        AppComponent\r\n    ],\r\n    imports: [\r\n        BrowserAnimationsModule,\r\n        HttpClientModule,\r\n        PrimaveraServicesModule,\r\n        ShellModule,\r\n        RouterModule.forRoot(\r\n            mainRoutes,\r\n            {\r\n                enableTracing: false\r\n            }\r\n        )\r\n    ],\r\n    exports:\r\n        [\r\n            AppComponent\r\n        ],\r\n    providers: [\r\n        {\r\n            provide: UrlSerializer,\r\n            useClass: LowerCaseUrlSerializer\r\n        },\r\n        {\r\n            provide: UrlHandlingStrategy,\r\n            useClass: HybridUrlHandlingStrategy\r\n        },\r\n        {\r\n            provide: APP_INITIALIZER,\r\n            useFactory: (appInitializer: AppInitializer) => async () => await appInitializer.init(),\r\n            deps: [AppInitializer],\r\n            multi: true\r\n        },\r\n        ...customMainServices\r\n    ],\r\n    bootstrap: [AppComponent]\r\n})\r\nexport class MainModule {\r\n    constructor(envSettings: EnvironmentSettings) { }\r\n}\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { DEPLOY_URL_PROVIDER, EnvironmentSettings } from '@primavera/services';\r\nimport 'zone.js/dist/zone';\r\nimport { MainModule } from './app/main.module';\r\n\r\nconst deploy = DEPLOY_URL_PROVIDER;\r\n\r\nfetch(deploy.useValue + 'assets/environment.json')\r\n  .then((response) => response.json())\r\n  .then((config: EnvironmentSettings) => {\r\n\r\n    if (config.production) {\r\n      enableProdMode();\r\n    }\r\n\r\n    const bootstrapModule = MainModule;\r\n\r\n    platformBrowserDynamic([\r\n      {\r\n        provide: EnvironmentSettings,\r\n        useValue: config\r\n      },\r\n      DEPLOY_URL_PROVIDER\r\n    ])\r\n      .bootstrapModule(bootstrapModule).catch((err) => console.error(err));\r\n  });\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { TextMessageFormat } from \"./TextMessageFormat\";\r\nimport { isArrayBuffer } from \"./Utils\";\r\n/** @private */\r\nexport class HandshakeProtocol {\r\n    // Handshake request is always JSON\r\n    writeHandshakeRequest(handshakeRequest) {\r\n        return TextMessageFormat.write(JSON.stringify(handshakeRequest));\r\n    }\r\n    parseHandshakeResponse(data) {\r\n        let messageData;\r\n        let remainingData;\r\n        if (isArrayBuffer(data)) {\r\n            // Format is binary but still need to read JSON text from handshake response\r\n            const binaryData = new Uint8Array(data);\r\n            const separatorIndex = binaryData.indexOf(TextMessageFormat.RecordSeparatorCode);\r\n            if (separatorIndex === -1) {\r\n                throw new Error(\"Message is incomplete.\");\r\n            }\r\n            // content before separator is handshake response\r\n            // optional content after is additional messages\r\n            const responseLength = separatorIndex + 1;\r\n            messageData = String.fromCharCode.apply(null, Array.prototype.slice.call(binaryData.slice(0, responseLength)));\r\n            remainingData = (binaryData.byteLength > responseLength) ? binaryData.slice(responseLength).buffer : null;\r\n        }\r\n        else {\r\n            const textData = data;\r\n            const separatorIndex = textData.indexOf(TextMessageFormat.RecordSeparator);\r\n            if (separatorIndex === -1) {\r\n                throw new Error(\"Message is incomplete.\");\r\n            }\r\n            // content before separator is handshake response\r\n            // optional content after is additional messages\r\n            const responseLength = separatorIndex + 1;\r\n            messageData = textData.substring(0, responseLength);\r\n            remainingData = (textData.length > responseLength) ? textData.substring(responseLength) : null;\r\n        }\r\n        // At this point we should have just the single handshake message\r\n        const messages = TextMessageFormat.parse(messageData);\r\n        const response = JSON.parse(messages[0]);\r\n        if (response.type) {\r\n            throw new Error(\"Expected a handshake response from the server.\");\r\n        }\r\n        const responseMessage = response;\r\n        // multiple messages could have arrived with handshake\r\n        // return additional data to be parsed as usual, or null if all parsed\r\n        return [remainingData, responseMessage];\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { SubjectSubscription } from \"./Utils\";\r\n/** Stream implementation to stream items to the server. */\r\nexport class Subject {\r\n    constructor() {\r\n        this.observers = [];\r\n    }\r\n    next(item) {\r\n        for (const observer of this.observers) {\r\n            observer.next(item);\r\n        }\r\n    }\r\n    error(err) {\r\n        for (const observer of this.observers) {\r\n            if (observer.error) {\r\n                observer.error(err);\r\n            }\r\n        }\r\n    }\r\n    complete() {\r\n        for (const observer of this.observers) {\r\n            if (observer.complete) {\r\n                observer.complete();\r\n            }\r\n        }\r\n    }\r\n    subscribe(observer) {\r\n        this.observers.push(observer);\r\n        return new SubjectSubscription(this, observer);\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { HandshakeProtocol } from \"./HandshakeProtocol\";\r\nimport { MessageType } from \"./IHubProtocol\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { Subject } from \"./Subject\";\r\nimport { Arg, getErrorString, Platform } from \"./Utils\";\r\nconst DEFAULT_TIMEOUT_IN_MS = 30 * 1000;\r\nconst DEFAULT_PING_INTERVAL_IN_MS = 15 * 1000;\r\n/** Describes the current state of the {@link HubConnection} to the server. */\r\nexport var HubConnectionState;\r\n(function (HubConnectionState) {\r\n    /** The hub connection is disconnected. */\r\n    HubConnectionState[\"Disconnected\"] = \"Disconnected\";\r\n    /** The hub connection is connecting. */\r\n    HubConnectionState[\"Connecting\"] = \"Connecting\";\r\n    /** The hub connection is connected. */\r\n    HubConnectionState[\"Connected\"] = \"Connected\";\r\n    /** The hub connection is disconnecting. */\r\n    HubConnectionState[\"Disconnecting\"] = \"Disconnecting\";\r\n    /** The hub connection is reconnecting. */\r\n    HubConnectionState[\"Reconnecting\"] = \"Reconnecting\";\r\n})(HubConnectionState || (HubConnectionState = {}));\r\n/** Represents a connection to a SignalR Hub. */\r\nexport class HubConnection {\r\n    constructor(connection, logger, protocol, reconnectPolicy) {\r\n        this._nextKeepAlive = 0;\r\n        this._freezeEventListener = () => {\r\n            this._logger.log(LogLevel.Warning, \"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep\");\r\n        };\r\n        Arg.isRequired(connection, \"connection\");\r\n        Arg.isRequired(logger, \"logger\");\r\n        Arg.isRequired(protocol, \"protocol\");\r\n        this.serverTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MS;\r\n        this.keepAliveIntervalInMilliseconds = DEFAULT_PING_INTERVAL_IN_MS;\r\n        this._logger = logger;\r\n        this._protocol = protocol;\r\n        this.connection = connection;\r\n        this._reconnectPolicy = reconnectPolicy;\r\n        this._handshakeProtocol = new HandshakeProtocol();\r\n        this.connection.onreceive = (data) => this._processIncomingData(data);\r\n        this.connection.onclose = (error) => this._connectionClosed(error);\r\n        this._callbacks = {};\r\n        this._methods = {};\r\n        this._closedCallbacks = [];\r\n        this._reconnectingCallbacks = [];\r\n        this._reconnectedCallbacks = [];\r\n        this._invocationId = 0;\r\n        this._receivedHandshakeResponse = false;\r\n        this._connectionState = HubConnectionState.Disconnected;\r\n        this._connectionStarted = false;\r\n        this._cachedPingMessage = this._protocol.writeMessage({ type: MessageType.Ping });\r\n    }\r\n    /** @internal */\r\n    // Using a public static factory method means we can have a private constructor and an _internal_\r\n    // create method that can be used by HubConnectionBuilder. An \"internal\" constructor would just\r\n    // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a\r\n    // public parameter-less constructor.\r\n    static create(connection, logger, protocol, reconnectPolicy) {\r\n        return new HubConnection(connection, logger, protocol, reconnectPolicy);\r\n    }\r\n    /** Indicates the state of the {@link HubConnection} to the server. */\r\n    get state() {\r\n        return this._connectionState;\r\n    }\r\n    /** Represents the connection id of the {@link HubConnection} on the server. The connection id will be null when the connection is either\r\n     *  in the disconnected state or if the negotiation step was skipped.\r\n     */\r\n    get connectionId() {\r\n        return this.connection ? (this.connection.connectionId || null) : null;\r\n    }\r\n    /** Indicates the url of the {@link HubConnection} to the server. */\r\n    get baseUrl() {\r\n        return this.connection.baseUrl || \"\";\r\n    }\r\n    /**\r\n     * Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or\r\n     * Reconnecting states.\r\n     * @param {string} url The url to connect to.\r\n     */\r\n    set baseUrl(url) {\r\n        if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) {\r\n            throw new Error(\"The HubConnection must be in the Disconnected or Reconnecting state to change the url.\");\r\n        }\r\n        if (!url) {\r\n            throw new Error(\"The HubConnection url must be a valid url.\");\r\n        }\r\n        this.connection.baseUrl = url;\r\n    }\r\n    /** Starts the connection.\r\n     *\r\n     * @returns {Promise<void>} A Promise that resolves when the connection has been successfully established, or rejects with an error.\r\n     */\r\n    start() {\r\n        this._startPromise = this._startWithStateTransitions();\r\n        return this._startPromise;\r\n    }\r\n    async _startWithStateTransitions() {\r\n        if (this._connectionState !== HubConnectionState.Disconnected) {\r\n            return Promise.reject(new Error(\"Cannot start a HubConnection that is not in the 'Disconnected' state.\"));\r\n        }\r\n        this._connectionState = HubConnectionState.Connecting;\r\n        this._logger.log(LogLevel.Debug, \"Starting HubConnection.\");\r\n        try {\r\n            await this._startInternal();\r\n            if (Platform.isBrowser) {\r\n                // Log when the browser freezes the tab so users know why their connection unexpectedly stopped working\r\n                window.document.addEventListener(\"freeze\", this._freezeEventListener);\r\n            }\r\n            this._connectionState = HubConnectionState.Connected;\r\n            this._connectionStarted = true;\r\n            this._logger.log(LogLevel.Debug, \"HubConnection connected successfully.\");\r\n        }\r\n        catch (e) {\r\n            this._connectionState = HubConnectionState.Disconnected;\r\n            this._logger.log(LogLevel.Debug, `HubConnection failed to start successfully because of error '${e}'.`);\r\n            return Promise.reject(e);\r\n        }\r\n    }\r\n    async _startInternal() {\r\n        this._stopDuringStartError = undefined;\r\n        this._receivedHandshakeResponse = false;\r\n        // Set up the promise before any connection is (re)started otherwise it could race with received messages\r\n        const handshakePromise = new Promise((resolve, reject) => {\r\n            this._handshakeResolver = resolve;\r\n            this._handshakeRejecter = reject;\r\n        });\r\n        await this.connection.start(this._protocol.transferFormat);\r\n        try {\r\n            const handshakeRequest = {\r\n                protocol: this._protocol.name,\r\n                version: this._protocol.version,\r\n            };\r\n            this._logger.log(LogLevel.Debug, \"Sending handshake request.\");\r\n            await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(handshakeRequest));\r\n            this._logger.log(LogLevel.Information, `Using HubProtocol '${this._protocol.name}'.`);\r\n            // defensively cleanup timeout in case we receive a message from the server before we finish start\r\n            this._cleanupTimeout();\r\n            this._resetTimeoutPeriod();\r\n            this._resetKeepAliveInterval();\r\n            await handshakePromise;\r\n            // It's important to check the stopDuringStartError instead of just relying on the handshakePromise\r\n            // being rejected on close, because this continuation can run after both the handshake completed successfully\r\n            // and the connection was closed.\r\n            if (this._stopDuringStartError) {\r\n                // It's important to throw instead of returning a rejected promise, because we don't want to allow any state\r\n                // transitions to occur between now and the calling code observing the exceptions. Returning a rejected promise\r\n                // will cause the calling continuation to get scheduled to run later.\r\n                // eslint-disable-next-line @typescript-eslint/no-throw-literal\r\n                throw this._stopDuringStartError;\r\n            }\r\n        }\r\n        catch (e) {\r\n            this._logger.log(LogLevel.Debug, `Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`);\r\n            this._cleanupTimeout();\r\n            this._cleanupPingTimer();\r\n            // HttpConnection.stop() should not complete until after the onclose callback is invoked.\r\n            // This will transition the HubConnection to the disconnected state before HttpConnection.stop() completes.\r\n            await this.connection.stop(e);\r\n            throw e;\r\n        }\r\n    }\r\n    /** Stops the connection.\r\n     *\r\n     * @returns {Promise<void>} A Promise that resolves when the connection has been successfully terminated, or rejects with an error.\r\n     */\r\n    async stop() {\r\n        // Capture the start promise before the connection might be restarted in an onclose callback.\r\n        const startPromise = this._startPromise;\r\n        this._stopPromise = this._stopInternal();\r\n        await this._stopPromise;\r\n        try {\r\n            // Awaiting undefined continues immediately\r\n            await startPromise;\r\n        }\r\n        catch (e) {\r\n            // This exception is returned to the user as a rejected Promise from the start method.\r\n        }\r\n    }\r\n    _stopInternal(error) {\r\n        if (this._connectionState === HubConnectionState.Disconnected) {\r\n            this._logger.log(LogLevel.Debug, `Call to HubConnection.stop(${error}) ignored because it is already in the disconnected state.`);\r\n            return Promise.resolve();\r\n        }\r\n        if (this._connectionState === HubConnectionState.Disconnecting) {\r\n            this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);\r\n            return this._stopPromise;\r\n        }\r\n        this._connectionState = HubConnectionState.Disconnecting;\r\n        this._logger.log(LogLevel.Debug, \"Stopping HubConnection.\");\r\n        if (this._reconnectDelayHandle) {\r\n            // We're in a reconnect delay which means the underlying connection is currently already stopped.\r\n            // Just clear the handle to stop the reconnect loop (which no one is waiting on thankfully) and\r\n            // fire the onclose callbacks.\r\n            this._logger.log(LogLevel.Debug, \"Connection stopped during reconnect delay. Done reconnecting.\");\r\n            clearTimeout(this._reconnectDelayHandle);\r\n            this._reconnectDelayHandle = undefined;\r\n            this._completeClose();\r\n            return Promise.resolve();\r\n        }\r\n        this._cleanupTimeout();\r\n        this._cleanupPingTimer();\r\n        this._stopDuringStartError = error || new Error(\"The connection was stopped before the hub handshake could complete.\");\r\n        // HttpConnection.stop() should not complete until after either HttpConnection.start() fails\r\n        // or the onclose callback is invoked. The onclose callback will transition the HubConnection\r\n        // to the disconnected state if need be before HttpConnection.stop() completes.\r\n        return this.connection.stop(error);\r\n    }\r\n    /** Invokes a streaming hub method on the server using the specified name and arguments.\r\n     *\r\n     * @typeparam T The type of the items returned by the server.\r\n     * @param {string} methodName The name of the server method to invoke.\r\n     * @param {any[]} args The arguments used to invoke the server method.\r\n     * @returns {IStreamResult<T>} An object that yields results from the server as they are received.\r\n     */\r\n    stream(methodName, ...args) {\r\n        const [streams, streamIds] = this._replaceStreamingParams(args);\r\n        const invocationDescriptor = this._createStreamInvocation(methodName, args, streamIds);\r\n        // eslint-disable-next-line prefer-const\r\n        let promiseQueue;\r\n        const subject = new Subject();\r\n        subject.cancelCallback = () => {\r\n            const cancelInvocation = this._createCancelInvocation(invocationDescriptor.invocationId);\r\n            delete this._callbacks[invocationDescriptor.invocationId];\r\n            return promiseQueue.then(() => {\r\n                return this._sendWithProtocol(cancelInvocation);\r\n            });\r\n        };\r\n        this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {\r\n            if (error) {\r\n                subject.error(error);\r\n                return;\r\n            }\r\n            else if (invocationEvent) {\r\n                // invocationEvent will not be null when an error is not passed to the callback\r\n                if (invocationEvent.type === MessageType.Completion) {\r\n                    if (invocationEvent.error) {\r\n                        subject.error(new Error(invocationEvent.error));\r\n                    }\r\n                    else {\r\n                        subject.complete();\r\n                    }\r\n                }\r\n                else {\r\n                    subject.next((invocationEvent.item));\r\n                }\r\n            }\r\n        };\r\n        promiseQueue = this._sendWithProtocol(invocationDescriptor)\r\n            .catch((e) => {\r\n            subject.error(e);\r\n            delete this._callbacks[invocationDescriptor.invocationId];\r\n        });\r\n        this._launchStreams(streams, promiseQueue);\r\n        return subject;\r\n    }\r\n    _sendMessage(message) {\r\n        this._resetKeepAliveInterval();\r\n        return this.connection.send(message);\r\n    }\r\n    /**\r\n     * Sends a js object to the server.\r\n     * @param message The js object to serialize and send.\r\n     */\r\n    _sendWithProtocol(message) {\r\n        return this._sendMessage(this._protocol.writeMessage(message));\r\n    }\r\n    /** Invokes a hub method on the server using the specified name and arguments. Does not wait for a response from the receiver.\r\n     *\r\n     * The Promise returned by this method resolves when the client has sent the invocation to the server. The server may still\r\n     * be processing the invocation.\r\n     *\r\n     * @param {string} methodName The name of the server method to invoke.\r\n     * @param {any[]} args The arguments used to invoke the server method.\r\n     * @returns {Promise<void>} A Promise that resolves when the invocation has been successfully sent, or rejects with an error.\r\n     */\r\n    send(methodName, ...args) {\r\n        const [streams, streamIds] = this._replaceStreamingParams(args);\r\n        const sendPromise = this._sendWithProtocol(this._createInvocation(methodName, args, true, streamIds));\r\n        this._launchStreams(streams, sendPromise);\r\n        return sendPromise;\r\n    }\r\n    /** Invokes a hub method on the server using the specified name and arguments.\r\n     *\r\n     * The Promise returned by this method resolves when the server indicates it has finished invoking the method. When the promise\r\n     * resolves, the server has finished invoking the method. If the server method returns a result, it is produced as the result of\r\n     * resolving the Promise.\r\n     *\r\n     * @typeparam T The expected return type.\r\n     * @param {string} methodName The name of the server method to invoke.\r\n     * @param {any[]} args The arguments used to invoke the server method.\r\n     * @returns {Promise<T>} A Promise that resolves with the result of the server method (if any), or rejects with an error.\r\n     */\r\n    invoke(methodName, ...args) {\r\n        const [streams, streamIds] = this._replaceStreamingParams(args);\r\n        const invocationDescriptor = this._createInvocation(methodName, args, false, streamIds);\r\n        const p = new Promise((resolve, reject) => {\r\n            // invocationId will always have a value for a non-blocking invocation\r\n            this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {\r\n                if (error) {\r\n                    reject(error);\r\n                    return;\r\n                }\r\n                else if (invocationEvent) {\r\n                    // invocationEvent will not be null when an error is not passed to the callback\r\n                    if (invocationEvent.type === MessageType.Completion) {\r\n                        if (invocationEvent.error) {\r\n                            reject(new Error(invocationEvent.error));\r\n                        }\r\n                        else {\r\n                            resolve(invocationEvent.result);\r\n                        }\r\n                    }\r\n                    else {\r\n                        reject(new Error(`Unexpected message type: ${invocationEvent.type}`));\r\n                    }\r\n                }\r\n            };\r\n            const promiseQueue = this._sendWithProtocol(invocationDescriptor)\r\n                .catch((e) => {\r\n                reject(e);\r\n                // invocationId will always have a value for a non-blocking invocation\r\n                delete this._callbacks[invocationDescriptor.invocationId];\r\n            });\r\n            this._launchStreams(streams, promiseQueue);\r\n        });\r\n        return p;\r\n    }\r\n    /** Registers a handler that will be invoked when the hub method with the specified method name is invoked.\r\n     *\r\n     * @param {string} methodName The name of the hub method to define.\r\n     * @param {Function} newMethod The handler that will be raised when the hub method is invoked.\r\n     */\r\n    on(methodName, newMethod) {\r\n        if (!methodName || !newMethod) {\r\n            return;\r\n        }\r\n        methodName = methodName.toLowerCase();\r\n        if (!this._methods[methodName]) {\r\n            this._methods[methodName] = [];\r\n        }\r\n        // Preventing adding the same handler multiple times.\r\n        if (this._methods[methodName].indexOf(newMethod) !== -1) {\r\n            return;\r\n        }\r\n        this._methods[methodName].push(newMethod);\r\n    }\r\n    off(methodName, method) {\r\n        if (!methodName) {\r\n            return;\r\n        }\r\n        methodName = methodName.toLowerCase();\r\n        const handlers = this._methods[methodName];\r\n        if (!handlers) {\r\n            return;\r\n        }\r\n        if (method) {\r\n            const removeIdx = handlers.indexOf(method);\r\n            if (removeIdx !== -1) {\r\n                handlers.splice(removeIdx, 1);\r\n                if (handlers.length === 0) {\r\n                    delete this._methods[methodName];\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            delete this._methods[methodName];\r\n        }\r\n    }\r\n    /** Registers a handler that will be invoked when the connection is closed.\r\n     *\r\n     * @param {Function} callback The handler that will be invoked when the connection is closed. Optionally receives a single argument containing the error that caused the connection to close (if any).\r\n     */\r\n    onclose(callback) {\r\n        if (callback) {\r\n            this._closedCallbacks.push(callback);\r\n        }\r\n    }\r\n    /** Registers a handler that will be invoked when the connection starts reconnecting.\r\n     *\r\n     * @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).\r\n     */\r\n    onreconnecting(callback) {\r\n        if (callback) {\r\n            this._reconnectingCallbacks.push(callback);\r\n        }\r\n    }\r\n    /** Registers a handler that will be invoked when the connection successfully reconnects.\r\n     *\r\n     * @param {Function} callback The handler that will be invoked when the connection successfully reconnects.\r\n     */\r\n    onreconnected(callback) {\r\n        if (callback) {\r\n            this._reconnectedCallbacks.push(callback);\r\n        }\r\n    }\r\n    _processIncomingData(data) {\r\n        this._cleanupTimeout();\r\n        if (!this._receivedHandshakeResponse) {\r\n            data = this._processHandshakeResponse(data);\r\n            this._receivedHandshakeResponse = true;\r\n        }\r\n        // Data may have all been read when processing handshake response\r\n        if (data) {\r\n            // Parse the messages\r\n            const messages = this._protocol.parseMessages(data, this._logger);\r\n            for (const message of messages) {\r\n                switch (message.type) {\r\n                    case MessageType.Invocation:\r\n                        this._invokeClientMethod(message);\r\n                        break;\r\n                    case MessageType.StreamItem:\r\n                    case MessageType.Completion: {\r\n                        const callback = this._callbacks[message.invocationId];\r\n                        if (callback) {\r\n                            if (message.type === MessageType.Completion) {\r\n                                delete this._callbacks[message.invocationId];\r\n                            }\r\n                            try {\r\n                                callback(message);\r\n                            }\r\n                            catch (e) {\r\n                                this._logger.log(LogLevel.Error, `Stream callback threw error: ${getErrorString(e)}`);\r\n                            }\r\n                        }\r\n                        break;\r\n                    }\r\n                    case MessageType.Ping:\r\n                        // Don't care about pings\r\n                        break;\r\n                    case MessageType.Close: {\r\n                        this._logger.log(LogLevel.Information, \"Close message received from server.\");\r\n                        const error = message.error ? new Error(\"Server returned an error on close: \" + message.error) : undefined;\r\n                        if (message.allowReconnect === true) {\r\n                            // It feels wrong not to await connection.stop() here, but processIncomingData is called as part of an onreceive callback which is not async,\r\n                            // this is already the behavior for serverTimeout(), and HttpConnection.Stop() should catch and log all possible exceptions.\r\n                            // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n                            this.connection.stop(error);\r\n                        }\r\n                        else {\r\n                            // We cannot await stopInternal() here, but subsequent calls to stop() will await this if stopInternal() is still ongoing.\r\n                            this._stopPromise = this._stopInternal(error);\r\n                        }\r\n                        break;\r\n                    }\r\n                    default:\r\n                        this._logger.log(LogLevel.Warning, `Invalid message type: ${message.type}.`);\r\n                        break;\r\n                }\r\n            }\r\n        }\r\n        this._resetTimeoutPeriod();\r\n    }\r\n    _processHandshakeResponse(data) {\r\n        let responseMessage;\r\n        let remainingData;\r\n        try {\r\n            [remainingData, responseMessage] = this._handshakeProtocol.parseHandshakeResponse(data);\r\n        }\r\n        catch (e) {\r\n            const message = \"Error parsing handshake response: \" + e;\r\n            this._logger.log(LogLevel.Error, message);\r\n            const error = new Error(message);\r\n            this._handshakeRejecter(error);\r\n            throw error;\r\n        }\r\n        if (responseMessage.error) {\r\n            const message = \"Server returned handshake error: \" + responseMessage.error;\r\n            this._logger.log(LogLevel.Error, message);\r\n            const error = new Error(message);\r\n            this._handshakeRejecter(error);\r\n            throw error;\r\n        }\r\n        else {\r\n            this._logger.log(LogLevel.Debug, \"Server handshake complete.\");\r\n        }\r\n        this._handshakeResolver();\r\n        return remainingData;\r\n    }\r\n    _resetKeepAliveInterval() {\r\n        if (this.connection.features.inherentKeepAlive) {\r\n            return;\r\n        }\r\n        // Set the time we want the next keep alive to be sent\r\n        // Timer will be setup on next message receive\r\n        this._nextKeepAlive = new Date().getTime() + this.keepAliveIntervalInMilliseconds;\r\n        this._cleanupPingTimer();\r\n    }\r\n    _resetTimeoutPeriod() {\r\n        if (!this.connection.features || !this.connection.features.inherentKeepAlive) {\r\n            // Set the timeout timer\r\n            this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds);\r\n            // Set keepAlive timer if there isn't one\r\n            if (this._pingServerHandle === undefined) {\r\n                let nextPing = this._nextKeepAlive - new Date().getTime();\r\n                if (nextPing < 0) {\r\n                    nextPing = 0;\r\n                }\r\n                // The timer needs to be set from a networking callback to avoid Chrome timer throttling from causing timers to run once a minute\r\n                this._pingServerHandle = setTimeout(async () => {\r\n                    if (this._connectionState === HubConnectionState.Connected) {\r\n                        try {\r\n                            await this._sendMessage(this._cachedPingMessage);\r\n                        }\r\n                        catch {\r\n                            // We don't care about the error. It should be seen elsewhere in the client.\r\n                            // The connection is probably in a bad or closed state now, cleanup the timer so it stops triggering\r\n                            this._cleanupPingTimer();\r\n                        }\r\n                    }\r\n                }, nextPing);\r\n            }\r\n        }\r\n    }\r\n    // eslint-disable-next-line @typescript-eslint/naming-convention\r\n    serverTimeout() {\r\n        // The server hasn't talked to us in a while. It doesn't like us anymore ... :(\r\n        // Terminate the connection, but we don't need to wait on the promise. This could trigger reconnecting.\r\n        // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n        this.connection.stop(new Error(\"Server timeout elapsed without receiving a message from the server.\"));\r\n    }\r\n    _invokeClientMethod(invocationMessage) {\r\n        const methods = this._methods[invocationMessage.target.toLowerCase()];\r\n        if (methods) {\r\n            try {\r\n                methods.forEach((m) => m.apply(this, invocationMessage.arguments));\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `A callback for the method ${invocationMessage.target.toLowerCase()} threw error '${e}'.`);\r\n            }\r\n            if (invocationMessage.invocationId) {\r\n                // This is not supported in v1. So we return an error to avoid blocking the server waiting for the response.\r\n                const message = \"Server requested a response, which is not supported in this version of the client.\";\r\n                this._logger.log(LogLevel.Error, message);\r\n                // We don't want to wait on the stop itself.\r\n                this._stopPromise = this._stopInternal(new Error(message));\r\n            }\r\n        }\r\n        else {\r\n            this._logger.log(LogLevel.Warning, `No client method with the name '${invocationMessage.target}' found.`);\r\n        }\r\n    }\r\n    _connectionClosed(error) {\r\n        this._logger.log(LogLevel.Debug, `HubConnection.connectionClosed(${error}) called while in state ${this._connectionState}.`);\r\n        // Triggering this.handshakeRejecter is insufficient because it could already be resolved without the continuation having run yet.\r\n        this._stopDuringStartError = this._stopDuringStartError || error || new Error(\"The underlying connection was closed before the hub handshake could complete.\");\r\n        // If the handshake is in progress, start will be waiting for the handshake promise, so we complete it.\r\n        // If it has already completed, this should just noop.\r\n        if (this._handshakeResolver) {\r\n            this._handshakeResolver();\r\n        }\r\n        this._cancelCallbacksWithError(error || new Error(\"Invocation canceled due to the underlying connection being closed.\"));\r\n        this._cleanupTimeout();\r\n        this._cleanupPingTimer();\r\n        if (this._connectionState === HubConnectionState.Disconnecting) {\r\n            this._completeClose(error);\r\n        }\r\n        else if (this._connectionState === HubConnectionState.Connected && this._reconnectPolicy) {\r\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n            this._reconnect(error);\r\n        }\r\n        else if (this._connectionState === HubConnectionState.Connected) {\r\n            this._completeClose(error);\r\n        }\r\n        // If none of the above if conditions were true were called the HubConnection must be in either:\r\n        // 1. The Connecting state in which case the handshakeResolver will complete it and stopDuringStartError will fail it.\r\n        // 2. The Reconnecting state in which case the handshakeResolver will complete it and stopDuringStartError will fail the current reconnect attempt\r\n        //    and potentially continue the reconnect() loop.\r\n        // 3. The Disconnected state in which case we're already done.\r\n    }\r\n    _completeClose(error) {\r\n        if (this._connectionStarted) {\r\n            this._connectionState = HubConnectionState.Disconnected;\r\n            this._connectionStarted = false;\r\n            if (Platform.isBrowser) {\r\n                window.document.removeEventListener(\"freeze\", this._freezeEventListener);\r\n            }\r\n            try {\r\n                this._closedCallbacks.forEach((c) => c.apply(this, [error]));\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `An onclose callback called with error '${error}' threw error '${e}'.`);\r\n            }\r\n        }\r\n    }\r\n    async _reconnect(error) {\r\n        const reconnectStartTime = Date.now();\r\n        let previousReconnectAttempts = 0;\r\n        let retryError = error !== undefined ? error : new Error(\"Attempting to reconnect due to a unknown error.\");\r\n        let nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, 0, retryError);\r\n        if (nextRetryDelay === null) {\r\n            this._logger.log(LogLevel.Debug, \"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt.\");\r\n            this._completeClose(error);\r\n            return;\r\n        }\r\n        this._connectionState = HubConnectionState.Reconnecting;\r\n        if (error) {\r\n            this._logger.log(LogLevel.Information, `Connection reconnecting because of error '${error}'.`);\r\n        }\r\n        else {\r\n            this._logger.log(LogLevel.Information, \"Connection reconnecting.\");\r\n        }\r\n        if (this._reconnectingCallbacks.length !== 0) {\r\n            try {\r\n                this._reconnectingCallbacks.forEach((c) => c.apply(this, [error]));\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `An onreconnecting callback called with error '${error}' threw error '${e}'.`);\r\n            }\r\n            // Exit early if an onreconnecting callback called connection.stop().\r\n            if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n                this._logger.log(LogLevel.Debug, \"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.\");\r\n                return;\r\n            }\r\n        }\r\n        while (nextRetryDelay !== null) {\r\n            this._logger.log(LogLevel.Information, `Reconnect attempt number ${previousReconnectAttempts} will start in ${nextRetryDelay} ms.`);\r\n            await new Promise((resolve) => {\r\n                this._reconnectDelayHandle = setTimeout(resolve, nextRetryDelay);\r\n            });\r\n            this._reconnectDelayHandle = undefined;\r\n            if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n                this._logger.log(LogLevel.Debug, \"Connection left the reconnecting state during reconnect delay. Done reconnecting.\");\r\n                return;\r\n            }\r\n            try {\r\n                await this._startInternal();\r\n                this._connectionState = HubConnectionState.Connected;\r\n                this._logger.log(LogLevel.Information, \"HubConnection reconnected successfully.\");\r\n                if (this._reconnectedCallbacks.length !== 0) {\r\n                    try {\r\n                        this._reconnectedCallbacks.forEach((c) => c.apply(this, [this.connection.connectionId]));\r\n                    }\r\n                    catch (e) {\r\n                        this._logger.log(LogLevel.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`);\r\n                    }\r\n                }\r\n                return;\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Information, `Reconnect attempt failed because of error '${e}'.`);\r\n                if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n                    this._logger.log(LogLevel.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`);\r\n                    // The TypeScript compiler thinks that connectionState must be Connected here. The TypeScript compiler is wrong.\r\n                    if (this._connectionState === HubConnectionState.Disconnecting) {\r\n                        this._completeClose();\r\n                    }\r\n                    return;\r\n                }\r\n                retryError = e instanceof Error ? e : new Error(e.toString());\r\n                nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, Date.now() - reconnectStartTime, retryError);\r\n            }\r\n        }\r\n        this._logger.log(LogLevel.Information, `Reconnect retries have been exhausted after ${Date.now() - reconnectStartTime} ms and ${previousReconnectAttempts} failed attempts. Connection disconnecting.`);\r\n        this._completeClose();\r\n    }\r\n    _getNextRetryDelay(previousRetryCount, elapsedMilliseconds, retryReason) {\r\n        try {\r\n            return this._reconnectPolicy.nextRetryDelayInMilliseconds({\r\n                elapsedMilliseconds,\r\n                previousRetryCount,\r\n                retryReason,\r\n            });\r\n        }\r\n        catch (e) {\r\n            this._logger.log(LogLevel.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${previousRetryCount}, ${elapsedMilliseconds}) threw error '${e}'.`);\r\n            return null;\r\n        }\r\n    }\r\n    _cancelCallbacksWithError(error) {\r\n        const callbacks = this._callbacks;\r\n        this._callbacks = {};\r\n        Object.keys(callbacks)\r\n            .forEach((key) => {\r\n            const callback = callbacks[key];\r\n            try {\r\n                callback(null, error);\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `Stream 'error' callback called with '${error}' threw error: ${getErrorString(e)}`);\r\n            }\r\n        });\r\n    }\r\n    _cleanupPingTimer() {\r\n        if (this._pingServerHandle) {\r\n            clearTimeout(this._pingServerHandle);\r\n            this._pingServerHandle = undefined;\r\n        }\r\n    }\r\n    _cleanupTimeout() {\r\n        if (this._timeoutHandle) {\r\n            clearTimeout(this._timeoutHandle);\r\n        }\r\n    }\r\n    _createInvocation(methodName, args, nonblocking, streamIds) {\r\n        if (nonblocking) {\r\n            if (streamIds.length !== 0) {\r\n                return {\r\n                    arguments: args,\r\n                    streamIds,\r\n                    target: methodName,\r\n                    type: MessageType.Invocation,\r\n                };\r\n            }\r\n            else {\r\n                return {\r\n                    arguments: args,\r\n                    target: methodName,\r\n                    type: MessageType.Invocation,\r\n                };\r\n            }\r\n        }\r\n        else {\r\n            const invocationId = this._invocationId;\r\n            this._invocationId++;\r\n            if (streamIds.length !== 0) {\r\n                return {\r\n                    arguments: args,\r\n                    invocationId: invocationId.toString(),\r\n                    streamIds,\r\n                    target: methodName,\r\n                    type: MessageType.Invocation,\r\n                };\r\n            }\r\n            else {\r\n                return {\r\n                    arguments: args,\r\n                    invocationId: invocationId.toString(),\r\n                    target: methodName,\r\n                    type: MessageType.Invocation,\r\n                };\r\n            }\r\n        }\r\n    }\r\n    _launchStreams(streams, promiseQueue) {\r\n        if (streams.length === 0) {\r\n            return;\r\n        }\r\n        // Synchronize stream data so they arrive in-order on the server\r\n        if (!promiseQueue) {\r\n            promiseQueue = Promise.resolve();\r\n        }\r\n        // We want to iterate over the keys, since the keys are the stream ids\r\n        // eslint-disable-next-line guard-for-in\r\n        for (const streamId in streams) {\r\n            streams[streamId].subscribe({\r\n                complete: () => {\r\n                    promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId)));\r\n                },\r\n                error: (err) => {\r\n                    let message;\r\n                    if (err instanceof Error) {\r\n                        message = err.message;\r\n                    }\r\n                    else if (err && err.toString) {\r\n                        message = err.toString();\r\n                    }\r\n                    else {\r\n                        message = \"Unknown error\";\r\n                    }\r\n                    promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId, message)));\r\n                },\r\n                next: (item) => {\r\n                    promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createStreamItemMessage(streamId, item)));\r\n                },\r\n            });\r\n        }\r\n    }\r\n    _replaceStreamingParams(args) {\r\n        const streams = [];\r\n        const streamIds = [];\r\n        for (let i = 0; i < args.length; i++) {\r\n            const argument = args[i];\r\n            if (this._isObservable(argument)) {\r\n                const streamId = this._invocationId;\r\n                this._invocationId++;\r\n                // Store the stream for later use\r\n                streams[streamId] = argument;\r\n                streamIds.push(streamId.toString());\r\n                // remove stream from args\r\n                args.splice(i, 1);\r\n            }\r\n        }\r\n        return [streams, streamIds];\r\n    }\r\n    _isObservable(arg) {\r\n        // This allows other stream implementations to just work (like rxjs)\r\n        return arg && arg.subscribe && typeof arg.subscribe === \"function\";\r\n    }\r\n    _createStreamInvocation(methodName, args, streamIds) {\r\n        const invocationId = this._invocationId;\r\n        this._invocationId++;\r\n        if (streamIds.length !== 0) {\r\n            return {\r\n                arguments: args,\r\n                invocationId: invocationId.toString(),\r\n                streamIds,\r\n                target: methodName,\r\n                type: MessageType.StreamInvocation,\r\n            };\r\n        }\r\n        else {\r\n            return {\r\n                arguments: args,\r\n                invocationId: invocationId.toString(),\r\n                target: methodName,\r\n                type: MessageType.StreamInvocation,\r\n            };\r\n        }\r\n    }\r\n    _createCancelInvocation(id) {\r\n        return {\r\n            invocationId: id,\r\n            type: MessageType.CancelInvocation,\r\n        };\r\n    }\r\n    _createStreamItemMessage(id, item) {\r\n        return {\r\n            invocationId: id,\r\n            item,\r\n            type: MessageType.StreamItem,\r\n        };\r\n    }\r\n    _createCompletionMessage(id, error, result) {\r\n        if (error) {\r\n            return {\r\n                error,\r\n                invocationId: id,\r\n                type: MessageType.Completion,\r\n            };\r\n        }\r\n        return {\r\n            invocationId: id,\r\n            result,\r\n            type: MessageType.Completion,\r\n        };\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Defines the type of a Hub Message. */\r\nexport var MessageType;\r\n(function (MessageType) {\r\n    /** Indicates the message is an Invocation message and implements the {@link @microsoft/signalr.InvocationMessage} interface. */\r\n    MessageType[MessageType[\"Invocation\"] = 1] = \"Invocation\";\r\n    /** Indicates the message is a StreamItem message and implements the {@link @microsoft/signalr.StreamItemMessage} interface. */\r\n    MessageType[MessageType[\"StreamItem\"] = 2] = \"StreamItem\";\r\n    /** Indicates the message is a Completion message and implements the {@link @microsoft/signalr.CompletionMessage} interface. */\r\n    MessageType[MessageType[\"Completion\"] = 3] = \"Completion\";\r\n    /** Indicates the message is a Stream Invocation message and implements the {@link @microsoft/signalr.StreamInvocationMessage} interface. */\r\n    MessageType[MessageType[\"StreamInvocation\"] = 4] = \"StreamInvocation\";\r\n    /** Indicates the message is a Cancel Invocation message and implements the {@link @microsoft/signalr.CancelInvocationMessage} interface. */\r\n    MessageType[MessageType[\"CancelInvocation\"] = 5] = \"CancelInvocation\";\r\n    /** Indicates the message is a Ping message and implements the {@link @microsoft/signalr.PingMessage} interface. */\r\n    MessageType[MessageType[\"Ping\"] = 6] = \"Ping\";\r\n    /** Indicates the message is a Close message and implements the {@link @microsoft/signalr.CloseMessage} interface. */\r\n    MessageType[MessageType[\"Close\"] = 7] = \"Close\";\r\n})(MessageType || (MessageType = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here.\r\n/** Indicates the severity of a log message.\r\n *\r\n * Log Levels are ordered in increasing severity. So `Debug` is more severe than `Trace`, etc.\r\n */\r\nexport var LogLevel;\r\n(function (LogLevel) {\r\n    /** Log level for very low severity diagnostic messages. */\r\n    LogLevel[LogLevel[\"Trace\"] = 0] = \"Trace\";\r\n    /** Log level for low severity diagnostic messages. */\r\n    LogLevel[LogLevel[\"Debug\"] = 1] = \"Debug\";\r\n    /** Log level for informational diagnostic messages. */\r\n    LogLevel[LogLevel[\"Information\"] = 2] = \"Information\";\r\n    /** Log level for diagnostic messages that indicate a non-fatal problem. */\r\n    LogLevel[LogLevel[\"Warning\"] = 3] = \"Warning\";\r\n    /** Log level for diagnostic messages that indicate a failure in the current operation. */\r\n    LogLevel[LogLevel[\"Error\"] = 4] = \"Error\";\r\n    /** Log level for diagnostic messages that indicate a failure that will terminate the entire application. */\r\n    LogLevel[LogLevel[\"Critical\"] = 5] = \"Critical\";\r\n    /** The highest possible log level. Used when configuring logging to indicate that no log messages should be emitted. */\r\n    LogLevel[LogLevel[\"None\"] = 6] = \"None\";\r\n})(LogLevel || (LogLevel = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** A logger that does nothing when log messages are sent to it. */\r\nexport class NullLogger {\r\n    constructor() { }\r\n    /** @inheritDoc */\r\n    // eslint-disable-next-line\r\n    log(_logLevel, _message) {\r\n    }\r\n}\r\n/** The singleton instance of the {@link @microsoft/signalr.NullLogger}. */\r\nNullLogger.instance = new NullLogger();\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// Not exported from index\r\n/** @private */\r\nexport class TextMessageFormat {\r\n    static write(output) {\r\n        return `${output}${TextMessageFormat.RecordSeparator}`;\r\n    }\r\n    static parse(input) {\r\n        if (input[input.length - 1] !== TextMessageFormat.RecordSeparator) {\r\n            throw new Error(\"Message is incomplete.\");\r\n        }\r\n        const messages = input.split(TextMessageFormat.RecordSeparator);\r\n        messages.pop();\r\n        return messages;\r\n    }\r\n}\r\nTextMessageFormat.RecordSeparatorCode = 0x1e;\r\nTextMessageFormat.RecordSeparator = String.fromCharCode(TextMessageFormat.RecordSeparatorCode);\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { NullLogger } from \"./Loggers\";\r\n// Version token that will be replaced by the prepack command\r\n/** The version of the SignalR client. */\r\nexport const VERSION = \"6.0.25\";\r\n/** @private */\r\nexport class Arg {\r\n    static isRequired(val, name) {\r\n        if (val === null || val === undefined) {\r\n            throw new Error(`The '${name}' argument is required.`);\r\n        }\r\n    }\r\n    static isNotEmpty(val, name) {\r\n        if (!val || val.match(/^\\s*$/)) {\r\n            throw new Error(`The '${name}' argument should not be empty.`);\r\n        }\r\n    }\r\n    static isIn(val, values, name) {\r\n        // TypeScript enums have keys for **both** the name and the value of each enum member on the type itself.\r\n        if (!(val in values)) {\r\n            throw new Error(`Unknown ${name} value: ${val}.`);\r\n        }\r\n    }\r\n}\r\n/** @private */\r\nexport class Platform {\r\n    // react-native has a window but no document so we should check both\r\n    static get isBrowser() {\r\n        return typeof window === \"object\" && typeof window.document === \"object\";\r\n    }\r\n    // WebWorkers don't have a window object so the isBrowser check would fail\r\n    static get isWebWorker() {\r\n        return typeof self === \"object\" && \"importScripts\" in self;\r\n    }\r\n    // react-native has a window but no document\r\n    static get isReactNative() {\r\n        return typeof window === \"object\" && typeof window.document === \"undefined\";\r\n    }\r\n    // Node apps shouldn't have a window object, but WebWorkers don't either\r\n    // so we need to check for both WebWorker and window\r\n    static get isNode() {\r\n        return !this.isBrowser && !this.isWebWorker && !this.isReactNative;\r\n    }\r\n}\r\n/** @private */\r\nexport function getDataDetail(data, includeContent) {\r\n    let detail = \"\";\r\n    if (isArrayBuffer(data)) {\r\n        detail = `Binary data of length ${data.byteLength}`;\r\n        if (includeContent) {\r\n            detail += `. Content: '${formatArrayBuffer(data)}'`;\r\n        }\r\n    }\r\n    else if (typeof data === \"string\") {\r\n        detail = `String data of length ${data.length}`;\r\n        if (includeContent) {\r\n            detail += `. Content: '${data}'`;\r\n        }\r\n    }\r\n    return detail;\r\n}\r\n/** @private */\r\nexport function formatArrayBuffer(data) {\r\n    const view = new Uint8Array(data);\r\n    // Uint8Array.map only supports returning another Uint8Array?\r\n    let str = \"\";\r\n    view.forEach((num) => {\r\n        const pad = num < 16 ? \"0\" : \"\";\r\n        str += `0x${pad}${num.toString(16)} `;\r\n    });\r\n    // Trim of trailing space.\r\n    return str.substr(0, str.length - 1);\r\n}\r\n// Also in signalr-protocol-msgpack/Utils.ts\r\n/** @private */\r\nexport function isArrayBuffer(val) {\r\n    return val && typeof ArrayBuffer !== \"undefined\" &&\r\n        (val instanceof ArrayBuffer ||\r\n            // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof\r\n            (val.constructor && val.constructor.name === \"ArrayBuffer\"));\r\n}\r\n/** @private */\r\nexport async function sendMessage(logger, transportName, httpClient, url, accessTokenFactory, content, options) {\r\n    let headers = {};\r\n    if (accessTokenFactory) {\r\n        const token = await accessTokenFactory();\r\n        if (token) {\r\n            headers = {\r\n                [\"Authorization\"]: `Bearer ${token}`,\r\n            };\r\n        }\r\n    }\r\n    const [name, value] = getUserAgentHeader();\r\n    headers[name] = value;\r\n    logger.log(LogLevel.Trace, `(${transportName} transport) sending data. ${getDataDetail(content, options.logMessageContent)}.`);\r\n    const responseType = isArrayBuffer(content) ? \"arraybuffer\" : \"text\";\r\n    const response = await httpClient.post(url, {\r\n        content,\r\n        headers: { ...headers, ...options.headers },\r\n        responseType,\r\n        timeout: options.timeout,\r\n        withCredentials: options.withCredentials,\r\n    });\r\n    logger.log(LogLevel.Trace, `(${transportName} transport) request complete. Response status: ${response.statusCode}.`);\r\n}\r\n/** @private */\r\nexport function createLogger(logger) {\r\n    if (logger === undefined) {\r\n        return new ConsoleLogger(LogLevel.Information);\r\n    }\r\n    if (logger === null) {\r\n        return NullLogger.instance;\r\n    }\r\n    if (logger.log !== undefined) {\r\n        return logger;\r\n    }\r\n    return new ConsoleLogger(logger);\r\n}\r\n/** @private */\r\nexport class SubjectSubscription {\r\n    constructor(subject, observer) {\r\n        this._subject = subject;\r\n        this._observer = observer;\r\n    }\r\n    dispose() {\r\n        const index = this._subject.observers.indexOf(this._observer);\r\n        if (index > -1) {\r\n            this._subject.observers.splice(index, 1);\r\n        }\r\n        if (this._subject.observers.length === 0 && this._subject.cancelCallback) {\r\n            this._subject.cancelCallback().catch((_) => { });\r\n        }\r\n    }\r\n}\r\n/** @private */\r\nexport class ConsoleLogger {\r\n    constructor(minimumLogLevel) {\r\n        this._minLevel = minimumLogLevel;\r\n        this.out = console;\r\n    }\r\n    log(logLevel, message) {\r\n        if (logLevel >= this._minLevel) {\r\n            const msg = `[${new Date().toISOString()}] ${LogLevel[logLevel]}: ${message}`;\r\n            switch (logLevel) {\r\n                case LogLevel.Critical:\r\n                case LogLevel.Error:\r\n                    this.out.error(msg);\r\n                    break;\r\n                case LogLevel.Warning:\r\n                    this.out.warn(msg);\r\n                    break;\r\n                case LogLevel.Information:\r\n                    this.out.info(msg);\r\n                    break;\r\n                default:\r\n                    // console.debug only goes to attached debuggers in Node, so we use console.log for Trace and Debug\r\n                    this.out.log(msg);\r\n                    break;\r\n            }\r\n        }\r\n    }\r\n}\r\n/** @private */\r\nexport function getUserAgentHeader() {\r\n    let userAgentHeaderName = \"X-SignalR-User-Agent\";\r\n    if (Platform.isNode) {\r\n        userAgentHeaderName = \"User-Agent\";\r\n    }\r\n    return [userAgentHeaderName, constructUserAgent(VERSION, getOsName(), getRuntime(), getRuntimeVersion())];\r\n}\r\n/** @private */\r\nexport function constructUserAgent(version, os, runtime, runtimeVersion) {\r\n    // Microsoft SignalR/[Version] ([Detailed Version]; [Operating System]; [Runtime]; [Runtime Version])\r\n    let userAgent = \"Microsoft SignalR/\";\r\n    const majorAndMinor = version.split(\".\");\r\n    userAgent += `${majorAndMinor[0]}.${majorAndMinor[1]}`;\r\n    userAgent += ` (${version}; `;\r\n    if (os && os !== \"\") {\r\n        userAgent += `${os}; `;\r\n    }\r\n    else {\r\n        userAgent += \"Unknown OS; \";\r\n    }\r\n    userAgent += `${runtime}`;\r\n    if (runtimeVersion) {\r\n        userAgent += `; ${runtimeVersion}`;\r\n    }\r\n    else {\r\n        userAgent += \"; Unknown Runtime Version\";\r\n    }\r\n    userAgent += \")\";\r\n    return userAgent;\r\n}\r\n// eslint-disable-next-line spaced-comment\r\n/*#__PURE__*/ function getOsName() {\r\n    if (Platform.isNode) {\r\n        switch (process.platform) {\r\n            case \"win32\":\r\n                return \"Windows NT\";\r\n            case \"darwin\":\r\n                return \"macOS\";\r\n            case \"linux\":\r\n                return \"Linux\";\r\n            default:\r\n                return process.platform;\r\n        }\r\n    }\r\n    else {\r\n        return \"\";\r\n    }\r\n}\r\n// eslint-disable-next-line spaced-comment\r\n/*#__PURE__*/ function getRuntimeVersion() {\r\n    if (Platform.isNode) {\r\n        return process.versions.node;\r\n    }\r\n    return undefined;\r\n}\r\nfunction getRuntime() {\r\n    if (Platform.isNode) {\r\n        return \"NodeJS\";\r\n    }\r\n    else {\r\n        return \"Browser\";\r\n    }\r\n}\r\n/** @private */\r\nexport function getErrorString(e) {\r\n    if (e.stack) {\r\n        return e.stack;\r\n    }\r\n    else if (e.message) {\r\n        return e.message;\r\n    }\r\n    return `${e}`;\r\n}\r\n/** @private */\r\nexport function getGlobalThis() {\r\n    // globalThis is semi-new and not available in Node until v12\r\n    if (typeof globalThis !== \"undefined\") {\r\n        return globalThis;\r\n    }\r\n    if (typeof self !== \"undefined\") {\r\n        return self;\r\n    }\r\n    if (typeof window !== \"undefined\") {\r\n        return window;\r\n    }\r\n    if (typeof global !== \"undefined\") {\r\n        return global;\r\n    }\r\n    throw new Error(\"could not find global\");\r\n}\r\n","import defaultLocale from \"../../locale/en-US/index.js\";\nexport default defaultLocale;","var defaultOptions = {};\nexport function getDefaultOptions() {\n  return defaultOptions;\n}\nexport function setDefaultOptions(newOptions) {\n  defaultOptions = newOptions;\n}","var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {\n  switch (pattern) {\n    case 'P':\n      return formatLong.date({\n        width: 'short'\n      });\n    case 'PP':\n      return formatLong.date({\n        width: 'medium'\n      });\n    case 'PPP':\n      return formatLong.date({\n        width: 'long'\n      });\n    case 'PPPP':\n    default:\n      return formatLong.date({\n        width: 'full'\n      });\n  }\n};\nvar timeLongFormatter = function timeLongFormatter(pattern, formatLong) {\n  switch (pattern) {\n    case 'p':\n      return formatLong.time({\n        width: 'short'\n      });\n    case 'pp':\n      return formatLong.time({\n        width: 'medium'\n      });\n    case 'ppp':\n      return formatLong.time({\n        width: 'long'\n      });\n    case 'pppp':\n    default:\n      return formatLong.time({\n        width: 'full'\n      });\n  }\n};\nvar dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {\n  var matchResult = pattern.match(/(P+)(p+)?/) || [];\n  var datePattern = matchResult[1];\n  var timePattern = matchResult[2];\n  if (!timePattern) {\n    return dateLongFormatter(pattern, formatLong);\n  }\n  var dateTimeFormat;\n  switch (datePattern) {\n    case 'P':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'short'\n      });\n      break;\n    case 'PP':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'medium'\n      });\n      break;\n    case 'PPP':\n      dateTimeFormat = formatLong.dateTime({\n        width: 'long'\n      });\n      break;\n    case 'PPPP':\n    default:\n      dateTimeFormat = formatLong.dateTime({\n        width: 'full'\n      });\n      break;\n  }\n  return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\n};\nvar longFormatters = {\n  p: timeLongFormatter,\n  P: dateTimeLongFormatter\n};\nexport default longFormatters;","/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport default function getTimezoneOffsetInMilliseconds(date) {\n  var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n  utcDate.setUTCFullYear(date.getFullYear());\n  return date.getTime() - utcDate.getTime();\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nexport default function getUTCISOWeekYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var year = date.getUTCFullYear();\n  var fourthOfJanuaryOfNextYear = new Date(0);\n  fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n  fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n  var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\n  var fourthOfJanuaryOfThisYear = new Date(0);\n  fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n  fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n  var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\n  if (date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}","import getUTCISOWeekYear from \"../getUTCISOWeekYear/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeekYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var year = getUTCISOWeekYear(dirtyDate);\n  var fourthOfJanuary = new Date(0);\n  fourthOfJanuary.setUTCFullYear(year, 0, 4);\n  fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n  var date = startOfUTCISOWeek(fourthOfJanuary);\n  return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCISOWeek from \"../startOfUTCISOWeek/index.js\";\nimport startOfUTCISOWeekYear from \"../startOfUTCISOWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCISOWeek(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();\n\n  // Round the number of days to the nearest integer\n  // because the number of milliseconds in a week is not constant\n  // (e.g. it's different in the week of the daylight saving time clock shift)\n  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function getUTCWeekYear(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var year = date.getUTCFullYear();\n  var defaultOptions = getDefaultOptions();\n  var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n\n  // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n  var firstWeekOfNextYear = new Date(0);\n  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\n  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\n  var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);\n  var firstWeekOfThisYear = new Date(0);\n  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\n  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\n  var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);\n  if (date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}","import getUTCWeekYear from \"../getUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeekYear(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var defaultOptions = getDefaultOptions();\n  var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n  var year = getUTCWeekYear(dirtyDate, options);\n  var firstWeek = new Date(0);\n  firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\n  firstWeek.setUTCHours(0, 0, 0, 0);\n  var date = startOfUTCWeek(firstWeek, options);\n  return date;\n}","import toDate from \"../../toDate/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nimport startOfUTCWeekYear from \"../startOfUTCWeekYear/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\nexport default function getUTCWeek(dirtyDate, options) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();\n\n  // Round the number of days to the nearest integer\n  // because the number of milliseconds in a week is not constant\n  // (e.g. it's different in the week of the daylight saving time clock shift)\n  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n  return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n  return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n  if (token === 'YYYY') {\n    throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n  } else if (token === 'YY') {\n    throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n  } else if (token === 'D') {\n    throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n  } else if (token === 'DD') {\n    throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n  }\n}","export default function requiredArgs(required, args) {\n  if (args.length < required) {\n    throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n  }\n}","var roundingMap = {\n  ceil: Math.ceil,\n  round: Math.round,\n  floor: Math.floor,\n  trunc: function trunc(value) {\n    return value < 0 ? Math.ceil(value) : Math.floor(value);\n  } // Math.trunc is not supported by IE\n};\n\nvar defaultRoundingMethod = 'trunc';\nexport function getRoundingMethod(method) {\n  return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function startOfUTCISOWeek(dirtyDate) {\n  requiredArgs(1, arguments);\n  var weekStartsOn = 1;\n  var date = toDate(dirtyDate);\n  var day = date.getUTCDay();\n  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n  date.setUTCDate(date.getUTCDate() - diff);\n  date.setUTCHours(0, 0, 0, 0);\n  return date;\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function startOfUTCWeek(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var defaultOptions = getDefaultOptions();\n  var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  var date = toDate(dirtyDate);\n  var day = date.getUTCDay();\n  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n  date.setUTCDate(date.getUTCDate() - diff);\n  date.setUTCHours(0, 0, 0, 0);\n  return date;\n}","export default function toInteger(dirtyNumber) {\n  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n    return NaN;\n  }\n  var number = Number(dirtyNumber);\n  if (isNaN(number)) {\n    return number;\n  }\n  return number < 0 ? Math.ceil(number) : Math.floor(number);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} - the new date with the days added\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport default function addDays(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var date = toDate(dirtyDate);\n  var amount = toInteger(dirtyAmount);\n  if (isNaN(amount)) {\n    return new Date(NaN);\n  }\n  if (!amount) {\n    // If 0 days, no-op to avoid changing times in the hour before end of DST\n    return date;\n  }\n  date.setDate(date.getDate() + amount);\n  return date;\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var timestamp = toDate(dirtyDate).getTime();\n  var amount = toInteger(dirtyAmount);\n  return new Date(timestamp + amount);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the months added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n */\nexport default function addMonths(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var date = toDate(dirtyDate);\n  var amount = toInteger(dirtyAmount);\n  if (isNaN(amount)) {\n    return new Date(NaN);\n  }\n  if (!amount) {\n    // If 0 months, no-op to avoid changing times in the hour before end of DST\n    return date;\n  }\n  var dayOfMonth = date.getDate();\n\n  // The JS Date object supports date math by accepting out-of-bounds values for\n  // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n  // new Date(2020, 13, 1) returns 1 Feb 2021.  This is *almost* the behavior we\n  // want except that dates will wrap around the end of a month, meaning that\n  // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n  // we'll default to the end of the desired month by adding 1 to the desired\n  // month and using a date of 0 to back up one day to the end of the desired\n  // month.\n  var endOfDesiredMonth = new Date(date.getTime());\n  endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);\n  var daysInMonth = endOfDesiredMonth.getDate();\n  if (dayOfMonth >= daysInMonth) {\n    // If we're already at the end of the month, then this is the correct date\n    // and we're done.\n    return endOfDesiredMonth;\n  } else {\n    // Otherwise, we now know that setting the original day-of-month value won't\n    // cause an overflow, so set the desired day-of-month. Note that we can't\n    // just set the date of `endOfDesiredMonth` because that object may have had\n    // its time changed in the unusual case where where a DST transition was on\n    // the last day of the month and its local time was in the hour skipped or\n    // repeated next to a DST transition.  So we use `date` instead which is\n    // guaranteed to still have the original time.\n    date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);\n    return date;\n  }\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of week to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the weeks added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport default function addWeeks(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  var days = amount * 7;\n  return addDays(dirtyDate, days);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMonths from \"../addMonths/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the years added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport default function addYears(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addMonths(dirtyDate, amount * 12);\n}","/**\n * Days in 1 week.\n *\n * @name daysInWeek\n * @constant\n * @type {number}\n * @default\n */\nexport var daysInWeek = 7;\n\n/**\n * Days in 1 year\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n *\n * @name daysInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var daysInYear = 365.2425;\n\n/**\n * Maximum allowed time.\n *\n * @name maxTime\n * @constant\n * @type {number}\n * @default\n */\nexport var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * Milliseconds in 1 minute\n *\n * @name millisecondsInMinute\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInMinute = 60000;\n\n/**\n * Milliseconds in 1 hour\n *\n * @name millisecondsInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInHour = 3600000;\n\n/**\n * Milliseconds in 1 second\n *\n * @name millisecondsInSecond\n * @constant\n * @type {number}\n * @default\n */\nexport var millisecondsInSecond = 1000;\n\n/**\n * Minimum allowed time.\n *\n * @name minTime\n * @constant\n * @type {number}\n * @default\n */\nexport var minTime = -maxTime;\n\n/**\n * Minutes in 1 hour\n *\n * @name minutesInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var minutesInHour = 60;\n\n/**\n * Months in 1 quarter\n *\n * @name monthsInQuarter\n * @constant\n * @type {number}\n * @default\n */\nexport var monthsInQuarter = 3;\n\n/**\n * Months in 1 year\n *\n * @name monthsInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var monthsInYear = 12;\n\n/**\n * Quarters in 1 year\n *\n * @name quartersInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var quartersInYear = 4;\n\n/**\n * Seconds in 1 hour\n *\n * @name secondsInHour\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInHour = 3600;\n\n/**\n * Seconds in 1 minute\n *\n * @name secondsInMinute\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInMinute = 60;\n\n/**\n * Seconds in 1 day\n *\n * @name secondsInDay\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInDay = secondsInHour * 24;\n\n/**\n * Seconds in 1 week\n *\n * @name secondsInWeek\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInWeek = secondsInDay * 7;\n\n/**\n * Seconds in 1 year\n *\n * @name secondsInYear\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInYear = secondsInDay * daysInYear;\n\n/**\n * Seconds in 1 month\n *\n * @name secondsInMonth\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInMonth = secondsInYear / 12;\n\n/**\n * Seconds in 1 quarter\n *\n * @name secondsInQuarter\n * @constant\n * @type {number}\n * @default\n */\nexport var secondsInQuarter = secondsInMonth * 3;","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n *   new Date(2014, 6, 2, 12, 30, 21, 700),\n *   new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport default function differenceInMilliseconds(dateLeft, dateRight) {\n  requiredArgs(2, arguments);\n  return toDate(dateLeft).getTime() - toDate(dateRight).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport default function endOfDay(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  date.setHours(23, 59, 59, 999);\n  return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport default function endOfMonth(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var month = date.getMonth();\n  date.setFullYear(date.getFullYear(), month + 1, 0);\n  date.setHours(23, 59, 59, 999);\n  return date;\n}","import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the end of a week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport default function endOfWeek(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var defaultOptions = getDefaultOptions();\n  var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  var date = toDate(dirtyDate);\n  var day = date.getDay();\n  var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n  date.setDate(date.getDate() + diff);\n  date.setHours(23, 59, 59, 999);\n  return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfYear\n * @category Year Helpers\n * @summary Return the end of a year for the given date.\n *\n * @description\n * Return the end of a year for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a year for 2 September 2014 11:55:00:\n * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Dec 31 2014 23:59:59.999\n */\nexport default function endOfYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var year = date.getFullYear();\n  date.setFullYear(year + 1, 0, 0);\n  date.setHours(23, 59, 59, 999);\n  return date;\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param {*} value - the value to check\n * @returns {boolean} true if the given value is a date\n * @throws {TypeError} 1 arguments required\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport default function isDate(value) {\n  requiredArgs(1, arguments);\n  return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';\n}","import isDate from \"../isDate/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {*} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport default function isValid(dirtyDate) {\n  requiredArgs(1, arguments);\n  if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {\n    return false;\n  }\n  var date = toDate(dirtyDate);\n  return !isNaN(Number(date));\n}","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nvar MILLISECONDS_IN_DAY = 86400000;\nexport default function getUTCDayOfYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var timestamp = date.getTime();\n  date.setUTCMonth(0, 1);\n  date.setUTCHours(0, 0, 0, 0);\n  var startOfYearTimestamp = date.getTime();\n  var difference = timestamp - startOfYearTimestamp;\n  return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;\n}","export default function addLeadingZeros(number, targetLength) {\n  var sign = number < 0 ? '-' : '';\n  var output = Math.abs(number).toString();\n  while (output.length < targetLength) {\n    output = '0' + output;\n  }\n  return sign + output;\n}","import addLeadingZeros from \"../../addLeadingZeros/index.js\";\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* |                                |\n * |  d  | Day of month                   |  D  |                                |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  m  | Minute                         |  M  | Month                          |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  y  | Year (abs)                     |  Y  |                                |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\nvar formatters = {\n  // Year\n  y: function y(date, token) {\n    // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n    // | Year     |     y | yy |   yyy |  yyyy | yyyyy |\n    // |----------|-------|----|-------|-------|-------|\n    // | AD 1     |     1 | 01 |   001 |  0001 | 00001 |\n    // | AD 12    |    12 | 12 |   012 |  0012 | 00012 |\n    // | AD 123   |   123 | 23 |   123 |  0123 | 00123 |\n    // | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |\n    // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n    var signedYear = date.getUTCFullYear();\n    // Returns 1 for 1 BC (which is year 0 in JavaScript)\n    var year = signedYear > 0 ? signedYear : 1 - signedYear;\n    return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);\n  },\n  // Month\n  M: function M(date, token) {\n    var month = date.getUTCMonth();\n    return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);\n  },\n  // Day of the month\n  d: function d(date, token) {\n    return addLeadingZeros(date.getUTCDate(), token.length);\n  },\n  // AM or PM\n  a: function a(date, token) {\n    var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';\n    switch (token) {\n      case 'a':\n      case 'aa':\n        return dayPeriodEnumValue.toUpperCase();\n      case 'aaa':\n        return dayPeriodEnumValue;\n      case 'aaaaa':\n        return dayPeriodEnumValue[0];\n      case 'aaaa':\n      default:\n        return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';\n    }\n  },\n  // Hour [1-12]\n  h: function h(date, token) {\n    return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);\n  },\n  // Hour [0-23]\n  H: function H(date, token) {\n    return addLeadingZeros(date.getUTCHours(), token.length);\n  },\n  // Minute\n  m: function m(date, token) {\n    return addLeadingZeros(date.getUTCMinutes(), token.length);\n  },\n  // Second\n  s: function s(date, token) {\n    return addLeadingZeros(date.getUTCSeconds(), token.length);\n  },\n  // Fraction of second\n  S: function S(date, token) {\n    var numberOfDigits = token.length;\n    var milliseconds = date.getUTCMilliseconds();\n    var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));\n    return addLeadingZeros(fractionalSeconds, token.length);\n  }\n};\nexport default formatters;","import getUTCDayOfYear from \"../../../_lib/getUTCDayOfYear/index.js\";\nimport getUTCISOWeek from \"../../../_lib/getUTCISOWeek/index.js\";\nimport getUTCISOWeekYear from \"../../../_lib/getUTCISOWeekYear/index.js\";\nimport getUTCWeek from \"../../../_lib/getUTCWeek/index.js\";\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport addLeadingZeros from \"../../addLeadingZeros/index.js\";\nimport lightFormatters from \"../lightFormatters/index.js\";\nvar dayPeriodEnum = {\n  am: 'am',\n  pm: 'pm',\n  midnight: 'midnight',\n  noon: 'noon',\n  morning: 'morning',\n  afternoon: 'afternoon',\n  evening: 'evening',\n  night: 'night'\n};\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* | Milliseconds in day            |\n * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |\n * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |\n * |  d  | Day of month                   |  D  | Day of year                    |\n * |  e  | Local day of week              |  E  | Day of week                    |\n * |  f  |                                |  F* | Day of week in month           |\n * |  g* | Modified Julian day            |  G  | Era                            |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  i! | ISO day of week                |  I! | ISO week of year               |\n * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |\n * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |\n * |  l* | (deprecated)                   |  L  | Stand-alone month              |\n * |  m  | Minute                         |  M  | Month                          |\n * |  n  |                                |  N  |                                |\n * |  o! | Ordinal number modifier        |  O  | Timezone (GMT)                 |\n * |  p! | Long localized time            |  P! | Long localized date            |\n * |  q  | Stand-alone quarter            |  Q  | Quarter                        |\n * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |\n * |  u  | Extended year                  |  U* | Cyclic year                    |\n * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |\n * |  w  | Local week of year             |  W* | Week of month                  |\n * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |\n * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |\n * |  z  | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n *   i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n *   `R` is supposed to be used in conjunction with `I` and `i`\n *   for universal ISO week-numbering date, whereas\n *   `Y` is supposed to be used in conjunction with `w` and `e`\n *   for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nvar formatters = {\n  // Era\n  G: function G(date, token, localize) {\n    var era = date.getUTCFullYear() > 0 ? 1 : 0;\n    switch (token) {\n      // AD, BC\n      case 'G':\n      case 'GG':\n      case 'GGG':\n        return localize.era(era, {\n          width: 'abbreviated'\n        });\n      // A, B\n      case 'GGGGG':\n        return localize.era(era, {\n          width: 'narrow'\n        });\n      // Anno Domini, Before Christ\n      case 'GGGG':\n      default:\n        return localize.era(era, {\n          width: 'wide'\n        });\n    }\n  },\n  // Year\n  y: function y(date, token, localize) {\n    // Ordinal number\n    if (token === 'yo') {\n      var signedYear = date.getUTCFullYear();\n      // Returns 1 for 1 BC (which is year 0 in JavaScript)\n      var year = signedYear > 0 ? signedYear : 1 - signedYear;\n      return localize.ordinalNumber(year, {\n        unit: 'year'\n      });\n    }\n    return lightFormatters.y(date, token);\n  },\n  // Local week-numbering year\n  Y: function Y(date, token, localize, options) {\n    var signedWeekYear = getUTCWeekYear(date, options);\n    // Returns 1 for 1 BC (which is year 0 in JavaScript)\n    var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n    // Two digit year\n    if (token === 'YY') {\n      var twoDigitYear = weekYear % 100;\n      return addLeadingZeros(twoDigitYear, 2);\n    }\n\n    // Ordinal number\n    if (token === 'Yo') {\n      return localize.ordinalNumber(weekYear, {\n        unit: 'year'\n      });\n    }\n\n    // Padding\n    return addLeadingZeros(weekYear, token.length);\n  },\n  // ISO week-numbering year\n  R: function R(date, token) {\n    var isoWeekYear = getUTCISOWeekYear(date);\n\n    // Padding\n    return addLeadingZeros(isoWeekYear, token.length);\n  },\n  // Extended year. This is a single number designating the year of this calendar system.\n  // The main difference between `y` and `u` localizers are B.C. years:\n  // | Year | `y` | `u` |\n  // |------|-----|-----|\n  // | AC 1 |   1 |   1 |\n  // | BC 1 |   1 |   0 |\n  // | BC 2 |   2 |  -1 |\n  // Also `yy` always returns the last two digits of a year,\n  // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n  u: function u(date, token) {\n    var year = date.getUTCFullYear();\n    return addLeadingZeros(year, token.length);\n  },\n  // Quarter\n  Q: function Q(date, token, localize) {\n    var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n    switch (token) {\n      // 1, 2, 3, 4\n      case 'Q':\n        return String(quarter);\n      // 01, 02, 03, 04\n      case 'QQ':\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n      case 'Qo':\n        return localize.ordinalNumber(quarter, {\n          unit: 'quarter'\n        });\n      // Q1, Q2, Q3, Q4\n      case 'QQQ':\n        return localize.quarter(quarter, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n      case 'QQQQQ':\n        return localize.quarter(quarter, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // 1st quarter, 2nd quarter, ...\n      case 'QQQQ':\n      default:\n        return localize.quarter(quarter, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone quarter\n  q: function q(date, token, localize) {\n    var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n    switch (token) {\n      // 1, 2, 3, 4\n      case 'q':\n        return String(quarter);\n      // 01, 02, 03, 04\n      case 'qq':\n        return addLeadingZeros(quarter, 2);\n      // 1st, 2nd, 3rd, 4th\n      case 'qo':\n        return localize.ordinalNumber(quarter, {\n          unit: 'quarter'\n        });\n      // Q1, Q2, Q3, Q4\n      case 'qqq':\n        return localize.quarter(quarter, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n      case 'qqqqq':\n        return localize.quarter(quarter, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // 1st quarter, 2nd quarter, ...\n      case 'qqqq':\n      default:\n        return localize.quarter(quarter, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // Month\n  M: function M(date, token, localize) {\n    var month = date.getUTCMonth();\n    switch (token) {\n      case 'M':\n      case 'MM':\n        return lightFormatters.M(date, token);\n      // 1st, 2nd, ..., 12th\n      case 'Mo':\n        return localize.ordinalNumber(month + 1, {\n          unit: 'month'\n        });\n      // Jan, Feb, ..., Dec\n      case 'MMM':\n        return localize.month(month, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // J, F, ..., D\n      case 'MMMMM':\n        return localize.month(month, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // January, February, ..., December\n      case 'MMMM':\n      default:\n        return localize.month(month, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone month\n  L: function L(date, token, localize) {\n    var month = date.getUTCMonth();\n    switch (token) {\n      // 1, 2, ..., 12\n      case 'L':\n        return String(month + 1);\n      // 01, 02, ..., 12\n      case 'LL':\n        return addLeadingZeros(month + 1, 2);\n      // 1st, 2nd, ..., 12th\n      case 'Lo':\n        return localize.ordinalNumber(month + 1, {\n          unit: 'month'\n        });\n      // Jan, Feb, ..., Dec\n      case 'LLL':\n        return localize.month(month, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // J, F, ..., D\n      case 'LLLLL':\n        return localize.month(month, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // January, February, ..., December\n      case 'LLLL':\n      default:\n        return localize.month(month, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // Local week of year\n  w: function w(date, token, localize, options) {\n    var week = getUTCWeek(date, options);\n    if (token === 'wo') {\n      return localize.ordinalNumber(week, {\n        unit: 'week'\n      });\n    }\n    return addLeadingZeros(week, token.length);\n  },\n  // ISO week of year\n  I: function I(date, token, localize) {\n    var isoWeek = getUTCISOWeek(date);\n    if (token === 'Io') {\n      return localize.ordinalNumber(isoWeek, {\n        unit: 'week'\n      });\n    }\n    return addLeadingZeros(isoWeek, token.length);\n  },\n  // Day of the month\n  d: function d(date, token, localize) {\n    if (token === 'do') {\n      return localize.ordinalNumber(date.getUTCDate(), {\n        unit: 'date'\n      });\n    }\n    return lightFormatters.d(date, token);\n  },\n  // Day of year\n  D: function D(date, token, localize) {\n    var dayOfYear = getUTCDayOfYear(date);\n    if (token === 'Do') {\n      return localize.ordinalNumber(dayOfYear, {\n        unit: 'dayOfYear'\n      });\n    }\n    return addLeadingZeros(dayOfYear, token.length);\n  },\n  // Day of week\n  E: function E(date, token, localize) {\n    var dayOfWeek = date.getUTCDay();\n    switch (token) {\n      // Tue\n      case 'E':\n      case 'EE':\n      case 'EEE':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n      case 'EEEEE':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n      case 'EEEEEE':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n      case 'EEEE':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Local day of week\n  e: function e(date, token, localize, options) {\n    var dayOfWeek = date.getUTCDay();\n    var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n    switch (token) {\n      // Numerical value (Nth day of week with current locale or weekStartsOn)\n      case 'e':\n        return String(localDayOfWeek);\n      // Padded numerical value\n      case 'ee':\n        return addLeadingZeros(localDayOfWeek, 2);\n      // 1st, 2nd, ..., 7th\n      case 'eo':\n        return localize.ordinalNumber(localDayOfWeek, {\n          unit: 'day'\n        });\n      case 'eee':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n      case 'eeeee':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n      case 'eeeeee':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n      case 'eeee':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Stand-alone local day of week\n  c: function c(date, token, localize, options) {\n    var dayOfWeek = date.getUTCDay();\n    var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n    switch (token) {\n      // Numerical value (same as in `e`)\n      case 'c':\n        return String(localDayOfWeek);\n      // Padded numerical value\n      case 'cc':\n        return addLeadingZeros(localDayOfWeek, token.length);\n      // 1st, 2nd, ..., 7th\n      case 'co':\n        return localize.ordinalNumber(localDayOfWeek, {\n          unit: 'day'\n        });\n      case 'ccc':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'standalone'\n        });\n      // T\n      case 'ccccc':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'standalone'\n        });\n      // Tu\n      case 'cccccc':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'standalone'\n        });\n      // Tuesday\n      case 'cccc':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'standalone'\n        });\n    }\n  },\n  // ISO day of week\n  i: function i(date, token, localize) {\n    var dayOfWeek = date.getUTCDay();\n    var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n    switch (token) {\n      // 2\n      case 'i':\n        return String(isoDayOfWeek);\n      // 02\n      case 'ii':\n        return addLeadingZeros(isoDayOfWeek, token.length);\n      // 2nd\n      case 'io':\n        return localize.ordinalNumber(isoDayOfWeek, {\n          unit: 'day'\n        });\n      // Tue\n      case 'iii':\n        return localize.day(dayOfWeek, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      // T\n      case 'iiiii':\n        return localize.day(dayOfWeek, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      // Tu\n      case 'iiiiii':\n        return localize.day(dayOfWeek, {\n          width: 'short',\n          context: 'formatting'\n        });\n      // Tuesday\n      case 'iiii':\n      default:\n        return localize.day(dayOfWeek, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // AM or PM\n  a: function a(date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n    switch (token) {\n      case 'a':\n      case 'aa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      case 'aaa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        }).toLowerCase();\n      case 'aaaaa':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      case 'aaaa':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // AM, PM, midnight, noon\n  b: function b(date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue;\n    if (hours === 12) {\n      dayPeriodEnumValue = dayPeriodEnum.noon;\n    } else if (hours === 0) {\n      dayPeriodEnumValue = dayPeriodEnum.midnight;\n    } else {\n      dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';\n    }\n    switch (token) {\n      case 'b':\n      case 'bb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      case 'bbb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        }).toLowerCase();\n      case 'bbbbb':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      case 'bbbb':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // in the morning, in the afternoon, in the evening, at night\n  B: function B(date, token, localize) {\n    var hours = date.getUTCHours();\n    var dayPeriodEnumValue;\n    if (hours >= 17) {\n      dayPeriodEnumValue = dayPeriodEnum.evening;\n    } else if (hours >= 12) {\n      dayPeriodEnumValue = dayPeriodEnum.afternoon;\n    } else if (hours >= 4) {\n      dayPeriodEnumValue = dayPeriodEnum.morning;\n    } else {\n      dayPeriodEnumValue = dayPeriodEnum.night;\n    }\n    switch (token) {\n      case 'B':\n      case 'BB':\n      case 'BBB':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'abbreviated',\n          context: 'formatting'\n        });\n      case 'BBBBB':\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'narrow',\n          context: 'formatting'\n        });\n      case 'BBBB':\n      default:\n        return localize.dayPeriod(dayPeriodEnumValue, {\n          width: 'wide',\n          context: 'formatting'\n        });\n    }\n  },\n  // Hour [1-12]\n  h: function h(date, token, localize) {\n    if (token === 'ho') {\n      var hours = date.getUTCHours() % 12;\n      if (hours === 0) hours = 12;\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n    return lightFormatters.h(date, token);\n  },\n  // Hour [0-23]\n  H: function H(date, token, localize) {\n    if (token === 'Ho') {\n      return localize.ordinalNumber(date.getUTCHours(), {\n        unit: 'hour'\n      });\n    }\n    return lightFormatters.H(date, token);\n  },\n  // Hour [0-11]\n  K: function K(date, token, localize) {\n    var hours = date.getUTCHours() % 12;\n    if (token === 'Ko') {\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n    return addLeadingZeros(hours, token.length);\n  },\n  // Hour [1-24]\n  k: function k(date, token, localize) {\n    var hours = date.getUTCHours();\n    if (hours === 0) hours = 24;\n    if (token === 'ko') {\n      return localize.ordinalNumber(hours, {\n        unit: 'hour'\n      });\n    }\n    return addLeadingZeros(hours, token.length);\n  },\n  // Minute\n  m: function m(date, token, localize) {\n    if (token === 'mo') {\n      return localize.ordinalNumber(date.getUTCMinutes(), {\n        unit: 'minute'\n      });\n    }\n    return lightFormatters.m(date, token);\n  },\n  // Second\n  s: function s(date, token, localize) {\n    if (token === 'so') {\n      return localize.ordinalNumber(date.getUTCSeconds(), {\n        unit: 'second'\n      });\n    }\n    return lightFormatters.s(date, token);\n  },\n  // Fraction of second\n  S: function S(date, token) {\n    return lightFormatters.S(date, token);\n  },\n  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n  X: function X(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n    if (timezoneOffset === 0) {\n      return 'Z';\n    }\n    switch (token) {\n      // Hours and optional minutes\n      case 'X':\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XX`\n      case 'XXXX':\n      case 'XX':\n        // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `XXX`\n      case 'XXXXX':\n      case 'XXX': // Hours and minutes with `:` delimiter\n      default:\n        return formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n  x: function x(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n    switch (token) {\n      // Hours and optional minutes\n      case 'x':\n        return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n      // Hours, minutes and optional seconds without `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xx`\n      case 'xxxx':\n      case 'xx':\n        // Hours and minutes without `:` delimiter\n        return formatTimezone(timezoneOffset);\n\n      // Hours, minutes and optional seconds with `:` delimiter\n      // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n      // so this token always has the same output as `xxx`\n      case 'xxxxx':\n      case 'xxx': // Hours and minutes with `:` delimiter\n      default:\n        return formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (GMT)\n  O: function O(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n    switch (token) {\n      // Short\n      case 'O':\n      case 'OO':\n      case 'OOO':\n        return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n      // Long\n      case 'OOOO':\n      default:\n        return 'GMT' + formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Timezone (specific non-location)\n  z: function z(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timezoneOffset = originalDate.getTimezoneOffset();\n    switch (token) {\n      // Short\n      case 'z':\n      case 'zz':\n      case 'zzz':\n        return 'GMT' + formatTimezoneShort(timezoneOffset, ':');\n      // Long\n      case 'zzzz':\n      default:\n        return 'GMT' + formatTimezone(timezoneOffset, ':');\n    }\n  },\n  // Seconds timestamp\n  t: function t(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timestamp = Math.floor(originalDate.getTime() / 1000);\n    return addLeadingZeros(timestamp, token.length);\n  },\n  // Milliseconds timestamp\n  T: function T(date, token, _localize, options) {\n    var originalDate = options._originalDate || date;\n    var timestamp = originalDate.getTime();\n    return addLeadingZeros(timestamp, token.length);\n  }\n};\nfunction formatTimezoneShort(offset, dirtyDelimiter) {\n  var sign = offset > 0 ? '-' : '+';\n  var absOffset = Math.abs(offset);\n  var hours = Math.floor(absOffset / 60);\n  var minutes = absOffset % 60;\n  if (minutes === 0) {\n    return sign + String(hours);\n  }\n  var delimiter = dirtyDelimiter || '';\n  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\nfunction formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {\n  if (offset % 60 === 0) {\n    var sign = offset > 0 ? '-' : '+';\n    return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n  }\n  return formatTimezone(offset, dirtyDelimiter);\n}\nfunction formatTimezone(offset, dirtyDelimiter) {\n  var delimiter = dirtyDelimiter || '';\n  var sign = offset > 0 ? '-' : '+';\n  var absOffset = Math.abs(offset);\n  var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);\n  var minutes = addLeadingZeros(absOffset % 60, 2);\n  return sign + hours + delimiter + minutes;\n}\nexport default formatters;","import isValid from \"../isValid/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport formatters from \"../_lib/format/formatters/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\"; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n//   (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n//   except a single quote symbol, which ends the sequence.\n//   Two quote characters do not end the sequence.\n//   If there is no matching single quote\n//   then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit                            | Pattern | Result examples                   | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era                             | G..GGG  | AD, BC                            |       |\n * |                                 | GGGG    | Anno Domini, Before Christ        | 2     |\n * |                                 | GGGGG   | A, B                              |       |\n * | Calendar year                   | y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | yo      | 44th, 1st, 0th, 17th              | 5,7   |\n * |                                 | yy      | 44, 01, 00, 17                    | 5     |\n * |                                 | yyy     | 044, 001, 1900, 2017              | 5     |\n * |                                 | yyyy    | 0044, 0001, 1900, 2017            | 5     |\n * |                                 | yyyyy   | ...                               | 3,5   |\n * | Local week-numbering year       | Y       | 44, 1, 1900, 2017                 | 5     |\n * |                                 | Yo      | 44th, 1st, 1900th, 2017th         | 5,7   |\n * |                                 | YY      | 44, 01, 00, 17                    | 5,8   |\n * |                                 | YYY     | 044, 001, 1900, 2017              | 5     |\n * |                                 | YYYY    | 0044, 0001, 1900, 2017            | 5,8   |\n * |                                 | YYYYY   | ...                               | 3,5   |\n * | ISO week-numbering year         | R       | -43, 0, 1, 1900, 2017             | 5,7   |\n * |                                 | RR      | -43, 00, 01, 1900, 2017           | 5,7   |\n * |                                 | RRR     | -043, 000, 001, 1900, 2017        | 5,7   |\n * |                                 | RRRR    | -0043, 0000, 0001, 1900, 2017     | 5,7   |\n * |                                 | RRRRR   | ...                               | 3,5,7 |\n * | Extended year                   | u       | -43, 0, 1, 1900, 2017             | 5     |\n * |                                 | uu      | -43, 01, 1900, 2017               | 5     |\n * |                                 | uuu     | -043, 001, 1900, 2017             | 5     |\n * |                                 | uuuu    | -0043, 0001, 1900, 2017           | 5     |\n * |                                 | uuuuu   | ...                               | 3,5   |\n * | Quarter (formatting)            | Q       | 1, 2, 3, 4                        |       |\n * |                                 | Qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | QQ      | 01, 02, 03, 04                    |       |\n * |                                 | QQQ     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | QQQQQ   | 1, 2, 3, 4                        | 4     |\n * | Quarter (stand-alone)           | q       | 1, 2, 3, 4                        |       |\n * |                                 | qo      | 1st, 2nd, 3rd, 4th                | 7     |\n * |                                 | qq      | 01, 02, 03, 04                    |       |\n * |                                 | qqq     | Q1, Q2, Q3, Q4                    |       |\n * |                                 | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 | qqqqq   | 1, 2, 3, 4                        | 4     |\n * | Month (formatting)              | M       | 1, 2, ..., 12                     |       |\n * |                                 | Mo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | MM      | 01, 02, ..., 12                   |       |\n * |                                 | MMM     | Jan, Feb, ..., Dec                |       |\n * |                                 | MMMM    | January, February, ..., December  | 2     |\n * |                                 | MMMMM   | J, F, ..., D                      |       |\n * | Month (stand-alone)             | L       | 1, 2, ..., 12                     |       |\n * |                                 | Lo      | 1st, 2nd, ..., 12th               | 7     |\n * |                                 | LL      | 01, 02, ..., 12                   |       |\n * |                                 | LLL     | Jan, Feb, ..., Dec                |       |\n * |                                 | LLLL    | January, February, ..., December  | 2     |\n * |                                 | LLLLL   | J, F, ..., D                      |       |\n * | Local week of year              | w       | 1, 2, ..., 53                     |       |\n * |                                 | wo      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | ww      | 01, 02, ..., 53                   |       |\n * | ISO week of year                | I       | 1, 2, ..., 53                     | 7     |\n * |                                 | Io      | 1st, 2nd, ..., 53th               | 7     |\n * |                                 | II      | 01, 02, ..., 53                   | 7     |\n * | Day of month                    | d       | 1, 2, ..., 31                     |       |\n * |                                 | do      | 1st, 2nd, ..., 31st               | 7     |\n * |                                 | dd      | 01, 02, ..., 31                   |       |\n * | Day of year                     | D       | 1, 2, ..., 365, 366               | 9     |\n * |                                 | Do      | 1st, 2nd, ..., 365th, 366th       | 7     |\n * |                                 | DD      | 01, 02, ..., 365, 366             | 9     |\n * |                                 | DDD     | 001, 002, ..., 365, 366           |       |\n * |                                 | DDDD    | ...                               | 3     |\n * | Day of week (formatting)        | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | EEEEE   | M, T, W, T, F, S, S               |       |\n * |                                 | EEEEEE  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | ISO day of week (formatting)    | i       | 1, 2, 3, ..., 7                   | 7     |\n * |                                 | io      | 1st, 2nd, ..., 7th                | 7     |\n * |                                 | ii      | 01, 02, ..., 07                   | 7     |\n * |                                 | iii     | Mon, Tue, Wed, ..., Sun           | 7     |\n * |                                 | iiii    | Monday, Tuesday, ..., Sunday      | 2,7   |\n * |                                 | iiiii   | M, T, W, T, F, S, S               | 7     |\n * |                                 | iiiiii  | Mo, Tu, We, Th, Fr, Sa, Su        | 7     |\n * | Local day of week (formatting)  | e       | 2, 3, 4, ..., 1                   |       |\n * |                                 | eo      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | ee      | 02, 03, ..., 01                   |       |\n * |                                 | eee     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | eeee    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | eeeee   | M, T, W, T, F, S, S               |       |\n * |                                 | eeeeee  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | Local day of week (stand-alone) | c       | 2, 3, 4, ..., 1                   |       |\n * |                                 | co      | 2nd, 3rd, ..., 1st                | 7     |\n * |                                 | cc      | 02, 03, ..., 01                   |       |\n * |                                 | ccc     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 | cccc    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 | ccccc   | M, T, W, T, F, S, S               |       |\n * |                                 | cccccc  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | AM, PM                          | a..aa   | AM, PM                            |       |\n * |                                 | aaa     | am, pm                            |       |\n * |                                 | aaaa    | a.m., p.m.                        | 2     |\n * |                                 | aaaaa   | a, p                              |       |\n * | AM, PM, noon, midnight          | b..bb   | AM, PM, noon, midnight            |       |\n * |                                 | bbb     | am, pm, noon, midnight            |       |\n * |                                 | bbbb    | a.m., p.m., noon, midnight        | 2     |\n * |                                 | bbbbb   | a, p, n, mi                       |       |\n * | Flexible day period             | B..BBB  | at night, in the morning, ...     |       |\n * |                                 | BBBB    | at night, in the morning, ...     | 2     |\n * |                                 | BBBBB   | at night, in the morning, ...     |       |\n * | Hour [1-12]                     | h       | 1, 2, ..., 11, 12                 |       |\n * |                                 | ho      | 1st, 2nd, ..., 11th, 12th         | 7     |\n * |                                 | hh      | 01, 02, ..., 11, 12               |       |\n * | Hour [0-23]                     | H       | 0, 1, 2, ..., 23                  |       |\n * |                                 | Ho      | 0th, 1st, 2nd, ..., 23rd          | 7     |\n * |                                 | HH      | 00, 01, 02, ..., 23               |       |\n * | Hour [0-11]                     | K       | 1, 2, ..., 11, 0                  |       |\n * |                                 | Ko      | 1st, 2nd, ..., 11th, 0th          | 7     |\n * |                                 | KK      | 01, 02, ..., 11, 00               |       |\n * | Hour [1-24]                     | k       | 24, 1, 2, ..., 23                 |       |\n * |                                 | ko      | 24th, 1st, 2nd, ..., 23rd         | 7     |\n * |                                 | kk      | 24, 01, 02, ..., 23               |       |\n * | Minute                          | m       | 0, 1, ..., 59                     |       |\n * |                                 | mo      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | mm      | 00, 01, ..., 59                   |       |\n * | Second                          | s       | 0, 1, ..., 59                     |       |\n * |                                 | so      | 0th, 1st, ..., 59th               | 7     |\n * |                                 | ss      | 00, 01, ..., 59                   |       |\n * | Fraction of second              | S       | 0, 1, ..., 9                      |       |\n * |                                 | SS      | 00, 01, ..., 99                   |       |\n * |                                 | SSS     | 000, 001, ..., 999                |       |\n * |                                 | SSSS    | ...                               | 3     |\n * | Timezone (ISO-8601 w/ Z)        | X       | -08, +0530, Z                     |       |\n * |                                 | XX      | -0800, +0530, Z                   |       |\n * |                                 | XXX     | -08:00, +05:30, Z                 |       |\n * |                                 | XXXX    | -0800, +0530, Z, +123456          | 2     |\n * |                                 | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |\n * | Timezone (ISO-8601 w/o Z)       | x       | -08, +0530, +00                   |       |\n * |                                 | xx      | -0800, +0530, +0000               |       |\n * |                                 | xxx     | -08:00, +05:30, +00:00            | 2     |\n * |                                 | xxxx    | -0800, +0530, +0000, +123456      |       |\n * |                                 | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |\n * | Timezone (GMT)                  | O...OOO | GMT-8, GMT+5:30, GMT+0            |       |\n * |                                 | OOOO    | GMT-08:00, GMT+05:30, GMT+00:00   | 2     |\n * | Timezone (specific non-locat.)  | z...zzz | GMT-8, GMT+5:30, GMT+0            | 6     |\n * |                                 | zzzz    | GMT-08:00, GMT+05:30, GMT+00:00   | 2,6   |\n * | Seconds timestamp               | t       | 512969520                         | 7     |\n * |                                 | tt      | ...                               | 3,7   |\n * | Milliseconds timestamp          | T       | 512969520900                      | 7     |\n * |                                 | TT      | ...                               | 3,7   |\n * | Long localized date             | P       | 04/29/1453                        | 7     |\n * |                                 | PP      | Apr 29, 1453                      | 7     |\n * |                                 | PPP     | April 29th, 1453                  | 7     |\n * |                                 | PPPP    | Friday, April 29th, 1453          | 2,7   |\n * | Long localized time             | p       | 12:00 AM                          | 7     |\n * |                                 | pp      | 12:00:00 AM                       | 7     |\n * |                                 | ppp     | 12:00:00 AM GMT+2                 | 7     |\n * |                                 | pppp    | 12:00:00 AM GMT+02:00             | 2,7   |\n * | Combination of date and time    | Pp      | 04/29/1453, 12:00 AM              | 7     |\n * |                                 | PPpp    | Apr 29, 1453, 12:00:00 AM         | 7     |\n * |                                 | PPPppp  | April 29th, 1453 at ...           | 7     |\n * |                                 | PPPPpppp| Friday, April 29th, 1453 at ...   | 2,7   |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n *    are the same as \"stand-alone\" units, but are different in some languages.\n *    \"Formatting\" units are declined according to the rules of the language\n *    in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n *    the single quote characters (see below).\n *    If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n *    the output will be the same as default pattern for this unit, usually\n *    the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n *    are marked with \"2\" in the last column of the table.\n *\n *    `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n *    `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n *    The output will be padded with zeros to match the length of the pattern.\n *\n *    `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n *    These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n *    | Year | `y` | `u` |\n *    |------|-----|-----|\n *    | AC 1 |   1 |   1 |\n *    | BC 1 |   1 |   0 |\n *    | BC 2 |   2 |  -1 |\n *\n *    Also `yy` always returns the last two digits of a year,\n *    while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n *    | Year | `yy` | `uu` |\n *    |------|------|------|\n *    | 1    |   01 |   01 |\n *    | 14   |   14 |   14 |\n *    | 376  |   76 |  376 |\n *    | 1453 |   53 | 1453 |\n *\n *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n *    except local week-numbering years are dependent on `options.weekStartsOn`\n *    and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}\n *    and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n *    so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n *    - `i`: ISO day of week\n *    - `I`: ISO week of year\n *    - `R`: ISO week-numbering year\n *    - `t`: seconds timestamp\n *    - `T`: milliseconds timestamp\n *    - `o`: ordinal number modifier\n *    - `P`: long localized date\n *    - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param {Date|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n *   see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n *   see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n *   locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\n\nexport default function format(dirtyDate, dirtyFormatStr, options) {\n  var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\n  requiredArgs(2, arguments);\n  var formatStr = String(dirtyFormatStr);\n  var defaultOptions = getDefaultOptions();\n  var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n  var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);\n\n  // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n  var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  if (!locale.localize) {\n    throw new RangeError('locale must contain localize property');\n  }\n  if (!locale.formatLong) {\n    throw new RangeError('locale must contain formatLong property');\n  }\n  var originalDate = toDate(dirtyDate);\n  if (!isValid(originalDate)) {\n    throw new RangeError('Invalid time value');\n  }\n\n  // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n  // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n  var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);\n  var utcDate = subMilliseconds(originalDate, timezoneOffset);\n  var formatterOptions = {\n    firstWeekContainsDate: firstWeekContainsDate,\n    weekStartsOn: weekStartsOn,\n    locale: locale,\n    _originalDate: originalDate\n  };\n  var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {\n    var firstCharacter = substring[0];\n    if (firstCharacter === 'p' || firstCharacter === 'P') {\n      var longFormatter = longFormatters[firstCharacter];\n      return longFormatter(substring, locale.formatLong);\n    }\n    return substring;\n  }).join('').match(formattingTokensRegExp).map(function (substring) {\n    // Replace two single quote characters with one single quote character\n    if (substring === \"''\") {\n      return \"'\";\n    }\n    var firstCharacter = substring[0];\n    if (firstCharacter === \"'\") {\n      return cleanEscapedString(substring);\n    }\n    var formatter = formatters[firstCharacter];\n    if (formatter) {\n      if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {\n        throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n      }\n      if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {\n        throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));\n      }\n      return formatter(utcDate, substring, locale.localize, formatterOptions);\n    }\n    if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n      throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n    }\n    return substring;\n  }).join('');\n  return result;\n}\nfunction cleanEscapedString(input) {\n  var matched = input.match(escapedStringRegExp);\n  if (!matched) {\n    return input;\n  }\n  return matched[1].replace(doubleQuoteRegExp, \"'\");\n}","import startOfDay from \"../startOfDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day (and year and month)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport default function isSameDay(dirtyDateLeft, dirtyDateRight) {\n  requiredArgs(2, arguments);\n  var dateLeftStartOfDay = startOfDay(dirtyDateLeft);\n  var dateRightStartOfDay = startOfDay(dirtyDateRight);\n  return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();\n}","export default function buildFormatLongFn(args) {\n  return function () {\n    var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    // TODO: Remove String()\n    var width = options.width ? String(options.width) : args.defaultWidth;\n    var format = args.formats[width] || args.formats[args.defaultWidth];\n    return format;\n  };\n}","export default function buildLocalizeFn(args) {\n  return function (dirtyIndex, options) {\n    var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';\n    var valuesArray;\n    if (context === 'formatting' && args.formattingValues) {\n      var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n      var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;\n      valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n    } else {\n      var _defaultWidth = args.defaultWidth;\n      var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;\n      valuesArray = args.values[_width] || args.values[_defaultWidth];\n    }\n    var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n    // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n    return valuesArray[index];\n  };\n}","export default function buildMatchFn(args) {\n  return function (string) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var width = options.width;\n    var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n    var matchResult = string.match(matchPattern);\n    if (!matchResult) {\n      return null;\n    }\n    var matchedString = matchResult[0];\n    var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n    var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {\n      return pattern.test(matchedString);\n    }) : findKey(parsePatterns, function (pattern) {\n      return pattern.test(matchedString);\n    });\n    var value;\n    value = args.valueCallback ? args.valueCallback(key) : key;\n    value = options.valueCallback ? options.valueCallback(value) : value;\n    var rest = string.slice(matchedString.length);\n    return {\n      value: value,\n      rest: rest\n    };\n  };\n}\nfunction findKey(object, predicate) {\n  for (var key in object) {\n    if (object.hasOwnProperty(key) && predicate(object[key])) {\n      return key;\n    }\n  }\n  return undefined;\n}\nfunction findIndex(array, predicate) {\n  for (var key = 0; key < array.length; key++) {\n    if (predicate(array[key])) {\n      return key;\n    }\n  }\n  return undefined;\n}","export default function buildMatchPatternFn(args) {\n  return function (string) {\n    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var matchResult = string.match(args.matchPattern);\n    if (!matchResult) return null;\n    var matchedString = matchResult[0];\n    var parseResult = string.match(args.parsePattern);\n    if (!parseResult) return null;\n    var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n    value = options.valueCallback ? options.valueCallback(value) : value;\n    var rest = string.slice(matchedString.length);\n    return {\n      value: value,\n      rest: rest\n    };\n  };\n}","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE, d MMMM yyyy',\n  long: 'd MMMM yyyy',\n  medium: 'd MMM yyyy',\n  short: 'dd/MM/yyyy'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'at' {{time}}\",\n  long: \"{{date}} 'at' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","import formatDistance from \"../en-US/_lib/formatDistance/index.js\";\nimport formatRelative from \"../en-US/_lib/formatRelative/index.js\";\nimport localize from \"../en-US/_lib/localize/index.js\";\nimport match from \"../en-US/_lib/match/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United Kingdom).\n * @language English\n * @iso-639-2 eng\n * @author Alex [@glintik]{@link https://github.com/glintik}\n */\nvar locale = {\n  code: 'en-GB',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 4\n  }\n};\nexport default locale;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'less than a second',\n    other: 'less than {{count}} seconds'\n  },\n  xSeconds: {\n    one: '1 second',\n    other: '{{count}} seconds'\n  },\n  halfAMinute: 'half a minute',\n  lessThanXMinutes: {\n    one: 'less than a minute',\n    other: 'less than {{count}} minutes'\n  },\n  xMinutes: {\n    one: '1 minute',\n    other: '{{count}} minutes'\n  },\n  aboutXHours: {\n    one: 'about 1 hour',\n    other: 'about {{count}} hours'\n  },\n  xHours: {\n    one: '1 hour',\n    other: '{{count}} hours'\n  },\n  xDays: {\n    one: '1 day',\n    other: '{{count}} days'\n  },\n  aboutXWeeks: {\n    one: 'about 1 week',\n    other: 'about {{count}} weeks'\n  },\n  xWeeks: {\n    one: '1 week',\n    other: '{{count}} weeks'\n  },\n  aboutXMonths: {\n    one: 'about 1 month',\n    other: 'about {{count}} months'\n  },\n  xMonths: {\n    one: '1 month',\n    other: '{{count}} months'\n  },\n  aboutXYears: {\n    one: 'about 1 year',\n    other: 'about {{count}} years'\n  },\n  xYears: {\n    one: '1 year',\n    other: '{{count}} years'\n  },\n  overXYears: {\n    one: 'over 1 year',\n    other: 'over {{count}} years'\n  },\n  almostXYears: {\n    one: 'almost 1 year',\n    other: 'almost {{count}} years'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace('{{count}}', count.toString());\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'in ' + result;\n    } else {\n      return result + ' ago';\n    }\n  }\n  return result;\n};\nexport default formatDistance;","var formatRelativeLocale = {\n  lastWeek: \"'last' eeee 'at' p\",\n  yesterday: \"'yesterday at' p\",\n  today: \"'today at' p\",\n  tomorrow: \"'tomorrow at' p\",\n  nextWeek: \"eeee 'at' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n  return formatRelativeLocale[token];\n};\nexport default formatRelative;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['B', 'A'],\n  abbreviated: ['BC', 'AD'],\n  wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n  wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar monthValues = {\n  narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n  abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n  wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n  narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n  short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n  abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n  wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mi',\n    noon: 'n',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'morning',\n    afternoon: 'afternoon',\n    evening: 'evening',\n    night: 'night'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mi',\n    noon: 'n',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'midnight',\n    noon: 'noon',\n    morning: 'in the morning',\n    afternoon: 'in the afternoon',\n    evening: 'in the evening',\n    night: 'at night'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  var number = Number(dirtyNumber);\n\n  // If ordinal numbers depend on context, for example,\n  // if they are different for different grammatical genders,\n  // use `options.unit`.\n  //\n  // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n  // 'day', 'hour', 'minute', 'second'.\n\n  var rem100 = number % 100;\n  if (rem100 > 20 || rem100 < 10) {\n    switch (rem100 % 10) {\n      case 1:\n        return number + 'st';\n      case 2:\n        return number + 'nd';\n      case 3:\n        return number + 'rd';\n    }\n  }\n  return number + 'th';\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(b|a)/i,\n  abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n  wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n  any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^q[1234]/i,\n  wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[jfmasond]/i,\n  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[smtwf]/i,\n  short: /^(su|mo|tu|we|th|fr|sa)/i,\n  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n  any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mi/i,\n    noon: /^no/i,\n    morning: /morning/i,\n    afternoon: /afternoon/i,\n    evening: /evening/i,\n    night: /night/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE, MMMM do, y',\n  long: 'MMMM do, y',\n  medium: 'MMM d, y',\n  short: 'MM/dd/yyyy'\n};\nvar timeFormats = {\n  full: 'h:mm:ss a zzzz',\n  long: 'h:mm:ss a z',\n  medium: 'h:mm:ss a',\n  short: 'h:mm a'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'at' {{time}}\",\n  long: \"{{date}} 'at' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\n */\nvar locale = {\n  code: 'en-US',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 0 /* Sunday */,\n    firstWeekContainsDate: 1\n  }\n};\nexport default locale;","import { millisecondsInHour, millisecondsInMinute } from \"../constants/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name parseISO\n * @category Common Helpers\n * @summary Parse ISO string\n *\n * @description\n * Parse the given string in ISO 8601 format and return an instance of Date.\n *\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument isn't a string, the function cannot parse the string or\n * the values are invalid, it returns Invalid Date.\n *\n * @param {String} argument - the value to convert\n * @param {Object} [options] - an object with options.\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * const result = parseISO('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * const result = parseISO('+02014101', { additionalDigits: 1 })\n * //=> Fri Apr 11 2014 00:00:00\n */\nexport default function parseISO(argument, options) {\n  var _options$additionalDi;\n  requiredArgs(1, arguments);\n  var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);\n  if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n    throw new RangeError('additionalDigits must be 0, 1 or 2');\n  }\n  if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {\n    return new Date(NaN);\n  }\n  var dateStrings = splitDateString(argument);\n  var date;\n  if (dateStrings.date) {\n    var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n    date = parseDate(parseYearResult.restDateString, parseYearResult.year);\n  }\n  if (!date || isNaN(date.getTime())) {\n    return new Date(NaN);\n  }\n  var timestamp = date.getTime();\n  var time = 0;\n  var offset;\n  if (dateStrings.time) {\n    time = parseTime(dateStrings.time);\n    if (isNaN(time)) {\n      return new Date(NaN);\n    }\n  }\n  if (dateStrings.timezone) {\n    offset = parseTimezone(dateStrings.timezone);\n    if (isNaN(offset)) {\n      return new Date(NaN);\n    }\n  } else {\n    var dirtyDate = new Date(timestamp + time);\n    // js parsed string assuming it's in UTC timezone\n    // but we need it to be parsed in our timezone\n    // so we use utc values to build date in our timezone.\n    // Year values from 0 to 99 map to the years 1900 to 1999\n    // so set year explicitly with setFullYear.\n    var result = new Date(0);\n    result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate());\n    result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());\n    return result;\n  }\n  return new Date(timestamp + time + offset);\n}\nvar patterns = {\n  dateTimeDelimiter: /[T ]/,\n  timeZoneDelimiter: /[Z ]/i,\n  timezone: /([Z+-].*)$/\n};\nvar dateRegex = /^-?(?:(\\d{3})|(\\d{2})(?:-?(\\d{2}))?|W(\\d{2})(?:-?(\\d{1}))?|)$/;\nvar timeRegex = /^(\\d{2}(?:[.,]\\d*)?)(?::?(\\d{2}(?:[.,]\\d*)?))?(?::?(\\d{2}(?:[.,]\\d*)?))?$/;\nvar timezoneRegex = /^([+-])(\\d{2})(?::?(\\d{2}))?$/;\nfunction splitDateString(dateString) {\n  var dateStrings = {};\n  var array = dateString.split(patterns.dateTimeDelimiter);\n  var timeString;\n\n  // The regex match should only return at maximum two array elements.\n  // [date], [time], or [date, time].\n  if (array.length > 2) {\n    return dateStrings;\n  }\n  if (/:/.test(array[0])) {\n    timeString = array[0];\n  } else {\n    dateStrings.date = array[0];\n    timeString = array[1];\n    if (patterns.timeZoneDelimiter.test(dateStrings.date)) {\n      dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];\n      timeString = dateString.substr(dateStrings.date.length, dateString.length);\n    }\n  }\n  if (timeString) {\n    var token = patterns.timezone.exec(timeString);\n    if (token) {\n      dateStrings.time = timeString.replace(token[1], '');\n      dateStrings.timezone = token[1];\n    } else {\n      dateStrings.time = timeString;\n    }\n  }\n  return dateStrings;\n}\nfunction parseYear(dateString, additionalDigits) {\n  var regex = new RegExp('^(?:(\\\\d{4}|[+-]\\\\d{' + (4 + additionalDigits) + '})|(\\\\d{2}|[+-]\\\\d{' + (2 + additionalDigits) + '})$)');\n  var captures = dateString.match(regex);\n  // Invalid ISO-formatted year\n  if (!captures) return {\n    year: NaN,\n    restDateString: ''\n  };\n  var year = captures[1] ? parseInt(captures[1]) : null;\n  var century = captures[2] ? parseInt(captures[2]) : null;\n\n  // either year or century is null, not both\n  return {\n    year: century === null ? year : century * 100,\n    restDateString: dateString.slice((captures[1] || captures[2]).length)\n  };\n}\nfunction parseDate(dateString, year) {\n  // Invalid ISO-formatted year\n  if (year === null) return new Date(NaN);\n  var captures = dateString.match(dateRegex);\n  // Invalid ISO-formatted string\n  if (!captures) return new Date(NaN);\n  var isWeekDate = !!captures[4];\n  var dayOfYear = parseDateUnit(captures[1]);\n  var month = parseDateUnit(captures[2]) - 1;\n  var day = parseDateUnit(captures[3]);\n  var week = parseDateUnit(captures[4]);\n  var dayOfWeek = parseDateUnit(captures[5]) - 1;\n  if (isWeekDate) {\n    if (!validateWeekDate(year, week, dayOfWeek)) {\n      return new Date(NaN);\n    }\n    return dayOfISOWeekYear(year, week, dayOfWeek);\n  } else {\n    var date = new Date(0);\n    if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {\n      return new Date(NaN);\n    }\n    date.setUTCFullYear(year, month, Math.max(dayOfYear, day));\n    return date;\n  }\n}\nfunction parseDateUnit(value) {\n  return value ? parseInt(value) : 1;\n}\nfunction parseTime(timeString) {\n  var captures = timeString.match(timeRegex);\n  if (!captures) return NaN; // Invalid ISO-formatted time\n\n  var hours = parseTimeUnit(captures[1]);\n  var minutes = parseTimeUnit(captures[2]);\n  var seconds = parseTimeUnit(captures[3]);\n  if (!validateTime(hours, minutes, seconds)) {\n    return NaN;\n  }\n  return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000;\n}\nfunction parseTimeUnit(value) {\n  return value && parseFloat(value.replace(',', '.')) || 0;\n}\nfunction parseTimezone(timezoneString) {\n  if (timezoneString === 'Z') return 0;\n  var captures = timezoneString.match(timezoneRegex);\n  if (!captures) return 0;\n  var sign = captures[1] === '+' ? -1 : 1;\n  var hours = parseInt(captures[2]);\n  var minutes = captures[3] && parseInt(captures[3]) || 0;\n  if (!validateTimezone(hours, minutes)) {\n    return NaN;\n  }\n  return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute);\n}\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n  var date = new Date(0);\n  date.setUTCFullYear(isoWeekYear, 0, 4);\n  var fourthOfJanuaryDay = date.getUTCDay() || 7;\n  var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;\n  date.setUTCDate(date.getUTCDate() + diff);\n  return date;\n}\n\n// Validation functions\n\n// February is null to handle the leap year (using ||)\nvar daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction isLeapYearIndex(year) {\n  return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\nfunction validateDate(year, month, date) {\n  return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));\n}\nfunction validateDayOfYearDate(year, dayOfYear) {\n  return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);\n}\nfunction validateWeekDate(_year, week, day) {\n  return week >= 1 && week <= 53 && day >= 0 && day <= 6;\n}\nfunction validateTime(hours, minutes, seconds) {\n  if (hours === 24) {\n    return minutes === 0 && seconds === 0;\n  }\n  return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;\n}\nfunction validateTimezone(_hours, minutes) {\n  return minutes >= 0 && minutes <= 59;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport default function startOfDay(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  date.setHours(0, 0, 0, 0);\n  return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport default function startOfMonth(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  date.setDate(1);\n  date.setHours(0, 0, 0, 0);\n  return date;\n}","import toDate from \"../toDate/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the start of a week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport default function startOfWeek(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var defaultOptions = getDefaultOptions();\n  var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  var date = toDate(dirtyDate);\n  var day = date.getDay();\n  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n  date.setDate(date.getDate() - diff);\n  date.setHours(0, 0, 0, 0);\n  return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport default function startOfYear(dirtyDate) {\n  requiredArgs(1, arguments);\n  var cleanDate = toDate(dirtyDate);\n  var date = new Date(0);\n  date.setFullYear(cleanDate.getFullYear(), 0, 1);\n  date.setHours(0, 0, 0, 0);\n  return date;\n}","import addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name subMilliseconds\n * @category Millisecond Helpers\n * @summary Subtract the specified number of milliseconds from the given date.\n *\n * @description\n * Subtract the specified number of milliseconds from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\n * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:29.250\n */\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addMilliseconds(dirtyDate, -amount);\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n  requiredArgs(1, arguments);\n  var argStr = Object.prototype.toString.call(argument);\n\n  // Clone the date\n  if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n    // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n    return new Date(argument.getTime());\n  } else if (typeof argument === 'number' || argStr === '[object Number]') {\n    return new Date(argument);\n  } else {\n    if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n      // eslint-disable-next-line no-console\n      console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n      // eslint-disable-next-line no-console\n      console.warn(new Error().stack);\n    }\n    return new Date(NaN);\n  }\n}","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n","(function (root, factory) {\n    // Hack to make all exports of this module sha256 function object properties.\n    var exports = {};\n    factory(exports);\n    var sha256 = exports[\"default\"];\n    for (var k in exports) {\n        sha256[k] = exports[k];\n    }\n        \n    if (typeof module === 'object' && typeof module.exports === 'object') {\n        module.exports = sha256;\n    } else if (typeof define === 'function' && define.amd) {\n        define(function() { return sha256; }); \n    } else {\n        root.sha256 = sha256;\n    }\n})(this, function(exports) {\n\"use strict\";\nexports.__esModule = true;\n// SHA-256 (+ HMAC and PBKDF2) for JavaScript.\n//\n// Written in 2014-2016 by Dmitry Chestnykh.\n// Public domain, no warranty.\n//\n// Functions (accept and return Uint8Arrays):\n//\n//   sha256(message) -> hash\n//   sha256.hmac(key, message) -> mac\n//   sha256.pbkdf2(password, salt, rounds, dkLen) -> dk\n//\n//  Classes:\n//\n//   new sha256.Hash()\n//   new sha256.HMAC(key)\n//\nexports.digestLength = 32;\nexports.blockSize = 64;\n// SHA-256 constants\nvar K = new Uint32Array([\n    0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b,\n    0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01,\n    0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7,\n    0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n    0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152,\n    0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147,\n    0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc,\n    0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n    0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819,\n    0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08,\n    0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f,\n    0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n    0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n]);\nfunction hashBlocks(w, v, p, pos, len) {\n    var a, b, c, d, e, f, g, h, u, i, j, t1, t2;\n    while (len >= 64) {\n        a = v[0];\n        b = v[1];\n        c = v[2];\n        d = v[3];\n        e = v[4];\n        f = v[5];\n        g = v[6];\n        h = v[7];\n        for (i = 0; i < 16; i++) {\n            j = pos + i * 4;\n            w[i] = (((p[j] & 0xff) << 24) | ((p[j + 1] & 0xff) << 16) |\n                ((p[j + 2] & 0xff) << 8) | (p[j + 3] & 0xff));\n        }\n        for (i = 16; i < 64; i++) {\n            u = w[i - 2];\n            t1 = (u >>> 17 | u << (32 - 17)) ^ (u >>> 19 | u << (32 - 19)) ^ (u >>> 10);\n            u = w[i - 15];\n            t2 = (u >>> 7 | u << (32 - 7)) ^ (u >>> 18 | u << (32 - 18)) ^ (u >>> 3);\n            w[i] = (t1 + w[i - 7] | 0) + (t2 + w[i - 16] | 0);\n        }\n        for (i = 0; i < 64; i++) {\n            t1 = (((((e >>> 6 | e << (32 - 6)) ^ (e >>> 11 | e << (32 - 11)) ^\n                (e >>> 25 | e << (32 - 25))) + ((e & f) ^ (~e & g))) | 0) +\n                ((h + ((K[i] + w[i]) | 0)) | 0)) | 0;\n            t2 = (((a >>> 2 | a << (32 - 2)) ^ (a >>> 13 | a << (32 - 13)) ^\n                (a >>> 22 | a << (32 - 22))) + ((a & b) ^ (a & c) ^ (b & c))) | 0;\n            h = g;\n            g = f;\n            f = e;\n            e = (d + t1) | 0;\n            d = c;\n            c = b;\n            b = a;\n            a = (t1 + t2) | 0;\n        }\n        v[0] += a;\n        v[1] += b;\n        v[2] += c;\n        v[3] += d;\n        v[4] += e;\n        v[5] += f;\n        v[6] += g;\n        v[7] += h;\n        pos += 64;\n        len -= 64;\n    }\n    return pos;\n}\n// Hash implements SHA256 hash algorithm.\nvar Hash = /** @class */ (function () {\n    function Hash() {\n        this.digestLength = exports.digestLength;\n        this.blockSize = exports.blockSize;\n        // Note: Int32Array is used instead of Uint32Array for performance reasons.\n        this.state = new Int32Array(8); // hash state\n        this.temp = new Int32Array(64); // temporary state\n        this.buffer = new Uint8Array(128); // buffer for data to hash\n        this.bufferLength = 0; // number of bytes in buffer\n        this.bytesHashed = 0; // number of total bytes hashed\n        this.finished = false; // indicates whether the hash was finalized\n        this.reset();\n    }\n    // Resets hash state making it possible\n    // to re-use this instance to hash other data.\n    Hash.prototype.reset = function () {\n        this.state[0] = 0x6a09e667;\n        this.state[1] = 0xbb67ae85;\n        this.state[2] = 0x3c6ef372;\n        this.state[3] = 0xa54ff53a;\n        this.state[4] = 0x510e527f;\n        this.state[5] = 0x9b05688c;\n        this.state[6] = 0x1f83d9ab;\n        this.state[7] = 0x5be0cd19;\n        this.bufferLength = 0;\n        this.bytesHashed = 0;\n        this.finished = false;\n        return this;\n    };\n    // Cleans internal buffers and re-initializes hash state.\n    Hash.prototype.clean = function () {\n        for (var i = 0; i < this.buffer.length; i++) {\n            this.buffer[i] = 0;\n        }\n        for (var i = 0; i < this.temp.length; i++) {\n            this.temp[i] = 0;\n        }\n        this.reset();\n    };\n    // Updates hash state with the given data.\n    //\n    // Optionally, length of the data can be specified to hash\n    // fewer bytes than data.length.\n    //\n    // Throws error when trying to update already finalized hash:\n    // instance must be reset to use it again.\n    Hash.prototype.update = function (data, dataLength) {\n        if (dataLength === void 0) { dataLength = data.length; }\n        if (this.finished) {\n            throw new Error(\"SHA256: can't update because hash was finished.\");\n        }\n        var dataPos = 0;\n        this.bytesHashed += dataLength;\n        if (this.bufferLength > 0) {\n            while (this.bufferLength < 64 && dataLength > 0) {\n                this.buffer[this.bufferLength++] = data[dataPos++];\n                dataLength--;\n            }\n            if (this.bufferLength === 64) {\n                hashBlocks(this.temp, this.state, this.buffer, 0, 64);\n                this.bufferLength = 0;\n            }\n        }\n        if (dataLength >= 64) {\n            dataPos = hashBlocks(this.temp, this.state, data, dataPos, dataLength);\n            dataLength %= 64;\n        }\n        while (dataLength > 0) {\n            this.buffer[this.bufferLength++] = data[dataPos++];\n            dataLength--;\n        }\n        return this;\n    };\n    // Finalizes hash state and puts hash into out.\n    //\n    // If hash was already finalized, puts the same value.\n    Hash.prototype.finish = function (out) {\n        if (!this.finished) {\n            var bytesHashed = this.bytesHashed;\n            var left = this.bufferLength;\n            var bitLenHi = (bytesHashed / 0x20000000) | 0;\n            var bitLenLo = bytesHashed << 3;\n            var padLength = (bytesHashed % 64 < 56) ? 64 : 128;\n            this.buffer[left] = 0x80;\n            for (var i = left + 1; i < padLength - 8; i++) {\n                this.buffer[i] = 0;\n            }\n            this.buffer[padLength - 8] = (bitLenHi >>> 24) & 0xff;\n            this.buffer[padLength - 7] = (bitLenHi >>> 16) & 0xff;\n            this.buffer[padLength - 6] = (bitLenHi >>> 8) & 0xff;\n            this.buffer[padLength - 5] = (bitLenHi >>> 0) & 0xff;\n            this.buffer[padLength - 4] = (bitLenLo >>> 24) & 0xff;\n            this.buffer[padLength - 3] = (bitLenLo >>> 16) & 0xff;\n            this.buffer[padLength - 2] = (bitLenLo >>> 8) & 0xff;\n            this.buffer[padLength - 1] = (bitLenLo >>> 0) & 0xff;\n            hashBlocks(this.temp, this.state, this.buffer, 0, padLength);\n            this.finished = true;\n        }\n        for (var i = 0; i < 8; i++) {\n            out[i * 4 + 0] = (this.state[i] >>> 24) & 0xff;\n            out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;\n            out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;\n            out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;\n        }\n        return this;\n    };\n    // Returns the final hash digest.\n    Hash.prototype.digest = function () {\n        var out = new Uint8Array(this.digestLength);\n        this.finish(out);\n        return out;\n    };\n    // Internal function for use in HMAC for optimization.\n    Hash.prototype._saveState = function (out) {\n        for (var i = 0; i < this.state.length; i++) {\n            out[i] = this.state[i];\n        }\n    };\n    // Internal function for use in HMAC for optimization.\n    Hash.prototype._restoreState = function (from, bytesHashed) {\n        for (var i = 0; i < this.state.length; i++) {\n            this.state[i] = from[i];\n        }\n        this.bytesHashed = bytesHashed;\n        this.finished = false;\n        this.bufferLength = 0;\n    };\n    return Hash;\n}());\nexports.Hash = Hash;\n// HMAC implements HMAC-SHA256 message authentication algorithm.\nvar HMAC = /** @class */ (function () {\n    function HMAC(key) {\n        this.inner = new Hash();\n        this.outer = new Hash();\n        this.blockSize = this.inner.blockSize;\n        this.digestLength = this.inner.digestLength;\n        var pad = new Uint8Array(this.blockSize);\n        if (key.length > this.blockSize) {\n            (new Hash()).update(key).finish(pad).clean();\n        }\n        else {\n            for (var i = 0; i < key.length; i++) {\n                pad[i] = key[i];\n            }\n        }\n        for (var i = 0; i < pad.length; i++) {\n            pad[i] ^= 0x36;\n        }\n        this.inner.update(pad);\n        for (var i = 0; i < pad.length; i++) {\n            pad[i] ^= 0x36 ^ 0x5c;\n        }\n        this.outer.update(pad);\n        this.istate = new Uint32Array(8);\n        this.ostate = new Uint32Array(8);\n        this.inner._saveState(this.istate);\n        this.outer._saveState(this.ostate);\n        for (var i = 0; i < pad.length; i++) {\n            pad[i] = 0;\n        }\n    }\n    // Returns HMAC state to the state initialized with key\n    // to make it possible to run HMAC over the other data with the same\n    // key without creating a new instance.\n    HMAC.prototype.reset = function () {\n        this.inner._restoreState(this.istate, this.inner.blockSize);\n        this.outer._restoreState(this.ostate, this.outer.blockSize);\n        return this;\n    };\n    // Cleans HMAC state.\n    HMAC.prototype.clean = function () {\n        for (var i = 0; i < this.istate.length; i++) {\n            this.ostate[i] = this.istate[i] = 0;\n        }\n        this.inner.clean();\n        this.outer.clean();\n    };\n    // Updates state with provided data.\n    HMAC.prototype.update = function (data) {\n        this.inner.update(data);\n        return this;\n    };\n    // Finalizes HMAC and puts the result in out.\n    HMAC.prototype.finish = function (out) {\n        if (this.outer.finished) {\n            this.outer.finish(out);\n        }\n        else {\n            this.inner.finish(out);\n            this.outer.update(out, this.digestLength).finish(out);\n        }\n        return this;\n    };\n    // Returns message authentication code.\n    HMAC.prototype.digest = function () {\n        var out = new Uint8Array(this.digestLength);\n        this.finish(out);\n        return out;\n    };\n    return HMAC;\n}());\nexports.HMAC = HMAC;\n// Returns SHA256 hash of data.\nfunction hash(data) {\n    var h = (new Hash()).update(data);\n    var digest = h.digest();\n    h.clean();\n    return digest;\n}\nexports.hash = hash;\n// Function hash is both available as module.hash and as default export.\nexports[\"default\"] = hash;\n// Returns HMAC-SHA256 of data under the key.\nfunction hmac(key, data) {\n    var h = (new HMAC(key)).update(data);\n    var digest = h.digest();\n    h.clean();\n    return digest;\n}\nexports.hmac = hmac;\n// Fills hkdf buffer like this:\n// T(1) = HMAC-Hash(PRK, T(0) | info | 0x01)\nfunction fillBuffer(buffer, hmac, info, counter) {\n    // Counter is a byte value: check if it overflowed.\n    var num = counter[0];\n    if (num === 0) {\n        throw new Error(\"hkdf: cannot expand more\");\n    }\n    // Prepare HMAC instance for new data with old key.\n    hmac.reset();\n    // Hash in previous output if it was generated\n    // (i.e. counter is greater than 1).\n    if (num > 1) {\n        hmac.update(buffer);\n    }\n    // Hash in info if it exists.\n    if (info) {\n        hmac.update(info);\n    }\n    // Hash in the counter.\n    hmac.update(counter);\n    // Output result to buffer and clean HMAC instance.\n    hmac.finish(buffer);\n    // Increment counter inside typed array, this works properly.\n    counter[0]++;\n}\nvar hkdfSalt = new Uint8Array(exports.digestLength); // Filled with zeroes.\nfunction hkdf(key, salt, info, length) {\n    if (salt === void 0) { salt = hkdfSalt; }\n    if (length === void 0) { length = 32; }\n    var counter = new Uint8Array([1]);\n    // HKDF-Extract uses salt as HMAC key, and key as data.\n    var okm = hmac(salt, key);\n    // Initialize HMAC for expanding with extracted key.\n    // Ensure no collisions with `hmac` function.\n    var hmac_ = new HMAC(okm);\n    // Allocate buffer.\n    var buffer = new Uint8Array(hmac_.digestLength);\n    var bufpos = buffer.length;\n    var out = new Uint8Array(length);\n    for (var i = 0; i < length; i++) {\n        if (bufpos === buffer.length) {\n            fillBuffer(buffer, hmac_, info, counter);\n            bufpos = 0;\n        }\n        out[i] = buffer[bufpos++];\n    }\n    hmac_.clean();\n    buffer.fill(0);\n    counter.fill(0);\n    return out;\n}\nexports.hkdf = hkdf;\n// Derives a key from password and salt using PBKDF2-HMAC-SHA256\n// with the given number of iterations.\n//\n// The number of bytes returned is equal to dkLen.\n//\n// (For better security, avoid dkLen greater than hash length - 32 bytes).\nfunction pbkdf2(password, salt, iterations, dkLen) {\n    var prf = new HMAC(password);\n    var len = prf.digestLength;\n    var ctr = new Uint8Array(4);\n    var t = new Uint8Array(len);\n    var u = new Uint8Array(len);\n    var dk = new Uint8Array(dkLen);\n    for (var i = 0; i * len < dkLen; i++) {\n        var c = i + 1;\n        ctr[0] = (c >>> 24) & 0xff;\n        ctr[1] = (c >>> 16) & 0xff;\n        ctr[2] = (c >>> 8) & 0xff;\n        ctr[3] = (c >>> 0) & 0xff;\n        prf.reset();\n        prf.update(salt);\n        prf.update(ctr);\n        prf.finish(u);\n        for (var j = 0; j < len; j++) {\n            t[j] = u[j];\n        }\n        for (var j = 2; j <= iterations; j++) {\n            prf.reset();\n            prf.update(u).finish(u);\n            for (var k = 0; k < len; k++) {\n                t[k] ^= u[k];\n            }\n        }\n        for (var j = 0; j < len && i * len + j < dkLen; j++) {\n            dk[i * len + j] = t[j];\n        }\n    }\n    for (var i = 0; i < len; i++) {\n        t[i] = u[i] = 0;\n    }\n    for (var i = 0; i < 4; i++) {\n        ctr[i] = 0;\n    }\n    prf.clean();\n    return dk;\n}\nexports.pbkdf2 = pbkdf2;\n});\n","/*! jsonpath 1.1.1 */\n\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.jsonpath = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({\"./aesprim\":[function(require,module,exports){\n/*\n  Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>\n  Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>\n  Copyright (C) 2013 Mathias Bynens <mathias@qiwi.be>\n  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>\n  Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>\n  Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>\n  Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>\n  Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>\n  Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>\n  Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>\n\n  Redistribution and use in source and binary forms, with or without\n  modification, are permitted provided that the following conditions are met:\n\n    * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n    * Redistributions in binary form must reproduce the above copyright\n      notice, this list of conditions and the following disclaimer in the\n      documentation and/or other materials provided with the distribution.\n\n  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\n  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n/*jslint bitwise:true plusplus:true */\n/*global esprima:true, define:true, exports:true, window: true,\nthrowErrorTolerant: true,\nthrowError: true, generateStatement: true, peek: true,\nparseAssignmentExpression: true, parseBlock: true, parseExpression: true,\nparseFunctionDeclaration: true, parseFunctionExpression: true,\nparseFunctionSourceElements: true, parseVariableIdentifier: true,\nparseLeftHandSideExpression: true,\nparseUnaryExpression: true,\nparseStatement: true, parseSourceElement: true */\n\n(function (root, factory) {\n    'use strict';\n\n    // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,\n    // Rhino, and plain browser loading.\n\n    /* istanbul ignore next */\n    if (typeof define === 'function' && define.amd) {\n        define(['exports'], factory);\n    } else if (typeof exports !== 'undefined') {\n        factory(exports);\n    } else {\n        factory((root.esprima = {}));\n    }\n}(this, function (exports) {\n    'use strict';\n\n    var Token,\n        TokenName,\n        FnExprTokens,\n        Syntax,\n        PropertyKind,\n        Messages,\n        Regex,\n        SyntaxTreeDelegate,\n        source,\n        strict,\n        index,\n        lineNumber,\n        lineStart,\n        length,\n        delegate,\n        lookahead,\n        state,\n        extra;\n\n    Token = {\n        BooleanLiteral: 1,\n        EOF: 2,\n        Identifier: 3,\n        Keyword: 4,\n        NullLiteral: 5,\n        NumericLiteral: 6,\n        Punctuator: 7,\n        StringLiteral: 8,\n        RegularExpression: 9\n    };\n\n    TokenName = {};\n    TokenName[Token.BooleanLiteral] = 'Boolean';\n    TokenName[Token.EOF] = '<end>';\n    TokenName[Token.Identifier] = 'Identifier';\n    TokenName[Token.Keyword] = 'Keyword';\n    TokenName[Token.NullLiteral] = 'Null';\n    TokenName[Token.NumericLiteral] = 'Numeric';\n    TokenName[Token.Punctuator] = 'Punctuator';\n    TokenName[Token.StringLiteral] = 'String';\n    TokenName[Token.RegularExpression] = 'RegularExpression';\n\n    // A function following one of those tokens is an expression.\n    FnExprTokens = ['(', '{', '[', 'in', 'typeof', 'instanceof', 'new',\n                    'return', 'case', 'delete', 'throw', 'void',\n                    // assignment operators\n                    '=', '+=', '-=', '*=', '/=', '%=', '<<=', '>>=', '>>>=',\n                    '&=', '|=', '^=', ',',\n                    // binary/unary operators\n                    '+', '-', '*', '/', '%', '++', '--', '<<', '>>', '>>>', '&',\n                    '|', '^', '!', '~', '&&', '||', '?', ':', '===', '==', '>=',\n                    '<=', '<', '>', '!=', '!=='];\n\n    Syntax = {\n        AssignmentExpression: 'AssignmentExpression',\n        ArrayExpression: 'ArrayExpression',\n        BlockStatement: 'BlockStatement',\n        BinaryExpression: 'BinaryExpression',\n        BreakStatement: 'BreakStatement',\n        CallExpression: 'CallExpression',\n        CatchClause: 'CatchClause',\n        ConditionalExpression: 'ConditionalExpression',\n        ContinueStatement: 'ContinueStatement',\n        DoWhileStatement: 'DoWhileStatement',\n        DebuggerStatement: 'DebuggerStatement',\n        EmptyStatement: 'EmptyStatement',\n        ExpressionStatement: 'ExpressionStatement',\n        ForStatement: 'ForStatement',\n        ForInStatement: 'ForInStatement',\n        FunctionDeclaration: 'FunctionDeclaration',\n        FunctionExpression: 'FunctionExpression',\n        Identifier: 'Identifier',\n        IfStatement: 'IfStatement',\n        Literal: 'Literal',\n        LabeledStatement: 'LabeledStatement',\n        LogicalExpression: 'LogicalExpression',\n        MemberExpression: 'MemberExpression',\n        NewExpression: 'NewExpression',\n        ObjectExpression: 'ObjectExpression',\n        Program: 'Program',\n        Property: 'Property',\n        ReturnStatement: 'ReturnStatement',\n        SequenceExpression: 'SequenceExpression',\n        SwitchStatement: 'SwitchStatement',\n        SwitchCase: 'SwitchCase',\n        ThisExpression: 'ThisExpression',\n        ThrowStatement: 'ThrowStatement',\n        TryStatement: 'TryStatement',\n        UnaryExpression: 'UnaryExpression',\n        UpdateExpression: 'UpdateExpression',\n        VariableDeclaration: 'VariableDeclaration',\n        VariableDeclarator: 'VariableDeclarator',\n        WhileStatement: 'WhileStatement',\n        WithStatement: 'WithStatement'\n    };\n\n    PropertyKind = {\n        Data: 1,\n        Get: 2,\n        Set: 4\n    };\n\n    // Error messages should be identical to V8.\n    Messages = {\n        UnexpectedToken:  'Unexpected token %0',\n        UnexpectedNumber:  'Unexpected number',\n        UnexpectedString:  'Unexpected string',\n        UnexpectedIdentifier:  'Unexpected identifier',\n        UnexpectedReserved:  'Unexpected reserved word',\n        UnexpectedEOS:  'Unexpected end of input',\n        NewlineAfterThrow:  'Illegal newline after throw',\n        InvalidRegExp: 'Invalid regular expression',\n        UnterminatedRegExp:  'Invalid regular expression: missing /',\n        InvalidLHSInAssignment:  'Invalid left-hand side in assignment',\n        InvalidLHSInForIn:  'Invalid left-hand side in for-in',\n        MultipleDefaultsInSwitch: 'More than one default clause in switch statement',\n        NoCatchOrFinally:  'Missing catch or finally after try',\n        UnknownLabel: 'Undefined label \\'%0\\'',\n        Redeclaration: '%0 \\'%1\\' has already been declared',\n        IllegalContinue: 'Illegal continue statement',\n        IllegalBreak: 'Illegal break statement',\n        IllegalReturn: 'Illegal return statement',\n        StrictModeWith:  'Strict mode code may not include a with statement',\n        StrictCatchVariable:  'Catch variable may not be eval or arguments in strict mode',\n        StrictVarName:  'Variable name may not be eval or arguments in strict mode',\n        StrictParamName:  'Parameter name eval or arguments is not allowed in strict mode',\n        StrictParamDupe: 'Strict mode function may not have duplicate parameter names',\n        StrictFunctionName:  'Function name may not be eval or arguments in strict mode',\n        StrictOctalLiteral:  'Octal literals are not allowed in strict mode.',\n        StrictDelete:  'Delete of an unqualified identifier in strict mode.',\n        StrictDuplicateProperty:  'Duplicate data property in object literal not allowed in strict mode',\n        AccessorDataProperty:  'Object literal may not have data and accessor property with the same name',\n        AccessorGetSet:  'Object literal may not have multiple get/set accessors with the same name',\n        StrictLHSAssignment:  'Assignment to eval or arguments is not allowed in strict mode',\n        StrictLHSPostfix:  'Postfix increment/decrement may not have eval or arguments operand in strict mode',\n        StrictLHSPrefix:  'Prefix increment/decrement may not have eval or arguments operand in strict mode',\n        StrictReservedWord:  'Use of future reserved word in strict mode'\n    };\n\n    // See also tools/generate-unicode-regex.py.\n    Regex = {\n        NonAsciiIdentifierStart: new RegExp('[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\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\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\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\\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-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\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-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F0\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\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\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\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-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]'),\n        NonAsciiIdentifierPart: new RegExp('[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0\\u08A2-\\u08AC\\u08E4-\\u08FE\\u0900-\\u0963\\u0966-\\u096F\\u0971-\\u0977\\u0979-\\u097F\\u0981-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E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0D02\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\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\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F0\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1D00-\\u1DE6\\u1DFC-\\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\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA697\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A\\uAA7B\\uAA80-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE26\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]')\n    };\n\n    // Ensure the condition is true, otherwise throw an error.\n    // This is only to have a better contract semantic, i.e. another safety net\n    // to catch a logic error. The condition shall be fulfilled in normal case.\n    // Do NOT use this to enforce a certain condition on any user input.\n\n    function assert(condition, message) {\n        /* istanbul ignore if */\n        if (!condition) {\n            throw new Error('ASSERT: ' + message);\n        }\n    }\n\n    function isDecimalDigit(ch) {\n        return (ch >= 48 && ch <= 57);   // 0..9\n    }\n\n    function isHexDigit(ch) {\n        return '0123456789abcdefABCDEF'.indexOf(ch) >= 0;\n    }\n\n    function isOctalDigit(ch) {\n        return '01234567'.indexOf(ch) >= 0;\n    }\n\n\n    // 7.2 White Space\n\n    function isWhiteSpace(ch) {\n        return (ch === 0x20) || (ch === 0x09) || (ch === 0x0B) || (ch === 0x0C) || (ch === 0xA0) ||\n            (ch >= 0x1680 && [0x1680, 0x180E, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000, 0xFEFF].indexOf(ch) >= 0);\n    }\n\n    // 7.3 Line Terminators\n\n    function isLineTerminator(ch) {\n        return (ch === 0x0A) || (ch === 0x0D) || (ch === 0x2028) || (ch === 0x2029);\n    }\n\n    // 7.6 Identifier Names and Identifiers\n\n    function isIdentifierStart(ch) {\n        return (ch == 0x40) ||  (ch === 0x24) || (ch === 0x5F) ||  // $ (dollar) and _ (underscore)\n            (ch >= 0x41 && ch <= 0x5A) ||         // A..Z\n            (ch >= 0x61 && ch <= 0x7A) ||         // a..z\n            (ch === 0x5C) ||                      // \\ (backslash)\n            ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));\n    }\n\n    function isIdentifierPart(ch) {\n        return (ch === 0x24) || (ch === 0x5F) ||  // $ (dollar) and _ (underscore)\n            (ch >= 0x41 && ch <= 0x5A) ||         // A..Z\n            (ch >= 0x61 && ch <= 0x7A) ||         // a..z\n            (ch >= 0x30 && ch <= 0x39) ||         // 0..9\n            (ch === 0x5C) ||                      // \\ (backslash)\n            ((ch >= 0x80) && Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch)));\n    }\n\n    // 7.6.1.2 Future Reserved Words\n\n    function isFutureReservedWord(id) {\n        switch (id) {\n        case 'class':\n        case 'enum':\n        case 'export':\n        case 'extends':\n        case 'import':\n        case 'super':\n            return true;\n        default:\n            return false;\n        }\n    }\n\n    function isStrictModeReservedWord(id) {\n        switch (id) {\n        case 'implements':\n        case 'interface':\n        case 'package':\n        case 'private':\n        case 'protected':\n        case 'public':\n        case 'static':\n        case 'yield':\n        case 'let':\n            return true;\n        default:\n            return false;\n        }\n    }\n\n    function isRestrictedWord(id) {\n        return id === 'eval' || id === 'arguments';\n    }\n\n    // 7.6.1.1 Keywords\n\n    function isKeyword(id) {\n        if (strict && isStrictModeReservedWord(id)) {\n            return true;\n        }\n\n        // 'const' is specialized as Keyword in V8.\n        // 'yield' and 'let' are for compatiblity with SpiderMonkey and ES.next.\n        // Some others are from future reserved words.\n\n        switch (id.length) {\n        case 2:\n            return (id === 'if') || (id === 'in') || (id === 'do');\n        case 3:\n            return (id === 'var') || (id === 'for') || (id === 'new') ||\n                (id === 'try') || (id === 'let');\n        case 4:\n            return (id === 'this') || (id === 'else') || (id === 'case') ||\n                (id === 'void') || (id === 'with') || (id === 'enum');\n        case 5:\n            return (id === 'while') || (id === 'break') || (id === 'catch') ||\n                (id === 'throw') || (id === 'const') || (id === 'yield') ||\n                (id === 'class') || (id === 'super');\n        case 6:\n            return (id === 'return') || (id === 'typeof') || (id === 'delete') ||\n                (id === 'switch') || (id === 'export') || (id === 'import');\n        case 7:\n            return (id === 'default') || (id === 'finally') || (id === 'extends');\n        case 8:\n            return (id === 'function') || (id === 'continue') || (id === 'debugger');\n        case 10:\n            return (id === 'instanceof');\n        default:\n            return false;\n        }\n    }\n\n    // 7.4 Comments\n\n    function addComment(type, value, start, end, loc) {\n        var comment, attacher;\n\n        assert(typeof start === 'number', 'Comment must have valid position');\n\n        // Because the way the actual token is scanned, often the comments\n        // (if any) are skipped twice during the lexical analysis.\n        // Thus, we need to skip adding a comment if the comment array already\n        // handled it.\n        if (state.lastCommentStart >= start) {\n            return;\n        }\n        state.lastCommentStart = start;\n\n        comment = {\n            type: type,\n            value: value\n        };\n        if (extra.range) {\n            comment.range = [start, end];\n        }\n        if (extra.loc) {\n            comment.loc = loc;\n        }\n        extra.comments.push(comment);\n        if (extra.attachComment) {\n            extra.leadingComments.push(comment);\n            extra.trailingComments.push(comment);\n        }\n    }\n\n    function skipSingleLineComment(offset) {\n        var start, loc, ch, comment;\n\n        start = index - offset;\n        loc = {\n            start: {\n                line: lineNumber,\n                column: index - lineStart - offset\n            }\n        };\n\n        while (index < length) {\n            ch = source.charCodeAt(index);\n            ++index;\n            if (isLineTerminator(ch)) {\n                if (extra.comments) {\n                    comment = source.slice(start + offset, index - 1);\n                    loc.end = {\n                        line: lineNumber,\n                        column: index - lineStart - 1\n                    };\n                    addComment('Line', comment, start, index - 1, loc);\n                }\n                if (ch === 13 && source.charCodeAt(index) === 10) {\n                    ++index;\n                }\n                ++lineNumber;\n                lineStart = index;\n                return;\n            }\n        }\n\n        if (extra.comments) {\n            comment = source.slice(start + offset, index);\n            loc.end = {\n                line: lineNumber,\n                column: index - lineStart\n            };\n            addComment('Line', comment, start, index, loc);\n        }\n    }\n\n    function skipMultiLineComment() {\n        var start, loc, ch, comment;\n\n        if (extra.comments) {\n            start = index - 2;\n            loc = {\n                start: {\n                    line: lineNumber,\n                    column: index - lineStart - 2\n                }\n            };\n        }\n\n        while (index < length) {\n            ch = source.charCodeAt(index);\n            if (isLineTerminator(ch)) {\n                if (ch === 0x0D && source.charCodeAt(index + 1) === 0x0A) {\n                    ++index;\n                }\n                ++lineNumber;\n                ++index;\n                lineStart = index;\n                if (index >= length) {\n                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n                }\n            } else if (ch === 0x2A) {\n                // Block comment ends with '*/'.\n                if (source.charCodeAt(index + 1) === 0x2F) {\n                    ++index;\n                    ++index;\n                    if (extra.comments) {\n                        comment = source.slice(start + 2, index - 2);\n                        loc.end = {\n                            line: lineNumber,\n                            column: index - lineStart\n                        };\n                        addComment('Block', comment, start, index, loc);\n                    }\n                    return;\n                }\n                ++index;\n            } else {\n                ++index;\n            }\n        }\n\n        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n    }\n\n    function skipComment() {\n        var ch, start;\n\n        start = (index === 0);\n        while (index < length) {\n            ch = source.charCodeAt(index);\n\n            if (isWhiteSpace(ch)) {\n                ++index;\n            } else if (isLineTerminator(ch)) {\n                ++index;\n                if (ch === 0x0D && source.charCodeAt(index) === 0x0A) {\n                    ++index;\n                }\n                ++lineNumber;\n                lineStart = index;\n                start = true;\n            } else if (ch === 0x2F) { // U+002F is '/'\n                ch = source.charCodeAt(index + 1);\n                if (ch === 0x2F) {\n                    ++index;\n                    ++index;\n                    skipSingleLineComment(2);\n                    start = true;\n                } else if (ch === 0x2A) {  // U+002A is '*'\n                    ++index;\n                    ++index;\n                    skipMultiLineComment();\n                } else {\n                    break;\n                }\n            } else if (start && ch === 0x2D) { // U+002D is '-'\n                // U+003E is '>'\n                if ((source.charCodeAt(index + 1) === 0x2D) && (source.charCodeAt(index + 2) === 0x3E)) {\n                    // '-->' is a single-line comment\n                    index += 3;\n                    skipSingleLineComment(3);\n                } else {\n                    break;\n                }\n            } else if (ch === 0x3C) { // U+003C is '<'\n                if (source.slice(index + 1, index + 4) === '!--') {\n                    ++index; // `<`\n                    ++index; // `!`\n                    ++index; // `-`\n                    ++index; // `-`\n                    skipSingleLineComment(4);\n                } else {\n                    break;\n                }\n            } else {\n                break;\n            }\n        }\n    }\n\n    function scanHexEscape(prefix) {\n        var i, len, ch, code = 0;\n\n        len = (prefix === 'u') ? 4 : 2;\n        for (i = 0; i < len; ++i) {\n            if (index < length && isHexDigit(source[index])) {\n                ch = source[index++];\n                code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase());\n            } else {\n                return '';\n            }\n        }\n        return String.fromCharCode(code);\n    }\n\n    function getEscapedIdentifier() {\n        var ch, id;\n\n        ch = source.charCodeAt(index++);\n        id = String.fromCharCode(ch);\n\n        // '\\u' (U+005C, U+0075) denotes an escaped character.\n        if (ch === 0x5C) {\n            if (source.charCodeAt(index) !== 0x75) {\n                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n            }\n            ++index;\n            ch = scanHexEscape('u');\n            if (!ch || ch === '\\\\' || !isIdentifierStart(ch.charCodeAt(0))) {\n                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n            }\n            id = ch;\n        }\n\n        while (index < length) {\n            ch = source.charCodeAt(index);\n            if (!isIdentifierPart(ch)) {\n                break;\n            }\n            ++index;\n            id += String.fromCharCode(ch);\n\n            // '\\u' (U+005C, U+0075) denotes an escaped character.\n            if (ch === 0x5C) {\n                id = id.substr(0, id.length - 1);\n                if (source.charCodeAt(index) !== 0x75) {\n                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n                }\n                ++index;\n                ch = scanHexEscape('u');\n                if (!ch || ch === '\\\\' || !isIdentifierPart(ch.charCodeAt(0))) {\n                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n                }\n                id += ch;\n            }\n        }\n\n        return id;\n    }\n\n    function getIdentifier() {\n        var start, ch;\n\n        start = index++;\n        while (index < length) {\n            ch = source.charCodeAt(index);\n            if (ch === 0x5C) {\n                // Blackslash (U+005C) marks Unicode escape sequence.\n                index = start;\n                return getEscapedIdentifier();\n            }\n            if (isIdentifierPart(ch)) {\n                ++index;\n            } else {\n                break;\n            }\n        }\n\n        return source.slice(start, index);\n    }\n\n    function scanIdentifier() {\n        var start, id, type;\n\n        start = index;\n\n        // Backslash (U+005C) starts an escaped character.\n        id = (source.charCodeAt(index) === 0x5C) ? getEscapedIdentifier() : getIdentifier();\n\n        // There is no keyword or literal with only one character.\n        // Thus, it must be an identifier.\n        if (id.length === 1) {\n            type = Token.Identifier;\n        } else if (isKeyword(id)) {\n            type = Token.Keyword;\n        } else if (id === 'null') {\n            type = Token.NullLiteral;\n        } else if (id === 'true' || id === 'false') {\n            type = Token.BooleanLiteral;\n        } else {\n            type = Token.Identifier;\n        }\n\n        return {\n            type: type,\n            value: id,\n            lineNumber: lineNumber,\n            lineStart: lineStart,\n            start: start,\n            end: index\n        };\n    }\n\n\n    // 7.7 Punctuators\n\n    function scanPunctuator() {\n        var start = index,\n            code = source.charCodeAt(index),\n            code2,\n            ch1 = source[index],\n            ch2,\n            ch3,\n            ch4;\n\n        switch (code) {\n\n        // Check for most common single-character punctuators.\n        case 0x2E:  // . dot\n        case 0x28:  // ( open bracket\n        case 0x29:  // ) close bracket\n        case 0x3B:  // ; semicolon\n        case 0x2C:  // , comma\n        case 0x7B:  // { open curly brace\n        case 0x7D:  // } close curly brace\n        case 0x5B:  // [\n        case 0x5D:  // ]\n        case 0x3A:  // :\n        case 0x3F:  // ?\n        case 0x7E:  // ~\n            ++index;\n            if (extra.tokenize) {\n                if (code === 0x28) {\n                    extra.openParenToken = extra.tokens.length;\n                } else if (code === 0x7B) {\n                    extra.openCurlyToken = extra.tokens.length;\n                }\n            }\n            return {\n                type: Token.Punctuator,\n                value: String.fromCharCode(code),\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n\n        default:\n            code2 = source.charCodeAt(index + 1);\n\n            // '=' (U+003D) marks an assignment or comparison operator.\n            if (code2 === 0x3D) {\n                switch (code) {\n                case 0x2B:  // +\n                case 0x2D:  // -\n                case 0x2F:  // /\n                case 0x3C:  // <\n                case 0x3E:  // >\n                case 0x5E:  // ^\n                case 0x7C:  // |\n                case 0x25:  // %\n                case 0x26:  // &\n                case 0x2A:  // *\n                    index += 2;\n                    return {\n                        type: Token.Punctuator,\n                        value: String.fromCharCode(code) + String.fromCharCode(code2),\n                        lineNumber: lineNumber,\n                        lineStart: lineStart,\n                        start: start,\n                        end: index\n                    };\n\n                case 0x21: // !\n                case 0x3D: // =\n                    index += 2;\n\n                    // !== and ===\n                    if (source.charCodeAt(index) === 0x3D) {\n                        ++index;\n                    }\n                    return {\n                        type: Token.Punctuator,\n                        value: source.slice(start, index),\n                        lineNumber: lineNumber,\n                        lineStart: lineStart,\n                        start: start,\n                        end: index\n                    };\n                }\n            }\n        }\n\n        // 4-character punctuator: >>>=\n\n        ch4 = source.substr(index, 4);\n\n        if (ch4 === '>>>=') {\n            index += 4;\n            return {\n                type: Token.Punctuator,\n                value: ch4,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n        }\n\n        // 3-character punctuators: === !== >>> <<= >>=\n\n        ch3 = ch4.substr(0, 3);\n\n        if (ch3 === '>>>' || ch3 === '<<=' || ch3 === '>>=') {\n            index += 3;\n            return {\n                type: Token.Punctuator,\n                value: ch3,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n        }\n\n        // Other 2-character punctuators: ++ -- << >> && ||\n        ch2 = ch3.substr(0, 2);\n\n        if ((ch1 === ch2[1] && ('+-<>&|'.indexOf(ch1) >= 0)) || ch2 === '=>') {\n            index += 2;\n            return {\n                type: Token.Punctuator,\n                value: ch2,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n        }\n\n        // 1-character punctuators: < > = ! + - * % & | ^ /\n        if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {\n            ++index;\n            return {\n                type: Token.Punctuator,\n                value: ch1,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n        }\n\n        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n    }\n\n    // 7.8.3 Numeric Literals\n\n    function scanHexLiteral(start) {\n        var number = '';\n\n        while (index < length) {\n            if (!isHexDigit(source[index])) {\n                break;\n            }\n            number += source[index++];\n        }\n\n        if (number.length === 0) {\n            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n        }\n\n        if (isIdentifierStart(source.charCodeAt(index))) {\n            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n        }\n\n        return {\n            type: Token.NumericLiteral,\n            value: parseInt('0x' + number, 16),\n            lineNumber: lineNumber,\n            lineStart: lineStart,\n            start: start,\n            end: index\n        };\n    }\n\n    function scanOctalLiteral(start) {\n        var number = '0' + source[index++];\n        while (index < length) {\n            if (!isOctalDigit(source[index])) {\n                break;\n            }\n            number += source[index++];\n        }\n\n        if (isIdentifierStart(source.charCodeAt(index)) || isDecimalDigit(source.charCodeAt(index))) {\n            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n        }\n\n        return {\n            type: Token.NumericLiteral,\n            value: parseInt(number, 8),\n            octal: true,\n            lineNumber: lineNumber,\n            lineStart: lineStart,\n            start: start,\n            end: index\n        };\n    }\n\n    function scanNumericLiteral() {\n        var number, start, ch;\n\n        ch = source[index];\n        assert(isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'),\n            'Numeric literal must start with a decimal digit or a decimal point');\n\n        start = index;\n        number = '';\n        if (ch !== '.') {\n            number = source[index++];\n            ch = source[index];\n\n            // Hex number starts with '0x'.\n            // Octal number starts with '0'.\n            if (number === '0') {\n                if (ch === 'x' || ch === 'X') {\n                    ++index;\n                    return scanHexLiteral(start);\n                }\n                if (isOctalDigit(ch)) {\n                    return scanOctalLiteral(start);\n                }\n\n                // decimal number starts with '0' such as '09' is illegal.\n                if (ch && isDecimalDigit(ch.charCodeAt(0))) {\n                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n                }\n            }\n\n            while (isDecimalDigit(source.charCodeAt(index))) {\n                number += source[index++];\n            }\n            ch = source[index];\n        }\n\n        if (ch === '.') {\n            number += source[index++];\n            while (isDecimalDigit(source.charCodeAt(index))) {\n                number += source[index++];\n            }\n            ch = source[index];\n        }\n\n        if (ch === 'e' || ch === 'E') {\n            number += source[index++];\n\n            ch = source[index];\n            if (ch === '+' || ch === '-') {\n                number += source[index++];\n            }\n            if (isDecimalDigit(source.charCodeAt(index))) {\n                while (isDecimalDigit(source.charCodeAt(index))) {\n                    number += source[index++];\n                }\n            } else {\n                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n            }\n        }\n\n        if (isIdentifierStart(source.charCodeAt(index))) {\n            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n        }\n\n        return {\n            type: Token.NumericLiteral,\n            value: parseFloat(number),\n            lineNumber: lineNumber,\n            lineStart: lineStart,\n            start: start,\n            end: index\n        };\n    }\n\n    // 7.8.4 String Literals\n\n    function scanStringLiteral() {\n        var str = '', quote, start, ch, code, unescaped, restore, octal = false, startLineNumber, startLineStart;\n        startLineNumber = lineNumber;\n        startLineStart = lineStart;\n\n        quote = source[index];\n        assert((quote === '\\'' || quote === '\"'),\n            'String literal must starts with a quote');\n\n        start = index;\n        ++index;\n\n        while (index < length) {\n            ch = source[index++];\n\n            if (ch === quote) {\n                quote = '';\n                break;\n            } else if (ch === '\\\\') {\n                ch = source[index++];\n                if (!ch || !isLineTerminator(ch.charCodeAt(0))) {\n                    switch (ch) {\n                    case 'u':\n                    case 'x':\n                        restore = index;\n                        unescaped = scanHexEscape(ch);\n                        if (unescaped) {\n                            str += unescaped;\n                        } else {\n                            index = restore;\n                            str += ch;\n                        }\n                        break;\n                    case 'n':\n                        str += '\\n';\n                        break;\n                    case 'r':\n                        str += '\\r';\n                        break;\n                    case 't':\n                        str += '\\t';\n                        break;\n                    case 'b':\n                        str += '\\b';\n                        break;\n                    case 'f':\n                        str += '\\f';\n                        break;\n                    case 'v':\n                        str += '\\x0B';\n                        break;\n\n                    default:\n                        if (isOctalDigit(ch)) {\n                            code = '01234567'.indexOf(ch);\n\n                            // \\0 is not octal escape sequence\n                            if (code !== 0) {\n                                octal = true;\n                            }\n\n                            if (index < length && isOctalDigit(source[index])) {\n                                octal = true;\n                                code = code * 8 + '01234567'.indexOf(source[index++]);\n\n                                // 3 digits are only allowed when string starts\n                                // with 0, 1, 2, 3\n                                if ('0123'.indexOf(ch) >= 0 &&\n                                        index < length &&\n                                        isOctalDigit(source[index])) {\n                                    code = code * 8 + '01234567'.indexOf(source[index++]);\n                                }\n                            }\n                            str += String.fromCharCode(code);\n                        } else {\n                            str += ch;\n                        }\n                        break;\n                    }\n                } else {\n                    ++lineNumber;\n                    if (ch ===  '\\r' && source[index] === '\\n') {\n                        ++index;\n                    }\n                    lineStart = index;\n                }\n            } else if (isLineTerminator(ch.charCodeAt(0))) {\n                break;\n            } else {\n                str += ch;\n            }\n        }\n\n        if (quote !== '') {\n            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');\n        }\n\n        return {\n            type: Token.StringLiteral,\n            value: str,\n            octal: octal,\n            startLineNumber: startLineNumber,\n            startLineStart: startLineStart,\n            lineNumber: lineNumber,\n            lineStart: lineStart,\n            start: start,\n            end: index\n        };\n    }\n\n    function testRegExp(pattern, flags) {\n        var value;\n        try {\n            value = new RegExp(pattern, flags);\n        } catch (e) {\n            throwError({}, Messages.InvalidRegExp);\n        }\n        return value;\n    }\n\n    function scanRegExpBody() {\n        var ch, str, classMarker, terminated, body;\n\n        ch = source[index];\n        assert(ch === '/', 'Regular expression literal must start with a slash');\n        str = source[index++];\n\n        classMarker = false;\n        terminated = false;\n        while (index < length) {\n            ch = source[index++];\n            str += ch;\n            if (ch === '\\\\') {\n                ch = source[index++];\n                // ECMA-262 7.8.5\n                if (isLineTerminator(ch.charCodeAt(0))) {\n                    throwError({}, Messages.UnterminatedRegExp);\n                }\n                str += ch;\n            } else if (isLineTerminator(ch.charCodeAt(0))) {\n                throwError({}, Messages.UnterminatedRegExp);\n            } else if (classMarker) {\n                if (ch === ']') {\n                    classMarker = false;\n                }\n            } else {\n                if (ch === '/') {\n                    terminated = true;\n                    break;\n                } else if (ch === '[') {\n                    classMarker = true;\n                }\n            }\n        }\n\n        if (!terminated) {\n            throwError({}, Messages.UnterminatedRegExp);\n        }\n\n        // Exclude leading and trailing slash.\n        body = str.substr(1, str.length - 2);\n        return {\n            value: body,\n            literal: str\n        };\n    }\n\n    function scanRegExpFlags() {\n        var ch, str, flags, restore;\n\n        str = '';\n        flags = '';\n        while (index < length) {\n            ch = source[index];\n            if (!isIdentifierPart(ch.charCodeAt(0))) {\n                break;\n            }\n\n            ++index;\n            if (ch === '\\\\' && index < length) {\n                ch = source[index];\n                if (ch === 'u') {\n                    ++index;\n                    restore = index;\n                    ch = scanHexEscape('u');\n                    if (ch) {\n                        flags += ch;\n                        for (str += '\\\\u'; restore < index; ++restore) {\n                            str += source[restore];\n                        }\n                    } else {\n                        index = restore;\n                        flags += 'u';\n                        str += '\\\\u';\n                    }\n                    throwErrorTolerant({}, Messages.UnexpectedToken, 'ILLEGAL');\n                } else {\n                    str += '\\\\';\n                    throwErrorTolerant({}, Messages.UnexpectedToken, 'ILLEGAL');\n                }\n            } else {\n                flags += ch;\n                str += ch;\n            }\n        }\n\n        return {\n            value: flags,\n            literal: str\n        };\n    }\n\n    function scanRegExp() {\n        var start, body, flags, pattern, value;\n\n        lookahead = null;\n        skipComment();\n        start = index;\n\n        body = scanRegExpBody();\n        flags = scanRegExpFlags();\n        value = testRegExp(body.value, flags.value);\n\n        if (extra.tokenize) {\n            return {\n                type: Token.RegularExpression,\n                value: value,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: start,\n                end: index\n            };\n        }\n\n        return {\n            literal: body.literal + flags.literal,\n            value: value,\n            start: start,\n            end: index\n        };\n    }\n\n    function collectRegex() {\n        var pos, loc, regex, token;\n\n        skipComment();\n\n        pos = index;\n        loc = {\n            start: {\n                line: lineNumber,\n                column: index - lineStart\n            }\n        };\n\n        regex = scanRegExp();\n        loc.end = {\n            line: lineNumber,\n            column: index - lineStart\n        };\n\n        /* istanbul ignore next */\n        if (!extra.tokenize) {\n            // Pop the previous token, which is likely '/' or '/='\n            if (extra.tokens.length > 0) {\n                token = extra.tokens[extra.tokens.length - 1];\n                if (token.range[0] === pos && token.type === 'Punctuator') {\n                    if (token.value === '/' || token.value === '/=') {\n                        extra.tokens.pop();\n                    }\n                }\n            }\n\n            extra.tokens.push({\n                type: 'RegularExpression',\n                value: regex.literal,\n                range: [pos, index],\n                loc: loc\n            });\n        }\n\n        return regex;\n    }\n\n    function isIdentifierName(token) {\n        return token.type === Token.Identifier ||\n            token.type === Token.Keyword ||\n            token.type === Token.BooleanLiteral ||\n            token.type === Token.NullLiteral;\n    }\n\n    function advanceSlash() {\n        var prevToken,\n            checkToken;\n        // Using the following algorithm:\n        // https://github.com/mozilla/sweet.js/wiki/design\n        prevToken = extra.tokens[extra.tokens.length - 1];\n        if (!prevToken) {\n            // Nothing before that: it cannot be a division.\n            return collectRegex();\n        }\n        if (prevToken.type === 'Punctuator') {\n            if (prevToken.value === ']') {\n                return scanPunctuator();\n            }\n            if (prevToken.value === ')') {\n                checkToken = extra.tokens[extra.openParenToken - 1];\n                if (checkToken &&\n                        checkToken.type === 'Keyword' &&\n                        (checkToken.value === 'if' ||\n                         checkToken.value === 'while' ||\n                         checkToken.value === 'for' ||\n                         checkToken.value === 'with')) {\n                    return collectRegex();\n                }\n                return scanPunctuator();\n            }\n            if (prevToken.value === '}') {\n                // Dividing a function by anything makes little sense,\n                // but we have to check for that.\n                if (extra.tokens[extra.openCurlyToken - 3] &&\n                        extra.tokens[extra.openCurlyToken - 3].type === 'Keyword') {\n                    // Anonymous function.\n                    checkToken = extra.tokens[extra.openCurlyToken - 4];\n                    if (!checkToken) {\n                        return scanPunctuator();\n                    }\n                } else if (extra.tokens[extra.openCurlyToken - 4] &&\n                        extra.tokens[extra.openCurlyToken - 4].type === 'Keyword') {\n                    // Named function.\n                    checkToken = extra.tokens[extra.openCurlyToken - 5];\n                    if (!checkToken) {\n                        return collectRegex();\n                    }\n                } else {\n                    return scanPunctuator();\n                }\n                // checkToken determines whether the function is\n                // a declaration or an expression.\n                if (FnExprTokens.indexOf(checkToken.value) >= 0) {\n                    // It is an expression.\n                    return scanPunctuator();\n                }\n                // It is a declaration.\n                return collectRegex();\n            }\n            return collectRegex();\n        }\n        if (prevToken.type === 'Keyword') {\n            return collectRegex();\n        }\n        return scanPunctuator();\n    }\n\n    function advance() {\n        var ch;\n\n        skipComment();\n\n        if (index >= length) {\n            return {\n                type: Token.EOF,\n                lineNumber: lineNumber,\n                lineStart: lineStart,\n                start: index,\n                end: index\n            };\n        }\n\n        ch = source.charCodeAt(index);\n\n        if (isIdentifierStart(ch)) {\n            return scanIdentifier();\n        }\n\n        // Very common: ( and ) and ;\n        if (ch === 0x28 || ch === 0x29 || ch === 0x3B) {\n            return scanPunctuator();\n        }\n\n        // String literal starts with single quote (U+0027) or double quote (U+0022).\n        if (ch === 0x27 || ch === 0x22) {\n            return scanStringLiteral();\n        }\n\n\n        // Dot (.) U+002E can also start a floating-point number, hence the need\n        // to check the next character.\n        if (ch === 0x2E) {\n            if (isDecimalDigit(source.charCodeAt(index + 1))) {\n                return scanNumericLiteral();\n            }\n            return scanPunctuator();\n        }\n\n        if (isDecimalDigit(ch)) {\n            return scanNumericLiteral();\n        }\n\n        // Slash (/) U+002F can also start a regex.\n        if (extra.tokenize && ch === 0x2F) {\n            return advanceSlash();\n        }\n\n        return scanPunctuator();\n    }\n\n    function collectToken() {\n        var loc, token, range, value;\n\n        skipComment();\n        loc = {\n            start: {\n                line: lineNumber,\n                column: index - lineStart\n            }\n        };\n\n        token = advance();\n        loc.end = {\n            line: lineNumber,\n            column: index - lineStart\n        };\n\n        if (token.type !== Token.EOF) {\n            value = source.slice(token.start, token.end);\n            extra.tokens.push({\n                type: TokenName[token.type],\n                value: value,\n                range: [token.start, token.end],\n                loc: loc\n            });\n        }\n\n        return token;\n    }\n\n    function lex() {\n        var token;\n\n        token = lookahead;\n        index = token.end;\n        lineNumber = token.lineNumber;\n        lineStart = token.lineStart;\n\n        lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();\n\n        index = token.end;\n        lineNumber = token.lineNumber;\n        lineStart = token.lineStart;\n\n        return token;\n    }\n\n    function peek() {\n        var pos, line, start;\n\n        pos = index;\n        line = lineNumber;\n        start = lineStart;\n        lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();\n        index = pos;\n        lineNumber = line;\n        lineStart = start;\n    }\n\n    function Position(line, column) {\n        this.line = line;\n        this.column = column;\n    }\n\n    function SourceLocation(startLine, startColumn, line, column) {\n        this.start = new Position(startLine, startColumn);\n        this.end = new Position(line, column);\n    }\n\n    SyntaxTreeDelegate = {\n\n        name: 'SyntaxTree',\n\n        processComment: function (node) {\n            var lastChild, trailingComments;\n\n            if (node.type === Syntax.Program) {\n                if (node.body.length > 0) {\n                    return;\n                }\n            }\n\n            if (extra.trailingComments.length > 0) {\n                if (extra.trailingComments[0].range[0] >= node.range[1]) {\n                    trailingComments = extra.trailingComments;\n                    extra.trailingComments = [];\n                } else {\n                    extra.trailingComments.length = 0;\n                }\n            } else {\n                if (extra.bottomRightStack.length > 0 &&\n                        extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments &&\n                        extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments[0].range[0] >= node.range[1]) {\n                    trailingComments = extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments;\n                    delete extra.bottomRightStack[extra.bottomRightStack.length - 1].trailingComments;\n                }\n            }\n\n            // Eating the stack.\n            while (extra.bottomRightStack.length > 0 && extra.bottomRightStack[extra.bottomRightStack.length - 1].range[0] >= node.range[0]) {\n                lastChild = extra.bottomRightStack.pop();\n            }\n\n            if (lastChild) {\n                if (lastChild.leadingComments && lastChild.leadingComments[lastChild.leadingComments.length - 1].range[1] <= node.range[0]) {\n                    node.leadingComments = lastChild.leadingComments;\n                    delete lastChild.leadingComments;\n                }\n            } else if (extra.leadingComments.length > 0 && extra.leadingComments[extra.leadingComments.length - 1].range[1] <= node.range[0]) {\n                node.leadingComments = extra.leadingComments;\n                extra.leadingComments = [];\n            }\n\n\n            if (trailingComments) {\n                node.trailingComments = trailingComments;\n            }\n\n            extra.bottomRightStack.push(node);\n        },\n\n        markEnd: function (node, startToken) {\n            if (extra.range) {\n                node.range = [startToken.start, index];\n            }\n            if (extra.loc) {\n                node.loc = new SourceLocation(\n                    startToken.startLineNumber === undefined ?  startToken.lineNumber : startToken.startLineNumber,\n                    startToken.start - (startToken.startLineStart === undefined ?  startToken.lineStart : startToken.startLineStart),\n                    lineNumber,\n                    index - lineStart\n                );\n                this.postProcess(node);\n            }\n\n            if (extra.attachComment) {\n                this.processComment(node);\n            }\n            return node;\n        },\n\n        postProcess: function (node) {\n            if (extra.source) {\n                node.loc.source = extra.source;\n            }\n            return node;\n        },\n\n        createArrayExpression: function (elements) {\n            return {\n                type: Syntax.ArrayExpression,\n                elements: elements\n            };\n        },\n\n        createAssignmentExpression: function (operator, left, right) {\n            return {\n                type: Syntax.AssignmentExpression,\n                operator: operator,\n                left: left,\n                right: right\n            };\n        },\n\n        createBinaryExpression: function (operator, left, right) {\n            var type = (operator === '||' || operator === '&&') ? Syntax.LogicalExpression :\n                        Syntax.BinaryExpression;\n            return {\n                type: type,\n                operator: operator,\n                left: left,\n                right: right\n            };\n        },\n\n        createBlockStatement: function (body) {\n            return {\n                type: Syntax.BlockStatement,\n                body: body\n            };\n        },\n\n        createBreakStatement: function (label) {\n            return {\n                type: Syntax.BreakStatement,\n                label: label\n            };\n        },\n\n        createCallExpression: function (callee, args) {\n            return {\n                type: Syntax.CallExpression,\n                callee: callee,\n                'arguments': args\n            };\n        },\n\n        createCatchClause: function (param, body) {\n            return {\n                type: Syntax.CatchClause,\n                param: param,\n                body: body\n            };\n        },\n\n        createConditionalExpression: function (test, consequent, alternate) {\n            return {\n                type: Syntax.ConditionalExpression,\n                test: test,\n                consequent: consequent,\n                alternate: alternate\n            };\n        },\n\n        createContinueStatement: function (label) {\n            return {\n                type: Syntax.ContinueStatement,\n                label: label\n            };\n        },\n\n        createDebuggerStatement: function () {\n            return {\n                type: Syntax.DebuggerStatement\n            };\n        },\n\n        createDoWhileStatement: function (body, test) {\n            return {\n                type: Syntax.DoWhileStatement,\n                body: body,\n                test: test\n            };\n        },\n\n        createEmptyStatement: function () {\n            return {\n                type: Syntax.EmptyStatement\n            };\n        },\n\n        createExpressionStatement: function (expression) {\n            return {\n                type: Syntax.ExpressionStatement,\n                expression: expression\n            };\n        },\n\n        createForStatement: function (init, test, update, body) {\n            return {\n                type: Syntax.ForStatement,\n                init: init,\n                test: test,\n                update: update,\n                body: body\n            };\n        },\n\n        createForInStatement: function (left, right, body) {\n            return {\n                type: Syntax.ForInStatement,\n                left: left,\n                right: right,\n                body: body,\n                each: false\n            };\n        },\n\n        createFunctionDeclaration: function (id, params, defaults, body) {\n            return {\n                type: Syntax.FunctionDeclaration,\n                id: id,\n                params: params,\n                defaults: defaults,\n                body: body,\n                rest: null,\n                generator: false,\n                expression: false\n            };\n        },\n\n        createFunctionExpression: function (id, params, defaults, body) {\n            return {\n                type: Syntax.FunctionExpression,\n                id: id,\n                params: params,\n                defaults: defaults,\n                body: body,\n                rest: null,\n                generator: false,\n                expression: false\n            };\n        },\n\n        createIdentifier: function (name) {\n            return {\n                type: Syntax.Identifier,\n                name: name\n            };\n        },\n\n        createIfStatement: function (test, consequent, alternate) {\n            return {\n                type: Syntax.IfStatement,\n                test: test,\n                consequent: consequent,\n                alternate: alternate\n            };\n        },\n\n        createLabeledStatement: function (label, body) {\n            return {\n                type: Syntax.LabeledStatement,\n                label: label,\n                body: body\n            };\n        },\n\n        createLiteral: function (token) {\n            return {\n                type: Syntax.Literal,\n                value: token.value,\n                raw: source.slice(token.start, token.end)\n            };\n        },\n\n        createMemberExpression: function (accessor, object, property) {\n            return {\n                type: Syntax.MemberExpression,\n                computed: accessor === '[',\n                object: object,\n                property: property\n            };\n        },\n\n        createNewExpression: function (callee, args) {\n            return {\n                type: Syntax.NewExpression,\n                callee: callee,\n                'arguments': args\n            };\n        },\n\n        createObjectExpression: function (properties) {\n            return {\n                type: Syntax.ObjectExpression,\n                properties: properties\n            };\n        },\n\n        createPostfixExpression: function (operator, argument) {\n            return {\n                type: Syntax.UpdateExpression,\n                operator: operator,\n                argument: argument,\n                prefix: false\n            };\n        },\n\n        createProgram: function (body) {\n            return {\n                type: Syntax.Program,\n                body: body\n            };\n        },\n\n        createProperty: function (kind, key, value) {\n            return {\n                type: Syntax.Property,\n                key: key,\n                value: value,\n                kind: kind\n            };\n        },\n\n        createReturnStatement: function (argument) {\n            return {\n                type: Syntax.ReturnStatement,\n                argument: argument\n            };\n        },\n\n        createSequenceExpression: function (expressions) {\n            return {\n                type: Syntax.SequenceExpression,\n                expressions: expressions\n            };\n        },\n\n        createSwitchCase: function (test, consequent) {\n            return {\n                type: Syntax.SwitchCase,\n                test: test,\n                consequent: consequent\n            };\n        },\n\n        createSwitchStatement: function (discriminant, cases) {\n            return {\n                type: Syntax.SwitchStatement,\n                discriminant: discriminant,\n                cases: cases\n            };\n        },\n\n        createThisExpression: function () {\n            return {\n                type: Syntax.ThisExpression\n            };\n        },\n\n        createThrowStatement: function (argument) {\n            return {\n                type: Syntax.ThrowStatement,\n                argument: argument\n            };\n        },\n\n        createTryStatement: function (block, guardedHandlers, handlers, finalizer) {\n            return {\n                type: Syntax.TryStatement,\n                block: block,\n                guardedHandlers: guardedHandlers,\n                handlers: handlers,\n                finalizer: finalizer\n            };\n        },\n\n        createUnaryExpression: function (operator, argument) {\n            if (operator === '++' || operator === '--') {\n                return {\n                    type: Syntax.UpdateExpression,\n                    operator: operator,\n                    argument: argument,\n                    prefix: true\n                };\n            }\n            return {\n                type: Syntax.UnaryExpression,\n                operator: operator,\n                argument: argument,\n                prefix: true\n            };\n        },\n\n        createVariableDeclaration: function (declarations, kind) {\n            return {\n                type: Syntax.VariableDeclaration,\n                declarations: declarations,\n                kind: kind\n            };\n        },\n\n        createVariableDeclarator: function (id, init) {\n            return {\n                type: Syntax.VariableDeclarator,\n                id: id,\n                init: init\n            };\n        },\n\n        createWhileStatement: function (test, body) {\n            return {\n                type: Syntax.WhileStatement,\n                test: test,\n                body: body\n            };\n        },\n\n        createWithStatement: function (object, body) {\n            return {\n                type: Syntax.WithStatement,\n                object: object,\n                body: body\n            };\n        }\n    };\n\n    // Return true if there is a line terminator before the next token.\n\n    function peekLineTerminator() {\n        var pos, line, start, found;\n\n        pos = index;\n        line = lineNumber;\n        start = lineStart;\n        skipComment();\n        found = lineNumber !== line;\n        index = pos;\n        lineNumber = line;\n        lineStart = start;\n\n        return found;\n    }\n\n    // Throw an exception\n\n    function throwError(token, messageFormat) {\n        var error,\n            args = Array.prototype.slice.call(arguments, 2),\n            msg = messageFormat.replace(\n                /%(\\d)/g,\n                function (whole, index) {\n                    assert(index < args.length, 'Message reference must be in range');\n                    return args[index];\n                }\n            );\n\n        if (typeof token.lineNumber === 'number') {\n            error = new Error('Line ' + token.lineNumber + ': ' + msg);\n            error.index = token.start;\n            error.lineNumber = token.lineNumber;\n            error.column = token.start - lineStart + 1;\n        } else {\n            error = new Error('Line ' + lineNumber + ': ' + msg);\n            error.index = index;\n            error.lineNumber = lineNumber;\n            error.column = index - lineStart + 1;\n        }\n\n        error.description = msg;\n        throw error;\n    }\n\n    function throwErrorTolerant() {\n        try {\n            throwError.apply(null, arguments);\n        } catch (e) {\n            if (extra.errors) {\n                extra.errors.push(e);\n            } else {\n                throw e;\n            }\n        }\n    }\n\n\n    // Throw an exception because of the token.\n\n    function throwUnexpected(token) {\n        if (token.type === Token.EOF) {\n            throwError(token, Messages.UnexpectedEOS);\n        }\n\n        if (token.type === Token.NumericLiteral) {\n            throwError(token, Messages.UnexpectedNumber);\n        }\n\n        if (token.type === Token.StringLiteral) {\n            throwError(token, Messages.UnexpectedString);\n        }\n\n        if (token.type === Token.Identifier) {\n            throwError(token, Messages.UnexpectedIdentifier);\n        }\n\n        if (token.type === Token.Keyword) {\n            if (isFutureReservedWord(token.value)) {\n                throwError(token, Messages.UnexpectedReserved);\n            } else if (strict && isStrictModeReservedWord(token.value)) {\n                throwErrorTolerant(token, Messages.StrictReservedWord);\n                return;\n            }\n            throwError(token, Messages.UnexpectedToken, token.value);\n        }\n\n        // BooleanLiteral, NullLiteral, or Punctuator.\n        throwError(token, Messages.UnexpectedToken, token.value);\n    }\n\n    // Expect the next token to match the specified punctuator.\n    // If not, an exception will be thrown.\n\n    function expect(value) {\n        var token = lex();\n        if (token.type !== Token.Punctuator || token.value !== value) {\n            throwUnexpected(token);\n        }\n    }\n\n    // Expect the next token to match the specified keyword.\n    // If not, an exception will be thrown.\n\n    function expectKeyword(keyword) {\n        var token = lex();\n        if (token.type !== Token.Keyword || token.value !== keyword) {\n            throwUnexpected(token);\n        }\n    }\n\n    // Return true if the next token matches the specified punctuator.\n\n    function match(value) {\n        return lookahead.type === Token.Punctuator && lookahead.value === value;\n    }\n\n    // Return true if the next token matches the specified keyword\n\n    function matchKeyword(keyword) {\n        return lookahead.type === Token.Keyword && lookahead.value === keyword;\n    }\n\n    // Return true if the next token is an assignment operator\n\n    function matchAssign() {\n        var op;\n\n        if (lookahead.type !== Token.Punctuator) {\n            return false;\n        }\n        op = lookahead.value;\n        return op === '=' ||\n            op === '*=' ||\n            op === '/=' ||\n            op === '%=' ||\n            op === '+=' ||\n            op === '-=' ||\n            op === '<<=' ||\n            op === '>>=' ||\n            op === '>>>=' ||\n            op === '&=' ||\n            op === '^=' ||\n            op === '|=';\n    }\n\n    function consumeSemicolon() {\n        var line;\n\n        // Catch the very common case first: immediately a semicolon (U+003B).\n        if (source.charCodeAt(index) === 0x3B || match(';')) {\n            lex();\n            return;\n        }\n\n        line = lineNumber;\n        skipComment();\n        if (lineNumber !== line) {\n            return;\n        }\n\n        if (lookahead.type !== Token.EOF && !match('}')) {\n            throwUnexpected(lookahead);\n        }\n    }\n\n    // Return true if provided expression is LeftHandSideExpression\n\n    function isLeftHandSide(expr) {\n        return expr.type === Syntax.Identifier || expr.type === Syntax.MemberExpression;\n    }\n\n    // 11.1.4 Array Initialiser\n\n    function parseArrayInitialiser() {\n        var elements = [], startToken;\n\n        startToken = lookahead;\n        expect('[');\n\n        while (!match(']')) {\n            if (match(',')) {\n                lex();\n                elements.push(null);\n            } else {\n                elements.push(parseAssignmentExpression());\n\n                if (!match(']')) {\n                    expect(',');\n                }\n            }\n        }\n\n        lex();\n\n        return delegate.markEnd(delegate.createArrayExpression(elements), startToken);\n    }\n\n    // 11.1.5 Object Initialiser\n\n    function parsePropertyFunction(param, first) {\n        var previousStrict, body, startToken;\n\n        previousStrict = strict;\n        startToken = lookahead;\n        body = parseFunctionSourceElements();\n        if (first && strict && isRestrictedWord(param[0].name)) {\n            throwErrorTolerant(first, Messages.StrictParamName);\n        }\n        strict = previousStrict;\n        return delegate.markEnd(delegate.createFunctionExpression(null, param, [], body), startToken);\n    }\n\n    function parseObjectPropertyKey() {\n        var token, startToken;\n\n        startToken = lookahead;\n        token = lex();\n\n        // Note: This function is called only from parseObjectProperty(), where\n        // EOF and Punctuator tokens are already filtered out.\n\n        if (token.type === Token.StringLiteral || token.type === Token.NumericLiteral) {\n            if (strict && token.octal) {\n                throwErrorTolerant(token, Messages.StrictOctalLiteral);\n            }\n            return delegate.markEnd(delegate.createLiteral(token), startToken);\n        }\n\n        return delegate.markEnd(delegate.createIdentifier(token.value), startToken);\n    }\n\n    function parseObjectProperty() {\n        var token, key, id, value, param, startToken;\n\n        token = lookahead;\n        startToken = lookahead;\n\n        if (token.type === Token.Identifier) {\n\n            id = parseObjectPropertyKey();\n\n            // Property Assignment: Getter and Setter.\n\n            if (token.value === 'get' && !match(':')) {\n                key = parseObjectPropertyKey();\n                expect('(');\n                expect(')');\n                value = parsePropertyFunction([]);\n                return delegate.markEnd(delegate.createProperty('get', key, value), startToken);\n            }\n            if (token.value === 'set' && !match(':')) {\n                key = parseObjectPropertyKey();\n                expect('(');\n                token = lookahead;\n                if (token.type !== Token.Identifier) {\n                    expect(')');\n                    throwErrorTolerant(token, Messages.UnexpectedToken, token.value);\n                    value = parsePropertyFunction([]);\n                } else {\n                    param = [ parseVariableIdentifier() ];\n                    expect(')');\n                    value = parsePropertyFunction(param, token);\n                }\n                return delegate.markEnd(delegate.createProperty('set', key, value), startToken);\n            }\n            expect(':');\n            value = parseAssignmentExpression();\n            return delegate.markEnd(delegate.createProperty('init', id, value), startToken);\n        }\n        if (token.type === Token.EOF || token.type === Token.Punctuator) {\n            throwUnexpected(token);\n        } else {\n            key = parseObjectPropertyKey();\n            expect(':');\n            value = parseAssignmentExpression();\n            return delegate.markEnd(delegate.createProperty('init', key, value), startToken);\n        }\n    }\n\n    function parseObjectInitialiser() {\n        var properties = [], property, name, key, kind, map = {}, toString = String, startToken;\n\n        startToken = lookahead;\n\n        expect('{');\n\n        while (!match('}')) {\n            property = parseObjectProperty();\n\n            if (property.key.type === Syntax.Identifier) {\n                name = property.key.name;\n            } else {\n                name = toString(property.key.value);\n            }\n            kind = (property.kind === 'init') ? PropertyKind.Data : (property.kind === 'get') ? PropertyKind.Get : PropertyKind.Set;\n\n            key = '$' + name;\n            if (Object.prototype.hasOwnProperty.call(map, key)) {\n                if (map[key] === PropertyKind.Data) {\n                    if (strict && kind === PropertyKind.Data) {\n                        throwErrorTolerant({}, Messages.StrictDuplicateProperty);\n                    } else if (kind !== PropertyKind.Data) {\n                        throwErrorTolerant({}, Messages.AccessorDataProperty);\n                    }\n                } else {\n                    if (kind === PropertyKind.Data) {\n                        throwErrorTolerant({}, Messages.AccessorDataProperty);\n                    } else if (map[key] & kind) {\n                        throwErrorTolerant({}, Messages.AccessorGetSet);\n                    }\n                }\n                map[key] |= kind;\n            } else {\n                map[key] = kind;\n            }\n\n            properties.push(property);\n\n            if (!match('}')) {\n                expect(',');\n            }\n        }\n\n        expect('}');\n\n        return delegate.markEnd(delegate.createObjectExpression(properties), startToken);\n    }\n\n    // 11.1.6 The Grouping Operator\n\n    function parseGroupExpression() {\n        var expr;\n\n        expect('(');\n\n        expr = parseExpression();\n\n        expect(')');\n\n        return expr;\n    }\n\n\n    // 11.1 Primary Expressions\n\n    function parsePrimaryExpression() {\n        var type, token, expr, startToken;\n\n        if (match('(')) {\n            return parseGroupExpression();\n        }\n\n        if (match('[')) {\n            return parseArrayInitialiser();\n        }\n\n        if (match('{')) {\n            return parseObjectInitialiser();\n        }\n\n        type = lookahead.type;\n        startToken = lookahead;\n\n        if (type === Token.Identifier) {\n            expr =  delegate.createIdentifier(lex().value);\n        } else if (type === Token.StringLiteral || type === Token.NumericLiteral) {\n            if (strict && lookahead.octal) {\n                throwErrorTolerant(lookahead, Messages.StrictOctalLiteral);\n            }\n            expr = delegate.createLiteral(lex());\n        } else if (type === Token.Keyword) {\n            if (matchKeyword('function')) {\n                return parseFunctionExpression();\n            }\n            if (matchKeyword('this')) {\n                lex();\n                expr = delegate.createThisExpression();\n            } else {\n                throwUnexpected(lex());\n            }\n        } else if (type === Token.BooleanLiteral) {\n            token = lex();\n            token.value = (token.value === 'true');\n            expr = delegate.createLiteral(token);\n        } else if (type === Token.NullLiteral) {\n            token = lex();\n            token.value = null;\n            expr = delegate.createLiteral(token);\n        } else if (match('/') || match('/=')) {\n            if (typeof extra.tokens !== 'undefined') {\n                expr = delegate.createLiteral(collectRegex());\n            } else {\n                expr = delegate.createLiteral(scanRegExp());\n            }\n            peek();\n        } else {\n            throwUnexpected(lex());\n        }\n\n        return delegate.markEnd(expr, startToken);\n    }\n\n    // 11.2 Left-Hand-Side Expressions\n\n    function parseArguments() {\n        var args = [];\n\n        expect('(');\n\n        if (!match(')')) {\n            while (index < length) {\n                args.push(parseAssignmentExpression());\n                if (match(')')) {\n                    break;\n                }\n                expect(',');\n            }\n        }\n\n        expect(')');\n\n        return args;\n    }\n\n    function parseNonComputedProperty() {\n        var token, startToken;\n\n        startToken = lookahead;\n        token = lex();\n\n        if (!isIdentifierName(token)) {\n            throwUnexpected(token);\n        }\n\n        return delegate.markEnd(delegate.createIdentifier(token.value), startToken);\n    }\n\n    function parseNonComputedMember() {\n        expect('.');\n\n        return parseNonComputedProperty();\n    }\n\n    function parseComputedMember() {\n        var expr;\n\n        expect('[');\n\n        expr = parseExpression();\n\n        expect(']');\n\n        return expr;\n    }\n\n    function parseNewExpression() {\n        var callee, args, startToken;\n\n        startToken = lookahead;\n        expectKeyword('new');\n        callee = parseLeftHandSideExpression();\n        args = match('(') ? parseArguments() : [];\n\n        return delegate.markEnd(delegate.createNewExpression(callee, args), startToken);\n    }\n\n    function parseLeftHandSideExpressionAllowCall() {\n        var previousAllowIn, expr, args, property, startToken;\n\n        startToken = lookahead;\n\n        previousAllowIn = state.allowIn;\n        state.allowIn = true;\n        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();\n        state.allowIn = previousAllowIn;\n\n        for (;;) {\n            if (match('.')) {\n                property = parseNonComputedMember();\n                expr = delegate.createMemberExpression('.', expr, property);\n            } else if (match('(')) {\n                args = parseArguments();\n                expr = delegate.createCallExpression(expr, args);\n            } else if (match('[')) {\n                property = parseComputedMember();\n                expr = delegate.createMemberExpression('[', expr, property);\n            } else {\n                break;\n            }\n            delegate.markEnd(expr, startToken);\n        }\n\n        return expr;\n    }\n\n    function parseLeftHandSideExpression() {\n        var previousAllowIn, expr, property, startToken;\n\n        startToken = lookahead;\n\n        previousAllowIn = state.allowIn;\n        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();\n        state.allowIn = previousAllowIn;\n\n        while (match('.') || match('[')) {\n            if (match('[')) {\n                property = parseComputedMember();\n                expr = delegate.createMemberExpression('[', expr, property);\n            } else {\n                property = parseNonComputedMember();\n                expr = delegate.createMemberExpression('.', expr, property);\n            }\n            delegate.markEnd(expr, startToken);\n        }\n\n        return expr;\n    }\n\n    // 11.3 Postfix Expressions\n\n    function parsePostfixExpression() {\n        var expr, token, startToken = lookahead;\n\n        expr = parseLeftHandSideExpressionAllowCall();\n\n        if (lookahead.type === Token.Punctuator) {\n            if ((match('++') || match('--')) && !peekLineTerminator()) {\n                // 11.3.1, 11.3.2\n                if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n                    throwErrorTolerant({}, Messages.StrictLHSPostfix);\n                }\n\n                if (!isLeftHandSide(expr)) {\n                    throwErrorTolerant({}, Messages.InvalidLHSInAssignment);\n                }\n\n                token = lex();\n                expr = delegate.markEnd(delegate.createPostfixExpression(token.value, expr), startToken);\n            }\n        }\n\n        return expr;\n    }\n\n    // 11.4 Unary Operators\n\n    function parseUnaryExpression() {\n        var token, expr, startToken;\n\n        if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {\n            expr = parsePostfixExpression();\n        } else if (match('++') || match('--')) {\n            startToken = lookahead;\n            token = lex();\n            expr = parseUnaryExpression();\n            // 11.4.4, 11.4.5\n            if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {\n                throwErrorTolerant({}, Messages.StrictLHSPrefix);\n            }\n\n            if (!isLeftHandSide(expr)) {\n                throwErrorTolerant({}, Messages.InvalidLHSInAssignment);\n            }\n\n            expr = delegate.createUnaryExpression(token.value, expr);\n            expr = delegate.markEnd(expr, startToken);\n        } else if (match('+') || match('-') || match('~') || match('!')) {\n            startToken = lookahead;\n            token = lex();\n            expr = parseUnaryExpression();\n            expr = delegate.createUnaryExpression(token.value, expr);\n            expr = delegate.markEnd(expr, startToken);\n        } else if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {\n            startToken = lookahead;\n            token = lex();\n            expr = parseUnaryExpression();\n            expr = delegate.createUnaryExpression(token.value, expr);\n            expr = delegate.markEnd(expr, startToken);\n            if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {\n                throwErrorTolerant({}, Messages.StrictDelete);\n            }\n        } else {\n            expr = parsePostfixExpression();\n        }\n\n        return expr;\n    }\n\n    function binaryPrecedence(token, allowIn) {\n        var prec = 0;\n\n        if (token.type !== Token.Punctuator && token.type !== Token.Keyword) {\n            return 0;\n        }\n\n        switch (token.value) {\n        case '||':\n            prec = 1;\n            break;\n\n        case '&&':\n            prec = 2;\n            break;\n\n        case '|':\n            prec = 3;\n            break;\n\n        case '^':\n            prec = 4;\n            break;\n\n        case '&':\n            prec = 5;\n            break;\n\n        case '==':\n        case '!=':\n        case '===':\n        case '!==':\n            prec = 6;\n            break;\n\n        case '<':\n        case '>':\n        case '<=':\n        case '>=':\n        case 'instanceof':\n            prec = 7;\n            break;\n\n        case 'in':\n            prec = allowIn ? 7 : 0;\n            break;\n\n        case '<<':\n        case '>>':\n        case '>>>':\n            prec = 8;\n            break;\n\n        case '+':\n        case '-':\n            prec = 9;\n            break;\n\n        case '*':\n        case '/':\n        case '%':\n            prec = 11;\n            break;\n\n        default:\n            break;\n        }\n\n        return prec;\n    }\n\n    // 11.5 Multiplicative Operators\n    // 11.6 Additive Operators\n    // 11.7 Bitwise Shift Operators\n    // 11.8 Relational Operators\n    // 11.9 Equality Operators\n    // 11.10 Binary Bitwise Operators\n    // 11.11 Binary Logical Operators\n\n    function parseBinaryExpression() {\n        var marker, markers, expr, token, prec, stack, right, operator, left, i;\n\n        marker = lookahead;\n        left = parseUnaryExpression();\n\n        token = lookahead;\n        prec = binaryPrecedence(token, state.allowIn);\n        if (prec === 0) {\n            return left;\n        }\n        token.prec = prec;\n        lex();\n\n        markers = [marker, lookahead];\n        right = parseUnaryExpression();\n\n        stack = [left, token, right];\n\n        while ((prec = binaryPrecedence(lookahead, state.allowIn)) > 0) {\n\n            // Reduce: make a binary expression from the three topmost entries.\n            while ((stack.length > 2) && (prec <= stack[stack.length - 2].prec)) {\n                right = stack.pop();\n                operator = stack.pop().value;\n                left = stack.pop();\n                expr = delegate.createBinaryExpression(operator, left, right);\n                markers.pop();\n                marker = markers[markers.length - 1];\n                delegate.markEnd(expr, marker);\n                stack.push(expr);\n            }\n\n            // Shift.\n            token = lex();\n            token.prec = prec;\n            stack.push(token);\n            markers.push(lookahead);\n            expr = parseUnaryExpression();\n            stack.push(expr);\n        }\n\n        // Final reduce to clean-up the stack.\n        i = stack.length - 1;\n        expr = stack[i];\n        markers.pop();\n        while (i > 1) {\n            expr = delegate.createBinaryExpression(stack[i - 1].value, stack[i - 2], expr);\n            i -= 2;\n            marker = markers.pop();\n            delegate.markEnd(expr, marker);\n        }\n\n        return expr;\n    }\n\n\n    // 11.12 Conditional Operator\n\n    function parseConditionalExpression() {\n        var expr, previousAllowIn, consequent, alternate, startToken;\n\n        startToken = lookahead;\n\n        expr = parseBinaryExpression();\n\n        if (match('?')) {\n            lex();\n            previousAllowIn = state.allowIn;\n            state.allowIn = true;\n            consequent = parseAssignmentExpression();\n            state.allowIn = previousAllowIn;\n            expect(':');\n            alternate = parseAssignmentExpression();\n\n            expr = delegate.createConditionalExpression(expr, consequent, alternate);\n            delegate.markEnd(expr, startToken);\n        }\n\n        return expr;\n    }\n\n    // 11.13 Assignment Operators\n\n    function parseAssignmentExpression() {\n        var token, left, right, node, startToken;\n\n        token = lookahead;\n        startToken = lookahead;\n\n        node = left = parseConditionalExpression();\n\n        if (matchAssign()) {\n            // LeftHandSideExpression\n            if (!isLeftHandSide(left)) {\n                throwErrorTolerant({}, Messages.InvalidLHSInAssignment);\n            }\n\n            // 11.13.1\n            if (strict && left.type === Syntax.Identifier && isRestrictedWord(left.name)) {\n                throwErrorTolerant(token, Messages.StrictLHSAssignment);\n            }\n\n            token = lex();\n            right = parseAssignmentExpression();\n            node = delegate.markEnd(delegate.createAssignmentExpression(token.value, left, right), startToken);\n        }\n\n        return node;\n    }\n\n    // 11.14 Comma Operator\n\n    function parseExpression() {\n        var expr, startToken = lookahead;\n\n        expr = parseAssignmentExpression();\n\n        if (match(',')) {\n            expr = delegate.createSequenceExpression([ expr ]);\n\n            while (index < length) {\n                if (!match(',')) {\n                    break;\n                }\n                lex();\n                expr.expressions.push(parseAssignmentExpression());\n            }\n\n            delegate.markEnd(expr, startToken);\n        }\n\n        return expr;\n    }\n\n    // 12.1 Block\n\n    function parseStatementList() {\n        var list = [],\n            statement;\n\n        while (index < length) {\n            if (match('}')) {\n                break;\n            }\n            statement = parseSourceElement();\n            if (typeof statement === 'undefined') {\n                break;\n            }\n            list.push(statement);\n        }\n\n        return list;\n    }\n\n    function parseBlock() {\n        var block, startToken;\n\n        startToken = lookahead;\n        expect('{');\n\n        block = parseStatementList();\n\n        expect('}');\n\n        return delegate.markEnd(delegate.createBlockStatement(block), startToken);\n    }\n\n    // 12.2 Variable Statement\n\n    function parseVariableIdentifier() {\n        var token, startToken;\n\n        startToken = lookahead;\n        token = lex();\n\n        if (token.type !== Token.Identifier) {\n            throwUnexpected(token);\n        }\n\n        return delegate.markEnd(delegate.createIdentifier(token.value), startToken);\n    }\n\n    function parseVariableDeclaration(kind) {\n        var init = null, id, startToken;\n\n        startToken = lookahead;\n        id = parseVariableIdentifier();\n\n        // 12.2.1\n        if (strict && isRestrictedWord(id.name)) {\n            throwErrorTolerant({}, Messages.StrictVarName);\n        }\n\n        if (kind === 'const') {\n            expect('=');\n            init = parseAssignmentExpression();\n        } else if (match('=')) {\n            lex();\n            init = parseAssignmentExpression();\n        }\n\n        return delegate.markEnd(delegate.createVariableDeclarator(id, init), startToken);\n    }\n\n    function parseVariableDeclarationList(kind) {\n        var list = [];\n\n        do {\n            list.push(parseVariableDeclaration(kind));\n            if (!match(',')) {\n                break;\n            }\n            lex();\n        } while (index < length);\n\n        return list;\n    }\n\n    function parseVariableStatement() {\n        var declarations;\n\n        expectKeyword('var');\n\n        declarations = parseVariableDeclarationList();\n\n        consumeSemicolon();\n\n        return delegate.createVariableDeclaration(declarations, 'var');\n    }\n\n    // kind may be `const` or `let`\n    // Both are experimental and not in the specification yet.\n    // see http://wiki.ecmascript.org/doku.php?id=harmony:const\n    // and http://wiki.ecmascript.org/doku.php?id=harmony:let\n    function parseConstLetDeclaration(kind) {\n        var declarations, startToken;\n\n        startToken = lookahead;\n\n        expectKeyword(kind);\n\n        declarations = parseVariableDeclarationList(kind);\n\n        consumeSemicolon();\n\n        return delegate.markEnd(delegate.createVariableDeclaration(declarations, kind), startToken);\n    }\n\n    // 12.3 Empty Statement\n\n    function parseEmptyStatement() {\n        expect(';');\n        return delegate.createEmptyStatement();\n    }\n\n    // 12.4 Expression Statement\n\n    function parseExpressionStatement() {\n        var expr = parseExpression();\n        consumeSemicolon();\n        return delegate.createExpressionStatement(expr);\n    }\n\n    // 12.5 If statement\n\n    function parseIfStatement() {\n        var test, consequent, alternate;\n\n        expectKeyword('if');\n\n        expect('(');\n\n        test = parseExpression();\n\n        expect(')');\n\n        consequent = parseStatement();\n\n        if (matchKeyword('else')) {\n            lex();\n            alternate = parseStatement();\n        } else {\n            alternate = null;\n        }\n\n        return delegate.createIfStatement(test, consequent, alternate);\n    }\n\n    // 12.6 Iteration Statements\n\n    function parseDoWhileStatement() {\n        var body, test, oldInIteration;\n\n        expectKeyword('do');\n\n        oldInIteration = state.inIteration;\n        state.inIteration = true;\n\n        body = parseStatement();\n\n        state.inIteration = oldInIteration;\n\n        expectKeyword('while');\n\n        expect('(');\n\n        test = parseExpression();\n\n        expect(')');\n\n        if (match(';')) {\n            lex();\n        }\n\n        return delegate.createDoWhileStatement(body, test);\n    }\n\n    function parseWhileStatement() {\n        var test, body, oldInIteration;\n\n        expectKeyword('while');\n\n        expect('(');\n\n        test = parseExpression();\n\n        expect(')');\n\n        oldInIteration = state.inIteration;\n        state.inIteration = true;\n\n        body = parseStatement();\n\n        state.inIteration = oldInIteration;\n\n        return delegate.createWhileStatement(test, body);\n    }\n\n    function parseForVariableDeclaration() {\n        var token, declarations, startToken;\n\n        startToken = lookahead;\n        token = lex();\n        declarations = parseVariableDeclarationList();\n\n        return delegate.markEnd(delegate.createVariableDeclaration(declarations, token.value), startToken);\n    }\n\n    function parseForStatement() {\n        var init, test, update, left, right, body, oldInIteration;\n\n        init = test = update = null;\n\n        expectKeyword('for');\n\n        expect('(');\n\n        if (match(';')) {\n            lex();\n        } else {\n            if (matchKeyword('var') || matchKeyword('let')) {\n                state.allowIn = false;\n                init = parseForVariableDeclaration();\n                state.allowIn = true;\n\n                if (init.declarations.length === 1 && matchKeyword('in')) {\n                    lex();\n                    left = init;\n                    right = parseExpression();\n                    init = null;\n                }\n            } else {\n                state.allowIn = false;\n                init = parseExpression();\n                state.allowIn = true;\n\n                if (matchKeyword('in')) {\n                    // LeftHandSideExpression\n                    if (!isLeftHandSide(init)) {\n                        throwErrorTolerant({}, Messages.InvalidLHSInForIn);\n                    }\n\n                    lex();\n                    left = init;\n                    right = parseExpression();\n                    init = null;\n                }\n            }\n\n            if (typeof left === 'undefined') {\n                expect(';');\n            }\n        }\n\n        if (typeof left === 'undefined') {\n\n            if (!match(';')) {\n                test = parseExpression();\n            }\n            expect(';');\n\n            if (!match(')')) {\n                update = parseExpression();\n            }\n        }\n\n        expect(')');\n\n        oldInIteration = state.inIteration;\n        state.inIteration = true;\n\n        body = parseStatement();\n\n        state.inIteration = oldInIteration;\n\n        return (typeof left === 'undefined') ?\n                delegate.createForStatement(init, test, update, body) :\n                delegate.createForInStatement(left, right, body);\n    }\n\n    // 12.7 The continue statement\n\n    function parseContinueStatement() {\n        var label = null, key;\n\n        expectKeyword('continue');\n\n        // Optimize the most common form: 'continue;'.\n        if (source.charCodeAt(index) === 0x3B) {\n            lex();\n\n            if (!state.inIteration) {\n                throwError({}, Messages.IllegalContinue);\n            }\n\n            return delegate.createContinueStatement(null);\n        }\n\n        if (peekLineTerminator()) {\n            if (!state.inIteration) {\n                throwError({}, Messages.IllegalContinue);\n            }\n\n            return delegate.createContinueStatement(null);\n        }\n\n        if (lookahead.type === Token.Identifier) {\n            label = parseVariableIdentifier();\n\n            key = '$' + label.name;\n            if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {\n                throwError({}, Messages.UnknownLabel, label.name);\n            }\n        }\n\n        consumeSemicolon();\n\n        if (label === null && !state.inIteration) {\n            throwError({}, Messages.IllegalContinue);\n        }\n\n        return delegate.createContinueStatement(label);\n    }\n\n    // 12.8 The break statement\n\n    function parseBreakStatement() {\n        var label = null, key;\n\n        expectKeyword('break');\n\n        // Catch the very common case first: immediately a semicolon (U+003B).\n        if (source.charCodeAt(index) === 0x3B) {\n            lex();\n\n            if (!(state.inIteration || state.inSwitch)) {\n                throwError({}, Messages.IllegalBreak);\n            }\n\n            return delegate.createBreakStatement(null);\n        }\n\n        if (peekLineTerminator()) {\n            if (!(state.inIteration || state.inSwitch)) {\n                throwError({}, Messages.IllegalBreak);\n            }\n\n            return delegate.createBreakStatement(null);\n        }\n\n        if (lookahead.type === Token.Identifier) {\n            label = parseVariableIdentifier();\n\n            key = '$' + label.name;\n            if (!Object.prototype.hasOwnProperty.call(state.labelSet, key)) {\n                throwError({}, Messages.UnknownLabel, label.name);\n            }\n        }\n\n        consumeSemicolon();\n\n        if (label === null && !(state.inIteration || state.inSwitch)) {\n            throwError({}, Messages.IllegalBreak);\n        }\n\n        return delegate.createBreakStatement(label);\n    }\n\n    // 12.9 The return statement\n\n    function parseReturnStatement() {\n        var argument = null;\n\n        expectKeyword('return');\n\n        if (!state.inFunctionBody) {\n            throwErrorTolerant({}, Messages.IllegalReturn);\n        }\n\n        // 'return' followed by a space and an identifier is very common.\n        if (source.charCodeAt(index) === 0x20) {\n            if (isIdentifierStart(source.charCodeAt(index + 1))) {\n                argument = parseExpression();\n                consumeSemicolon();\n                return delegate.createReturnStatement(argument);\n            }\n        }\n\n        if (peekLineTerminator()) {\n            return delegate.createReturnStatement(null);\n        }\n\n        if (!match(';')) {\n            if (!match('}') && lookahead.type !== Token.EOF) {\n                argument = parseExpression();\n            }\n        }\n\n        consumeSemicolon();\n\n        return delegate.createReturnStatement(argument);\n    }\n\n    // 12.10 The with statement\n\n    function parseWithStatement() {\n        var object, body;\n\n        if (strict) {\n            // TODO(ikarienator): Should we update the test cases instead?\n            skipComment();\n            throwErrorTolerant({}, Messages.StrictModeWith);\n        }\n\n        expectKeyword('with');\n\n        expect('(');\n\n        object = parseExpression();\n\n        expect(')');\n\n        body = parseStatement();\n\n        return delegate.createWithStatement(object, body);\n    }\n\n    // 12.10 The swith statement\n\n    function parseSwitchCase() {\n        var test, consequent = [], statement, startToken;\n\n        startToken = lookahead;\n        if (matchKeyword('default')) {\n            lex();\n            test = null;\n        } else {\n            expectKeyword('case');\n            test = parseExpression();\n        }\n        expect(':');\n\n        while (index < length) {\n            if (match('}') || matchKeyword('default') || matchKeyword('case')) {\n                break;\n            }\n            statement = parseStatement();\n            consequent.push(statement);\n        }\n\n        return delegate.markEnd(delegate.createSwitchCase(test, consequent), startToken);\n    }\n\n    function parseSwitchStatement() {\n        var discriminant, cases, clause, oldInSwitch, defaultFound;\n\n        expectKeyword('switch');\n\n        expect('(');\n\n        discriminant = parseExpression();\n\n        expect(')');\n\n        expect('{');\n\n        cases = [];\n\n        if (match('}')) {\n            lex();\n            return delegate.createSwitchStatement(discriminant, cases);\n        }\n\n        oldInSwitch = state.inSwitch;\n        state.inSwitch = true;\n        defaultFound = false;\n\n        while (index < length) {\n            if (match('}')) {\n                break;\n            }\n            clause = parseSwitchCase();\n            if (clause.test === null) {\n                if (defaultFound) {\n                    throwError({}, Messages.MultipleDefaultsInSwitch);\n                }\n                defaultFound = true;\n            }\n            cases.push(clause);\n        }\n\n        state.inSwitch = oldInSwitch;\n\n        expect('}');\n\n        return delegate.createSwitchStatement(discriminant, cases);\n    }\n\n    // 12.13 The throw statement\n\n    function parseThrowStatement() {\n        var argument;\n\n        expectKeyword('throw');\n\n        if (peekLineTerminator()) {\n            throwError({}, Messages.NewlineAfterThrow);\n        }\n\n        argument = parseExpression();\n\n        consumeSemicolon();\n\n        return delegate.createThrowStatement(argument);\n    }\n\n    // 12.14 The try statement\n\n    function parseCatchClause() {\n        var param, body, startToken;\n\n        startToken = lookahead;\n        expectKeyword('catch');\n\n        expect('(');\n        if (match(')')) {\n            throwUnexpected(lookahead);\n        }\n\n        param = parseVariableIdentifier();\n        // 12.14.1\n        if (strict && isRestrictedWord(param.name)) {\n            throwErrorTolerant({}, Messages.StrictCatchVariable);\n        }\n\n        expect(')');\n        body = parseBlock();\n        return delegate.markEnd(delegate.createCatchClause(param, body), startToken);\n    }\n\n    function parseTryStatement() {\n        var block, handlers = [], finalizer = null;\n\n        expectKeyword('try');\n\n        block = parseBlock();\n\n        if (matchKeyword('catch')) {\n            handlers.push(parseCatchClause());\n        }\n\n        if (matchKeyword('finally')) {\n            lex();\n            finalizer = parseBlock();\n        }\n\n        if (handlers.length === 0 && !finalizer) {\n            throwError({}, Messages.NoCatchOrFinally);\n        }\n\n        return delegate.createTryStatement(block, [], handlers, finalizer);\n    }\n\n    // 12.15 The debugger statement\n\n    function parseDebuggerStatement() {\n        expectKeyword('debugger');\n\n        consumeSemicolon();\n\n        return delegate.createDebuggerStatement();\n    }\n\n    // 12 Statements\n\n    function parseStatement() {\n        var type = lookahead.type,\n            expr,\n            labeledBody,\n            key,\n            startToken;\n\n        if (type === Token.EOF) {\n            throwUnexpected(lookahead);\n        }\n\n        if (type === Token.Punctuator && lookahead.value === '{') {\n            return parseBlock();\n        }\n\n        startToken = lookahead;\n\n        if (type === Token.Punctuator) {\n            switch (lookahead.value) {\n            case ';':\n                return delegate.markEnd(parseEmptyStatement(), startToken);\n            case '(':\n                return delegate.markEnd(parseExpressionStatement(), startToken);\n            default:\n                break;\n            }\n        }\n\n        if (type === Token.Keyword) {\n            switch (lookahead.value) {\n            case 'break':\n                return delegate.markEnd(parseBreakStatement(), startToken);\n            case 'continue':\n                return delegate.markEnd(parseContinueStatement(), startToken);\n            case 'debugger':\n                return delegate.markEnd(parseDebuggerStatement(), startToken);\n            case 'do':\n                return delegate.markEnd(parseDoWhileStatement(), startToken);\n            case 'for':\n                return delegate.markEnd(parseForStatement(), startToken);\n            case 'function':\n                return delegate.markEnd(parseFunctionDeclaration(), startToken);\n            case 'if':\n                return delegate.markEnd(parseIfStatement(), startToken);\n            case 'return':\n                return delegate.markEnd(parseReturnStatement(), startToken);\n            case 'switch':\n                return delegate.markEnd(parseSwitchStatement(), startToken);\n            case 'throw':\n                return delegate.markEnd(parseThrowStatement(), startToken);\n            case 'try':\n                return delegate.markEnd(parseTryStatement(), startToken);\n            case 'var':\n                return delegate.markEnd(parseVariableStatement(), startToken);\n            case 'while':\n                return delegate.markEnd(parseWhileStatement(), startToken);\n            case 'with':\n                return delegate.markEnd(parseWithStatement(), startToken);\n            default:\n                break;\n            }\n        }\n\n        expr = parseExpression();\n\n        // 12.12 Labelled Statements\n        if ((expr.type === Syntax.Identifier) && match(':')) {\n            lex();\n\n            key = '$' + expr.name;\n            if (Object.prototype.hasOwnProperty.call(state.labelSet, key)) {\n                throwError({}, Messages.Redeclaration, 'Label', expr.name);\n            }\n\n            state.labelSet[key] = true;\n            labeledBody = parseStatement();\n            delete state.labelSet[key];\n            return delegate.markEnd(delegate.createLabeledStatement(expr, labeledBody), startToken);\n        }\n\n        consumeSemicolon();\n\n        return delegate.markEnd(delegate.createExpressionStatement(expr), startToken);\n    }\n\n    // 13 Function Definition\n\n    function parseFunctionSourceElements() {\n        var sourceElement, sourceElements = [], token, directive, firstRestricted,\n            oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody, startToken;\n\n        startToken = lookahead;\n        expect('{');\n\n        while (index < length) {\n            if (lookahead.type !== Token.StringLiteral) {\n                break;\n            }\n            token = lookahead;\n\n            sourceElement = parseSourceElement();\n            sourceElements.push(sourceElement);\n            if (sourceElement.expression.type !== Syntax.Literal) {\n                // this is not directive\n                break;\n            }\n            directive = source.slice(token.start + 1, token.end - 1);\n            if (directive === 'use strict') {\n                strict = true;\n                if (firstRestricted) {\n                    throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);\n                }\n            } else {\n                if (!firstRestricted && token.octal) {\n                    firstRestricted = token;\n                }\n            }\n        }\n\n        oldLabelSet = state.labelSet;\n        oldInIteration = state.inIteration;\n        oldInSwitch = state.inSwitch;\n        oldInFunctionBody = state.inFunctionBody;\n\n        state.labelSet = {};\n        state.inIteration = false;\n        state.inSwitch = false;\n        state.inFunctionBody = true;\n\n        while (index < length) {\n            if (match('}')) {\n                break;\n            }\n            sourceElement = parseSourceElement();\n            if (typeof sourceElement === 'undefined') {\n                break;\n            }\n            sourceElements.push(sourceElement);\n        }\n\n        expect('}');\n\n        state.labelSet = oldLabelSet;\n        state.inIteration = oldInIteration;\n        state.inSwitch = oldInSwitch;\n        state.inFunctionBody = oldInFunctionBody;\n\n        return delegate.markEnd(delegate.createBlockStatement(sourceElements), startToken);\n    }\n\n    function parseParams(firstRestricted) {\n        var param, params = [], token, stricted, paramSet, key, message;\n        expect('(');\n\n        if (!match(')')) {\n            paramSet = {};\n            while (index < length) {\n                token = lookahead;\n                param = parseVariableIdentifier();\n                key = '$' + token.value;\n                if (strict) {\n                    if (isRestrictedWord(token.value)) {\n                        stricted = token;\n                        message = Messages.StrictParamName;\n                    }\n                    if (Object.prototype.hasOwnProperty.call(paramSet, key)) {\n                        stricted = token;\n                        message = Messages.StrictParamDupe;\n                    }\n                } else if (!firstRestricted) {\n                    if (isRestrictedWord(token.value)) {\n                        firstRestricted = token;\n                        message = Messages.StrictParamName;\n                    } else if (isStrictModeReservedWord(token.value)) {\n                        firstRestricted = token;\n                        message = Messages.StrictReservedWord;\n                    } else if (Object.prototype.hasOwnProperty.call(paramSet, key)) {\n                        firstRestricted = token;\n                        message = Messages.StrictParamDupe;\n                    }\n                }\n                params.push(param);\n                paramSet[key] = true;\n                if (match(')')) {\n                    break;\n                }\n                expect(',');\n            }\n        }\n\n        expect(')');\n\n        return {\n            params: params,\n            stricted: stricted,\n            firstRestricted: firstRestricted,\n            message: message\n        };\n    }\n\n    function parseFunctionDeclaration() {\n        var id, params = [], body, token, stricted, tmp, firstRestricted, message, previousStrict, startToken;\n\n        startToken = lookahead;\n\n        expectKeyword('function');\n        token = lookahead;\n        id = parseVariableIdentifier();\n        if (strict) {\n            if (isRestrictedWord(token.value)) {\n                throwErrorTolerant(token, Messages.StrictFunctionName);\n            }\n        } else {\n            if (isRestrictedWord(token.value)) {\n                firstRestricted = token;\n                message = Messages.StrictFunctionName;\n            } else if (isStrictModeReservedWord(token.value)) {\n                firstRestricted = token;\n                message = Messages.StrictReservedWord;\n            }\n        }\n\n        tmp = parseParams(firstRestricted);\n        params = tmp.params;\n        stricted = tmp.stricted;\n        firstRestricted = tmp.firstRestricted;\n        if (tmp.message) {\n            message = tmp.message;\n        }\n\n        previousStrict = strict;\n        body = parseFunctionSourceElements();\n        if (strict && firstRestricted) {\n            throwError(firstRestricted, message);\n        }\n        if (strict && stricted) {\n            throwErrorTolerant(stricted, message);\n        }\n        strict = previousStrict;\n\n        return delegate.markEnd(delegate.createFunctionDeclaration(id, params, [], body), startToken);\n    }\n\n    function parseFunctionExpression() {\n        var token, id = null, stricted, firstRestricted, message, tmp, params = [], body, previousStrict, startToken;\n\n        startToken = lookahead;\n        expectKeyword('function');\n\n        if (!match('(')) {\n            token = lookahead;\n            id = parseVariableIdentifier();\n            if (strict) {\n                if (isRestrictedWord(token.value)) {\n                    throwErrorTolerant(token, Messages.StrictFunctionName);\n                }\n            } else {\n                if (isRestrictedWord(token.value)) {\n                    firstRestricted = token;\n                    message = Messages.StrictFunctionName;\n                } else if (isStrictModeReservedWord(token.value)) {\n                    firstRestricted = token;\n                    message = Messages.StrictReservedWord;\n                }\n            }\n        }\n\n        tmp = parseParams(firstRestricted);\n        params = tmp.params;\n        stricted = tmp.stricted;\n        firstRestricted = tmp.firstRestricted;\n        if (tmp.message) {\n            message = tmp.message;\n        }\n\n        previousStrict = strict;\n        body = parseFunctionSourceElements();\n        if (strict && firstRestricted) {\n            throwError(firstRestricted, message);\n        }\n        if (strict && stricted) {\n            throwErrorTolerant(stricted, message);\n        }\n        strict = previousStrict;\n\n        return delegate.markEnd(delegate.createFunctionExpression(id, params, [], body), startToken);\n    }\n\n    // 14 Program\n\n    function parseSourceElement() {\n        if (lookahead.type === Token.Keyword) {\n            switch (lookahead.value) {\n            case 'const':\n            case 'let':\n                return parseConstLetDeclaration(lookahead.value);\n            case 'function':\n                return parseFunctionDeclaration();\n            default:\n                return parseStatement();\n            }\n        }\n\n        if (lookahead.type !== Token.EOF) {\n            return parseStatement();\n        }\n    }\n\n    function parseSourceElements() {\n        var sourceElement, sourceElements = [], token, directive, firstRestricted;\n\n        while (index < length) {\n            token = lookahead;\n            if (token.type !== Token.StringLiteral) {\n                break;\n            }\n\n            sourceElement = parseSourceElement();\n            sourceElements.push(sourceElement);\n            if (sourceElement.expression.type !== Syntax.Literal) {\n                // this is not directive\n                break;\n            }\n            directive = source.slice(token.start + 1, token.end - 1);\n            if (directive === 'use strict') {\n                strict = true;\n                if (firstRestricted) {\n                    throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);\n                }\n            } else {\n                if (!firstRestricted && token.octal) {\n                    firstRestricted = token;\n                }\n            }\n        }\n\n        while (index < length) {\n            sourceElement = parseSourceElement();\n            /* istanbul ignore if */\n            if (typeof sourceElement === 'undefined') {\n                break;\n            }\n            sourceElements.push(sourceElement);\n        }\n        return sourceElements;\n    }\n\n    function parseProgram() {\n        var body, startToken;\n\n        skipComment();\n        peek();\n        startToken = lookahead;\n        strict = false;\n\n        body = parseSourceElements();\n        return delegate.markEnd(delegate.createProgram(body), startToken);\n    }\n\n    function filterTokenLocation() {\n        var i, entry, token, tokens = [];\n\n        for (i = 0; i < extra.tokens.length; ++i) {\n            entry = extra.tokens[i];\n            token = {\n                type: entry.type,\n                value: entry.value\n            };\n            if (extra.range) {\n                token.range = entry.range;\n            }\n            if (extra.loc) {\n                token.loc = entry.loc;\n            }\n            tokens.push(token);\n        }\n\n        extra.tokens = tokens;\n    }\n\n    function tokenize(code, options) {\n        var toString,\n            token,\n            tokens;\n\n        toString = String;\n        if (typeof code !== 'string' && !(code instanceof String)) {\n            code = toString(code);\n        }\n\n        delegate = SyntaxTreeDelegate;\n        source = code;\n        index = 0;\n        lineNumber = (source.length > 0) ? 1 : 0;\n        lineStart = 0;\n        length = source.length;\n        lookahead = null;\n        state = {\n            allowIn: true,\n            labelSet: {},\n            inFunctionBody: false,\n            inIteration: false,\n            inSwitch: false,\n            lastCommentStart: -1\n        };\n\n        extra = {};\n\n        // Options matching.\n        options = options || {};\n\n        // Of course we collect tokens here.\n        options.tokens = true;\n        extra.tokens = [];\n        extra.tokenize = true;\n        // The following two fields are necessary to compute the Regex tokens.\n        extra.openParenToken = -1;\n        extra.openCurlyToken = -1;\n\n        extra.range = (typeof options.range === 'boolean') && options.range;\n        extra.loc = (typeof options.loc === 'boolean') && options.loc;\n\n        if (typeof options.comment === 'boolean' && options.comment) {\n            extra.comments = [];\n        }\n        if (typeof options.tolerant === 'boolean' && options.tolerant) {\n            extra.errors = [];\n        }\n\n        try {\n            peek();\n            if (lookahead.type === Token.EOF) {\n                return extra.tokens;\n            }\n\n            token = lex();\n            while (lookahead.type !== Token.EOF) {\n                try {\n                    token = lex();\n                } catch (lexError) {\n                    token = lookahead;\n                    if (extra.errors) {\n                        extra.errors.push(lexError);\n                        // We have to break on the first error\n                        // to avoid infinite loops.\n                        break;\n                    } else {\n                        throw lexError;\n                    }\n                }\n            }\n\n            filterTokenLocation();\n            tokens = extra.tokens;\n            if (typeof extra.comments !== 'undefined') {\n                tokens.comments = extra.comments;\n            }\n            if (typeof extra.errors !== 'undefined') {\n                tokens.errors = extra.errors;\n            }\n        } catch (e) {\n            throw e;\n        } finally {\n            extra = {};\n        }\n        return tokens;\n    }\n\n    function parse(code, options) {\n        var program, toString;\n\n        toString = String;\n        if (typeof code !== 'string' && !(code instanceof String)) {\n            code = toString(code);\n        }\n\n        delegate = SyntaxTreeDelegate;\n        source = code;\n        index = 0;\n        lineNumber = (source.length > 0) ? 1 : 0;\n        lineStart = 0;\n        length = source.length;\n        lookahead = null;\n        state = {\n            allowIn: true,\n            labelSet: {},\n            inFunctionBody: false,\n            inIteration: false,\n            inSwitch: false,\n            lastCommentStart: -1\n        };\n\n        extra = {};\n        if (typeof options !== 'undefined') {\n            extra.range = (typeof options.range === 'boolean') && options.range;\n            extra.loc = (typeof options.loc === 'boolean') && options.loc;\n            extra.attachComment = (typeof options.attachComment === 'boolean') && options.attachComment;\n\n            if (extra.loc && options.source !== null && options.source !== undefined) {\n                extra.source = toString(options.source);\n            }\n\n            if (typeof options.tokens === 'boolean' && options.tokens) {\n                extra.tokens = [];\n            }\n            if (typeof options.comment === 'boolean' && options.comment) {\n                extra.comments = [];\n            }\n            if (typeof options.tolerant === 'boolean' && options.tolerant) {\n                extra.errors = [];\n            }\n            if (extra.attachComment) {\n                extra.range = true;\n                extra.comments = [];\n                extra.bottomRightStack = [];\n                extra.trailingComments = [];\n                extra.leadingComments = [];\n            }\n        }\n\n        try {\n            program = parseProgram();\n            if (typeof extra.comments !== 'undefined') {\n                program.comments = extra.comments;\n            }\n            if (typeof extra.tokens !== 'undefined') {\n                filterTokenLocation();\n                program.tokens = extra.tokens;\n            }\n            if (typeof extra.errors !== 'undefined') {\n                program.errors = extra.errors;\n            }\n        } catch (e) {\n            throw e;\n        } finally {\n            extra = {};\n        }\n\n        return program;\n    }\n\n    // Sync with *.json manifests.\n    exports.version = '1.2.2';\n\n    exports.tokenize = tokenize;\n\n    exports.parse = parse;\n\n    // Deep copy.\n   /* istanbul ignore next */\n    exports.Syntax = (function () {\n        var name, types = {};\n\n        if (typeof Object.create === 'function') {\n            types = Object.create(null);\n        }\n\n        for (name in Syntax) {\n            if (Syntax.hasOwnProperty(name)) {\n                types[name] = Syntax[name];\n            }\n        }\n\n        if (typeof Object.freeze === 'function') {\n            Object.freeze(types);\n        }\n\n        return types;\n    }());\n\n}));\n/* vim: set sw=4 ts=4 et tw=80 : */\n\n},{}],1:[function(require,module,exports){\n(function (process){\n/* parser generated by jison 0.4.13 */\n/*\n  Returns a Parser object of the following structure:\n\n  Parser: {\n    yy: {}\n  }\n\n  Parser.prototype: {\n    yy: {},\n    trace: function(),\n    symbols_: {associative list: name ==> number},\n    terminals_: {associative list: number ==> name},\n    productions_: [...],\n    performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n    table: [...],\n    defaultActions: {...},\n    parseError: function(str, hash),\n    parse: function(input),\n\n    lexer: {\n        EOF: 1,\n        parseError: function(str, hash),\n        setInput: function(input),\n        input: function(),\n        unput: function(str),\n        more: function(),\n        less: function(n),\n        pastInput: function(),\n        upcomingInput: function(),\n        showPosition: function(),\n        test_match: function(regex_match_array, rule_index),\n        next: function(),\n        lex: function(),\n        begin: function(condition),\n        popState: function(),\n        _currentRules: function(),\n        topState: function(),\n        pushState: function(condition),\n\n        options: {\n            ranges: boolean           (optional: true ==> token location info will include a .range[] member)\n            flex: boolean             (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n            backtrack_lexer: boolean  (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n        },\n\n        performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n        rules: [...],\n        conditions: {associative list: name ==> set},\n    }\n  }\n\n\n  token location info (@$, _$, etc.): {\n    first_line: n,\n    last_line: n,\n    first_column: n,\n    last_column: n,\n    range: [start_number, end_number]       (where the numbers are indexes into the input string, regular zero-based)\n  }\n\n\n  the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n    text:        (matched text)\n    token:       (the produced terminal token, if any)\n    line:        (yylineno)\n  }\n  while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n    loc:         (yylloc)\n    expected:    (string describing the set of expected tokens)\n    recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n  }\n*/\nvar parser = (function(){\nvar parser = {trace: function trace() { },\nyy: {},\nsymbols_: {\"error\":2,\"JSON_PATH\":3,\"DOLLAR\":4,\"PATH_COMPONENTS\":5,\"LEADING_CHILD_MEMBER_EXPRESSION\":6,\"PATH_COMPONENT\":7,\"MEMBER_COMPONENT\":8,\"SUBSCRIPT_COMPONENT\":9,\"CHILD_MEMBER_COMPONENT\":10,\"DESCENDANT_MEMBER_COMPONENT\":11,\"DOT\":12,\"MEMBER_EXPRESSION\":13,\"DOT_DOT\":14,\"STAR\":15,\"IDENTIFIER\":16,\"SCRIPT_EXPRESSION\":17,\"INTEGER\":18,\"END\":19,\"CHILD_SUBSCRIPT_COMPONENT\":20,\"DESCENDANT_SUBSCRIPT_COMPONENT\":21,\"[\":22,\"SUBSCRIPT\":23,\"]\":24,\"SUBSCRIPT_EXPRESSION\":25,\"SUBSCRIPT_EXPRESSION_LIST\":26,\"SUBSCRIPT_EXPRESSION_LISTABLE\":27,\",\":28,\"STRING_LITERAL\":29,\"ARRAY_SLICE\":30,\"FILTER_EXPRESSION\":31,\"QQ_STRING\":32,\"Q_STRING\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"DOLLAR\",12:\"DOT\",14:\"DOT_DOT\",15:\"STAR\",16:\"IDENTIFIER\",17:\"SCRIPT_EXPRESSION\",18:\"INTEGER\",19:\"END\",22:\"[\",24:\"]\",28:\",\",30:\"ARRAY_SLICE\",31:\"FILTER_EXPRESSION\",32:\"QQ_STRING\",33:\"Q_STRING\"},\nproductions_: [0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */\n/**/) {\n/* this == yyval */\nif (!yy.ast) {\n    yy.ast = _ast;\n    _ast.initialize();\n}\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:yy.ast.set({ expression: { type: \"root\", value: $$[$0] } }); yy.ast.unshift(); return yy.ast.yield()\nbreak;\ncase 2:yy.ast.set({ expression: { type: \"root\", value: $$[$0-1] } }); yy.ast.unshift(); return yy.ast.yield()\nbreak;\ncase 3:yy.ast.unshift(); return yy.ast.yield()\nbreak;\ncase 4:yy.ast.set({ operation: \"member\", scope: \"child\", expression: { type: \"identifier\", value: $$[$0-1] }}); yy.ast.unshift(); return yy.ast.yield()\nbreak;\ncase 5:\nbreak;\ncase 6:\nbreak;\ncase 7:yy.ast.set({ operation: \"member\" }); yy.ast.push()\nbreak;\ncase 8:yy.ast.set({ operation: \"subscript\" }); yy.ast.push() \nbreak;\ncase 9:yy.ast.set({ scope: \"child\" })\nbreak;\ncase 10:yy.ast.set({ scope: \"descendant\" })\nbreak;\ncase 11:\nbreak;\ncase 12:yy.ast.set({ scope: \"child\", operation: \"member\" })\nbreak;\ncase 13:\nbreak;\ncase 14:yy.ast.set({ expression: { type: \"wildcard\", value: $$[$0] } })\nbreak;\ncase 15:yy.ast.set({ expression: { type: \"identifier\", value: $$[$0] } })\nbreak;\ncase 16:yy.ast.set({ expression: { type: \"script_expression\", value: $$[$0] } })\nbreak;\ncase 17:yy.ast.set({ expression: { type: \"numeric_literal\", value: parseInt($$[$0]) } })\nbreak;\ncase 18:\nbreak;\ncase 19:yy.ast.set({ scope: \"child\" })\nbreak;\ncase 20:yy.ast.set({ scope: \"descendant\" })\nbreak;\ncase 21:\nbreak;\ncase 22:\nbreak;\ncase 23:\nbreak;\ncase 24:$$[$0].length > 1? yy.ast.set({ expression: { type: \"union\", value: $$[$0] } }) : this.$ = $$[$0]\nbreak;\ncase 25:this.$ = [$$[$0]]\nbreak;\ncase 26:this.$ = $$[$0-2].concat($$[$0])\nbreak;\ncase 27:this.$ = { expression: { type: \"numeric_literal\", value: parseInt($$[$0]) } }; yy.ast.set(this.$)\nbreak;\ncase 28:this.$ = { expression: { type: \"string_literal\", value: $$[$0] } }; yy.ast.set(this.$)\nbreak;\ncase 29:this.$ = { expression: { type: \"slice\", value: $$[$0] } }; yy.ast.set(this.$)\nbreak;\ncase 30:this.$ = { expression: { type: \"wildcard\", value: $$[$0] } }; yy.ast.set(this.$)\nbreak;\ncase 31:this.$ = { expression: { type: \"script_expression\", value: $$[$0] } }; yy.ast.set(this.$)\nbreak;\ncase 32:this.$ = { expression: { type: \"filter_expression\", value: $$[$0] } }; yy.ast.set(this.$)\nbreak;\ncase 33:this.$ = $$[$0]\nbreak;\ncase 34:this.$ = $$[$0]\nbreak;\n}\n},\ntable: [{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],\ndefaultActions: {27:[2,23],29:[2,30],30:[2,31],31:[2,32]},\nparseError: function parseError(str, hash) {\n    if (hash.recoverable) {\n        this.trace(str);\n    } else {\n        throw new Error(str);\n    }\n},\nparse: function parse(input) {\n    var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n    var args = lstack.slice.call(arguments, 1);\n    this.lexer.setInput(input);\n    this.lexer.yy = this.yy;\n    this.yy.lexer = this.lexer;\n    this.yy.parser = this;\n    if (typeof this.lexer.yylloc == 'undefined') {\n        this.lexer.yylloc = {};\n    }\n    var yyloc = this.lexer.yylloc;\n    lstack.push(yyloc);\n    var ranges = this.lexer.options && this.lexer.options.ranges;\n    if (typeof this.yy.parseError === 'function') {\n        this.parseError = this.yy.parseError;\n    } else {\n        this.parseError = Object.getPrototypeOf(this).parseError;\n    }\n    function popStack(n) {\n        stack.length = stack.length - 2 * n;\n        vstack.length = vstack.length - n;\n        lstack.length = lstack.length - n;\n    }\n    function lex() {\n        var token;\n        token = self.lexer.lex() || EOF;\n        if (typeof token !== 'number') {\n            token = self.symbols_[token] || token;\n        }\n        return token;\n    }\n    var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n    while (true) {\n        state = stack[stack.length - 1];\n        if (this.defaultActions[state]) {\n            action = this.defaultActions[state];\n        } else {\n            if (symbol === null || typeof symbol == 'undefined') {\n                symbol = lex();\n            }\n            action = table[state] && table[state][symbol];\n        }\n                    if (typeof action === 'undefined' || !action.length || !action[0]) {\n                var errStr = '';\n                expected = [];\n                for (p in table[state]) {\n                    if (this.terminals_[p] && p > TERROR) {\n                        expected.push('\\'' + this.terminals_[p] + '\\'');\n                    }\n                }\n                if (this.lexer.showPosition) {\n                    errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + this.lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n                } else {\n                    errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n                }\n                this.parseError(errStr, {\n                    text: this.lexer.match,\n                    token: this.terminals_[symbol] || symbol,\n                    line: this.lexer.yylineno,\n                    loc: yyloc,\n                    expected: expected\n                });\n            }\n        if (action[0] instanceof Array && action.length > 1) {\n            throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n        }\n        switch (action[0]) {\n        case 1:\n            stack.push(symbol);\n            vstack.push(this.lexer.yytext);\n            lstack.push(this.lexer.yylloc);\n            stack.push(action[1]);\n            symbol = null;\n            if (!preErrorSymbol) {\n                yyleng = this.lexer.yyleng;\n                yytext = this.lexer.yytext;\n                yylineno = this.lexer.yylineno;\n                yyloc = this.lexer.yylloc;\n                if (recovering > 0) {\n                    recovering--;\n                }\n            } else {\n                symbol = preErrorSymbol;\n                preErrorSymbol = null;\n            }\n            break;\n        case 2:\n            len = this.productions_[action[1]][1];\n            yyval.$ = vstack[vstack.length - len];\n            yyval._$ = {\n                first_line: lstack[lstack.length - (len || 1)].first_line,\n                last_line: lstack[lstack.length - 1].last_line,\n                first_column: lstack[lstack.length - (len || 1)].first_column,\n                last_column: lstack[lstack.length - 1].last_column\n            };\n            if (ranges) {\n                yyval._$.range = [\n                    lstack[lstack.length - (len || 1)].range[0],\n                    lstack[lstack.length - 1].range[1]\n                ];\n            }\n            r = this.performAction.apply(yyval, [\n                yytext,\n                yyleng,\n                yylineno,\n                this.yy,\n                action[1],\n                vstack,\n                lstack\n            ].concat(args));\n            if (typeof r !== 'undefined') {\n                return r;\n            }\n            if (len) {\n                stack = stack.slice(0, -1 * len * 2);\n                vstack = vstack.slice(0, -1 * len);\n                lstack = lstack.slice(0, -1 * len);\n            }\n            stack.push(this.productions_[action[1]][0]);\n            vstack.push(yyval.$);\n            lstack.push(yyval._$);\n            newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n            stack.push(newState);\n            break;\n        case 3:\n            return true;\n        }\n    }\n    return true;\n}};\nvar _ast = {\n\n  initialize: function() {\n    this._nodes = [];\n    this._node = {};\n    this._stash = [];\n  },\n\n  set: function(props) {\n    for (var k in props) this._node[k] = props[k];\n    return this._node;\n  },\n\n  node: function(obj) {\n    if (arguments.length) this._node = obj;\n    return this._node;\n  },\n\n  push: function() {\n    this._nodes.push(this._node);\n    this._node = {};\n  },\n\n  unshift: function() {\n    this._nodes.unshift(this._node);\n    this._node = {};\n  },\n\n  yield: function() {\n    var _nodes = this._nodes;\n    this.initialize();\n    return _nodes;\n  }\n};\n/* generated by jison-lex 0.2.1 */\nvar lexer = (function(){\nvar lexer = {\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n        if (this.yy.parser) {\n            this.yy.parser.parseError(str, hash);\n        } else {\n            throw new Error(str);\n        }\n    },\n\n// resets the lexer, sets new input\nsetInput:function (input) {\n        this._input = input;\n        this._more = this._backtrack = this.done = false;\n        this.yylineno = this.yyleng = 0;\n        this.yytext = this.matched = this.match = '';\n        this.conditionStack = ['INITIAL'];\n        this.yylloc = {\n            first_line: 1,\n            first_column: 0,\n            last_line: 1,\n            last_column: 0\n        };\n        if (this.options.ranges) {\n            this.yylloc.range = [0,0];\n        }\n        this.offset = 0;\n        return this;\n    },\n\n// consumes and returns one char from the input\ninput:function () {\n        var ch = this._input[0];\n        this.yytext += ch;\n        this.yyleng++;\n        this.offset++;\n        this.match += ch;\n        this.matched += ch;\n        var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n        if (lines) {\n            this.yylineno++;\n            this.yylloc.last_line++;\n        } else {\n            this.yylloc.last_column++;\n        }\n        if (this.options.ranges) {\n            this.yylloc.range[1]++;\n        }\n\n        this._input = this._input.slice(1);\n        return ch;\n    },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n        var len = ch.length;\n        var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n        this._input = ch + this._input;\n        this.yytext = this.yytext.substr(0, this.yytext.length - len - 1);\n        //this.yyleng -= len;\n        this.offset -= len;\n        var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n        this.match = this.match.substr(0, this.match.length - 1);\n        this.matched = this.matched.substr(0, this.matched.length - 1);\n\n        if (lines.length - 1) {\n            this.yylineno -= lines.length - 1;\n        }\n        var r = this.yylloc.range;\n\n        this.yylloc = {\n            first_line: this.yylloc.first_line,\n            last_line: this.yylineno + 1,\n            first_column: this.yylloc.first_column,\n            last_column: lines ?\n                (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n                 + oldLines[oldLines.length - lines.length].length - lines[0].length :\n              this.yylloc.first_column - len\n        };\n\n        if (this.options.ranges) {\n            this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n        }\n        this.yyleng = this.yytext.length;\n        return this;\n    },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n        this._more = true;\n        return this;\n    },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n        if (this.options.backtrack_lexer) {\n            this._backtrack = true;\n        } else {\n            return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n                text: \"\",\n                token: null,\n                line: this.yylineno\n            });\n\n        }\n        return this;\n    },\n\n// retain first n characters of the match\nless:function (n) {\n        this.unput(this.match.slice(n));\n    },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n        var past = this.matched.substr(0, this.matched.length - this.match.length);\n        return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n    },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n        var next = this.match;\n        if (next.length < 20) {\n            next += this._input.substr(0, 20-next.length);\n        }\n        return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n    },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n        var pre = this.pastInput();\n        var c = new Array(pre.length + 1).join(\"-\");\n        return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n    },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function (match, indexed_rule) {\n        var token,\n            lines,\n            backup;\n\n        if (this.options.backtrack_lexer) {\n            // save context\n            backup = {\n                yylineno: this.yylineno,\n                yylloc: {\n                    first_line: this.yylloc.first_line,\n                    last_line: this.last_line,\n                    first_column: this.yylloc.first_column,\n                    last_column: this.yylloc.last_column\n                },\n                yytext: this.yytext,\n                match: this.match,\n                matches: this.matches,\n                matched: this.matched,\n                yyleng: this.yyleng,\n                offset: this.offset,\n                _more: this._more,\n                _input: this._input,\n                yy: this.yy,\n                conditionStack: this.conditionStack.slice(0),\n                done: this.done\n            };\n            if (this.options.ranges) {\n                backup.yylloc.range = this.yylloc.range.slice(0);\n            }\n        }\n\n        lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n        if (lines) {\n            this.yylineno += lines.length;\n        }\n        this.yylloc = {\n            first_line: this.yylloc.last_line,\n            last_line: this.yylineno + 1,\n            first_column: this.yylloc.last_column,\n            last_column: lines ?\n                         lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n                         this.yylloc.last_column + match[0].length\n        };\n        this.yytext += match[0];\n        this.match += match[0];\n        this.matches = match;\n        this.yyleng = this.yytext.length;\n        if (this.options.ranges) {\n            this.yylloc.range = [this.offset, this.offset += this.yyleng];\n        }\n        this._more = false;\n        this._backtrack = false;\n        this._input = this._input.slice(match[0].length);\n        this.matched += match[0];\n        token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n        if (this.done && this._input) {\n            this.done = false;\n        }\n        if (token) {\n            return token;\n        } else if (this._backtrack) {\n            // recover context\n            for (var k in backup) {\n                this[k] = backup[k];\n            }\n            return false; // rule action called reject() implying the next rule should be tested instead.\n        }\n        return false;\n    },\n\n// return next match in input\nnext:function () {\n        if (this.done) {\n            return this.EOF;\n        }\n        if (!this._input) {\n            this.done = true;\n        }\n\n        var token,\n            match,\n            tempMatch,\n            index;\n        if (!this._more) {\n            this.yytext = '';\n            this.match = '';\n        }\n        var rules = this._currentRules();\n        for (var i = 0; i < rules.length; i++) {\n            tempMatch = this._input.match(this.rules[rules[i]]);\n            if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n                match = tempMatch;\n                index = i;\n                if (this.options.backtrack_lexer) {\n                    token = this.test_match(tempMatch, rules[i]);\n                    if (token !== false) {\n                        return token;\n                    } else if (this._backtrack) {\n                        match = false;\n                        continue; // rule action called reject() implying a rule MISmatch.\n                    } else {\n                        // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n                        return false;\n                    }\n                } else if (!this.options.flex) {\n                    break;\n                }\n            }\n        }\n        if (match) {\n            token = this.test_match(match, rules[index]);\n            if (token !== false) {\n                return token;\n            }\n            // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n            return false;\n        }\n        if (this._input === \"\") {\n            return this.EOF;\n        } else {\n            return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n                text: \"\",\n                token: null,\n                line: this.yylineno\n            });\n        }\n    },\n\n// return next match that has a token\nlex:function lex() {\n        var r = this.next();\n        if (r) {\n            return r;\n        } else {\n            return this.lex();\n        }\n    },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin(condition) {\n        this.conditionStack.push(condition);\n    },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState() {\n        var n = this.conditionStack.length - 1;\n        if (n > 0) {\n            return this.conditionStack.pop();\n        } else {\n            return this.conditionStack[0];\n        }\n    },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules() {\n        if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n            return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n        } else {\n            return this.conditions[\"INITIAL\"].rules;\n        }\n    },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState(n) {\n        n = this.conditionStack.length - 1 - Math.abs(n || 0);\n        if (n >= 0) {\n            return this.conditionStack[n];\n        } else {\n            return \"INITIAL\";\n        }\n    },\n\n// alias for begin(condition)\npushState:function pushState(condition) {\n        this.begin(condition);\n    },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n        return this.conditionStack.length;\n    },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START\n/**/) {\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4\nbreak;\ncase 1:return 14\nbreak;\ncase 2:return 12\nbreak;\ncase 3:return 15\nbreak;\ncase 4:return 16\nbreak;\ncase 5:return 22\nbreak;\ncase 6:return 24\nbreak;\ncase 7:return 28\nbreak;\ncase 8:return 30\nbreak;\ncase 9:return 18\nbreak;\ncase 10:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 32;\nbreak;\ncase 11:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 33;\nbreak;\ncase 12:return 17\nbreak;\ncase 13:return 31\nbreak;\n}\n},\nrules: [/^(?:\\$)/,/^(?:\\.\\.)/,/^(?:\\.)/,/^(?:\\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\\[)/,/^(?:\\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\\:((-?(?:0|[1-9][0-9]*)))?(\\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:\"(?:\\\\[\"bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\"\\\\])*\")/,/^(?:'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*')/,/^(?:\\(.+?\\)(?=\\]))/,/^(?:\\?\\(.+?\\)(?=\\]))/],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],\"inclusive\":true}}\n};\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n  this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain(args) {\n    if (!args[1]) {\n        console.log('Usage: '+args[0]+' FILE');\n        process.exit(1);\n    }\n    var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n    return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n  exports.main(process.argv.slice(1));\n}\n}\n\n}).call(this,require('_process'))\n},{\"_process\":14,\"fs\":12,\"path\":13}],2:[function(require,module,exports){\nmodule.exports = {\n  identifier: \"[a-zA-Z_]+[a-zA-Z0-9_]*\",\n  integer: \"-?(?:0|[1-9][0-9]*)\",\n  qq_string: \"\\\"(?:\\\\\\\\[\\\"bfnrt/\\\\\\\\]|\\\\\\\\u[a-fA-F0-9]{4}|[^\\\"\\\\\\\\])*\\\"\",\n  q_string: \"'(?:\\\\\\\\[\\'bfnrt/\\\\\\\\]|\\\\\\\\u[a-fA-F0-9]{4}|[^\\'\\\\\\\\])*'\"\n};\n\n},{}],3:[function(require,module,exports){\nvar dict = require('./dict');\nvar fs = require('fs');\nvar grammar = {\n\n    lex: {\n\n        macros: {\n            esc: \"\\\\\\\\\",\n            int: dict.integer\n        },\n\n        rules: [\n            [\"\\\\$\", \"return 'DOLLAR'\"],\n            [\"\\\\.\\\\.\", \"return 'DOT_DOT'\"],\n            [\"\\\\.\", \"return 'DOT'\"],\n            [\"\\\\*\", \"return 'STAR'\"],\n            [dict.identifier, \"return 'IDENTIFIER'\"],\n            [\"\\\\[\", \"return '['\"],\n            [\"\\\\]\", \"return ']'\"],\n            [\",\", \"return ','\"],\n            [\"({int})?\\\\:({int})?(\\\\:({int})?)?\", \"return 'ARRAY_SLICE'\"],\n            [\"{int}\", \"return 'INTEGER'\"],\n            [dict.qq_string, \"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';\"],\n            [dict.q_string, \"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';\"],\n            [\"\\\\(.+?\\\\)(?=\\\\])\", \"return 'SCRIPT_EXPRESSION'\"],\n            [\"\\\\?\\\\(.+?\\\\)(?=\\\\])\", \"return 'FILTER_EXPRESSION'\"]\n        ]\n    },\n\n    start: \"JSON_PATH\",\n\n    bnf: {\n\n        JSON_PATH: [\n                [ 'DOLLAR',                 'yy.ast.set({ expression: { type: \"root\", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()' ],\n                [ 'DOLLAR PATH_COMPONENTS', 'yy.ast.set({ expression: { type: \"root\", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()' ],\n                [ 'LEADING_CHILD_MEMBER_EXPRESSION',                 'yy.ast.unshift(); return yy.ast.yield()' ],\n                [ 'LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS', 'yy.ast.set({ operation: \"member\", scope: \"child\", expression: { type: \"identifier\", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()' ] ],\n\n        PATH_COMPONENTS: [\n                [ 'PATH_COMPONENT',                 '' ],\n                [ 'PATH_COMPONENTS PATH_COMPONENT', '' ] ],\n\n        PATH_COMPONENT: [\n                [ 'MEMBER_COMPONENT',    'yy.ast.set({ operation: \"member\" }); yy.ast.push()' ],\n                [ 'SUBSCRIPT_COMPONENT', 'yy.ast.set({ operation: \"subscript\" }); yy.ast.push() ' ] ],\n\n        MEMBER_COMPONENT: [\n                [ 'CHILD_MEMBER_COMPONENT',      'yy.ast.set({ scope: \"child\" })' ],\n                [ 'DESCENDANT_MEMBER_COMPONENT', 'yy.ast.set({ scope: \"descendant\" })' ] ],\n\n        CHILD_MEMBER_COMPONENT: [\n                [ 'DOT MEMBER_EXPRESSION', '' ] ],\n\n        LEADING_CHILD_MEMBER_EXPRESSION: [\n                [ 'MEMBER_EXPRESSION', 'yy.ast.set({ scope: \"child\", operation: \"member\" })' ] ],\n\n        DESCENDANT_MEMBER_COMPONENT: [\n                [ 'DOT_DOT MEMBER_EXPRESSION', '' ] ],\n\n        MEMBER_EXPRESSION: [\n                [ 'STAR',              'yy.ast.set({ expression: { type: \"wildcard\", value: $1 } })' ],\n                [ 'IDENTIFIER',        'yy.ast.set({ expression: { type: \"identifier\", value: $1 } })' ],\n                [ 'SCRIPT_EXPRESSION', 'yy.ast.set({ expression: { type: \"script_expression\", value: $1 } })' ],\n                [ 'INTEGER',           'yy.ast.set({ expression: { type: \"numeric_literal\", value: parseInt($1) } })' ],\n                [ 'END',               '' ] ],\n\n        SUBSCRIPT_COMPONENT: [\n                [ 'CHILD_SUBSCRIPT_COMPONENT',      'yy.ast.set({ scope: \"child\" })' ],\n                [ 'DESCENDANT_SUBSCRIPT_COMPONENT', 'yy.ast.set({ scope: \"descendant\" })' ] ],\n\n        CHILD_SUBSCRIPT_COMPONENT: [\n                [ '[ SUBSCRIPT ]', '' ] ],\n\n        DESCENDANT_SUBSCRIPT_COMPONENT: [\n                [ 'DOT_DOT [ SUBSCRIPT ]', '' ] ],\n\n        SUBSCRIPT: [\n                [ 'SUBSCRIPT_EXPRESSION', '' ],\n                [ 'SUBSCRIPT_EXPRESSION_LIST', '$1.length > 1? yy.ast.set({ expression: { type: \"union\", value: $1 } }) : $$ = $1' ] ],\n\n        SUBSCRIPT_EXPRESSION_LIST: [\n                [ 'SUBSCRIPT_EXPRESSION_LISTABLE', '$$ = [$1]'],\n                [ 'SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE', '$$ = $1.concat($3)' ] ],\n\n        SUBSCRIPT_EXPRESSION_LISTABLE: [\n                [ 'INTEGER',           '$$ = { expression: { type: \"numeric_literal\", value: parseInt($1) } }; yy.ast.set($$)' ],\n                [ 'STRING_LITERAL',    '$$ = { expression: { type: \"string_literal\", value: $1 } }; yy.ast.set($$)' ],\n                [ 'ARRAY_SLICE',       '$$ = { expression: { type: \"slice\", value: $1 } }; yy.ast.set($$)' ] ],\n\n        SUBSCRIPT_EXPRESSION: [\n                [ 'STAR',              '$$ = { expression: { type: \"wildcard\", value: $1 } }; yy.ast.set($$)' ],\n                [ 'SCRIPT_EXPRESSION', '$$ = { expression: { type: \"script_expression\", value: $1 } }; yy.ast.set($$)' ],\n                [ 'FILTER_EXPRESSION', '$$ = { expression: { type: \"filter_expression\", value: $1 } }; yy.ast.set($$)' ] ],\n\n        STRING_LITERAL: [\n                [ 'QQ_STRING', \"$$ = $1\" ],\n                [ 'Q_STRING',  \"$$ = $1\" ] ]\n    }\n};\nif (fs.readFileSync) {\n  grammar.moduleInclude = fs.readFileSync(require.resolve(\"../include/module.js\"));\n  grammar.actionInclude = fs.readFileSync(require.resolve(\"../include/action.js\"));\n}\n\nmodule.exports = grammar;\n\n},{\"./dict\":2,\"fs\":12}],4:[function(require,module,exports){\nvar aesprim = require('./aesprim');\nvar slice = require('./slice');\nvar _evaluate = require('static-eval');\nvar _uniq = require('underscore').uniq;\n\nvar Handlers = function() {\n  return this.initialize.apply(this, arguments);\n}\n\nHandlers.prototype.initialize = function() {\n  this.traverse = traverser(true);\n  this.descend = traverser();\n}\n\nHandlers.prototype.keys = Object.keys;\n\nHandlers.prototype.resolve = function(component) {\n\n  var key = [ component.operation, component.scope, component.expression.type ].join('-');\n  var method = this._fns[key];\n\n  if (!method) throw new Error(\"couldn't resolve key: \" + key);\n  return method.bind(this);\n};\n\nHandlers.prototype.register = function(key, handler) {\n\n  if (!handler instanceof Function) {\n    throw new Error(\"handler must be a function\");\n  }\n\n  this._fns[key] = handler;\n};\n\nHandlers.prototype._fns = {\n\n  'member-child-identifier': function(component, partial) {\n    var key = component.expression.value;\n    var value = partial.value;\n    if (value instanceof Object && key in value) {\n      return [ { value: value[key], path: partial.path.concat(key) } ]\n    }\n  },\n\n  'member-descendant-identifier':\n    _traverse(function(key, value, ref) { return key == ref }),\n\n  'subscript-child-numeric_literal':\n    _descend(function(key, value, ref) { return key === ref }),\n\n  'member-child-numeric_literal':\n    _descend(function(key, value, ref) { return String(key) === String(ref) }),\n\n  'subscript-descendant-numeric_literal':\n    _traverse(function(key, value, ref) { return key === ref }),\n\n  'member-child-wildcard':\n    _descend(function() { return true }),\n\n  'member-descendant-wildcard':\n    _traverse(function() { return true }),\n\n  'subscript-descendant-wildcard':\n    _traverse(function() { return true }),\n\n  'subscript-child-wildcard':\n    _descend(function() { return true }),\n\n  'subscript-child-slice': function(component, partial) {\n    if (is_array(partial.value)) {\n      var args = component.expression.value.split(':').map(_parse_nullable_int);\n      var values = partial.value.map(function(v, i) { return { value: v, path: partial.path.concat(i) } });\n      return slice.apply(null, [values].concat(args));\n    }\n  },\n\n  'subscript-child-union': function(component, partial) {\n    var results = [];\n    component.expression.value.forEach(function(component) {\n      var _component = { operation: 'subscript', scope: 'child', expression: component.expression };\n      var handler = this.resolve(_component);\n      var _results = handler(_component, partial);\n      if (_results) {\n        results = results.concat(_results);\n      }\n    }, this);\n\n    return unique(results);\n  },\n\n  'subscript-descendant-union': function(component, partial, count) {\n\n    var jp = require('..');\n    var self = this;\n\n    var results = [];\n    var nodes = jp.nodes(partial, '$..*').slice(1);\n\n    nodes.forEach(function(node) {\n      if (results.length >= count) return;\n      component.expression.value.forEach(function(component) {\n        var _component = { operation: 'subscript', scope: 'child', expression: component.expression };\n        var handler = self.resolve(_component);\n        var _results = handler(_component, node);\n        results = results.concat(_results);\n      });\n    });\n\n    return unique(results);\n  },\n\n  'subscript-child-filter_expression': function(component, partial, count) {\n\n    // slice out the expression from ?(expression)\n    var src = component.expression.value.slice(2, -1);\n    var ast = aesprim.parse(src).body[0].expression;\n\n    var passable = function(key, value) {\n      return evaluate(ast, { '@': value });\n    }\n\n    return this.descend(partial, null, passable, count);\n\n  },\n\n  'subscript-descendant-filter_expression': function(component, partial, count) {\n\n    // slice out the expression from ?(expression)\n    var src = component.expression.value.slice(2, -1);\n    var ast = aesprim.parse(src).body[0].expression;\n\n    var passable = function(key, value) {\n      return evaluate(ast, { '@': value });\n    }\n\n    return this.traverse(partial, null, passable, count);\n  },\n\n  'subscript-child-script_expression': function(component, partial) {\n    var exp = component.expression.value.slice(1, -1);\n    return eval_recurse(partial, exp, '$[{{value}}]');\n  },\n\n  'member-child-script_expression': function(component, partial) {\n    var exp = component.expression.value.slice(1, -1);\n    return eval_recurse(partial, exp, '$.{{value}}');\n  },\n\n  'member-descendant-script_expression': function(component, partial) {\n    var exp = component.expression.value.slice(1, -1);\n    return eval_recurse(partial, exp, '$..value');\n  }\n};\n\nHandlers.prototype._fns['subscript-child-string_literal'] =\n\tHandlers.prototype._fns['member-child-identifier'];\n\nHandlers.prototype._fns['member-descendant-numeric_literal'] =\n    Handlers.prototype._fns['subscript-descendant-string_literal'] =\n    Handlers.prototype._fns['member-descendant-identifier'];\n\nfunction eval_recurse(partial, src, template) {\n\n  var jp = require('./index');\n  var ast = aesprim.parse(src).body[0].expression;\n  var value = evaluate(ast, { '@': partial.value });\n  var path = template.replace(/\\{\\{\\s*value\\s*\\}\\}/g, value);\n\n  var results = jp.nodes(partial.value, path);\n  results.forEach(function(r) {\n    r.path = partial.path.concat(r.path.slice(1));\n  });\n\n  return results;\n}\n\nfunction is_array(val) {\n  return Array.isArray(val);\n}\n\nfunction is_object(val) {\n  // is this a non-array, non-null object?\n  return val && !(val instanceof Array) && val instanceof Object;\n}\n\nfunction traverser(recurse) {\n\n  return function(partial, ref, passable, count) {\n\n    var value = partial.value;\n    var path = partial.path;\n\n    var results = [];\n\n    var descend = function(value, path) {\n\n      if (is_array(value)) {\n        value.forEach(function(element, index) {\n          if (results.length >= count) { return }\n          if (passable(index, element, ref)) {\n            results.push({ path: path.concat(index), value: element });\n          }\n        });\n        value.forEach(function(element, index) {\n          if (results.length >= count) { return }\n          if (recurse) {\n            descend(element, path.concat(index));\n          }\n        });\n      } else if (is_object(value)) {\n        this.keys(value).forEach(function(k) {\n          if (results.length >= count) { return }\n          if (passable(k, value[k], ref)) {\n            results.push({ path: path.concat(k), value: value[k] });\n          }\n        })\n        this.keys(value).forEach(function(k) {\n          if (results.length >= count) { return }\n          if (recurse) {\n            descend(value[k], path.concat(k));\n          }\n        });\n      }\n    }.bind(this);\n    descend(value, path);\n    return results;\n  }\n}\n\nfunction _descend(passable) {\n  return function(component, partial, count) {\n    return this.descend(partial, component.expression.value, passable, count);\n  }\n}\n\nfunction _traverse(passable) {\n  return function(component, partial, count) {\n    return this.traverse(partial, component.expression.value, passable, count);\n  }\n}\n\nfunction evaluate() {\n  try { return _evaluate.apply(this, arguments) }\n  catch (e) { }\n}\n\nfunction unique(results) {\n  results = results.filter(function(d) { return d })\n  return _uniq(\n    results,\n    function(r) { return r.path.map(function(c) { return String(c).replace('-', '--') }).join('-') }\n  );\n}\n\nfunction _parse_nullable_int(val) {\n  var sval = String(val);\n  return sval.match(/^-?[0-9]+$/) ? parseInt(sval) : null;\n}\n\nmodule.exports = Handlers;\n\n},{\"..\":\"jsonpath\",\"./aesprim\":\"./aesprim\",\"./index\":5,\"./slice\":7,\"static-eval\":15,\"underscore\":12}],5:[function(require,module,exports){\nvar assert = require('assert');\nvar dict = require('./dict');\nvar Parser = require('./parser');\nvar Handlers = require('./handlers');\n\nvar JSONPath = function() {\n  this.initialize.apply(this, arguments);\n};\n\nJSONPath.prototype.initialize = function() {\n  this.parser = new Parser();\n  this.handlers = new Handlers();\n};\n\nJSONPath.prototype.parse = function(string) {\n  assert.ok(_is_string(string), \"we need a path\");\n  return this.parser.parse(string);\n};\n\nJSONPath.prototype.parent = function(obj, string) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(string, \"we need a path\");\n\n  var node = this.nodes(obj, string)[0];\n  var key = node.path.pop(); /* jshint unused:false */\n  return this.value(obj, node.path);\n}\n\nJSONPath.prototype.apply = function(obj, string, fn) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(string, \"we need a path\");\n  assert.equal(typeof fn, \"function\", \"fn needs to be function\")\n\n  var nodes = this.nodes(obj, string).sort(function(a, b) {\n    // sort nodes so we apply from the bottom up\n    return b.path.length - a.path.length;\n  });\n\n  nodes.forEach(function(node) {\n    var key = node.path.pop();\n    var parent = this.value(obj, this.stringify(node.path));\n    var val = node.value = fn.call(obj, parent[key]);\n    parent[key] = val;\n  }, this);\n\n  return nodes;\n}\n\nJSONPath.prototype.value = function(obj, path, value) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(path, \"we need a path\");\n\n  if (arguments.length >= 3) {\n    var node = this.nodes(obj, path).shift();\n    if (!node) return this._vivify(obj, path, value);\n    var key = node.path.slice(-1).shift();\n    var parent = this.parent(obj, this.stringify(node.path));\n    parent[key] = value;\n  }\n  return this.query(obj, this.stringify(path), 1).shift();\n}\n\nJSONPath.prototype._vivify = function(obj, string, value) {\n\n  var self = this;\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(string, \"we need a path\");\n\n  var path = this.parser.parse(string)\n    .map(function(component) { return component.expression.value });\n\n  var setValue = function(path, value) {\n    var key = path.pop();\n    var node = self.value(obj, path);\n    if (!node) {\n      setValue(path.concat(), typeof key === 'string' ? {} : []);\n      node = self.value(obj, path);\n    }\n    node[key] = value;\n  }\n  setValue(path, value);\n  return this.query(obj, string)[0];\n}\n\nJSONPath.prototype.query = function(obj, string, count) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(_is_string(string), \"we need a path\");\n\n  var results = this.nodes(obj, string, count)\n    .map(function(r) { return r.value });\n\n  return results;\n};\n\nJSONPath.prototype.paths = function(obj, string, count) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(string, \"we need a path\");\n\n  var results = this.nodes(obj, string, count)\n    .map(function(r) { return r.path });\n\n  return results;\n};\n\nJSONPath.prototype.nodes = function(obj, string, count) {\n\n  assert.ok(obj instanceof Object, \"obj needs to be an object\");\n  assert.ok(string, \"we need a path\");\n\n  if (count === 0) return [];\n\n  var path = this.parser.parse(string);\n  var handlers = this.handlers;\n\n  var partials = [ { path: ['$'], value: obj } ];\n  var matches = [];\n\n  if (path.length && path[0].expression.type == 'root') path.shift();\n\n  if (!path.length) return partials;\n\n  path.forEach(function(component, index) {\n\n    if (matches.length >= count) return;\n    var handler = handlers.resolve(component);\n    var _partials = [];\n\n    partials.forEach(function(p) {\n\n      if (matches.length >= count) return;\n      var results = handler(component, p, count);\n\n      if (index == path.length - 1) {\n        // if we're through the components we're done\n        matches = matches.concat(results || []);\n      } else {\n        // otherwise accumulate and carry on through\n        _partials = _partials.concat(results || []);\n      }\n    });\n\n    partials = _partials;\n\n  });\n\n  return count ? matches.slice(0, count) : matches;\n};\n\nJSONPath.prototype.stringify = function(path) {\n\n  assert.ok(path, \"we need a path\");\n\n  var string = '$';\n\n  var templates = {\n    'descendant-member': '..{{value}}',\n    'child-member': '.{{value}}',\n    'descendant-subscript': '..[{{value}}]',\n    'child-subscript': '[{{value}}]'\n  };\n\n  path = this._normalize(path);\n\n  path.forEach(function(component) {\n\n    if (component.expression.type == 'root') return;\n\n    var key = [component.scope, component.operation].join('-');\n    var template = templates[key];\n    var value;\n\n    if (component.expression.type == 'string_literal') {\n      value = JSON.stringify(component.expression.value)\n    } else {\n      value = component.expression.value;\n    }\n\n    if (!template) throw new Error(\"couldn't find template \" + key);\n\n    string += template.replace(/{{value}}/, value);\n  });\n\n  return string;\n}\n\nJSONPath.prototype._normalize = function(path) {\n\n  assert.ok(path, \"we need a path\");\n\n  if (typeof path == \"string\") {\n\n    return this.parser.parse(path);\n\n  } else if (Array.isArray(path) && typeof path[0] == \"string\") {\n\n    var _path = [ { expression: { type: \"root\", value: \"$\" } } ];\n\n    path.forEach(function(component, index) {\n\n      if (component == '$' && index === 0) return;\n\n      if (typeof component == \"string\" && component.match(\"^\" + dict.identifier + \"$\")) {\n\n        _path.push({\n          operation: 'member',\n          scope: 'child',\n          expression: { value: component, type: 'identifier' }\n        });\n\n      } else {\n\n        var type = typeof component == \"number\" ?\n          'numeric_literal' : 'string_literal';\n\n        _path.push({\n          operation: 'subscript',\n          scope: 'child',\n          expression: { value: component, type: type }\n        });\n      }\n    });\n\n    return _path;\n\n  } else if (Array.isArray(path) && typeof path[0] == \"object\") {\n\n    return path\n  }\n\n  throw new Error(\"couldn't understand path \" + path);\n}\n\nfunction _is_string(obj) {\n  return Object.prototype.toString.call(obj) == '[object String]';\n}\n\nJSONPath.Handlers = Handlers;\nJSONPath.Parser = Parser;\n\nvar instance = new JSONPath;\ninstance.JSONPath = JSONPath;\n\nmodule.exports = instance;\n\n},{\"./dict\":2,\"./handlers\":4,\"./parser\":6,\"assert\":8}],6:[function(require,module,exports){\nvar grammar = require('./grammar');\nvar gparser = require('../generated/parser');\n\nvar Parser = function() {\n\n  var parser = new gparser.Parser();\n\n  var _parseError = parser.parseError;\n  parser.yy.parseError = function() {\n    if (parser.yy.ast) {\n      parser.yy.ast.initialize();\n    }\n    _parseError.apply(parser, arguments);\n  }\n\n  return parser;\n\n};\n\nParser.grammar = grammar;\nmodule.exports = Parser;\n\n},{\"../generated/parser\":1,\"./grammar\":3}],7:[function(require,module,exports){\nmodule.exports = function(arr, start, end, step) {\n\n  if (typeof start == 'string') throw new Error(\"start cannot be a string\");\n  if (typeof end == 'string') throw new Error(\"end cannot be a string\");\n  if (typeof step == 'string') throw new Error(\"step cannot be a string\");\n\n  var len = arr.length;\n\n  if (step === 0) throw new Error(\"step cannot be zero\");\n  step = step ? integer(step) : 1;\n\n  // normalize negative values\n  start = start < 0 ? len + start : start;\n  end = end < 0 ? len + end : end;\n\n  // default extents to extents\n  start = integer(start === 0 ? 0 : !start ? (step > 0 ? 0 : len - 1) : start);\n  end = integer(end === 0 ? 0 : !end ? (step > 0 ? len : -1) : end);\n\n  // clamp extents\n  start = step > 0 ? Math.max(0, start) : Math.min(len, start);\n  end = step > 0 ? Math.min(end, len) : Math.max(-1, end);\n\n  // return empty if extents are backwards\n  if (step > 0 && end <= start) return [];\n  if (step < 0 && start <= end) return [];\n\n  var result = [];\n\n  for (var i = start; i != end; i += step) {\n    if ((step < 0 && i <= end) || (step > 0 && i >= end)) break;\n    result.push(arr[i]);\n  }\n\n  return result;\n}\n\nfunction integer(val) {\n  return String(val).match(/^[0-9]+$/) ? parseInt(val) :\n    Number.isFinite(val) ? parseInt(val, 10) : 0;\n}\n\n},{}],8:[function(require,module,exports){\n// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// when used in node, this will actually load the util module we depend on\n// versus loading the builtin util module as happens otherwise\n// this is a bug in node module loading as far as I am concerned\nvar util = require('util/');\n\nvar pSlice = Array.prototype.slice;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n//                             actual: actual,\n//                             expected: expected })\n\nassert.AssertionError = function AssertionError(options) {\n  this.name = 'AssertionError';\n  this.actual = options.actual;\n  this.expected = options.expected;\n  this.operator = options.operator;\n  if (options.message) {\n    this.message = options.message;\n    this.generatedMessage = false;\n  } else {\n    this.message = getMessage(this);\n    this.generatedMessage = true;\n  }\n  var stackStartFunction = options.stackStartFunction || fail;\n\n  if (Error.captureStackTrace) {\n    Error.captureStackTrace(this, stackStartFunction);\n  }\n  else {\n    // non v8 browsers so we can have a stacktrace\n    var err = new Error();\n    if (err.stack) {\n      var out = err.stack;\n\n      // try to strip useless frames\n      var fn_name = stackStartFunction.name;\n      var idx = out.indexOf('\\n' + fn_name);\n      if (idx >= 0) {\n        // once we have located the function frame\n        // we need to strip out everything before it (and its line)\n        var next_line = out.indexOf('\\n', idx + 1);\n        out = out.substring(next_line + 1);\n      }\n\n      this.stack = out;\n    }\n  }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction replacer(key, value) {\n  if (util.isUndefined(value)) {\n    return '' + value;\n  }\n  if (util.isNumber(value) && !isFinite(value)) {\n    return value.toString();\n  }\n  if (util.isFunction(value) || util.isRegExp(value)) {\n    return value.toString();\n  }\n  return value;\n}\n\nfunction truncate(s, n) {\n  if (util.isString(s)) {\n    return s.length < n ? s : s.slice(0, n);\n  } else {\n    return s;\n  }\n}\n\nfunction getMessage(self) {\n  return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +\n         self.operator + ' ' +\n         truncate(JSON.stringify(self.expected, replacer), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided.  All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n  throw new assert.AssertionError({\n    message: message,\n    actual: actual,\n    expected: expected,\n    operator: operator,\n    stackStartFunction: stackStartFunction\n  });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n  if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n  if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n  if (actual == expected) {\n    fail(actual, expected, message, '!=', assert.notEqual);\n  }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n  if (!_deepEqual(actual, expected)) {\n    fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n  }\n};\n\nfunction _deepEqual(actual, expected) {\n  // 7.1. All identical values are equivalent, as determined by ===.\n  if (actual === expected) {\n    return true;\n\n  } else if (util.isBuffer(actual) && util.isBuffer(expected)) {\n    if (actual.length != expected.length) return false;\n\n    for (var i = 0; i < actual.length; i++) {\n      if (actual[i] !== expected[i]) return false;\n    }\n\n    return true;\n\n  // 7.2. If the expected value is a Date object, the actual value is\n  // equivalent if it is also a Date object that refers to the same time.\n  } else if (util.isDate(actual) && util.isDate(expected)) {\n    return actual.getTime() === expected.getTime();\n\n  // 7.3 If the expected value is a RegExp object, the actual value is\n  // equivalent if it is also a RegExp object with the same source and\n  // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n  } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n    return actual.source === expected.source &&\n           actual.global === expected.global &&\n           actual.multiline === expected.multiline &&\n           actual.lastIndex === expected.lastIndex &&\n           actual.ignoreCase === expected.ignoreCase;\n\n  // 7.4. Other pairs that do not both pass typeof value == 'object',\n  // equivalence is determined by ==.\n  } else if (!util.isObject(actual) && !util.isObject(expected)) {\n    return actual == expected;\n\n  // 7.5 For all other Object pairs, including Array objects, equivalence is\n  // determined by having the same number of owned properties (as verified\n  // with Object.prototype.hasOwnProperty.call), the same set of keys\n  // (although not necessarily the same order), equivalent values for every\n  // corresponding key, and an identical 'prototype' property. Note: this\n  // accounts for both named and indexed properties on Arrays.\n  } else {\n    return objEquiv(actual, expected);\n  }\n}\n\nfunction isArguments(object) {\n  return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b) {\n  if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))\n    return false;\n  // an identical 'prototype' property.\n  if (a.prototype !== b.prototype) return false;\n  // if one is a primitive, the other must be same\n  if (util.isPrimitive(a) || util.isPrimitive(b)) {\n    return a === b;\n  }\n  var aIsArgs = isArguments(a),\n      bIsArgs = isArguments(b);\n  if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n    return false;\n  if (aIsArgs) {\n    a = pSlice.call(a);\n    b = pSlice.call(b);\n    return _deepEqual(a, b);\n  }\n  var ka = objectKeys(a),\n      kb = objectKeys(b),\n      key, i;\n  // having the same number of owned properties (keys incorporates\n  // hasOwnProperty)\n  if (ka.length != kb.length)\n    return false;\n  //the same set of keys (although not necessarily the same order),\n  ka.sort();\n  kb.sort();\n  //~~~cheap key test\n  for (i = ka.length - 1; i >= 0; i--) {\n    if (ka[i] != kb[i])\n      return false;\n  }\n  //equivalent values for every corresponding key, and\n  //~~~possibly expensive deep test\n  for (i = ka.length - 1; i >= 0; i--) {\n    key = ka[i];\n    if (!_deepEqual(a[key], b[key])) return false;\n  }\n  return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n  if (_deepEqual(actual, expected)) {\n    fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n  }\n};\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n  if (actual !== expected) {\n    fail(actual, expected, message, '===', assert.strictEqual);\n  }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==.  assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n  if (actual === expected) {\n    fail(actual, expected, message, '!==', assert.notStrictEqual);\n  }\n};\n\nfunction expectedException(actual, expected) {\n  if (!actual || !expected) {\n    return false;\n  }\n\n  if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n    return expected.test(actual);\n  } else if (actual instanceof expected) {\n    return true;\n  } else if (expected.call({}, actual) === true) {\n    return true;\n  }\n\n  return false;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n  var actual;\n\n  if (util.isString(expected)) {\n    message = expected;\n    expected = null;\n  }\n\n  try {\n    block();\n  } catch (e) {\n    actual = e;\n  }\n\n  message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n            (message ? ' ' + message : '.');\n\n  if (shouldThrow && !actual) {\n    fail(actual, expected, 'Missing expected exception' + message);\n  }\n\n  if (!shouldThrow && expectedException(actual, expected)) {\n    fail(actual, expected, 'Got unwanted exception' + message);\n  }\n\n  if ((shouldThrow && actual && expected &&\n      !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n    throw actual;\n  }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n  _throws.apply(this, [true].concat(pSlice.call(arguments)));\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/message) {\n  _throws.apply(this, [false].concat(pSlice.call(arguments)));\n};\n\nassert.ifError = function(err) { if (err) {throw err;}};\n\nvar objectKeys = Object.keys || function (obj) {\n  var keys = [];\n  for (var key in obj) {\n    if (hasOwn.call(obj, key)) keys.push(key);\n  }\n  return keys;\n};\n\n},{\"util/\":11}],9:[function(require,module,exports){\nif (typeof Object.create === 'function') {\n  // implementation from standard node.js 'util' module\n  module.exports = function inherits(ctor, superCtor) {\n    ctor.super_ = superCtor\n    ctor.prototype = Object.create(superCtor.prototype, {\n      constructor: {\n        value: ctor,\n        enumerable: false,\n        writable: true,\n        configurable: true\n      }\n    });\n  };\n} else {\n  // old school shim for old browsers\n  module.exports = function inherits(ctor, superCtor) {\n    ctor.super_ = superCtor\n    var TempCtor = function () {}\n    TempCtor.prototype = superCtor.prototype\n    ctor.prototype = new TempCtor()\n    ctor.prototype.constructor = ctor\n  }\n}\n\n},{}],10:[function(require,module,exports){\nmodule.exports = function isBuffer(arg) {\n  return arg && typeof arg === 'object'\n    && typeof arg.copy === 'function'\n    && typeof arg.fill === 'function'\n    && typeof arg.readUInt8 === 'function';\n}\n},{}],11:[function(require,module,exports){\n(function (process,global){\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n  if (!isString(f)) {\n    var objects = [];\n    for (var i = 0; i < arguments.length; i++) {\n      objects.push(inspect(arguments[i]));\n    }\n    return objects.join(' ');\n  }\n\n  var i = 1;\n  var args = arguments;\n  var len = args.length;\n  var str = String(f).replace(formatRegExp, function(x) {\n    if (x === '%%') return '%';\n    if (i >= len) return x;\n    switch (x) {\n      case '%s': return String(args[i++]);\n      case '%d': return Number(args[i++]);\n      case '%j':\n        try {\n          return JSON.stringify(args[i++]);\n        } catch (_) {\n          return '[Circular]';\n        }\n      default:\n        return x;\n    }\n  });\n  for (var x = args[i]; i < len; x = args[++i]) {\n    if (isNull(x) || !isObject(x)) {\n      str += ' ' + x;\n    } else {\n      str += ' ' + inspect(x);\n    }\n  }\n  return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n  // Allow for deprecating things in the process of starting up.\n  if (isUndefined(global.process)) {\n    return function() {\n      return exports.deprecate(fn, msg).apply(this, arguments);\n    };\n  }\n\n  if (process.noDeprecation === true) {\n    return fn;\n  }\n\n  var warned = false;\n  function deprecated() {\n    if (!warned) {\n      if (process.throwDeprecation) {\n        throw new Error(msg);\n      } else if (process.traceDeprecation) {\n        console.trace(msg);\n      } else {\n        console.error(msg);\n      }\n      warned = true;\n    }\n    return fn.apply(this, arguments);\n  }\n\n  return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n  if (isUndefined(debugEnviron))\n    debugEnviron = process.env.NODE_DEBUG || '';\n  set = set.toUpperCase();\n  if (!debugs[set]) {\n    if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n      var pid = process.pid;\n      debugs[set] = function() {\n        var msg = exports.format.apply(exports, arguments);\n        console.error('%s %d: %s', set, pid, msg);\n      };\n    } else {\n      debugs[set] = function() {};\n    }\n  }\n  return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n  // default options\n  var ctx = {\n    seen: [],\n    stylize: stylizeNoColor\n  };\n  // legacy...\n  if (arguments.length >= 3) ctx.depth = arguments[2];\n  if (arguments.length >= 4) ctx.colors = arguments[3];\n  if (isBoolean(opts)) {\n    // legacy...\n    ctx.showHidden = opts;\n  } else if (opts) {\n    // got an \"options\" object\n    exports._extend(ctx, opts);\n  }\n  // set default options\n  if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n  if (isUndefined(ctx.depth)) ctx.depth = 2;\n  if (isUndefined(ctx.colors)) ctx.colors = false;\n  if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n  if (ctx.colors) ctx.stylize = stylizeWithColor;\n  return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n  'bold' : [1, 22],\n  'italic' : [3, 23],\n  'underline' : [4, 24],\n  'inverse' : [7, 27],\n  'white' : [37, 39],\n  'grey' : [90, 39],\n  'black' : [30, 39],\n  'blue' : [34, 39],\n  'cyan' : [36, 39],\n  'green' : [32, 39],\n  'magenta' : [35, 39],\n  'red' : [31, 39],\n  'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n  'special': 'cyan',\n  'number': 'yellow',\n  'boolean': 'yellow',\n  'undefined': 'grey',\n  'null': 'bold',\n  'string': 'green',\n  'date': 'magenta',\n  // \"name\": intentionally not styling\n  'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n  var style = inspect.styles[styleType];\n\n  if (style) {\n    return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n           '\\u001b[' + inspect.colors[style][1] + 'm';\n  } else {\n    return str;\n  }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n  return str;\n}\n\n\nfunction arrayToHash(array) {\n  var hash = {};\n\n  array.forEach(function(val, idx) {\n    hash[val] = true;\n  });\n\n  return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n  // Provide a hook for user-specified inspect functions.\n  // Check that value is an object with an inspect function on it\n  if (ctx.customInspect &&\n      value &&\n      isFunction(value.inspect) &&\n      // Filter out the util module, it's inspect function is special\n      value.inspect !== exports.inspect &&\n      // Also filter out any prototype objects using the circular check.\n      !(value.constructor && value.constructor.prototype === value)) {\n    var ret = value.inspect(recurseTimes, ctx);\n    if (!isString(ret)) {\n      ret = formatValue(ctx, ret, recurseTimes);\n    }\n    return ret;\n  }\n\n  // Primitive types cannot have properties\n  var primitive = formatPrimitive(ctx, value);\n  if (primitive) {\n    return primitive;\n  }\n\n  // Look up the keys of the object.\n  var keys = Object.keys(value);\n  var visibleKeys = arrayToHash(keys);\n\n  if (ctx.showHidden) {\n    keys = Object.getOwnPropertyNames(value);\n  }\n\n  // IE doesn't make error fields non-enumerable\n  // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n  if (isError(value)\n      && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n    return formatError(value);\n  }\n\n  // Some type of object without properties can be shortcutted.\n  if (keys.length === 0) {\n    if (isFunction(value)) {\n      var name = value.name ? ': ' + value.name : '';\n      return ctx.stylize('[Function' + name + ']', 'special');\n    }\n    if (isRegExp(value)) {\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n    }\n    if (isDate(value)) {\n      return ctx.stylize(Date.prototype.toString.call(value), 'date');\n    }\n    if (isError(value)) {\n      return formatError(value);\n    }\n  }\n\n  var base = '', array = false, braces = ['{', '}'];\n\n  // Make Array say that they are Array\n  if (isArray(value)) {\n    array = true;\n    braces = ['[', ']'];\n  }\n\n  // Make functions say that they are functions\n  if (isFunction(value)) {\n    var n = value.name ? ': ' + value.name : '';\n    base = ' [Function' + n + ']';\n  }\n\n  // Make RegExps say that they are RegExps\n  if (isRegExp(value)) {\n    base = ' ' + RegExp.prototype.toString.call(value);\n  }\n\n  // Make dates with properties first say the date\n  if (isDate(value)) {\n    base = ' ' + Date.prototype.toUTCString.call(value);\n  }\n\n  // Make error with message first say the error\n  if (isError(value)) {\n    base = ' ' + formatError(value);\n  }\n\n  if (keys.length === 0 && (!array || value.length == 0)) {\n    return braces[0] + base + braces[1];\n  }\n\n  if (recurseTimes < 0) {\n    if (isRegExp(value)) {\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n    } else {\n      return ctx.stylize('[Object]', 'special');\n    }\n  }\n\n  ctx.seen.push(value);\n\n  var output;\n  if (array) {\n    output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n  } else {\n    output = keys.map(function(key) {\n      return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n    });\n  }\n\n  ctx.seen.pop();\n\n  return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n  if (isUndefined(value))\n    return ctx.stylize('undefined', 'undefined');\n  if (isString(value)) {\n    var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n                                             .replace(/'/g, \"\\\\'\")\n                                             .replace(/\\\\\"/g, '\"') + '\\'';\n    return ctx.stylize(simple, 'string');\n  }\n  if (isNumber(value))\n    return ctx.stylize('' + value, 'number');\n  if (isBoolean(value))\n    return ctx.stylize('' + value, 'boolean');\n  // For some reason typeof null is \"object\", so special case here.\n  if (isNull(value))\n    return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n  return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n  var output = [];\n  for (var i = 0, l = value.length; i < l; ++i) {\n    if (hasOwnProperty(value, String(i))) {\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n          String(i), true));\n    } else {\n      output.push('');\n    }\n  }\n  keys.forEach(function(key) {\n    if (!key.match(/^\\d+$/)) {\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n          key, true));\n    }\n  });\n  return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n  var name, str, desc;\n  desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n  if (desc.get) {\n    if (desc.set) {\n      str = ctx.stylize('[Getter/Setter]', 'special');\n    } else {\n      str = ctx.stylize('[Getter]', 'special');\n    }\n  } else {\n    if (desc.set) {\n      str = ctx.stylize('[Setter]', 'special');\n    }\n  }\n  if (!hasOwnProperty(visibleKeys, key)) {\n    name = '[' + key + ']';\n  }\n  if (!str) {\n    if (ctx.seen.indexOf(desc.value) < 0) {\n      if (isNull(recurseTimes)) {\n        str = formatValue(ctx, desc.value, null);\n      } else {\n        str = formatValue(ctx, desc.value, recurseTimes - 1);\n      }\n      if (str.indexOf('\\n') > -1) {\n        if (array) {\n          str = str.split('\\n').map(function(line) {\n            return '  ' + line;\n          }).join('\\n').substr(2);\n        } else {\n          str = '\\n' + str.split('\\n').map(function(line) {\n            return '   ' + line;\n          }).join('\\n');\n        }\n      }\n    } else {\n      str = ctx.stylize('[Circular]', 'special');\n    }\n  }\n  if (isUndefined(name)) {\n    if (array && key.match(/^\\d+$/)) {\n      return str;\n    }\n    name = JSON.stringify('' + key);\n    if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n      name = name.substr(1, name.length - 2);\n      name = ctx.stylize(name, 'name');\n    } else {\n      name = name.replace(/'/g, \"\\\\'\")\n                 .replace(/\\\\\"/g, '\"')\n                 .replace(/(^\"|\"$)/g, \"'\");\n      name = ctx.stylize(name, 'string');\n    }\n  }\n\n  return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n  var numLinesEst = 0;\n  var length = output.reduce(function(prev, cur) {\n    numLinesEst++;\n    if (cur.indexOf('\\n') >= 0) numLinesEst++;\n    return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n  }, 0);\n\n  if (length > 60) {\n    return braces[0] +\n           (base === '' ? '' : base + '\\n ') +\n           ' ' +\n           output.join(',\\n  ') +\n           ' ' +\n           braces[1];\n  }\n\n  return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n  return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n  return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n  return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n  return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n  return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n  return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n  return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n  return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n  return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n  return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n  return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n  return isObject(e) &&\n      (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n  return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n  return arg === null ||\n         typeof arg === 'boolean' ||\n         typeof arg === 'number' ||\n         typeof arg === 'string' ||\n         typeof arg === 'symbol' ||  // ES6 symbol\n         typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n  return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n  return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n              'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n  var d = new Date();\n  var time = [pad(d.getHours()),\n              pad(d.getMinutes()),\n              pad(d.getSeconds())].join(':');\n  return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n  console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n *     prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n  // Don't do anything if add isn't an object\n  if (!add || !isObject(add)) return origin;\n\n  var keys = Object.keys(add);\n  var i = keys.length;\n  while (i--) {\n    origin[keys[i]] = add[keys[i]];\n  }\n  return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./support/isBuffer\":10,\"_process\":14,\"inherits\":9}],12:[function(require,module,exports){\n\n},{}],13:[function(require,module,exports){\n(function (process){\n// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n  // if the path tries to go above the root, `up` ends up > 0\n  var up = 0;\n  for (var i = parts.length - 1; i >= 0; i--) {\n    var last = parts[i];\n    if (last === '.') {\n      parts.splice(i, 1);\n    } else if (last === '..') {\n      parts.splice(i, 1);\n      up++;\n    } else if (up) {\n      parts.splice(i, 1);\n      up--;\n    }\n  }\n\n  // if the path is allowed to go above the root, restore leading ..s\n  if (allowAboveRoot) {\n    for (; up--; up) {\n      parts.unshift('..');\n    }\n  }\n\n  return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n  var resolvedPath = '',\n      resolvedAbsolute = false;\n\n  for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n    var path = (i >= 0) ? arguments[i] : process.cwd();\n\n    // Skip empty and invalid entries\n    if (typeof path !== 'string') {\n      throw new TypeError('Arguments to path.resolve must be strings');\n    } else if (!path) {\n      continue;\n    }\n\n    resolvedPath = path + '/' + resolvedPath;\n    resolvedAbsolute = path.charAt(0) === '/';\n  }\n\n  // At this point the path should be resolved to a full absolute path, but\n  // handle relative paths to be safe (might happen when process.cwd() fails)\n\n  // Normalize the path\n  resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n    return !!p;\n  }), !resolvedAbsolute).join('/');\n\n  return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n  var isAbsolute = exports.isAbsolute(path),\n      trailingSlash = substr(path, -1) === '/';\n\n  // Normalize the path\n  path = normalizeArray(filter(path.split('/'), function(p) {\n    return !!p;\n  }), !isAbsolute).join('/');\n\n  if (!path && !isAbsolute) {\n    path = '.';\n  }\n  if (path && trailingSlash) {\n    path += '/';\n  }\n\n  return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n  return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n  var paths = Array.prototype.slice.call(arguments, 0);\n  return exports.normalize(filter(paths, function(p, index) {\n    if (typeof p !== 'string') {\n      throw new TypeError('Arguments to path.join must be strings');\n    }\n    return p;\n  }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n  from = exports.resolve(from).substr(1);\n  to = exports.resolve(to).substr(1);\n\n  function trim(arr) {\n    var start = 0;\n    for (; start < arr.length; start++) {\n      if (arr[start] !== '') break;\n    }\n\n    var end = arr.length - 1;\n    for (; end >= 0; end--) {\n      if (arr[end] !== '') break;\n    }\n\n    if (start > end) return [];\n    return arr.slice(start, end - start + 1);\n  }\n\n  var fromParts = trim(from.split('/'));\n  var toParts = trim(to.split('/'));\n\n  var length = Math.min(fromParts.length, toParts.length);\n  var samePartsLength = length;\n  for (var i = 0; i < length; i++) {\n    if (fromParts[i] !== toParts[i]) {\n      samePartsLength = i;\n      break;\n    }\n  }\n\n  var outputParts = [];\n  for (var i = samePartsLength; i < fromParts.length; i++) {\n    outputParts.push('..');\n  }\n\n  outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n  return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n  if (typeof path !== 'string') path = path + '';\n  if (path.length === 0) return '.';\n  var code = path.charCodeAt(0);\n  var hasRoot = code === 47 /*/*/;\n  var end = -1;\n  var matchedSlash = true;\n  for (var i = path.length - 1; i >= 1; --i) {\n    code = path.charCodeAt(i);\n    if (code === 47 /*/*/) {\n        if (!matchedSlash) {\n          end = i;\n          break;\n        }\n      } else {\n      // We saw the first non-path separator\n      matchedSlash = false;\n    }\n  }\n\n  if (end === -1) return hasRoot ? '/' : '.';\n  if (hasRoot && end === 1) {\n    // return '//';\n    // Backwards-compat fix:\n    return '/';\n  }\n  return path.slice(0, end);\n};\n\nfunction basename(path) {\n  if (typeof path !== 'string') path = path + '';\n\n  var start = 0;\n  var end = -1;\n  var matchedSlash = true;\n  var i;\n\n  for (i = path.length - 1; i >= 0; --i) {\n    if (path.charCodeAt(i) === 47 /*/*/) {\n        // If we reached a path separator that was not part of a set of path\n        // separators at the end of the string, stop now\n        if (!matchedSlash) {\n          start = i + 1;\n          break;\n        }\n      } else if (end === -1) {\n      // We saw the first non-path separator, mark this as the end of our\n      // path component\n      matchedSlash = false;\n      end = i + 1;\n    }\n  }\n\n  if (end === -1) return '';\n  return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n  var f = basename(path);\n  if (ext && f.substr(-1 * ext.length) === ext) {\n    f = f.substr(0, f.length - ext.length);\n  }\n  return f;\n};\n\nexports.extname = function (path) {\n  if (typeof path !== 'string') path = path + '';\n  var startDot = -1;\n  var startPart = 0;\n  var end = -1;\n  var matchedSlash = true;\n  // Track the state of characters (if any) we see before our first dot and\n  // after any path separator we find\n  var preDotState = 0;\n  for (var i = path.length - 1; i >= 0; --i) {\n    var code = path.charCodeAt(i);\n    if (code === 47 /*/*/) {\n        // If we reached a path separator that was not part of a set of path\n        // separators at the end of the string, stop now\n        if (!matchedSlash) {\n          startPart = i + 1;\n          break;\n        }\n        continue;\n      }\n    if (end === -1) {\n      // We saw the first non-path separator, mark this as the end of our\n      // extension\n      matchedSlash = false;\n      end = i + 1;\n    }\n    if (code === 46 /*.*/) {\n        // If this is our first dot, mark it as the start of our extension\n        if (startDot === -1)\n          startDot = i;\n        else if (preDotState !== 1)\n          preDotState = 1;\n    } else if (startDot !== -1) {\n      // We saw a non-dot and non-path separator before our dot, so we should\n      // have a good chance at having a non-empty extension\n      preDotState = -1;\n    }\n  }\n\n  if (startDot === -1 || end === -1 ||\n      // We saw a non-dot character immediately before the dot\n      preDotState === 0 ||\n      // The (right-most) trimmed path component is exactly '..'\n      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n    return '';\n  }\n  return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n    if (xs.filter) return xs.filter(f);\n    var res = [];\n    for (var i = 0; i < xs.length; i++) {\n        if (f(xs[i], i, xs)) res.push(xs[i]);\n    }\n    return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n    ? function (str, start, len) { return str.substr(start, len) }\n    : function (str, start, len) {\n        if (start < 0) start = str.length + start;\n        return str.substr(start, len);\n    }\n;\n\n}).call(this,require('_process'))\n},{\"_process\":14}],14:[function(require,module,exports){\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n    throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n    throw new Error('clearTimeout has not been defined');\n}\n(function () {\n    try {\n        if (typeof setTimeout === 'function') {\n            cachedSetTimeout = setTimeout;\n        } else {\n            cachedSetTimeout = defaultSetTimout;\n        }\n    } catch (e) {\n        cachedSetTimeout = defaultSetTimout;\n    }\n    try {\n        if (typeof clearTimeout === 'function') {\n            cachedClearTimeout = clearTimeout;\n        } else {\n            cachedClearTimeout = defaultClearTimeout;\n        }\n    } catch (e) {\n        cachedClearTimeout = defaultClearTimeout;\n    }\n} ())\nfunction runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n        //normal enviroments in sane situations\n        return setTimeout(fun, 0);\n    }\n    // if setTimeout wasn't available but was latter defined\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n        cachedSetTimeout = setTimeout;\n        return setTimeout(fun, 0);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedSetTimeout(fun, 0);\n    } catch(e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n            return cachedSetTimeout.call(null, fun, 0);\n        } catch(e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n            return cachedSetTimeout.call(this, fun, 0);\n        }\n    }\n\n\n}\nfunction runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n        //normal enviroments in sane situations\n        return clearTimeout(marker);\n    }\n    // if clearTimeout wasn't available but was latter defined\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n        cachedClearTimeout = clearTimeout;\n        return clearTimeout(marker);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedClearTimeout(marker);\n    } catch (e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n            return cachedClearTimeout.call(null, marker);\n        } catch (e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n            return cachedClearTimeout.call(this, marker);\n        }\n    }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n        return;\n    }\n    draining = false;\n    if (currentQueue.length) {\n        queue = currentQueue.concat(queue);\n    } else {\n        queueIndex = -1;\n    }\n    if (queue.length) {\n        drainQueue();\n    }\n}\n\nfunction drainQueue() {\n    if (draining) {\n        return;\n    }\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n\n    var len = queue.length;\n    while(len) {\n        currentQueue = queue;\n        queue = [];\n        while (++queueIndex < len) {\n            if (currentQueue) {\n                currentQueue[queueIndex].run();\n            }\n        }\n        queueIndex = -1;\n        len = queue.length;\n    }\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n    var args = new Array(arguments.length - 1);\n    if (arguments.length > 1) {\n        for (var i = 1; i < arguments.length; i++) {\n            args[i - 1] = arguments[i];\n        }\n    }\n    queue.push(new Item(fun, args));\n    if (queue.length === 1 && !draining) {\n        runTimeout(drainQueue);\n    }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n    this.fun = fun;\n    this.array = array;\n}\nItem.prototype.run = function () {\n    this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n    throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n    throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n},{}],15:[function(require,module,exports){\nvar unparse = require('escodegen').generate;\n\nmodule.exports = function (ast, vars) {\n    if (!vars) vars = {};\n    var FAIL = {};\n    \n    var result = (function walk (node, scopeVars) {\n        if (node.type === 'Literal') {\n            return node.value;\n        }\n        else if (node.type === 'UnaryExpression'){\n            var val = walk(node.argument)\n            if (node.operator === '+') return +val\n            if (node.operator === '-') return -val\n            if (node.operator === '~') return ~val\n            if (node.operator === '!') return !val\n            return FAIL\n        }\n        else if (node.type === 'ArrayExpression') {\n            var xs = [];\n            for (var i = 0, l = node.elements.length; i < l; i++) {\n                var x = walk(node.elements[i]);\n                if (x === FAIL) return FAIL;\n                xs.push(x);\n            }\n            return xs;\n        }\n        else if (node.type === 'ObjectExpression') {\n            var obj = {};\n            for (var i = 0; i < node.properties.length; i++) {\n                var prop = node.properties[i];\n                var value = prop.value === null\n                    ? prop.value\n                    : walk(prop.value)\n                ;\n                if (value === FAIL) return FAIL;\n                obj[prop.key.value || prop.key.name] = value;\n            }\n            return obj;\n        }\n        else if (node.type === 'BinaryExpression' ||\n                 node.type === 'LogicalExpression') {\n            var l = walk(node.left);\n            if (l === FAIL) return FAIL;\n            var r = walk(node.right);\n            if (r === FAIL) return FAIL;\n            \n            var op = node.operator;\n            if (op === '==') return l == r;\n            if (op === '===') return l === r;\n            if (op === '!=') return l != r;\n            if (op === '!==') return l !== r;\n            if (op === '+') return l + r;\n            if (op === '-') return l - r;\n            if (op === '*') return l * r;\n            if (op === '/') return l / r;\n            if (op === '%') return l % r;\n            if (op === '<') return l < r;\n            if (op === '<=') return l <= r;\n            if (op === '>') return l > r;\n            if (op === '>=') return l >= r;\n            if (op === '|') return l | r;\n            if (op === '&') return l & r;\n            if (op === '^') return l ^ r;\n            if (op === '&&') return l && r;\n            if (op === '||') return l || r;\n            \n            return FAIL;\n        }\n        else if (node.type === 'Identifier') {\n            if ({}.hasOwnProperty.call(vars, node.name)) {\n                return vars[node.name];\n            }\n            else return FAIL;\n        }\n        else if (node.type === 'ThisExpression') {\n            if ({}.hasOwnProperty.call(vars, 'this')) {\n                return vars['this'];\n            }\n            else return FAIL;\n        }\n        else if (node.type === 'CallExpression') {\n            var callee = walk(node.callee);\n            if (callee === FAIL) return FAIL;\n            if (typeof callee !== 'function') return FAIL;\n            \n            var ctx = node.callee.object ? walk(node.callee.object) : FAIL;\n            if (ctx === FAIL) ctx = null;\n\n            var args = [];\n            for (var i = 0, l = node.arguments.length; i < l; i++) {\n                var x = walk(node.arguments[i]);\n                if (x === FAIL) return FAIL;\n                args.push(x);\n            }\n            return callee.apply(ctx, args);\n        }\n        else if (node.type === 'MemberExpression') {\n            var obj = walk(node.object);\n            // do not allow access to methods on Function \n            if((obj === FAIL) || (typeof obj == 'function')){\n                return FAIL;\n            }\n            if (node.property.type === 'Identifier') {\n                return obj[node.property.name];\n            }\n            var prop = walk(node.property);\n            if (prop === FAIL) return FAIL;\n            return obj[prop];\n        }\n        else if (node.type === 'ConditionalExpression') {\n            var val = walk(node.test)\n            if (val === FAIL) return FAIL;\n            return val ? walk(node.consequent) : walk(node.alternate)\n        }\n        else if (node.type === 'ExpressionStatement') {\n            var val = walk(node.expression)\n            if (val === FAIL) return FAIL;\n            return val;\n        }\n        else if (node.type === 'ReturnStatement') {\n            return walk(node.argument)\n        }\n        else if (node.type === 'FunctionExpression') {\n            \n            var bodies = node.body.body;\n            \n            // Create a \"scope\" for our arguments\n            var oldVars = {};\n            Object.keys(vars).forEach(function(element){\n                oldVars[element] = vars[element];\n            })\n\n            for(var i=0; i<node.params.length; i++){\n                var key = node.params[i];\n                if(key.type == 'Identifier'){\n                  vars[key.name] = null;\n                }\n                else return FAIL;\n            }\n            for(var i in bodies){\n                if(walk(bodies[i]) === FAIL){\n                    return FAIL;\n                }\n            }\n            // restore the vars and scope after we walk\n            vars = oldVars;\n            \n            var keys = Object.keys(vars);\n            var vals = keys.map(function(key) {\n                return vars[key];\n            });\n            return Function(keys.join(', '), 'return ' + unparse(node)).apply(null, vals);\n        }\n        else if (node.type === 'TemplateLiteral') {\n            var str = '';\n            for (var i = 0; i < node.expressions.length; i++) {\n                str += walk(node.quasis[i]);\n                str += walk(node.expressions[i]);\n            }\n            str += walk(node.quasis[i]);\n            return str;\n        }\n        else if (node.type === 'TaggedTemplateExpression') {\n            var tag = walk(node.tag);\n            var quasi = node.quasi;\n            var strings = quasi.quasis.map(walk);\n            var values = quasi.expressions.map(walk);\n            return tag.apply(null, [strings].concat(values));\n        }\n        else if (node.type === 'TemplateElement') {\n            return node.value.cooked;\n        }\n        else return FAIL;\n    })(ast);\n    \n    return result === FAIL ? undefined : result;\n};\n\n},{\"escodegen\":12}],\"jsonpath\":[function(require,module,exports){\nmodule.exports = require('./lib/index');\n\n},{\"./lib/index\":5}]},{},[\"jsonpath\"])(\"jsonpath\")\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 { Subject } from './Subject';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class ReplaySubject extends Subject {\n    constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = dateTimestampProvider) {\n        super();\n        this._bufferSize = _bufferSize;\n        this._windowTime = _windowTime;\n        this._timestampProvider = _timestampProvider;\n        this._buffer = [];\n        this._infiniteTimeWindow = true;\n        this._infiniteTimeWindow = _windowTime === Infinity;\n        this._bufferSize = Math.max(1, _bufferSize);\n        this._windowTime = Math.max(1, _windowTime);\n    }\n    next(value) {\n        const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n        if (!isStopped) {\n            _buffer.push(value);\n            !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n        }\n        this._trimBuffer();\n        super.next(value);\n    }\n    _subscribe(subscriber) {\n        this._throwIfClosed();\n        this._trimBuffer();\n        const subscription = this._innerSubscribe(subscriber);\n        const { _infiniteTimeWindow, _buffer } = this;\n        const copy = _buffer.slice();\n        for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n            subscriber.next(copy[i]);\n        }\n        this._checkFinalizedStatuses(subscriber);\n        return subscription;\n    }\n    _trimBuffer() {\n        const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n        const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n        _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n        if (!_infiniteTimeWindow) {\n            const now = _timestampProvider.now();\n            let last = 0;\n            for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {\n                last = i;\n            }\n            last && _buffer.splice(0, last + 1);\n        }\n    }\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 { EmptyError } from './util/EmptyError';\nimport { SafeSubscriber } from './Subscriber';\nexport function firstValueFrom(source, config) {\n    const hasConfig = typeof config === 'object';\n    return new Promise((resolve, reject) => {\n        const subscriber = new SafeSubscriber({\n            next: (value) => {\n                resolve(value);\n                subscriber.unsubscribe();\n            },\n            error: reject,\n            complete: () => {\n                if (hasConfig) {\n                    resolve(config.defaultValue);\n                }\n                else {\n                    reject(new EmptyError());\n                }\n            },\n        });\n        source.subscribe(subscriber);\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 { 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 { 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';\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 { 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 { 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 { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n    return scheduler ? scheduled(input, scheduler) : innerFrom(input);\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 { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n    if (isFunction(options)) {\n        resultSelector = options;\n        options = undefined;\n    }\n    if (resultSelector) {\n        return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n    }\n    const [add, remove] = isEventTarget(target)\n        ? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options))\n        :\n            isNodeStyleEventEmitter(target)\n                ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n                : isJQueryStyleEventEmitter(target)\n                    ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n                    : [];\n    if (!add) {\n        if (isArrayLike(target)) {\n            return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target));\n        }\n    }\n    if (!add) {\n        throw new TypeError('Invalid event target');\n    }\n    return new Observable((subscriber) => {\n        const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n        add(handler);\n        return () => remove(handler);\n    });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n    return (methodName) => (handler) => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n    return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n    return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n    return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\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 { asyncScheduler } from '../scheduler/async';\nimport { timer } from './timer';\nexport function interval(period = 0, scheduler = asyncScheduler) {\n    if (period < 0) {\n        period = 0;\n    }\n    return timer(period, period, scheduler);\n}\n","import { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\nexport function merge(...args) {\n    const scheduler = popScheduler(args);\n    const concurrent = popNumber(args, Infinity);\n    const sources = args;\n    return !sources.length\n        ?\n            EMPTY\n        : sources.length === 1\n            ?\n                innerFrom(sources[0])\n            :\n                mergeAll(concurrent)(from(sources, scheduler));\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 { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nexport function race(...sources) {\n    sources = argsOrArgArray(sources);\n    return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));\n}\nexport function raceInit(sources) {\n    return (subscriber) => {\n        let subscriptions = [];\n        for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {\n            subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, (value) => {\n                if (subscriptions) {\n                    for (let s = 0; s < subscriptions.length; s++) {\n                        s !== i && subscriptions[s].unsubscribe();\n                    }\n                    subscriptions = null;\n                }\n                subscriber.next(value);\n            })));\n        }\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';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) {\n    let intervalDuration = -1;\n    if (intervalOrScheduler != null) {\n        if (isScheduler(intervalOrScheduler)) {\n            scheduler = intervalOrScheduler;\n        }\n        else {\n            intervalDuration = intervalOrScheduler;\n        }\n    }\n    return new Observable((subscriber) => {\n        let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n        if (due < 0) {\n            due = 0;\n        }\n        let n = 0;\n        return scheduler.schedule(function () {\n            if (!subscriber.closed) {\n                subscriber.next(n++);\n                if (0 <= intervalDuration) {\n                    this.schedule(undefined, intervalDuration);\n                }\n                else {\n                    subscriber.complete();\n                }\n            }\n        }, due);\n    });\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 { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nexport function auditTime(duration, scheduler = asyncScheduler) {\n    return audit(() => timer(duration, scheduler));\n}\n","import { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function audit(durationSelector) {\n    return operate((source, subscriber) => {\n        let hasValue = false;\n        let lastValue = null;\n        let durationSubscriber = null;\n        let isComplete = false;\n        const endDuration = () => {\n            durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n            durationSubscriber = null;\n            if (hasValue) {\n                hasValue = false;\n                const value = lastValue;\n                lastValue = null;\n                subscriber.next(value);\n            }\n            isComplete && subscriber.complete();\n        };\n        const cleanupDuration = () => {\n            durationSubscriber = null;\n            isComplete && subscriber.complete();\n        };\n        source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            hasValue = true;\n            lastValue = value;\n            if (!durationSubscriber) {\n                innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration)));\n            }\n        }, () => {\n            isComplete = true;\n            (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n        }));\n    });\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 { 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 { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler = asyncScheduler) {\n    return operate((source, subscriber) => {\n        let activeTask = null;\n        let lastValue = null;\n        let lastTime = null;\n        const emit = () => {\n            if (activeTask) {\n                activeTask.unsubscribe();\n                activeTask = null;\n                const value = lastValue;\n                lastValue = null;\n                subscriber.next(value);\n            }\n        };\n        function emitWhenIdle() {\n            const targetTime = lastTime + dueTime;\n            const now = scheduler.now();\n            if (now < targetTime) {\n                activeTask = this.schedule(undefined, targetTime - now);\n                subscriber.add(activeTask);\n                return;\n            }\n            emit();\n        }\n        source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            lastValue = value;\n            lastTime = scheduler.now();\n            if (!activeTask) {\n                activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n                subscriber.add(activeTask);\n            }\n        }, () => {\n            emit();\n            subscriber.complete();\n        }, undefined, () => {\n            lastValue = activeTask = null;\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 { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n    if (subscriptionDelay) {\n        return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n    }\n    return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n    return operate((source, subscriber) => {\n        source.subscribe(createOperatorSubscriber(subscriber, noop));\n    });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler = asyncScheduler) {\n    const duration = timer(due, scheduler);\n    return delayWhen(() => duration);\n}\n","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function distinctUntilChanged(comparator, keySelector = identity) {\n    comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;\n    return operate((source, subscriber) => {\n        let previousKey;\n        let first = true;\n        source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            const currentKey = keySelector(value);\n            if (first || !comparator(previousKey, currentKey)) {\n                first = false;\n                previousKey = currentKey;\n                subscriber.next(value);\n            }\n        }));\n    });\n}\nfunction defaultCompare(a, b) {\n    return a === b;\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 { 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 { 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';\nexport function mapTo(value) {\n    return map(() => value);\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n    return mergeMap(identity, concurrent);\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 { 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';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function pairwise() {\n    return operate((source, subscriber) => {\n        let prev;\n        let hasPrev = false;\n        source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            const p = prev;\n            prev = value;\n            hasPrev && subscriber.next([p, value]);\n            hasPrev = true;\n        }));\n    });\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 { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nimport { timer } from '../observable/timer';\nimport { innerFrom } from '../observable/innerFrom';\nexport function retry(configOrCount = Infinity) {\n    let config;\n    if (configOrCount && typeof configOrCount === 'object') {\n        config = configOrCount;\n    }\n    else {\n        config = {\n            count: configOrCount,\n        };\n    }\n    const { count = Infinity, delay, resetOnSuccess: resetOnSuccess = false } = config;\n    return count <= 0\n        ? identity\n        : operate((source, subscriber) => {\n            let soFar = 0;\n            let innerSub;\n            const subscribeForRetry = () => {\n                let syncUnsub = false;\n                innerSub = source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n                    if (resetOnSuccess) {\n                        soFar = 0;\n                    }\n                    subscriber.next(value);\n                }, undefined, (err) => {\n                    if (soFar++ < count) {\n                        const resub = () => {\n                            if (innerSub) {\n                                innerSub.unsubscribe();\n                                innerSub = null;\n                                subscribeForRetry();\n                            }\n                            else {\n                                syncUnsub = true;\n                            }\n                        };\n                        if (delay != null) {\n                            const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar));\n                            const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n                                notifierSubscriber.unsubscribe();\n                                resub();\n                            }, () => {\n                                subscriber.complete();\n                            });\n                            notifier.subscribe(notifierSubscriber);\n                        }\n                        else {\n                            resub();\n                        }\n                    }\n                    else {\n                        subscriber.error(err);\n                    }\n                }));\n                if (syncUnsub) {\n                    innerSub.unsubscribe();\n                    innerSub = null;\n                    subscribeForRetry();\n                }\n            };\n            subscribeForRetry();\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 { 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 { filter } from './filter';\nexport function skip(count) {\n    return filter((_, index) => count <= index);\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 { 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","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';\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 { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeWhile(predicate, inclusive = false) {\n    return operate((source, subscriber) => {\n        let index = 0;\n        source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            const result = predicate(value, index++);\n            (result || inclusive) && subscriber.next(value);\n            !result && subscriber.complete();\n        }));\n    });\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 { 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 { asyncScheduler } from '../scheduler/async';\nimport { isValidDate } from '../util/isDate';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createErrorClass } from '../util/createErrorClass';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport const TimeoutError = createErrorClass((_super) => function TimeoutErrorImpl(info = null) {\n    _super(this);\n    this.message = 'Timeout has occurred';\n    this.name = 'TimeoutError';\n    this.info = info;\n});\nexport function timeout(config, schedulerArg) {\n    const { first, each, with: _with = timeoutErrorFactory, scheduler = schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler, meta = null, } = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config);\n    if (first == null && each == null) {\n        throw new TypeError('No timeout provided.');\n    }\n    return operate((source, subscriber) => {\n        let originalSourceSubscription;\n        let timerSubscription;\n        let lastValue = null;\n        let seen = 0;\n        const startTimer = (delay) => {\n            timerSubscription = executeSchedule(subscriber, scheduler, () => {\n                try {\n                    originalSourceSubscription.unsubscribe();\n                    innerFrom(_with({\n                        meta,\n                        lastValue,\n                        seen,\n                    })).subscribe(subscriber);\n                }\n                catch (err) {\n                    subscriber.error(err);\n                }\n            }, delay);\n        };\n        originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n            timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n            seen++;\n            subscriber.next((lastValue = value));\n            each > 0 && startTimer(each);\n        }, undefined, undefined, () => {\n            if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {\n                timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n            }\n            lastValue = null;\n        }));\n        !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each);\n    });\n}\nfunction timeoutErrorFactory(info) {\n    throw new TimeoutError(info);\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n    constructor(scheduler, work) {\n        super();\n    }\n    schedule(state, delay = 0) {\n        return this;\n    }\n}\n","export const intervalProvider = {\n    setInterval(handler, timeout, ...args) {\n        const { delegate } = intervalProvider;\n        if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n            return delegate.setInterval(handler, timeout, ...args);\n        }\n        return setInterval(handler, timeout, ...args);\n    },\n    clearInterval(handle) {\n        const { delegate } = intervalProvider;\n        return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n    },\n    delegate: undefined,\n};\n","import { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nexport class AsyncAction extends Action {\n    constructor(scheduler, work) {\n        super(scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n        this.pending = false;\n    }\n    schedule(state, delay = 0) {\n        var _a;\n        if (this.closed) {\n            return this;\n        }\n        this.state = state;\n        const id = this.id;\n        const scheduler = this.scheduler;\n        if (id != null) {\n            this.id = this.recycleAsyncId(scheduler, id, delay);\n        }\n        this.pending = true;\n        this.delay = delay;\n        this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n        return this;\n    }\n    requestAsyncId(scheduler, _id, delay = 0) {\n        return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n    }\n    recycleAsyncId(_scheduler, id, delay = 0) {\n        if (delay != null && this.delay === delay && this.pending === false) {\n            return id;\n        }\n        if (id != null) {\n            intervalProvider.clearInterval(id);\n        }\n        return undefined;\n    }\n    execute(state, delay) {\n        if (this.closed) {\n            return new Error('executing a cancelled action');\n        }\n        this.pending = false;\n        const error = this._execute(state, delay);\n        if (error) {\n            return error;\n        }\n        else if (this.pending === false && this.id != null) {\n            this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n        }\n    }\n    _execute(state, _delay) {\n        let errored = false;\n        let errorValue;\n        try {\n            this.work(state);\n        }\n        catch (e) {\n            errored = true;\n            errorValue = e ? e : new Error('Scheduled action threw falsy error');\n        }\n        if (errored) {\n            this.unsubscribe();\n            return errorValue;\n        }\n    }\n    unsubscribe() {\n        if (!this.closed) {\n            const { id, scheduler } = this;\n            const { actions } = scheduler;\n            this.work = this.state = this.scheduler = null;\n            this.pending = false;\n            arrRemove(actions, this);\n            if (id != null) {\n                this.id = this.recycleAsyncId(scheduler, id, null);\n            }\n            this.delay = null;\n            super.unsubscribe();\n        }\n    }\n}\n","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class Scheduler {\n    constructor(schedulerActionCtor, now = Scheduler.now) {\n        this.schedulerActionCtor = schedulerActionCtor;\n        this.now = now;\n    }\n    schedule(work, delay = 0, state) {\n        return new this.schedulerActionCtor(this, work).schedule(state, delay);\n    }\n}\nScheduler.now = dateTimestampProvider.now;\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n    constructor(SchedulerAction, now = Scheduler.now) {\n        super(SchedulerAction, now);\n        this.actions = [];\n        this._active = false;\n    }\n    flush(action) {\n        const { actions } = this;\n        if (this._active) {\n            actions.push(action);\n            return;\n        }\n        let error;\n        this._active = true;\n        do {\n            if ((error = action.execute(action.state, action.delay))) {\n                break;\n            }\n        } while ((action = actions.shift()));\n        this._active = false;\n        if (error) {\n            while ((action = actions.shift())) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    }\n}\n","import { Subscription } from '../Subscription';\nexport const animationFrameProvider = {\n    schedule(callback) {\n        let request = requestAnimationFrame;\n        let cancel = cancelAnimationFrame;\n        const { delegate } = animationFrameProvider;\n        if (delegate) {\n            request = delegate.requestAnimationFrame;\n            cancel = delegate.cancelAnimationFrame;\n        }\n        const handle = request((timestamp) => {\n            cancel = undefined;\n            callback(timestamp);\n        });\n        return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle));\n    },\n    requestAnimationFrame(...args) {\n        const { delegate } = animationFrameProvider;\n        return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args);\n    },\n    cancelAnimationFrame(...args) {\n        const { delegate } = animationFrameProvider;\n        return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args);\n    },\n    delegate: undefined,\n};\n","import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\nexport const animationFrame = animationFrameScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class AnimationFrameScheduler extends AsyncScheduler {\n    flush(action) {\n        this._active = true;\n        const flushId = this._scheduled;\n        this._scheduled = undefined;\n        const { actions } = this;\n        let error;\n        action = action || actions.shift();\n        do {\n            if ((error = action.execute(action.state, action.delay))) {\n                break;\n            }\n        } while ((action = actions[0]) && action.id === flushId && actions.shift());\n        this._active = false;\n        if (error) {\n            while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { animationFrameProvider } from './animationFrameProvider';\nexport class AnimationFrameAction extends AsyncAction {\n    constructor(scheduler, work) {\n        super(scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n    }\n    requestAsyncId(scheduler, id, delay = 0) {\n        if (delay !== null && delay > 0) {\n            return super.requestAsyncId(scheduler, id, delay);\n        }\n        scheduler.actions.push(this);\n        return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n    }\n    recycleAsyncId(scheduler, id, delay = 0) {\n        var _a;\n        if (delay != null ? delay > 0 : this.delay > 0) {\n            return super.recycleAsyncId(scheduler, id, delay);\n        }\n        const { actions } = scheduler;\n        if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n            animationFrameProvider.cancelAnimationFrame(id);\n            scheduler._scheduled = undefined;\n        }\n        return undefined;\n    }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","export const dateTimestampProvider = {\n    now() {\n        return (dateTimestampProvider.delegate || Date).now();\n    },\n    delegate: undefined,\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 { 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 { 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","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","const { isArray } = Array;\nexport function argsOrArgArray(args) {\n    return args.length === 1 && isArray(args[0]) ? args[0] : args;\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 isValidDate(value) {\n    return value instanceof Date && !isNaN(value);\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 { 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 { 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 isScheduler(value) {\n    return value && isFunction(value.schedule);\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","'use strict';\n\n/**\n * Module dependencies.\n */\n\nvar userpilotNodeScript,\n  Userpilot = {},\n  initializedUserpilot = 0;\n\n/**\n * Initialize.\n *\n * http://help.userpilot.com/\n *\n * @api public\n */\n\nUserpilot.initialize = function(appToken, data) {\n  if (appToken) {\n    !initializedUserpilot && this.load(appToken, data);\n    initializedUserpilot = 1;  \n  }\n};\n\n/**\n * Loaded?\n *\n * @api private\n * @return {boolean}\n */\n\nUserpilot.loaded = function() {\n  return typeof window.userpilot !== \"undefined\";\n};\n\n/**\n * Load the Userpilot library.\n *\n * @api private\n * @param {Function} callback\n */\n\nfunction load(url) {\n  userpilotNodeScript = document.createElement('script');\n  userpilotNodeScript.setAttribute(\"src\", url);\n  document.getElementsByTagName('head')[0].appendChild(userpilotNodeScript);\n}\n\nUserpilot.load = function(token, settings) {\n  if (typeof window === \"undefined\") return;\n  if (!settings) {\n    settings = {};\n  }\n\n  settings = {...window.userpilotSettings, ...settings}\n  settings.version = settings.version || 'v0';\n  settings.endpoint = settings.endpoint || 'api.userpilot.io/socket/';\n  settings.token = token;\n  window.userpilotSettings = settings;\n  \n  let shim = settings.domain ? `//${settings.domain}/sdk/latest.js` : `//js.userpilot.io/sdk/latest.js`;\n\n  load(shim);\n};\n\n/**\n * reload.\n *\n * https://docs.userpilot.com/article/59-installation-guide-for-single-page-applications-spas\n *\n */\n\nUserpilot.reload = function(url) {\n  if (window.userpilot) {\n    window.userpilot.reload(url);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.reload(url);\n      }\n    });\n  }\n};\n\n/**\n * suppress.\n *\n * Prevents Userpilot from loading content\n *\n */\n\nUserpilot.suppress = function() {\n  if (window.userpilot) {\n    window.userpilot.suppress();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.suppress();\n      }\n    });\n  }\n};\n\n\n/**\n * unsuppress.\n *\n * Resumes loading content\n *\n */\n\nUserpilot.unsuppress = function() {\n  if (window.userpilot) {\n    window.userpilot.unsuppress();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.unsuppress();\n      }\n    });\n  }\n};\n\n/**\n * Identify.\n *\n * https://docs.userpilot.com/article/23-identify-users-track-custom-events\n *\n */\n\nUserpilot.identify = function(userId, identify) {\n  if (identify) {\n    if (identify.createdAt) {\n      identify.created_at = identify.createdAt;\n      delete identify.createdAt;\n    }\n  }\n  if (window.userpilot) {\n    window.userpilot.identify(userId, identify);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.identify(userId, identify);\n      }\n    });\n  }\n};\n\n/**\n * Anonymous.\n *\n * https://docs.userpilot.com/article/48-trigger-an-experience-anonymously\n *\n */\n\nUserpilot.anonymous = function(data) {\n  if (window.userpilot) {\n    window.userpilot.anonymous(data);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.anonymous(data);\n      }\n    });\n  }\n};\n\n/**\n * Trigger.\n *\n * https://docs.userpilot.com/article/50-trigger-an-experience-manually-through-a-script\n *\n */\n\nUserpilot.trigger = function(token) {\n  if (window.userpilot) {\n    window.userpilot.trigger(token);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.trigger(token);\n      }\n    });\n  }\n};\n\n/**\n * On.\n *\n * https://docs.userpilot.com/article/61-javascript-api\n *\n */\n\nUserpilot.on = function(event, callback) {\n  if (window.userpilot) {\n    window.userpilot.on(event, callback);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.on(event, callback);\n      }\n    });\n  }\n};\n\n/**\n * Off.\n *\n * https://docs.userpilot.com/article/61-javascript-api\n *\n */\n\nUserpilot.off = function(event) {\n  if (window.userpilot) {\n    window.userpilot.off(event);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.off(event);\n      }\n    });\n  }\n};\n\n/**\n * Once.\n *\n * https://docs.userpilot.com/article/61-javascript-api\n *\n */\n\nUserpilot.once = function(event, callback) {\n  if (window.userpilot) {\n    window.userpilot.once(event, callback);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.once(event, callback);\n      }\n    });\n  }\n};\n\n/**\n * Track.\n *\n * https://docs.userpilot.com/article/23-identify-users-track-custom-events\n *\n */\n\nUserpilot.track = function(event, meta) {\n  if (window.userpilot) {\n    window.userpilot.track(event, meta);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.track(event, meta);\n      }\n    });\n  }\n};\n\nUserpilot.next = function() {\n  if (window.userpilot) {\n    window.userpilot.next();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.next();\n      }\n    });\n  }\n};\n\nUserpilot.end = function(type) {\n  if (window.userpilot) {\n    window.userpilot.end(type);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.end(type);\n      }\n    });\n  }\n};\n/**\n * Reset.\n *\n * https://docs.userpilot.com/article/67-reset-experiences-seen-for-a-user\n *\n **/\nUserpilot.reset = function() {\n  if (window.userpilot) {\n    window.userpilot.reset();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.reset();\n      }\n    });\n  }\n};\n/**\n *\n * Clean.\n *\n * Clear cached data from Userpilot\n *\n **/\n\nUserpilot.clean = function() {\n  if (window.userpilot) {\n    window.userpilot.clean();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.clean();\n      }\n    });\n  }\n};\n\n/**\n *\n * Destroy.\n *\n * Completely remove Userpilot data/patterns from the page\n *\n **/\n\nUserpilot.destroy = function() {\n  if (window.userpilot) {\n    window.userpilot.destroy();\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.destroy();\n      }\n    });\n  }\n};\n\n/**\n *\n * Theme.\n *\n * Forces Userpilot to use a specific theme\n *\n **/\n\nUserpilot.theme = function(title) {\n  if (window.userpilot) {\n    window.userpilot.theme(title);\n  } else if (typeof userpilotNodeScript !== \"undefined\") {\n    userpilotNodeScript.addEventListener('load', function() {\n      if (window.userpilot) {\n        window.userpilot.theme(title);\n      }\n    });\n  }\n};\n\nif (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n  module.exports.Userpilot = Userpilot;\n} else {\n  window.Userpilot = Userpilot;\n}\n","'use strict';\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n        if (ar || !(i in from)) {\n            if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n            ar[i] = from[i];\n        }\n    }\n    return to.concat(ar || Array.prototype.slice.call(from));\n};\n/**\n * @license Angular v14.2.0-next.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n(function (factory) {\n    typeof define === 'function' && define.amd ? define(factory) :\n        factory();\n})((function () {\n    'use strict';\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.io/license\n     */\n    ((function (global) {\n        var performance = global['performance'];\n        function mark(name) {\n            performance && performance['mark'] && performance['mark'](name);\n        }\n        function performanceMeasure(name, label) {\n            performance && performance['measure'] && performance['measure'](name, label);\n        }\n        mark('Zone');\n        // Initialize before it's accessed below.\n        // __Zone_symbol_prefix global can be used to override the default zone\n        // symbol prefix with a custom one if needed.\n        var symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';\n        function __symbol__(name) {\n            return symbolPrefix + name;\n        }\n        var checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;\n        if (global['Zone']) {\n            // if global['Zone'] already exists (maybe zone.js was already loaded or\n            // some other lib also registered a global object named Zone), we may need\n            // to throw an error, but sometimes user may not want this error.\n            // For example,\n            // we have two web pages, page1 includes zone.js, page2 doesn't.\n            // and the 1st time user load page1 and page2, everything work fine,\n            // but when user load page2 again, error occurs because global['Zone'] already exists.\n            // so we add a flag to let user choose whether to throw this error or not.\n            // By default, if existing Zone is from zone.js, we will not throw the error.\n            if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') {\n                throw new Error('Zone already loaded.');\n            }\n            else {\n                return global['Zone'];\n            }\n        }\n        var Zone = /** @class */ (function () {\n            function Zone(parent, zoneSpec) {\n                this._parent = parent;\n                this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';\n                this._properties = zoneSpec && zoneSpec.properties || {};\n                this._zoneDelegate =\n                    new _ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n            }\n            Zone.assertZonePatched = function () {\n                if (global['Promise'] !== patches['ZoneAwarePromise']) {\n                    throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +\n                        'has been overwritten.\\n' +\n                        'Most likely cause is that a Promise polyfill has been loaded ' +\n                        'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +\n                        'If you must load one, do so before loading zone.js.)');\n                }\n            };\n            Object.defineProperty(Zone, \"root\", {\n                get: function () {\n                    var zone = Zone.current;\n                    while (zone.parent) {\n                        zone = zone.parent;\n                    }\n                    return zone;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Object.defineProperty(Zone, \"current\", {\n                get: function () {\n                    return _currentZoneFrame.zone;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Object.defineProperty(Zone, \"currentTask\", {\n                get: function () {\n                    return _currentTask;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            // tslint:disable-next-line:require-internal-with-underscore\n            Zone.__load_patch = function (name, fn, ignoreDuplicate) {\n                if (ignoreDuplicate === void 0) { ignoreDuplicate = false; }\n                if (patches.hasOwnProperty(name)) {\n                    // `checkDuplicate` option is defined from global variable\n                    // so it works for all modules.\n                    // `ignoreDuplicate` can work for the specified module\n                    if (!ignoreDuplicate && checkDuplicate) {\n                        throw Error('Already loaded patch: ' + name);\n                    }\n                }\n                else if (!global['__Zone_disable_' + name]) {\n                    var perfName = 'Zone:' + name;\n                    mark(perfName);\n                    patches[name] = fn(global, Zone, _api);\n                    performanceMeasure(perfName, perfName);\n                }\n            };\n            Object.defineProperty(Zone.prototype, \"parent\", {\n                get: function () {\n                    return this._parent;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Object.defineProperty(Zone.prototype, \"name\", {\n                get: function () {\n                    return this._name;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Zone.prototype.get = function (key) {\n                var zone = this.getZoneWith(key);\n                if (zone)\n                    return zone._properties[key];\n            };\n            Zone.prototype.getZoneWith = function (key) {\n                var current = this;\n                while (current) {\n                    if (current._properties.hasOwnProperty(key)) {\n                        return current;\n                    }\n                    current = current._parent;\n                }\n                return null;\n            };\n            Zone.prototype.fork = function (zoneSpec) {\n                if (!zoneSpec)\n                    throw new Error('ZoneSpec required!');\n                return this._zoneDelegate.fork(this, zoneSpec);\n            };\n            Zone.prototype.wrap = function (callback, source) {\n                if (typeof callback !== 'function') {\n                    throw new Error('Expecting function got: ' + callback);\n                }\n                var _callback = this._zoneDelegate.intercept(this, callback, source);\n                var zone = this;\n                return function () {\n                    return zone.runGuarded(_callback, this, arguments, source);\n                };\n            };\n            Zone.prototype.run = function (callback, applyThis, applyArgs, source) {\n                _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n                try {\n                    return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n                }\n                finally {\n                    _currentZoneFrame = _currentZoneFrame.parent;\n                }\n            };\n            Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {\n                if (applyThis === void 0) { applyThis = null; }\n                _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n                try {\n                    try {\n                        return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n                    }\n                    catch (error) {\n                        if (this._zoneDelegate.handleError(this, error)) {\n                            throw error;\n                        }\n                    }\n                }\n                finally {\n                    _currentZoneFrame = _currentZoneFrame.parent;\n                }\n            };\n            Zone.prototype.runTask = function (task, applyThis, applyArgs) {\n                if (task.zone != this) {\n                    throw new Error('A task can only be run in the zone of creation! (Creation: ' +\n                        (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n                }\n                // https://github.com/angular/zone.js/issues/778, sometimes eventTask\n                // will run in notScheduled(canceled) state, we should not try to\n                // run such kind of task but just return\n                if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {\n                    return;\n                }\n                var reEntryGuard = task.state != running;\n                reEntryGuard && task._transitionTo(running, scheduled);\n                task.runCount++;\n                var previousTask = _currentTask;\n                _currentTask = task;\n                _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n                try {\n                    if (task.type == macroTask && task.data && !task.data.isPeriodic) {\n                        task.cancelFn = undefined;\n                    }\n                    try {\n                        return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n                    }\n                    catch (error) {\n                        if (this._zoneDelegate.handleError(this, error)) {\n                            throw error;\n                        }\n                    }\n                }\n                finally {\n                    // if the task's state is notScheduled or unknown, then it has already been cancelled\n                    // we should not reset the state to scheduled\n                    if (task.state !== notScheduled && task.state !== unknown) {\n                        if (task.type == eventTask || (task.data && task.data.isPeriodic)) {\n                            reEntryGuard && task._transitionTo(scheduled, running);\n                        }\n                        else {\n                            task.runCount = 0;\n                            this._updateTaskCount(task, -1);\n                            reEntryGuard &&\n                                task._transitionTo(notScheduled, running, notScheduled);\n                        }\n                    }\n                    _currentZoneFrame = _currentZoneFrame.parent;\n                    _currentTask = previousTask;\n                }\n            };\n            Zone.prototype.scheduleTask = function (task) {\n                if (task.zone && task.zone !== this) {\n                    // check if the task was rescheduled, the newZone\n                    // should not be the children of the original zone\n                    var newZone = this;\n                    while (newZone) {\n                        if (newZone === task.zone) {\n                            throw Error(\"can not reschedule task to \".concat(this.name, \" which is descendants of the original zone \").concat(task.zone.name));\n                        }\n                        newZone = newZone.parent;\n                    }\n                }\n                task._transitionTo(scheduling, notScheduled);\n                var zoneDelegates = [];\n                task._zoneDelegates = zoneDelegates;\n                task._zone = this;\n                try {\n                    task = this._zoneDelegate.scheduleTask(this, task);\n                }\n                catch (err) {\n                    // should set task's state to unknown when scheduleTask throw error\n                    // because the err may from reschedule, so the fromState maybe notScheduled\n                    task._transitionTo(unknown, scheduling, notScheduled);\n                    // TODO: @JiaLiPassion, should we check the result from handleError?\n                    this._zoneDelegate.handleError(this, err);\n                    throw err;\n                }\n                if (task._zoneDelegates === zoneDelegates) {\n                    // we have to check because internally the delegate can reschedule the task.\n                    this._updateTaskCount(task, 1);\n                }\n                if (task.state == scheduling) {\n                    task._transitionTo(scheduled, scheduling);\n                }\n                return task;\n            };\n            Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {\n                return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));\n            };\n            Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {\n                return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));\n            };\n            Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {\n                return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));\n            };\n            Zone.prototype.cancelTask = function (task) {\n                if (task.zone != this)\n                    throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +\n                        (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n                task._transitionTo(canceling, scheduled, running);\n                try {\n                    this._zoneDelegate.cancelTask(this, task);\n                }\n                catch (err) {\n                    // if error occurs when cancelTask, transit the state to unknown\n                    task._transitionTo(unknown, canceling);\n                    this._zoneDelegate.handleError(this, err);\n                    throw err;\n                }\n                this._updateTaskCount(task, -1);\n                task._transitionTo(notScheduled, canceling);\n                task.runCount = 0;\n                return task;\n            };\n            Zone.prototype._updateTaskCount = function (task, count) {\n                var zoneDelegates = task._zoneDelegates;\n                if (count == -1) {\n                    task._zoneDelegates = null;\n                }\n                for (var i = 0; i < zoneDelegates.length; i++) {\n                    zoneDelegates[i]._updateTaskCount(task.type, count);\n                }\n            };\n            return Zone;\n        }());\n        // tslint:disable-next-line:require-internal-with-underscore\n        Zone.__symbol__ = __symbol__;\n        var DELEGATE_ZS = {\n            name: '',\n            onHasTask: function (delegate, _, target, hasTaskState) { return delegate.hasTask(target, hasTaskState); },\n            onScheduleTask: function (delegate, _, target, task) { return delegate.scheduleTask(target, task); },\n            onInvokeTask: function (delegate, _, target, task, applyThis, applyArgs) { return delegate.invokeTask(target, task, applyThis, applyArgs); },\n            onCancelTask: function (delegate, _, target, task) { return delegate.cancelTask(target, task); }\n        };\n        var _ZoneDelegate = /** @class */ (function () {\n            function _ZoneDelegate(zone, parentDelegate, zoneSpec) {\n                this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };\n                this.zone = zone;\n                this._parentDelegate = parentDelegate;\n                this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n                this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n                this._forkCurrZone =\n                    zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone);\n                this._interceptZS =\n                    zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n                this._interceptDlgt =\n                    zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n                this._interceptCurrZone =\n                    zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone);\n                this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n                this._invokeDlgt =\n                    zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n                this._invokeCurrZone =\n                    zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone);\n                this._handleErrorZS =\n                    zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n                this._handleErrorDlgt =\n                    zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n                this._handleErrorCurrZone =\n                    zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone);\n                this._scheduleTaskZS =\n                    zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n                this._scheduleTaskDlgt = zoneSpec &&\n                    (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n                this._scheduleTaskCurrZone =\n                    zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone);\n                this._invokeTaskZS =\n                    zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n                this._invokeTaskDlgt =\n                    zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n                this._invokeTaskCurrZone =\n                    zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone);\n                this._cancelTaskZS =\n                    zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n                this._cancelTaskDlgt =\n                    zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n                this._cancelTaskCurrZone =\n                    zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone);\n                this._hasTaskZS = null;\n                this._hasTaskDlgt = null;\n                this._hasTaskDlgtOwner = null;\n                this._hasTaskCurrZone = null;\n                var zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;\n                var parentHasTask = parentDelegate && parentDelegate._hasTaskZS;\n                if (zoneSpecHasTask || parentHasTask) {\n                    // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such\n                    // a case all task related interceptors must go through this ZD. We can't short circuit it.\n                    this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;\n                    this._hasTaskDlgt = parentDelegate;\n                    this._hasTaskDlgtOwner = this;\n                    this._hasTaskCurrZone = zone;\n                    if (!zoneSpec.onScheduleTask) {\n                        this._scheduleTaskZS = DELEGATE_ZS;\n                        this._scheduleTaskDlgt = parentDelegate;\n                        this._scheduleTaskCurrZone = this.zone;\n                    }\n                    if (!zoneSpec.onInvokeTask) {\n                        this._invokeTaskZS = DELEGATE_ZS;\n                        this._invokeTaskDlgt = parentDelegate;\n                        this._invokeTaskCurrZone = this.zone;\n                    }\n                    if (!zoneSpec.onCancelTask) {\n                        this._cancelTaskZS = DELEGATE_ZS;\n                        this._cancelTaskDlgt = parentDelegate;\n                        this._cancelTaskCurrZone = this.zone;\n                    }\n                }\n            }\n            _ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {\n                return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :\n                    new Zone(targetZone, zoneSpec);\n            };\n            _ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {\n                return this._interceptZS ?\n                    this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :\n                    callback;\n            };\n            _ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {\n                return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :\n                    callback.apply(applyThis, applyArgs);\n            };\n            _ZoneDelegate.prototype.handleError = function (targetZone, error) {\n                return this._handleErrorZS ?\n                    this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :\n                    true;\n            };\n            _ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {\n                var returnTask = task;\n                if (this._scheduleTaskZS) {\n                    if (this._hasTaskZS) {\n                        returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);\n                    }\n                    // clang-format off\n                    returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);\n                    // clang-format on\n                    if (!returnTask)\n                        returnTask = task;\n                }\n                else {\n                    if (task.scheduleFn) {\n                        task.scheduleFn(task);\n                    }\n                    else if (task.type == microTask) {\n                        scheduleMicroTask(task);\n                    }\n                    else {\n                        throw new Error('Task is missing scheduleFn.');\n                    }\n                }\n                return returnTask;\n            };\n            _ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {\n                return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :\n                    task.callback.apply(applyThis, applyArgs);\n            };\n            _ZoneDelegate.prototype.cancelTask = function (targetZone, task) {\n                var value;\n                if (this._cancelTaskZS) {\n                    value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);\n                }\n                else {\n                    if (!task.cancelFn) {\n                        throw Error('Task is not cancelable');\n                    }\n                    value = task.cancelFn(task);\n                }\n                return value;\n            };\n            _ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {\n                // hasTask should not throw error so other ZoneDelegate\n                // can still trigger hasTask callback\n                try {\n                    this._hasTaskZS &&\n                        this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);\n                }\n                catch (err) {\n                    this.handleError(targetZone, err);\n                }\n            };\n            // tslint:disable-next-line:require-internal-with-underscore\n            _ZoneDelegate.prototype._updateTaskCount = function (type, count) {\n                var counts = this._taskCounts;\n                var prev = counts[type];\n                var next = counts[type] = prev + count;\n                if (next < 0) {\n                    throw new Error('More tasks executed then were scheduled.');\n                }\n                if (prev == 0 || next == 0) {\n                    var isEmpty = {\n                        microTask: counts['microTask'] > 0,\n                        macroTask: counts['macroTask'] > 0,\n                        eventTask: counts['eventTask'] > 0,\n                        change: type\n                    };\n                    this.hasTask(this.zone, isEmpty);\n                }\n            };\n            return _ZoneDelegate;\n        }());\n        var ZoneTask = /** @class */ (function () {\n            function ZoneTask(type, source, callback, options, scheduleFn, cancelFn) {\n                // tslint:disable-next-line:require-internal-with-underscore\n                this._zone = null;\n                this.runCount = 0;\n                // tslint:disable-next-line:require-internal-with-underscore\n                this._zoneDelegates = null;\n                // tslint:disable-next-line:require-internal-with-underscore\n                this._state = 'notScheduled';\n                this.type = type;\n                this.source = source;\n                this.data = options;\n                this.scheduleFn = scheduleFn;\n                this.cancelFn = cancelFn;\n                if (!callback) {\n                    throw new Error('callback is not defined');\n                }\n                this.callback = callback;\n                var self = this;\n                // TODO: @JiaLiPassion options should have interface\n                if (type === eventTask && options && options.useG) {\n                    this.invoke = ZoneTask.invokeTask;\n                }\n                else {\n                    this.invoke = function () {\n                        return ZoneTask.invokeTask.call(global, self, this, arguments);\n                    };\n                }\n            }\n            ZoneTask.invokeTask = function (task, target, args) {\n                if (!task) {\n                    task = this;\n                }\n                _numberOfNestedTaskFrames++;\n                try {\n                    task.runCount++;\n                    return task.zone.runTask(task, target, args);\n                }\n                finally {\n                    if (_numberOfNestedTaskFrames == 1) {\n                        drainMicroTaskQueue();\n                    }\n                    _numberOfNestedTaskFrames--;\n                }\n            };\n            Object.defineProperty(ZoneTask.prototype, \"zone\", {\n                get: function () {\n                    return this._zone;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Object.defineProperty(ZoneTask.prototype, \"state\", {\n                get: function () {\n                    return this._state;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            ZoneTask.prototype.cancelScheduleRequest = function () {\n                this._transitionTo(notScheduled, scheduling);\n            };\n            // tslint:disable-next-line:require-internal-with-underscore\n            ZoneTask.prototype._transitionTo = function (toState, fromState1, fromState2) {\n                if (this._state === fromState1 || this._state === fromState2) {\n                    this._state = toState;\n                    if (toState == notScheduled) {\n                        this._zoneDelegates = null;\n                    }\n                }\n                else {\n                    throw new Error(\"\".concat(this.type, \" '\").concat(this.source, \"': can not transition to '\").concat(toState, \"', expecting state '\").concat(fromState1, \"'\").concat(fromState2 ? ' or \\'' + fromState2 + '\\'' : '', \", was '\").concat(this._state, \"'.\"));\n                }\n            };\n            ZoneTask.prototype.toString = function () {\n                if (this.data && typeof this.data.handleId !== 'undefined') {\n                    return this.data.handleId.toString();\n                }\n                else {\n                    return Object.prototype.toString.call(this);\n                }\n            };\n            // add toJSON method to prevent cyclic error when\n            // call JSON.stringify(zoneTask)\n            ZoneTask.prototype.toJSON = function () {\n                return {\n                    type: this.type,\n                    state: this.state,\n                    source: this.source,\n                    zone: this.zone.name,\n                    runCount: this.runCount\n                };\n            };\n            return ZoneTask;\n        }());\n        //////////////////////////////////////////////////////\n        //////////////////////////////////////////////////////\n        ///  MICROTASK QUEUE\n        //////////////////////////////////////////////////////\n        //////////////////////////////////////////////////////\n        var symbolSetTimeout = __symbol__('setTimeout');\n        var symbolPromise = __symbol__('Promise');\n        var symbolThen = __symbol__('then');\n        var _microTaskQueue = [];\n        var _isDrainingMicrotaskQueue = false;\n        var nativeMicroTaskQueuePromise;\n        function nativeScheduleMicroTask(func) {\n            if (!nativeMicroTaskQueuePromise) {\n                if (global[symbolPromise]) {\n                    nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);\n                }\n            }\n            if (nativeMicroTaskQueuePromise) {\n                var nativeThen = nativeMicroTaskQueuePromise[symbolThen];\n                if (!nativeThen) {\n                    // native Promise is not patchable, we need to use `then` directly\n                    // issue 1078\n                    nativeThen = nativeMicroTaskQueuePromise['then'];\n                }\n                nativeThen.call(nativeMicroTaskQueuePromise, func);\n            }\n            else {\n                global[symbolSetTimeout](func, 0);\n            }\n        }\n        function scheduleMicroTask(task) {\n            // if we are not running in any task, and there has not been anything scheduled\n            // we must bootstrap the initial task creation by manually scheduling the drain\n            if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {\n                // We are not running in Task, so we need to kickstart the microtask queue.\n                nativeScheduleMicroTask(drainMicroTaskQueue);\n            }\n            task && _microTaskQueue.push(task);\n        }\n        function drainMicroTaskQueue() {\n            if (!_isDrainingMicrotaskQueue) {\n                _isDrainingMicrotaskQueue = true;\n                while (_microTaskQueue.length) {\n                    var queue = _microTaskQueue;\n                    _microTaskQueue = [];\n                    for (var i = 0; i < queue.length; i++) {\n                        var task = queue[i];\n                        try {\n                            task.zone.runTask(task, null, null);\n                        }\n                        catch (error) {\n                            _api.onUnhandledError(error);\n                        }\n                    }\n                }\n                _api.microtaskDrainDone();\n                _isDrainingMicrotaskQueue = false;\n            }\n        }\n        //////////////////////////////////////////////////////\n        //////////////////////////////////////////////////////\n        ///  BOOTSTRAP\n        //////////////////////////////////////////////////////\n        //////////////////////////////////////////////////////\n        var NO_ZONE = { name: 'NO ZONE' };\n        var notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';\n        var microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';\n        var patches = {};\n        var _api = {\n            symbol: __symbol__,\n            currentZoneFrame: function () { return _currentZoneFrame; },\n            onUnhandledError: noop,\n            microtaskDrainDone: noop,\n            scheduleMicroTask: scheduleMicroTask,\n            showUncaughtError: function () { return !Zone[__symbol__('ignoreConsoleErrorUncaughtError')]; },\n            patchEventTarget: function () { return []; },\n            patchOnProperties: noop,\n            patchMethod: function () { return noop; },\n            bindArguments: function () { return []; },\n            patchThen: function () { return noop; },\n            patchMacroTask: function () { return noop; },\n            patchEventPrototype: function () { return noop; },\n            isIEOrEdge: function () { return false; },\n            getGlobalObjects: function () { return undefined; },\n            ObjectDefineProperty: function () { return noop; },\n            ObjectGetOwnPropertyDescriptor: function () { return undefined; },\n            ObjectCreate: function () { return undefined; },\n            ArraySlice: function () { return []; },\n            patchClass: function () { return noop; },\n            wrapWithCurrentZone: function () { return noop; },\n            filterProperties: function () { return []; },\n            attachOriginToPatched: function () { return noop; },\n            _redefineProperty: function () { return noop; },\n            patchCallbacks: function () { return noop; },\n            nativeScheduleMicroTask: nativeScheduleMicroTask\n        };\n        var _currentZoneFrame = { parent: null, zone: new Zone(null, null) };\n        var _currentTask = null;\n        var _numberOfNestedTaskFrames = 0;\n        function noop() { }\n        performanceMeasure('Zone', 'Zone');\n        return global['Zone'] = Zone;\n    }))(typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global);\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.io/license\n     */\n    /**\n     * Suppress closure compiler errors about unknown 'Zone' variable\n     * @fileoverview\n     * @suppress {undefinedVars,globalThis,missingRequire}\n     */\n    /// <reference types=\"node\"/>\n    // issue #989, to reduce bundle size, use short name\n    /** Object.getOwnPropertyDescriptor */\n    var ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n    /** Object.defineProperty */\n    var ObjectDefineProperty = Object.defineProperty;\n    /** Object.getPrototypeOf */\n    var ObjectGetPrototypeOf = Object.getPrototypeOf;\n    /** Object.create */\n    var ObjectCreate = Object.create;\n    /** Array.prototype.slice */\n    var ArraySlice = Array.prototype.slice;\n    /** addEventListener string const */\n    var ADD_EVENT_LISTENER_STR = 'addEventListener';\n    /** removeEventListener string const */\n    var REMOVE_EVENT_LISTENER_STR = 'removeEventListener';\n    /** zoneSymbol addEventListener */\n    var ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__(ADD_EVENT_LISTENER_STR);\n    /** zoneSymbol removeEventListener */\n    var ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__(REMOVE_EVENT_LISTENER_STR);\n    /** true string const */\n    var TRUE_STR = 'true';\n    /** false string const */\n    var FALSE_STR = 'false';\n    /** Zone symbol prefix string const. */\n    var ZONE_SYMBOL_PREFIX = Zone.__symbol__('');\n    function wrapWithCurrentZone(callback, source) {\n        return Zone.current.wrap(callback, source);\n    }\n    function scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {\n        return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);\n    }\n    var zoneSymbol$1 = Zone.__symbol__;\n    var isWindowExists = typeof window !== 'undefined';\n    var internalWindow = isWindowExists ? window : undefined;\n    var _global = isWindowExists && internalWindow || typeof self === 'object' && self || global;\n    var REMOVE_ATTRIBUTE = 'removeAttribute';\n    function bindArguments(args, source) {\n        for (var i = args.length - 1; i >= 0; i--) {\n            if (typeof args[i] === 'function') {\n                args[i] = wrapWithCurrentZone(args[i], source + '_' + i);\n            }\n        }\n        return args;\n    }\n    function patchPrototype(prototype, fnNames) {\n        var source = prototype.constructor['name'];\n        var _loop_1 = function (i) {\n            var name_1 = fnNames[i];\n            var delegate = prototype[name_1];\n            if (delegate) {\n                var prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name_1);\n                if (!isPropertyWritable(prototypeDesc)) {\n                    return \"continue\";\n                }\n                prototype[name_1] = (function (delegate) {\n                    var patched = function () {\n                        return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));\n                    };\n                    attachOriginToPatched(patched, delegate);\n                    return patched;\n                })(delegate);\n            }\n        };\n        for (var i = 0; i < fnNames.length; i++) {\n            _loop_1(i);\n        }\n    }\n    function isPropertyWritable(propertyDesc) {\n        if (!propertyDesc) {\n            return true;\n        }\n        if (propertyDesc.writable === false) {\n            return false;\n        }\n        return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');\n    }\n    var isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);\n    // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n    // this code.\n    var isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&\n        {}.toString.call(_global.process) === '[object process]');\n    var isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);\n    // we are in electron of nw, so we are both browser and nodejs\n    // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n    // this code.\n    var isMix = typeof _global.process !== 'undefined' &&\n        {}.toString.call(_global.process) === '[object process]' && !isWebWorker &&\n        !!(isWindowExists && internalWindow['HTMLElement']);\n    var zoneSymbolEventNames$1 = {};\n    var wrapFn = function (event) {\n        // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n        // event will be undefined, so we need to use window.event\n        event = event || _global.event;\n        if (!event) {\n            return;\n        }\n        var eventNameSymbol = zoneSymbolEventNames$1[event.type];\n        if (!eventNameSymbol) {\n            eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol$1('ON_PROPERTY' + event.type);\n        }\n        var target = this || event.target || _global;\n        var listener = target[eventNameSymbol];\n        var result;\n        if (isBrowser && target === internalWindow && event.type === 'error') {\n            // window.onerror have different signature\n            // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror\n            // and onerror callback will prevent default when callback return true\n            var errorEvent = event;\n            result = listener &&\n                listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);\n            if (result === true) {\n                event.preventDefault();\n            }\n        }\n        else {\n            result = listener && listener.apply(this, arguments);\n            if (result != undefined && !result) {\n                event.preventDefault();\n            }\n        }\n        return result;\n    };\n    function patchProperty(obj, prop, prototype) {\n        var desc = ObjectGetOwnPropertyDescriptor(obj, prop);\n        if (!desc && prototype) {\n            // when patch window object, use prototype to check prop exist or not\n            var prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);\n            if (prototypeDesc) {\n                desc = { enumerable: true, configurable: true };\n            }\n        }\n        // if the descriptor not exists or is not configurable\n        // just return\n        if (!desc || !desc.configurable) {\n            return;\n        }\n        var onPropPatchedSymbol = zoneSymbol$1('on' + prop + 'patched');\n        if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {\n            return;\n        }\n        // A property descriptor cannot have getter/setter and be writable\n        // deleting the writable and value properties avoids this error:\n        //\n        // TypeError: property descriptors must not specify a value or be writable when a\n        // getter or setter has been specified\n        delete desc.writable;\n        delete desc.value;\n        var originalDescGet = desc.get;\n        var originalDescSet = desc.set;\n        // slice(2) cuz 'onclick' -> 'click', etc\n        var eventName = prop.slice(2);\n        var eventNameSymbol = zoneSymbolEventNames$1[eventName];\n        if (!eventNameSymbol) {\n            eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol$1('ON_PROPERTY' + eventName);\n        }\n        desc.set = function (newValue) {\n            // in some of windows's onproperty callback, this is undefined\n            // so we need to check it\n            var target = this;\n            if (!target && obj === _global) {\n                target = _global;\n            }\n            if (!target) {\n                return;\n            }\n            var previousValue = target[eventNameSymbol];\n            if (typeof previousValue === 'function') {\n                target.removeEventListener(eventName, wrapFn);\n            }\n            // issue #978, when onload handler was added before loading zone.js\n            // we should remove it with originalDescSet\n            originalDescSet && originalDescSet.call(target, null);\n            target[eventNameSymbol] = newValue;\n            if (typeof newValue === 'function') {\n                target.addEventListener(eventName, wrapFn, false);\n            }\n        };\n        // The getter would return undefined for unassigned properties but the default value of an\n        // unassigned property is null\n        desc.get = function () {\n            // in some of windows's onproperty callback, this is undefined\n            // so we need to check it\n            var target = this;\n            if (!target && obj === _global) {\n                target = _global;\n            }\n            if (!target) {\n                return null;\n            }\n            var listener = target[eventNameSymbol];\n            if (listener) {\n                return listener;\n            }\n            else if (originalDescGet) {\n                // result will be null when use inline event attribute,\n                // such as <button onclick=\"func();\">OK</button>\n                // because the onclick function is internal raw uncompiled handler\n                // the onclick will be evaluated when first time event was triggered or\n                // the property is accessed, https://github.com/angular/zone.js/issues/525\n                // so we should use original native get to retrieve the handler\n                var value = originalDescGet.call(this);\n                if (value) {\n                    desc.set.call(this, value);\n                    if (typeof target[REMOVE_ATTRIBUTE] === 'function') {\n                        target.removeAttribute(prop);\n                    }\n                    return value;\n                }\n            }\n            return null;\n        };\n        ObjectDefineProperty(obj, prop, desc);\n        obj[onPropPatchedSymbol] = true;\n    }\n    function patchOnProperties(obj, properties, prototype) {\n        if (properties) {\n            for (var i = 0; i < properties.length; i++) {\n                patchProperty(obj, 'on' + properties[i], prototype);\n            }\n        }\n        else {\n            var onProperties = [];\n            for (var prop in obj) {\n                if (prop.slice(0, 2) == 'on') {\n                    onProperties.push(prop);\n                }\n            }\n            for (var j = 0; j < onProperties.length; j++) {\n                patchProperty(obj, onProperties[j], prototype);\n            }\n        }\n    }\n    var originalInstanceKey = zoneSymbol$1('originalInstance');\n    // wrap some native API on `window`\n    function patchClass(className) {\n        var OriginalClass = _global[className];\n        if (!OriginalClass)\n            return;\n        // keep original class in global\n        _global[zoneSymbol$1(className)] = OriginalClass;\n        _global[className] = function () {\n            var a = bindArguments(arguments, className);\n            switch (a.length) {\n                case 0:\n                    this[originalInstanceKey] = new OriginalClass();\n                    break;\n                case 1:\n                    this[originalInstanceKey] = new OriginalClass(a[0]);\n                    break;\n                case 2:\n                    this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n                    break;\n                case 3:\n                    this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n                    break;\n                case 4:\n                    this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n                    break;\n                default:\n                    throw new Error('Arg list too long.');\n            }\n        };\n        // attach original delegate to patched function\n        attachOriginToPatched(_global[className], OriginalClass);\n        var instance = new OriginalClass(function () { });\n        var prop;\n        for (prop in instance) {\n            // https://bugs.webkit.org/show_bug.cgi?id=44721\n            if (className === 'XMLHttpRequest' && prop === 'responseBlob')\n                continue;\n            (function (prop) {\n                if (typeof instance[prop] === 'function') {\n                    _global[className].prototype[prop] = function () {\n                        return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n                    };\n                }\n                else {\n                    ObjectDefineProperty(_global[className].prototype, prop, {\n                        set: function (fn) {\n                            if (typeof fn === 'function') {\n                                this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);\n                                // keep callback in wrapped function so we can\n                                // use it in Function.prototype.toString to return\n                                // the native one.\n                                attachOriginToPatched(this[originalInstanceKey][prop], fn);\n                            }\n                            else {\n                                this[originalInstanceKey][prop] = fn;\n                            }\n                        },\n                        get: function () {\n                            return this[originalInstanceKey][prop];\n                        }\n                    });\n                }\n            }(prop));\n        }\n        for (prop in OriginalClass) {\n            if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n                _global[className][prop] = OriginalClass[prop];\n            }\n        }\n    }\n    function patchMethod(target, name, patchFn) {\n        var proto = target;\n        while (proto && !proto.hasOwnProperty(name)) {\n            proto = ObjectGetPrototypeOf(proto);\n        }\n        if (!proto && target[name]) {\n            // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n            proto = target;\n        }\n        var delegateName = zoneSymbol$1(name);\n        var delegate = null;\n        if (proto && (!(delegate = proto[delegateName]) || !proto.hasOwnProperty(delegateName))) {\n            delegate = proto[delegateName] = proto[name];\n            // check whether proto[name] is writable\n            // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob\n            var desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);\n            if (isPropertyWritable(desc)) {\n                var patchDelegate_1 = patchFn(delegate, delegateName, name);\n                proto[name] = function () {\n                    return patchDelegate_1(this, arguments);\n                };\n                attachOriginToPatched(proto[name], delegate);\n            }\n        }\n        return delegate;\n    }\n    // TODO: @JiaLiPassion, support cancel task later if necessary\n    function patchMacroTask(obj, funcName, metaCreator) {\n        var setNative = null;\n        function scheduleTask(task) {\n            var data = task.data;\n            data.args[data.cbIdx] = function () {\n                task.invoke.apply(this, arguments);\n            };\n            setNative.apply(data.target, data.args);\n            return task;\n        }\n        setNative = patchMethod(obj, funcName, function (delegate) { return function (self, args) {\n            var meta = metaCreator(self, args);\n            if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {\n                return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);\n            }\n            else {\n                // cause an error by calling it directly.\n                return delegate.apply(self, args);\n            }\n        }; });\n    }\n    function attachOriginToPatched(patched, original) {\n        patched[zoneSymbol$1('OriginalDelegate')] = original;\n    }\n    var isDetectedIEOrEdge = false;\n    var ieOrEdge = false;\n    function isIE() {\n        try {\n            var ua = internalWindow.navigator.userAgent;\n            if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {\n                return true;\n            }\n        }\n        catch (error) {\n        }\n        return false;\n    }\n    function isIEOrEdge() {\n        if (isDetectedIEOrEdge) {\n            return ieOrEdge;\n        }\n        isDetectedIEOrEdge = true;\n        try {\n            var ua = internalWindow.navigator.userAgent;\n            if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {\n                ieOrEdge = true;\n            }\n        }\n        catch (error) {\n        }\n        return ieOrEdge;\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.io/license\n     */\n    Zone.__load_patch('ZoneAwarePromise', function (global, Zone, api) {\n        var ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n        var ObjectDefineProperty = Object.defineProperty;\n        function readableObjectToString(obj) {\n            if (obj && obj.toString === Object.prototype.toString) {\n                var className = obj.constructor && obj.constructor.name;\n                return (className ? className : '') + ': ' + JSON.stringify(obj);\n            }\n            return obj ? obj.toString() : Object.prototype.toString.call(obj);\n        }\n        var __symbol__ = api.symbol;\n        var _uncaughtPromiseErrors = [];\n        var isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] === true;\n        var symbolPromise = __symbol__('Promise');\n        var symbolThen = __symbol__('then');\n        var creationTrace = '__creationTrace__';\n        api.onUnhandledError = function (e) {\n            if (api.showUncaughtError()) {\n                var rejection = e && e.rejection;\n                if (rejection) {\n                    console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);\n                }\n                else {\n                    console.error(e);\n                }\n            }\n        };\n        api.microtaskDrainDone = function () {\n            var _loop_2 = function () {\n                var uncaughtPromiseError = _uncaughtPromiseErrors.shift();\n                try {\n                    uncaughtPromiseError.zone.runGuarded(function () {\n                        if (uncaughtPromiseError.throwOriginal) {\n                            throw uncaughtPromiseError.rejection;\n                        }\n                        throw uncaughtPromiseError;\n                    });\n                }\n                catch (error) {\n                    handleUnhandledRejection(error);\n                }\n            };\n            while (_uncaughtPromiseErrors.length) {\n                _loop_2();\n            }\n        };\n        var UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');\n        function handleUnhandledRejection(e) {\n            api.onUnhandledError(e);\n            try {\n                var handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];\n                if (typeof handler === 'function') {\n                    handler.call(this, e);\n                }\n            }\n            catch (err) {\n            }\n        }\n        function isThenable(value) {\n            return value && value.then;\n        }\n        function forwardResolution(value) {\n            return value;\n        }\n        function forwardRejection(rejection) {\n            return ZoneAwarePromise.reject(rejection);\n        }\n        var symbolState = __symbol__('state');\n        var symbolValue = __symbol__('value');\n        var symbolFinally = __symbol__('finally');\n        var symbolParentPromiseValue = __symbol__('parentPromiseValue');\n        var symbolParentPromiseState = __symbol__('parentPromiseState');\n        var source = 'Promise.then';\n        var UNRESOLVED = null;\n        var RESOLVED = true;\n        var REJECTED = false;\n        var REJECTED_NO_CATCH = 0;\n        function makeResolver(promise, state) {\n            return function (v) {\n                try {\n                    resolvePromise(promise, state, v);\n                }\n                catch (err) {\n                    resolvePromise(promise, false, err);\n                }\n                // Do not return value or you will break the Promise spec.\n            };\n        }\n        var once = function () {\n            var wasCalled = false;\n            return function wrapper(wrappedFunction) {\n                return function () {\n                    if (wasCalled) {\n                        return;\n                    }\n                    wasCalled = true;\n                    wrappedFunction.apply(null, arguments);\n                };\n            };\n        };\n        var TYPE_ERROR = 'Promise resolved with itself';\n        var CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');\n        // Promise Resolution\n        function resolvePromise(promise, state, value) {\n            var onceWrapper = once();\n            if (promise === value) {\n                throw new TypeError(TYPE_ERROR);\n            }\n            if (promise[symbolState] === UNRESOLVED) {\n                // should only get value.then once based on promise spec.\n                var then = null;\n                try {\n                    if (typeof value === 'object' || typeof value === 'function') {\n                        then = value && value.then;\n                    }\n                }\n                catch (err) {\n                    onceWrapper(function () {\n                        resolvePromise(promise, false, err);\n                    })();\n                    return promise;\n                }\n                // if (value instanceof ZoneAwarePromise) {\n                if (state !== REJECTED && value instanceof ZoneAwarePromise &&\n                    value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&\n                    value[symbolState] !== UNRESOLVED) {\n                    clearRejectedNoCatch(value);\n                    resolvePromise(promise, value[symbolState], value[symbolValue]);\n                }\n                else if (state !== REJECTED && typeof then === 'function') {\n                    try {\n                        then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));\n                    }\n                    catch (err) {\n                        onceWrapper(function () {\n                            resolvePromise(promise, false, err);\n                        })();\n                    }\n                }\n                else {\n                    promise[symbolState] = state;\n                    var queue = promise[symbolValue];\n                    promise[symbolValue] = value;\n                    if (promise[symbolFinally] === symbolFinally) {\n                        // the promise is generated by Promise.prototype.finally\n                        if (state === RESOLVED) {\n                            // the state is resolved, should ignore the value\n                            // and use parent promise value\n                            promise[symbolState] = promise[symbolParentPromiseState];\n                            promise[symbolValue] = promise[symbolParentPromiseValue];\n                        }\n                    }\n                    // record task information in value when error occurs, so we can\n                    // do some additional work such as render longStackTrace\n                    if (state === REJECTED && value instanceof Error) {\n                        // check if longStackTraceZone is here\n                        var trace = Zone.currentTask && Zone.currentTask.data &&\n                            Zone.currentTask.data[creationTrace];\n                        if (trace) {\n                            // only keep the long stack trace into error when in longStackTraceZone\n                            ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { configurable: true, enumerable: false, writable: true, value: trace });\n                        }\n                    }\n                    for (var i = 0; i < queue.length;) {\n                        scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n                    }\n                    if (queue.length == 0 && state == REJECTED) {\n                        promise[symbolState] = REJECTED_NO_CATCH;\n                        var uncaughtPromiseError = value;\n                        try {\n                            // Here we throws a new Error to print more readable error log\n                            // and if the value is not an error, zone.js builds an `Error`\n                            // Object here to attach the stack information.\n                            throw new Error('Uncaught (in promise): ' + readableObjectToString(value) +\n                                (value && value.stack ? '\\n' + value.stack : ''));\n                        }\n                        catch (err) {\n                            uncaughtPromiseError = err;\n                        }\n                        if (isDisableWrappingUncaughtPromiseRejection) {\n                            // If disable wrapping uncaught promise reject\n                            // use the value instead of wrapping it.\n                            uncaughtPromiseError.throwOriginal = true;\n                        }\n                        uncaughtPromiseError.rejection = value;\n                        uncaughtPromiseError.promise = promise;\n                        uncaughtPromiseError.zone = Zone.current;\n                        uncaughtPromiseError.task = Zone.currentTask;\n                        _uncaughtPromiseErrors.push(uncaughtPromiseError);\n                        api.scheduleMicroTask(); // to make sure that it is running\n                    }\n                }\n            }\n            // Resolving an already resolved promise is a noop.\n            return promise;\n        }\n        var REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');\n        function clearRejectedNoCatch(promise) {\n            if (promise[symbolState] === REJECTED_NO_CATCH) {\n                // if the promise is rejected no catch status\n                // and queue.length > 0, means there is a error handler\n                // here to handle the rejected promise, we should trigger\n                // windows.rejectionhandled eventHandler or nodejs rejectionHandled\n                // eventHandler\n                try {\n                    var handler = Zone[REJECTION_HANDLED_HANDLER];\n                    if (handler && typeof handler === 'function') {\n                        handler.call(this, { rejection: promise[symbolValue], promise: promise });\n                    }\n                }\n                catch (err) {\n                }\n                promise[symbolState] = REJECTED;\n                for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {\n                    if (promise === _uncaughtPromiseErrors[i].promise) {\n                        _uncaughtPromiseErrors.splice(i, 1);\n                    }\n                }\n            }\n        }\n        function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n            clearRejectedNoCatch(promise);\n            var promiseState = promise[symbolState];\n            var delegate = promiseState ?\n                (typeof onFulfilled === 'function') ? onFulfilled : forwardResolution :\n                (typeof onRejected === 'function') ? onRejected :\n                    forwardRejection;\n            zone.scheduleMicroTask(source, function () {\n                try {\n                    var parentPromiseValue = promise[symbolValue];\n                    var isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];\n                    if (isFinallyPromise) {\n                        // if the promise is generated from finally call, keep parent promise's state and value\n                        chainPromise[symbolParentPromiseValue] = parentPromiseValue;\n                        chainPromise[symbolParentPromiseState] = promiseState;\n                    }\n                    // should not pass value to finally callback\n                    var value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution ?\n                        [] :\n                        [parentPromiseValue]);\n                    resolvePromise(chainPromise, true, value);\n                }\n                catch (error) {\n                    // if error occurs, should always return this error\n                    resolvePromise(chainPromise, false, error);\n                }\n            }, chainPromise);\n        }\n        var ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';\n        var noop = function () { };\n        var AggregateError = global.AggregateError;\n        var ZoneAwarePromise = /** @class */ (function () {\n            function ZoneAwarePromise(executor) {\n                var promise = this;\n                if (!(promise instanceof ZoneAwarePromise)) {\n                    throw new Error('Must be an instanceof Promise.');\n                }\n                promise[symbolState] = UNRESOLVED;\n                promise[symbolValue] = []; // queue;\n                try {\n                    var onceWrapper = once();\n                    executor &&\n                        executor(onceWrapper(makeResolver(promise, RESOLVED)), onceWrapper(makeResolver(promise, REJECTED)));\n                }\n                catch (error) {\n                    resolvePromise(promise, false, error);\n                }\n            }\n            ZoneAwarePromise.toString = function () {\n                return ZONE_AWARE_PROMISE_TO_STRING;\n            };\n            ZoneAwarePromise.resolve = function (value) {\n                return resolvePromise(new this(null), RESOLVED, value);\n            };\n            ZoneAwarePromise.reject = function (error) {\n                return resolvePromise(new this(null), REJECTED, error);\n            };\n            ZoneAwarePromise.any = function (values) {\n                if (!values || typeof values[Symbol.iterator] !== 'function') {\n                    return Promise.reject(new AggregateError([], 'All promises were rejected'));\n                }\n                var promises = [];\n                var count = 0;\n                try {\n                    for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {\n                        var v = values_1[_i];\n                        count++;\n                        promises.push(ZoneAwarePromise.resolve(v));\n                    }\n                }\n                catch (err) {\n                    return Promise.reject(new AggregateError([], 'All promises were rejected'));\n                }\n                if (count === 0) {\n                    return Promise.reject(new AggregateError([], 'All promises were rejected'));\n                }\n                var finished = false;\n                var errors = [];\n                return new ZoneAwarePromise(function (resolve, reject) {\n                    for (var i = 0; i < promises.length; i++) {\n                        promises[i].then(function (v) {\n                            if (finished) {\n                                return;\n                            }\n                            finished = true;\n                            resolve(v);\n                        }, function (err) {\n                            errors.push(err);\n                            count--;\n                            if (count === 0) {\n                                finished = true;\n                                reject(new AggregateError(errors, 'All promises were rejected'));\n                            }\n                        });\n                    }\n                });\n            };\n            ;\n            ZoneAwarePromise.race = function (values) {\n                var resolve;\n                var reject;\n                var promise = new this(function (res, rej) {\n                    resolve = res;\n                    reject = rej;\n                });\n                function onResolve(value) {\n                    resolve(value);\n                }\n                function onReject(error) {\n                    reject(error);\n                }\n                for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {\n                    var value = values_2[_i];\n                    if (!isThenable(value)) {\n                        value = this.resolve(value);\n                    }\n                    value.then(onResolve, onReject);\n                }\n                return promise;\n            };\n            ZoneAwarePromise.all = function (values) {\n                return ZoneAwarePromise.allWithCallback(values);\n            };\n            ZoneAwarePromise.allSettled = function (values) {\n                var P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;\n                return P.allWithCallback(values, {\n                    thenCallback: function (value) { return ({ status: 'fulfilled', value: value }); },\n                    errorCallback: function (err) { return ({ status: 'rejected', reason: err }); }\n                });\n            };\n            ZoneAwarePromise.allWithCallback = function (values, callback) {\n                var resolve;\n                var reject;\n                var promise = new this(function (res, rej) {\n                    resolve = res;\n                    reject = rej;\n                });\n                // Start at 2 to prevent prematurely resolving if .then is called immediately.\n                var unresolvedCount = 2;\n                var valueIndex = 0;\n                var resolvedValues = [];\n                var _loop_3 = function (value) {\n                    if (!isThenable(value)) {\n                        value = this_1.resolve(value);\n                    }\n                    var curValueIndex = valueIndex;\n                    try {\n                        value.then(function (value) {\n                            resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;\n                            unresolvedCount--;\n                            if (unresolvedCount === 0) {\n                                resolve(resolvedValues);\n                            }\n                        }, function (err) {\n                            if (!callback) {\n                                reject(err);\n                            }\n                            else {\n                                resolvedValues[curValueIndex] = callback.errorCallback(err);\n                                unresolvedCount--;\n                                if (unresolvedCount === 0) {\n                                    resolve(resolvedValues);\n                                }\n                            }\n                        });\n                    }\n                    catch (thenErr) {\n                        reject(thenErr);\n                    }\n                    unresolvedCount++;\n                    valueIndex++;\n                };\n                var this_1 = this;\n                for (var _i = 0, values_3 = values; _i < values_3.length; _i++) {\n                    var value = values_3[_i];\n                    _loop_3(value);\n                }\n                // Make the unresolvedCount zero-based again.\n                unresolvedCount -= 2;\n                if (unresolvedCount === 0) {\n                    resolve(resolvedValues);\n                }\n                return promise;\n            };\n            Object.defineProperty(ZoneAwarePromise.prototype, Symbol.toStringTag, {\n                get: function () {\n                    return 'Promise';\n                },\n                enumerable: false,\n                configurable: true\n            });\n            Object.defineProperty(ZoneAwarePromise.prototype, Symbol.species, {\n                get: function () {\n                    return ZoneAwarePromise;\n                },\n                enumerable: false,\n                configurable: true\n            });\n            ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {\n                var _a;\n                // We must read `Symbol.species` safely because `this` may be anything. For instance, `this`\n                // may be an object without a prototype (created through `Object.create(null)`); thus\n                // `this.constructor` will be undefined. One of the use cases is SystemJS creating\n                // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty\n                // object and copies promise properties into that object (within the `getOrCreateLoad`\n                // function). The zone.js then checks if the resolved value has the `then` method and invokes\n                // it with the `value` context. Otherwise, this will throw an error: `TypeError: Cannot read\n                // properties of undefined (reading 'Symbol(Symbol.species)')`.\n                var C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];\n                if (!C || typeof C !== 'function') {\n                    C = this.constructor || ZoneAwarePromise;\n                }\n                var chainPromise = new C(noop);\n                var zone = Zone.current;\n                if (this[symbolState] == UNRESOLVED) {\n                    this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n                }\n                else {\n                    scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n                }\n                return chainPromise;\n            };\n            ZoneAwarePromise.prototype.catch = function (onRejected) {\n                return this.then(null, onRejected);\n            };\n            ZoneAwarePromise.prototype.finally = function (onFinally) {\n                var _a;\n                // See comment on the call to `then` about why thee `Symbol.species` is safely accessed.\n                var C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];\n                if (!C || typeof C !== 'function') {\n                    C = ZoneAwarePromise;\n                }\n                var chainPromise = new C(noop);\n                chainPromise[symbolFinally] = symbolFinally;\n                var zone = Zone.current;\n                if (this[symbolState] == UNRESOLVED) {\n                    this[symbolValue].push(zone, chainPromise, onFinally, onFinally);\n                }\n                else {\n                    scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);\n                }\n                return chainPromise;\n            };\n            return ZoneAwarePromise;\n        }());\n        // Protect against aggressive optimizers dropping seemingly unused properties.\n        // E.g. Closure Compiler in advanced mode.\n        ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;\n        ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;\n        ZoneAwarePromise['race'] = ZoneAwarePromise.race;\n        ZoneAwarePromise['all'] = ZoneAwarePromise.all;\n        var NativePromise = global[symbolPromise] = global['Promise'];\n        global['Promise'] = ZoneAwarePromise;\n        var symbolThenPatched = __symbol__('thenPatched');\n        function patchThen(Ctor) {\n            var proto = Ctor.prototype;\n            var prop = ObjectGetOwnPropertyDescriptor(proto, 'then');\n            if (prop && (prop.writable === false || !prop.configurable)) {\n                // check Ctor.prototype.then propertyDescriptor is writable or not\n                // in meteor env, writable is false, we should ignore such case\n                return;\n            }\n            var originalThen = proto.then;\n            // Keep a reference to the original method.\n            proto[symbolThen] = originalThen;\n            Ctor.prototype.then = function (onResolve, onReject) {\n                var _this = this;\n                var wrapped = new ZoneAwarePromise(function (resolve, reject) {\n                    originalThen.call(_this, resolve, reject);\n                });\n                return wrapped.then(onResolve, onReject);\n            };\n            Ctor[symbolThenPatched] = true;\n        }\n        api.patchThen = patchThen;\n        function zoneify(fn) {\n            return function (self, args) {\n                var resultPromise = fn.apply(self, args);\n                if (resultPromise instanceof ZoneAwarePromise) {\n                    return resultPromise;\n                }\n                var ctor = resultPromise.constructor;\n                if (!ctor[symbolThenPatched]) {\n                    patchThen(ctor);\n                }\n                return resultPromise;\n            };\n        }\n        if (NativePromise) {\n            patchThen(NativePromise);\n            patchMethod(global, 'fetch', function (delegate) { return zoneify(delegate); });\n        }\n        // This is not part of public API, but it is useful for tests, so we expose it.\n        Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;\n        return ZoneAwarePromise;\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.io/license\n     */\n    // override Function.prototype.toString to make zone.js patched function\n    // look like native function\n    Zone.__load_patch('toString', function (global) {\n        // patch Func.prototype.toString to let them look like native\n        var originalFunctionToString = Function.prototype.toString;\n        var ORIGINAL_DELEGATE_SYMBOL = zoneSymbol$1('OriginalDelegate');\n        var PROMISE_SYMBOL = zoneSymbol$1('Promise');\n        var ERROR_SYMBOL = zoneSymbol$1('Error');\n        var newFunctionToString = function toString() {\n            if (typeof this === 'function') {\n                var originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];\n                if (originalDelegate) {\n                    if (typeof originalDelegate === 'function') {\n                        return originalFunctionToString.call(originalDelegate);\n                    }\n                    else {\n                        return Object.prototype.toString.call(originalDelegate);\n                    }\n                }\n                if (this === Promise) {\n                    var nativePromise = global[PROMISE_SYMBOL];\n                    if (nativePromise) {\n                        return originalFunctionToString.call(nativePromise);\n                    }\n                }\n                if (this === Error) {\n                    var nativeError = global[ERROR_SYMBOL];\n                    if (nativeError) {\n                        return originalFunctionToString.call(nativeError);\n                    }\n                }\n            }\n            return originalFunctionToString.call(this);\n        };\n        newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;\n        Function.prototype.toString = newFunctionToString;\n        // patch Object.prototype.toString to let them look like native\n        var originalObjectToString = Object.prototype.toString;\n        var PROMISE_OBJECT_TO_STRING = '[object Promise]';\n        Object.prototype.toString = function () {\n            if (typeof Promise === 'function' && this instanceof Promise) {\n                return PROMISE_OBJECT_TO_STRING;\n            }\n            return originalObjectToString.call(this);\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.io/license\n     */\n    var passiveSupported = false;\n    if (typeof window !== 'undefined') {\n        try {\n            var options = Object.defineProperty({}, 'passive', {\n                get: function () {\n                    passiveSupported = true;\n                }\n            });\n            // Note: We pass the `options` object as the event handler too. This is not compatible with the\n            // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler\n            // without an actual handler.\n            window.addEventListener('test', options, options);\n            window.removeEventListener('test', options, options);\n        }\n        catch (err) {\n            passiveSupported = false;\n        }\n    }\n    // an identifier to tell ZoneTask do not create a new invoke closure\n    var OPTIMIZED_ZONE_EVENT_TASK_DATA = {\n        useG: true\n    };\n    var zoneSymbolEventNames = {};\n    var globalSources = {};\n    var EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\\\w+)(true|false)$');\n    var IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol$1('propagationStopped');\n    function prepareEventNames(eventName, eventNameToString) {\n        var falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;\n        var trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;\n        var symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n        var symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n        zoneSymbolEventNames[eventName] = {};\n        zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n        zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n    }\n    function patchEventTarget(_global, api, apis, patchOptions) {\n        var ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;\n        var REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;\n        var LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';\n        var REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';\n        var zoneSymbolAddEventListener = zoneSymbol$1(ADD_EVENT_LISTENER);\n        var ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';\n        var PREPEND_EVENT_LISTENER = 'prependListener';\n        var PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';\n        var invokeTask = function (task, target, event) {\n            // for better performance, check isRemoved which is set\n            // by removeEventListener\n            if (task.isRemoved) {\n                return;\n            }\n            var delegate = task.callback;\n            if (typeof delegate === 'object' && delegate.handleEvent) {\n                // create the bind version of handleEvent when invoke\n                task.callback = function (event) { return delegate.handleEvent(event); };\n                task.originalDelegate = delegate;\n            }\n            // invoke static task.invoke\n            // need to try/catch error here, otherwise, the error in one event listener\n            // will break the executions of the other event listeners. Also error will\n            // not remove the event listener when `once` options is true.\n            var error;\n            try {\n                task.invoke(task, target, [event]);\n            }\n            catch (err) {\n                error = err;\n            }\n            var options = task.options;\n            if (options && typeof options === 'object' && options.once) {\n                // if options.once is true, after invoke once remove listener here\n                // only browser need to do this, nodejs eventEmitter will cal removeListener\n                // inside EventEmitter.once\n                var delegate_1 = task.originalDelegate ? task.originalDelegate : task.callback;\n                target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate_1, options);\n            }\n            return error;\n        };\n        function globalCallback(context, event, isCapture) {\n            // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n            // event will be undefined, so we need to use window.event\n            event = event || _global.event;\n            if (!event) {\n                return;\n            }\n            // event.target is needed for Samsung TV and SourceBuffer\n            // || global is needed https://github.com/angular/zone.js/issues/190\n            var target = context || event.target || _global;\n            var tasks = target[zoneSymbolEventNames[event.type][isCapture ? TRUE_STR : FALSE_STR]];\n            if (tasks) {\n                var errors = [];\n                // invoke all tasks which attached to current target with given event.type and capture = false\n                // for performance concern, if task.length === 1, just invoke\n                if (tasks.length === 1) {\n                    var err = invokeTask(tasks[0], target, event);\n                    err && errors.push(err);\n                }\n                else {\n                    // https://github.com/angular/zone.js/issues/836\n                    // copy the tasks array before invoke, to avoid\n                    // the callback will remove itself or other listener\n                    var copyTasks = tasks.slice();\n                    for (var i = 0; i < copyTasks.length; i++) {\n                        if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {\n                            break;\n                        }\n                        var err = invokeTask(copyTasks[i], target, event);\n                        err && errors.push(err);\n                    }\n                }\n                // Since there is only one error, we don't need to schedule microTask\n                // to throw the error.\n                if (errors.length === 1) {\n                    throw errors[0];\n                }\n                else {\n                    var _loop_4 = function (i) {\n                        var err = errors[i];\n                        api.nativeScheduleMicroTask(function () {\n                            throw err;\n                        });\n                    };\n                    for (var i = 0; i < errors.length; i++) {\n                        _loop_4(i);\n                    }\n                }\n            }\n        }\n        // global shared zoneAwareCallback to handle all event callback with capture = false\n        var globalZoneAwareCallback = function (event) {\n            return globalCallback(this, event, false);\n        };\n        // global shared zoneAwareCallback to handle all event callback with capture = true\n        var globalZoneAwareCaptureCallback = function (event) {\n            return globalCallback(this, event, true);\n        };\n        function patchEventTargetMethods(obj, patchOptions) {\n            if (!obj) {\n                return false;\n            }\n            var useGlobalCallback = true;\n            if (patchOptions && patchOptions.useG !== undefined) {\n                useGlobalCallback = patchOptions.useG;\n            }\n            var validateHandler = patchOptions && patchOptions.vh;\n            var checkDuplicate = true;\n            if (patchOptions && patchOptions.chkDup !== undefined) {\n                checkDuplicate = patchOptions.chkDup;\n            }\n            var returnTarget = false;\n            if (patchOptions && patchOptions.rt !== undefined) {\n                returnTarget = patchOptions.rt;\n            }\n            var proto = obj;\n            while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {\n                proto = ObjectGetPrototypeOf(proto);\n            }\n            if (!proto && obj[ADD_EVENT_LISTENER]) {\n                // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n                proto = obj;\n            }\n            if (!proto) {\n                return false;\n            }\n            if (proto[zoneSymbolAddEventListener]) {\n                return false;\n            }\n            var eventNameToString = patchOptions && patchOptions.eventNameToString;\n            // a shared global taskData to pass data for scheduleEventTask\n            // so we do not need to create a new object just for pass some data\n            var taskData = {};\n            var nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];\n            var nativeRemoveEventListener = proto[zoneSymbol$1(REMOVE_EVENT_LISTENER)] =\n                proto[REMOVE_EVENT_LISTENER];\n            var nativeListeners = proto[zoneSymbol$1(LISTENERS_EVENT_LISTENER)] =\n                proto[LISTENERS_EVENT_LISTENER];\n            var nativeRemoveAllListeners = proto[zoneSymbol$1(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =\n                proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];\n            var nativePrependEventListener;\n            if (patchOptions && patchOptions.prepend) {\n                nativePrependEventListener = proto[zoneSymbol$1(patchOptions.prepend)] =\n                    proto[patchOptions.prepend];\n            }\n            /**\n             * This util function will build an option object with passive option\n             * to handle all possible input from the user.\n             */\n            function buildEventListenerOptions(options, passive) {\n                if (!passiveSupported && typeof options === 'object' && options) {\n                    // doesn't support passive but user want to pass an object as options.\n                    // this will not work on some old browser, so we just pass a boolean\n                    // as useCapture parameter\n                    return !!options.capture;\n                }\n                if (!passiveSupported || !passive) {\n                    return options;\n                }\n                if (typeof options === 'boolean') {\n                    return { capture: options, passive: true };\n                }\n                if (!options) {\n                    return { passive: true };\n                }\n                if (typeof options === 'object' && options.passive !== false) {\n                    return Object.assign(Object.assign({}, options), { passive: true });\n                }\n                return options;\n            }\n            var customScheduleGlobal = function (task) {\n                // if there is already a task for the eventName + capture,\n                // just return, because we use the shared globalZoneAwareCallback here.\n                if (taskData.isExisting) {\n                    return;\n                }\n                return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);\n            };\n            var customCancelGlobal = function (task) {\n                // if task is not marked as isRemoved, this call is directly\n                // from Zone.prototype.cancelTask, we should remove the task\n                // from tasksList of target first\n                if (!task.isRemoved) {\n                    var symbolEventNames = zoneSymbolEventNames[task.eventName];\n                    var symbolEventName = void 0;\n                    if (symbolEventNames) {\n                        symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];\n                    }\n                    var existingTasks = symbolEventName && task.target[symbolEventName];\n                    if (existingTasks) {\n                        for (var i = 0; i < existingTasks.length; i++) {\n                            var existingTask = existingTasks[i];\n                            if (existingTask === task) {\n                                existingTasks.splice(i, 1);\n                                // set isRemoved to data for faster invokeTask check\n                                task.isRemoved = true;\n                                if (existingTasks.length === 0) {\n                                    // all tasks for the eventName + capture have gone,\n                                    // remove globalZoneAwareCallback and remove the task cache from target\n                                    task.allRemoved = true;\n                                    task.target[symbolEventName] = null;\n                                }\n                                break;\n                            }\n                        }\n                    }\n                }\n                // if all tasks for the eventName + capture have gone,\n                // we will really remove the global event callback,\n                // if not, return\n                if (!task.allRemoved) {\n                    return;\n                }\n                return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);\n            };\n            var customScheduleNonGlobal = function (task) {\n                return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n            };\n            var customSchedulePrepend = function (task) {\n                return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n            };\n            var customCancelNonGlobal = function (task) {\n                return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);\n            };\n            var customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;\n            var customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;\n            var compareTaskCallbackVsDelegate = function (task, delegate) {\n                var typeOfDelegate = typeof delegate;\n                return (typeOfDelegate === 'function' && task.callback === delegate) ||\n                    (typeOfDelegate === 'object' && task.originalDelegate === delegate);\n            };\n            var compare = (patchOptions && patchOptions.diff) ? patchOptions.diff : compareTaskCallbackVsDelegate;\n            var unpatchedEvents = Zone[zoneSymbol$1('UNPATCHED_EVENTS')];\n            var passiveEvents = _global[zoneSymbol$1('PASSIVE_EVENTS')];\n            var makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget, prepend) {\n                if (returnTarget === void 0) { returnTarget = false; }\n                if (prepend === void 0) { prepend = false; }\n                return function () {\n                    var target = this || _global;\n                    var eventName = arguments[0];\n                    if (patchOptions && patchOptions.transferEventName) {\n                        eventName = patchOptions.transferEventName(eventName);\n                    }\n                    var delegate = arguments[1];\n                    if (!delegate) {\n                        return nativeListener.apply(this, arguments);\n                    }\n                    if (isNode && eventName === 'uncaughtException') {\n                        // don't patch uncaughtException of nodejs to prevent endless loop\n                        return nativeListener.apply(this, arguments);\n                    }\n                    // don't create the bind delegate function for handleEvent\n                    // case here to improve addEventListener performance\n                    // we will create the bind delegate when invoke\n                    var isHandleEvent = false;\n                    if (typeof delegate !== 'function') {\n                        if (!delegate.handleEvent) {\n                            return nativeListener.apply(this, arguments);\n                        }\n                        isHandleEvent = true;\n                    }\n                    if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {\n                        return;\n                    }\n                    var passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;\n                    var options = buildEventListenerOptions(arguments[2], passive);\n                    if (unpatchedEvents) {\n                        // check unpatched list\n                        for (var i = 0; i < unpatchedEvents.length; i++) {\n                            if (eventName === unpatchedEvents[i]) {\n                                if (passive) {\n                                    return nativeListener.call(target, eventName, delegate, options);\n                                }\n                                else {\n                                    return nativeListener.apply(this, arguments);\n                                }\n                            }\n                        }\n                    }\n                    var capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n                    var once = options && typeof options === 'object' ? options.once : false;\n                    var zone = Zone.current;\n                    var symbolEventNames = zoneSymbolEventNames[eventName];\n                    if (!symbolEventNames) {\n                        prepareEventNames(eventName, eventNameToString);\n                        symbolEventNames = zoneSymbolEventNames[eventName];\n                    }\n                    var symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n                    var existingTasks = target[symbolEventName];\n                    var isExisting = false;\n                    if (existingTasks) {\n                        // already have task registered\n                        isExisting = true;\n                        if (checkDuplicate) {\n                            for (var i = 0; i < existingTasks.length; i++) {\n                                if (compare(existingTasks[i], delegate)) {\n                                    // same callback, same capture, same event name, just return\n                                    return;\n                                }\n                            }\n                        }\n                    }\n                    else {\n                        existingTasks = target[symbolEventName] = [];\n                    }\n                    var source;\n                    var constructorName = target.constructor['name'];\n                    var targetSource = globalSources[constructorName];\n                    if (targetSource) {\n                        source = targetSource[eventName];\n                    }\n                    if (!source) {\n                        source = constructorName + addSource +\n                            (eventNameToString ? eventNameToString(eventName) : eventName);\n                    }\n                    // do not create a new object as task.data to pass those things\n                    // just use the global shared one\n                    taskData.options = options;\n                    if (once) {\n                        // if addEventListener with once options, we don't pass it to\n                        // native addEventListener, instead we keep the once setting\n                        // and handle ourselves.\n                        taskData.options.once = false;\n                    }\n                    taskData.target = target;\n                    taskData.capture = capture;\n                    taskData.eventName = eventName;\n                    taskData.isExisting = isExisting;\n                    var data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;\n                    // keep taskData into data to allow onScheduleEventTask to access the task information\n                    if (data) {\n                        data.taskData = taskData;\n                    }\n                    var task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);\n                    // should clear taskData.target to avoid memory leak\n                    // issue, https://github.com/angular/angular/issues/20442\n                    taskData.target = null;\n                    // need to clear up taskData because it is a global object\n                    if (data) {\n                        data.taskData = null;\n                    }\n                    // have to save those information to task in case\n                    // application may call task.zone.cancelTask() directly\n                    if (once) {\n                        options.once = true;\n                    }\n                    if (!(!passiveSupported && typeof task.options === 'boolean')) {\n                        // if not support passive, and we pass an option object\n                        // to addEventListener, we should save the options to task\n                        task.options = options;\n                    }\n                    task.target = target;\n                    task.capture = capture;\n                    task.eventName = eventName;\n                    if (isHandleEvent) {\n                        // save original delegate for compare to check duplicate\n                        task.originalDelegate = delegate;\n                    }\n                    if (!prepend) {\n                        existingTasks.push(task);\n                    }\n                    else {\n                        existingTasks.unshift(task);\n                    }\n                    if (returnTarget) {\n                        return target;\n                    }\n                };\n            };\n            proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);\n            if (nativePrependEventListener) {\n                proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);\n            }\n            proto[REMOVE_EVENT_LISTENER] = function () {\n                var target = this || _global;\n                var eventName = arguments[0];\n                if (patchOptions && patchOptions.transferEventName) {\n                    eventName = patchOptions.transferEventName(eventName);\n                }\n                var options = arguments[2];\n                var capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n                var delegate = arguments[1];\n                if (!delegate) {\n                    return nativeRemoveEventListener.apply(this, arguments);\n                }\n                if (validateHandler &&\n                    !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {\n                    return;\n                }\n                var symbolEventNames = zoneSymbolEventNames[eventName];\n                var symbolEventName;\n                if (symbolEventNames) {\n                    symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n                }\n                var existingTasks = symbolEventName && target[symbolEventName];\n                if (existingTasks) {\n                    for (var i = 0; i < existingTasks.length; i++) {\n                        var existingTask = existingTasks[i];\n                        if (compare(existingTask, delegate)) {\n                            existingTasks.splice(i, 1);\n                            // set isRemoved to data for faster invokeTask check\n                            existingTask.isRemoved = true;\n                            if (existingTasks.length === 0) {\n                                // all tasks for the eventName + capture have gone,\n                                // remove globalZoneAwareCallback and remove the task cache from target\n                                existingTask.allRemoved = true;\n                                target[symbolEventName] = null;\n                                // in the target, we have an event listener which is added by on_property\n                                // such as target.onclick = function() {}, so we need to clear this internal\n                                // property too if all delegates all removed\n                                if (typeof eventName === 'string') {\n                                    var onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;\n                                    target[onPropertySymbol] = null;\n                                }\n                            }\n                            existingTask.zone.cancelTask(existingTask);\n                            if (returnTarget) {\n                                return target;\n                            }\n                            return;\n                        }\n                    }\n                }\n                // issue 930, didn't find the event name or callback\n                // from zone kept existingTasks, the callback maybe\n                // added outside of zone, we need to call native removeEventListener\n                // to try to remove it.\n                return nativeRemoveEventListener.apply(this, arguments);\n            };\n            proto[LISTENERS_EVENT_LISTENER] = function () {\n                var target = this || _global;\n                var eventName = arguments[0];\n                if (patchOptions && patchOptions.transferEventName) {\n                    eventName = patchOptions.transferEventName(eventName);\n                }\n                var listeners = [];\n                var tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);\n                for (var i = 0; i < tasks.length; i++) {\n                    var task = tasks[i];\n                    var delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n                    listeners.push(delegate);\n                }\n                return listeners;\n            };\n            proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {\n                var target = this || _global;\n                var eventName = arguments[0];\n                if (!eventName) {\n                    var keys = Object.keys(target);\n                    for (var i = 0; i < keys.length; i++) {\n                        var prop = keys[i];\n                        var match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n                        var evtName = match && match[1];\n                        // in nodejs EventEmitter, removeListener event is\n                        // used for monitoring the removeListener call,\n                        // so just keep removeListener eventListener until\n                        // all other eventListeners are removed\n                        if (evtName && evtName !== 'removeListener') {\n                            this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);\n                        }\n                    }\n                    // remove removeListener listener finally\n                    this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');\n                }\n                else {\n                    if (patchOptions && patchOptions.transferEventName) {\n                        eventName = patchOptions.transferEventName(eventName);\n                    }\n                    var symbolEventNames = zoneSymbolEventNames[eventName];\n                    if (symbolEventNames) {\n                        var symbolEventName = symbolEventNames[FALSE_STR];\n                        var symbolCaptureEventName = symbolEventNames[TRUE_STR];\n                        var tasks = target[symbolEventName];\n                        var captureTasks = target[symbolCaptureEventName];\n                        if (tasks) {\n                            var removeTasks = tasks.slice();\n                            for (var i = 0; i < removeTasks.length; i++) {\n                                var task = removeTasks[i];\n                                var delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n                                this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n                            }\n                        }\n                        if (captureTasks) {\n                            var removeTasks = captureTasks.slice();\n                            for (var i = 0; i < removeTasks.length; i++) {\n                                var task = removeTasks[i];\n                                var delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n                                this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n                            }\n                        }\n                    }\n                }\n                if (returnTarget) {\n                    return this;\n                }\n            };\n            // for native toString patch\n            attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);\n            attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);\n            if (nativeRemoveAllListeners) {\n                attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);\n            }\n            if (nativeListeners) {\n                attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);\n            }\n            return true;\n        }\n        var results = [];\n        for (var i = 0; i < apis.length; i++) {\n            results[i] = patchEventTargetMethods(apis[i], patchOptions);\n        }\n        return results;\n    }\n    function findEventTasks(target, eventName) {\n        if (!eventName) {\n            var foundTasks = [];\n            for (var prop in target) {\n                var match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n                var evtName = match && match[1];\n                if (evtName && (!eventName || evtName === eventName)) {\n                    var tasks = target[prop];\n                    if (tasks) {\n                        for (var i = 0; i < tasks.length; i++) {\n                            foundTasks.push(tasks[i]);\n                        }\n                    }\n                }\n            }\n            return foundTasks;\n        }\n        var symbolEventName = zoneSymbolEventNames[eventName];\n        if (!symbolEventName) {\n            prepareEventNames(eventName);\n            symbolEventName = zoneSymbolEventNames[eventName];\n        }\n        var captureFalseTasks = target[symbolEventName[FALSE_STR]];\n        var captureTrueTasks = target[symbolEventName[TRUE_STR]];\n        if (!captureFalseTasks) {\n            return captureTrueTasks ? captureTrueTasks.slice() : [];\n        }\n        else {\n            return captureTrueTasks ? captureFalseTasks.concat(captureTrueTasks) :\n                captureFalseTasks.slice();\n        }\n    }\n    function patchEventPrototype(global, api) {\n        var Event = global['Event'];\n        if (Event && Event.prototype) {\n            api.patchMethod(Event.prototype, 'stopImmediatePropagation', function (delegate) { return function (self, args) {\n                self[IMMEDIATE_PROPAGATION_SYMBOL] = true;\n                // we need to call the native stopImmediatePropagation\n                // in case in some hybrid application, some part of\n                // application will be controlled by zone, some are not\n                delegate && delegate.apply(self, args);\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.io/license\n     */\n    function patchCallbacks(api, target, targetName, method, callbacks) {\n        var symbol = Zone.__symbol__(method);\n        if (target[symbol]) {\n            return;\n        }\n        var nativeDelegate = target[symbol] = target[method];\n        target[method] = function (name, opts, options) {\n            if (opts && opts.prototype) {\n                callbacks.forEach(function (callback) {\n                    var source = \"\".concat(targetName, \".\").concat(method, \"::\") + callback;\n                    var prototype = opts.prototype;\n                    // Note: the `patchCallbacks` is used for patching the `document.registerElement` and\n                    // `customElements.define`. We explicitly wrap the patching code into try-catch since\n                    // callbacks may be already patched by other web components frameworks (e.g. LWC), and they\n                    // make those properties non-writable. This means that patching callback will throw an error\n                    // `cannot assign to read-only property`. See this code as an example:\n                    // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186\n                    // We don't want to stop the application rendering if we couldn't patch some\n                    // callback, e.g. `attributeChangedCallback`.\n                    try {\n                        if (prototype.hasOwnProperty(callback)) {\n                            var descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);\n                            if (descriptor && descriptor.value) {\n                                descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);\n                                api._redefineProperty(opts.prototype, callback, descriptor);\n                            }\n                            else if (prototype[callback]) {\n                                prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n                            }\n                        }\n                        else if (prototype[callback]) {\n                            prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n                        }\n                    }\n                    catch (_a) {\n                        // Note: we leave the catch block empty since there's no way to handle the error related\n                        // to non-writable property.\n                    }\n                });\n            }\n            return nativeDelegate.call(target, name, opts, options);\n        };\n        api.attachOriginToPatched(target[method], nativeDelegate);\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.io/license\n     */\n    function filterProperties(target, onProperties, ignoreProperties) {\n        if (!ignoreProperties || ignoreProperties.length === 0) {\n            return onProperties;\n        }\n        var tip = ignoreProperties.filter(function (ip) { return ip.target === target; });\n        if (!tip || tip.length === 0) {\n            return onProperties;\n        }\n        var targetIgnoreProperties = tip[0].ignoreProperties;\n        return onProperties.filter(function (op) { return targetIgnoreProperties.indexOf(op) === -1; });\n    }\n    function patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {\n        // check whether target is available, sometimes target will be undefined\n        // because different browser or some 3rd party plugin.\n        if (!target) {\n            return;\n        }\n        var filteredProperties = filterProperties(target, onProperties, ignoreProperties);\n        patchOnProperties(target, filteredProperties, prototype);\n    }\n    /**\n     * Get all event name properties which the event name startsWith `on`\n     * from the target object itself, inherited properties are not considered.\n     */\n    function getOnEventNames(target) {\n        return Object.getOwnPropertyNames(target)\n            .filter(function (name) { return name.startsWith('on') && name.length > 2; })\n            .map(function (name) { return name.substring(2); });\n    }\n    function propertyDescriptorPatch(api, _global) {\n        if (isNode && !isMix) {\n            return;\n        }\n        if (Zone[api.symbol('patchEvents')]) {\n            // events are already been patched by legacy patch.\n            return;\n        }\n        var ignoreProperties = _global['__Zone_ignore_on_properties'];\n        // for browsers that we can patch the descriptor:  Chrome & Firefox\n        var patchTargets = [];\n        if (isBrowser) {\n            var internalWindow_1 = window;\n            patchTargets = patchTargets.concat([\n                'Document', 'SVGElement', 'Element', 'HTMLElement', 'HTMLBodyElement', 'HTMLMediaElement',\n                'HTMLFrameSetElement', 'HTMLFrameElement', 'HTMLIFrameElement', 'HTMLMarqueeElement', 'Worker'\n            ]);\n            var ignoreErrorProperties = isIE() ? [{ target: internalWindow_1, ignoreProperties: ['error'] }] : [];\n            // in IE/Edge, onProp not exist in window object, but in WindowPrototype\n            // so we need to pass WindowPrototype to check onProp exist or not\n            patchFilteredProperties(internalWindow_1, getOnEventNames(internalWindow_1), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow_1));\n        }\n        patchTargets = patchTargets.concat([\n            'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'IDBIndex', 'IDBRequest', 'IDBOpenDBRequest',\n            'IDBDatabase', 'IDBTransaction', 'IDBCursor', 'WebSocket'\n        ]);\n        for (var i = 0; i < patchTargets.length; i++) {\n            var target = _global[patchTargets[i]];\n            target && target.prototype &&\n                patchFilteredProperties(target.prototype, getOnEventNames(target.prototype), ignoreProperties);\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.io/license\n     */\n    Zone.__load_patch('util', function (global, Zone, api) {\n        // Collect native event names by looking at properties\n        // on the global namespace, e.g. 'onclick'.\n        var eventNames = getOnEventNames(global);\n        api.patchOnProperties = patchOnProperties;\n        api.patchMethod = patchMethod;\n        api.bindArguments = bindArguments;\n        api.patchMacroTask = patchMacroTask;\n        // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to\n        // define which events will not be patched by `Zone.js`.\n        // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep\n        // the name consistent with angular repo.\n        // The  `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for\n        // backwards compatibility.\n        var SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');\n        var SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');\n        if (global[SYMBOL_UNPATCHED_EVENTS]) {\n            global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];\n        }\n        if (global[SYMBOL_BLACK_LISTED_EVENTS]) {\n            Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =\n                global[SYMBOL_BLACK_LISTED_EVENTS];\n        }\n        api.patchEventPrototype = patchEventPrototype;\n        api.patchEventTarget = patchEventTarget;\n        api.isIEOrEdge = isIEOrEdge;\n        api.ObjectDefineProperty = ObjectDefineProperty;\n        api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;\n        api.ObjectCreate = ObjectCreate;\n        api.ArraySlice = ArraySlice;\n        api.patchClass = patchClass;\n        api.wrapWithCurrentZone = wrapWithCurrentZone;\n        api.filterProperties = filterProperties;\n        api.attachOriginToPatched = attachOriginToPatched;\n        api._redefineProperty = Object.defineProperty;\n        api.patchCallbacks = patchCallbacks;\n        api.getGlobalObjects = function () { return ({\n            globalSources: globalSources,\n            zoneSymbolEventNames: zoneSymbolEventNames,\n            eventNames: eventNames,\n            isBrowser: isBrowser,\n            isMix: isMix,\n            isNode: isNode,\n            TRUE_STR: TRUE_STR,\n            FALSE_STR: FALSE_STR,\n            ZONE_SYMBOL_PREFIX: ZONE_SYMBOL_PREFIX,\n            ADD_EVENT_LISTENER_STR: ADD_EVENT_LISTENER_STR,\n            REMOVE_EVENT_LISTENER_STR: REMOVE_EVENT_LISTENER_STR\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.io/license\n     */\n    /*\n     * This is necessary for Chrome and Chrome mobile, to enable\n     * things like redefining `createdCallback` on an element.\n     */\n    var zoneSymbol;\n    var _defineProperty;\n    var _getOwnPropertyDescriptor;\n    var _create;\n    var unconfigurablesKey;\n    function propertyPatch() {\n        zoneSymbol = Zone.__symbol__;\n        _defineProperty = Object[zoneSymbol('defineProperty')] = Object.defineProperty;\n        _getOwnPropertyDescriptor = Object[zoneSymbol('getOwnPropertyDescriptor')] =\n            Object.getOwnPropertyDescriptor;\n        _create = Object.create;\n        unconfigurablesKey = zoneSymbol('unconfigurables');\n        Object.defineProperty = function (obj, prop, desc) {\n            if (isUnconfigurable(obj, prop)) {\n                throw new TypeError('Cannot assign to read only property \\'' + prop + '\\' of ' + obj);\n            }\n            var originalConfigurableFlag = desc.configurable;\n            if (prop !== 'prototype') {\n                desc = rewriteDescriptor(obj, prop, desc);\n            }\n            return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);\n        };\n        Object.defineProperties = function (obj, props) {\n            Object.keys(props).forEach(function (prop) {\n                Object.defineProperty(obj, prop, props[prop]);\n            });\n            for (var _i = 0, _b = Object.getOwnPropertySymbols(props); _i < _b.length; _i++) {\n                var sym = _b[_i];\n                var desc = Object.getOwnPropertyDescriptor(props, sym);\n                // Since `Object.getOwnPropertySymbols` returns *all* symbols,\n                // including non-enumerable ones, retrieve property descriptor and check\n                // enumerability there. Proceed with the rewrite only when a property is\n                // enumerable to make the logic consistent with the way regular\n                // properties are retrieved (via `Object.keys`, which respects\n                // `enumerable: false` flag). More information:\n                // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties#retrieval\n                if (desc === null || desc === void 0 ? void 0 : desc.enumerable) {\n                    Object.defineProperty(obj, sym, props[sym]);\n                }\n            }\n            return obj;\n        };\n        Object.create = function (proto, propertiesObject) {\n            if (typeof propertiesObject === 'object' && !Object.isFrozen(propertiesObject)) {\n                Object.keys(propertiesObject).forEach(function (prop) {\n                    propertiesObject[prop] = rewriteDescriptor(proto, prop, propertiesObject[prop]);\n                });\n            }\n            return _create(proto, propertiesObject);\n        };\n        Object.getOwnPropertyDescriptor = function (obj, prop) {\n            var desc = _getOwnPropertyDescriptor(obj, prop);\n            if (desc && isUnconfigurable(obj, prop)) {\n                desc.configurable = false;\n            }\n            return desc;\n        };\n    }\n    function _redefineProperty(obj, prop, desc) {\n        var originalConfigurableFlag = desc.configurable;\n        desc = rewriteDescriptor(obj, prop, desc);\n        return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);\n    }\n    function isUnconfigurable(obj, prop) {\n        return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];\n    }\n    function rewriteDescriptor(obj, prop, desc) {\n        // issue-927, if the desc is frozen, don't try to change the desc\n        if (!Object.isFrozen(desc)) {\n            desc.configurable = true;\n        }\n        if (!desc.configurable) {\n            // issue-927, if the obj is frozen, don't try to set the desc to obj\n            if (!obj[unconfigurablesKey] && !Object.isFrozen(obj)) {\n                _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });\n            }\n            if (obj[unconfigurablesKey]) {\n                obj[unconfigurablesKey][prop] = true;\n            }\n        }\n        return desc;\n    }\n    function _tryDefineProperty(obj, prop, desc, originalConfigurableFlag) {\n        try {\n            return _defineProperty(obj, prop, desc);\n        }\n        catch (error) {\n            if (desc.configurable) {\n                // In case of errors, when the configurable flag was likely set by rewriteDescriptor(),\n                // let's retry with the original flag value\n                if (typeof originalConfigurableFlag == 'undefined') {\n                    delete desc.configurable;\n                }\n                else {\n                    desc.configurable = originalConfigurableFlag;\n                }\n                try {\n                    return _defineProperty(obj, prop, desc);\n                }\n                catch (error) {\n                    var swallowError = false;\n                    if (prop === 'createdCallback' || prop === 'attachedCallback' ||\n                        prop === 'detachedCallback' || prop === 'attributeChangedCallback') {\n                        // We only swallow the error in registerElement patch\n                        // this is the work around since some applications\n                        // fail if we throw the error\n                        swallowError = true;\n                    }\n                    if (!swallowError) {\n                        throw error;\n                    }\n                    // TODO: @JiaLiPassion, Some application such as `registerElement` patch\n                    // still need to swallow the error, in the future after these applications\n                    // are updated, the following logic can be removed.\n                    var descJson = null;\n                    try {\n                        descJson = JSON.stringify(desc);\n                    }\n                    catch (error) {\n                        descJson = desc.toString();\n                    }\n                    console.log(\"Attempting to configure '\".concat(prop, \"' with descriptor '\").concat(descJson, \"' on object '\").concat(obj, \"' and got error, giving up: \").concat(error));\n                }\n            }\n            else {\n                throw error;\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.io/license\n     */\n    function eventTargetLegacyPatch(_global, api) {\n        var _b = api.getGlobalObjects(), eventNames = _b.eventNames, globalSources = _b.globalSources, zoneSymbolEventNames = _b.zoneSymbolEventNames, TRUE_STR = _b.TRUE_STR, FALSE_STR = _b.FALSE_STR, ZONE_SYMBOL_PREFIX = _b.ZONE_SYMBOL_PREFIX;\n        var WTF_ISSUE_555 = 'Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video';\n        var NO_EVENT_TARGET = 'ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket'\n            .split(',');\n        var EVENT_TARGET = 'EventTarget';\n        var apis = [];\n        var isWtf = _global['wtf'];\n        var WTF_ISSUE_555_ARRAY = WTF_ISSUE_555.split(',');\n        if (isWtf) {\n            // Workaround for: https://github.com/google/tracing-framework/issues/555\n            apis = WTF_ISSUE_555_ARRAY.map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);\n        }\n        else if (_global[EVENT_TARGET]) {\n            apis.push(EVENT_TARGET);\n        }\n        else {\n            // Note: EventTarget is not available in all browsers,\n            // if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget\n            apis = NO_EVENT_TARGET;\n        }\n        var isDisableIECheck = _global['__Zone_disable_IE_check'] || false;\n        var isEnableCrossContextCheck = _global['__Zone_enable_cross_context_check'] || false;\n        var ieOrEdge = api.isIEOrEdge();\n        var ADD_EVENT_LISTENER_SOURCE = '.addEventListener:';\n        var FUNCTION_WRAPPER = '[object FunctionWrapper]';\n        var BROWSER_TOOLS = 'function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }';\n        var pointerEventsMap = {\n            'MSPointerCancel': 'pointercancel',\n            'MSPointerDown': 'pointerdown',\n            'MSPointerEnter': 'pointerenter',\n            'MSPointerHover': 'pointerhover',\n            'MSPointerLeave': 'pointerleave',\n            'MSPointerMove': 'pointermove',\n            'MSPointerOut': 'pointerout',\n            'MSPointerOver': 'pointerover',\n            'MSPointerUp': 'pointerup'\n        };\n        //  predefine all __zone_symbol__ + eventName + true/false string\n        for (var i = 0; i < eventNames.length; i++) {\n            var eventName = eventNames[i];\n            var falseEventName = eventName + FALSE_STR;\n            var trueEventName = eventName + TRUE_STR;\n            var symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n            var symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n            zoneSymbolEventNames[eventName] = {};\n            zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n            zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n        }\n        //  predefine all task.source string\n        for (var i = 0; i < WTF_ISSUE_555_ARRAY.length; i++) {\n            var target = WTF_ISSUE_555_ARRAY[i];\n            var targets = globalSources[target] = {};\n            for (var j = 0; j < eventNames.length; j++) {\n                var eventName = eventNames[j];\n                targets[eventName] = target + ADD_EVENT_LISTENER_SOURCE + eventName;\n            }\n        }\n        var checkIEAndCrossContext = function (nativeDelegate, delegate, target, args) {\n            if (!isDisableIECheck && ieOrEdge) {\n                if (isEnableCrossContextCheck) {\n                    try {\n                        var testString = delegate.toString();\n                        if ((testString === FUNCTION_WRAPPER || testString == BROWSER_TOOLS)) {\n                            nativeDelegate.apply(target, args);\n                            return false;\n                        }\n                    }\n                    catch (error) {\n                        nativeDelegate.apply(target, args);\n                        return false;\n                    }\n                }\n                else {\n                    var testString = delegate.toString();\n                    if ((testString === FUNCTION_WRAPPER || testString == BROWSER_TOOLS)) {\n                        nativeDelegate.apply(target, args);\n                        return false;\n                    }\n                }\n            }\n            else if (isEnableCrossContextCheck) {\n                try {\n                    delegate.toString();\n                }\n                catch (error) {\n                    nativeDelegate.apply(target, args);\n                    return false;\n                }\n            }\n            return true;\n        };\n        var apiTypes = [];\n        for (var i = 0; i < apis.length; i++) {\n            var type = _global[apis[i]];\n            apiTypes.push(type && type.prototype);\n        }\n        // vh is validateHandler to check event handler\n        // is valid or not(for security check)\n        api.patchEventTarget(_global, api, apiTypes, {\n            vh: checkIEAndCrossContext,\n            transferEventName: function (eventName) {\n                var pointerEventName = pointerEventsMap[eventName];\n                return pointerEventName || eventName;\n            }\n        });\n        Zone[api.symbol('patchEventTarget')] = !!_global[EVENT_TARGET];\n        return true;\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.io/license\n     */\n    // we have to patch the instance since the proto is non-configurable\n    function apply(api, _global) {\n        var _b = api.getGlobalObjects(), ADD_EVENT_LISTENER_STR = _b.ADD_EVENT_LISTENER_STR, REMOVE_EVENT_LISTENER_STR = _b.REMOVE_EVENT_LISTENER_STR;\n        var WS = _global.WebSocket;\n        // On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener\n        // On older Chrome, no need since EventTarget was already patched\n        if (!_global.EventTarget) {\n            api.patchEventTarget(_global, api, [WS.prototype]);\n        }\n        _global.WebSocket = function (x, y) {\n            var socket = arguments.length > 1 ? new WS(x, y) : new WS(x);\n            var proxySocket;\n            var proxySocketProto;\n            // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance\n            var onmessageDesc = api.ObjectGetOwnPropertyDescriptor(socket, 'onmessage');\n            if (onmessageDesc && onmessageDesc.configurable === false) {\n                proxySocket = api.ObjectCreate(socket);\n                // socket have own property descriptor 'onopen', 'onmessage', 'onclose', 'onerror'\n                // but proxySocket not, so we will keep socket as prototype and pass it to\n                // patchOnProperties method\n                proxySocketProto = socket;\n                [ADD_EVENT_LISTENER_STR, REMOVE_EVENT_LISTENER_STR, 'send', 'close'].forEach(function (propName) {\n                    proxySocket[propName] = function () {\n                        var args = api.ArraySlice.call(arguments);\n                        if (propName === ADD_EVENT_LISTENER_STR || propName === REMOVE_EVENT_LISTENER_STR) {\n                            var eventName = args.length > 0 ? args[0] : undefined;\n                            if (eventName) {\n                                var propertySymbol = Zone.__symbol__('ON_PROPERTY' + eventName);\n                                socket[propertySymbol] = proxySocket[propertySymbol];\n                            }\n                        }\n                        return socket[propName].apply(socket, args);\n                    };\n                });\n            }\n            else {\n                // we can patch the real socket\n                proxySocket = socket;\n            }\n            api.patchOnProperties(proxySocket, ['close', 'error', 'message', 'open'], proxySocketProto);\n            return proxySocket;\n        };\n        var globalWebSocket = _global['WebSocket'];\n        for (var prop in WS) {\n            globalWebSocket[prop] = WS[prop];\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.io/license\n     */\n    function propertyDescriptorLegacyPatch(api, _global) {\n        var _b = api.getGlobalObjects(), isNode = _b.isNode, isMix = _b.isMix;\n        if (isNode && !isMix) {\n            return;\n        }\n        if (!canPatchViaPropertyDescriptor(api, _global)) {\n            var supportsWebSocket = typeof WebSocket !== 'undefined';\n            // Safari, Android browsers (Jelly Bean)\n            patchViaCapturingAllTheEvents(api);\n            api.patchClass('XMLHttpRequest');\n            if (supportsWebSocket) {\n                apply(api, _global);\n            }\n            Zone[api.symbol('patchEvents')] = true;\n        }\n    }\n    function canPatchViaPropertyDescriptor(api, _global) {\n        var _b = api.getGlobalObjects(), isBrowser = _b.isBrowser, isMix = _b.isMix;\n        if ((isBrowser || isMix) &&\n            !api.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') &&\n            typeof Element !== 'undefined') {\n            // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364\n            // IDL interface attributes are not configurable\n            var desc = api.ObjectGetOwnPropertyDescriptor(Element.prototype, 'onclick');\n            if (desc && !desc.configurable)\n                return false;\n            // try to use onclick to detect whether we can patch via propertyDescriptor\n            // because XMLHttpRequest is not available in service worker\n            if (desc) {\n                api.ObjectDefineProperty(Element.prototype, 'onclick', {\n                    enumerable: true,\n                    configurable: true,\n                    get: function () {\n                        return true;\n                    }\n                });\n                var div = document.createElement('div');\n                var result = !!div.onclick;\n                api.ObjectDefineProperty(Element.prototype, 'onclick', desc);\n                return result;\n            }\n        }\n        var XMLHttpRequest = _global['XMLHttpRequest'];\n        if (!XMLHttpRequest) {\n            // XMLHttpRequest is not available in service worker\n            return false;\n        }\n        var ON_READY_STATE_CHANGE = 'onreadystatechange';\n        var XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n        var xhrDesc = api.ObjectGetOwnPropertyDescriptor(XMLHttpRequestPrototype, ON_READY_STATE_CHANGE);\n        // add enumerable and configurable here because in opera\n        // by default XMLHttpRequest.prototype.onreadystatechange is undefined\n        // without adding enumerable and configurable will cause onreadystatechange\n        // non-configurable\n        // and if XMLHttpRequest.prototype.onreadystatechange is undefined,\n        // we should set a real desc instead a fake one\n        if (xhrDesc) {\n            api.ObjectDefineProperty(XMLHttpRequestPrototype, ON_READY_STATE_CHANGE, {\n                enumerable: true,\n                configurable: true,\n                get: function () {\n                    return true;\n                }\n            });\n            var req = new XMLHttpRequest();\n            var result = !!req.onreadystatechange;\n            // restore original desc\n            api.ObjectDefineProperty(XMLHttpRequestPrototype, ON_READY_STATE_CHANGE, xhrDesc || {});\n            return result;\n        }\n        else {\n            var SYMBOL_FAKE_ONREADYSTATECHANGE_1 = api.symbol('fake');\n            api.ObjectDefineProperty(XMLHttpRequestPrototype, ON_READY_STATE_CHANGE, {\n                enumerable: true,\n                configurable: true,\n                get: function () {\n                    return this[SYMBOL_FAKE_ONREADYSTATECHANGE_1];\n                },\n                set: function (value) {\n                    this[SYMBOL_FAKE_ONREADYSTATECHANGE_1] = value;\n                }\n            });\n            var req = new XMLHttpRequest();\n            var detectFunc = function () { };\n            req.onreadystatechange = detectFunc;\n            var result = req[SYMBOL_FAKE_ONREADYSTATECHANGE_1] === detectFunc;\n            req.onreadystatechange = null;\n            return result;\n        }\n    }\n    var globalEventHandlersEventNames = [\n        'abort',\n        'animationcancel',\n        'animationend',\n        'animationiteration',\n        'auxclick',\n        'beforeinput',\n        'blur',\n        'cancel',\n        'canplay',\n        'canplaythrough',\n        'change',\n        'compositionstart',\n        'compositionupdate',\n        'compositionend',\n        'cuechange',\n        'click',\n        'close',\n        'contextmenu',\n        'curechange',\n        'dblclick',\n        'drag',\n        'dragend',\n        'dragenter',\n        'dragexit',\n        'dragleave',\n        'dragover',\n        'drop',\n        'durationchange',\n        'emptied',\n        'ended',\n        'error',\n        'focus',\n        'focusin',\n        'focusout',\n        'gotpointercapture',\n        'input',\n        'invalid',\n        'keydown',\n        'keypress',\n        'keyup',\n        'load',\n        'loadstart',\n        'loadeddata',\n        'loadedmetadata',\n        'lostpointercapture',\n        'mousedown',\n        'mouseenter',\n        'mouseleave',\n        'mousemove',\n        'mouseout',\n        'mouseover',\n        'mouseup',\n        'mousewheel',\n        'orientationchange',\n        'pause',\n        'play',\n        'playing',\n        'pointercancel',\n        'pointerdown',\n        'pointerenter',\n        'pointerleave',\n        'pointerlockchange',\n        'mozpointerlockchange',\n        'webkitpointerlockerchange',\n        'pointerlockerror',\n        'mozpointerlockerror',\n        'webkitpointerlockerror',\n        'pointermove',\n        'pointout',\n        'pointerover',\n        'pointerup',\n        'progress',\n        'ratechange',\n        'reset',\n        'resize',\n        'scroll',\n        'seeked',\n        'seeking',\n        'select',\n        'selectionchange',\n        'selectstart',\n        'show',\n        'sort',\n        'stalled',\n        'submit',\n        'suspend',\n        'timeupdate',\n        'volumechange',\n        'touchcancel',\n        'touchmove',\n        'touchstart',\n        'touchend',\n        'transitioncancel',\n        'transitionend',\n        'waiting',\n        'wheel'\n    ];\n    var documentEventNames = [\n        'afterscriptexecute', 'beforescriptexecute', 'DOMContentLoaded', 'freeze', 'fullscreenchange',\n        'mozfullscreenchange', 'webkitfullscreenchange', 'msfullscreenchange', 'fullscreenerror',\n        'mozfullscreenerror', 'webkitfullscreenerror', 'msfullscreenerror', 'readystatechange',\n        'visibilitychange', 'resume'\n    ];\n    var windowEventNames = [\n        'absolutedeviceorientation',\n        'afterinput',\n        'afterprint',\n        'appinstalled',\n        'beforeinstallprompt',\n        'beforeprint',\n        'beforeunload',\n        'devicelight',\n        'devicemotion',\n        'deviceorientation',\n        'deviceorientationabsolute',\n        'deviceproximity',\n        'hashchange',\n        'languagechange',\n        'message',\n        'mozbeforepaint',\n        'offline',\n        'online',\n        'paint',\n        'pageshow',\n        'pagehide',\n        'popstate',\n        'rejectionhandled',\n        'storage',\n        'unhandledrejection',\n        'unload',\n        'userproximity',\n        'vrdisplayconnected',\n        'vrdisplaydisconnected',\n        'vrdisplaypresentchange'\n    ];\n    var htmlElementEventNames = [\n        'beforecopy', 'beforecut', 'beforepaste', 'copy', 'cut', 'paste', 'dragstart', 'loadend',\n        'animationstart', 'search', 'transitionrun', 'transitionstart', 'webkitanimationend',\n        'webkitanimationiteration', 'webkitanimationstart', 'webkittransitionend'\n    ];\n    var ieElementEventNames = [\n        'activate',\n        'afterupdate',\n        'ariarequest',\n        'beforeactivate',\n        'beforedeactivate',\n        'beforeeditfocus',\n        'beforeupdate',\n        'cellchange',\n        'controlselect',\n        'dataavailable',\n        'datasetchanged',\n        'datasetcomplete',\n        'errorupdate',\n        'filterchange',\n        'layoutcomplete',\n        'losecapture',\n        'move',\n        'moveend',\n        'movestart',\n        'propertychange',\n        'resizeend',\n        'resizestart',\n        'rowenter',\n        'rowexit',\n        'rowsdelete',\n        'rowsinserted',\n        'command',\n        'compassneedscalibration',\n        'deactivate',\n        'help',\n        'mscontentzoom',\n        'msmanipulationstatechanged',\n        'msgesturechange',\n        'msgesturedoubletap',\n        'msgestureend',\n        'msgesturehold',\n        'msgesturestart',\n        'msgesturetap',\n        'msgotpointercapture',\n        'msinertiastart',\n        'mslostpointercapture',\n        'mspointercancel',\n        'mspointerdown',\n        'mspointerenter',\n        'mspointerhover',\n        'mspointerleave',\n        'mspointermove',\n        'mspointerout',\n        'mspointerover',\n        'mspointerup',\n        'pointerout',\n        'mssitemodejumplistitemremoved',\n        'msthumbnailclick',\n        'stop',\n        'storagecommit'\n    ];\n    var webglEventNames = ['webglcontextrestored', 'webglcontextlost', 'webglcontextcreationerror'];\n    var formEventNames = ['autocomplete', 'autocompleteerror'];\n    var detailEventNames = ['toggle'];\n    var eventNames = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], globalEventHandlersEventNames, true), webglEventNames, true), formEventNames, true), detailEventNames, true), documentEventNames, true), windowEventNames, true), htmlElementEventNames, true), ieElementEventNames, true);\n    // Whenever any eventListener fires, we check the eventListener target and all parents\n    // for `onwhatever` properties and replace them with zone-bound functions\n    // - Chrome (for now)\n    function patchViaCapturingAllTheEvents(api) {\n        var unboundKey = api.symbol('unbound');\n        var _loop_5 = function (i) {\n            var property = eventNames[i];\n            var onproperty = 'on' + property;\n            self.addEventListener(property, function (event) {\n                var elt = event.target, bound, source;\n                if (elt) {\n                    source = elt.constructor['name'] + '.' + onproperty;\n                }\n                else {\n                    source = 'unknown.' + onproperty;\n                }\n                while (elt) {\n                    if (elt[onproperty] && !elt[onproperty][unboundKey]) {\n                        bound = api.wrapWithCurrentZone(elt[onproperty], source);\n                        bound[unboundKey] = elt[onproperty];\n                        elt[onproperty] = bound;\n                    }\n                    elt = elt.parentElement;\n                }\n            }, true);\n        };\n        for (var i = 0; i < eventNames.length; i++) {\n            _loop_5(i);\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.io/license\n     */\n    function registerElementPatch(_global, api) {\n        var _b = api.getGlobalObjects(), isBrowser = _b.isBrowser, isMix = _b.isMix;\n        if ((!isBrowser && !isMix) || !('registerElement' in _global.document)) {\n            return;\n        }\n        var callbacks = ['createdCallback', 'attachedCallback', 'detachedCallback', 'attributeChangedCallback'];\n        api.patchCallbacks(api, document, 'Document', 'registerElement', callbacks);\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.io/license\n     */\n    (function (_global) {\n        var symbolPrefix = _global['__Zone_symbol_prefix'] || '__zone_symbol__';\n        function __symbol__(name) {\n            return symbolPrefix + name;\n        }\n        _global[__symbol__('legacyPatch')] = function () {\n            var Zone = _global['Zone'];\n            Zone.__load_patch('defineProperty', function (global, Zone, api) {\n                api._redefineProperty = _redefineProperty;\n                propertyPatch();\n            });\n            Zone.__load_patch('registerElement', function (global, Zone, api) {\n                registerElementPatch(global, api);\n            });\n            Zone.__load_patch('EventTargetLegacy', function (global, Zone, api) {\n                eventTargetLegacyPatch(global, api);\n                propertyDescriptorLegacyPatch(api, global);\n            });\n        };\n    })(typeof window !== 'undefined' ?\n        window :\n        typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {});\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.io/license\n     */\n    var taskSymbol = zoneSymbol$1('zoneTask');\n    function patchTimer(window, setName, cancelName, nameSuffix) {\n        var setNative = null;\n        var clearNative = null;\n        setName += nameSuffix;\n        cancelName += nameSuffix;\n        var tasksByHandleId = {};\n        function scheduleTask(task) {\n            var data = task.data;\n            data.args[0] = function () {\n                return task.invoke.apply(this, arguments);\n            };\n            data.handleId = setNative.apply(window, data.args);\n            return task;\n        }\n        function clearTask(task) {\n            return clearNative.call(window, task.data.handleId);\n        }\n        setNative =\n            patchMethod(window, setName, function (delegate) { return function (self, args) {\n                if (typeof args[0] === 'function') {\n                    var options_1 = {\n                        isPeriodic: nameSuffix === 'Interval',\n                        delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 :\n                            undefined,\n                        args: args\n                    };\n                    var callback_1 = args[0];\n                    args[0] = function timer() {\n                        try {\n                            return callback_1.apply(this, arguments);\n                        }\n                        finally {\n                            // issue-934, task will be cancelled\n                            // even it is a periodic task such as\n                            // setInterval\n                            // https://github.com/angular/angular/issues/40387\n                            // Cleanup tasksByHandleId should be handled before scheduleTask\n                            // Since some zoneSpec may intercept and doesn't trigger\n                            // scheduleFn(scheduleTask) provided here.\n                            if (!(options_1.isPeriodic)) {\n                                if (typeof options_1.handleId === 'number') {\n                                    // in non-nodejs env, we remove timerId\n                                    // from local cache\n                                    delete tasksByHandleId[options_1.handleId];\n                                }\n                                else if (options_1.handleId) {\n                                    // Node returns complex objects as handleIds\n                                    // we remove task reference from timer object\n                                    options_1.handleId[taskSymbol] = null;\n                                }\n                            }\n                        }\n                    };\n                    var task = scheduleMacroTaskWithCurrentZone(setName, args[0], options_1, scheduleTask, clearTask);\n                    if (!task) {\n                        return task;\n                    }\n                    // Node.js must additionally support the ref and unref functions.\n                    var handle = task.data.handleId;\n                    if (typeof handle === 'number') {\n                        // for non nodejs env, we save handleId: task\n                        // mapping in local cache for clearTimeout\n                        tasksByHandleId[handle] = task;\n                    }\n                    else if (handle) {\n                        // for nodejs env, we save task\n                        // reference in timerId Object for clearTimeout\n                        handle[taskSymbol] = task;\n                    }\n                    // check whether handle is null, because some polyfill or browser\n                    // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame\n                    if (handle && handle.ref && handle.unref && typeof handle.ref === 'function' &&\n                        typeof handle.unref === 'function') {\n                        task.ref = handle.ref.bind(handle);\n                        task.unref = handle.unref.bind(handle);\n                    }\n                    if (typeof handle === 'number' || handle) {\n                        return handle;\n                    }\n                    return task;\n                }\n                else {\n                    // cause an error by calling it directly.\n                    return delegate.apply(window, args);\n                }\n            }; });\n        clearNative =\n            patchMethod(window, cancelName, function (delegate) { return function (self, args) {\n                var id = args[0];\n                var task;\n                if (typeof id === 'number') {\n                    // non nodejs env.\n                    task = tasksByHandleId[id];\n                }\n                else {\n                    // nodejs env.\n                    task = id && id[taskSymbol];\n                    // other environments.\n                    if (!task) {\n                        task = id;\n                    }\n                }\n                if (task && typeof task.type === 'string') {\n                    if (task.state !== 'notScheduled' &&\n                        (task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {\n                        if (typeof id === 'number') {\n                            delete tasksByHandleId[id];\n                        }\n                        else if (id) {\n                            id[taskSymbol] = null;\n                        }\n                        // Do not cancel already canceled functions\n                        task.zone.cancelTask(task);\n                    }\n                }\n                else {\n                    // cause an error by calling it directly.\n                    delegate.apply(window, args);\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.io/license\n     */\n    function patchCustomElements(_global, api) {\n        var _b = api.getGlobalObjects(), isBrowser = _b.isBrowser, isMix = _b.isMix;\n        if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {\n            return;\n        }\n        var callbacks = ['connectedCallback', 'disconnectedCallback', 'adoptedCallback', 'attributeChangedCallback'];\n        api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);\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.io/license\n     */\n    function eventTargetPatch(_global, api) {\n        if (Zone[api.symbol('patchEventTarget')]) {\n            // EventTarget is already patched.\n            return;\n        }\n        var _b = api.getGlobalObjects(), eventNames = _b.eventNames, zoneSymbolEventNames = _b.zoneSymbolEventNames, TRUE_STR = _b.TRUE_STR, FALSE_STR = _b.FALSE_STR, ZONE_SYMBOL_PREFIX = _b.ZONE_SYMBOL_PREFIX;\n        //  predefine all __zone_symbol__ + eventName + true/false string\n        for (var i = 0; i < eventNames.length; i++) {\n            var eventName = eventNames[i];\n            var falseEventName = eventName + FALSE_STR;\n            var trueEventName = eventName + TRUE_STR;\n            var symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n            var symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n            zoneSymbolEventNames[eventName] = {};\n            zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n            zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n        }\n        var EVENT_TARGET = _global['EventTarget'];\n        if (!EVENT_TARGET || !EVENT_TARGET.prototype) {\n            return;\n        }\n        api.patchEventTarget(_global, api, [EVENT_TARGET && EVENT_TARGET.prototype]);\n        return true;\n    }\n    function patchEvent(global, api) {\n        api.patchEventPrototype(global, api);\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.io/license\n     */\n    Zone.__load_patch('legacy', function (global) {\n        var legacyPatch = global[Zone.__symbol__('legacyPatch')];\n        if (legacyPatch) {\n            legacyPatch();\n        }\n    });\n    Zone.__load_patch('queueMicrotask', function (global, Zone, api) {\n        api.patchMethod(global, 'queueMicrotask', function (delegate) {\n            return function (self, args) {\n                Zone.current.scheduleMicroTask('queueMicrotask', args[0]);\n            };\n        });\n    });\n    Zone.__load_patch('timers', function (global) {\n        var set = 'set';\n        var clear = 'clear';\n        patchTimer(global, set, clear, 'Timeout');\n        patchTimer(global, set, clear, 'Interval');\n        patchTimer(global, set, clear, 'Immediate');\n    });\n    Zone.__load_patch('requestAnimationFrame', function (global) {\n        patchTimer(global, 'request', 'cancel', 'AnimationFrame');\n        patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');\n        patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\n    });\n    Zone.__load_patch('blocking', function (global, Zone) {\n        var blockingMethods = ['alert', 'prompt', 'confirm'];\n        for (var i = 0; i < blockingMethods.length; i++) {\n            var name_2 = blockingMethods[i];\n            patchMethod(global, name_2, function (delegate, symbol, name) {\n                return function (s, args) {\n                    return Zone.current.run(delegate, global, args, name);\n                };\n            });\n        }\n    });\n    Zone.__load_patch('EventTarget', function (global, Zone, api) {\n        patchEvent(global, api);\n        eventTargetPatch(global, api);\n        // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener\n        var XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];\n        if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {\n            api.patchEventTarget(global, api, [XMLHttpRequestEventTarget.prototype]);\n        }\n    });\n    Zone.__load_patch('MutationObserver', function (global, Zone, api) {\n        patchClass('MutationObserver');\n        patchClass('WebKitMutationObserver');\n    });\n    Zone.__load_patch('IntersectionObserver', function (global, Zone, api) {\n        patchClass('IntersectionObserver');\n    });\n    Zone.__load_patch('FileReader', function (global, Zone, api) {\n        patchClass('FileReader');\n    });\n    Zone.__load_patch('on_property', function (global, Zone, api) {\n        propertyDescriptorPatch(api, global);\n    });\n    Zone.__load_patch('customElements', function (global, Zone, api) {\n        patchCustomElements(global, api);\n    });\n    Zone.__load_patch('XHR', function (global, Zone) {\n        // Treat XMLHttpRequest as a macrotask.\n        patchXHR(global);\n        var XHR_TASK = zoneSymbol$1('xhrTask');\n        var XHR_SYNC = zoneSymbol$1('xhrSync');\n        var XHR_LISTENER = zoneSymbol$1('xhrListener');\n        var XHR_SCHEDULED = zoneSymbol$1('xhrScheduled');\n        var XHR_URL = zoneSymbol$1('xhrURL');\n        var XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol$1('xhrErrorBeforeScheduled');\n        function patchXHR(window) {\n            var XMLHttpRequest = window['XMLHttpRequest'];\n            if (!XMLHttpRequest) {\n                // XMLHttpRequest is not available in service worker\n                return;\n            }\n            var XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n            function findPendingTask(target) {\n                return target[XHR_TASK];\n            }\n            var oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n            var oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n            if (!oriAddListener) {\n                var XMLHttpRequestEventTarget_1 = window['XMLHttpRequestEventTarget'];\n                if (XMLHttpRequestEventTarget_1) {\n                    var XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget_1.prototype;\n                    oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n                    oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n                }\n            }\n            var READY_STATE_CHANGE = 'readystatechange';\n            var SCHEDULED = 'scheduled';\n            function scheduleTask(task) {\n                var data = task.data;\n                var target = data.target;\n                target[XHR_SCHEDULED] = false;\n                target[XHR_ERROR_BEFORE_SCHEDULED] = false;\n                // remove existing event listener\n                var listener = target[XHR_LISTENER];\n                if (!oriAddListener) {\n                    oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n                    oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n                }\n                if (listener) {\n                    oriRemoveListener.call(target, READY_STATE_CHANGE, listener);\n                }\n                var newListener = target[XHR_LISTENER] = function () {\n                    if (target.readyState === target.DONE) {\n                        // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with\n                        // readyState=4 multiple times, so we need to check task state here\n                        if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {\n                            // check whether the xhr has registered onload listener\n                            // if that is the case, the task should invoke after all\n                            // onload listeners finish.\n                            // Also if the request failed without response (status = 0), the load event handler\n                            // will not be triggered, in that case, we should also invoke the placeholder callback\n                            // to close the XMLHttpRequest::send macroTask.\n                            // https://github.com/angular/angular/issues/38795\n                            var loadTasks = target[Zone.__symbol__('loadfalse')];\n                            if (target.status !== 0 && loadTasks && loadTasks.length > 0) {\n                                var oriInvoke_1 = task.invoke;\n                                task.invoke = function () {\n                                    // need to load the tasks again, because in other\n                                    // load listener, they may remove themselves\n                                    var loadTasks = target[Zone.__symbol__('loadfalse')];\n                                    for (var i = 0; i < loadTasks.length; i++) {\n                                        if (loadTasks[i] === task) {\n                                            loadTasks.splice(i, 1);\n                                        }\n                                    }\n                                    if (!data.aborted && task.state === SCHEDULED) {\n                                        oriInvoke_1.call(task);\n                                    }\n                                };\n                                loadTasks.push(task);\n                            }\n                            else {\n                                task.invoke();\n                            }\n                        }\n                        else if (!data.aborted && target[XHR_SCHEDULED] === false) {\n                            // error occurs when xhr.send()\n                            target[XHR_ERROR_BEFORE_SCHEDULED] = true;\n                        }\n                    }\n                };\n                oriAddListener.call(target, READY_STATE_CHANGE, newListener);\n                var storedTask = target[XHR_TASK];\n                if (!storedTask) {\n                    target[XHR_TASK] = task;\n                }\n                sendNative.apply(target, data.args);\n                target[XHR_SCHEDULED] = true;\n                return task;\n            }\n            function placeholderCallback() { }\n            function clearTask(task) {\n                var data = task.data;\n                // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n                // to prevent it from firing. So instead, we store info for the event listener.\n                data.aborted = true;\n                return abortNative.apply(data.target, data.args);\n            }\n            var openNative = patchMethod(XMLHttpRequestPrototype, 'open', function () { return function (self, args) {\n                self[XHR_SYNC] = args[2] == false;\n                self[XHR_URL] = args[1];\n                return openNative.apply(self, args);\n            }; });\n            var XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';\n            var fetchTaskAborting = zoneSymbol$1('fetchTaskAborting');\n            var fetchTaskScheduling = zoneSymbol$1('fetchTaskScheduling');\n            var sendNative = patchMethod(XMLHttpRequestPrototype, 'send', function () { return function (self, args) {\n                if (Zone.current[fetchTaskScheduling] === true) {\n                    // a fetch is scheduling, so we are using xhr to polyfill fetch\n                    // and because we already schedule macroTask for fetch, we should\n                    // not schedule a macroTask for xhr again\n                    return sendNative.apply(self, args);\n                }\n                if (self[XHR_SYNC]) {\n                    // if the XHR is sync there is no task to schedule, just execute the code.\n                    return sendNative.apply(self, args);\n                }\n                else {\n                    var options = { target: self, url: self[XHR_URL], isPeriodic: false, args: args, aborted: false };\n                    var task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);\n                    if (self && self[XHR_ERROR_BEFORE_SCHEDULED] === true && !options.aborted &&\n                        task.state === SCHEDULED) {\n                        // xhr request throw error when send\n                        // we should invoke task instead of leaving a scheduled\n                        // pending macroTask\n                        task.invoke();\n                    }\n                }\n            }; });\n            var abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', function () { return function (self, args) {\n                var task = findPendingTask(self);\n                if (task && typeof task.type == 'string') {\n                    // If the XHR has already completed, do nothing.\n                    // If the XHR has already been aborted, do nothing.\n                    // Fix #569, call abort multiple times before done will cause\n                    // macroTask task count be negative number\n                    if (task.cancelFn == null || (task.data && task.data.aborted)) {\n                        return;\n                    }\n                    task.zone.cancelTask(task);\n                }\n                else if (Zone.current[fetchTaskAborting] === true) {\n                    // the abort is called from fetch polyfill, we need to call native abort of XHR.\n                    return abortNative.apply(self, args);\n                }\n                // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no\n                // task\n                // to cancel. Do nothing.\n            }; });\n        }\n    });\n    Zone.__load_patch('geolocation', function (global) {\n        /// GEO_LOCATION\n        if (global['navigator'] && global['navigator'].geolocation) {\n            patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);\n        }\n    });\n    Zone.__load_patch('PromiseRejectionEvent', function (global, Zone) {\n        // handle unhandled promise rejection\n        function findPromiseRejectionHandler(evtName) {\n            return function (e) {\n                var eventTasks = findEventTasks(global, evtName);\n                eventTasks.forEach(function (eventTask) {\n                    // windows has added unhandledrejection event listener\n                    // trigger the event listener\n                    var PromiseRejectionEvent = global['PromiseRejectionEvent'];\n                    if (PromiseRejectionEvent) {\n                        var evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });\n                        eventTask.invoke(evt);\n                    }\n                });\n            };\n        }\n        if (global['PromiseRejectionEvent']) {\n            Zone[zoneSymbol$1('unhandledPromiseRejectionHandler')] =\n                findPromiseRejectionHandler('unhandledrejection');\n            Zone[zoneSymbol$1('rejectionHandledHandler')] =\n                findPromiseRejectionHandler('rejectionhandled');\n        }\n    });\n}));\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * An injectable service that produces an animation sequence programmatically within an\n * Angular component or directive.\n * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.\n *\n * @usageNotes\n *\n * To use this service, add it to your component or directive as a dependency.\n * The service is instantiated along with your component.\n *\n * Apps do not typically need to create their own animation players, but if you\n * do need to, follow these steps:\n *\n * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method\n * to create a programmatic animation. The method returns an `AnimationFactory` instance.\n *\n * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.\n *\n * 3. Use the player object to control the animation programmatically.\n *\n * For example:\n *\n * ```ts\n * // import the service from BrowserAnimationsModule\n * import {AnimationBuilder} from '@angular/animations';\n * // require the service as a dependency\n * class MyCmp {\n *   constructor(private _builder: AnimationBuilder) {}\n *\n *   makeAnimation(element: any) {\n *     // first define a reusable animation\n *     const myAnimation = this._builder.build([\n *       style({ width: 0 }),\n *       animate(1000, style({ width: '100px' }))\n *     ]);\n *\n *     // use the returned factory object to create a player\n *     const player = myAnimation.create(element);\n *\n *     player.play();\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass AnimationBuilder {\n}\n/**\n * A factory object returned from the\n * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method.\n *\n * @publicApi\n */\nclass AnimationFactory {\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.io/license\n */\n/**\n * Specifies automatic styling.\n *\n * @publicApi\n */\nconst AUTO_STYLE = '*';\n/**\n * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)\n * and `transition()` entries to be evaluated when the expression\n * bound to the trigger changes.\n *\n * @param name An identifying string.\n * @param definitions  An animation definition object, containing an array of\n * [`state()`](api/animations/state) and `transition()` declarations.\n *\n * @return An object that encapsulates the trigger data.\n *\n * @usageNotes\n * Define an animation trigger in the `animations` section of `@Component` metadata.\n * In the template, reference the trigger by name and bind it to a trigger expression that\n * evaluates to a defined animation state, using the following format:\n *\n * `[@triggerName]=\"expression\"`\n *\n * Animation trigger bindings convert all values to strings, and then match the\n * previous and current values against any linked transitions.\n * Booleans can be specified as `1` or `true` and `0` or `false`.\n *\n * ### Usage Example\n *\n * The following example creates an animation trigger reference based on the provided\n * name value.\n * The provided animation value is expected to be an array consisting of state and\n * transition declarations.\n *\n * ```typescript\n * @Component({\n *   selector: \"my-component\",\n *   templateUrl: \"my-component-tpl.html\",\n *   animations: [\n *     trigger(\"myAnimationTrigger\", [\n *       state(...),\n *       state(...),\n *       transition(...),\n *       transition(...)\n *     ])\n *   ]\n * })\n * class MyComponent {\n *   myStatusExp = \"something\";\n * }\n * ```\n *\n * The template associated with this component makes use of the defined trigger\n * by binding to an element within its template code.\n *\n * ```html\n * <!-- somewhere inside of my-component-tpl.html -->\n * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>\n * ```\n *\n * ### Using an inline function\n * The `transition` animation method also supports reading an inline function which can decide\n * if its associated animation should be run.\n *\n * ```typescript\n * // this method is run each time the `myAnimationTrigger` trigger value changes.\n * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:\n string]: any}): boolean {\n *   // notice that `element` and `params` are also available here\n *   return toState == 'yes-please-animate';\n * }\n *\n * @Component({\n *   selector: 'my-component',\n *   templateUrl: 'my-component-tpl.html',\n *   animations: [\n *     trigger('myAnimationTrigger', [\n *       transition(myInlineMatcherFn, [\n *         // the animation sequence code\n *       ]),\n *     ])\n *   ]\n * })\n * class MyComponent {\n *   myStatusExp = \"yes-please-animate\";\n * }\n * ```\n *\n * ### Disabling Animations\n * When true, the special animation control binding `@.disabled` binding prevents\n * all animations from rendering.\n * Place the  `@.disabled` binding on an element to disable\n * animations on the element itself, as well as any inner animation triggers\n * within the element.\n *\n * The following example shows how to use this feature:\n *\n * ```typescript\n * @Component({\n *   selector: 'my-component',\n *   template: `\n *     <div [@.disabled]=\"isDisabled\">\n *       <div [@childAnimation]=\"exp\"></div>\n *     </div>\n *   `,\n *   animations: [\n *     trigger(\"childAnimation\", [\n *       // ...\n *     ])\n *   ]\n * })\n * class MyComponent {\n *   isDisabled = true;\n *   exp = '...';\n * }\n * ```\n *\n * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,\n * along with any inner animations.\n *\n * ### Disable animations application-wide\n * When an area of the template is set to have animations disabled,\n * **all** inner components have their animations disabled as well.\n * This means that you can disable all animations for an app\n * by placing a host binding set on `@.disabled` on the topmost Angular component.\n *\n * ```typescript\n * import {Component, HostBinding} from '@angular/core';\n *\n * @Component({\n *   selector: 'app-component',\n *   templateUrl: 'app.component.html',\n * })\n * class AppComponent {\n *   @HostBinding('@.disabled')\n *   public animationsDisabled = true;\n * }\n * ```\n *\n * ### Overriding disablement of inner animations\n * Despite inner animations being disabled, a parent animation can `query()`\n * for inner elements located in disabled areas of the template and still animate\n * them if needed. This is also the case for when a sub animation is\n * queried by a parent and then later animated using `animateChild()`.\n *\n * ### Detecting when an animation is disabled\n * If a region of the DOM (or the entire application) has its animations disabled, the animation\n * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides\n * an instance of an `AnimationEvent`. If animations are disabled,\n * the `.disabled` flag on the event is true.\n *\n * @publicApi\n */\nfunction trigger(name, definitions) {\n    return { type: 7 /* AnimationMetadataType.Trigger */, name, definitions, options: {} };\n}\n/**\n * Defines an animation step that combines styling information with timing information.\n *\n * @param timings Sets `AnimateTimings` for the parent animation.\n * A string in the format \"duration [delay] [easing]\".\n *  - Duration and delay are expressed as a number and optional time unit,\n * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.\n * The default unit is milliseconds.\n *  - The easing value controls how the animation accelerates and decelerates\n * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,\n * `ease-in-out`, or a `cubic-bezier()` function call.\n * If not supplied, no easing is applied.\n *\n * For example, the string \"1s 100ms ease-out\" specifies a duration of\n * 1000 milliseconds, and delay of 100 ms, and the \"ease-out\" easing style,\n * which decelerates near the end of the duration.\n * @param styles Sets AnimationStyles for the parent animation.\n * A function call to either `style()` or `keyframes()`\n * that returns a collection of CSS style entries to be applied to the parent animation.\n * When null, uses the styles from the destination state.\n * This is useful when describing an animation step that will complete an animation;\n * see \"Animating to the final state\" in `transitions()`.\n * @returns An object that encapsulates the animation step.\n *\n * @usageNotes\n * Call within an animation `sequence()`, `{@link animations/group group()}`, or\n * `transition()` call to specify an animation step\n * that applies given style data to the parent animation for a given amount of time.\n *\n * ### Syntax Examples\n * **Timing examples**\n *\n * The following examples show various `timings` specifications.\n * - `animate(500)` : Duration is 500 milliseconds.\n * - `animate(\"1s\")` : Duration is 1000 milliseconds.\n * - `animate(\"100ms 0.5s\")` : Duration is 100 milliseconds, delay is 500 milliseconds.\n * - `animate(\"5s ease-in\")` : Duration is 5000 milliseconds, easing in.\n * - `animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\")` : Duration is 5000 milliseconds, delay is 10\n * milliseconds, easing according to a bezier curve.\n *\n * **Style examples**\n *\n * The following example calls `style()` to set a single CSS style.\n * ```typescript\n * animate(500, style({ background: \"red\" }))\n * ```\n * The following example calls `keyframes()` to set a CSS style\n * to different values for successive keyframes.\n * ```typescript\n * animate(500, keyframes(\n *  [\n *   style({ background: \"blue\" }),\n *   style({ background: \"red\" })\n *  ])\n * ```\n *\n * @publicApi\n */\nfunction animate(timings, styles = null) {\n    return { type: 4 /* AnimationMetadataType.Animate */, styles, timings };\n}\n/**\n * @description Defines a list of animation steps to be run in parallel.\n *\n * @param steps An array of animation step objects.\n * - When steps are defined by `style()` or `animate()`\n * function calls, each call within the group is executed instantly.\n * - To specify offset styles to be applied at a later time, define steps with\n * `keyframes()`, or use `animate()` calls with a delay value.\n * For example:\n *\n * ```typescript\n * group([\n *   animate(\"1s\", style({ background: \"black\" })),\n *   animate(\"2s\", style({ color: \"white\" }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the group data.\n *\n * @usageNotes\n * Grouped animations are useful when a series of styles must be\n * animated at different starting times and closed off at different ending times.\n *\n * When called within a `sequence()` or a\n * `transition()` call, does not continue to the next\n * instruction until all of the inner animation steps have completed.\n *\n * @publicApi\n */\nfunction group(steps, options = null) {\n    return { type: 3 /* AnimationMetadataType.Group */, steps, options };\n}\n/**\n * Defines a list of animation steps to be run sequentially, one by one.\n *\n * @param steps An array of animation step objects.\n * - Steps defined by `style()` calls apply the styling data immediately.\n * - Steps defined by `animate()` calls apply the styling data over time\n *   as specified by the timing data.\n *\n * ```typescript\n * sequence([\n *   style({ opacity: 0 }),\n *   animate(\"1s\", style({ opacity: 1 }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the sequence data.\n *\n * @usageNotes\n * When you pass an array of steps to a\n * `transition()` call, the steps run sequentially by default.\n * Compare this to the `{@link animations/group group()}` call, which runs animation steps in\n *parallel.\n *\n * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,\n * execution continues to the next instruction only after each of the inner animation\n * steps have completed.\n *\n * @publicApi\n **/\nfunction sequence(steps, options = null) {\n    return { type: 2 /* AnimationMetadataType.Sequence */, steps, options };\n}\n/**\n * Declares a key/value object containing CSS properties/styles that\n * can then be used for an animation [`state`](api/animations/state), within an animation\n *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.\n *\n * @param tokens A set of CSS styles or HTML styles associated with an animation state.\n * The value can be any of the following:\n * - A key-value style pair associating a CSS property with a value.\n * - An array of key-value style pairs.\n * - An asterisk (*), to use auto-styling, where styles are derived from the element\n * being animated and applied to the animation when it starts.\n *\n * Auto-styling can be used to define a state that depends on layout or other\n * environmental factors.\n *\n * @return An object that encapsulates the style data.\n *\n * @usageNotes\n * The following examples create animation styles that collect a set of\n * CSS property values:\n *\n * ```typescript\n * // string values for CSS properties\n * style({ background: \"red\", color: \"blue\" })\n *\n * // numerical pixel values\n * style({ width: 100, height: 0 })\n * ```\n *\n * The following example uses auto-styling to allow an element to animate from\n * a height of 0 up to its full height:\n *\n * ```\n * style({ height: 0 }),\n * animate(\"1s\", style({ height: \"*\" }))\n * ```\n *\n * @publicApi\n **/\nfunction style(tokens) {\n    return { type: 6 /* AnimationMetadataType.Style */, styles: tokens, offset: null };\n}\n/**\n * Declares an animation state within a trigger attached to an element.\n *\n * @param name One or more names for the defined state in a comma-separated string.\n * The following reserved state names can be supplied to define a style for specific use\n * cases:\n *\n * - `void` You can associate styles with this name to be used when\n * the element is detached from the application. For example, when an `ngIf` evaluates\n * to false, the state of the associated element is void.\n *  - `*` (asterisk) Indicates the default state. You can associate styles with this name\n * to be used as the fallback when the state that is being animated is not declared\n * within the trigger.\n *\n * @param styles A set of CSS styles associated with this state, created using the\n * `style()` function.\n * This set of styles persists on the element once the state has been reached.\n * @param options Parameters that can be passed to the state when it is invoked.\n * 0 or more key-value pairs.\n * @return An object that encapsulates the new state data.\n *\n * @usageNotes\n * Use the `trigger()` function to register states to an animation trigger.\n * Use the `transition()` function to animate between states.\n * When a state is active within a component, its associated styles persist on the element,\n * even when the animation ends.\n *\n * @publicApi\n **/\nfunction state(name, styles, options) {\n    return { type: 0 /* AnimationMetadataType.State */, name, styles, options };\n}\n/**\n * Defines a set of animation styles, associating each style with an optional `offset` value.\n *\n * @param steps A set of animation styles with optional offset data.\n * The optional `offset` value for a style specifies a percentage of the total animation\n * time at which that style is applied.\n * @returns An object that encapsulates the keyframes data.\n *\n * @usageNotes\n * Use with the `animate()` call. Instead of applying animations\n * from the current state\n * to the destination state, keyframes describe how each style entry is applied and at what point\n * within the animation arc.\n * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).\n *\n * ### Usage\n *\n * In the following example, the offset values describe\n * when each `backgroundColor` value is applied. The color is red at the start, and changes to\n * blue when 20% of the total time has elapsed.\n *\n * ```typescript\n * // the provided offset values\n * animate(\"5s\", keyframes([\n *   style({ backgroundColor: \"red\", offset: 0 }),\n *   style({ backgroundColor: \"blue\", offset: 0.2 }),\n *   style({ backgroundColor: \"orange\", offset: 0.3 }),\n *   style({ backgroundColor: \"black\", offset: 1 })\n * ]))\n * ```\n *\n * If there are no `offset` values specified in the style entries, the offsets\n * are calculated automatically.\n *\n * ```typescript\n * animate(\"5s\", keyframes([\n *   style({ backgroundColor: \"red\" }) // offset = 0\n *   style({ backgroundColor: \"blue\" }) // offset = 0.33\n *   style({ backgroundColor: \"orange\" }) // offset = 0.66\n *   style({ backgroundColor: \"black\" }) // offset = 1\n * ]))\n *```\n\n * @publicApi\n */\nfunction keyframes(steps) {\n    return { type: 5 /* AnimationMetadataType.Keyframes */, steps };\n}\n/**\n * Declares an animation transition which is played when a certain specified condition is met.\n *\n * @param stateChangeExpr A string with a specific format or a function that specifies when the\n * animation transition should occur (see [State Change Expression](#state-change-expression)).\n *\n * @param steps One or more animation objects that represent the animation's instructions.\n *\n * @param options An options object that can be used to specify a delay for the animation or provide\n * custom parameters for it.\n *\n * @returns An object that encapsulates the transition data.\n *\n * @usageNotes\n *\n * ### State Change Expression\n *\n * The State Change Expression instructs Angular when to run the transition's animations, it can\n *either be\n *  - a string with a specific syntax\n *  - or a function that compares the previous and current state (value of the expression bound to\n *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise\n *\n * The string format can be:\n *  - `fromState => toState`, which indicates that the transition's animations should occur then the\n *    expression bound to the trigger's element goes from `fromState` to `toState`\n *\n *    _Example:_\n *      ```typescript\n *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))\n *      ```\n *\n *  - `fromState <=> toState`, which indicates that the transition's animations should occur then\n *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa\n *\n *    _Example:_\n *      ```typescript\n *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))\n *      ```\n *\n *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the\n *    element enters or exists the DOM\n *\n *    _Example:_\n *      ```typescript\n *        transition(':enter', [\n *          style({ opacity: 0 }),\n *          animate('500ms', style({ opacity: 1 }))\n *        ])\n *      ```\n *\n *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when\n *    the numerical expression bound to the trigger's element has increased in value or decreased\n *\n *    _Example:_\n *      ```typescript\n *        transition(':increment', query('@counter', animateChild()))\n *      ```\n *\n *  - a sequence of any of the above divided by commas, which indicates that transition's animations\n *    should occur whenever one of the state change expressions matches\n *\n *    _Example:_\n *      ```typescript\n *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([\n *          style({ transform: 'scale(1)', offset: 0}),\n *          style({ transform: 'scale(1.1)', offset: 0.7}),\n *          style({ transform: 'scale(1)', offset: 1})\n *        ]))),\n *      ```\n *\n * Also note that in such context:\n *  - `void` can be used to indicate the absence of the element\n *  - asterisks can be used as wildcards that match any state\n *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is\n *    equivalent to `:leave`)\n *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match\n *    _truthy_ and _falsy_ values)\n *\n * <div class=\"alert is-helpful\">\n *\n *  Be careful about entering end leaving elements as their transitions present a common\n *  pitfall for developers.\n *\n *  Note that when an element with a trigger enters the DOM its `:enter` transition always\n *  gets executed, but its `:leave` transition will not be executed if the element is removed\n *  alongside its parent (as it will be removed \"without warning\" before its transition has\n *  a chance to be executed, the only way that such transition can occur is if the element\n *  is exiting the DOM on its own).\n *\n *\n * </div>\n *\n * ### Animating to a Final State\n *\n * If the final step in a transition is a call to `animate()` that uses a timing value\n * with no `style` data, that step is automatically considered the final animation arc,\n * for the element to reach the final state, in such case Angular automatically adds or removes\n * CSS styles to ensure that the element is in the correct final state.\n *\n *\n * ### Usage Examples\n *\n *  - Transition animations applied based on\n *    the trigger's expression value\n *\n *   ```HTML\n *   <div [@myAnimationTrigger]=\"myStatusExp\">\n *    ...\n *   </div>\n *   ```\n *\n *   ```typescript\n *   trigger(\"myAnimationTrigger\", [\n *     ..., // states\n *     transition(\"on => off, open => closed\", animate(500)),\n *     transition(\"* <=> error\", query('.indicator', animateChild()))\n *   ])\n *   ```\n *\n *  - Transition animations applied based on custom logic dependent\n *    on the trigger's expression value and provided parameters\n *\n *    ```HTML\n *    <div [@myAnimationTrigger]=\"{\n *     value: stepName,\n *     params: { target: currentTarget }\n *    }\">\n *     ...\n *    </div>\n *    ```\n *\n *    ```typescript\n *    trigger(\"myAnimationTrigger\", [\n *      ..., // states\n *      transition(\n *        (fromState, toState, _element, params) =>\n *          ['firststep', 'laststep'].includes(fromState.toLowerCase())\n *          && toState === params?.['target'],\n *        animate('1s')\n *      )\n *    ])\n *    ```\n *\n * @publicApi\n **/\nfunction transition(stateChangeExpr, steps, options = null) {\n    return { type: 1 /* AnimationMetadataType.Transition */, expr: stateChangeExpr, animation: steps, options };\n}\n/**\n * Produces a reusable animation that can be invoked in another animation or sequence,\n * by calling the `useAnimation()` function.\n *\n * @param steps One or more animation objects, as returned by the `animate()`\n * or `sequence()` function, that form a transformation from one state to another.\n * A sequence is used by default when you pass an array.\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional developer-defined parameters.\n * Provided values for additional parameters are used as defaults,\n * and override values can be passed to the caller on invocation.\n * @returns An object that encapsulates the animation data.\n *\n * @usageNotes\n * The following example defines a reusable animation, providing some default parameter\n * values.\n *\n * ```typescript\n * var fadeAnimation = animation([\n *   style({ opacity: '{{ start }}' }),\n *   animate('{{ time }}',\n *   style({ opacity: '{{ end }}'}))\n *   ],\n *   { params: { time: '1000ms', start: 0, end: 1 }});\n * ```\n *\n * The following invokes the defined animation with a call to `useAnimation()`,\n * passing in override parameter values.\n *\n * ```js\n * useAnimation(fadeAnimation, {\n *   params: {\n *     time: '2s',\n *     start: 1,\n *     end: 0\n *   }\n * })\n * ```\n *\n * If any of the passed-in parameter values are missing from this call,\n * the default values are used. If one or more parameter values are missing before a step is\n * animated, `useAnimation()` throws an error.\n *\n * @publicApi\n */\nfunction animation(steps, options = null) {\n    return { type: 8 /* AnimationMetadataType.Reference */, animation: steps, options };\n}\n/**\n * Executes a queried inner animation element within an animation sequence.\n *\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional override values for developer-defined parameters.\n * @return An object that encapsulates the child animation data.\n *\n * @usageNotes\n * Each time an animation is triggered in Angular, the parent animation\n * has priority and any child animations are blocked. In order\n * for a child animation to run, the parent animation must query each of the elements\n * containing child animations, and run them using this function.\n *\n * Note that this feature is designed to be used with `query()` and it will only work\n * with animations that are assigned using the Angular animation library. CSS keyframes\n * and transitions are not handled by this API.\n *\n * @publicApi\n */\nfunction animateChild(options = null) {\n    return { type: 9 /* AnimationMetadataType.AnimateChild */, options };\n}\n/**\n * Starts a reusable animation that is created using the `animation()` function.\n *\n * @param animation The reusable animation to start.\n * @param options An options object that can contain a delay value for the start of\n * the animation, and additional override values for developer-defined parameters.\n * @return An object that contains the animation parameters.\n *\n * @publicApi\n */\nfunction useAnimation(animation, options = null) {\n    return { type: 10 /* AnimationMetadataType.AnimateRef */, animation, options };\n}\n/**\n * Finds one or more inner elements within the current element that is\n * being animated within a sequence. Use with `animate()`.\n *\n * @param selector The element to query, or a set of elements that contain Angular-specific\n * characteristics, specified with one or more of the following tokens.\n *  - `query(\":enter\")` or `query(\":leave\")` : Query for newly inserted/removed elements (not\n *     all elements can be queried via these tokens, see\n *     [Entering and Leaving Elements](#entering-and-leaving-elements))\n *  - `query(\":animating\")` : Query all currently animating elements.\n *  - `query(\"@triggerName\")` : Query elements that contain an animation trigger.\n *  - `query(\"@*\")` : Query all elements that contain an animation triggers.\n *  - `query(\":self\")` : Include the current element into the animation sequence.\n *\n * @param animation One or more animation steps to apply to the queried element or elements.\n * An array is treated as an animation sequence.\n * @param options An options object. Use the 'limit' field to limit the total number of\n * items to collect.\n * @return An object that encapsulates the query data.\n *\n * @usageNotes\n *\n * ### Multiple Tokens\n *\n * Tokens can be merged into a combined query selector string. For example:\n *\n * ```typescript\n *  query(':self, .record:enter, .record:leave, @subTrigger', [...])\n * ```\n *\n * The `query()` function collects multiple elements and works internally by using\n * `element.querySelectorAll`. Use the `limit` field of an options object to limit\n * the total number of items to be collected. For example:\n *\n * ```js\n * query('div', [\n *   animate(...),\n *   animate(...)\n * ], { limit: 1 })\n * ```\n *\n * By default, throws an error when zero items are found. Set the\n * `optional` flag to ignore this error. For example:\n *\n * ```js\n * query('.some-element-that-may-not-be-there', [\n *   animate(...),\n *   animate(...)\n * ], { optional: true })\n * ```\n *\n * ### Entering and Leaving Elements\n *\n * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones\n * that can are those that Angular assumes can enter/leave based on their own logic\n * (if their insertion/removal is simply a consequence of that of their parent they\n * should be queried via a different token in their parent's `:enter`/`:leave` transitions).\n *\n * The only elements Angular assumes can enter/leave based on their own logic (thus the only\n * ones that can be queried via the `:enter` and `:leave` tokens) are:\n *  - Those inserted dynamically (via `ViewContainerRef`)\n *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)\n *\n * <div class=\"alert is-helpful\">\n *\n *  Note that elements will be successfully queried via `:enter`/`:leave` even if their\n *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural\n *  directive (e.g. they enter/exit alongside their parent).\n *\n * </div>\n *\n * <div class=\"alert is-important\">\n *\n *  There is an exception to what previously mentioned, besides elements entering/leaving based on\n *  their own logic, elements with an animation trigger can always be queried via `:leave` when\n * their parent is also leaving.\n *\n * </div>\n *\n * ### Usage Example\n *\n * The following example queries for inner elements and animates them\n * individually using `animate()`.\n *\n * ```typescript\n * @Component({\n *   selector: 'inner',\n *   template: `\n *     <div [@queryAnimation]=\"exp\">\n *       <h1>Title</h1>\n *       <div class=\"content\">\n *         Blah blah blah\n *       </div>\n *     </div>\n *   `,\n *   animations: [\n *    trigger('queryAnimation', [\n *      transition('* => goAnimate', [\n *        // hide the inner elements\n *        query('h1', style({ opacity: 0 })),\n *        query('.content', style({ opacity: 0 })),\n *\n *        // animate the inner elements in, one by one\n *        query('h1', animate(1000, style({ opacity: 1 }))),\n *        query('.content', animate(1000, style({ opacity: 1 }))),\n *      ])\n *    ])\n *  ]\n * })\n * class Cmp {\n *   exp = '';\n *\n *   goAnimate() {\n *     this.exp = 'goAnimate';\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nfunction query(selector, animation, options = null) {\n    return { type: 11 /* AnimationMetadataType.Query */, selector, animation, options };\n}\n/**\n * Use within an animation `query()` call to issue a timing gap after\n * each queried item is animated.\n *\n * @param timings A delay value.\n * @param animation One ore more animation steps.\n * @returns An object that encapsulates the stagger data.\n *\n * @usageNotes\n * In the following example, a container element wraps a list of items stamped out\n * by an `ngFor`. The container element contains an animation trigger that will later be set\n * to query for each of the inner items.\n *\n * Each time items are added, the opacity fade-in animation runs,\n * and each removed item is faded out.\n * When either of these animations occur, the stagger effect is\n * applied after each item's animation is started.\n *\n * ```html\n * <!-- list.component.html -->\n * <button (click)=\"toggle()\">Show / Hide Items</button>\n * <hr />\n * <div [@listAnimation]=\"items.length\">\n *   <div *ngFor=\"let item of items\">\n *     {{ item }}\n *   </div>\n * </div>\n * ```\n *\n * Here is the component code:\n *\n * ```typescript\n * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';\n * @Component({\n *   templateUrl: 'list.component.html',\n *   animations: [\n *     trigger('listAnimation', [\n *     ...\n *     ])\n *   ]\n * })\n * class ListComponent {\n *   items = [];\n *\n *   showItems() {\n *     this.items = [0,1,2,3,4];\n *   }\n *\n *   hideItems() {\n *     this.items = [];\n *   }\n *\n *   toggle() {\n *     this.items.length ? this.hideItems() : this.showItems();\n *    }\n *  }\n * ```\n *\n * Here is the animation trigger code:\n *\n * ```typescript\n * trigger('listAnimation', [\n *   transition('* => *', [ // each time the binding value changes\n *     query(':leave', [\n *       stagger(100, [\n *         animate('0.5s', style({ opacity: 0 }))\n *       ])\n *     ]),\n *     query(':enter', [\n *       style({ opacity: 0 }),\n *       stagger(100, [\n *         animate('0.5s', style({ opacity: 1 }))\n *       ])\n *     ])\n *   ])\n * ])\n * ```\n *\n * @publicApi\n */\nfunction stagger(timings, animation) {\n    return { type: 12 /* AnimationMetadataType.Stagger */, timings, animation };\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.io/license\n */\nfunction scheduleMicroTask(cb) {\n    Promise.resolve().then(cb);\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.io/license\n */\n/**\n * An empty programmatic controller for reusable animations.\n * Used internally when animations are disabled, to avoid\n * checking for the null case when an animation player is expected.\n *\n * @see `animate()`\n * @see `AnimationPlayer`\n * @see `GroupPlayer`\n *\n * @publicApi\n */\nclass NoopAnimationPlayer {\n    constructor(duration = 0, delay = 0) {\n        this._onDoneFns = [];\n        this._onStartFns = [];\n        this._onDestroyFns = [];\n        this._originalOnDoneFns = [];\n        this._originalOnStartFns = [];\n        this._started = false;\n        this._destroyed = false;\n        this._finished = false;\n        this._position = 0;\n        this.parentPlayer = null;\n        this.totalTime = duration + delay;\n    }\n    _onFinish() {\n        if (!this._finished) {\n            this._finished = true;\n            this._onDoneFns.forEach(fn => fn());\n            this._onDoneFns = [];\n        }\n    }\n    onStart(fn) {\n        this._originalOnStartFns.push(fn);\n        this._onStartFns.push(fn);\n    }\n    onDone(fn) {\n        this._originalOnDoneFns.push(fn);\n        this._onDoneFns.push(fn);\n    }\n    onDestroy(fn) {\n        this._onDestroyFns.push(fn);\n    }\n    hasStarted() {\n        return this._started;\n    }\n    init() { }\n    play() {\n        if (!this.hasStarted()) {\n            this._onStart();\n            this.triggerMicrotask();\n        }\n        this._started = true;\n    }\n    /** @internal */\n    triggerMicrotask() {\n        scheduleMicroTask(() => this._onFinish());\n    }\n    _onStart() {\n        this._onStartFns.forEach(fn => fn());\n        this._onStartFns = [];\n    }\n    pause() { }\n    restart() { }\n    finish() {\n        this._onFinish();\n    }\n    destroy() {\n        if (!this._destroyed) {\n            this._destroyed = true;\n            if (!this.hasStarted()) {\n                this._onStart();\n            }\n            this.finish();\n            this._onDestroyFns.forEach(fn => fn());\n            this._onDestroyFns = [];\n        }\n    }\n    reset() {\n        this._started = false;\n        this._finished = false;\n        this._onStartFns = this._originalOnStartFns;\n        this._onDoneFns = this._originalOnDoneFns;\n    }\n    setPosition(position) {\n        this._position = this.totalTime ? position * this.totalTime : 1;\n    }\n    getPosition() {\n        return this.totalTime ? this._position / this.totalTime : 1;\n    }\n    /** @internal */\n    triggerCallback(phaseName) {\n        const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n        methods.forEach(fn => fn());\n        methods.length = 0;\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.io/license\n */\n/**\n * A programmatic controller for a group of reusable animations.\n * Used internally to control animations.\n *\n * @see `AnimationPlayer`\n * @see `{@link animations/group group()}`\n *\n */\nclass AnimationGroupPlayer {\n    constructor(_players) {\n        this._onDoneFns = [];\n        this._onStartFns = [];\n        this._finished = false;\n        this._started = false;\n        this._destroyed = false;\n        this._onDestroyFns = [];\n        this.parentPlayer = null;\n        this.totalTime = 0;\n        this.players = _players;\n        let doneCount = 0;\n        let destroyCount = 0;\n        let startCount = 0;\n        const total = this.players.length;\n        if (total == 0) {\n            scheduleMicroTask(() => this._onFinish());\n        }\n        else {\n            this.players.forEach(player => {\n                player.onDone(() => {\n                    if (++doneCount == total) {\n                        this._onFinish();\n                    }\n                });\n                player.onDestroy(() => {\n                    if (++destroyCount == total) {\n                        this._onDestroy();\n                    }\n                });\n                player.onStart(() => {\n                    if (++startCount == total) {\n                        this._onStart();\n                    }\n                });\n            });\n        }\n        this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);\n    }\n    _onFinish() {\n        if (!this._finished) {\n            this._finished = true;\n            this._onDoneFns.forEach(fn => fn());\n            this._onDoneFns = [];\n        }\n    }\n    init() {\n        this.players.forEach(player => player.init());\n    }\n    onStart(fn) {\n        this._onStartFns.push(fn);\n    }\n    _onStart() {\n        if (!this.hasStarted()) {\n            this._started = true;\n            this._onStartFns.forEach(fn => fn());\n            this._onStartFns = [];\n        }\n    }\n    onDone(fn) {\n        this._onDoneFns.push(fn);\n    }\n    onDestroy(fn) {\n        this._onDestroyFns.push(fn);\n    }\n    hasStarted() {\n        return this._started;\n    }\n    play() {\n        if (!this.parentPlayer) {\n            this.init();\n        }\n        this._onStart();\n        this.players.forEach(player => player.play());\n    }\n    pause() {\n        this.players.forEach(player => player.pause());\n    }\n    restart() {\n        this.players.forEach(player => player.restart());\n    }\n    finish() {\n        this._onFinish();\n        this.players.forEach(player => player.finish());\n    }\n    destroy() {\n        this._onDestroy();\n    }\n    _onDestroy() {\n        if (!this._destroyed) {\n            this._destroyed = true;\n            this._onFinish();\n            this.players.forEach(player => player.destroy());\n            this._onDestroyFns.forEach(fn => fn());\n            this._onDestroyFns = [];\n        }\n    }\n    reset() {\n        this.players.forEach(player => player.reset());\n        this._destroyed = false;\n        this._finished = false;\n        this._started = false;\n    }\n    setPosition(p) {\n        const timeAtPosition = p * this.totalTime;\n        this.players.forEach(player => {\n            const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;\n            player.setPosition(position);\n        });\n    }\n    getPosition() {\n        const longestPlayer = this.players.reduce((longestSoFar, player) => {\n            const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;\n            return newPlayerIsLongest ? player : longestSoFar;\n        }, null);\n        return longestPlayer != null ? longestPlayer.getPosition() : 0;\n    }\n    beforeDestroy() {\n        this.players.forEach(player => {\n            if (player.beforeDestroy) {\n                player.beforeDestroy();\n            }\n        });\n    }\n    /** @internal */\n    triggerCallback(phaseName) {\n        const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n        methods.forEach(fn => fn());\n        methods.length = 0;\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.io/license\n */\nconst ɵPRE_STYLE = '!';\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.io/license\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AUTO_STYLE, AnimationBuilder, AnimationFactory, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, APP_ID, Injectable, Inject, QueryList, Directive, Input, InjectionToken, Optional, EventEmitter, Output, NgModule } from '@angular/core';\nimport * as i1 from '@angular/cdk/platform';\nimport { _getFocusedElementPierceShadowDom, normalizePassiveListenerOptions, _getEventTarget, _getShadowRoot } from '@angular/cdk/platform';\nimport { Subject, Subscription, BehaviorSubject, of } from 'rxjs';\nimport { hasModifierKey, A, Z, ZERO, NINE, END, HOME, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, TAB, ALT, CONTROL, MAC_META, META, SHIFT } from '@angular/cdk/keycodes';\nimport { tap, debounceTime, filter, map, take, skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport { coerceBooleanProperty, coerceElement } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport { BreakpointObserver } from '@angular/cdk/layout';\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.io/license\n */\n/** IDs are delimited by an empty space, as per the spec. */\nconst ID_DELIMITER = ' ';\n/**\n * Adds the given ID to the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction addAriaReferencedId(el, attr, id) {\n    const ids = getAriaReferenceIds(el, attr);\n    if (ids.some(existingId => existingId.trim() == id.trim())) {\n        return;\n    }\n    ids.push(id.trim());\n    el.setAttribute(attr, ids.join(ID_DELIMITER));\n}\n/**\n * Removes the given ID from the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction removeAriaReferencedId(el, attr, id) {\n    const ids = getAriaReferenceIds(el, attr);\n    const filteredIds = ids.filter(val => val != id.trim());\n    if (filteredIds.length) {\n        el.setAttribute(attr, filteredIds.join(ID_DELIMITER));\n    }\n    else {\n        el.removeAttribute(attr);\n    }\n}\n/**\n * Gets the list of IDs referenced by the given ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction getAriaReferenceIds(el, attr) {\n    // Get string array of all individual ids (whitespace delimited) in the attribute value\n    return (el.getAttribute(attr) || '').match(/\\S+/g) || [];\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.io/license\n */\n/**\n * ID used for the body container where all messages are appended.\n * @deprecated No longer being used. To be removed.\n * @breaking-change 14.0.0\n */\nconst MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';\n/**\n * ID prefix used for each created message element.\n * @deprecated To be turned into a private variable.\n * @breaking-change 14.0.0\n */\nconst CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';\n/**\n * Attribute given to each host element that is described by a message element.\n * @deprecated To be turned into a private variable.\n * @breaking-change 14.0.0\n */\nconst CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';\n/** Global incremental identifier for each registered message element. */\nlet nextId = 0;\n/**\n * Utility that creates visually hidden elements with a message content. Useful for elements that\n * want to use aria-describedby to further describe themselves without adding additional visual\n * content.\n */\nclass AriaDescriber {\n    constructor(_document, \n    /**\n     * @deprecated To be turned into a required parameter.\n     * @breaking-change 14.0.0\n     */\n    _platform) {\n        this._platform = _platform;\n        /** Map of all registered message elements that have been placed into the document. */\n        this._messageRegistry = new Map();\n        /** Container for all registered messages. */\n        this._messagesContainer = null;\n        /** Unique ID for the service. */\n        this._id = `${nextId++}`;\n        this._document = _document;\n        this._id = inject(APP_ID) + '-' + nextId++;\n    }\n    describe(hostElement, message, role) {\n        if (!this._canBeDescribed(hostElement, message)) {\n            return;\n        }\n        const key = getKey(message, role);\n        if (typeof message !== 'string') {\n            // We need to ensure that the element has an ID.\n            setMessageId(message, this._id);\n            this._messageRegistry.set(key, { messageElement: message, referenceCount: 0 });\n        }\n        else if (!this._messageRegistry.has(key)) {\n            this._createMessageElement(message, role);\n        }\n        if (!this._isElementDescribedByMessage(hostElement, key)) {\n            this._addMessageReference(hostElement, key);\n        }\n    }\n    removeDescription(hostElement, message, role) {\n        if (!message || !this._isElementNode(hostElement)) {\n            return;\n        }\n        const key = getKey(message, role);\n        if (this._isElementDescribedByMessage(hostElement, key)) {\n            this._removeMessageReference(hostElement, key);\n        }\n        // If the message is a string, it means that it's one that we created for the\n        // consumer so we can remove it safely, otherwise we should leave it in place.\n        if (typeof message === 'string') {\n            const registeredMessage = this._messageRegistry.get(key);\n            if (registeredMessage && registeredMessage.referenceCount === 0) {\n                this._deleteMessageElement(key);\n            }\n        }\n        if (this._messagesContainer?.childNodes.length === 0) {\n            this._messagesContainer.remove();\n            this._messagesContainer = null;\n        }\n    }\n    /** Unregisters all created message elements and removes the message container. */\n    ngOnDestroy() {\n        const describedElements = this._document.querySelectorAll(`[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}=\"${this._id}\"]`);\n        for (let i = 0; i < describedElements.length; i++) {\n            this._removeCdkDescribedByReferenceIds(describedElements[i]);\n            describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n        }\n        this._messagesContainer?.remove();\n        this._messagesContainer = null;\n        this._messageRegistry.clear();\n    }\n    /**\n     * Creates a new element in the visually hidden message container element with the message\n     * as its content and adds it to the message registry.\n     */\n    _createMessageElement(message, role) {\n        const messageElement = this._document.createElement('div');\n        setMessageId(messageElement, this._id);\n        messageElement.textContent = message;\n        if (role) {\n            messageElement.setAttribute('role', role);\n        }\n        this._createMessagesContainer();\n        this._messagesContainer.appendChild(messageElement);\n        this._messageRegistry.set(getKey(message, role), { messageElement, referenceCount: 0 });\n    }\n    /** Deletes the message element from the global messages container. */\n    _deleteMessageElement(key) {\n        this._messageRegistry.get(key)?.messageElement?.remove();\n        this._messageRegistry.delete(key);\n    }\n    /** Creates the global container for all aria-describedby messages. */\n    _createMessagesContainer() {\n        if (this._messagesContainer) {\n            return;\n        }\n        const containerClassName = 'cdk-describedby-message-container';\n        const serverContainers = this._document.querySelectorAll(`.${containerClassName}[platform=\"server\"]`);\n        for (let i = 0; i < serverContainers.length; i++) {\n            // When going from the server to the client, we may end up in a situation where there's\n            // already a container on the page, but we don't have a reference to it. Clear the\n            // old container so we don't get duplicates. Doing this, instead of emptying the previous\n            // container, should be slightly faster.\n            serverContainers[i].remove();\n        }\n        const messagesContainer = this._document.createElement('div');\n        // We add `visibility: hidden` in order to prevent text in this container from\n        // being searchable by the browser's Ctrl + F functionality.\n        // Screen-readers will still read the description for elements with aria-describedby even\n        // when the description element is not visible.\n        messagesContainer.style.visibility = 'hidden';\n        // Even though we use `visibility: hidden`, we still apply `cdk-visually-hidden` so that\n        // the description element doesn't impact page layout.\n        messagesContainer.classList.add(containerClassName);\n        messagesContainer.classList.add('cdk-visually-hidden');\n        // @breaking-change 14.0.0 Remove null check for `_platform`.\n        if (this._platform && !this._platform.isBrowser) {\n            messagesContainer.setAttribute('platform', 'server');\n        }\n        this._document.body.appendChild(messagesContainer);\n        this._messagesContainer = messagesContainer;\n    }\n    /** Removes all cdk-describedby messages that are hosted through the element. */\n    _removeCdkDescribedByReferenceIds(element) {\n        // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX\n        const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);\n        element.setAttribute('aria-describedby', originalReferenceIds.join(' '));\n    }\n    /**\n     * Adds a message reference to the element using aria-describedby and increments the registered\n     * message's reference count.\n     */\n    _addMessageReference(element, key) {\n        const registeredMessage = this._messageRegistry.get(key);\n        // Add the aria-describedby reference and set the\n        // describedby_host attribute to mark the element.\n        addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n        element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, this._id);\n        registeredMessage.referenceCount++;\n    }\n    /**\n     * Removes a message reference from the element using aria-describedby\n     * and decrements the registered message's reference count.\n     */\n    _removeMessageReference(element, key) {\n        const registeredMessage = this._messageRegistry.get(key);\n        registeredMessage.referenceCount--;\n        removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n        element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n    }\n    /** Returns true if the element has been described by the provided message ID. */\n    _isElementDescribedByMessage(element, key) {\n        const referenceIds = getAriaReferenceIds(element, 'aria-describedby');\n        const registeredMessage = this._messageRegistry.get(key);\n        const messageId = registeredMessage && registeredMessage.messageElement.id;\n        return !!messageId && referenceIds.indexOf(messageId) != -1;\n    }\n    /** Determines whether a message can be described on a particular element. */\n    _canBeDescribed(element, message) {\n        if (!this._isElementNode(element)) {\n            return false;\n        }\n        if (message && typeof message === 'object') {\n            // We'd have to make some assumptions about the description element's text, if the consumer\n            // passed in an element. Assume that if an element is passed in, the consumer has verified\n            // that it can be used as a description.\n            return true;\n        }\n        const trimmedMessage = message == null ? '' : `${message}`.trim();\n        const ariaLabel = element.getAttribute('aria-label');\n        // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the\n        // element, because screen readers will end up reading out the same text twice in a row.\n        return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;\n    }\n    /** Checks whether a node is an Element node. */\n    _isElementNode(element) {\n        return element.nodeType === this._document.ELEMENT_NODE;\n    }\n}\nAriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nAriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: AriaDescriber, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: AriaDescriber, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1.Platform }]; } });\n/** Gets a key that can be used to look messages up in the registry. */\nfunction getKey(message, role) {\n    return typeof message === 'string' ? `${role || ''}/${message}` : message;\n}\n/** Assigns a unique ID to an element, if it doesn't have one already. */\nfunction setMessageId(element, serviceId) {\n    if (!element.id) {\n        element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`;\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.io/license\n */\n/**\n * This class manages keyboard events for selectable lists. If you pass it a query list\n * of items, it will set the active item correctly when arrow events occur.\n */\nclass ListKeyManager {\n    constructor(_items) {\n        this._items = _items;\n        this._activeItemIndex = -1;\n        this._activeItem = null;\n        this._wrap = false;\n        this._letterKeyStream = new Subject();\n        this._typeaheadSubscription = Subscription.EMPTY;\n        this._vertical = true;\n        this._allowedModifierKeys = [];\n        this._homeAndEnd = false;\n        /**\n         * Predicate function that can be used to check whether an item should be skipped\n         * by the key manager. By default, disabled items are skipped.\n         */\n        this._skipPredicateFn = (item) => item.disabled;\n        // Buffer for the letters that the user has pressed when the typeahead option is turned on.\n        this._pressedLetters = [];\n        /**\n         * Stream that emits any time the TAB key is pressed, so components can react\n         * when focus is shifted off of the list.\n         */\n        this.tabOut = new Subject();\n        /** Stream that emits whenever the active item of the list manager changes. */\n        this.change = new Subject();\n        // We allow for the items to be an array because, in some cases, the consumer may\n        // not have access to a QueryList of the items they want to manage (e.g. when the\n        // items aren't being collected via `ViewChildren` or `ContentChildren`).\n        if (_items instanceof QueryList) {\n            _items.changes.subscribe((newItems) => {\n                if (this._activeItem) {\n                    const itemArray = newItems.toArray();\n                    const newIndex = itemArray.indexOf(this._activeItem);\n                    if (newIndex > -1 && newIndex !== this._activeItemIndex) {\n                        this._activeItemIndex = newIndex;\n                    }\n                }\n            });\n        }\n    }\n    /**\n     * Sets the predicate function that determines which items should be skipped by the\n     * list key manager.\n     * @param predicate Function that determines whether the given item should be skipped.\n     */\n    skipPredicate(predicate) {\n        this._skipPredicateFn = predicate;\n        return this;\n    }\n    /**\n     * Configures wrapping mode, which determines whether the active item will wrap to\n     * the other end of list when there are no more items in the given direction.\n     * @param shouldWrap Whether the list should wrap when reaching the end.\n     */\n    withWrap(shouldWrap = true) {\n        this._wrap = shouldWrap;\n        return this;\n    }\n    /**\n     * Configures whether the key manager should be able to move the selection vertically.\n     * @param enabled Whether vertical selection should be enabled.\n     */\n    withVerticalOrientation(enabled = true) {\n        this._vertical = enabled;\n        return this;\n    }\n    /**\n     * Configures the key manager to move the selection horizontally.\n     * Passing in `null` will disable horizontal movement.\n     * @param direction Direction in which the selection can be moved.\n     */\n    withHorizontalOrientation(direction) {\n        this._horizontal = direction;\n        return this;\n    }\n    /**\n     * Modifier keys which are allowed to be held down and whose default actions will be prevented\n     * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.\n     */\n    withAllowedModifierKeys(keys) {\n        this._allowedModifierKeys = keys;\n        return this;\n    }\n    /**\n     * Turns on typeahead mode which allows users to set the active item by typing.\n     * @param debounceInterval Time to wait after the last keystroke before setting the active item.\n     */\n    withTypeAhead(debounceInterval = 200) {\n        if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n            this._items.length &&\n            this._items.some(item => typeof item.getLabel !== 'function')) {\n            throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');\n        }\n        this._typeaheadSubscription.unsubscribe();\n        // Debounce the presses of non-navigational keys, collect the ones that correspond to letters\n        // and convert those letters back into a string. Afterwards find the first item that starts\n        // with that string and select it.\n        this._typeaheadSubscription = this._letterKeyStream\n            .pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join('')))\n            .subscribe(inputString => {\n            const items = this._getItemsArray();\n            // Start at 1 because we want to start searching at the item immediately\n            // following the current active item.\n            for (let i = 1; i < items.length + 1; i++) {\n                const index = (this._activeItemIndex + i) % items.length;\n                const item = items[index];\n                if (!this._skipPredicateFn(item) &&\n                    item.getLabel().toUpperCase().trim().indexOf(inputString) === 0) {\n                    this.setActiveItem(index);\n                    break;\n                }\n            }\n            this._pressedLetters = [];\n        });\n        return this;\n    }\n    /**\n     * Configures the key manager to activate the first and last items\n     * respectively when the Home or End key is pressed.\n     * @param enabled Whether pressing the Home or End key activates the first/last item.\n     */\n    withHomeAndEnd(enabled = true) {\n        this._homeAndEnd = enabled;\n        return this;\n    }\n    setActiveItem(item) {\n        const previousActiveItem = this._activeItem;\n        this.updateActiveItem(item);\n        if (this._activeItem !== previousActiveItem) {\n            this.change.next(this._activeItemIndex);\n        }\n    }\n    /**\n     * Sets the active item depending on the key event passed in.\n     * @param event Keyboard event to be used for determining which element should be active.\n     */\n    onKeydown(event) {\n        const keyCode = event.keyCode;\n        const modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];\n        const isModifierAllowed = modifiers.every(modifier => {\n            return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;\n        });\n        switch (keyCode) {\n            case TAB:\n                this.tabOut.next();\n                return;\n            case DOWN_ARROW:\n                if (this._vertical && isModifierAllowed) {\n                    this.setNextItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            case UP_ARROW:\n                if (this._vertical && isModifierAllowed) {\n                    this.setPreviousItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            case RIGHT_ARROW:\n                if (this._horizontal && isModifierAllowed) {\n                    this._horizontal === 'rtl' ? this.setPreviousItemActive() : this.setNextItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            case LEFT_ARROW:\n                if (this._horizontal && isModifierAllowed) {\n                    this._horizontal === 'rtl' ? this.setNextItemActive() : this.setPreviousItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            case HOME:\n                if (this._homeAndEnd && isModifierAllowed) {\n                    this.setFirstItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            case END:\n                if (this._homeAndEnd && isModifierAllowed) {\n                    this.setLastItemActive();\n                    break;\n                }\n                else {\n                    return;\n                }\n            default:\n                if (isModifierAllowed || hasModifierKey(event, 'shiftKey')) {\n                    // Attempt to use the `event.key` which also maps it to the user's keyboard language,\n                    // otherwise fall back to resolving alphanumeric characters via the keyCode.\n                    if (event.key && event.key.length === 1) {\n                        this._letterKeyStream.next(event.key.toLocaleUpperCase());\n                    }\n                    else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {\n                        this._letterKeyStream.next(String.fromCharCode(keyCode));\n                    }\n                }\n                // Note that we return here, in order to avoid preventing\n                // the default action of non-navigational keys.\n                return;\n        }\n        this._pressedLetters = [];\n        event.preventDefault();\n    }\n    /** Index of the currently active item. */\n    get activeItemIndex() {\n        return this._activeItemIndex;\n    }\n    /** The active item. */\n    get activeItem() {\n        return this._activeItem;\n    }\n    /** Gets whether the user is currently typing into the manager using the typeahead feature. */\n    isTyping() {\n        return this._pressedLetters.length > 0;\n    }\n    /** Sets the active item to the first enabled item in the list. */\n    setFirstItemActive() {\n        this._setActiveItemByIndex(0, 1);\n    }\n    /** Sets the active item to the last enabled item in the list. */\n    setLastItemActive() {\n        this._setActiveItemByIndex(this._items.length - 1, -1);\n    }\n    /** Sets the active item to the next enabled item in the list. */\n    setNextItemActive() {\n        this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);\n    }\n    /** Sets the active item to a previous enabled item in the list. */\n    setPreviousItemActive() {\n        this._activeItemIndex < 0 && this._wrap\n            ? this.setLastItemActive()\n            : this._setActiveItemByDelta(-1);\n    }\n    updateActiveItem(item) {\n        const itemArray = this._getItemsArray();\n        const index = typeof item === 'number' ? item : itemArray.indexOf(item);\n        const activeItem = itemArray[index];\n        // Explicitly check for `null` and `undefined` because other falsy values are valid.\n        this._activeItem = activeItem == null ? null : activeItem;\n        this._activeItemIndex = index;\n    }\n    /**\n     * This method sets the active item, given a list of items and the delta between the\n     * currently active item and the new active item. It will calculate differently\n     * depending on whether wrap mode is turned on.\n     */\n    _setActiveItemByDelta(delta) {\n        this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);\n    }\n    /**\n     * Sets the active item properly given \"wrap\" mode. In other words, it will continue to move\n     * down the list until it finds an item that is not disabled, and it will wrap if it\n     * encounters either end of the list.\n     */\n    _setActiveInWrapMode(delta) {\n        const items = this._getItemsArray();\n        for (let i = 1; i <= items.length; i++) {\n            const index = (this._activeItemIndex + delta * i + items.length) % items.length;\n            const item = items[index];\n            if (!this._skipPredicateFn(item)) {\n                this.setActiveItem(index);\n                return;\n            }\n        }\n    }\n    /**\n     * Sets the active item properly given the default mode. In other words, it will\n     * continue to move down the list until it finds an item that is not disabled. If\n     * it encounters either end of the list, it will stop and not wrap.\n     */\n    _setActiveInDefaultMode(delta) {\n        this._setActiveItemByIndex(this._activeItemIndex + delta, delta);\n    }\n    /**\n     * Sets the active item to the first enabled item starting at the index specified. If the\n     * item is disabled, it will move in the fallbackDelta direction until it either\n     * finds an enabled item or encounters the end of the list.\n     */\n    _setActiveItemByIndex(index, fallbackDelta) {\n        const items = this._getItemsArray();\n        if (!items[index]) {\n            return;\n        }\n        while (this._skipPredicateFn(items[index])) {\n            index += fallbackDelta;\n            if (!items[index]) {\n                return;\n            }\n        }\n        this.setActiveItem(index);\n    }\n    /** Returns the items as an array. */\n    _getItemsArray() {\n        return this._items instanceof QueryList ? this._items.toArray() : this._items;\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.io/license\n */\nclass ActiveDescendantKeyManager extends ListKeyManager {\n    setActiveItem(index) {\n        if (this.activeItem) {\n            this.activeItem.setInactiveStyles();\n        }\n        super.setActiveItem(index);\n        if (this.activeItem) {\n            this.activeItem.setActiveStyles();\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.io/license\n */\nclass FocusKeyManager extends ListKeyManager {\n    constructor() {\n        super(...arguments);\n        this._origin = 'program';\n    }\n    /**\n     * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.\n     * @param origin Focus origin to be used when focusing items.\n     */\n    setFocusOrigin(origin) {\n        this._origin = origin;\n        return this;\n    }\n    setActiveItem(item) {\n        super.setActiveItem(item);\n        if (this.activeItem) {\n            this.activeItem.focus(this._origin);\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.io/license\n */\n/**\n * Configuration for the isFocusable method.\n */\nclass IsFocusableConfig {\n    constructor() {\n        /**\n         * Whether to count an element as focusable even if it is not currently visible.\n         */\n        this.ignoreVisibility = false;\n    }\n}\n// The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n// Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n// supported.\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\nclass InteractivityChecker {\n    constructor(_platform) {\n        this._platform = _platform;\n    }\n    /**\n     * Gets whether an element is disabled.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is disabled.\n     */\n    isDisabled(element) {\n        // This does not capture some cases, such as a non-form control with a disabled attribute or\n        // a form control inside of a disabled form, but should capture the most common cases.\n        return element.hasAttribute('disabled');\n    }\n    /**\n     * Gets whether an element is visible for the purposes of interactivity.\n     *\n     * This will capture states like `display: none` and `visibility: hidden`, but not things like\n     * being clipped by an `overflow: hidden` parent or being outside the viewport.\n     *\n     * @returns Whether the element is visible.\n     */\n    isVisible(element) {\n        return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n    }\n    /**\n     * Gets whether an element can be reached via Tab key.\n     * Assumes that the element has already been checked with isFocusable.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is tabbable.\n     */\n    isTabbable(element) {\n        // Nothing is tabbable on the server 😎\n        if (!this._platform.isBrowser) {\n            return false;\n        }\n        const frameElement = getFrameElement(getWindow(element));\n        if (frameElement) {\n            // Frame elements inherit their tabindex onto all child elements.\n            if (getTabIndexValue(frameElement) === -1) {\n                return false;\n            }\n            // Browsers disable tabbing to an element inside of an invisible frame.\n            if (!this.isVisible(frameElement)) {\n                return false;\n            }\n        }\n        let nodeName = element.nodeName.toLowerCase();\n        let tabIndexValue = getTabIndexValue(element);\n        if (element.hasAttribute('contenteditable')) {\n            return tabIndexValue !== -1;\n        }\n        if (nodeName === 'iframe' || nodeName === 'object') {\n            // The frame or object's content may be tabbable depending on the content, but it's\n            // not possibly to reliably detect the content of the frames. We always consider such\n            // elements as non-tabbable.\n            return false;\n        }\n        // In iOS, the browser only considers some specific elements as tabbable.\n        if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n            return false;\n        }\n        if (nodeName === 'audio') {\n            // Audio elements without controls enabled are never tabbable, regardless\n            // of the tabindex attribute explicitly being set.\n            if (!element.hasAttribute('controls')) {\n                return false;\n            }\n            // Audio elements with controls are by default tabbable unless the\n            // tabindex attribute is set to `-1` explicitly.\n            return tabIndexValue !== -1;\n        }\n        if (nodeName === 'video') {\n            // For all video elements, if the tabindex attribute is set to `-1`, the video\n            // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`\n            // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The\n            // tabindex attribute is the source of truth here.\n            if (tabIndexValue === -1) {\n                return false;\n            }\n            // If the tabindex is explicitly set, and not `-1` (as per check before), the\n            // video element is always tabbable (regardless of whether it has controls or not).\n            if (tabIndexValue !== null) {\n                return true;\n            }\n            // Otherwise (when no explicit tabindex is set), a video is only tabbable if it\n            // has controls enabled. Firefox is special as videos are always tabbable regardless\n            // of whether there are controls or not.\n            return this._platform.FIREFOX || element.hasAttribute('controls');\n        }\n        return element.tabIndex >= 0;\n    }\n    /**\n     * Gets whether an element can be focused by the user.\n     *\n     * @param element Element to be checked.\n     * @param config The config object with options to customize this method's behavior\n     * @returns Whether the element is focusable.\n     */\n    isFocusable(element, config) {\n        // Perform checks in order of left to most expensive.\n        // Again, naive approach that does not capture many edge cases and browser quirks.\n        return (isPotentiallyFocusable(element) &&\n            !this.isDisabled(element) &&\n            (config?.ignoreVisibility || this.isVisible(element)));\n    }\n}\nInteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nInteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InteractivityChecker, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Platform }]; } });\n/**\n * Returns the frame element from a window object. Since browsers like MS Edge throw errors if\n * the frameElement property is being accessed from a different host address, this property\n * should be accessed carefully.\n */\nfunction getFrameElement(window) {\n    try {\n        return window.frameElement;\n    }\n    catch {\n        return null;\n    }\n}\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element) {\n    // Use logic from jQuery to check for an invisible element.\n    // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n    return !!(element.offsetWidth ||\n        element.offsetHeight ||\n        (typeof element.getClientRects === 'function' && element.getClientRects().length));\n}\n/** Gets whether an element's  */\nfunction isNativeFormElement(element) {\n    let nodeName = element.nodeName.toLowerCase();\n    return (nodeName === 'input' ||\n        nodeName === 'select' ||\n        nodeName === 'button' ||\n        nodeName === 'textarea');\n}\n/** Gets whether an element is an `<input type=\"hidden\">`. */\nfunction isHiddenInput(element) {\n    return isInputElement(element) && element.type == 'hidden';\n}\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element) {\n    return isAnchorElement(element) && element.hasAttribute('href');\n}\n/** Gets whether an element is an input element. */\nfunction isInputElement(element) {\n    return element.nodeName.toLowerCase() == 'input';\n}\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element) {\n    return element.nodeName.toLowerCase() == 'a';\n}\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element) {\n    if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n        return false;\n    }\n    let tabIndex = element.getAttribute('tabindex');\n    return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element) {\n    if (!hasValidTabIndex(element)) {\n        return null;\n    }\n    // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n    const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);\n    return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element) {\n    let nodeName = element.nodeName.toLowerCase();\n    let inputType = nodeName === 'input' && element.type;\n    return (inputType === 'text' ||\n        inputType === 'password' ||\n        nodeName === 'select' ||\n        nodeName === 'textarea');\n}\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element) {\n    // Inputs are potentially focusable *unless* they're type=\"hidden\".\n    if (isHiddenInput(element)) {\n        return false;\n    }\n    return (isNativeFormElement(element) ||\n        isAnchorWithHref(element) ||\n        element.hasAttribute('contenteditable') ||\n        hasValidTabIndex(element));\n}\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node) {\n    // ownerDocument is null if `node` itself *is* a document.\n    return (node.ownerDocument && node.ownerDocument.defaultView) || window;\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.io/license\n */\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class currently uses a relatively simple approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.\n *\n * @deprecated Use `ConfigurableFocusTrap` instead.\n * @breaking-change 11.0.0\n */\nclass FocusTrap {\n    constructor(_element, _checker, _ngZone, _document, deferAnchors = false) {\n        this._element = _element;\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._document = _document;\n        this._hasAttached = false;\n        // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.\n        this.startAnchorListener = () => this.focusLastTabbableElement();\n        this.endAnchorListener = () => this.focusFirstTabbableElement();\n        this._enabled = true;\n        if (!deferAnchors) {\n            this.attachAnchors();\n        }\n    }\n    /** Whether the focus trap is active. */\n    get enabled() {\n        return this._enabled;\n    }\n    set enabled(value) {\n        this._enabled = value;\n        if (this._startAnchor && this._endAnchor) {\n            this._toggleAnchorTabIndex(value, this._startAnchor);\n            this._toggleAnchorTabIndex(value, this._endAnchor);\n        }\n    }\n    /** Destroys the focus trap by cleaning up the anchors. */\n    destroy() {\n        const startAnchor = this._startAnchor;\n        const endAnchor = this._endAnchor;\n        if (startAnchor) {\n            startAnchor.removeEventListener('focus', this.startAnchorListener);\n            startAnchor.remove();\n        }\n        if (endAnchor) {\n            endAnchor.removeEventListener('focus', this.endAnchorListener);\n            endAnchor.remove();\n        }\n        this._startAnchor = this._endAnchor = null;\n        this._hasAttached = false;\n    }\n    /**\n     * Inserts the anchors into the DOM. This is usually done automatically\n     * in the constructor, but can be deferred for cases like directives with `*ngIf`.\n     * @returns Whether the focus trap managed to attach successfully. This may not be the case\n     * if the target element isn't currently in the DOM.\n     */\n    attachAnchors() {\n        // If we're not on the browser, there can be no focus to trap.\n        if (this._hasAttached) {\n            return true;\n        }\n        this._ngZone.runOutsideAngular(() => {\n            if (!this._startAnchor) {\n                this._startAnchor = this._createAnchor();\n                this._startAnchor.addEventListener('focus', this.startAnchorListener);\n            }\n            if (!this._endAnchor) {\n                this._endAnchor = this._createAnchor();\n                this._endAnchor.addEventListener('focus', this.endAnchorListener);\n            }\n        });\n        if (this._element.parentNode) {\n            this._element.parentNode.insertBefore(this._startAnchor, this._element);\n            this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);\n            this._hasAttached = true;\n        }\n        return this._hasAttached;\n    }\n    /**\n     * Waits for the zone to stabilize, then focuses the first tabbable element.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusInitialElementWhenReady(options) {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusInitialElement(options)));\n        });\n    }\n    /**\n     * Waits for the zone to stabilize, then focuses\n     * the first tabbable element within the focus trap region.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusFirstTabbableElementWhenReady(options) {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusFirstTabbableElement(options)));\n        });\n    }\n    /**\n     * Waits for the zone to stabilize, then focuses\n     * the last tabbable element within the focus trap region.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusLastTabbableElementWhenReady(options) {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusLastTabbableElement(options)));\n        });\n    }\n    /**\n     * Get the specified boundary element of the trapped region.\n     * @param bound The boundary to get (start or end of trapped region).\n     * @returns The boundary element.\n     */\n    _getRegionBoundary(bound) {\n        // Contains the deprecated version of selector, for temporary backwards comparability.\n        const markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            for (let i = 0; i < markers.length; i++) {\n                // @breaking-change 8.0.0\n                if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {\n                    console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` +\n                        `use 'cdkFocusRegion${bound}' instead. The deprecated ` +\n                        `attribute will be removed in 8.0.0.`, markers[i]);\n                }\n                else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {\n                    console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` +\n                        `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` +\n                        `will be removed in 8.0.0.`, markers[i]);\n                }\n            }\n        }\n        if (bound == 'start') {\n            return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);\n        }\n        return markers.length\n            ? markers[markers.length - 1]\n            : this._getLastTabbableElement(this._element);\n    }\n    /**\n     * Focuses the element that should be focused when the focus trap is initialized.\n     * @returns Whether focus was moved successfully.\n     */\n    focusInitialElement(options) {\n        // Contains the deprecated version of selector, for temporary backwards comparability.\n        const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);\n        if (redirectToElement) {\n            // @breaking-change 8.0.0\n            if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n                redirectToElement.hasAttribute(`cdk-focus-initial`)) {\n                console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` +\n                    `use 'cdkFocusInitial' instead. The deprecated attribute ` +\n                    `will be removed in 8.0.0`, redirectToElement);\n            }\n            // Warn the consumer if the element they've pointed to\n            // isn't focusable, when not in production mode.\n            if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n                !this._checker.isFocusable(redirectToElement)) {\n                console.warn(`Element matching '[cdkFocusInitial]' is not focusable.`, redirectToElement);\n            }\n            if (!this._checker.isFocusable(redirectToElement)) {\n                const focusableChild = this._getFirstTabbableElement(redirectToElement);\n                focusableChild?.focus(options);\n                return !!focusableChild;\n            }\n            redirectToElement.focus(options);\n            return true;\n        }\n        return this.focusFirstTabbableElement(options);\n    }\n    /**\n     * Focuses the first tabbable element within the focus trap region.\n     * @returns Whether focus was moved successfully.\n     */\n    focusFirstTabbableElement(options) {\n        const redirectToElement = this._getRegionBoundary('start');\n        if (redirectToElement) {\n            redirectToElement.focus(options);\n        }\n        return !!redirectToElement;\n    }\n    /**\n     * Focuses the last tabbable element within the focus trap region.\n     * @returns Whether focus was moved successfully.\n     */\n    focusLastTabbableElement(options) {\n        const redirectToElement = this._getRegionBoundary('end');\n        if (redirectToElement) {\n            redirectToElement.focus(options);\n        }\n        return !!redirectToElement;\n    }\n    /**\n     * Checks whether the focus trap has successfully been attached.\n     */\n    hasAttached() {\n        return this._hasAttached;\n    }\n    /** Get the first tabbable element from a DOM subtree (inclusive). */\n    _getFirstTabbableElement(root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        const children = root.children;\n        for (let i = 0; i < children.length; i++) {\n            const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE\n                ? this._getFirstTabbableElement(children[i])\n                : null;\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    }\n    /** Get the last tabbable element from a DOM subtree (inclusive). */\n    _getLastTabbableElement(root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        // Iterate in reverse DOM order.\n        const children = root.children;\n        for (let i = children.length - 1; i >= 0; i--) {\n            const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE\n                ? this._getLastTabbableElement(children[i])\n                : null;\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    }\n    /** Creates an anchor element. */\n    _createAnchor() {\n        const anchor = this._document.createElement('div');\n        this._toggleAnchorTabIndex(this._enabled, anchor);\n        anchor.classList.add('cdk-visually-hidden');\n        anchor.classList.add('cdk-focus-trap-anchor');\n        anchor.setAttribute('aria-hidden', 'true');\n        return anchor;\n    }\n    /**\n     * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.\n     * @param isEnabled Whether the focus trap is enabled.\n     * @param anchor Anchor on which to toggle the tabindex.\n     */\n    _toggleAnchorTabIndex(isEnabled, anchor) {\n        // Remove the tabindex completely, rather than setting it to -1, because if the\n        // element has a tabindex, the user might still hit it when navigating with the arrow keys.\n        isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');\n    }\n    /**\n     * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.\n     * @param enabled: Whether the anchors should trap Tab.\n     */\n    toggleAnchors(enabled) {\n        if (this._startAnchor && this._endAnchor) {\n            this._toggleAnchorTabIndex(enabled, this._startAnchor);\n            this._toggleAnchorTabIndex(enabled, this._endAnchor);\n        }\n    }\n    /** Executes a function when the zone is stable. */\n    _executeOnStable(fn) {\n        if (this._ngZone.isStable) {\n            fn();\n        }\n        else {\n            this._ngZone.onStable.pipe(take(1)).subscribe(fn);\n        }\n    }\n}\n/**\n * Factory that allows easy instantiation of focus traps.\n * @deprecated Use `ConfigurableFocusTrapFactory` instead.\n * @breaking-change 11.0.0\n */\nclass FocusTrapFactory {\n    constructor(_checker, _ngZone, _document) {\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._document = _document;\n    }\n    /**\n     * Creates a focus-trapped region around the given element.\n     * @param element The element around which focus will be trapped.\n     * @param deferCaptureElements Defers the creation of focus-capturing elements to be done\n     *     manually by the user.\n     * @returns The created focus trap instance.\n     */\n    create(element, deferCaptureElements = false) {\n        return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);\n    }\n}\nFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapFactory, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n/** Directive for trapping focus within a region. */\nclass CdkTrapFocus {\n    constructor(_elementRef, _focusTrapFactory, \n    /**\n     * @deprecated No longer being used. To be removed.\n     * @breaking-change 13.0.0\n     */\n    _document) {\n        this._elementRef = _elementRef;\n        this._focusTrapFactory = _focusTrapFactory;\n        /** Previously focused element to restore focus to upon destroy when using autoCapture. */\n        this._previouslyFocusedElement = null;\n        this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n    }\n    /** Whether the focus trap is active. */\n    get enabled() {\n        return this.focusTrap.enabled;\n    }\n    set enabled(value) {\n        this.focusTrap.enabled = coerceBooleanProperty(value);\n    }\n    /**\n     * Whether the directive should automatically move focus into the trapped region upon\n     * initialization and return focus to the previous activeElement upon destruction.\n     */\n    get autoCapture() {\n        return this._autoCapture;\n    }\n    set autoCapture(value) {\n        this._autoCapture = coerceBooleanProperty(value);\n    }\n    ngOnDestroy() {\n        this.focusTrap.destroy();\n        // If we stored a previously focused element when using autoCapture, return focus to that\n        // element now that the trapped region is being destroyed.\n        if (this._previouslyFocusedElement) {\n            this._previouslyFocusedElement.focus();\n            this._previouslyFocusedElement = null;\n        }\n    }\n    ngAfterContentInit() {\n        this.focusTrap.attachAnchors();\n        if (this.autoCapture) {\n            this._captureFocus();\n        }\n    }\n    ngDoCheck() {\n        if (!this.focusTrap.hasAttached()) {\n            this.focusTrap.attachAnchors();\n        }\n    }\n    ngOnChanges(changes) {\n        const autoCaptureChange = changes['autoCapture'];\n        if (autoCaptureChange &&\n            !autoCaptureChange.firstChange &&\n            this.autoCapture &&\n            this.focusTrap.hasAttached()) {\n            this._captureFocus();\n        }\n    }\n    _captureFocus() {\n        this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();\n        this.focusTrap.focusInitialElementWhenReady();\n    }\n}\nCdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTrapFocus, selector: \"[cdkTrapFocus]\", inputs: { enabled: [\"cdkTrapFocus\", \"enabled\"], autoCapture: [\"cdkTrapFocusAutoCapture\", \"autoCapture\"] }, exportAs: [\"cdkTrapFocus\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTrapFocus, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkTrapFocus]',\n                    exportAs: 'cdkTrapFocus',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FocusTrapFactory }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; }, propDecorators: { enabled: [{\n                type: Input,\n                args: ['cdkTrapFocus']\n            }], autoCapture: [{\n                type: Input,\n                args: ['cdkTrapFocusAutoCapture']\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.io/license\n */\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class uses a strategy pattern that determines how it traps focus.\n * See FocusTrapInertStrategy.\n */\nclass ConfigurableFocusTrap extends FocusTrap {\n    constructor(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config) {\n        super(_element, _checker, _ngZone, _document, config.defer);\n        this._focusTrapManager = _focusTrapManager;\n        this._inertStrategy = _inertStrategy;\n        this._focusTrapManager.register(this);\n    }\n    /** Whether the FocusTrap is enabled. */\n    get enabled() {\n        return this._enabled;\n    }\n    set enabled(value) {\n        this._enabled = value;\n        if (this._enabled) {\n            this._focusTrapManager.register(this);\n        }\n        else {\n            this._focusTrapManager.deregister(this);\n        }\n    }\n    /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */\n    destroy() {\n        this._focusTrapManager.deregister(this);\n        super.destroy();\n    }\n    /** @docs-private Implemented as part of ManagedFocusTrap. */\n    _enable() {\n        this._inertStrategy.preventFocus(this);\n        this.toggleAnchors(true);\n    }\n    /** @docs-private Implemented as part of ManagedFocusTrap. */\n    _disable() {\n        this._inertStrategy.allowFocus(this);\n        this.toggleAnchors(false);\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.io/license\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.io/license\n */\n/** The injection token used to specify the inert strategy. */\nconst FOCUS_TRAP_INERT_STRATEGY = new InjectionToken('FOCUS_TRAP_INERT_STRATEGY');\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.io/license\n */\n/**\n * Lightweight FocusTrapInertStrategy that adds a document focus event\n * listener to redirect focus back inside the FocusTrap.\n */\nclass EventListenerFocusTrapInertStrategy {\n    constructor() {\n        /** Focus event handler. */\n        this._listener = null;\n    }\n    /** Adds a document event listener that keeps focus inside the FocusTrap. */\n    preventFocus(focusTrap) {\n        // Ensure there's only one listener per document\n        if (this._listener) {\n            focusTrap._document.removeEventListener('focus', this._listener, true);\n        }\n        this._listener = (e) => this._trapFocus(focusTrap, e);\n        focusTrap._ngZone.runOutsideAngular(() => {\n            focusTrap._document.addEventListener('focus', this._listener, true);\n        });\n    }\n    /** Removes the event listener added in preventFocus. */\n    allowFocus(focusTrap) {\n        if (!this._listener) {\n            return;\n        }\n        focusTrap._document.removeEventListener('focus', this._listener, true);\n        this._listener = null;\n    }\n    /**\n     * Refocuses the first element in the FocusTrap if the focus event target was outside\n     * the FocusTrap.\n     *\n     * This is an event listener callback. The event listener is added in runOutsideAngular,\n     * so all this code runs outside Angular as well.\n     */\n    _trapFocus(focusTrap, event) {\n        const target = event.target;\n        const focusTrapRoot = focusTrap._element;\n        // Don't refocus if target was in an overlay, because the overlay might be associated\n        // with an element inside the FocusTrap, ex. mat-select.\n        if (target && !focusTrapRoot.contains(target) && !target.closest?.('div.cdk-overlay-pane')) {\n            // Some legacy FocusTrap usages have logic that focuses some element on the page\n            // just before FocusTrap is destroyed. For backwards compatibility, wait\n            // to be sure FocusTrap is still enabled before refocusing.\n            setTimeout(() => {\n                // Check whether focus wasn't put back into the focus trap while the timeout was pending.\n                if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {\n                    focusTrap.focusFirstTabbableElement();\n                }\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.io/license\n */\n/** Injectable that ensures only the most recently enabled FocusTrap is active. */\nclass FocusTrapManager {\n    constructor() {\n        // A stack of the FocusTraps on the page. Only the FocusTrap at the\n        // top of the stack is active.\n        this._focusTrapStack = [];\n    }\n    /**\n     * Disables the FocusTrap at the top of the stack, and then pushes\n     * the new FocusTrap onto the stack.\n     */\n    register(focusTrap) {\n        // Dedupe focusTraps that register multiple times.\n        this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);\n        let stack = this._focusTrapStack;\n        if (stack.length) {\n            stack[stack.length - 1]._disable();\n        }\n        stack.push(focusTrap);\n        focusTrap._enable();\n    }\n    /**\n     * Removes the FocusTrap from the stack, and activates the\n     * FocusTrap that is the new top of the stack.\n     */\n    deregister(focusTrap) {\n        focusTrap._disable();\n        const stack = this._focusTrapStack;\n        const i = stack.indexOf(focusTrap);\n        if (i !== -1) {\n            stack.splice(i, 1);\n            if (stack.length) {\n                stack[stack.length - 1]._enable();\n            }\n        }\n    }\n}\nFocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusTrapManager, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\n */\n/** Factory that allows easy instantiation of configurable focus traps. */\nclass ConfigurableFocusTrapFactory {\n    constructor(_checker, _ngZone, _focusTrapManager, _document, _inertStrategy) {\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._focusTrapManager = _focusTrapManager;\n        this._document = _document;\n        // TODO split up the strategies into different modules, similar to DateAdapter.\n        this._inertStrategy = _inertStrategy || new EventListenerFocusTrapInertStrategy();\n    }\n    create(element, config = { defer: false }) {\n        let configObject;\n        if (typeof config === 'boolean') {\n            configObject = { defer: config };\n        }\n        else {\n            configObject = config;\n        }\n        return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);\n    }\n}\nConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: FocusTrapManager }, { token: DOCUMENT }, { token: FOCUS_TRAP_INERT_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: FocusTrapManager }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [FOCUS_TRAP_INERT_STRATEGY]\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.io/license\n */\n/** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */\nfunction isFakeMousedownFromScreenReader(event) {\n    // Some screen readers will dispatch a fake `mousedown` event when pressing enter or space on\n    // a clickable element. We can distinguish these events when both `offsetX` and `offsetY` are\n    // zero or `event.buttons` is zero, depending on the browser:\n    // - `event.buttons` works on Firefox, but fails on Chrome.\n    // - `offsetX` and `offsetY` work on Chrome, but fail on Firefox.\n    // Note that there's an edge case where the user could click the 0x0 spot of the\n    // screen themselves, but that is unlikely to contain interactive elements.\n    return event.buttons === 0 || (event.offsetX === 0 && event.offsetY === 0);\n}\n/** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */\nfunction isFakeTouchstartFromScreenReader(event) {\n    const touch = (event.touches && event.touches[0]) || (event.changedTouches && event.changedTouches[0]);\n    // A fake `touchstart` can be distinguished from a real one by looking at the `identifier`\n    // which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe,\n    // we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10\n    // device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88.\n    return (!!touch &&\n        touch.identifier === -1 &&\n        (touch.radiusX == null || touch.radiusX === 1) &&\n        (touch.radiusY == null || touch.radiusY === 1));\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.io/license\n */\n/**\n * Injectable options for the InputModalityDetector. These are shallowly merged with the default\n * options.\n */\nconst INPUT_MODALITY_DETECTOR_OPTIONS = new InjectionToken('cdk-input-modality-detector-options');\n/**\n * Default options for the InputModalityDetector.\n *\n * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect\n * keyboard input modality) for two reasons:\n *\n * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open\n *    in new tab', and are thus less representative of actual keyboard interaction.\n * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but\n *    confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore\n *    these keys so as to not update the input modality.\n *\n * Note that we do not by default ignore the right Meta key on Safari because it has the same key\n * code as the ContextMenu key on other browsers. When we switch to using event.key, we can\n * distinguish between the two.\n */\nconst INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = {\n    ignoreKeys: [ALT, CONTROL, MAC_META, META, SHIFT],\n};\n/**\n * The amount of time needed to pass after a touchstart event in order for a subsequent mousedown\n * event to be attributed as mouse and not touch.\n *\n * This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found\n * that a value of around 650ms seems appropriate.\n */\nconst TOUCH_BUFFER_MS = 650;\n/**\n * Event listener options that enable capturing and also mark the listener as passive if the browser\n * supports it.\n */\nconst modalityEventListenerOptions = normalizePassiveListenerOptions({\n    passive: true,\n    capture: true,\n});\n/**\n * Service that detects the user's input modality.\n *\n * This service does not update the input modality when a user navigates with a screen reader\n * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC\n * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not\n * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a\n * screen reader is akin to visually scanning a page, and should not be interpreted as actual user\n * input interaction.\n *\n * When a user is not navigating but *interacting* with a screen reader, this service attempts to\n * update the input modality to keyboard, but in general this service's behavior is largely\n * undefined.\n */\nclass InputModalityDetector {\n    constructor(_platform, ngZone, document, options) {\n        this._platform = _platform;\n        /**\n         * The most recently detected input modality event target. Is null if no input modality has been\n         * detected or if the associated event target is null for some unknown reason.\n         */\n        this._mostRecentTarget = null;\n        /** The underlying BehaviorSubject that emits whenever an input modality is detected. */\n        this._modality = new BehaviorSubject(null);\n        /**\n         * The timestamp of the last touch input modality. Used to determine whether mousedown events\n         * should be attributed to mouse or touch.\n         */\n        this._lastTouchMs = 0;\n        /**\n         * Handles keydown events. Must be an arrow function in order to preserve the context when it gets\n         * bound.\n         */\n        this._onKeydown = (event) => {\n            // If this is one of the keys we should ignore, then ignore it and don't update the input\n            // modality to keyboard.\n            if (this._options?.ignoreKeys?.some(keyCode => keyCode === event.keyCode)) {\n                return;\n            }\n            this._modality.next('keyboard');\n            this._mostRecentTarget = _getEventTarget(event);\n        };\n        /**\n         * Handles mousedown events. Must be an arrow function in order to preserve the context when it\n         * gets bound.\n         */\n        this._onMousedown = (event) => {\n            // Touches trigger both touch and mouse events, so we need to distinguish between mouse events\n            // that were triggered via mouse vs touch. To do so, check if the mouse event occurs closely\n            // after the previous touch event.\n            if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) {\n                return;\n            }\n            // Fake mousedown events are fired by some screen readers when controls are activated by the\n            // screen reader. Attribute them to keyboard input modality.\n            this._modality.next(isFakeMousedownFromScreenReader(event) ? 'keyboard' : 'mouse');\n            this._mostRecentTarget = _getEventTarget(event);\n        };\n        /**\n         * Handles touchstart events. Must be an arrow function in order to preserve the context when it\n         * gets bound.\n         */\n        this._onTouchstart = (event) => {\n            // Same scenario as mentioned in _onMousedown, but on touch screen devices, fake touchstart\n            // events are fired. Again, attribute to keyboard input modality.\n            if (isFakeTouchstartFromScreenReader(event)) {\n                this._modality.next('keyboard');\n                return;\n            }\n            // Store the timestamp of this touch event, as it's used to distinguish between mouse events\n            // triggered via mouse vs touch.\n            this._lastTouchMs = Date.now();\n            this._modality.next('touch');\n            this._mostRecentTarget = _getEventTarget(event);\n        };\n        this._options = {\n            ...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,\n            ...options,\n        };\n        // Skip the first emission as it's null.\n        this.modalityDetected = this._modality.pipe(skip(1));\n        this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());\n        // If we're not in a browser, this service should do nothing, as there's no relevant input\n        // modality to detect.\n        if (_platform.isBrowser) {\n            ngZone.runOutsideAngular(() => {\n                document.addEventListener('keydown', this._onKeydown, modalityEventListenerOptions);\n                document.addEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);\n                document.addEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);\n            });\n        }\n    }\n    /** The most recently detected input modality. */\n    get mostRecentModality() {\n        return this._modality.value;\n    }\n    ngOnDestroy() {\n        this._modality.complete();\n        if (this._platform.isBrowser) {\n            document.removeEventListener('keydown', this._onKeydown, modalityEventListenerOptions);\n            document.removeEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);\n            document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);\n        }\n    }\n}\nInputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nInputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: InputModalityDetector, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }, { type: Document, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [INPUT_MODALITY_DETECTOR_OPTIONS]\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.io/license\n */\nconst LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement', {\n    providedIn: 'root',\n    factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY,\n});\n/** @docs-private */\nfunction LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {\n    return null;\n}\n/** Injection token that can be used to configure the default options for the LiveAnnouncer. */\nconst LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken('LIVE_ANNOUNCER_DEFAULT_OPTIONS');\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.io/license\n */\nclass LiveAnnouncer {\n    constructor(elementToken, _ngZone, _document, _defaultOptions) {\n        this._ngZone = _ngZone;\n        this._defaultOptions = _defaultOptions;\n        // We inject the live element and document as `any` because the constructor signature cannot\n        // reference browser globals (HTMLElement, Document) on non-browser environments, since having\n        // a class decorator causes TypeScript to preserve the constructor signature types.\n        this._document = _document;\n        this._liveElement = elementToken || this._createLiveElement();\n    }\n    announce(message, ...args) {\n        const defaultOptions = this._defaultOptions;\n        let politeness;\n        let duration;\n        if (args.length === 1 && typeof args[0] === 'number') {\n            duration = args[0];\n        }\n        else {\n            [politeness, duration] = args;\n        }\n        this.clear();\n        clearTimeout(this._previousTimeout);\n        if (!politeness) {\n            politeness =\n                defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';\n        }\n        if (duration == null && defaultOptions) {\n            duration = defaultOptions.duration;\n        }\n        // TODO: ensure changing the politeness works on all environments we support.\n        this._liveElement.setAttribute('aria-live', politeness);\n        // This 100ms timeout is necessary for some browser + screen-reader combinations:\n        // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.\n        // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a\n        //   second time without clearing and then using a non-zero delay.\n        // (using JAWS 17 at time of this writing).\n        return this._ngZone.runOutsideAngular(() => {\n            if (!this._currentPromise) {\n                this._currentPromise = new Promise(resolve => (this._currentResolve = resolve));\n            }\n            clearTimeout(this._previousTimeout);\n            this._previousTimeout = setTimeout(() => {\n                this._liveElement.textContent = message;\n                if (typeof duration === 'number') {\n                    this._previousTimeout = setTimeout(() => this.clear(), duration);\n                }\n                this._currentResolve();\n                this._currentPromise = this._currentResolve = undefined;\n            }, 100);\n            return this._currentPromise;\n        });\n    }\n    /**\n     * Clears the current text from the announcer element. Can be used to prevent\n     * screen readers from reading the text out again while the user is going\n     * through the page landmarks.\n     */\n    clear() {\n        if (this._liveElement) {\n            this._liveElement.textContent = '';\n        }\n    }\n    ngOnDestroy() {\n        clearTimeout(this._previousTimeout);\n        this._liveElement?.remove();\n        this._liveElement = null;\n        this._currentResolve?.();\n        this._currentPromise = this._currentResolve = undefined;\n    }\n    _createLiveElement() {\n        const elementClass = 'cdk-live-announcer-element';\n        const previousElements = this._document.getElementsByClassName(elementClass);\n        const liveEl = this._document.createElement('div');\n        // Remove any old containers. This can happen when coming in from a server-side-rendered page.\n        for (let i = 0; i < previousElements.length; i++) {\n            previousElements[i].remove();\n        }\n        liveEl.classList.add(elementClass);\n        liveEl.classList.add('cdk-visually-hidden');\n        liveEl.setAttribute('aria-atomic', 'true');\n        liveEl.setAttribute('aria-live', 'polite');\n        this._document.body.appendChild(liveEl);\n        return liveEl;\n    }\n}\nLiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LiveAnnouncer, deps: [{ token: LIVE_ANNOUNCER_ELEMENT_TOKEN, optional: true }, { token: i0.NgZone }, { token: DOCUMENT }, { token: LIVE_ANNOUNCER_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nLiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LiveAnnouncer, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]\n                }] }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]\n                }] }]; } });\n/**\n * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility\n * with a wider range of browsers and screen readers.\n */\nclass CdkAriaLive {\n    constructor(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) {\n        this._elementRef = _elementRef;\n        this._liveAnnouncer = _liveAnnouncer;\n        this._contentObserver = _contentObserver;\n        this._ngZone = _ngZone;\n        this._politeness = 'polite';\n    }\n    /** The aria-live politeness level to use when announcing messages. */\n    get politeness() {\n        return this._politeness;\n    }\n    set politeness(value) {\n        this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';\n        if (this._politeness === 'off') {\n            if (this._subscription) {\n                this._subscription.unsubscribe();\n                this._subscription = null;\n            }\n        }\n        else if (!this._subscription) {\n            this._subscription = this._ngZone.runOutsideAngular(() => {\n                return this._contentObserver.observe(this._elementRef).subscribe(() => {\n                    // Note that we use textContent here, rather than innerText, in order to avoid a reflow.\n                    const elementText = this._elementRef.nativeElement.textContent;\n                    // The `MutationObserver` fires also for attribute\n                    // changes which we don't want to announce.\n                    if (elementText !== this._previousAnnouncedText) {\n                        this._liveAnnouncer.announce(elementText, this._politeness, this.duration);\n                        this._previousAnnouncedText = elementText;\n                    }\n                });\n            });\n        }\n    }\n    ngOnDestroy() {\n        if (this._subscription) {\n            this._subscription.unsubscribe();\n        }\n    }\n}\nCdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkAriaLive, selector: \"[cdkAriaLive]\", inputs: { politeness: [\"cdkAriaLive\", \"politeness\"], duration: [\"cdkAriaLiveDuration\", \"duration\"] }, exportAs: [\"cdkAriaLive\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkAriaLive, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkAriaLive]',\n                    exportAs: 'cdkAriaLive',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: LiveAnnouncer }, { type: i1$1.ContentObserver }, { type: i0.NgZone }]; }, propDecorators: { politeness: [{\n                type: Input,\n                args: ['cdkAriaLive']\n            }], duration: [{\n                type: Input,\n                args: ['cdkAriaLiveDuration']\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.io/license\n */\n/** InjectionToken for FocusMonitorOptions. */\nconst FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken('cdk-focus-monitor-default-options');\n/**\n * Event listener options that enable capturing and also\n * mark the listener as passive if the browser supports it.\n */\nconst captureEventListenerOptions = normalizePassiveListenerOptions({\n    passive: true,\n    capture: true,\n});\n/** Monitors mouse and keyboard events to determine the cause of focus events. */\nclass FocusMonitor {\n    constructor(_ngZone, _platform, _inputModalityDetector, \n    /** @breaking-change 11.0.0 make document required */\n    document, options) {\n        this._ngZone = _ngZone;\n        this._platform = _platform;\n        this._inputModalityDetector = _inputModalityDetector;\n        /** The focus origin that the next focus event is a result of. */\n        this._origin = null;\n        /** Whether the window has just been focused. */\n        this._windowFocused = false;\n        /**\n         * Whether the origin was determined via a touch interaction. Necessary as properly attributing\n         * focus events to touch interactions requires special logic.\n         */\n        this._originFromTouchInteraction = false;\n        /** Map of elements being monitored to their info. */\n        this._elementInfo = new Map();\n        /** The number of elements currently being monitored. */\n        this._monitoredElementCount = 0;\n        /**\n         * Keeps track of the root nodes to which we've currently bound a focus/blur handler,\n         * as well as the number of monitored elements that they contain. We have to treat focus/blur\n         * handlers differently from the rest of the events, because the browser won't emit events\n         * to the document when focus moves inside of a shadow root.\n         */\n        this._rootNodeFocusListenerCount = new Map();\n        /**\n         * Event listener for `focus` events on the window.\n         * Needs to be an arrow function in order to preserve the context when it gets bound.\n         */\n        this._windowFocusListener = () => {\n            // Make a note of when the window regains focus, so we can\n            // restore the origin info for the focused element.\n            this._windowFocused = true;\n            this._windowFocusTimeoutId = window.setTimeout(() => (this._windowFocused = false));\n        };\n        /** Subject for stopping our InputModalityDetector subscription. */\n        this._stopInputModalityDetector = new Subject();\n        /**\n         * Event listener for `focus` and 'blur' events on the document.\n         * Needs to be an arrow function in order to preserve the context when it gets bound.\n         */\n        this._rootNodeFocusAndBlurListener = (event) => {\n            const target = _getEventTarget(event);\n            // We need to walk up the ancestor chain in order to support `checkChildren`.\n            for (let element = target; element; element = element.parentElement) {\n                if (event.type === 'focus') {\n                    this._onFocus(event, element);\n                }\n                else {\n                    this._onBlur(event, element);\n                }\n            }\n        };\n        this._document = document;\n        this._detectionMode = options?.detectionMode || 0 /* FocusMonitorDetectionMode.IMMEDIATE */;\n    }\n    monitor(element, checkChildren = false) {\n        const nativeElement = coerceElement(element);\n        // Do nothing if we're not on the browser platform or the passed in node isn't an element.\n        if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {\n            return of(null);\n        }\n        // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to\n        // the shadow root, rather than the `document`, because the browser won't emit focus events\n        // to the `document`, if focus is moving within the same shadow root.\n        const rootNode = _getShadowRoot(nativeElement) || this._getDocument();\n        const cachedInfo = this._elementInfo.get(nativeElement);\n        // Check if we're already monitoring this element.\n        if (cachedInfo) {\n            if (checkChildren) {\n                // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren\n                // observers into ones that behave as if `checkChildren` was turned on. We need a more\n                // robust solution.\n                cachedInfo.checkChildren = true;\n            }\n            return cachedInfo.subject;\n        }\n        // Create monitored element info.\n        const info = {\n            checkChildren: checkChildren,\n            subject: new Subject(),\n            rootNode,\n        };\n        this._elementInfo.set(nativeElement, info);\n        this._registerGlobalListeners(info);\n        return info.subject;\n    }\n    stopMonitoring(element) {\n        const nativeElement = coerceElement(element);\n        const elementInfo = this._elementInfo.get(nativeElement);\n        if (elementInfo) {\n            elementInfo.subject.complete();\n            this._setClasses(nativeElement);\n            this._elementInfo.delete(nativeElement);\n            this._removeGlobalListeners(elementInfo);\n        }\n    }\n    focusVia(element, origin, options) {\n        const nativeElement = coerceElement(element);\n        const focusedElement = this._getDocument().activeElement;\n        // If the element is focused already, calling `focus` again won't trigger the event listener\n        // which means that the focus classes won't be updated. If that's the case, update the classes\n        // directly without waiting for an event.\n        if (nativeElement === focusedElement) {\n            this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));\n        }\n        else {\n            this._setOrigin(origin);\n            // `focus` isn't available on the server\n            if (typeof nativeElement.focus === 'function') {\n                nativeElement.focus(options);\n            }\n        }\n    }\n    ngOnDestroy() {\n        this._elementInfo.forEach((_info, element) => this.stopMonitoring(element));\n    }\n    /** Access injected document if available or fallback to global document reference */\n    _getDocument() {\n        return this._document || document;\n    }\n    /** Use defaultView of injected document if available or fallback to global window reference */\n    _getWindow() {\n        const doc = this._getDocument();\n        return doc.defaultView || window;\n    }\n    _getFocusOrigin(focusEventTarget) {\n        if (this._origin) {\n            // If the origin was realized via a touch interaction, we need to perform additional checks\n            // to determine whether the focus origin should be attributed to touch or program.\n            if (this._originFromTouchInteraction) {\n                return this._shouldBeAttributedToTouch(focusEventTarget) ? 'touch' : 'program';\n            }\n            else {\n                return this._origin;\n            }\n        }\n        // If the window has just regained focus, we can restore the most recent origin from before the\n        // window blurred. Otherwise, we've reached the point where we can't identify the source of the\n        // focus. This typically means one of two things happened:\n        //\n        // 1) The element was programmatically focused, or\n        // 2) The element was focused via screen reader navigation (which generally doesn't fire\n        //    events).\n        //\n        // Because we can't distinguish between these two cases, we default to setting `program`.\n        if (this._windowFocused && this._lastFocusOrigin) {\n            return this._lastFocusOrigin;\n        }\n        // If the interaction is coming from an input label, we consider it a mouse interactions.\n        // This is a special case where focus moves on `click`, rather than `mousedown` which breaks\n        // our detection, because all our assumptions are for `mousedown`. We need to handle this\n        // special case, because it's very common for checkboxes and radio buttons.\n        if (focusEventTarget && this._isLastInteractionFromInputLabel(focusEventTarget)) {\n            return 'mouse';\n        }\n        return 'program';\n    }\n    /**\n     * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a\n     * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we\n     * handle a focus event following a touch interaction, we need to determine whether (1) the focus\n     * event was directly caused by the touch interaction or (2) the focus event was caused by a\n     * subsequent programmatic focus call triggered by the touch interaction.\n     * @param focusEventTarget The target of the focus event under examination.\n     */\n    _shouldBeAttributedToTouch(focusEventTarget) {\n        // Please note that this check is not perfect. Consider the following edge case:\n        //\n        // <div #parent tabindex=\"0\">\n        //   <div #child tabindex=\"0\" (click)=\"#parent.focus()\"></div>\n        // </div>\n        //\n        // Suppose there is a FocusMonitor in IMMEDIATE mode attached to #parent. When the user touches\n        // #child, #parent is programmatically focused. This code will attribute the focus to touch\n        // instead of program. This is a relatively minor edge-case that can be worked around by using\n        // focusVia(parent, 'program') to focus #parent.\n        return (this._detectionMode === 1 /* FocusMonitorDetectionMode.EVENTUAL */ ||\n            !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget));\n    }\n    /**\n     * Sets the focus classes on the element based on the given focus origin.\n     * @param element The element to update the classes on.\n     * @param origin The focus origin.\n     */\n    _setClasses(element, origin) {\n        element.classList.toggle('cdk-focused', !!origin);\n        element.classList.toggle('cdk-touch-focused', origin === 'touch');\n        element.classList.toggle('cdk-keyboard-focused', origin === 'keyboard');\n        element.classList.toggle('cdk-mouse-focused', origin === 'mouse');\n        element.classList.toggle('cdk-program-focused', origin === 'program');\n    }\n    /**\n     * Updates the focus origin. If we're using immediate detection mode, we schedule an async\n     * function to clear the origin at the end of a timeout. The duration of the timeout depends on\n     * the origin being set.\n     * @param origin The origin to set.\n     * @param isFromInteraction Whether we are setting the origin from an interaction event.\n     */\n    _setOrigin(origin, isFromInteraction = false) {\n        this._ngZone.runOutsideAngular(() => {\n            this._origin = origin;\n            this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;\n            // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms\n            // for a touch event). We reset the origin at the next tick because Firefox focuses one tick\n            // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for\n            // a touch event because when a touch event is fired, the associated focus event isn't yet in\n            // the event queue. Before doing so, clear any pending timeouts.\n            if (this._detectionMode === 0 /* FocusMonitorDetectionMode.IMMEDIATE */) {\n                clearTimeout(this._originTimeoutId);\n                const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;\n                this._originTimeoutId = setTimeout(() => (this._origin = null), ms);\n            }\n        });\n    }\n    /**\n     * Handles focus events on a registered element.\n     * @param event The focus event.\n     * @param element The monitored element.\n     */\n    _onFocus(event, element) {\n        // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent\n        // focus event affecting the monitored element. If we want to use the origin of the first event\n        // instead we should check for the cdk-focused class here and return if the element already has\n        // it. (This only matters for elements that have includesChildren = true).\n        // If we are not counting child-element-focus as focused, make sure that the event target is the\n        // monitored element itself.\n        const elementInfo = this._elementInfo.get(element);\n        const focusEventTarget = _getEventTarget(event);\n        if (!elementInfo || (!elementInfo.checkChildren && element !== focusEventTarget)) {\n            return;\n        }\n        this._originChanged(element, this._getFocusOrigin(focusEventTarget), elementInfo);\n    }\n    /**\n     * Handles blur events on a registered element.\n     * @param event The blur event.\n     * @param element The monitored element.\n     */\n    _onBlur(event, element) {\n        // If we are counting child-element-focus as focused, make sure that we aren't just blurring in\n        // order to focus another child of the monitored element.\n        const elementInfo = this._elementInfo.get(element);\n        if (!elementInfo ||\n            (elementInfo.checkChildren &&\n                event.relatedTarget instanceof Node &&\n                element.contains(event.relatedTarget))) {\n            return;\n        }\n        this._setClasses(element);\n        this._emitOrigin(elementInfo, null);\n    }\n    _emitOrigin(info, origin) {\n        if (info.subject.observers.length) {\n            this._ngZone.run(() => info.subject.next(origin));\n        }\n    }\n    _registerGlobalListeners(elementInfo) {\n        if (!this._platform.isBrowser) {\n            return;\n        }\n        const rootNode = elementInfo.rootNode;\n        const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;\n        if (!rootNodeFocusListeners) {\n            this._ngZone.runOutsideAngular(() => {\n                rootNode.addEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n                rootNode.addEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n            });\n        }\n        this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1);\n        // Register global listeners when first element is monitored.\n        if (++this._monitoredElementCount === 1) {\n            // Note: we listen to events in the capture phase so we\n            // can detect them even if the user stops propagation.\n            this._ngZone.runOutsideAngular(() => {\n                const window = this._getWindow();\n                window.addEventListener('focus', this._windowFocusListener);\n            });\n            // The InputModalityDetector is also just a collection of global listeners.\n            this._inputModalityDetector.modalityDetected\n                .pipe(takeUntil(this._stopInputModalityDetector))\n                .subscribe(modality => {\n                this._setOrigin(modality, true /* isFromInteraction */);\n            });\n        }\n    }\n    _removeGlobalListeners(elementInfo) {\n        const rootNode = elementInfo.rootNode;\n        if (this._rootNodeFocusListenerCount.has(rootNode)) {\n            const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);\n            if (rootNodeFocusListeners > 1) {\n                this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);\n            }\n            else {\n                rootNode.removeEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n                rootNode.removeEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n                this._rootNodeFocusListenerCount.delete(rootNode);\n            }\n        }\n        // Unregister global listeners when last element is unmonitored.\n        if (!--this._monitoredElementCount) {\n            const window = this._getWindow();\n            window.removeEventListener('focus', this._windowFocusListener);\n            // Equivalently, stop our InputModalityDetector subscription.\n            this._stopInputModalityDetector.next();\n            // Clear timeouts for all potentially pending timeouts to prevent the leaks.\n            clearTimeout(this._windowFocusTimeoutId);\n            clearTimeout(this._originTimeoutId);\n        }\n    }\n    /** Updates all the state on an element once its focus origin has changed. */\n    _originChanged(element, origin, elementInfo) {\n        this._setClasses(element, origin);\n        this._emitOrigin(elementInfo, origin);\n        this._lastFocusOrigin = origin;\n    }\n    /**\n     * Collects the `MonitoredElementInfo` of a particular element and\n     * all of its ancestors that have enabled `checkChildren`.\n     * @param element Element from which to start the search.\n     */\n    _getClosestElementsInfo(element) {\n        const results = [];\n        this._elementInfo.forEach((info, currentElement) => {\n            if (currentElement === element || (info.checkChildren && currentElement.contains(element))) {\n                results.push([currentElement, info]);\n            }\n        });\n        return results;\n    }\n    /**\n     * Returns whether an interaction is likely to have come from the user clicking the `label` of\n     * an `input` or `textarea` in order to focus it.\n     * @param focusEventTarget Target currently receiving focus.\n     */\n    _isLastInteractionFromInputLabel(focusEventTarget) {\n        const { _mostRecentTarget: mostRecentTarget, mostRecentModality } = this._inputModalityDetector;\n        // If the last interaction used the mouse on an element contained by one of the labels\n        // of an `input`/`textarea` that is currently focused, it is very likely that the\n        // user redirected focus using the label.\n        if (mostRecentModality !== 'mouse' ||\n            !mostRecentTarget ||\n            mostRecentTarget === focusEventTarget ||\n            (focusEventTarget.nodeName !== 'INPUT' && focusEventTarget.nodeName !== 'TEXTAREA') ||\n            focusEventTarget.disabled) {\n            return false;\n        }\n        const labels = focusEventTarget.labels;\n        if (labels) {\n            for (let i = 0; i < labels.length; i++) {\n                if (labels[i].contains(mostRecentTarget)) {\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n}\nFocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusMonitor, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: InputModalityDetector }, { token: DOCUMENT, optional: true }, { token: FOCUS_MONITOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nFocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusMonitor, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FocusMonitor, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.Platform }, { type: InputModalityDetector }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [FOCUS_MONITOR_DEFAULT_OPTIONS]\n                }] }]; } });\n/**\n * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or\n * programmatically) and adds corresponding classes to the element.\n *\n * There are two variants of this directive:\n * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is\n *    focused.\n * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.\n */\nclass CdkMonitorFocus {\n    constructor(_elementRef, _focusMonitor) {\n        this._elementRef = _elementRef;\n        this._focusMonitor = _focusMonitor;\n        this._focusOrigin = null;\n        this.cdkFocusChange = new EventEmitter();\n    }\n    get focusOrigin() {\n        return this._focusOrigin;\n    }\n    ngAfterViewInit() {\n        const element = this._elementRef.nativeElement;\n        this._monitorSubscription = this._focusMonitor\n            .monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))\n            .subscribe(origin => {\n            this._focusOrigin = origin;\n            this.cdkFocusChange.emit(origin);\n        });\n    }\n    ngOnDestroy() {\n        this._focusMonitor.stopMonitoring(this._elementRef);\n        if (this._monitorSubscription) {\n            this._monitorSubscription.unsubscribe();\n        }\n    }\n}\nCdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });\nCdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: { cdkFocusChange: \"cdkFocusChange\" }, exportAs: [\"cdkMonitorFocus\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkMonitorFocus, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',\n                    exportAs: 'cdkMonitorFocus',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FocusMonitor }]; }, propDecorators: { cdkFocusChange: [{\n                type: Output\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.io/license\n */\n/** CSS class applied to the document body when in black-on-white high-contrast mode. */\nconst BLACK_ON_WHITE_CSS_CLASS = 'cdk-high-contrast-black-on-white';\n/** CSS class applied to the document body when in white-on-black high-contrast mode. */\nconst WHITE_ON_BLACK_CSS_CLASS = 'cdk-high-contrast-white-on-black';\n/** CSS class applied to the document body when in high-contrast mode. */\nconst HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';\n/**\n * Service to determine whether the browser is currently in a high-contrast-mode environment.\n *\n * Microsoft Windows supports an accessibility feature called \"High Contrast Mode\". This mode\n * changes the appearance of all applications, including web applications, to dramatically increase\n * contrast.\n *\n * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast\n * Mode. This service does not detect high-contrast mode as added by the Chrome \"High Contrast\"\n * browser extension.\n */\nclass HighContrastModeDetector {\n    constructor(_platform, document) {\n        this._platform = _platform;\n        this._document = document;\n        this._breakpointSubscription = inject(BreakpointObserver)\n            .observe('(forced-colors: active)')\n            .subscribe(() => {\n            if (this._hasCheckedHighContrastMode) {\n                this._hasCheckedHighContrastMode = false;\n                this._applyBodyHighContrastModeCssClasses();\n            }\n        });\n    }\n    /** Gets the current high-contrast-mode for the page. */\n    getHighContrastMode() {\n        if (!this._platform.isBrowser) {\n            return 0 /* HighContrastMode.NONE */;\n        }\n        // Create a test element with an arbitrary background-color that is neither black nor\n        // white; high-contrast mode will coerce the color to either black or white. Also ensure that\n        // appending the test element to the DOM does not affect layout by absolutely positioning it\n        const testElement = this._document.createElement('div');\n        testElement.style.backgroundColor = 'rgb(1,2,3)';\n        testElement.style.position = 'absolute';\n        this._document.body.appendChild(testElement);\n        // Get the computed style for the background color, collapsing spaces to normalize between\n        // browsers. Once we get this color, we no longer need the test element. Access the `window`\n        // via the document so we can fake it in tests. Note that we have extra null checks, because\n        // this logic will likely run during app bootstrap and throwing can break the entire app.\n        const documentWindow = this._document.defaultView || window;\n        const computedStyle = documentWindow && documentWindow.getComputedStyle\n            ? documentWindow.getComputedStyle(testElement)\n            : null;\n        const computedColor = ((computedStyle && computedStyle.backgroundColor) || '').replace(/ /g, '');\n        testElement.remove();\n        switch (computedColor) {\n            // Pre Windows 11 dark theme.\n            case 'rgb(0,0,0)':\n            // Windows 11 dark themes.\n            case 'rgb(45,50,54)':\n            case 'rgb(32,32,32)':\n                return 2 /* HighContrastMode.WHITE_ON_BLACK */;\n            // Pre Windows 11 light theme.\n            case 'rgb(255,255,255)':\n            // Windows 11 light theme.\n            case 'rgb(255,250,239)':\n                return 1 /* HighContrastMode.BLACK_ON_WHITE */;\n        }\n        return 0 /* HighContrastMode.NONE */;\n    }\n    ngOnDestroy() {\n        this._breakpointSubscription.unsubscribe();\n    }\n    /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */\n    _applyBodyHighContrastModeCssClasses() {\n        if (!this._hasCheckedHighContrastMode && this._platform.isBrowser && this._document.body) {\n            const bodyClasses = this._document.body.classList;\n            bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);\n            this._hasCheckedHighContrastMode = true;\n            const mode = this.getHighContrastMode();\n            if (mode === 1 /* HighContrastMode.BLACK_ON_WHITE */) {\n                bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS);\n            }\n            else if (mode === 2 /* HighContrastMode.WHITE_ON_BLACK */) {\n                bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);\n            }\n        }\n    }\n}\nHighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nHighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: HighContrastModeDetector, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Platform }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\nclass A11yModule {\n    constructor(highContrastModeDetector) {\n        highContrastModeDetector._applyBodyHighContrastModeCssClasses();\n    }\n}\nA11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule });\nA11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: A11yModule, declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], imports: [ObserversModule], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });\nA11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: A11yModule, imports: [ObserversModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: A11yModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [ObserversModule],\n                    declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n                    exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n                }]\n        }], ctorParameters: function () { return [{ type: HighContrastModeDetector }]; } });\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A11yModule, ActiveDescendantKeyManager, AriaDescriber, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, CDK_DESCRIBEDBY_ID_PREFIX, CdkAriaLive, CdkMonitorFocus, CdkTrapFocus, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_MONITOR_DEFAULT_OPTIONS, FOCUS_TRAP_INERT_STRATEGY, FocusKeyManager, FocusMonitor, FocusTrap, FocusTrapFactory, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, ListKeyManager, LiveAnnouncer, MESSAGES_CONTAINER_ID, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, inject, EventEmitter, Injectable, Optional, Inject, Directive, Output, Input, NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\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.io/license\n */\n/**\n * Injection token used to inject the document into Directionality.\n * This is used so that the value can be faked in tests.\n *\n * We can't use the real document in tests because changing the real `dir` causes geometry-based\n * tests in Safari to fail.\n *\n * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests\n * themselves use things like `querySelector` in test code.\n *\n * This token is defined in a separate file from Directionality as a workaround for\n * https://github.com/angular/angular/issues/22559\n *\n * @docs-private\n */\nconst DIR_DOCUMENT = new InjectionToken('cdk-dir-doc', {\n    providedIn: 'root',\n    factory: DIR_DOCUMENT_FACTORY,\n});\n/** @docs-private */\nfunction DIR_DOCUMENT_FACTORY() {\n    return inject(DOCUMENT);\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.io/license\n */\n/** Regex that matches locales with an RTL script. Taken from `goog.i18n.bidi.isRtlLanguage`. */\nconst RTL_LOCALE_PATTERN = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;\n/** Resolves a string value to a specific direction. */\nfunction _resolveDirectionality(rawValue) {\n    const value = rawValue?.toLowerCase() || '';\n    if (value === 'auto' && typeof navigator !== 'undefined' && navigator?.language) {\n        return RTL_LOCALE_PATTERN.test(navigator.language) ? 'rtl' : 'ltr';\n    }\n    return value === 'rtl' ? 'rtl' : 'ltr';\n}\n/**\n * The directionality (LTR / RTL) context for the application (or a subtree of it).\n * Exposes the current direction and a stream of direction changes.\n */\nclass Directionality {\n    constructor(_document) {\n        /** The current 'ltr' or 'rtl' value. */\n        this.value = 'ltr';\n        /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */\n        this.change = new EventEmitter();\n        if (_document) {\n            const bodyDir = _document.body ? _document.body.dir : null;\n            const htmlDir = _document.documentElement ? _document.documentElement.dir : null;\n            this.value = _resolveDirectionality(bodyDir || htmlDir || 'ltr');\n        }\n    }\n    ngOnDestroy() {\n        this.change.complete();\n    }\n}\nDirectionality.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Directionality, deps: [{ token: DIR_DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nDirectionality.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Directionality, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Directionality, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [DIR_DOCUMENT]\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.io/license\n */\n/**\n * Directive to listen for changes of direction of part of the DOM.\n *\n * Provides itself as Directionality such that descendant directives only need to ever inject\n * Directionality to get the closest direction.\n */\nclass Dir {\n    constructor() {\n        /** Normalized direction that accounts for invalid/unsupported values. */\n        this._dir = 'ltr';\n        /** Whether the `value` has been set to its initial value. */\n        this._isInitialized = false;\n        /** Event emitted when the direction changes. */\n        this.change = new EventEmitter();\n    }\n    /** @docs-private */\n    get dir() {\n        return this._dir;\n    }\n    set dir(value) {\n        const previousValue = this._dir;\n        // Note: `_resolveDirectionality` resolves the language based on the browser's language,\n        // whereas the browser does it based on the content of the element. Since doing so based\n        // on the content can be expensive, for now we're doing the simpler matching.\n        this._dir = _resolveDirectionality(value);\n        this._rawDir = value;\n        if (previousValue !== this._dir && this._isInitialized) {\n            this.change.emit(this._dir);\n        }\n    }\n    /** Current layout direction of the element. */\n    get value() {\n        return this.dir;\n    }\n    /** Initialize once default value has been set. */\n    ngAfterContentInit() {\n        this._isInitialized = true;\n    }\n    ngOnDestroy() {\n        this.change.complete();\n    }\n}\nDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: Dir, selector: \"[dir]\", inputs: { dir: \"dir\" }, outputs: { change: \"dirChange\" }, host: { properties: { \"attr.dir\": \"_rawDir\" } }, providers: [{ provide: Directionality, useExisting: Dir }], exportAs: [\"dir\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Dir, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[dir]',\n                    providers: [{ provide: Directionality, useExisting: Dir }],\n                    host: { '[attr.dir]': '_rawDir' },\n                    exportAs: 'dir',\n                }]\n        }], propDecorators: { change: [{\n                type: Output,\n                args: ['dirChange']\n            }], dir: [{\n                type: Input\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.io/license\n */\nclass BidiModule {\n}\nBidiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BidiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBidiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: BidiModule, declarations: [Dir], exports: [Dir] });\nBidiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BidiModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BidiModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [Dir],\n                    declarations: [Dir],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BidiModule, DIR_DOCUMENT, Dir, Directionality };\n","import { ElementRef } from '@angular/core';\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.io/license\n */\n/** Coerces a data-bound value (typically a string) to a boolean. */\nfunction coerceBooleanProperty(value) {\n    return value != null && `${value}` !== '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.io/license\n */\nfunction coerceNumberProperty(value, fallbackValue = 0) {\n    return _isNumberValue(value) ? Number(value) : fallbackValue;\n}\n/**\n * Whether the provided value is considered a number.\n * @docs-private\n */\nfunction _isNumberValue(value) {\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    return !isNaN(parseFloat(value)) && !isNaN(Number(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.io/license\n */\nfunction coerceArray(value) {\n    return Array.isArray(value) ? value : [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.io/license\n */\n/** Coerces a value to a CSS pixel value. */\nfunction coerceCssPixelValue(value) {\n    if (value == null) {\n        return '';\n    }\n    return typeof value === 'string' ? value : `${value}px`;\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.io/license\n */\n/**\n * Coerces an ElementRef or an Element into an element.\n * Useful for APIs that can accept either a ref or the native element itself.\n */\nfunction coerceElement(elementOrRef) {\n    return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef;\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.io/license\n */\n/**\n * Coerces a value to an array of trimmed non-empty strings.\n * Any input that is not an array, `null` or `undefined` will be turned into a string\n * via `toString()` and subsequently split with the given separator.\n * `null` and `undefined` will result in an empty array.\n * This results in the following outcomes:\n * - `null` -&gt; `[]`\n * - `[null]` -&gt; `[\"null\"]`\n * - `[\"a\", \"b \", \" \"]` -&gt; `[\"a\", \"b\"]`\n * - `[1, [2, 3]]` -&gt; `[\"1\", \"2,3\"]`\n * - `[{ a: 0 }]` -&gt; `[\"[object Object]\"]`\n * - `{ a: 0 }` -&gt; `[\"[object\", \"Object]\"]`\n *\n * Useful for defining CSS classes or table columns.\n * @param value the value to coerce into an array of strings\n * @param separator split-separator if value isn't an array\n */\nfunction coerceStringArray(value, separator = /\\s+/) {\n    const result = [];\n    if (value != null) {\n        const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator);\n        for (const sourceValue of sourceValues) {\n            const trimmedString = `${sourceValue}`.trim();\n            if (trimmedString) {\n                result.push(trimmedString);\n            }\n        }\n    }\n    return result;\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.io/license\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.io/license\n */\n\nexport { _isNumberValue, coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceNumberProperty, coerceStringArray };\n","import { ConnectableObservable, isObservable, of, Subject } from 'rxjs';\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken } from '@angular/core';\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.io/license\n */\nclass DataSource {\n}\n/** Checks whether an object is a data source. */\nfunction isDataSource(value) {\n    // Check if the value is a DataSource by observing if it has a connect function. Cannot\n    // be checked as an `instanceof DataSource` since people could create their own sources\n    // that match the interface, but don't extend DataSource. We also can't use `isObservable`\n    // here, because of some internal apps.\n    return value && typeof value.connect === 'function' && !(value instanceof ConnectableObservable);\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.io/license\n */\n/** DataSource wrapper for a native array. */\nclass ArrayDataSource extends DataSource {\n    constructor(_data) {\n        super();\n        this._data = _data;\n    }\n    connect() {\n        return isObservable(this._data) ? this._data : of(this._data);\n    }\n    disconnect() { }\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.io/license\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.io/license\n */\n/**\n * A repeater that destroys views when they are removed from a\n * {@link ViewContainerRef}. When new items are inserted into the container,\n * the repeater will always construct a new embedded view for each item.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nclass _DisposeViewRepeaterStrategy {\n    applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {\n        changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {\n            let view;\n            let operation;\n            if (record.previousIndex == null) {\n                const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n                view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index);\n                operation = 1 /* _ViewRepeaterOperation.INSERTED */;\n            }\n            else if (currentIndex == null) {\n                viewContainerRef.remove(adjustedPreviousIndex);\n                operation = 3 /* _ViewRepeaterOperation.REMOVED */;\n            }\n            else {\n                view = viewContainerRef.get(adjustedPreviousIndex);\n                viewContainerRef.move(view, currentIndex);\n                operation = 2 /* _ViewRepeaterOperation.MOVED */;\n            }\n            if (itemViewChanged) {\n                itemViewChanged({\n                    context: view?.context,\n                    operation,\n                    record,\n                });\n            }\n        });\n    }\n    detach() { }\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.io/license\n */\n/**\n * A repeater that caches views when they are removed from a\n * {@link ViewContainerRef}. When new items are inserted into the container,\n * the repeater will reuse one of the cached views instead of creating a new\n * embedded view. Recycling cached views reduces the quantity of expensive DOM\n * inserts.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nclass _RecycleViewRepeaterStrategy {\n    constructor() {\n        /**\n         * The size of the cache used to store unused views.\n         * Setting the cache size to `0` will disable caching. Defaults to 20 views.\n         */\n        this.viewCacheSize = 20;\n        /**\n         * View cache that stores embedded view instances that have been previously stamped out,\n         * but don't are not currently rendered. The view repeater will reuse these views rather than\n         * creating brand new ones.\n         *\n         * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.\n         */\n        this._viewCache = [];\n    }\n    /** Apply changes to the DOM. */\n    applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {\n        // Rearrange the views to put them in the right location.\n        changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {\n            let view;\n            let operation;\n            if (record.previousIndex == null) {\n                // Item added.\n                const viewArgsFactory = () => itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n                view = this._insertView(viewArgsFactory, currentIndex, viewContainerRef, itemValueResolver(record));\n                operation = view ? 1 /* _ViewRepeaterOperation.INSERTED */ : 0 /* _ViewRepeaterOperation.REPLACED */;\n            }\n            else if (currentIndex == null) {\n                // Item removed.\n                this._detachAndCacheView(adjustedPreviousIndex, viewContainerRef);\n                operation = 3 /* _ViewRepeaterOperation.REMOVED */;\n            }\n            else {\n                // Item moved.\n                view = this._moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, itemValueResolver(record));\n                operation = 2 /* _ViewRepeaterOperation.MOVED */;\n            }\n            if (itemViewChanged) {\n                itemViewChanged({\n                    context: view?.context,\n                    operation,\n                    record,\n                });\n            }\n        });\n    }\n    detach() {\n        for (const view of this._viewCache) {\n            view.destroy();\n        }\n        this._viewCache = [];\n    }\n    /**\n     * Inserts a view for a new item, either from the cache or by creating a new\n     * one. Returns `undefined` if the item was inserted into a cached view.\n     */\n    _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) {\n        const cachedView = this._insertViewFromCache(currentIndex, viewContainerRef);\n        if (cachedView) {\n            cachedView.context.$implicit = value;\n            return undefined;\n        }\n        const viewArgs = viewArgsFactory();\n        return viewContainerRef.createEmbeddedView(viewArgs.templateRef, viewArgs.context, viewArgs.index);\n    }\n    /** Detaches the view at the given index and inserts into the view cache. */\n    _detachAndCacheView(index, viewContainerRef) {\n        const detachedView = viewContainerRef.detach(index);\n        this._maybeCacheView(detachedView, viewContainerRef);\n    }\n    /** Moves view at the previous index to the current index. */\n    _moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, value) {\n        const view = viewContainerRef.get(adjustedPreviousIndex);\n        viewContainerRef.move(view, currentIndex);\n        view.context.$implicit = value;\n        return view;\n    }\n    /**\n     * Cache the given detached view. If the cache is full, the view will be\n     * destroyed.\n     */\n    _maybeCacheView(view, viewContainerRef) {\n        if (this._viewCache.length < this.viewCacheSize) {\n            this._viewCache.push(view);\n        }\n        else {\n            const index = viewContainerRef.indexOf(view);\n            // The host component could remove views from the container outside of\n            // the view repeater. It's unlikely this will occur, but just in case,\n            // destroy the view on its own, otherwise destroy it through the\n            // container to ensure that all the references are removed.\n            if (index === -1) {\n                view.destroy();\n            }\n            else {\n                viewContainerRef.remove(index);\n            }\n        }\n    }\n    /** Inserts a recycled view from the cache at the given index. */\n    _insertViewFromCache(index, viewContainerRef) {\n        const cachedView = this._viewCache.pop();\n        if (cachedView) {\n            viewContainerRef.insert(cachedView, index);\n        }\n        return cachedView || null;\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.io/license\n */\n/**\n * Class to be used to power selecting one or more options from a list.\n */\nclass SelectionModel {\n    constructor(_multiple = false, initiallySelectedValues, _emitChanges = true, compareWith) {\n        this._multiple = _multiple;\n        this._emitChanges = _emitChanges;\n        this.compareWith = compareWith;\n        /** Currently-selected values. */\n        this._selection = new Set();\n        /** Keeps track of the deselected options that haven't been emitted by the change event. */\n        this._deselectedToEmit = [];\n        /** Keeps track of the selected options that haven't been emitted by the change event. */\n        this._selectedToEmit = [];\n        /** Event emitted when the value has changed. */\n        this.changed = new Subject();\n        if (initiallySelectedValues && initiallySelectedValues.length) {\n            if (_multiple) {\n                initiallySelectedValues.forEach(value => this._markSelected(value));\n            }\n            else {\n                this._markSelected(initiallySelectedValues[0]);\n            }\n            // Clear the array in order to avoid firing the change event for preselected values.\n            this._selectedToEmit.length = 0;\n        }\n    }\n    /** Selected values. */\n    get selected() {\n        if (!this._selected) {\n            this._selected = Array.from(this._selection.values());\n        }\n        return this._selected;\n    }\n    /**\n     * Selects a value or an array of values.\n     * @param values The values to select\n     * @return Whether the selection changed as a result of this call\n     * @breaking-change 16.0.0 make return type boolean\n     */\n    select(...values) {\n        this._verifyValueAssignment(values);\n        values.forEach(value => this._markSelected(value));\n        const changed = this._hasQueuedChanges();\n        this._emitChangeEvent();\n        return changed;\n    }\n    /**\n     * Deselects a value or an array of values.\n     * @param values The values to deselect\n     * @return Whether the selection changed as a result of this call\n     * @breaking-change 16.0.0 make return type boolean\n     */\n    deselect(...values) {\n        this._verifyValueAssignment(values);\n        values.forEach(value => this._unmarkSelected(value));\n        const changed = this._hasQueuedChanges();\n        this._emitChangeEvent();\n        return changed;\n    }\n    /**\n     * Sets the selected values\n     * @param values The new selected values\n     * @return Whether the selection changed as a result of this call\n     * @breaking-change 16.0.0 make return type boolean\n     */\n    setSelection(...values) {\n        this._verifyValueAssignment(values);\n        const oldValues = this.selected;\n        const newSelectedSet = new Set(values);\n        values.forEach(value => this._markSelected(value));\n        oldValues\n            .filter(value => !newSelectedSet.has(value))\n            .forEach(value => this._unmarkSelected(value));\n        const changed = this._hasQueuedChanges();\n        this._emitChangeEvent();\n        return changed;\n    }\n    /**\n     * Toggles a value between selected and deselected.\n     * @param value The value to toggle\n     * @return Whether the selection changed as a result of this call\n     * @breaking-change 16.0.0 make return type boolean\n     */\n    toggle(value) {\n        return this.isSelected(value) ? this.deselect(value) : this.select(value);\n    }\n    /**\n     * Clears all of the selected values.\n     * @param flushEvent Whether to flush the changes in an event.\n     *   If false, the changes to the selection will be flushed along with the next event.\n     * @return Whether the selection changed as a result of this call\n     * @breaking-change 16.0.0 make return type boolean\n     */\n    clear(flushEvent = true) {\n        this._unmarkAll();\n        const changed = this._hasQueuedChanges();\n        if (flushEvent) {\n            this._emitChangeEvent();\n        }\n        return changed;\n    }\n    /**\n     * Determines whether a value is selected.\n     */\n    isSelected(value) {\n        if (this.compareWith) {\n            for (const otherValue of this._selection) {\n                if (this.compareWith(otherValue, value)) {\n                    return true;\n                }\n            }\n            return false;\n        }\n        return this._selection.has(value);\n    }\n    /**\n     * Determines whether the model does not have a value.\n     */\n    isEmpty() {\n        return this._selection.size === 0;\n    }\n    /**\n     * Determines whether the model has a value.\n     */\n    hasValue() {\n        return !this.isEmpty();\n    }\n    /**\n     * Sorts the selected values based on a predicate function.\n     */\n    sort(predicate) {\n        if (this._multiple && this.selected) {\n            this._selected.sort(predicate);\n        }\n    }\n    /**\n     * Gets whether multiple values can be selected.\n     */\n    isMultipleSelection() {\n        return this._multiple;\n    }\n    /** Emits a change event and clears the records of selected and deselected values. */\n    _emitChangeEvent() {\n        // Clear the selected values so they can be re-cached.\n        this._selected = null;\n        if (this._selectedToEmit.length || this._deselectedToEmit.length) {\n            this.changed.next({\n                source: this,\n                added: this._selectedToEmit,\n                removed: this._deselectedToEmit,\n            });\n            this._deselectedToEmit = [];\n            this._selectedToEmit = [];\n        }\n    }\n    /** Selects a value. */\n    _markSelected(value) {\n        if (!this.isSelected(value)) {\n            if (!this._multiple) {\n                this._unmarkAll();\n            }\n            if (!this.isSelected(value)) {\n                this._selection.add(value);\n            }\n            if (this._emitChanges) {\n                this._selectedToEmit.push(value);\n            }\n        }\n    }\n    /** Deselects a value. */\n    _unmarkSelected(value) {\n        if (this.isSelected(value)) {\n            this._selection.delete(value);\n            if (this._emitChanges) {\n                this._deselectedToEmit.push(value);\n            }\n        }\n    }\n    /** Clears out the selected values. */\n    _unmarkAll() {\n        if (!this.isEmpty()) {\n            this._selection.forEach(value => this._unmarkSelected(value));\n        }\n    }\n    /**\n     * Verifies the value assignment and throws an error if the specified value array is\n     * including multiple values while the selection model is not supporting multiple values.\n     */\n    _verifyValueAssignment(values) {\n        if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMultipleValuesInSingleSelectionError();\n        }\n    }\n    /** Whether there are queued up change to be emitted. */\n    _hasQueuedChanges() {\n        return !!(this._deselectedToEmit.length || this._selectedToEmit.length);\n    }\n}\n/**\n * Returns an error that reports that multiple values are passed into a selection model\n * with a single value.\n * @docs-private\n */\nfunction getMultipleValuesInSingleSelectionError() {\n    return Error('Cannot pass multiple values into SelectionModel with single-value mode.');\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.io/license\n */\n/**\n * Class to coordinate unique selection based on name.\n * Intended to be consumed as an Angular service.\n * This service is needed because native radio change events are only fired on the item currently\n * being selected, and we still need to uncheck the previous selection.\n *\n * This service does not *store* any IDs and names because they may change at any time, so it is\n * less error-prone if they are simply passed through when the events occur.\n */\nclass UniqueSelectionDispatcher {\n    constructor() {\n        this._listeners = [];\n    }\n    /**\n     * Notify other items that selection for the given name has been set.\n     * @param id ID of the item.\n     * @param name Name of the item.\n     */\n    notify(id, name) {\n        for (let listener of this._listeners) {\n            listener(id, name);\n        }\n    }\n    /**\n     * Listen for future changes to item selection.\n     * @return Function used to deregister listener\n     */\n    listen(listener) {\n        this._listeners.push(listener);\n        return () => {\n            this._listeners = this._listeners.filter((registered) => {\n                return listener !== registered;\n            });\n        };\n    }\n    ngOnDestroy() {\n        this._listeners = [];\n    }\n}\nUniqueSelectionDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: UniqueSelectionDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nUniqueSelectionDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: UniqueSelectionDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: UniqueSelectionDispatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\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.io/license\n */\n/**\n * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.\n * @docs-private\n */\nconst _VIEW_REPEATER_STRATEGY = new InjectionToken('_ViewRepeater');\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ArrayDataSource, DataSource, SelectionModel, UniqueSelectionDispatcher, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy, _VIEW_REPEATER_STRATEGY, getMultipleValuesInSingleSelectionError, isDataSource };\n","import * as i0 from '@angular/core';\nimport { Injectable, Inject, InjectionToken, Directive, Input, EventEmitter, Optional, SkipSelf, Output, Self, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport * as i1 from '@angular/cdk/scrolling';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';\nimport { coerceBooleanProperty, coerceElement, coerceArray, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';\nimport { Subject, Subscription, interval, animationFrameScheduler, Observable, merge } from 'rxjs';\nimport { takeUntil, startWith, map, take, tap, switchMap } from 'rxjs/operators';\nimport * as i3 from '@angular/cdk/bidi';\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.io/license\n */\n/**\n * Shallow-extends a stylesheet object with another stylesheet-like object.\n * Note that the keys in `source` have to be dash-cased.\n * @docs-private\n */\nfunction extendStyles(dest, source, importantProperties) {\n    for (let key in source) {\n        if (source.hasOwnProperty(key)) {\n            const value = source[key];\n            if (value) {\n                dest.setProperty(key, value, importantProperties?.has(key) ? 'important' : '');\n            }\n            else {\n                dest.removeProperty(key);\n            }\n        }\n    }\n    return dest;\n}\n/**\n * Toggles whether the native drag interactions should be enabled for an element.\n * @param element Element on which to toggle the drag interactions.\n * @param enable Whether the drag interactions should be enabled.\n * @docs-private\n */\nfunction toggleNativeDragInteractions(element, enable) {\n    const userSelect = enable ? '' : 'none';\n    extendStyles(element.style, {\n        'touch-action': enable ? '' : 'none',\n        '-webkit-user-drag': enable ? '' : 'none',\n        '-webkit-tap-highlight-color': enable ? '' : 'transparent',\n        'user-select': userSelect,\n        '-ms-user-select': userSelect,\n        '-webkit-user-select': userSelect,\n        '-moz-user-select': userSelect,\n    });\n}\n/**\n * Toggles whether an element is visible while preserving its dimensions.\n * @param element Element whose visibility to toggle\n * @param enable Whether the element should be visible.\n * @param importantProperties Properties to be set as `!important`.\n * @docs-private\n */\nfunction toggleVisibility(element, enable, importantProperties) {\n    extendStyles(element.style, {\n        position: enable ? '' : 'fixed',\n        top: enable ? '' : '0',\n        opacity: enable ? '' : '0',\n        left: enable ? '' : '-999em',\n    }, importantProperties);\n}\n/**\n * Combines a transform string with an optional other transform\n * that exited before the base transform was applied.\n */\nfunction combineTransforms(transform, initialTransform) {\n    return initialTransform && initialTransform != 'none'\n        ? transform + ' ' + initialTransform\n        : transform;\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.io/license\n */\n/** Parses a CSS time value to milliseconds. */\nfunction parseCssTimeUnitsToMs(value) {\n    // Some browsers will return it in seconds, whereas others will return milliseconds.\n    const multiplier = value.toLowerCase().indexOf('ms') > -1 ? 1 : 1000;\n    return parseFloat(value) * multiplier;\n}\n/** Gets the transform transition duration, including the delay, of an element in milliseconds. */\nfunction getTransformTransitionDurationInMs(element) {\n    const computedStyle = getComputedStyle(element);\n    const transitionedProperties = parseCssPropertyValue(computedStyle, 'transition-property');\n    const property = transitionedProperties.find(prop => prop === 'transform' || prop === 'all');\n    // If there's no transition for `all` or `transform`, we shouldn't do anything.\n    if (!property) {\n        return 0;\n    }\n    // Get the index of the property that we're interested in and match\n    // it up to the same index in `transition-delay` and `transition-duration`.\n    const propertyIndex = transitionedProperties.indexOf(property);\n    const rawDurations = parseCssPropertyValue(computedStyle, 'transition-duration');\n    const rawDelays = parseCssPropertyValue(computedStyle, 'transition-delay');\n    return (parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +\n        parseCssTimeUnitsToMs(rawDelays[propertyIndex]));\n}\n/** Parses out multiple values from a computed style into an array. */\nfunction parseCssPropertyValue(computedStyle, name) {\n    const value = computedStyle.getPropertyValue(name);\n    return value.split(',').map(part => part.trim());\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.io/license\n */\n/** Gets a mutable version of an element's bounding `ClientRect`. */\nfunction getMutableClientRect(element) {\n    const clientRect = element.getBoundingClientRect();\n    // We need to clone the `clientRect` here, because all the values on it are readonly\n    // and we need to be able to update them. Also we can't use a spread here, because\n    // the values on a `ClientRect` aren't own properties. See:\n    // https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect#Notes\n    return {\n        top: clientRect.top,\n        right: clientRect.right,\n        bottom: clientRect.bottom,\n        left: clientRect.left,\n        width: clientRect.width,\n        height: clientRect.height,\n        x: clientRect.x,\n        y: clientRect.y,\n    };\n}\n/**\n * Checks whether some coordinates are within a `ClientRect`.\n * @param clientRect ClientRect that is being checked.\n * @param x Coordinates along the X axis.\n * @param y Coordinates along the Y axis.\n */\nfunction isInsideClientRect(clientRect, x, y) {\n    const { top, bottom, left, right } = clientRect;\n    return y >= top && y <= bottom && x >= left && x <= right;\n}\n/**\n * Updates the top/left positions of a `ClientRect`, as well as their bottom/right counterparts.\n * @param clientRect `ClientRect` that should be updated.\n * @param top Amount to add to the `top` position.\n * @param left Amount to add to the `left` position.\n */\nfunction adjustClientRect(clientRect, top, left) {\n    clientRect.top += top;\n    clientRect.bottom = clientRect.top + clientRect.height;\n    clientRect.left += left;\n    clientRect.right = clientRect.left + clientRect.width;\n}\n/**\n * Checks whether the pointer coordinates are close to a ClientRect.\n * @param rect ClientRect to check against.\n * @param threshold Threshold around the ClientRect.\n * @param pointerX Coordinates along the X axis.\n * @param pointerY Coordinates along the Y axis.\n */\nfunction isPointerNearClientRect(rect, threshold, pointerX, pointerY) {\n    const { top, right, bottom, left, width, height } = rect;\n    const xThreshold = width * threshold;\n    const yThreshold = height * threshold;\n    return (pointerY > top - yThreshold &&\n        pointerY < bottom + yThreshold &&\n        pointerX > left - xThreshold &&\n        pointerX < right + xThreshold);\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.io/license\n */\n/** Keeps track of the scroll position and dimensions of the parents of an element. */\nclass ParentPositionTracker {\n    constructor(_document) {\n        this._document = _document;\n        /** Cached positions of the scrollable parent elements. */\n        this.positions = new Map();\n    }\n    /** Clears the cached positions. */\n    clear() {\n        this.positions.clear();\n    }\n    /** Caches the positions. Should be called at the beginning of a drag sequence. */\n    cache(elements) {\n        this.clear();\n        this.positions.set(this._document, {\n            scrollPosition: this.getViewportScrollPosition(),\n        });\n        elements.forEach(element => {\n            this.positions.set(element, {\n                scrollPosition: { top: element.scrollTop, left: element.scrollLeft },\n                clientRect: getMutableClientRect(element),\n            });\n        });\n    }\n    /** Handles scrolling while a drag is taking place. */\n    handleScroll(event) {\n        const target = _getEventTarget(event);\n        const cachedPosition = this.positions.get(target);\n        if (!cachedPosition) {\n            return null;\n        }\n        const scrollPosition = cachedPosition.scrollPosition;\n        let newTop;\n        let newLeft;\n        if (target === this._document) {\n            const viewportScrollPosition = this.getViewportScrollPosition();\n            newTop = viewportScrollPosition.top;\n            newLeft = viewportScrollPosition.left;\n        }\n        else {\n            newTop = target.scrollTop;\n            newLeft = target.scrollLeft;\n        }\n        const topDifference = scrollPosition.top - newTop;\n        const leftDifference = scrollPosition.left - newLeft;\n        // Go through and update the cached positions of the scroll\n        // parents that are inside the element that was scrolled.\n        this.positions.forEach((position, node) => {\n            if (position.clientRect && target !== node && target.contains(node)) {\n                adjustClientRect(position.clientRect, topDifference, leftDifference);\n            }\n        });\n        scrollPosition.top = newTop;\n        scrollPosition.left = newLeft;\n        return { top: topDifference, left: leftDifference };\n    }\n    /**\n     * Gets the scroll position of the viewport. Note that we use the scrollX and scrollY directly,\n     * instead of going through the `ViewportRuler`, because the first value the ruler looks at is\n     * the top/left offset of the `document.documentElement` which works for most cases, but breaks\n     * if the element is offset by something like the `BlockScrollStrategy`.\n     */\n    getViewportScrollPosition() {\n        return { top: window.scrollY, left: window.scrollX };\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.io/license\n */\n/** Creates a deep clone of an element. */\nfunction deepCloneNode(node) {\n    const clone = node.cloneNode(true);\n    const descendantsWithId = clone.querySelectorAll('[id]');\n    const nodeName = node.nodeName.toLowerCase();\n    // Remove the `id` to avoid having multiple elements with the same id on the page.\n    clone.removeAttribute('id');\n    for (let i = 0; i < descendantsWithId.length; i++) {\n        descendantsWithId[i].removeAttribute('id');\n    }\n    if (nodeName === 'canvas') {\n        transferCanvasData(node, clone);\n    }\n    else if (nodeName === 'input' || nodeName === 'select' || nodeName === 'textarea') {\n        transferInputData(node, clone);\n    }\n    transferData('canvas', node, clone, transferCanvasData);\n    transferData('input, textarea, select', node, clone, transferInputData);\n    return clone;\n}\n/** Matches elements between an element and its clone and allows for their data to be cloned. */\nfunction transferData(selector, node, clone, callback) {\n    const descendantElements = node.querySelectorAll(selector);\n    if (descendantElements.length) {\n        const cloneElements = clone.querySelectorAll(selector);\n        for (let i = 0; i < descendantElements.length; i++) {\n            callback(descendantElements[i], cloneElements[i]);\n        }\n    }\n}\n// Counter for unique cloned radio button names.\nlet cloneUniqueId = 0;\n/** Transfers the data of one input element to another. */\nfunction transferInputData(source, clone) {\n    // Browsers throw an error when assigning the value of a file input programmatically.\n    if (clone.type !== 'file') {\n        clone.value = source.value;\n    }\n    // Radio button `name` attributes must be unique for radio button groups\n    // otherwise original radio buttons can lose their checked state\n    // once the clone is inserted in the DOM.\n    if (clone.type === 'radio' && clone.name) {\n        clone.name = `mat-clone-${clone.name}-${cloneUniqueId++}`;\n    }\n}\n/** Transfers the data of one canvas element to another. */\nfunction transferCanvasData(source, clone) {\n    const context = clone.getContext('2d');\n    if (context) {\n        // In some cases `drawImage` can throw (e.g. if the canvas size is 0x0).\n        // We can't do much about it so just ignore the error.\n        try {\n            context.drawImage(source, 0, 0);\n        }\n        catch { }\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.io/license\n */\n/** Options that can be used to bind a passive event listener. */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });\n/** Options that can be used to bind an active event listener. */\nconst activeEventListenerOptions = normalizePassiveListenerOptions({ passive: false });\n/**\n * Time in milliseconds for which to ignore mouse events, after\n * receiving a touch event. Used to avoid doing double work for\n * touch devices where the browser fires fake mouse events, in\n * addition to touch events.\n */\nconst MOUSE_EVENT_IGNORE_TIME = 800;\n/** Inline styles to be set as `!important` while dragging. */\nconst dragImportantProperties = new Set([\n    // Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.\n    'position',\n]);\n/**\n * Reference to a draggable item. Used to manipulate or dispose of the item.\n */\nclass DragRef {\n    constructor(element, _config, _document, _ngZone, _viewportRuler, _dragDropRegistry) {\n        this._config = _config;\n        this._document = _document;\n        this._ngZone = _ngZone;\n        this._viewportRuler = _viewportRuler;\n        this._dragDropRegistry = _dragDropRegistry;\n        /**\n         * CSS `transform` applied to the element when it isn't being dragged. We need a\n         * passive transform in order for the dragged element to retain its new position\n         * after the user has stopped dragging and because we need to know the relative\n         * position in case they start dragging again. This corresponds to `element.style.transform`.\n         */\n        this._passiveTransform = { x: 0, y: 0 };\n        /** CSS `transform` that is applied to the element while it's being dragged. */\n        this._activeTransform = { x: 0, y: 0 };\n        /**\n         * Whether the dragging sequence has been started. Doesn't\n         * necessarily mean that the element has been moved.\n         */\n        this._hasStartedDragging = false;\n        /** Emits when the item is being moved. */\n        this._moveEvents = new Subject();\n        /** Subscription to pointer movement events. */\n        this._pointerMoveSubscription = Subscription.EMPTY;\n        /** Subscription to the event that is dispatched when the user lifts their pointer. */\n        this._pointerUpSubscription = Subscription.EMPTY;\n        /** Subscription to the viewport being scrolled. */\n        this._scrollSubscription = Subscription.EMPTY;\n        /** Subscription to the viewport being resized. */\n        this._resizeSubscription = Subscription.EMPTY;\n        /** Cached reference to the boundary element. */\n        this._boundaryElement = null;\n        /** Whether the native dragging interactions have been enabled on the root element. */\n        this._nativeInteractionsEnabled = true;\n        /** Elements that can be used to drag the draggable item. */\n        this._handles = [];\n        /** Registered handles that are currently disabled. */\n        this._disabledHandles = new Set();\n        /** Layout direction of the item. */\n        this._direction = 'ltr';\n        /**\n         * Amount of milliseconds to wait after the user has put their\n         * pointer down before starting to drag the element.\n         */\n        this.dragStartDelay = 0;\n        this._disabled = false;\n        /** Emits as the drag sequence is being prepared. */\n        this.beforeStarted = new Subject();\n        /** Emits when the user starts dragging the item. */\n        this.started = new Subject();\n        /** Emits when the user has released a drag item, before any animations have started. */\n        this.released = new Subject();\n        /** Emits when the user stops dragging an item in the container. */\n        this.ended = new Subject();\n        /** Emits when the user has moved the item into a new container. */\n        this.entered = new Subject();\n        /** Emits when the user removes the item its container by dragging it into another container. */\n        this.exited = new Subject();\n        /** Emits when the user drops the item inside a container. */\n        this.dropped = new Subject();\n        /**\n         * Emits as the user is dragging the item. Use with caution,\n         * because this event will fire for every pixel that the user has dragged.\n         */\n        this.moved = this._moveEvents;\n        /** Handler for the `mousedown`/`touchstart` events. */\n        this._pointerDown = (event) => {\n            this.beforeStarted.next();\n            // Delegate the event based on whether it started from a handle or the element itself.\n            if (this._handles.length) {\n                const targetHandle = this._getTargetHandle(event);\n                if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {\n                    this._initializeDragSequence(targetHandle, event);\n                }\n            }\n            else if (!this.disabled) {\n                this._initializeDragSequence(this._rootElement, event);\n            }\n        };\n        /** Handler that is invoked when the user moves their pointer after they've initiated a drag. */\n        this._pointerMove = (event) => {\n            const pointerPosition = this._getPointerPositionOnPage(event);\n            if (!this._hasStartedDragging) {\n                const distanceX = Math.abs(pointerPosition.x - this._pickupPositionOnPage.x);\n                const distanceY = Math.abs(pointerPosition.y - this._pickupPositionOnPage.y);\n                const isOverThreshold = distanceX + distanceY >= this._config.dragStartThreshold;\n                // Only start dragging after the user has moved more than the minimum distance in either\n                // direction. Note that this is preferable over doing something like `skip(minimumDistance)`\n                // in the `pointerMove` subscription, because we're not guaranteed to have one move event\n                // per pixel of movement (e.g. if the user moves their pointer quickly).\n                if (isOverThreshold) {\n                    const isDelayElapsed = Date.now() >= this._dragStartTime + this._getDragStartDelay(event);\n                    const container = this._dropContainer;\n                    if (!isDelayElapsed) {\n                        this._endDragSequence(event);\n                        return;\n                    }\n                    // Prevent other drag sequences from starting while something in the container is still\n                    // being dragged. This can happen while we're waiting for the drop animation to finish\n                    // and can cause errors, because some elements might still be moving around.\n                    if (!container || (!container.isDragging() && !container.isReceiving())) {\n                        // Prevent the default action as soon as the dragging sequence is considered as\n                        // \"started\" since waiting for the next event can allow the device to begin scrolling.\n                        event.preventDefault();\n                        this._hasStartedDragging = true;\n                        this._ngZone.run(() => this._startDragSequence(event));\n                    }\n                }\n                return;\n            }\n            // We prevent the default action down here so that we know that dragging has started. This is\n            // important for touch devices where doing this too early can unnecessarily block scrolling,\n            // if there's a dragging delay.\n            event.preventDefault();\n            const constrainedPointerPosition = this._getConstrainedPointerPosition(pointerPosition);\n            this._hasMoved = true;\n            this._lastKnownPointerPosition = pointerPosition;\n            this._updatePointerDirectionDelta(constrainedPointerPosition);\n            if (this._dropContainer) {\n                this._updateActiveDropContainer(constrainedPointerPosition, pointerPosition);\n            }\n            else {\n                // If there's a position constraint function, we want the element's top/left to be at the\n                // specific position on the page. Use the initial position as a reference if that's the case.\n                const offset = this.constrainPosition ? this._initialClientRect : this._pickupPositionOnPage;\n                const activeTransform = this._activeTransform;\n                activeTransform.x = constrainedPointerPosition.x - offset.x + this._passiveTransform.x;\n                activeTransform.y = constrainedPointerPosition.y - offset.y + this._passiveTransform.y;\n                this._applyRootElementTransform(activeTransform.x, activeTransform.y);\n            }\n            // Since this event gets fired for every pixel while dragging, we only\n            // want to fire it if the consumer opted into it. Also we have to\n            // re-enter the zone because we run all of the events on the outside.\n            if (this._moveEvents.observers.length) {\n                this._ngZone.run(() => {\n                    this._moveEvents.next({\n                        source: this,\n                        pointerPosition: constrainedPointerPosition,\n                        event,\n                        distance: this._getDragDistance(constrainedPointerPosition),\n                        delta: this._pointerDirectionDelta,\n                    });\n                });\n            }\n        };\n        /** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */\n        this._pointerUp = (event) => {\n            this._endDragSequence(event);\n        };\n        /** Handles a native `dragstart` event. */\n        this._nativeDragStart = (event) => {\n            if (this._handles.length) {\n                const targetHandle = this._getTargetHandle(event);\n                if (targetHandle && !this._disabledHandles.has(targetHandle) && !this.disabled) {\n                    event.preventDefault();\n                }\n            }\n            else if (!this.disabled) {\n                // Usually this isn't necessary since the we prevent the default action in `pointerDown`,\n                // but some cases like dragging of links can slip through (see #24403).\n                event.preventDefault();\n            }\n        };\n        this.withRootElement(element).withParent(_config.parentDragRef || null);\n        this._parentPositions = new ParentPositionTracker(_document);\n        _dragDropRegistry.registerDragItem(this);\n    }\n    /** Whether starting to drag this element is disabled. */\n    get disabled() {\n        return this._disabled || !!(this._dropContainer && this._dropContainer.disabled);\n    }\n    set disabled(value) {\n        const newValue = coerceBooleanProperty(value);\n        if (newValue !== this._disabled) {\n            this._disabled = newValue;\n            this._toggleNativeDragInteractions();\n            this._handles.forEach(handle => toggleNativeDragInteractions(handle, newValue));\n        }\n    }\n    /**\n     * Returns the element that is being used as a placeholder\n     * while the current element is being dragged.\n     */\n    getPlaceholderElement() {\n        return this._placeholder;\n    }\n    /** Returns the root draggable element. */\n    getRootElement() {\n        return this._rootElement;\n    }\n    /**\n     * Gets the currently-visible element that represents the drag item.\n     * While dragging this is the placeholder, otherwise it's the root element.\n     */\n    getVisibleElement() {\n        return this.isDragging() ? this.getPlaceholderElement() : this.getRootElement();\n    }\n    /** Registers the handles that can be used to drag the element. */\n    withHandles(handles) {\n        this._handles = handles.map(handle => coerceElement(handle));\n        this._handles.forEach(handle => toggleNativeDragInteractions(handle, this.disabled));\n        this._toggleNativeDragInteractions();\n        // Delete any lingering disabled handles that may have been destroyed. Note that we re-create\n        // the set, rather than iterate over it and filter out the destroyed handles, because while\n        // the ES spec allows for sets to be modified while they're being iterated over, some polyfills\n        // use an array internally which may throw an error.\n        const disabledHandles = new Set();\n        this._disabledHandles.forEach(handle => {\n            if (this._handles.indexOf(handle) > -1) {\n                disabledHandles.add(handle);\n            }\n        });\n        this._disabledHandles = disabledHandles;\n        return this;\n    }\n    /**\n     * Registers the template that should be used for the drag preview.\n     * @param template Template that from which to stamp out the preview.\n     */\n    withPreviewTemplate(template) {\n        this._previewTemplate = template;\n        return this;\n    }\n    /**\n     * Registers the template that should be used for the drag placeholder.\n     * @param template Template that from which to stamp out the placeholder.\n     */\n    withPlaceholderTemplate(template) {\n        this._placeholderTemplate = template;\n        return this;\n    }\n    /**\n     * Sets an alternate drag root element. The root element is the element that will be moved as\n     * the user is dragging. Passing an alternate root element is useful when trying to enable\n     * dragging on an element that you might not have access to.\n     */\n    withRootElement(rootElement) {\n        const element = coerceElement(rootElement);\n        if (element !== this._rootElement) {\n            if (this._rootElement) {\n                this._removeRootElementListeners(this._rootElement);\n            }\n            this._ngZone.runOutsideAngular(() => {\n                element.addEventListener('mousedown', this._pointerDown, activeEventListenerOptions);\n                element.addEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);\n                element.addEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);\n            });\n            this._initialTransform = undefined;\n            this._rootElement = element;\n        }\n        if (typeof SVGElement !== 'undefined' && this._rootElement instanceof SVGElement) {\n            this._ownerSVGElement = this._rootElement.ownerSVGElement;\n        }\n        return this;\n    }\n    /**\n     * Element to which the draggable's position will be constrained.\n     */\n    withBoundaryElement(boundaryElement) {\n        this._boundaryElement = boundaryElement ? coerceElement(boundaryElement) : null;\n        this._resizeSubscription.unsubscribe();\n        if (boundaryElement) {\n            this._resizeSubscription = this._viewportRuler\n                .change(10)\n                .subscribe(() => this._containInsideBoundaryOnResize());\n        }\n        return this;\n    }\n    /** Sets the parent ref that the ref is nested in.  */\n    withParent(parent) {\n        this._parentDragRef = parent;\n        return this;\n    }\n    /** Removes the dragging functionality from the DOM element. */\n    dispose() {\n        this._removeRootElementListeners(this._rootElement);\n        // Do this check before removing from the registry since it'll\n        // stop being considered as dragged once it is removed.\n        if (this.isDragging()) {\n            // Since we move out the element to the end of the body while it's being\n            // dragged, we have to make sure that it's removed if it gets destroyed.\n            this._rootElement?.remove();\n        }\n        this._anchor?.remove();\n        this._destroyPreview();\n        this._destroyPlaceholder();\n        this._dragDropRegistry.removeDragItem(this);\n        this._removeSubscriptions();\n        this.beforeStarted.complete();\n        this.started.complete();\n        this.released.complete();\n        this.ended.complete();\n        this.entered.complete();\n        this.exited.complete();\n        this.dropped.complete();\n        this._moveEvents.complete();\n        this._handles = [];\n        this._disabledHandles.clear();\n        this._dropContainer = undefined;\n        this._resizeSubscription.unsubscribe();\n        this._parentPositions.clear();\n        this._boundaryElement =\n            this._rootElement =\n                this._ownerSVGElement =\n                    this._placeholderTemplate =\n                        this._previewTemplate =\n                            this._anchor =\n                                this._parentDragRef =\n                                    null;\n    }\n    /** Checks whether the element is currently being dragged. */\n    isDragging() {\n        return this._hasStartedDragging && this._dragDropRegistry.isDragging(this);\n    }\n    /** Resets a standalone drag item to its initial position. */\n    reset() {\n        this._rootElement.style.transform = this._initialTransform || '';\n        this._activeTransform = { x: 0, y: 0 };\n        this._passiveTransform = { x: 0, y: 0 };\n    }\n    /**\n     * Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.\n     * @param handle Handle element that should be disabled.\n     */\n    disableHandle(handle) {\n        if (!this._disabledHandles.has(handle) && this._handles.indexOf(handle) > -1) {\n            this._disabledHandles.add(handle);\n            toggleNativeDragInteractions(handle, true);\n        }\n    }\n    /**\n     * Enables a handle, if it has been disabled.\n     * @param handle Handle element to be enabled.\n     */\n    enableHandle(handle) {\n        if (this._disabledHandles.has(handle)) {\n            this._disabledHandles.delete(handle);\n            toggleNativeDragInteractions(handle, this.disabled);\n        }\n    }\n    /** Sets the layout direction of the draggable item. */\n    withDirection(direction) {\n        this._direction = direction;\n        return this;\n    }\n    /** Sets the container that the item is part of. */\n    _withDropContainer(container) {\n        this._dropContainer = container;\n    }\n    /**\n     * Gets the current position in pixels the draggable outside of a drop container.\n     */\n    getFreeDragPosition() {\n        const position = this.isDragging() ? this._activeTransform : this._passiveTransform;\n        return { x: position.x, y: position.y };\n    }\n    /**\n     * Sets the current position in pixels the draggable outside of a drop container.\n     * @param value New position to be set.\n     */\n    setFreeDragPosition(value) {\n        this._activeTransform = { x: 0, y: 0 };\n        this._passiveTransform.x = value.x;\n        this._passiveTransform.y = value.y;\n        if (!this._dropContainer) {\n            this._applyRootElementTransform(value.x, value.y);\n        }\n        return this;\n    }\n    /**\n     * Sets the container into which to insert the preview element.\n     * @param value Container into which to insert the preview.\n     */\n    withPreviewContainer(value) {\n        this._previewContainer = value;\n        return this;\n    }\n    /** Updates the item's sort order based on the last-known pointer position. */\n    _sortFromLastPointerPosition() {\n        const position = this._lastKnownPointerPosition;\n        if (position && this._dropContainer) {\n            this._updateActiveDropContainer(this._getConstrainedPointerPosition(position), position);\n        }\n    }\n    /** Unsubscribes from the global subscriptions. */\n    _removeSubscriptions() {\n        this._pointerMoveSubscription.unsubscribe();\n        this._pointerUpSubscription.unsubscribe();\n        this._scrollSubscription.unsubscribe();\n    }\n    /** Destroys the preview element and its ViewRef. */\n    _destroyPreview() {\n        this._preview?.remove();\n        this._previewRef?.destroy();\n        this._preview = this._previewRef = null;\n    }\n    /** Destroys the placeholder element and its ViewRef. */\n    _destroyPlaceholder() {\n        this._placeholder?.remove();\n        this._placeholderRef?.destroy();\n        this._placeholder = this._placeholderRef = null;\n    }\n    /**\n     * Clears subscriptions and stops the dragging sequence.\n     * @param event Browser event object that ended the sequence.\n     */\n    _endDragSequence(event) {\n        // Note that here we use `isDragging` from the service, rather than from `this`.\n        // The difference is that the one from the service reflects whether a dragging sequence\n        // has been initiated, whereas the one on `this` includes whether the user has passed\n        // the minimum dragging threshold.\n        if (!this._dragDropRegistry.isDragging(this)) {\n            return;\n        }\n        this._removeSubscriptions();\n        this._dragDropRegistry.stopDragging(this);\n        this._toggleNativeDragInteractions();\n        if (this._handles) {\n            this._rootElement.style.webkitTapHighlightColor =\n                this._rootElementTapHighlight;\n        }\n        if (!this._hasStartedDragging) {\n            return;\n        }\n        this.released.next({ source: this, event });\n        if (this._dropContainer) {\n            // Stop scrolling immediately, instead of waiting for the animation to finish.\n            this._dropContainer._stopScrolling();\n            this._animatePreviewToPlaceholder().then(() => {\n                this._cleanupDragArtifacts(event);\n                this._cleanupCachedDimensions();\n                this._dragDropRegistry.stopDragging(this);\n            });\n        }\n        else {\n            // Convert the active transform into a passive one. This means that next time\n            // the user starts dragging the item, its position will be calculated relatively\n            // to the new passive transform.\n            this._passiveTransform.x = this._activeTransform.x;\n            const pointerPosition = this._getPointerPositionOnPage(event);\n            this._passiveTransform.y = this._activeTransform.y;\n            this._ngZone.run(() => {\n                this.ended.next({\n                    source: this,\n                    distance: this._getDragDistance(pointerPosition),\n                    dropPoint: pointerPosition,\n                    event,\n                });\n            });\n            this._cleanupCachedDimensions();\n            this._dragDropRegistry.stopDragging(this);\n        }\n    }\n    /** Starts the dragging sequence. */\n    _startDragSequence(event) {\n        if (isTouchEvent(event)) {\n            this._lastTouchEventTime = Date.now();\n        }\n        this._toggleNativeDragInteractions();\n        const dropContainer = this._dropContainer;\n        if (dropContainer) {\n            const element = this._rootElement;\n            const parent = element.parentNode;\n            const placeholder = (this._placeholder = this._createPlaceholderElement());\n            const anchor = (this._anchor = this._anchor || this._document.createComment(''));\n            // Needs to happen before the root element is moved.\n            const shadowRoot = this._getShadowRoot();\n            // Insert an anchor node so that we can restore the element's position in the DOM.\n            parent.insertBefore(anchor, element);\n            // There's no risk of transforms stacking when inside a drop container so\n            // we can keep the initial transform up to date any time dragging starts.\n            this._initialTransform = element.style.transform || '';\n            // Create the preview after the initial transform has\n            // been cached, because it can be affected by the transform.\n            this._preview = this._createPreviewElement();\n            // We move the element out at the end of the body and we make it hidden, because keeping it in\n            // place will throw off the consumer's `:last-child` selectors. We can't remove the element\n            // from the DOM completely, because iOS will stop firing all subsequent events in the chain.\n            toggleVisibility(element, false, dragImportantProperties);\n            this._document.body.appendChild(parent.replaceChild(placeholder, element));\n            this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);\n            this.started.next({ source: this, event }); // Emit before notifying the container.\n            dropContainer.start();\n            this._initialContainer = dropContainer;\n            this._initialIndex = dropContainer.getItemIndex(this);\n        }\n        else {\n            this.started.next({ source: this, event });\n            this._initialContainer = this._initialIndex = undefined;\n        }\n        // Important to run after we've called `start` on the parent container\n        // so that it has had time to resolve its scrollable parents.\n        this._parentPositions.cache(dropContainer ? dropContainer.getScrollableParents() : []);\n    }\n    /**\n     * Sets up the different variables and subscriptions\n     * that will be necessary for the dragging sequence.\n     * @param referenceElement Element that started the drag sequence.\n     * @param event Browser event object that started the sequence.\n     */\n    _initializeDragSequence(referenceElement, event) {\n        // Stop propagation if the item is inside another\n        // draggable so we don't start multiple drag sequences.\n        if (this._parentDragRef) {\n            event.stopPropagation();\n        }\n        const isDragging = this.isDragging();\n        const isTouchSequence = isTouchEvent(event);\n        const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;\n        const rootElement = this._rootElement;\n        const target = _getEventTarget(event);\n        const isSyntheticEvent = !isTouchSequence &&\n            this._lastTouchEventTime &&\n            this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();\n        const isFakeEvent = isTouchSequence\n            ? isFakeTouchstartFromScreenReader(event)\n            : isFakeMousedownFromScreenReader(event);\n        // If the event started from an element with the native HTML drag&drop, it'll interfere\n        // with our own dragging (e.g. `img` tags do it by default). Prevent the default action\n        // to stop it from happening. Note that preventing on `dragstart` also seems to work, but\n        // it's flaky and it fails if the user drags it away quickly. Also note that we only want\n        // to do this for `mousedown` since doing the same for `touchstart` will stop any `click`\n        // events from firing on touch devices.\n        if (target && target.draggable && event.type === 'mousedown') {\n            event.preventDefault();\n        }\n        // Abort if the user is already dragging or is using a mouse button other than the primary one.\n        if (isDragging || isAuxiliaryMouseButton || isSyntheticEvent || isFakeEvent) {\n            return;\n        }\n        // If we've got handles, we need to disable the tap highlight on the entire root element,\n        // otherwise iOS will still add it, even though all the drag interactions on the handle\n        // are disabled.\n        if (this._handles.length) {\n            const rootStyles = rootElement.style;\n            this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || '';\n            rootStyles.webkitTapHighlightColor = 'transparent';\n        }\n        this._hasStartedDragging = this._hasMoved = false;\n        // Avoid multiple subscriptions and memory leaks when multi touch\n        // (isDragging check above isn't enough because of possible temporal and/or dimensional delays)\n        this._removeSubscriptions();\n        this._initialClientRect = this._rootElement.getBoundingClientRect();\n        this._pointerMoveSubscription = this._dragDropRegistry.pointerMove.subscribe(this._pointerMove);\n        this._pointerUpSubscription = this._dragDropRegistry.pointerUp.subscribe(this._pointerUp);\n        this._scrollSubscription = this._dragDropRegistry\n            .scrolled(this._getShadowRoot())\n            .subscribe(scrollEvent => this._updateOnScroll(scrollEvent));\n        if (this._boundaryElement) {\n            this._boundaryRect = getMutableClientRect(this._boundaryElement);\n        }\n        // If we have a custom preview we can't know ahead of time how large it'll be so we position\n        // it next to the cursor. The exception is when the consumer has opted into making the preview\n        // the same size as the root element, in which case we do know the size.\n        const previewTemplate = this._previewTemplate;\n        this._pickupPositionInElement =\n            previewTemplate && previewTemplate.template && !previewTemplate.matchSize\n                ? { x: 0, y: 0 }\n                : this._getPointerPositionInElement(this._initialClientRect, referenceElement, event);\n        const pointerPosition = (this._pickupPositionOnPage =\n            this._lastKnownPointerPosition =\n                this._getPointerPositionOnPage(event));\n        this._pointerDirectionDelta = { x: 0, y: 0 };\n        this._pointerPositionAtLastDirectionChange = { x: pointerPosition.x, y: pointerPosition.y };\n        this._dragStartTime = Date.now();\n        this._dragDropRegistry.startDragging(this, event);\n    }\n    /** Cleans up the DOM artifacts that were added to facilitate the element being dragged. */\n    _cleanupDragArtifacts(event) {\n        // Restore the element's visibility and insert it at its old position in the DOM.\n        // It's important that we maintain the position, because moving the element around in the DOM\n        // can throw off `NgFor` which does smart diffing and re-creates elements only when necessary,\n        // while moving the existing elements in all other cases.\n        toggleVisibility(this._rootElement, true, dragImportantProperties);\n        this._anchor.parentNode.replaceChild(this._rootElement, this._anchor);\n        this._destroyPreview();\n        this._destroyPlaceholder();\n        this._initialClientRect =\n            this._boundaryRect =\n                this._previewRect =\n                    this._initialTransform =\n                        undefined;\n        // Re-enter the NgZone since we bound `document` events on the outside.\n        this._ngZone.run(() => {\n            const container = this._dropContainer;\n            const currentIndex = container.getItemIndex(this);\n            const pointerPosition = this._getPointerPositionOnPage(event);\n            const distance = this._getDragDistance(pointerPosition);\n            const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);\n            this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });\n            this.dropped.next({\n                item: this,\n                currentIndex,\n                previousIndex: this._initialIndex,\n                container: container,\n                previousContainer: this._initialContainer,\n                isPointerOverContainer,\n                distance,\n                dropPoint: pointerPosition,\n                event,\n            });\n            container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition, event);\n            this._dropContainer = this._initialContainer;\n        });\n    }\n    /**\n     * Updates the item's position in its drop container, or moves it\n     * into a new one, depending on its current drag position.\n     */\n    _updateActiveDropContainer({ x, y }, { x: rawX, y: rawY }) {\n        // Drop container that draggable has been moved into.\n        let newContainer = this._initialContainer._getSiblingContainerFromPosition(this, x, y);\n        // If we couldn't find a new container to move the item into, and the item has left its\n        // initial container, check whether the it's over the initial container. This handles the\n        // case where two containers are connected one way and the user tries to undo dragging an\n        // item into a new container.\n        if (!newContainer &&\n            this._dropContainer !== this._initialContainer &&\n            this._initialContainer._isOverContainer(x, y)) {\n            newContainer = this._initialContainer;\n        }\n        if (newContainer && newContainer !== this._dropContainer) {\n            this._ngZone.run(() => {\n                // Notify the old container that the item has left.\n                this.exited.next({ item: this, container: this._dropContainer });\n                this._dropContainer.exit(this);\n                // Notify the new container that the item has entered.\n                this._dropContainer = newContainer;\n                this._dropContainer.enter(this, x, y, newContainer === this._initialContainer &&\n                    // If we're re-entering the initial container and sorting is disabled,\n                    // put item the into its starting index to begin with.\n                    newContainer.sortingDisabled\n                    ? this._initialIndex\n                    : undefined);\n                this.entered.next({\n                    item: this,\n                    container: newContainer,\n                    currentIndex: newContainer.getItemIndex(this),\n                });\n            });\n        }\n        // Dragging may have been interrupted as a result of the events above.\n        if (this.isDragging()) {\n            this._dropContainer._startScrollingIfNecessary(rawX, rawY);\n            this._dropContainer._sortItem(this, x, y, this._pointerDirectionDelta);\n            if (this.constrainPosition) {\n                this._applyPreviewTransform(x, y);\n            }\n            else {\n                this._applyPreviewTransform(x - this._pickupPositionInElement.x, y - this._pickupPositionInElement.y);\n            }\n        }\n    }\n    /**\n     * Creates the element that will be rendered next to the user's pointer\n     * and will be used as a preview of the element that is being dragged.\n     */\n    _createPreviewElement() {\n        const previewConfig = this._previewTemplate;\n        const previewClass = this.previewClass;\n        const previewTemplate = previewConfig ? previewConfig.template : null;\n        let preview;\n        if (previewTemplate && previewConfig) {\n            // Measure the element before we've inserted the preview\n            // since the insertion could throw off the measurement.\n            const rootRect = previewConfig.matchSize ? this._initialClientRect : null;\n            const viewRef = previewConfig.viewContainer.createEmbeddedView(previewTemplate, previewConfig.context);\n            viewRef.detectChanges();\n            preview = getRootNode(viewRef, this._document);\n            this._previewRef = viewRef;\n            if (previewConfig.matchSize) {\n                matchElementSize(preview, rootRect);\n            }\n            else {\n                preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);\n            }\n        }\n        else {\n            preview = deepCloneNode(this._rootElement);\n            matchElementSize(preview, this._initialClientRect);\n            if (this._initialTransform) {\n                preview.style.transform = this._initialTransform;\n            }\n        }\n        extendStyles(preview.style, {\n            // It's important that we disable the pointer events on the preview, because\n            // it can throw off the `document.elementFromPoint` calls in the `CdkDropList`.\n            'pointer-events': 'none',\n            // We have to reset the margin, because it can throw off positioning relative to the viewport.\n            'margin': '0',\n            'position': 'fixed',\n            'top': '0',\n            'left': '0',\n            'z-index': `${this._config.zIndex || 1000}`,\n        }, dragImportantProperties);\n        toggleNativeDragInteractions(preview, false);\n        preview.classList.add('cdk-drag-preview');\n        preview.setAttribute('dir', this._direction);\n        if (previewClass) {\n            if (Array.isArray(previewClass)) {\n                previewClass.forEach(className => preview.classList.add(className));\n            }\n            else {\n                preview.classList.add(previewClass);\n            }\n        }\n        return preview;\n    }\n    /**\n     * Animates the preview element from its current position to the location of the drop placeholder.\n     * @returns Promise that resolves when the animation completes.\n     */\n    _animatePreviewToPlaceholder() {\n        // If the user hasn't moved yet, the transitionend event won't fire.\n        if (!this._hasMoved) {\n            return Promise.resolve();\n        }\n        const placeholderRect = this._placeholder.getBoundingClientRect();\n        // Apply the class that adds a transition to the preview.\n        this._preview.classList.add('cdk-drag-animating');\n        // Move the preview to the placeholder position.\n        this._applyPreviewTransform(placeholderRect.left, placeholderRect.top);\n        // If the element doesn't have a `transition`, the `transitionend` event won't fire. Since\n        // we need to trigger a style recalculation in order for the `cdk-drag-animating` class to\n        // apply its style, we take advantage of the available info to figure out whether we need to\n        // bind the event in the first place.\n        const duration = getTransformTransitionDurationInMs(this._preview);\n        if (duration === 0) {\n            return Promise.resolve();\n        }\n        return this._ngZone.runOutsideAngular(() => {\n            return new Promise(resolve => {\n                const handler = ((event) => {\n                    if (!event ||\n                        (_getEventTarget(event) === this._preview && event.propertyName === 'transform')) {\n                        this._preview?.removeEventListener('transitionend', handler);\n                        resolve();\n                        clearTimeout(timeout);\n                    }\n                });\n                // If a transition is short enough, the browser might not fire the `transitionend` event.\n                // Since we know how long it's supposed to take, add a timeout with a 50% buffer that'll\n                // fire if the transition hasn't completed when it was supposed to.\n                const timeout = setTimeout(handler, duration * 1.5);\n                this._preview.addEventListener('transitionend', handler);\n            });\n        });\n    }\n    /** Creates an element that will be shown instead of the current element while dragging. */\n    _createPlaceholderElement() {\n        const placeholderConfig = this._placeholderTemplate;\n        const placeholderTemplate = placeholderConfig ? placeholderConfig.template : null;\n        let placeholder;\n        if (placeholderTemplate) {\n            this._placeholderRef = placeholderConfig.viewContainer.createEmbeddedView(placeholderTemplate, placeholderConfig.context);\n            this._placeholderRef.detectChanges();\n            placeholder = getRootNode(this._placeholderRef, this._document);\n        }\n        else {\n            placeholder = deepCloneNode(this._rootElement);\n        }\n        // Stop pointer events on the preview so the user can't\n        // interact with it while the preview is animating.\n        placeholder.style.pointerEvents = 'none';\n        placeholder.classList.add('cdk-drag-placeholder');\n        return placeholder;\n    }\n    /**\n     * Figures out the coordinates at which an element was picked up.\n     * @param referenceElement Element that initiated the dragging.\n     * @param event Event that initiated the dragging.\n     */\n    _getPointerPositionInElement(elementRect, referenceElement, event) {\n        const handleElement = referenceElement === this._rootElement ? null : referenceElement;\n        const referenceRect = handleElement ? handleElement.getBoundingClientRect() : elementRect;\n        const point = isTouchEvent(event) ? event.targetTouches[0] : event;\n        const scrollPosition = this._getViewportScrollPosition();\n        const x = point.pageX - referenceRect.left - scrollPosition.left;\n        const y = point.pageY - referenceRect.top - scrollPosition.top;\n        return {\n            x: referenceRect.left - elementRect.left + x,\n            y: referenceRect.top - elementRect.top + y,\n        };\n    }\n    /** Determines the point of the page that was touched by the user. */\n    _getPointerPositionOnPage(event) {\n        const scrollPosition = this._getViewportScrollPosition();\n        const point = isTouchEvent(event)\n            ? // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.\n                // Also note that on real devices we're guaranteed for either `touches` or `changedTouches`\n                // to have a value, but Firefox in device emulation mode has a bug where both can be empty\n                // for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid\n                // throwing an error. The value returned here will be incorrect, but since this only\n                // breaks inside a developer tool and the value is only used for secondary information,\n                // we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.\n                event.touches[0] || event.changedTouches[0] || { pageX: 0, pageY: 0 }\n            : event;\n        const x = point.pageX - scrollPosition.left;\n        const y = point.pageY - scrollPosition.top;\n        // if dragging SVG element, try to convert from the screen coordinate system to the SVG\n        // coordinate system\n        if (this._ownerSVGElement) {\n            const svgMatrix = this._ownerSVGElement.getScreenCTM();\n            if (svgMatrix) {\n                const svgPoint = this._ownerSVGElement.createSVGPoint();\n                svgPoint.x = x;\n                svgPoint.y = y;\n                return svgPoint.matrixTransform(svgMatrix.inverse());\n            }\n        }\n        return { x, y };\n    }\n    /** Gets the pointer position on the page, accounting for any position constraints. */\n    _getConstrainedPointerPosition(point) {\n        const dropContainerLock = this._dropContainer ? this._dropContainer.lockAxis : null;\n        let { x, y } = this.constrainPosition\n            ? this.constrainPosition(point, this, this._initialClientRect, this._pickupPositionInElement)\n            : point;\n        if (this.lockAxis === 'x' || dropContainerLock === 'x') {\n            y = this._pickupPositionOnPage.y;\n        }\n        else if (this.lockAxis === 'y' || dropContainerLock === 'y') {\n            x = this._pickupPositionOnPage.x;\n        }\n        if (this._boundaryRect) {\n            const { x: pickupX, y: pickupY } = this._pickupPositionInElement;\n            const boundaryRect = this._boundaryRect;\n            const { width: previewWidth, height: previewHeight } = this._getPreviewRect();\n            const minY = boundaryRect.top + pickupY;\n            const maxY = boundaryRect.bottom - (previewHeight - pickupY);\n            const minX = boundaryRect.left + pickupX;\n            const maxX = boundaryRect.right - (previewWidth - pickupX);\n            x = clamp$1(x, minX, maxX);\n            y = clamp$1(y, minY, maxY);\n        }\n        return { x, y };\n    }\n    /** Updates the current drag delta, based on the user's current pointer position on the page. */\n    _updatePointerDirectionDelta(pointerPositionOnPage) {\n        const { x, y } = pointerPositionOnPage;\n        const delta = this._pointerDirectionDelta;\n        const positionSinceLastChange = this._pointerPositionAtLastDirectionChange;\n        // Amount of pixels the user has dragged since the last time the direction changed.\n        const changeX = Math.abs(x - positionSinceLastChange.x);\n        const changeY = Math.abs(y - positionSinceLastChange.y);\n        // Because we handle pointer events on a per-pixel basis, we don't want the delta\n        // to change for every pixel, otherwise anything that depends on it can look erratic.\n        // To make the delta more consistent, we track how much the user has moved since the last\n        // delta change and we only update it after it has reached a certain threshold.\n        if (changeX > this._config.pointerDirectionChangeThreshold) {\n            delta.x = x > positionSinceLastChange.x ? 1 : -1;\n            positionSinceLastChange.x = x;\n        }\n        if (changeY > this._config.pointerDirectionChangeThreshold) {\n            delta.y = y > positionSinceLastChange.y ? 1 : -1;\n            positionSinceLastChange.y = y;\n        }\n        return delta;\n    }\n    /** Toggles the native drag interactions, based on how many handles are registered. */\n    _toggleNativeDragInteractions() {\n        if (!this._rootElement || !this._handles) {\n            return;\n        }\n        const shouldEnable = this._handles.length > 0 || !this.isDragging();\n        if (shouldEnable !== this._nativeInteractionsEnabled) {\n            this._nativeInteractionsEnabled = shouldEnable;\n            toggleNativeDragInteractions(this._rootElement, shouldEnable);\n        }\n    }\n    /** Removes the manually-added event listeners from the root element. */\n    _removeRootElementListeners(element) {\n        element.removeEventListener('mousedown', this._pointerDown, activeEventListenerOptions);\n        element.removeEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);\n        element.removeEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);\n    }\n    /**\n     * Applies a `transform` to the root element, taking into account any existing transforms on it.\n     * @param x New transform value along the X axis.\n     * @param y New transform value along the Y axis.\n     */\n    _applyRootElementTransform(x, y) {\n        const transform = getTransform(x, y);\n        const styles = this._rootElement.style;\n        // Cache the previous transform amount only after the first drag sequence, because\n        // we don't want our own transforms to stack on top of each other.\n        // Should be excluded none because none + translate3d(x, y, x) is invalid css\n        if (this._initialTransform == null) {\n            this._initialTransform =\n                styles.transform && styles.transform != 'none' ? styles.transform : '';\n        }\n        // Preserve the previous `transform` value, if there was one. Note that we apply our own\n        // transform before the user's, because things like rotation can affect which direction\n        // the element will be translated towards.\n        styles.transform = combineTransforms(transform, this._initialTransform);\n    }\n    /**\n     * Applies a `transform` to the preview, taking into account any existing transforms on it.\n     * @param x New transform value along the X axis.\n     * @param y New transform value along the Y axis.\n     */\n    _applyPreviewTransform(x, y) {\n        // Only apply the initial transform if the preview is a clone of the original element, otherwise\n        // it could be completely different and the transform might not make sense anymore.\n        const initialTransform = this._previewTemplate?.template ? undefined : this._initialTransform;\n        const transform = getTransform(x, y);\n        this._preview.style.transform = combineTransforms(transform, initialTransform);\n    }\n    /**\n     * Gets the distance that the user has dragged during the current drag sequence.\n     * @param currentPosition Current position of the user's pointer.\n     */\n    _getDragDistance(currentPosition) {\n        const pickupPosition = this._pickupPositionOnPage;\n        if (pickupPosition) {\n            return { x: currentPosition.x - pickupPosition.x, y: currentPosition.y - pickupPosition.y };\n        }\n        return { x: 0, y: 0 };\n    }\n    /** Cleans up any cached element dimensions that we don't need after dragging has stopped. */\n    _cleanupCachedDimensions() {\n        this._boundaryRect = this._previewRect = undefined;\n        this._parentPositions.clear();\n    }\n    /**\n     * Checks whether the element is still inside its boundary after the viewport has been resized.\n     * If not, the position is adjusted so that the element fits again.\n     */\n    _containInsideBoundaryOnResize() {\n        let { x, y } = this._passiveTransform;\n        if ((x === 0 && y === 0) || this.isDragging() || !this._boundaryElement) {\n            return;\n        }\n        // Note: don't use `_clientRectAtStart` here, because we want the latest position.\n        const elementRect = this._rootElement.getBoundingClientRect();\n        const boundaryRect = this._boundaryElement.getBoundingClientRect();\n        // It's possible that the element got hidden away after dragging (e.g. by switching to a\n        // different tab). Don't do anything in this case so we don't clear the user's position.\n        if ((boundaryRect.width === 0 && boundaryRect.height === 0) ||\n            (elementRect.width === 0 && elementRect.height === 0)) {\n            return;\n        }\n        const leftOverflow = boundaryRect.left - elementRect.left;\n        const rightOverflow = elementRect.right - boundaryRect.right;\n        const topOverflow = boundaryRect.top - elementRect.top;\n        const bottomOverflow = elementRect.bottom - boundaryRect.bottom;\n        // If the element has become wider than the boundary, we can't\n        // do much to make it fit so we just anchor it to the left.\n        if (boundaryRect.width > elementRect.width) {\n            if (leftOverflow > 0) {\n                x += leftOverflow;\n            }\n            if (rightOverflow > 0) {\n                x -= rightOverflow;\n            }\n        }\n        else {\n            x = 0;\n        }\n        // If the element has become taller than the boundary, we can't\n        // do much to make it fit so we just anchor it to the top.\n        if (boundaryRect.height > elementRect.height) {\n            if (topOverflow > 0) {\n                y += topOverflow;\n            }\n            if (bottomOverflow > 0) {\n                y -= bottomOverflow;\n            }\n        }\n        else {\n            y = 0;\n        }\n        if (x !== this._passiveTransform.x || y !== this._passiveTransform.y) {\n            this.setFreeDragPosition({ y, x });\n        }\n    }\n    /** Gets the drag start delay, based on the event type. */\n    _getDragStartDelay(event) {\n        const value = this.dragStartDelay;\n        if (typeof value === 'number') {\n            return value;\n        }\n        else if (isTouchEvent(event)) {\n            return value.touch;\n        }\n        return value ? value.mouse : 0;\n    }\n    /** Updates the internal state of the draggable element when scrolling has occurred. */\n    _updateOnScroll(event) {\n        const scrollDifference = this._parentPositions.handleScroll(event);\n        if (scrollDifference) {\n            const target = _getEventTarget(event);\n            // ClientRect dimensions are based on the scroll position of the page and its parent\n            // node so we have to update the cached boundary ClientRect if the user has scrolled.\n            if (this._boundaryRect &&\n                target !== this._boundaryElement &&\n                target.contains(this._boundaryElement)) {\n                adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);\n            }\n            this._pickupPositionOnPage.x += scrollDifference.left;\n            this._pickupPositionOnPage.y += scrollDifference.top;\n            // If we're in free drag mode, we have to update the active transform, because\n            // it isn't relative to the viewport like the preview inside a drop list.\n            if (!this._dropContainer) {\n                this._activeTransform.x -= scrollDifference.left;\n                this._activeTransform.y -= scrollDifference.top;\n                this._applyRootElementTransform(this._activeTransform.x, this._activeTransform.y);\n            }\n        }\n    }\n    /** Gets the scroll position of the viewport. */\n    _getViewportScrollPosition() {\n        return (this._parentPositions.positions.get(this._document)?.scrollPosition ||\n            this._parentPositions.getViewportScrollPosition());\n    }\n    /**\n     * Lazily resolves and returns the shadow root of the element. We do this in a function, rather\n     * than saving it in property directly on init, because we want to resolve it as late as possible\n     * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the\n     * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.\n     */\n    _getShadowRoot() {\n        if (this._cachedShadowRoot === undefined) {\n            this._cachedShadowRoot = _getShadowRoot(this._rootElement);\n        }\n        return this._cachedShadowRoot;\n    }\n    /** Gets the element into which the drag preview should be inserted. */\n    _getPreviewInsertionPoint(initialParent, shadowRoot) {\n        const previewContainer = this._previewContainer || 'global';\n        if (previewContainer === 'parent') {\n            return initialParent;\n        }\n        if (previewContainer === 'global') {\n            const documentRef = this._document;\n            // We can't use the body if the user is in fullscreen mode,\n            // because the preview will render under the fullscreen element.\n            // TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.\n            return (shadowRoot ||\n                documentRef.fullscreenElement ||\n                documentRef.webkitFullscreenElement ||\n                documentRef.mozFullScreenElement ||\n                documentRef.msFullscreenElement ||\n                documentRef.body);\n        }\n        return coerceElement(previewContainer);\n    }\n    /** Lazily resolves and returns the dimensions of the preview. */\n    _getPreviewRect() {\n        // Cache the preview element rect if we haven't cached it already or if\n        // we cached it too early before the element dimensions were computed.\n        if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {\n            this._previewRect = this._preview\n                ? this._preview.getBoundingClientRect()\n                : this._initialClientRect;\n        }\n        return this._previewRect;\n    }\n    /** Gets a handle that is the target of an event. */\n    _getTargetHandle(event) {\n        return this._handles.find(handle => {\n            return event.target && (event.target === handle || handle.contains(event.target));\n        });\n    }\n}\n/**\n * Gets a 3d `transform` that can be applied to an element.\n * @param x Desired position of the element along the X axis.\n * @param y Desired position of the element along the Y axis.\n */\nfunction getTransform(x, y) {\n    // Round the transforms since some browsers will\n    // blur the elements for sub-pixel transforms.\n    return `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)`;\n}\n/** Clamps a value between a minimum and a maximum. */\nfunction clamp$1(value, min, max) {\n    return Math.max(min, Math.min(max, value));\n}\n/** Determines whether an event is a touch event. */\nfunction isTouchEvent(event) {\n    // This function is called for every pixel that the user has dragged so we need it to be\n    // as fast as possible. Since we only bind mouse events and touch events, we can assume\n    // that if the event's name starts with `t`, it's a touch event.\n    return event.type[0] === 't';\n}\n/**\n * Gets the root HTML element of an embedded view.\n * If the root is not an HTML element it gets wrapped in one.\n */\nfunction getRootNode(viewRef, _document) {\n    const rootNodes = viewRef.rootNodes;\n    if (rootNodes.length === 1 && rootNodes[0].nodeType === _document.ELEMENT_NODE) {\n        return rootNodes[0];\n    }\n    const wrapper = _document.createElement('div');\n    rootNodes.forEach(node => wrapper.appendChild(node));\n    return wrapper;\n}\n/**\n * Matches the target element's size to the source's size.\n * @param target Element that needs to be resized.\n * @param sourceRect Dimensions of the source element.\n */\nfunction matchElementSize(target, sourceRect) {\n    target.style.width = `${sourceRect.width}px`;\n    target.style.height = `${sourceRect.height}px`;\n    target.style.transform = getTransform(sourceRect.left, sourceRect.top);\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.io/license\n */\n/**\n * Moves an item one index in an array to another.\n * @param array Array in which to move the item.\n * @param fromIndex Starting index of the item.\n * @param toIndex Index to which the item should be moved.\n */\nfunction moveItemInArray(array, fromIndex, toIndex) {\n    const from = clamp(fromIndex, array.length - 1);\n    const to = clamp(toIndex, array.length - 1);\n    if (from === to) {\n        return;\n    }\n    const target = array[from];\n    const delta = to < from ? -1 : 1;\n    for (let i = from; i !== to; i += delta) {\n        array[i] = array[i + delta];\n    }\n    array[to] = target;\n}\n/**\n * Moves an item from one array to another.\n * @param currentArray Array from which to transfer the item.\n * @param targetArray Array into which to put the item.\n * @param currentIndex Index of the item in its current array.\n * @param targetIndex Index at which to insert the item.\n */\nfunction transferArrayItem(currentArray, targetArray, currentIndex, targetIndex) {\n    const from = clamp(currentIndex, currentArray.length - 1);\n    const to = clamp(targetIndex, targetArray.length);\n    if (currentArray.length) {\n        targetArray.splice(to, 0, currentArray.splice(from, 1)[0]);\n    }\n}\n/**\n * Copies an item from one array to another, leaving it in its\n * original position in current array.\n * @param currentArray Array from which to copy the item.\n * @param targetArray Array into which is copy the item.\n * @param currentIndex Index of the item in its current array.\n * @param targetIndex Index at which to insert the item.\n *\n */\nfunction copyArrayItem(currentArray, targetArray, currentIndex, targetIndex) {\n    const to = clamp(targetIndex, targetArray.length);\n    if (currentArray.length) {\n        targetArray.splice(to, 0, currentArray[currentIndex]);\n    }\n}\n/** Clamps a number between zero and a maximum. */\nfunction clamp(value, max) {\n    return Math.max(0, Math.min(max, 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.io/license\n */\n/**\n * Strategy that only supports sorting along a single axis.\n * Items are reordered using CSS transforms which allows for sorting to be animated.\n * @docs-private\n */\nclass SingleAxisSortStrategy {\n    constructor(_element, _dragDropRegistry) {\n        this._element = _element;\n        this._dragDropRegistry = _dragDropRegistry;\n        /** Cache of the dimensions of all the items inside the container. */\n        this._itemPositions = [];\n        /** Direction in which the list is oriented. */\n        this.orientation = 'vertical';\n        /**\n         * Keeps track of the item that was last swapped with the dragged item, as well as what direction\n         * the pointer was moving in when the swap occurred and whether the user's pointer continued to\n         * overlap with the swapped item after the swapping occurred.\n         */\n        this._previousSwap = {\n            drag: null,\n            delta: 0,\n            overlaps: false,\n        };\n    }\n    /**\n     * To be called when the drag sequence starts.\n     * @param items Items that are currently in the list.\n     */\n    start(items) {\n        this.withItems(items);\n    }\n    /**\n     * To be called when an item is being sorted.\n     * @param item Item to be sorted.\n     * @param pointerX Position of the item along the X axis.\n     * @param pointerY Position of the item along the Y axis.\n     * @param pointerDelta Direction in which the pointer is moving along each axis.\n     */\n    sort(item, pointerX, pointerY, pointerDelta) {\n        const siblings = this._itemPositions;\n        const newIndex = this._getItemIndexFromPointerPosition(item, pointerX, pointerY, pointerDelta);\n        if (newIndex === -1 && siblings.length > 0) {\n            return null;\n        }\n        const isHorizontal = this.orientation === 'horizontal';\n        const currentIndex = siblings.findIndex(currentItem => currentItem.drag === item);\n        const siblingAtNewPosition = siblings[newIndex];\n        const currentPosition = siblings[currentIndex].clientRect;\n        const newPosition = siblingAtNewPosition.clientRect;\n        const delta = currentIndex > newIndex ? 1 : -1;\n        // How many pixels the item's placeholder should be offset.\n        const itemOffset = this._getItemOffsetPx(currentPosition, newPosition, delta);\n        // How many pixels all the other items should be offset.\n        const siblingOffset = this._getSiblingOffsetPx(currentIndex, siblings, delta);\n        // Save the previous order of the items before moving the item to its new index.\n        // We use this to check whether an item has been moved as a result of the sorting.\n        const oldOrder = siblings.slice();\n        // Shuffle the array in place.\n        moveItemInArray(siblings, currentIndex, newIndex);\n        siblings.forEach((sibling, index) => {\n            // Don't do anything if the position hasn't changed.\n            if (oldOrder[index] === sibling) {\n                return;\n            }\n            const isDraggedItem = sibling.drag === item;\n            const offset = isDraggedItem ? itemOffset : siblingOffset;\n            const elementToOffset = isDraggedItem\n                ? item.getPlaceholderElement()\n                : sibling.drag.getRootElement();\n            // Update the offset to reflect the new position.\n            sibling.offset += offset;\n            // Since we're moving the items with a `transform`, we need to adjust their cached\n            // client rects to reflect their new position, as well as swap their positions in the cache.\n            // Note that we shouldn't use `getBoundingClientRect` here to update the cache, because the\n            // elements may be mid-animation which will give us a wrong result.\n            if (isHorizontal) {\n                // Round the transforms since some browsers will\n                // blur the elements, for sub-pixel transforms.\n                elementToOffset.style.transform = combineTransforms(`translate3d(${Math.round(sibling.offset)}px, 0, 0)`, sibling.initialTransform);\n                adjustClientRect(sibling.clientRect, 0, offset);\n            }\n            else {\n                elementToOffset.style.transform = combineTransforms(`translate3d(0, ${Math.round(sibling.offset)}px, 0)`, sibling.initialTransform);\n                adjustClientRect(sibling.clientRect, offset, 0);\n            }\n        });\n        // Note that it's important that we do this after the client rects have been adjusted.\n        this._previousSwap.overlaps = isInsideClientRect(newPosition, pointerX, pointerY);\n        this._previousSwap.drag = siblingAtNewPosition.drag;\n        this._previousSwap.delta = isHorizontal ? pointerDelta.x : pointerDelta.y;\n        return { previousIndex: currentIndex, currentIndex: newIndex };\n    }\n    /**\n     * Called when an item is being moved into the container.\n     * @param item Item that was moved into the container.\n     * @param pointerX Position of the item along the X axis.\n     * @param pointerY Position of the item along the Y axis.\n     * @param index Index at which the item entered. If omitted, the container will try to figure it\n     *   out automatically.\n     */\n    enter(item, pointerX, pointerY, index) {\n        const newIndex = index == null || index < 0\n            ? // We use the coordinates of where the item entered the drop\n                // zone to figure out at which index it should be inserted.\n                this._getItemIndexFromPointerPosition(item, pointerX, pointerY)\n            : index;\n        const activeDraggables = this._activeDraggables;\n        const currentIndex = activeDraggables.indexOf(item);\n        const placeholder = item.getPlaceholderElement();\n        let newPositionReference = activeDraggables[newIndex];\n        // If the item at the new position is the same as the item that is being dragged,\n        // it means that we're trying to restore the item to its initial position. In this\n        // case we should use the next item from the list as the reference.\n        if (newPositionReference === item) {\n            newPositionReference = activeDraggables[newIndex + 1];\n        }\n        // If we didn't find a new position reference, it means that either the item didn't start off\n        // in this container, or that the item requested to be inserted at the end of the list.\n        if (!newPositionReference &&\n            (newIndex == null || newIndex === -1 || newIndex < activeDraggables.length - 1) &&\n            this._shouldEnterAsFirstChild(pointerX, pointerY)) {\n            newPositionReference = activeDraggables[0];\n        }\n        // Since the item may be in the `activeDraggables` already (e.g. if the user dragged it\n        // into another container and back again), we have to ensure that it isn't duplicated.\n        if (currentIndex > -1) {\n            activeDraggables.splice(currentIndex, 1);\n        }\n        // Don't use items that are being dragged as a reference, because\n        // their element has been moved down to the bottom of the body.\n        if (newPositionReference && !this._dragDropRegistry.isDragging(newPositionReference)) {\n            const element = newPositionReference.getRootElement();\n            element.parentElement.insertBefore(placeholder, element);\n            activeDraggables.splice(newIndex, 0, item);\n        }\n        else {\n            coerceElement(this._element).appendChild(placeholder);\n            activeDraggables.push(item);\n        }\n        // The transform needs to be cleared so it doesn't throw off the measurements.\n        placeholder.style.transform = '';\n        // Note that usually `start` is called together with `enter` when an item goes into a new\n        // container. This will cache item positions, but we need to refresh them since the amount\n        // of items has changed.\n        this._cacheItemPositions();\n    }\n    /** Sets the items that are currently part of the list. */\n    withItems(items) {\n        this._activeDraggables = items.slice();\n        this._cacheItemPositions();\n    }\n    /** Assigns a sort predicate to the strategy. */\n    withSortPredicate(predicate) {\n        this._sortPredicate = predicate;\n    }\n    /** Resets the strategy to its initial state before dragging was started. */\n    reset() {\n        // TODO(crisbeto): may have to wait for the animations to finish.\n        this._activeDraggables.forEach(item => {\n            const rootElement = item.getRootElement();\n            if (rootElement) {\n                const initialTransform = this._itemPositions.find(p => p.drag === item)?.initialTransform;\n                rootElement.style.transform = initialTransform || '';\n            }\n        });\n        this._itemPositions = [];\n        this._activeDraggables = [];\n        this._previousSwap.drag = null;\n        this._previousSwap.delta = 0;\n        this._previousSwap.overlaps = false;\n    }\n    /**\n     * Gets a snapshot of items currently in the list.\n     * Can include items that we dragged in from another list.\n     */\n    getActiveItemsSnapshot() {\n        return this._activeDraggables;\n    }\n    /** Gets the index of a specific item. */\n    getItemIndex(item) {\n        // Items are sorted always by top/left in the cache, however they flow differently in RTL.\n        // The rest of the logic still stands no matter what orientation we're in, however\n        // we need to invert the array when determining the index.\n        const items = this.orientation === 'horizontal' && this.direction === 'rtl'\n            ? this._itemPositions.slice().reverse()\n            : this._itemPositions;\n        return items.findIndex(currentItem => currentItem.drag === item);\n    }\n    /** Used to notify the strategy that the scroll position has changed. */\n    updateOnScroll(topDifference, leftDifference) {\n        // Since we know the amount that the user has scrolled we can shift all of the\n        // client rectangles ourselves. This is cheaper than re-measuring everything and\n        // we can avoid inconsistent behavior where we might be measuring the element before\n        // its position has changed.\n        this._itemPositions.forEach(({ clientRect }) => {\n            adjustClientRect(clientRect, topDifference, leftDifference);\n        });\n        // We need two loops for this, because we want all of the cached\n        // positions to be up-to-date before we re-sort the item.\n        this._itemPositions.forEach(({ drag }) => {\n            if (this._dragDropRegistry.isDragging(drag)) {\n                // We need to re-sort the item manually, because the pointer move\n                // events won't be dispatched while the user is scrolling.\n                drag._sortFromLastPointerPosition();\n            }\n        });\n    }\n    /** Refreshes the position cache of the items and sibling containers. */\n    _cacheItemPositions() {\n        const isHorizontal = this.orientation === 'horizontal';\n        this._itemPositions = this._activeDraggables\n            .map(drag => {\n            const elementToMeasure = drag.getVisibleElement();\n            return {\n                drag,\n                offset: 0,\n                initialTransform: elementToMeasure.style.transform || '',\n                clientRect: getMutableClientRect(elementToMeasure),\n            };\n        })\n            .sort((a, b) => {\n            return isHorizontal\n                ? a.clientRect.left - b.clientRect.left\n                : a.clientRect.top - b.clientRect.top;\n        });\n    }\n    /**\n     * Gets the offset in pixels by which the item that is being dragged should be moved.\n     * @param currentPosition Current position of the item.\n     * @param newPosition Position of the item where the current item should be moved.\n     * @param delta Direction in which the user is moving.\n     */\n    _getItemOffsetPx(currentPosition, newPosition, delta) {\n        const isHorizontal = this.orientation === 'horizontal';\n        let itemOffset = isHorizontal\n            ? newPosition.left - currentPosition.left\n            : newPosition.top - currentPosition.top;\n        // Account for differences in the item width/height.\n        if (delta === -1) {\n            itemOffset += isHorizontal\n                ? newPosition.width - currentPosition.width\n                : newPosition.height - currentPosition.height;\n        }\n        return itemOffset;\n    }\n    /**\n     * Gets the offset in pixels by which the items that aren't being dragged should be moved.\n     * @param currentIndex Index of the item currently being dragged.\n     * @param siblings All of the items in the list.\n     * @param delta Direction in which the user is moving.\n     */\n    _getSiblingOffsetPx(currentIndex, siblings, delta) {\n        const isHorizontal = this.orientation === 'horizontal';\n        const currentPosition = siblings[currentIndex].clientRect;\n        const immediateSibling = siblings[currentIndex + delta * -1];\n        let siblingOffset = currentPosition[isHorizontal ? 'width' : 'height'] * delta;\n        if (immediateSibling) {\n            const start = isHorizontal ? 'left' : 'top';\n            const end = isHorizontal ? 'right' : 'bottom';\n            // Get the spacing between the start of the current item and the end of the one immediately\n            // after it in the direction in which the user is dragging, or vice versa. We add it to the\n            // offset in order to push the element to where it will be when it's inline and is influenced\n            // by the `margin` of its siblings.\n            if (delta === -1) {\n                siblingOffset -= immediateSibling.clientRect[start] - currentPosition[end];\n            }\n            else {\n                siblingOffset += currentPosition[start] - immediateSibling.clientRect[end];\n            }\n        }\n        return siblingOffset;\n    }\n    /**\n     * Checks if pointer is entering in the first position\n     * @param pointerX Position of the user's pointer along the X axis.\n     * @param pointerY Position of the user's pointer along the Y axis.\n     */\n    _shouldEnterAsFirstChild(pointerX, pointerY) {\n        if (!this._activeDraggables.length) {\n            return false;\n        }\n        const itemPositions = this._itemPositions;\n        const isHorizontal = this.orientation === 'horizontal';\n        // `itemPositions` are sorted by position while `activeDraggables` are sorted by child index\n        // check if container is using some sort of \"reverse\" ordering (eg: flex-direction: row-reverse)\n        const reversed = itemPositions[0].drag !== this._activeDraggables[0];\n        if (reversed) {\n            const lastItemRect = itemPositions[itemPositions.length - 1].clientRect;\n            return isHorizontal ? pointerX >= lastItemRect.right : pointerY >= lastItemRect.bottom;\n        }\n        else {\n            const firstItemRect = itemPositions[0].clientRect;\n            return isHorizontal ? pointerX <= firstItemRect.left : pointerY <= firstItemRect.top;\n        }\n    }\n    /**\n     * Gets the index of an item in the drop container, based on the position of the user's pointer.\n     * @param item Item that is being sorted.\n     * @param pointerX Position of the user's pointer along the X axis.\n     * @param pointerY Position of the user's pointer along the Y axis.\n     * @param delta Direction in which the user is moving their pointer.\n     */\n    _getItemIndexFromPointerPosition(item, pointerX, pointerY, delta) {\n        const isHorizontal = this.orientation === 'horizontal';\n        const index = this._itemPositions.findIndex(({ drag, clientRect }) => {\n            // Skip the item itself.\n            if (drag === item) {\n                return false;\n            }\n            if (delta) {\n                const direction = isHorizontal ? delta.x : delta.y;\n                // If the user is still hovering over the same item as last time, their cursor hasn't left\n                // the item after we made the swap, and they didn't change the direction in which they're\n                // dragging, we don't consider it a direction swap.\n                if (drag === this._previousSwap.drag &&\n                    this._previousSwap.overlaps &&\n                    direction === this._previousSwap.delta) {\n                    return false;\n                }\n            }\n            return isHorizontal\n                ? // Round these down since most browsers report client rects with\n                    // sub-pixel precision, whereas the pointer coordinates are rounded to pixels.\n                    pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right)\n                : pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);\n        });\n        return index === -1 || !this._sortPredicate(index, item) ? -1 : index;\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.io/license\n */\n/**\n * Proximity, as a ratio to width/height, at which a\n * dragged item will affect the drop container.\n */\nconst DROP_PROXIMITY_THRESHOLD = 0.05;\n/**\n * Proximity, as a ratio to width/height at which to start auto-scrolling the drop list or the\n * viewport. The value comes from trying it out manually until it feels right.\n */\nconst SCROLL_PROXIMITY_THRESHOLD = 0.05;\n/**\n * Reference to a drop list. Used to manipulate or dispose of the container.\n */\nclass DropListRef {\n    constructor(element, _dragDropRegistry, _document, _ngZone, _viewportRuler) {\n        this._dragDropRegistry = _dragDropRegistry;\n        this._ngZone = _ngZone;\n        this._viewportRuler = _viewportRuler;\n        /** Whether starting a dragging sequence from this container is disabled. */\n        this.disabled = false;\n        /** Whether sorting items within the list is disabled. */\n        this.sortingDisabled = false;\n        /**\n         * Whether auto-scrolling the view when the user\n         * moves their pointer close to the edges is disabled.\n         */\n        this.autoScrollDisabled = false;\n        /** Number of pixels to scroll for each frame when auto-scrolling an element. */\n        this.autoScrollStep = 2;\n        /**\n         * Function that is used to determine whether an item\n         * is allowed to be moved into a drop container.\n         */\n        this.enterPredicate = () => true;\n        /** Function that is used to determine whether an item can be sorted into a particular index. */\n        this.sortPredicate = () => true;\n        /** Emits right before dragging has started. */\n        this.beforeStarted = new Subject();\n        /**\n         * Emits when the user has moved a new drag item into this container.\n         */\n        this.entered = new Subject();\n        /**\n         * Emits when the user removes an item from the container\n         * by dragging it into another container.\n         */\n        this.exited = new Subject();\n        /** Emits when the user drops an item inside the container. */\n        this.dropped = new Subject();\n        /** Emits as the user is swapping items while actively dragging. */\n        this.sorted = new Subject();\n        /** Whether an item in the list is being dragged. */\n        this._isDragging = false;\n        /** Draggable items in the container. */\n        this._draggables = [];\n        /** Drop lists that are connected to the current one. */\n        this._siblings = [];\n        /** Connected siblings that currently have a dragged item. */\n        this._activeSiblings = new Set();\n        /** Subscription to the window being scrolled. */\n        this._viewportScrollSubscription = Subscription.EMPTY;\n        /** Vertical direction in which the list is currently scrolling. */\n        this._verticalScrollDirection = 0 /* AutoScrollVerticalDirection.NONE */;\n        /** Horizontal direction in which the list is currently scrolling. */\n        this._horizontalScrollDirection = 0 /* AutoScrollHorizontalDirection.NONE */;\n        /** Used to signal to the current auto-scroll sequence when to stop. */\n        this._stopScrollTimers = new Subject();\n        /** Shadow root of the current element. Necessary for `elementFromPoint` to resolve correctly. */\n        this._cachedShadowRoot = null;\n        /** Starts the interval that'll auto-scroll the element. */\n        this._startScrollInterval = () => {\n            this._stopScrolling();\n            interval(0, animationFrameScheduler)\n                .pipe(takeUntil(this._stopScrollTimers))\n                .subscribe(() => {\n                const node = this._scrollNode;\n                const scrollStep = this.autoScrollStep;\n                if (this._verticalScrollDirection === 1 /* AutoScrollVerticalDirection.UP */) {\n                    node.scrollBy(0, -scrollStep);\n                }\n                else if (this._verticalScrollDirection === 2 /* AutoScrollVerticalDirection.DOWN */) {\n                    node.scrollBy(0, scrollStep);\n                }\n                if (this._horizontalScrollDirection === 1 /* AutoScrollHorizontalDirection.LEFT */) {\n                    node.scrollBy(-scrollStep, 0);\n                }\n                else if (this._horizontalScrollDirection === 2 /* AutoScrollHorizontalDirection.RIGHT */) {\n                    node.scrollBy(scrollStep, 0);\n                }\n            });\n        };\n        this.element = coerceElement(element);\n        this._document = _document;\n        this.withScrollableParents([this.element]);\n        _dragDropRegistry.registerDropContainer(this);\n        this._parentPositions = new ParentPositionTracker(_document);\n        this._sortStrategy = new SingleAxisSortStrategy(this.element, _dragDropRegistry);\n        this._sortStrategy.withSortPredicate((index, item) => this.sortPredicate(index, item, this));\n    }\n    /** Removes the drop list functionality from the DOM element. */\n    dispose() {\n        this._stopScrolling();\n        this._stopScrollTimers.complete();\n        this._viewportScrollSubscription.unsubscribe();\n        this.beforeStarted.complete();\n        this.entered.complete();\n        this.exited.complete();\n        this.dropped.complete();\n        this.sorted.complete();\n        this._activeSiblings.clear();\n        this._scrollNode = null;\n        this._parentPositions.clear();\n        this._dragDropRegistry.removeDropContainer(this);\n    }\n    /** Whether an item from this list is currently being dragged. */\n    isDragging() {\n        return this._isDragging;\n    }\n    /** Starts dragging an item. */\n    start() {\n        this._draggingStarted();\n        this._notifyReceivingSiblings();\n    }\n    /**\n     * Attempts to move an item into the container.\n     * @param item Item that was moved into the container.\n     * @param pointerX Position of the item along the X axis.\n     * @param pointerY Position of the item along the Y axis.\n     * @param index Index at which the item entered. If omitted, the container will try to figure it\n     *   out automatically.\n     */\n    enter(item, pointerX, pointerY, index) {\n        this._draggingStarted();\n        // If sorting is disabled, we want the item to return to its starting\n        // position if the user is returning it to its initial container.\n        if (index == null && this.sortingDisabled) {\n            index = this._draggables.indexOf(item);\n        }\n        this._sortStrategy.enter(item, pointerX, pointerY, index);\n        // Note that this usually happens inside `_draggingStarted` as well, but the dimensions\n        // can change when the sort strategy moves the item around inside `enter`.\n        this._cacheParentPositions();\n        // Notify siblings at the end so that the item has been inserted into the `activeDraggables`.\n        this._notifyReceivingSiblings();\n        this.entered.next({ item, container: this, currentIndex: this.getItemIndex(item) });\n    }\n    /**\n     * Removes an item from the container after it was dragged into another container by the user.\n     * @param item Item that was dragged out.\n     */\n    exit(item) {\n        this._reset();\n        this.exited.next({ item, container: this });\n    }\n    /**\n     * Drops an item into this container.\n     * @param item Item being dropped into the container.\n     * @param currentIndex Index at which the item should be inserted.\n     * @param previousIndex Index of the item when dragging started.\n     * @param previousContainer Container from which the item got dragged in.\n     * @param isPointerOverContainer Whether the user's pointer was over the\n     *    container when the item was dropped.\n     * @param distance Distance the user has dragged since the start of the dragging sequence.\n     * @param event Event that triggered the dropping sequence.\n     *\n     * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.\n     */\n    drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {\n        this._reset();\n        this.dropped.next({\n            item,\n            currentIndex,\n            previousIndex,\n            container: this,\n            previousContainer,\n            isPointerOverContainer,\n            distance,\n            dropPoint,\n            event,\n        });\n    }\n    /**\n     * Sets the draggable items that are a part of this list.\n     * @param items Items that are a part of this list.\n     */\n    withItems(items) {\n        const previousItems = this._draggables;\n        this._draggables = items;\n        items.forEach(item => item._withDropContainer(this));\n        if (this.isDragging()) {\n            const draggedItems = previousItems.filter(item => item.isDragging());\n            // If all of the items being dragged were removed\n            // from the list, abort the current drag sequence.\n            if (draggedItems.every(item => items.indexOf(item) === -1)) {\n                this._reset();\n            }\n            else {\n                this._sortStrategy.withItems(this._draggables);\n            }\n        }\n        return this;\n    }\n    /** Sets the layout direction of the drop list. */\n    withDirection(direction) {\n        this._sortStrategy.direction = direction;\n        return this;\n    }\n    /**\n     * Sets the containers that are connected to this one. When two or more containers are\n     * connected, the user will be allowed to transfer items between them.\n     * @param connectedTo Other containers that the current containers should be connected to.\n     */\n    connectedTo(connectedTo) {\n        this._siblings = connectedTo.slice();\n        return this;\n    }\n    /**\n     * Sets the orientation of the container.\n     * @param orientation New orientation for the container.\n     */\n    withOrientation(orientation) {\n        // TODO(crisbeto): eventually we should be constructing the new sort strategy here based on\n        // the new orientation. For now we can assume that it'll always be `SingleAxisSortStrategy`.\n        this._sortStrategy.orientation = orientation;\n        return this;\n    }\n    /**\n     * Sets which parent elements are can be scrolled while the user is dragging.\n     * @param elements Elements that can be scrolled.\n     */\n    withScrollableParents(elements) {\n        const element = coerceElement(this.element);\n        // We always allow the current element to be scrollable\n        // so we need to ensure that it's in the array.\n        this._scrollableElements =\n            elements.indexOf(element) === -1 ? [element, ...elements] : elements.slice();\n        return this;\n    }\n    /** Gets the scrollable parents that are registered with this drop container. */\n    getScrollableParents() {\n        return this._scrollableElements;\n    }\n    /**\n     * Figures out the index of an item in the container.\n     * @param item Item whose index should be determined.\n     */\n    getItemIndex(item) {\n        return this._isDragging\n            ? this._sortStrategy.getItemIndex(item)\n            : this._draggables.indexOf(item);\n    }\n    /**\n     * Whether the list is able to receive the item that\n     * is currently being dragged inside a connected drop list.\n     */\n    isReceiving() {\n        return this._activeSiblings.size > 0;\n    }\n    /**\n     * Sorts an item inside the container based on its position.\n     * @param item Item to be sorted.\n     * @param pointerX Position of the item along the X axis.\n     * @param pointerY Position of the item along the Y axis.\n     * @param pointerDelta Direction in which the pointer is moving along each axis.\n     */\n    _sortItem(item, pointerX, pointerY, pointerDelta) {\n        // Don't sort the item if sorting is disabled or it's out of range.\n        if (this.sortingDisabled ||\n            !this._clientRect ||\n            !isPointerNearClientRect(this._clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {\n            return;\n        }\n        const result = this._sortStrategy.sort(item, pointerX, pointerY, pointerDelta);\n        if (result) {\n            this.sorted.next({\n                previousIndex: result.previousIndex,\n                currentIndex: result.currentIndex,\n                container: this,\n                item,\n            });\n        }\n    }\n    /**\n     * Checks whether the user's pointer is close to the edges of either the\n     * viewport or the drop list and starts the auto-scroll sequence.\n     * @param pointerX User's pointer position along the x axis.\n     * @param pointerY User's pointer position along the y axis.\n     */\n    _startScrollingIfNecessary(pointerX, pointerY) {\n        if (this.autoScrollDisabled) {\n            return;\n        }\n        let scrollNode;\n        let verticalScrollDirection = 0 /* AutoScrollVerticalDirection.NONE */;\n        let horizontalScrollDirection = 0 /* AutoScrollHorizontalDirection.NONE */;\n        // Check whether we should start scrolling any of the parent containers.\n        this._parentPositions.positions.forEach((position, element) => {\n            // We have special handling for the `document` below. Also this would be\n            // nicer with a  for...of loop, but it requires changing a compiler flag.\n            if (element === this._document || !position.clientRect || scrollNode) {\n                return;\n            }\n            if (isPointerNearClientRect(position.clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {\n                [verticalScrollDirection, horizontalScrollDirection] = getElementScrollDirections(element, position.clientRect, pointerX, pointerY);\n                if (verticalScrollDirection || horizontalScrollDirection) {\n                    scrollNode = element;\n                }\n            }\n        });\n        // Otherwise check if we can start scrolling the viewport.\n        if (!verticalScrollDirection && !horizontalScrollDirection) {\n            const { width, height } = this._viewportRuler.getViewportSize();\n            const clientRect = {\n                width,\n                height,\n                top: 0,\n                right: width,\n                bottom: height,\n                left: 0,\n            };\n            verticalScrollDirection = getVerticalScrollDirection(clientRect, pointerY);\n            horizontalScrollDirection = getHorizontalScrollDirection(clientRect, pointerX);\n            scrollNode = window;\n        }\n        if (scrollNode &&\n            (verticalScrollDirection !== this._verticalScrollDirection ||\n                horizontalScrollDirection !== this._horizontalScrollDirection ||\n                scrollNode !== this._scrollNode)) {\n            this._verticalScrollDirection = verticalScrollDirection;\n            this._horizontalScrollDirection = horizontalScrollDirection;\n            this._scrollNode = scrollNode;\n            if ((verticalScrollDirection || horizontalScrollDirection) && scrollNode) {\n                this._ngZone.runOutsideAngular(this._startScrollInterval);\n            }\n            else {\n                this._stopScrolling();\n            }\n        }\n    }\n    /** Stops any currently-running auto-scroll sequences. */\n    _stopScrolling() {\n        this._stopScrollTimers.next();\n    }\n    /** Starts the dragging sequence within the list. */\n    _draggingStarted() {\n        const styles = coerceElement(this.element).style;\n        this.beforeStarted.next();\n        this._isDragging = true;\n        // We need to disable scroll snapping while the user is dragging, because it breaks automatic\n        // scrolling. The browser seems to round the value based on the snapping points which means\n        // that we can't increment/decrement the scroll position.\n        this._initialScrollSnap = styles.msScrollSnapType || styles.scrollSnapType || '';\n        styles.scrollSnapType = styles.msScrollSnapType = 'none';\n        this._sortStrategy.start(this._draggables);\n        this._cacheParentPositions();\n        this._viewportScrollSubscription.unsubscribe();\n        this._listenToScrollEvents();\n    }\n    /** Caches the positions of the configured scrollable parents. */\n    _cacheParentPositions() {\n        const element = coerceElement(this.element);\n        this._parentPositions.cache(this._scrollableElements);\n        // The list element is always in the `scrollableElements`\n        // so we can take advantage of the cached `ClientRect`.\n        this._clientRect = this._parentPositions.positions.get(element).clientRect;\n    }\n    /** Resets the container to its initial state. */\n    _reset() {\n        this._isDragging = false;\n        const styles = coerceElement(this.element).style;\n        styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;\n        this._siblings.forEach(sibling => sibling._stopReceiving(this));\n        this._sortStrategy.reset();\n        this._stopScrolling();\n        this._viewportScrollSubscription.unsubscribe();\n        this._parentPositions.clear();\n    }\n    /**\n     * Checks whether the user's pointer is positioned over the container.\n     * @param x Pointer position along the X axis.\n     * @param y Pointer position along the Y axis.\n     */\n    _isOverContainer(x, y) {\n        return this._clientRect != null && isInsideClientRect(this._clientRect, x, y);\n    }\n    /**\n     * Figures out whether an item should be moved into a sibling\n     * drop container, based on its current position.\n     * @param item Drag item that is being moved.\n     * @param x Position of the item along the X axis.\n     * @param y Position of the item along the Y axis.\n     */\n    _getSiblingContainerFromPosition(item, x, y) {\n        return this._siblings.find(sibling => sibling._canReceive(item, x, y));\n    }\n    /**\n     * Checks whether the drop list can receive the passed-in item.\n     * @param item Item that is being dragged into the list.\n     * @param x Position of the item along the X axis.\n     * @param y Position of the item along the Y axis.\n     */\n    _canReceive(item, x, y) {\n        if (!this._clientRect ||\n            !isInsideClientRect(this._clientRect, x, y) ||\n            !this.enterPredicate(item, this)) {\n            return false;\n        }\n        const elementFromPoint = this._getShadowRoot().elementFromPoint(x, y);\n        // If there's no element at the pointer position, then\n        // the client rect is probably scrolled out of the view.\n        if (!elementFromPoint) {\n            return false;\n        }\n        const nativeElement = coerceElement(this.element);\n        // The `ClientRect`, that we're using to find the container over which the user is\n        // hovering, doesn't give us any information on whether the element has been scrolled\n        // out of the view or whether it's overlapping with other containers. This means that\n        // we could end up transferring the item into a container that's invisible or is positioned\n        // below another one. We use the result from `elementFromPoint` to get the top-most element\n        // at the pointer position and to find whether it's one of the intersecting drop containers.\n        return elementFromPoint === nativeElement || nativeElement.contains(elementFromPoint);\n    }\n    /**\n     * Called by one of the connected drop lists when a dragging sequence has started.\n     * @param sibling Sibling in which dragging has started.\n     */\n    _startReceiving(sibling, items) {\n        const activeSiblings = this._activeSiblings;\n        if (!activeSiblings.has(sibling) &&\n            items.every(item => {\n                // Note that we have to add an exception to the `enterPredicate` for items that started off\n                // in this drop list. The drag ref has logic that allows an item to return to its initial\n                // container, if it has left the initial container and none of the connected containers\n                // allow it to enter. See `DragRef._updateActiveDropContainer` for more context.\n                return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;\n            })) {\n            activeSiblings.add(sibling);\n            this._cacheParentPositions();\n            this._listenToScrollEvents();\n        }\n    }\n    /**\n     * Called by a connected drop list when dragging has stopped.\n     * @param sibling Sibling whose dragging has stopped.\n     */\n    _stopReceiving(sibling) {\n        this._activeSiblings.delete(sibling);\n        this._viewportScrollSubscription.unsubscribe();\n    }\n    /**\n     * Starts listening to scroll events on the viewport.\n     * Used for updating the internal state of the list.\n     */\n    _listenToScrollEvents() {\n        this._viewportScrollSubscription = this._dragDropRegistry\n            .scrolled(this._getShadowRoot())\n            .subscribe(event => {\n            if (this.isDragging()) {\n                const scrollDifference = this._parentPositions.handleScroll(event);\n                if (scrollDifference) {\n                    this._sortStrategy.updateOnScroll(scrollDifference.top, scrollDifference.left);\n                }\n            }\n            else if (this.isReceiving()) {\n                this._cacheParentPositions();\n            }\n        });\n    }\n    /**\n     * Lazily resolves and returns the shadow root of the element. We do this in a function, rather\n     * than saving it in property directly on init, because we want to resolve it as late as possible\n     * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the\n     * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.\n     */\n    _getShadowRoot() {\n        if (!this._cachedShadowRoot) {\n            const shadowRoot = _getShadowRoot(coerceElement(this.element));\n            this._cachedShadowRoot = (shadowRoot || this._document);\n        }\n        return this._cachedShadowRoot;\n    }\n    /** Notifies any siblings that may potentially receive the item. */\n    _notifyReceivingSiblings() {\n        const draggedItems = this._sortStrategy\n            .getActiveItemsSnapshot()\n            .filter(item => item.isDragging());\n        this._siblings.forEach(sibling => sibling._startReceiving(this, draggedItems));\n    }\n}\n/**\n * Gets whether the vertical auto-scroll direction of a node.\n * @param clientRect Dimensions of the node.\n * @param pointerY Position of the user's pointer along the y axis.\n */\nfunction getVerticalScrollDirection(clientRect, pointerY) {\n    const { top, bottom, height } = clientRect;\n    const yThreshold = height * SCROLL_PROXIMITY_THRESHOLD;\n    if (pointerY >= top - yThreshold && pointerY <= top + yThreshold) {\n        return 1 /* AutoScrollVerticalDirection.UP */;\n    }\n    else if (pointerY >= bottom - yThreshold && pointerY <= bottom + yThreshold) {\n        return 2 /* AutoScrollVerticalDirection.DOWN */;\n    }\n    return 0 /* AutoScrollVerticalDirection.NONE */;\n}\n/**\n * Gets whether the horizontal auto-scroll direction of a node.\n * @param clientRect Dimensions of the node.\n * @param pointerX Position of the user's pointer along the x axis.\n */\nfunction getHorizontalScrollDirection(clientRect, pointerX) {\n    const { left, right, width } = clientRect;\n    const xThreshold = width * SCROLL_PROXIMITY_THRESHOLD;\n    if (pointerX >= left - xThreshold && pointerX <= left + xThreshold) {\n        return 1 /* AutoScrollHorizontalDirection.LEFT */;\n    }\n    else if (pointerX >= right - xThreshold && pointerX <= right + xThreshold) {\n        return 2 /* AutoScrollHorizontalDirection.RIGHT */;\n    }\n    return 0 /* AutoScrollHorizontalDirection.NONE */;\n}\n/**\n * Gets the directions in which an element node should be scrolled,\n * assuming that the user's pointer is already within it scrollable region.\n * @param element Element for which we should calculate the scroll direction.\n * @param clientRect Bounding client rectangle of the element.\n * @param pointerX Position of the user's pointer along the x axis.\n * @param pointerY Position of the user's pointer along the y axis.\n */\nfunction getElementScrollDirections(element, clientRect, pointerX, pointerY) {\n    const computedVertical = getVerticalScrollDirection(clientRect, pointerY);\n    const computedHorizontal = getHorizontalScrollDirection(clientRect, pointerX);\n    let verticalScrollDirection = 0 /* AutoScrollVerticalDirection.NONE */;\n    let horizontalScrollDirection = 0 /* AutoScrollHorizontalDirection.NONE */;\n    // Note that we here we do some extra checks for whether the element is actually scrollable in\n    // a certain direction and we only assign the scroll direction if it is. We do this so that we\n    // can allow other elements to be scrolled, if the current element can't be scrolled anymore.\n    // This allows us to handle cases where the scroll regions of two scrollable elements overlap.\n    if (computedVertical) {\n        const scrollTop = element.scrollTop;\n        if (computedVertical === 1 /* AutoScrollVerticalDirection.UP */) {\n            if (scrollTop > 0) {\n                verticalScrollDirection = 1 /* AutoScrollVerticalDirection.UP */;\n            }\n        }\n        else if (element.scrollHeight - scrollTop > element.clientHeight) {\n            verticalScrollDirection = 2 /* AutoScrollVerticalDirection.DOWN */;\n        }\n    }\n    if (computedHorizontal) {\n        const scrollLeft = element.scrollLeft;\n        if (computedHorizontal === 1 /* AutoScrollHorizontalDirection.LEFT */) {\n            if (scrollLeft > 0) {\n                horizontalScrollDirection = 1 /* AutoScrollHorizontalDirection.LEFT */;\n            }\n        }\n        else if (element.scrollWidth - scrollLeft > element.clientWidth) {\n            horizontalScrollDirection = 2 /* AutoScrollHorizontalDirection.RIGHT */;\n        }\n    }\n    return [verticalScrollDirection, horizontalScrollDirection];\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.io/license\n */\n/** Event options that can be used to bind an active, capturing event. */\nconst activeCapturingEventOptions = normalizePassiveListenerOptions({\n    passive: false,\n    capture: true,\n});\n/**\n * Service that keeps track of all the drag item and drop container\n * instances, and manages global event listeners on the `document`.\n * @docs-private\n */\n// Note: this class is generic, rather than referencing CdkDrag and CdkDropList directly, in order\n// to avoid circular imports. If we were to reference them here, importing the registry into the\n// classes that are registering themselves will introduce a circular import.\nclass DragDropRegistry {\n    constructor(_ngZone, _document) {\n        this._ngZone = _ngZone;\n        /** Registered drop container instances. */\n        this._dropInstances = new Set();\n        /** Registered drag item instances. */\n        this._dragInstances = new Set();\n        /** Drag item instances that are currently being dragged. */\n        this._activeDragInstances = [];\n        /** Keeps track of the event listeners that we've bound to the `document`. */\n        this._globalListeners = new Map();\n        /**\n         * Predicate function to check if an item is being dragged.  Moved out into a property,\n         * because it'll be called a lot and we don't want to create a new function every time.\n         */\n        this._draggingPredicate = (item) => item.isDragging();\n        /**\n         * Emits the `touchmove` or `mousemove` events that are dispatched\n         * while the user is dragging a drag item instance.\n         */\n        this.pointerMove = new Subject();\n        /**\n         * Emits the `touchend` or `mouseup` events that are dispatched\n         * while the user is dragging a drag item instance.\n         */\n        this.pointerUp = new Subject();\n        /**\n         * Emits when the viewport has been scrolled while the user is dragging an item.\n         * @deprecated To be turned into a private member. Use the `scrolled` method instead.\n         * @breaking-change 13.0.0\n         */\n        this.scroll = new Subject();\n        /**\n         * Event listener that will prevent the default browser action while the user is dragging.\n         * @param event Event whose default action should be prevented.\n         */\n        this._preventDefaultWhileDragging = (event) => {\n            if (this._activeDragInstances.length > 0) {\n                event.preventDefault();\n            }\n        };\n        /** Event listener for `touchmove` that is bound even if no dragging is happening. */\n        this._persistentTouchmoveListener = (event) => {\n            if (this._activeDragInstances.length > 0) {\n                // Note that we only want to prevent the default action after dragging has actually started.\n                // Usually this is the same time at which the item is added to the `_activeDragInstances`,\n                // but it could be pushed back if the user has set up a drag delay or threshold.\n                if (this._activeDragInstances.some(this._draggingPredicate)) {\n                    event.preventDefault();\n                }\n                this.pointerMove.next(event);\n            }\n        };\n        this._document = _document;\n    }\n    /** Adds a drop container to the registry. */\n    registerDropContainer(drop) {\n        if (!this._dropInstances.has(drop)) {\n            this._dropInstances.add(drop);\n        }\n    }\n    /** Adds a drag item instance to the registry. */\n    registerDragItem(drag) {\n        this._dragInstances.add(drag);\n        // The `touchmove` event gets bound once, ahead of time, because WebKit\n        // won't preventDefault on a dynamically-added `touchmove` listener.\n        // See https://bugs.webkit.org/show_bug.cgi?id=184250.\n        if (this._dragInstances.size === 1) {\n            this._ngZone.runOutsideAngular(() => {\n                // The event handler has to be explicitly active,\n                // because newer browsers make it passive by default.\n                this._document.addEventListener('touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);\n            });\n        }\n    }\n    /** Removes a drop container from the registry. */\n    removeDropContainer(drop) {\n        this._dropInstances.delete(drop);\n    }\n    /** Removes a drag item instance from the registry. */\n    removeDragItem(drag) {\n        this._dragInstances.delete(drag);\n        this.stopDragging(drag);\n        if (this._dragInstances.size === 0) {\n            this._document.removeEventListener('touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);\n        }\n    }\n    /**\n     * Starts the dragging sequence for a drag instance.\n     * @param drag Drag instance which is being dragged.\n     * @param event Event that initiated the dragging.\n     */\n    startDragging(drag, event) {\n        // Do not process the same drag twice to avoid memory leaks and redundant listeners\n        if (this._activeDragInstances.indexOf(drag) > -1) {\n            return;\n        }\n        this._activeDragInstances.push(drag);\n        if (this._activeDragInstances.length === 1) {\n            const isTouchEvent = event.type.startsWith('touch');\n            // We explicitly bind __active__ listeners here, because newer browsers will default to\n            // passive ones for `mousemove` and `touchmove`. The events need to be active, because we\n            // use `preventDefault` to prevent the page from scrolling while the user is dragging.\n            this._globalListeners\n                .set(isTouchEvent ? 'touchend' : 'mouseup', {\n                handler: (e) => this.pointerUp.next(e),\n                options: true,\n            })\n                .set('scroll', {\n                handler: (e) => this.scroll.next(e),\n                // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't\n                // the document. See https://github.com/angular/components/issues/17144.\n                options: true,\n            })\n                // Preventing the default action on `mousemove` isn't enough to disable text selection\n                // on Safari so we need to prevent the selection event as well. Alternatively this can\n                // be done by setting `user-select: none` on the `body`, however it has causes a style\n                // recalculation which can be expensive on pages with a lot of elements.\n                .set('selectstart', {\n                handler: this._preventDefaultWhileDragging,\n                options: activeCapturingEventOptions,\n            });\n            // We don't have to bind a move event for touch drag sequences, because\n            // we already have a persistent global one bound from `registerDragItem`.\n            if (!isTouchEvent) {\n                this._globalListeners.set('mousemove', {\n                    handler: (e) => this.pointerMove.next(e),\n                    options: activeCapturingEventOptions,\n                });\n            }\n            this._ngZone.runOutsideAngular(() => {\n                this._globalListeners.forEach((config, name) => {\n                    this._document.addEventListener(name, config.handler, config.options);\n                });\n            });\n        }\n    }\n    /** Stops dragging a drag item instance. */\n    stopDragging(drag) {\n        const index = this._activeDragInstances.indexOf(drag);\n        if (index > -1) {\n            this._activeDragInstances.splice(index, 1);\n            if (this._activeDragInstances.length === 0) {\n                this._clearGlobalListeners();\n            }\n        }\n    }\n    /** Gets whether a drag item instance is currently being dragged. */\n    isDragging(drag) {\n        return this._activeDragInstances.indexOf(drag) > -1;\n    }\n    /**\n     * Gets a stream that will emit when any element on the page is scrolled while an item is being\n     * dragged.\n     * @param shadowRoot Optional shadow root that the current dragging sequence started from.\n     *   Top-level listeners won't pick up events coming from the shadow DOM so this parameter can\n     *   be used to include an additional top-level listener at the shadow root level.\n     */\n    scrolled(shadowRoot) {\n        const streams = [this.scroll];\n        if (shadowRoot && shadowRoot !== this._document) {\n            // Note that this is basically the same as `fromEvent` from rxjs, but we do it ourselves,\n            // because we want to guarantee that the event is bound outside of the `NgZone`. With\n            // `fromEvent` it'll only happen if the subscription is outside the `NgZone`.\n            streams.push(new Observable((observer) => {\n                return this._ngZone.runOutsideAngular(() => {\n                    const eventOptions = true;\n                    const callback = (event) => {\n                        if (this._activeDragInstances.length) {\n                            observer.next(event);\n                        }\n                    };\n                    shadowRoot.addEventListener('scroll', callback, eventOptions);\n                    return () => {\n                        shadowRoot.removeEventListener('scroll', callback, eventOptions);\n                    };\n                });\n            }));\n        }\n        return merge(...streams);\n    }\n    ngOnDestroy() {\n        this._dragInstances.forEach(instance => this.removeDragItem(instance));\n        this._dropInstances.forEach(instance => this.removeDropContainer(instance));\n        this._clearGlobalListeners();\n        this.pointerMove.complete();\n        this.pointerUp.complete();\n    }\n    /** Clears out the global event listeners from the `document`. */\n    _clearGlobalListeners() {\n        this._globalListeners.forEach((config, name) => {\n            this._document.removeEventListener(name, config.handler, config.options);\n        });\n        this._globalListeners.clear();\n    }\n}\nDragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropRegistry, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\n/** Default configuration to be used when creating a `DragRef`. */\nconst DEFAULT_CONFIG = {\n    dragStartThreshold: 5,\n    pointerDirectionChangeThreshold: 5,\n};\n/**\n * Service that allows for drag-and-drop functionality to be attached to DOM elements.\n */\nclass DragDrop {\n    constructor(_document, _ngZone, _viewportRuler, _dragDropRegistry) {\n        this._document = _document;\n        this._ngZone = _ngZone;\n        this._viewportRuler = _viewportRuler;\n        this._dragDropRegistry = _dragDropRegistry;\n    }\n    /**\n     * Turns an element into a draggable item.\n     * @param element Element to which to attach the dragging functionality.\n     * @param config Object used to configure the dragging behavior.\n     */\n    createDrag(element, config = DEFAULT_CONFIG) {\n        return new DragRef(element, config, this._document, this._ngZone, this._viewportRuler, this._dragDropRegistry);\n    }\n    /**\n     * Turns an element into a drop list.\n     * @param element Element to which to attach the drop list functionality.\n     */\n    createDropList(element) {\n        return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);\n    }\n}\nDragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });\nDragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDrop, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDrop, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i0.NgZone }, { type: i1.ViewportRuler }, { type: DragDropRegistry }]; } });\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.io/license\n */\n/**\n * Injection token that can be used for a `CdkDrag` to provide itself as a parent to the\n * drag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily\n * to avoid circular imports.\n * @docs-private\n */\nconst CDK_DRAG_PARENT = new InjectionToken('CDK_DRAG_PARENT');\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.io/license\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as\n * alternative token to the actual `CdkDropListGroup` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DROP_LIST_GROUP = new InjectionToken('CdkDropListGroup');\n/**\n * Declaratively connects sibling `cdkDropList` instances together. All of the `cdkDropList`\n * elements that are placed inside a `cdkDropListGroup` will be connected to each other\n * automatically. Can be used as an alternative to the `cdkDropListConnectedTo` input\n * from `cdkDropList`.\n */\nclass CdkDropListGroup {\n    constructor() {\n        /** Drop lists registered inside the group. */\n        this._items = new Set();\n        this._disabled = false;\n    }\n    /** Whether starting a dragging sequence from inside this group is disabled. */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n    }\n    ngOnDestroy() {\n        this._items.clear();\n    }\n}\nCdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDropListGroup, selector: \"[cdkDropListGroup]\", inputs: { disabled: [\"cdkDropListGroupDisabled\", \"disabled\"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: [\"cdkDropListGroup\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDropListGroup, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkDropListGroup]',\n                    exportAs: 'cdkDropListGroup',\n                    providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],\n                }]\n        }], propDecorators: { disabled: [{\n                type: Input,\n                args: ['cdkDropListGroupDisabled']\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.io/license\n */\n/**\n * Injection token that can be used to configure the\n * behavior of the drag&drop-related components.\n */\nconst CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');\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.io/license\n */\n/**\n * Asserts that a particular node is an element.\n * @param node Node to be checked.\n * @param name Name to attach to the error message.\n */\nfunction assertElementNode(node, name) {\n    if (node.nodeType !== 1) {\n        throw Error(`${name} must be attached to an element node. ` + `Currently attached to \"${node.nodeName}\".`);\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.io/license\n */\n/** Counter used to generate unique ids for drop zones. */\nlet _uniqueIdCounter = 0;\n/**\n * Injection token that can be used to reference instances of `CdkDropList`. It serves as\n * alternative token to the actual `CdkDropList` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DROP_LIST = new InjectionToken('CdkDropList');\n/** Container that wraps a set of draggable items. */\nclass CdkDropList {\n    constructor(\n    /** Element that the drop list is attached to. */\n    element, dragDrop, _changeDetectorRef, _scrollDispatcher, _dir, _group, config) {\n        this.element = element;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._scrollDispatcher = _scrollDispatcher;\n        this._dir = _dir;\n        this._group = _group;\n        /** Emits when the list has been destroyed. */\n        this._destroyed = new Subject();\n        /**\n         * Other draggable containers that this container is connected to and into which the\n         * container's items can be transferred. Can either be references to other drop containers,\n         * or their unique IDs.\n         */\n        this.connectedTo = [];\n        /**\n         * Unique ID for the drop zone. Can be used as a reference\n         * in the `connectedTo` of another `CdkDropList`.\n         */\n        this.id = `cdk-drop-list-${_uniqueIdCounter++}`;\n        /**\n         * Function that is used to determine whether an item\n         * is allowed to be moved into a drop container.\n         */\n        this.enterPredicate = () => true;\n        /** Functions that is used to determine whether an item can be sorted into a particular index. */\n        this.sortPredicate = () => true;\n        /** Emits when the user drops an item inside the container. */\n        this.dropped = new EventEmitter();\n        /**\n         * Emits when the user has moved a new drag item into this container.\n         */\n        this.entered = new EventEmitter();\n        /**\n         * Emits when the user removes an item from the container\n         * by dragging it into another container.\n         */\n        this.exited = new EventEmitter();\n        /** Emits as the user is swapping items while actively dragging. */\n        this.sorted = new EventEmitter();\n        /**\n         * Keeps track of the items that are registered with this container. Historically we used to\n         * do this with a `ContentChildren` query, however queries don't handle transplanted views very\n         * well which means that we can't handle cases like dragging the headers of a `mat-table`\n         * correctly. What we do instead is to have the items register themselves with the container\n         * and then we sort them based on their position in the DOM.\n         */\n        this._unsortedItems = new Set();\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            assertElementNode(element.nativeElement, 'cdkDropList');\n        }\n        this._dropListRef = dragDrop.createDropList(element);\n        this._dropListRef.data = this;\n        if (config) {\n            this._assignDefaults(config);\n        }\n        this._dropListRef.enterPredicate = (drag, drop) => {\n            return this.enterPredicate(drag.data, drop.data);\n        };\n        this._dropListRef.sortPredicate = (index, drag, drop) => {\n            return this.sortPredicate(index, drag.data, drop.data);\n        };\n        this._setupInputSyncSubscription(this._dropListRef);\n        this._handleEvents(this._dropListRef);\n        CdkDropList._dropLists.push(this);\n        if (_group) {\n            _group._items.add(this);\n        }\n    }\n    /** Whether starting a dragging sequence from this container is disabled. */\n    get disabled() {\n        return this._disabled || (!!this._group && this._group.disabled);\n    }\n    set disabled(value) {\n        // Usually we sync the directive and ref state right before dragging starts, in order to have\n        // a single point of failure and to avoid having to use setters for everything. `disabled` is\n        // a special case, because it can prevent the `beforeStarted` event from firing, which can lock\n        // the user in a disabled state, so we also need to sync it as it's being set.\n        this._dropListRef.disabled = this._disabled = coerceBooleanProperty(value);\n    }\n    /** Registers an items with the drop list. */\n    addItem(item) {\n        this._unsortedItems.add(item);\n        if (this._dropListRef.isDragging()) {\n            this._syncItemsWithRef();\n        }\n    }\n    /** Removes an item from the drop list. */\n    removeItem(item) {\n        this._unsortedItems.delete(item);\n        if (this._dropListRef.isDragging()) {\n            this._syncItemsWithRef();\n        }\n    }\n    /** Gets the registered items in the list, sorted by their position in the DOM. */\n    getSortedItems() {\n        return Array.from(this._unsortedItems).sort((a, b) => {\n            const documentPosition = a._dragRef\n                .getVisibleElement()\n                .compareDocumentPosition(b._dragRef.getVisibleElement());\n            // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.\n            // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n            // tslint:disable-next-line:no-bitwise\n            return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;\n        });\n    }\n    ngOnDestroy() {\n        const index = CdkDropList._dropLists.indexOf(this);\n        if (index > -1) {\n            CdkDropList._dropLists.splice(index, 1);\n        }\n        if (this._group) {\n            this._group._items.delete(this);\n        }\n        this._unsortedItems.clear();\n        this._dropListRef.dispose();\n        this._destroyed.next();\n        this._destroyed.complete();\n    }\n    /** Syncs the inputs of the CdkDropList with the options of the underlying DropListRef. */\n    _setupInputSyncSubscription(ref) {\n        if (this._dir) {\n            this._dir.change\n                .pipe(startWith(this._dir.value), takeUntil(this._destroyed))\n                .subscribe(value => ref.withDirection(value));\n        }\n        ref.beforeStarted.subscribe(() => {\n            const siblings = coerceArray(this.connectedTo).map(drop => {\n                if (typeof drop === 'string') {\n                    const correspondingDropList = CdkDropList._dropLists.find(list => list.id === drop);\n                    if (!correspondingDropList && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                        console.warn(`CdkDropList could not find connected drop list with id \"${drop}\"`);\n                    }\n                    return correspondingDropList;\n                }\n                return drop;\n            });\n            if (this._group) {\n                this._group._items.forEach(drop => {\n                    if (siblings.indexOf(drop) === -1) {\n                        siblings.push(drop);\n                    }\n                });\n            }\n            // Note that we resolve the scrollable parents here so that we delay the resolution\n            // as long as possible, ensuring that the element is in its final place in the DOM.\n            if (!this._scrollableParentsResolved) {\n                const scrollableParents = this._scrollDispatcher\n                    .getAncestorScrollContainers(this.element)\n                    .map(scrollable => scrollable.getElementRef().nativeElement);\n                this._dropListRef.withScrollableParents(scrollableParents);\n                // Only do this once since it involves traversing the DOM and the parents\n                // shouldn't be able to change without the drop list being destroyed.\n                this._scrollableParentsResolved = true;\n            }\n            ref.disabled = this.disabled;\n            ref.lockAxis = this.lockAxis;\n            ref.sortingDisabled = coerceBooleanProperty(this.sortingDisabled);\n            ref.autoScrollDisabled = coerceBooleanProperty(this.autoScrollDisabled);\n            ref.autoScrollStep = coerceNumberProperty(this.autoScrollStep, 2);\n            ref\n                .connectedTo(siblings.filter(drop => drop && drop !== this).map(list => list._dropListRef))\n                .withOrientation(this.orientation);\n        });\n    }\n    /** Handles events from the underlying DropListRef. */\n    _handleEvents(ref) {\n        ref.beforeStarted.subscribe(() => {\n            this._syncItemsWithRef();\n            this._changeDetectorRef.markForCheck();\n        });\n        ref.entered.subscribe(event => {\n            this.entered.emit({\n                container: this,\n                item: event.item.data,\n                currentIndex: event.currentIndex,\n            });\n        });\n        ref.exited.subscribe(event => {\n            this.exited.emit({\n                container: this,\n                item: event.item.data,\n            });\n            this._changeDetectorRef.markForCheck();\n        });\n        ref.sorted.subscribe(event => {\n            this.sorted.emit({\n                previousIndex: event.previousIndex,\n                currentIndex: event.currentIndex,\n                container: this,\n                item: event.item.data,\n            });\n        });\n        ref.dropped.subscribe(dropEvent => {\n            this.dropped.emit({\n                previousIndex: dropEvent.previousIndex,\n                currentIndex: dropEvent.currentIndex,\n                previousContainer: dropEvent.previousContainer.data,\n                container: dropEvent.container.data,\n                item: dropEvent.item.data,\n                isPointerOverContainer: dropEvent.isPointerOverContainer,\n                distance: dropEvent.distance,\n                dropPoint: dropEvent.dropPoint,\n                event: dropEvent.event,\n            });\n            // Mark for check since all of these events run outside of change\n            // detection and we're not guaranteed for something else to have triggered it.\n            this._changeDetectorRef.markForCheck();\n        });\n    }\n    /** Assigns the default input values based on a provided config object. */\n    _assignDefaults(config) {\n        const { lockAxis, draggingDisabled, sortingDisabled, listAutoScrollDisabled, listOrientation } = config;\n        this.disabled = draggingDisabled == null ? false : draggingDisabled;\n        this.sortingDisabled = sortingDisabled == null ? false : sortingDisabled;\n        this.autoScrollDisabled = listAutoScrollDisabled == null ? false : listAutoScrollDisabled;\n        this.orientation = listOrientation || 'vertical';\n        if (lockAxis) {\n            this.lockAxis = lockAxis;\n        }\n    }\n    /** Syncs up the registered drag items with underlying drop list ref. */\n    _syncItemsWithRef() {\n        this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));\n    }\n}\n/** Keeps track of the drop lists that are currently on the page. */\nCdkDropList._dropLists = [];\nCdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i3.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDropList, selector: \"[cdkDropList], cdk-drop-list\", inputs: { connectedTo: [\"cdkDropListConnectedTo\", \"connectedTo\"], data: [\"cdkDropListData\", \"data\"], orientation: [\"cdkDropListOrientation\", \"orientation\"], id: \"id\", lockAxis: [\"cdkDropListLockAxis\", \"lockAxis\"], disabled: [\"cdkDropListDisabled\", \"disabled\"], sortingDisabled: [\"cdkDropListSortingDisabled\", \"sortingDisabled\"], enterPredicate: [\"cdkDropListEnterPredicate\", \"enterPredicate\"], sortPredicate: [\"cdkDropListSortPredicate\", \"sortPredicate\"], autoScrollDisabled: [\"cdkDropListAutoScrollDisabled\", \"autoScrollDisabled\"], autoScrollStep: [\"cdkDropListAutoScrollStep\", \"autoScrollStep\"] }, outputs: { dropped: \"cdkDropListDropped\", entered: \"cdkDropListEntered\", exited: \"cdkDropListExited\", sorted: \"cdkDropListSorted\" }, host: { properties: { \"attr.id\": \"id\", \"class.cdk-drop-list-disabled\": \"disabled\", \"class.cdk-drop-list-dragging\": \"_dropListRef.isDragging()\", \"class.cdk-drop-list-receiving\": \"_dropListRef.isReceiving()\" }, classAttribute: \"cdk-drop-list\" }, providers: [\n        // Prevent child drop lists from picking up the same group as their parent.\n        { provide: CDK_DROP_LIST_GROUP, useValue: undefined },\n        { provide: CDK_DROP_LIST, useExisting: CdkDropList },\n    ], exportAs: [\"cdkDropList\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDropList, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkDropList], cdk-drop-list',\n                    exportAs: 'cdkDropList',\n                    providers: [\n                        // Prevent child drop lists from picking up the same group as their parent.\n                        { provide: CDK_DROP_LIST_GROUP, useValue: undefined },\n                        { provide: CDK_DROP_LIST, useExisting: CdkDropList },\n                    ],\n                    host: {\n                        'class': 'cdk-drop-list',\n                        '[attr.id]': 'id',\n                        '[class.cdk-drop-list-disabled]': 'disabled',\n                        '[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',\n                        '[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: i1.ScrollDispatcher }, { type: i3.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: CdkDropListGroup, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [CDK_DROP_LIST_GROUP]\n                }, {\n                    type: SkipSelf\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [CDK_DRAG_CONFIG]\n                }] }]; }, propDecorators: { connectedTo: [{\n                type: Input,\n                args: ['cdkDropListConnectedTo']\n            }], data: [{\n                type: Input,\n                args: ['cdkDropListData']\n            }], orientation: [{\n                type: Input,\n                args: ['cdkDropListOrientation']\n            }], id: [{\n                type: Input\n            }], lockAxis: [{\n                type: Input,\n                args: ['cdkDropListLockAxis']\n            }], disabled: [{\n                type: Input,\n                args: ['cdkDropListDisabled']\n            }], sortingDisabled: [{\n                type: Input,\n                args: ['cdkDropListSortingDisabled']\n            }], enterPredicate: [{\n                type: Input,\n                args: ['cdkDropListEnterPredicate']\n            }], sortPredicate: [{\n                type: Input,\n                args: ['cdkDropListSortPredicate']\n            }], autoScrollDisabled: [{\n                type: Input,\n                args: ['cdkDropListAutoScrollDisabled']\n            }], autoScrollStep: [{\n                type: Input,\n                args: ['cdkDropListAutoScrollStep']\n            }], dropped: [{\n                type: Output,\n                args: ['cdkDropListDropped']\n            }], entered: [{\n                type: Output,\n                args: ['cdkDropListEntered']\n            }], exited: [{\n                type: Output,\n                args: ['cdkDropListExited']\n            }], sorted: [{\n                type: Output,\n                args: ['cdkDropListSorted']\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `CdkDragHandle`. It serves as\n * alternative token to the actual `CdkDragHandle` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_HANDLE = new InjectionToken('CdkDragHandle');\n/** Handle that can be used to drag a CdkDrag instance. */\nclass CdkDragHandle {\n    constructor(element, parentDrag) {\n        this.element = element;\n        /** Emits when the state of the handle has changed. */\n        this._stateChanges = new Subject();\n        this._disabled = false;\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            assertElementNode(element.nativeElement, 'cdkDragHandle');\n        }\n        this._parentDrag = parentDrag;\n    }\n    /** Whether starting to drag through this handle is disabled. */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n        this._stateChanges.next(this);\n    }\n    ngOnDestroy() {\n        this._stateChanges.complete();\n    }\n}\nCdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDragHandle, selector: \"[cdkDragHandle]\", inputs: { disabled: [\"cdkDragHandleDisabled\", \"disabled\"] }, host: { classAttribute: \"cdk-drag-handle\" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragHandle, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkDragHandle]',\n                    host: {\n                        'class': 'cdk-drag-handle',\n                    },\n                    providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [CDK_DRAG_PARENT]\n                }, {\n                    type: Optional\n                }, {\n                    type: SkipSelf\n                }] }]; }, propDecorators: { disabled: [{\n                type: Input,\n                args: ['cdkDragHandleDisabled']\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as\n * alternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_PLACEHOLDER = new InjectionToken('CdkDragPlaceholder');\n/**\n * Element that will be used as a template for the placeholder of a CdkDrag when\n * it is being dragged. The placeholder is displayed in place of the element being dragged.\n */\nclass CdkDragPlaceholder {\n    constructor(templateRef) {\n        this.templateRef = templateRef;\n    }\n}\nCdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDragPlaceholder, selector: \"ng-template[cdkDragPlaceholder]\", inputs: { data: \"data\" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragPlaceholder, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'ng-template[cdkDragPlaceholder]',\n                    providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{\n                type: Input\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `CdkDragPreview`. It serves as\n * alternative token to the actual `CdkDragPreview` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_DRAG_PREVIEW = new InjectionToken('CdkDragPreview');\n/**\n * Element that will be used as a template for the preview\n * of a CdkDrag when it is being dragged.\n */\nclass CdkDragPreview {\n    constructor(templateRef) {\n        this.templateRef = templateRef;\n        this._matchSize = false;\n    }\n    /** Whether the preview should preserve the same size as the item that is being dragged. */\n    get matchSize() {\n        return this._matchSize;\n    }\n    set matchSize(value) {\n        this._matchSize = coerceBooleanProperty(value);\n    }\n}\nCdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDragPreview, selector: \"ng-template[cdkDragPreview]\", inputs: { data: \"data\", matchSize: \"matchSize\" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDragPreview, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'ng-template[cdkDragPreview]',\n                    providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{\n                type: Input\n            }], matchSize: [{\n                type: Input\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.io/license\n */\nconst DRAG_HOST_CLASS = 'cdk-drag';\n/** Element that can be moved inside a CdkDropList container. */\nclass CdkDrag {\n    constructor(\n    /** Element that the draggable is attached to. */\n    element, \n    /** Droppable container that the draggable is a part of. */\n    dropContainer, \n    /**\n     * @deprecated `_document` parameter no longer being used and will be removed.\n     * @breaking-change 12.0.0\n     */\n    _document, _ngZone, _viewContainerRef, config, _dir, dragDrop, _changeDetectorRef, _selfHandle, _parentDrag) {\n        this.element = element;\n        this.dropContainer = dropContainer;\n        this._ngZone = _ngZone;\n        this._viewContainerRef = _viewContainerRef;\n        this._dir = _dir;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._selfHandle = _selfHandle;\n        this._parentDrag = _parentDrag;\n        this._destroyed = new Subject();\n        /** Emits when the user starts dragging the item. */\n        this.started = new EventEmitter();\n        /** Emits when the user has released a drag item, before any animations have started. */\n        this.released = new EventEmitter();\n        /** Emits when the user stops dragging an item in the container. */\n        this.ended = new EventEmitter();\n        /** Emits when the user has moved the item into a new container. */\n        this.entered = new EventEmitter();\n        /** Emits when the user removes the item its container by dragging it into another container. */\n        this.exited = new EventEmitter();\n        /** Emits when the user drops the item inside a container. */\n        this.dropped = new EventEmitter();\n        /**\n         * Emits as the user is dragging the item. Use with caution,\n         * because this event will fire for every pixel that the user has dragged.\n         */\n        this.moved = new Observable((observer) => {\n            const subscription = this._dragRef.moved\n                .pipe(map(movedEvent => ({\n                source: this,\n                pointerPosition: movedEvent.pointerPosition,\n                event: movedEvent.event,\n                delta: movedEvent.delta,\n                distance: movedEvent.distance,\n            })))\n                .subscribe(observer);\n            return () => {\n                subscription.unsubscribe();\n            };\n        });\n        this._dragRef = dragDrop.createDrag(element, {\n            dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,\n            pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null\n                ? config.pointerDirectionChangeThreshold\n                : 5,\n            zIndex: config?.zIndex,\n        });\n        this._dragRef.data = this;\n        // We have to keep track of the drag instances in order to be able to match an element to\n        // a drag instance. We can't go through the global registry of `DragRef`, because the root\n        // element could be different.\n        CdkDrag._dragInstances.push(this);\n        if (config) {\n            this._assignDefaults(config);\n        }\n        // Note that usually the container is assigned when the drop list is picks up the item, but in\n        // some cases (mainly transplanted views with OnPush, see #18341) we may end up in a situation\n        // where there are no items on the first change detection pass, but the items get picked up as\n        // soon as the user triggers another pass by dragging. This is a problem, because the item would\n        // have to switch from standalone mode to drag mode in the middle of the dragging sequence which\n        // is too late since the two modes save different kinds of information. We work around it by\n        // assigning the drop container both from here and the list.\n        if (dropContainer) {\n            this._dragRef._withDropContainer(dropContainer._dropListRef);\n            dropContainer.addItem(this);\n        }\n        this._syncInputs(this._dragRef);\n        this._handleEvents(this._dragRef);\n    }\n    /** Whether starting to drag this element is disabled. */\n    get disabled() {\n        return this._disabled || (this.dropContainer && this.dropContainer.disabled);\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n        this._dragRef.disabled = this._disabled;\n    }\n    /**\n     * Returns the element that is being used as a placeholder\n     * while the current element is being dragged.\n     */\n    getPlaceholderElement() {\n        return this._dragRef.getPlaceholderElement();\n    }\n    /** Returns the root draggable element. */\n    getRootElement() {\n        return this._dragRef.getRootElement();\n    }\n    /** Resets a standalone drag item to its initial position. */\n    reset() {\n        this._dragRef.reset();\n    }\n    /**\n     * Gets the pixel coordinates of the draggable outside of a drop container.\n     */\n    getFreeDragPosition() {\n        return this._dragRef.getFreeDragPosition();\n    }\n    /**\n     * Sets the current position in pixels the draggable outside of a drop container.\n     * @param value New position to be set.\n     */\n    setFreeDragPosition(value) {\n        this._dragRef.setFreeDragPosition(value);\n    }\n    ngAfterViewInit() {\n        // Normally this isn't in the zone, but it can cause major performance regressions for apps\n        // using `zone-patch-rxjs` because it'll trigger a change detection when it unsubscribes.\n        this._ngZone.runOutsideAngular(() => {\n            // We need to wait for the zone to stabilize, in order for the reference\n            // element to be in the proper place in the DOM. This is mostly relevant\n            // for draggable elements inside portals since they get stamped out in\n            // their original DOM position and then they get transferred to the portal.\n            this._ngZone.onStable.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {\n                this._updateRootElement();\n                this._setupHandlesListener();\n                if (this.freeDragPosition) {\n                    this._dragRef.setFreeDragPosition(this.freeDragPosition);\n                }\n            });\n        });\n    }\n    ngOnChanges(changes) {\n        const rootSelectorChange = changes['rootElementSelector'];\n        const positionChange = changes['freeDragPosition'];\n        // We don't have to react to the first change since it's being\n        // handled in `ngAfterViewInit` where it needs to be deferred.\n        if (rootSelectorChange && !rootSelectorChange.firstChange) {\n            this._updateRootElement();\n        }\n        // Skip the first change since it's being handled in `ngAfterViewInit`.\n        if (positionChange && !positionChange.firstChange && this.freeDragPosition) {\n            this._dragRef.setFreeDragPosition(this.freeDragPosition);\n        }\n    }\n    ngOnDestroy() {\n        if (this.dropContainer) {\n            this.dropContainer.removeItem(this);\n        }\n        const index = CdkDrag._dragInstances.indexOf(this);\n        if (index > -1) {\n            CdkDrag._dragInstances.splice(index, 1);\n        }\n        // Unnecessary in most cases, but used to avoid extra change detections with `zone-paths-rxjs`.\n        this._ngZone.runOutsideAngular(() => {\n            this._destroyed.next();\n            this._destroyed.complete();\n            this._dragRef.dispose();\n        });\n    }\n    /** Syncs the root element with the `DragRef`. */\n    _updateRootElement() {\n        const element = this.element.nativeElement;\n        let rootElement = element;\n        if (this.rootElementSelector) {\n            rootElement =\n                element.closest !== undefined\n                    ? element.closest(this.rootElementSelector)\n                    : // Comment tag doesn't have closest method, so use parent's one.\n                        element.parentElement?.closest(this.rootElementSelector);\n        }\n        if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            assertElementNode(rootElement, 'cdkDrag');\n        }\n        this._dragRef.withRootElement(rootElement || element);\n    }\n    /** Gets the boundary element, based on the `boundaryElement` value. */\n    _getBoundaryElement() {\n        const boundary = this.boundaryElement;\n        if (!boundary) {\n            return null;\n        }\n        if (typeof boundary === 'string') {\n            return this.element.nativeElement.closest(boundary);\n        }\n        return coerceElement(boundary);\n    }\n    /** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */\n    _syncInputs(ref) {\n        ref.beforeStarted.subscribe(() => {\n            if (!ref.isDragging()) {\n                const dir = this._dir;\n                const dragStartDelay = this.dragStartDelay;\n                const placeholder = this._placeholderTemplate\n                    ? {\n                        template: this._placeholderTemplate.templateRef,\n                        context: this._placeholderTemplate.data,\n                        viewContainer: this._viewContainerRef,\n                    }\n                    : null;\n                const preview = this._previewTemplate\n                    ? {\n                        template: this._previewTemplate.templateRef,\n                        context: this._previewTemplate.data,\n                        matchSize: this._previewTemplate.matchSize,\n                        viewContainer: this._viewContainerRef,\n                    }\n                    : null;\n                ref.disabled = this.disabled;\n                ref.lockAxis = this.lockAxis;\n                ref.dragStartDelay =\n                    typeof dragStartDelay === 'object' && dragStartDelay\n                        ? dragStartDelay\n                        : coerceNumberProperty(dragStartDelay);\n                ref.constrainPosition = this.constrainPosition;\n                ref.previewClass = this.previewClass;\n                ref\n                    .withBoundaryElement(this._getBoundaryElement())\n                    .withPlaceholderTemplate(placeholder)\n                    .withPreviewTemplate(preview)\n                    .withPreviewContainer(this.previewContainer || 'global');\n                if (dir) {\n                    ref.withDirection(dir.value);\n                }\n            }\n        });\n        // This only needs to be resolved once.\n        ref.beforeStarted.pipe(take(1)).subscribe(() => {\n            // If we managed to resolve a parent through DI, use it.\n            if (this._parentDrag) {\n                ref.withParent(this._parentDrag._dragRef);\n                return;\n            }\n            // Otherwise fall back to resolving the parent by looking up the DOM. This can happen if\n            // the item was projected into another item by something like `ngTemplateOutlet`.\n            let parent = this.element.nativeElement.parentElement;\n            while (parent) {\n                if (parent.classList.contains(DRAG_HOST_CLASS)) {\n                    ref.withParent(CdkDrag._dragInstances.find(drag => {\n                        return drag.element.nativeElement === parent;\n                    })?._dragRef || null);\n                    break;\n                }\n                parent = parent.parentElement;\n            }\n        });\n    }\n    /** Handles the events from the underlying `DragRef`. */\n    _handleEvents(ref) {\n        ref.started.subscribe(startEvent => {\n            this.started.emit({ source: this, event: startEvent.event });\n            // Since all of these events run outside of change detection,\n            // we need to ensure that everything is marked correctly.\n            this._changeDetectorRef.markForCheck();\n        });\n        ref.released.subscribe(releaseEvent => {\n            this.released.emit({ source: this, event: releaseEvent.event });\n        });\n        ref.ended.subscribe(endEvent => {\n            this.ended.emit({\n                source: this,\n                distance: endEvent.distance,\n                dropPoint: endEvent.dropPoint,\n                event: endEvent.event,\n            });\n            // Since all of these events run outside of change detection,\n            // we need to ensure that everything is marked correctly.\n            this._changeDetectorRef.markForCheck();\n        });\n        ref.entered.subscribe(enterEvent => {\n            this.entered.emit({\n                container: enterEvent.container.data,\n                item: this,\n                currentIndex: enterEvent.currentIndex,\n            });\n        });\n        ref.exited.subscribe(exitEvent => {\n            this.exited.emit({\n                container: exitEvent.container.data,\n                item: this,\n            });\n        });\n        ref.dropped.subscribe(dropEvent => {\n            this.dropped.emit({\n                previousIndex: dropEvent.previousIndex,\n                currentIndex: dropEvent.currentIndex,\n                previousContainer: dropEvent.previousContainer.data,\n                container: dropEvent.container.data,\n                isPointerOverContainer: dropEvent.isPointerOverContainer,\n                item: this,\n                distance: dropEvent.distance,\n                dropPoint: dropEvent.dropPoint,\n                event: dropEvent.event,\n            });\n        });\n    }\n    /** Assigns the default input values based on a provided config object. */\n    _assignDefaults(config) {\n        const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;\n        this.disabled = draggingDisabled == null ? false : draggingDisabled;\n        this.dragStartDelay = dragStartDelay || 0;\n        if (lockAxis) {\n            this.lockAxis = lockAxis;\n        }\n        if (constrainPosition) {\n            this.constrainPosition = constrainPosition;\n        }\n        if (previewClass) {\n            this.previewClass = previewClass;\n        }\n        if (boundaryElement) {\n            this.boundaryElement = boundaryElement;\n        }\n        if (rootElementSelector) {\n            this.rootElementSelector = rootElementSelector;\n        }\n        if (previewContainer) {\n            this.previewContainer = previewContainer;\n        }\n    }\n    /** Sets up the listener that syncs the handles with the drag ref. */\n    _setupHandlesListener() {\n        // Listen for any newly-added handles.\n        this._handles.changes\n            .pipe(startWith(this._handles), \n        // Sync the new handles with the DragRef.\n        tap((handles) => {\n            const childHandleElements = handles\n                .filter(handle => handle._parentDrag === this)\n                .map(handle => handle.element);\n            // Usually handles are only allowed to be a descendant of the drag element, but if\n            // the consumer defined a different drag root, we should allow the drag element\n            // itself to be a handle too.\n            if (this._selfHandle && this.rootElementSelector) {\n                childHandleElements.push(this.element);\n            }\n            this._dragRef.withHandles(childHandleElements);\n        }), \n        // Listen if the state of any of the handles changes.\n        switchMap((handles) => {\n            return merge(...handles.map(item => {\n                return item._stateChanges.pipe(startWith(item));\n            }));\n        }), takeUntil(this._destroyed))\n            .subscribe(handleInstance => {\n            // Enabled/disable the handle that changed in the DragRef.\n            const dragRef = this._dragRef;\n            const handle = handleInstance.element.nativeElement;\n            handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);\n        });\n    }\n}\nCdkDrag._dragInstances = [];\nCdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i3.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkDrag, selector: \"[cdkDrag]\", inputs: { data: [\"cdkDragData\", \"data\"], lockAxis: [\"cdkDragLockAxis\", \"lockAxis\"], rootElementSelector: [\"cdkDragRootElement\", \"rootElementSelector\"], boundaryElement: [\"cdkDragBoundary\", \"boundaryElement\"], dragStartDelay: [\"cdkDragStartDelay\", \"dragStartDelay\"], freeDragPosition: [\"cdkDragFreeDragPosition\", \"freeDragPosition\"], disabled: [\"cdkDragDisabled\", \"disabled\"], constrainPosition: [\"cdkDragConstrainPosition\", \"constrainPosition\"], previewClass: [\"cdkDragPreviewClass\", \"previewClass\"], previewContainer: [\"cdkDragPreviewContainer\", \"previewContainer\"] }, outputs: { started: \"cdkDragStarted\", released: \"cdkDragReleased\", ended: \"cdkDragEnded\", entered: \"cdkDragEntered\", exited: \"cdkDragExited\", dropped: \"cdkDragDropped\", moved: \"cdkDragMoved\" }, host: { properties: { \"class.cdk-drag-disabled\": \"disabled\", \"class.cdk-drag-dragging\": \"_dragRef.isDragging()\" }, classAttribute: \"cdk-drag\" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], queries: [{ propertyName: \"_previewTemplate\", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: \"_placeholderTemplate\", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: \"_handles\", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: [\"cdkDrag\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkDrag, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkDrag]',\n                    exportAs: 'cdkDrag',\n                    host: {\n                        'class': DRAG_HOST_CLASS,\n                        '[class.cdk-drag-disabled]': 'disabled',\n                        '[class.cdk-drag-dragging]': '_dragRef.isDragging()',\n                    },\n                    providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [CDK_DROP_LIST]\n                }, {\n                    type: Optional\n                }, {\n                    type: SkipSelf\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [CDK_DRAG_CONFIG]\n                }] }, { type: i3.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: CdkDragHandle, decorators: [{\n                    type: Optional\n                }, {\n                    type: Self\n                }, {\n                    type: Inject,\n                    args: [CDK_DRAG_HANDLE]\n                }] }, { type: CdkDrag, decorators: [{\n                    type: Optional\n                }, {\n                    type: SkipSelf\n                }, {\n                    type: Inject,\n                    args: [CDK_DRAG_PARENT]\n                }] }]; }, propDecorators: { _handles: [{\n                type: ContentChildren,\n                args: [CDK_DRAG_HANDLE, { descendants: true }]\n            }], _previewTemplate: [{\n                type: ContentChild,\n                args: [CDK_DRAG_PREVIEW]\n            }], _placeholderTemplate: [{\n                type: ContentChild,\n                args: [CDK_DRAG_PLACEHOLDER]\n            }], data: [{\n                type: Input,\n                args: ['cdkDragData']\n            }], lockAxis: [{\n                type: Input,\n                args: ['cdkDragLockAxis']\n            }], rootElementSelector: [{\n                type: Input,\n                args: ['cdkDragRootElement']\n            }], boundaryElement: [{\n                type: Input,\n                args: ['cdkDragBoundary']\n            }], dragStartDelay: [{\n                type: Input,\n                args: ['cdkDragStartDelay']\n            }], freeDragPosition: [{\n                type: Input,\n                args: ['cdkDragFreeDragPosition']\n            }], disabled: [{\n                type: Input,\n                args: ['cdkDragDisabled']\n            }], constrainPosition: [{\n                type: Input,\n                args: ['cdkDragConstrainPosition']\n            }], previewClass: [{\n                type: Input,\n                args: ['cdkDragPreviewClass']\n            }], previewContainer: [{\n                type: Input,\n                args: ['cdkDragPreviewContainer']\n            }], started: [{\n                type: Output,\n                args: ['cdkDragStarted']\n            }], released: [{\n                type: Output,\n                args: ['cdkDragReleased']\n            }], ended: [{\n                type: Output,\n                args: ['cdkDragEnded']\n            }], entered: [{\n                type: Output,\n                args: ['cdkDragEntered']\n            }], exited: [{\n                type: Output,\n                args: ['cdkDragExited']\n            }], dropped: [{\n                type: Output,\n                args: ['cdkDragDropped']\n            }], moved: [{\n                type: Output,\n                args: ['cdkDragMoved']\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.io/license\n */\nclass DragDropModule {\n}\nDragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nDragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,\n        CdkDropListGroup,\n        CdkDrag,\n        CdkDragHandle,\n        CdkDragPreview,\n        CdkDragPlaceholder], exports: [CdkScrollableModule,\n        CdkDropList,\n        CdkDropListGroup,\n        CdkDrag,\n        CdkDragHandle,\n        CdkDragPreview,\n        CdkDragPlaceholder] });\nDragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: DragDropModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [\n                        CdkDropList,\n                        CdkDropListGroup,\n                        CdkDrag,\n                        CdkDragHandle,\n                        CdkDragPreview,\n                        CdkDragPlaceholder,\n                    ],\n                    exports: [\n                        CdkScrollableModule,\n                        CdkDropList,\n                        CdkDropListGroup,\n                        CdkDrag,\n                        CdkDragHandle,\n                        CdkDragPreview,\n                        CdkDragPlaceholder,\n                    ],\n                    providers: [DragDrop],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };\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.io/license\n */\nconst MAC_ENTER = 3;\nconst BACKSPACE = 8;\nconst TAB = 9;\nconst NUM_CENTER = 12;\nconst ENTER = 13;\nconst SHIFT = 16;\nconst CONTROL = 17;\nconst ALT = 18;\nconst PAUSE = 19;\nconst CAPS_LOCK = 20;\nconst ESCAPE = 27;\nconst SPACE = 32;\nconst PAGE_UP = 33;\nconst PAGE_DOWN = 34;\nconst END = 35;\nconst HOME = 36;\nconst LEFT_ARROW = 37;\nconst UP_ARROW = 38;\nconst RIGHT_ARROW = 39;\nconst DOWN_ARROW = 40;\nconst PLUS_SIGN = 43;\nconst PRINT_SCREEN = 44;\nconst INSERT = 45;\nconst DELETE = 46;\nconst ZERO = 48;\nconst ONE = 49;\nconst TWO = 50;\nconst THREE = 51;\nconst FOUR = 52;\nconst FIVE = 53;\nconst SIX = 54;\nconst SEVEN = 55;\nconst EIGHT = 56;\nconst NINE = 57;\nconst FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186\nconst FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187\nconst QUESTION_MARK = 63;\nconst AT_SIGN = 64;\nconst A = 65;\nconst B = 66;\nconst C = 67;\nconst D = 68;\nconst E = 69;\nconst F = 70;\nconst G = 71;\nconst H = 72;\nconst I = 73;\nconst J = 74;\nconst K = 75;\nconst L = 76;\nconst M = 77;\nconst N = 78;\nconst O = 79;\nconst P = 80;\nconst Q = 81;\nconst R = 82;\nconst S = 83;\nconst T = 84;\nconst U = 85;\nconst V = 86;\nconst W = 87;\nconst X = 88;\nconst Y = 89;\nconst Z = 90;\nconst META = 91; // WIN_KEY_LEFT\nconst MAC_WK_CMD_LEFT = 91;\nconst MAC_WK_CMD_RIGHT = 93;\nconst CONTEXT_MENU = 93;\nconst NUMPAD_ZERO = 96;\nconst NUMPAD_ONE = 97;\nconst NUMPAD_TWO = 98;\nconst NUMPAD_THREE = 99;\nconst NUMPAD_FOUR = 100;\nconst NUMPAD_FIVE = 101;\nconst NUMPAD_SIX = 102;\nconst NUMPAD_SEVEN = 103;\nconst NUMPAD_EIGHT = 104;\nconst NUMPAD_NINE = 105;\nconst NUMPAD_MULTIPLY = 106;\nconst NUMPAD_PLUS = 107;\nconst NUMPAD_MINUS = 109;\nconst NUMPAD_PERIOD = 110;\nconst NUMPAD_DIVIDE = 111;\nconst F1 = 112;\nconst F2 = 113;\nconst F3 = 114;\nconst F4 = 115;\nconst F5 = 116;\nconst F6 = 117;\nconst F7 = 118;\nconst F8 = 119;\nconst F9 = 120;\nconst F10 = 121;\nconst F11 = 122;\nconst F12 = 123;\nconst NUM_LOCK = 144;\nconst SCROLL_LOCK = 145;\nconst FIRST_MEDIA = 166;\nconst FF_MINUS = 173;\nconst MUTE = 173; // Firefox (Gecko) fires 181 for MUTE\nconst VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN\nconst VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP\nconst FF_MUTE = 181;\nconst FF_VOLUME_DOWN = 182;\nconst LAST_MEDIA = 183;\nconst FF_VOLUME_UP = 183;\nconst SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON\nconst EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS\nconst COMMA = 188;\nconst DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS\nconst PERIOD = 190;\nconst SLASH = 191;\nconst APOSTROPHE = 192;\nconst TILDE = 192;\nconst OPEN_SQUARE_BRACKET = 219;\nconst BACKSLASH = 220;\nconst CLOSE_SQUARE_BRACKET = 221;\nconst SINGLE_QUOTE = 222;\nconst MAC_META = 224;\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.io/license\n */\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nfunction hasModifierKey(event, ...modifiers) {\n    if (modifiers.length) {\n        return modifiers.some(modifier => event[modifier]);\n    }\n    return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey };\n","import * as i0 from '@angular/core';\nimport { NgModule, Injectable } from '@angular/core';\nimport { coerceArray } from '@angular/cdk/coercion';\nimport { Subject, combineLatest, concat, Observable } from 'rxjs';\nimport { take, skip, debounceTime, map, startWith, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/platform';\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.io/license\n */\nclass LayoutModule {\n}\nLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: LayoutModule });\nLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LayoutModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: LayoutModule, decorators: [{\n            type: NgModule,\n            args: [{}]\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.io/license\n */\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility = new Set();\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode;\n/** A utility for calling matchMedia queries. */\nclass MediaMatcher {\n    constructor(_platform) {\n        this._platform = _platform;\n        this._matchMedia =\n            this._platform.isBrowser && window.matchMedia\n                ? // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n                    // call it from a different scope.\n                    window.matchMedia.bind(window)\n                : noopMatchMedia;\n    }\n    /**\n     * Evaluates the given media query and returns the native MediaQueryList from which results\n     * can be retrieved.\n     * Confirms the layout engine will trigger for the selector query provided and returns the\n     * MediaQueryList for the query provided.\n     */\n    matchMedia(query) {\n        if (this._platform.WEBKIT || this._platform.BLINK) {\n            createEmptyStyleRule(query);\n        }\n        return this._matchMedia(query);\n    }\n}\nMediaMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MediaMatcher, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nMediaMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MediaMatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MediaMatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Platform }]; } });\n/**\n * Creates an empty stylesheet that is used to work around browser inconsistencies related to\n * `matchMedia`. At the time of writing, it handles the following cases:\n * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia`\n * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration.\n * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules\n * inside the `@media` match existing elements on the page. We work around it by having one rule\n * targeting the `body`. See https://github.com/angular/components/issues/23546.\n */\nfunction createEmptyStyleRule(query) {\n    if (mediaQueriesForWebkitCompatibility.has(query)) {\n        return;\n    }\n    try {\n        if (!mediaQueryStyleNode) {\n            mediaQueryStyleNode = document.createElement('style');\n            mediaQueryStyleNode.setAttribute('type', 'text/css');\n            document.head.appendChild(mediaQueryStyleNode);\n        }\n        if (mediaQueryStyleNode.sheet) {\n            mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);\n            mediaQueriesForWebkitCompatibility.add(query);\n        }\n    }\n    catch (e) {\n        console.error(e);\n    }\n}\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query) {\n    // Use `as any` here to avoid adding additional necessary properties for\n    // the noop matcher.\n    return {\n        matches: query === 'all' || query === '',\n        media: query,\n        addListener: () => { },\n        removeListener: () => { },\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.io/license\n */\n/** Utility for checking the matching state of @media queries. */\nclass BreakpointObserver {\n    constructor(_mediaMatcher, _zone) {\n        this._mediaMatcher = _mediaMatcher;\n        this._zone = _zone;\n        /**  A map of all media queries currently being listened for. */\n        this._queries = new Map();\n        /** A subject for all other observables to takeUntil based on. */\n        this._destroySubject = new Subject();\n    }\n    /** Completes the active subject, signalling to all other observables to complete. */\n    ngOnDestroy() {\n        this._destroySubject.next();\n        this._destroySubject.complete();\n    }\n    /**\n     * Whether one or more media queries match the current viewport size.\n     * @param value One or more media queries to check.\n     * @returns Whether any of the media queries match.\n     */\n    isMatched(value) {\n        const queries = splitQueries(coerceArray(value));\n        return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n    }\n    /**\n     * Gets an observable of results for the given queries that will emit new results for any changes\n     * in matching of the given queries.\n     * @param value One or more media queries to check.\n     * @returns A stream of matches for the given queries.\n     */\n    observe(value) {\n        const queries = splitQueries(coerceArray(value));\n        const observables = queries.map(query => this._registerQuery(query).observable);\n        let stateObservable = combineLatest(observables);\n        // Emit the first state immediately, and then debounce the subsequent emissions.\n        stateObservable = concat(stateObservable.pipe(take(1)), stateObservable.pipe(skip(1), debounceTime(0)));\n        return stateObservable.pipe(map(breakpointStates => {\n            const response = {\n                matches: false,\n                breakpoints: {},\n            };\n            breakpointStates.forEach(({ matches, query }) => {\n                response.matches = response.matches || matches;\n                response.breakpoints[query] = matches;\n            });\n            return response;\n        }));\n    }\n    /** Registers a specific query to be listened for. */\n    _registerQuery(query) {\n        // Only set up a new MediaQueryList if it is not already being listened for.\n        if (this._queries.has(query)) {\n            return this._queries.get(query);\n        }\n        const mql = this._mediaMatcher.matchMedia(query);\n        // Create callback for match changes and add it is as a listener.\n        const queryObservable = new Observable((observer) => {\n            // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n            // back into the zone because matchMedia is only included in Zone.js by loading the\n            // webapis-media-query.js file alongside the zone.js file.  Additionally, some browsers do not\n            // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n            // patches it.\n            const handler = (e) => this._zone.run(() => observer.next(e));\n            mql.addListener(handler);\n            return () => {\n                mql.removeListener(handler);\n            };\n        }).pipe(startWith(mql), map(({ matches }) => ({ query, matches })), takeUntil(this._destroySubject));\n        // Add the MediaQueryList to the set of queries.\n        const output = { observable: queryObservable, mql };\n        this._queries.set(query, output);\n        return output;\n    }\n}\nBreakpointObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BreakpointObserver, deps: [{ token: MediaMatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nBreakpointObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BreakpointObserver, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BreakpointObserver, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: MediaMatcher }, { type: i0.NgZone }]; } });\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries) {\n    return queries\n        .map(query => query.split(','))\n        .reduce((a1, a2) => a1.concat(a2))\n        .map(query => query.trim());\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.io/license\n */\n// PascalCase is being used as Breakpoints is used like an enum.\n// tslint:disable-next-line:variable-name\nconst Breakpoints = {\n    XSmall: '(max-width: 599.98px)',\n    Small: '(min-width: 600px) and (max-width: 959.98px)',\n    Medium: '(min-width: 960px) and (max-width: 1279.98px)',\n    Large: '(min-width: 1280px) and (max-width: 1919.98px)',\n    XLarge: '(min-width: 1920px)',\n    Handset: '(max-width: 599.98px) and (orientation: portrait), ' +\n        '(max-width: 959.98px) and (orientation: landscape)',\n    Tablet: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), ' +\n        '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',\n    Web: '(min-width: 840px) and (orientation: portrait), ' +\n        '(min-width: 1280px) and (orientation: landscape)',\n    HandsetPortrait: '(max-width: 599.98px) and (orientation: portrait)',\n    TabletPortrait: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)',\n    WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n    HandsetLandscape: '(max-width: 959.98px) and (orientation: landscape)',\n    TabletLandscape: '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',\n    WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BreakpointObserver, Breakpoints, LayoutModule, MediaMatcher };\n","import { coerceElement, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Directive, Output, Input, NgModule } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\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.io/license\n */\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\nclass MutationObserverFactory {\n    create(callback) {\n        return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n    }\n}\nMutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MutationObserverFactory, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }] });\n/** An injectable service that allows watching elements for changes to their content. */\nclass ContentObserver {\n    constructor(_mutationObserverFactory) {\n        this._mutationObserverFactory = _mutationObserverFactory;\n        /** Keeps track of the existing MutationObservers so they can be reused. */\n        this._observedElements = new Map();\n    }\n    ngOnDestroy() {\n        this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n    }\n    observe(elementOrRef) {\n        const element = coerceElement(elementOrRef);\n        return new Observable((observer) => {\n            const stream = this._observeElement(element);\n            const subscription = stream.subscribe(observer);\n            return () => {\n                subscription.unsubscribe();\n                this._unobserveElement(element);\n            };\n        });\n    }\n    /**\n     * Observes the given element by using the existing MutationObserver if available, or creating a\n     * new one if not.\n     */\n    _observeElement(element) {\n        if (!this._observedElements.has(element)) {\n            const stream = new Subject();\n            const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n            if (observer) {\n                observer.observe(element, {\n                    characterData: true,\n                    childList: true,\n                    subtree: true,\n                });\n            }\n            this._observedElements.set(element, { observer, stream, count: 1 });\n        }\n        else {\n            this._observedElements.get(element).count++;\n        }\n        return this._observedElements.get(element).stream;\n    }\n    /**\n     * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n     * observing this element.\n     */\n    _unobserveElement(element) {\n        if (this._observedElements.has(element)) {\n            this._observedElements.get(element).count--;\n            if (!this._observedElements.get(element).count) {\n                this._cleanupObserver(element);\n            }\n        }\n    }\n    /** Clean up the underlying MutationObserver for the specified element. */\n    _cleanupObserver(element) {\n        if (this._observedElements.has(element)) {\n            const { observer, stream } = this._observedElements.get(element);\n            if (observer) {\n                observer.disconnect();\n            }\n            stream.complete();\n            this._observedElements.delete(element);\n        }\n    }\n}\nContentObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ContentObserver, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });\nContentObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ContentObserver, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ContentObserver, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\nclass CdkObserveContent {\n    constructor(_contentObserver, _elementRef, _ngZone) {\n        this._contentObserver = _contentObserver;\n        this._elementRef = _elementRef;\n        this._ngZone = _ngZone;\n        /** Event emitted for each change in the element's content. */\n        this.event = new EventEmitter();\n        this._disabled = false;\n        this._currentSubscription = null;\n    }\n    /**\n     * Whether observing content is disabled. This option can be used\n     * to disconnect the underlying MutationObserver until it is needed.\n     */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n        this._disabled ? this._unsubscribe() : this._subscribe();\n    }\n    /** Debounce interval for emitting the changes. */\n    get debounce() {\n        return this._debounce;\n    }\n    set debounce(value) {\n        this._debounce = coerceNumberProperty(value);\n        this._subscribe();\n    }\n    ngAfterContentInit() {\n        if (!this._currentSubscription && !this.disabled) {\n            this._subscribe();\n        }\n    }\n    ngOnDestroy() {\n        this._unsubscribe();\n    }\n    _subscribe() {\n        this._unsubscribe();\n        const stream = this._contentObserver.observe(this._elementRef);\n        // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n        // Consider brining it back inside the zone next time we're making breaking changes.\n        // Bringing it back inside can cause things like infinite change detection loops and changed\n        // after checked errors if people's code isn't handling it properly.\n        this._ngZone.runOutsideAngular(() => {\n            this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);\n        });\n    }\n    _unsubscribe() {\n        this._currentSubscription?.unsubscribe();\n    }\n}\nCdkObserveContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkObserveContent, deps: [{ token: ContentObserver }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkObserveContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: { disabled: [\"cdkObserveContentDisabled\", \"disabled\"], debounce: \"debounce\" }, outputs: { event: \"cdkObserveContent\" }, exportAs: [\"cdkObserveContent\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkObserveContent, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkObserveContent]',\n                    exportAs: 'cdkObserveContent',\n                }]\n        }], ctorParameters: function () { return [{ type: ContentObserver }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { event: [{\n                type: Output,\n                args: ['cdkObserveContent']\n            }], disabled: [{\n                type: Input,\n                args: ['cdkObserveContentDisabled']\n            }], debounce: [{\n                type: Input\n            }] } });\nclass ObserversModule {\n}\nObserversModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ObserversModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nObserversModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: ObserversModule, declarations: [CdkObserveContent], exports: [CdkObserveContent] });\nObserversModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ObserversModule, providers: [MutationObserverFactory] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ObserversModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [CdkObserveContent],\n                    declarations: [CdkObserveContent],\n                    providers: [MutationObserverFactory],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule };\n","import * as i1 from '@angular/cdk/scrolling';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\nexport { CdkScrollable, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';\nimport * as i6 from '@angular/common';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Inject, Optional, ElementRef, ApplicationRef, ANIMATION_MODULE_TYPE, InjectionToken, Directive, EventEmitter, Input, Output, NgModule } from '@angular/core';\nimport { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/platform';\nimport { supportsScrollBehavior, _getEventTarget, _isTestEnvironment } from '@angular/cdk/platform';\nimport * as i5 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport { Subject, Subscription, merge } from 'rxjs';\nimport { take, takeUntil, takeWhile } from 'rxjs/operators';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\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.io/license\n */\nconst scrollBehaviorSupported = supportsScrollBehavior();\n/**\n * Strategy that will prevent the user from scrolling while the overlay is visible.\n */\nclass BlockScrollStrategy {\n    constructor(_viewportRuler, document) {\n        this._viewportRuler = _viewportRuler;\n        this._previousHTMLStyles = { top: '', left: '' };\n        this._isEnabled = false;\n        this._document = document;\n    }\n    /** Attaches this scroll strategy to an overlay. */\n    attach() { }\n    /** Blocks page-level scroll while the attached overlay is open. */\n    enable() {\n        if (this._canBeEnabled()) {\n            const root = this._document.documentElement;\n            this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition();\n            // Cache the previous inline styles in case the user had set them.\n            this._previousHTMLStyles.left = root.style.left || '';\n            this._previousHTMLStyles.top = root.style.top || '';\n            // Note: we're using the `html` node, instead of the `body`, because the `body` may\n            // have the user agent margin, whereas the `html` is guaranteed not to have one.\n            root.style.left = coerceCssPixelValue(-this._previousScrollPosition.left);\n            root.style.top = coerceCssPixelValue(-this._previousScrollPosition.top);\n            root.classList.add('cdk-global-scrollblock');\n            this._isEnabled = true;\n        }\n    }\n    /** Unblocks page-level scroll while the attached overlay is open. */\n    disable() {\n        if (this._isEnabled) {\n            const html = this._document.documentElement;\n            const body = this._document.body;\n            const htmlStyle = html.style;\n            const bodyStyle = body.style;\n            const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';\n            const previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';\n            this._isEnabled = false;\n            htmlStyle.left = this._previousHTMLStyles.left;\n            htmlStyle.top = this._previousHTMLStyles.top;\n            html.classList.remove('cdk-global-scrollblock');\n            // Disable user-defined smooth scrolling temporarily while we restore the scroll position.\n            // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n            // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`,\n            // because it can throw off feature detections in `supportsScrollBehavior` which\n            // checks for `'scrollBehavior' in documentElement.style`.\n            if (scrollBehaviorSupported) {\n                htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';\n            }\n            window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);\n            if (scrollBehaviorSupported) {\n                htmlStyle.scrollBehavior = previousHtmlScrollBehavior;\n                bodyStyle.scrollBehavior = previousBodyScrollBehavior;\n            }\n        }\n    }\n    _canBeEnabled() {\n        // Since the scroll strategies can't be singletons, we have to use a global CSS class\n        // (`cdk-global-scrollblock`) to make sure that we don't try to disable global\n        // scrolling multiple times.\n        const html = this._document.documentElement;\n        if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {\n            return false;\n        }\n        const body = this._document.body;\n        const viewport = this._viewportRuler.getViewportSize();\n        return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;\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.io/license\n */\n/**\n * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.\n */\nfunction getMatScrollStrategyAlreadyAttachedError() {\n    return Error(`Scroll strategy has already been attached.`);\n}\n\n/**\n * Strategy that will close the overlay as soon as the user starts scrolling.\n */\nclass CloseScrollStrategy {\n    constructor(_scrollDispatcher, _ngZone, _viewportRuler, _config) {\n        this._scrollDispatcher = _scrollDispatcher;\n        this._ngZone = _ngZone;\n        this._viewportRuler = _viewportRuler;\n        this._config = _config;\n        this._scrollSubscription = null;\n        /** Detaches the overlay ref and disables the scroll strategy. */\n        this._detach = () => {\n            this.disable();\n            if (this._overlayRef.hasAttached()) {\n                this._ngZone.run(() => this._overlayRef.detach());\n            }\n        };\n    }\n    /** Attaches this scroll strategy to an overlay. */\n    attach(overlayRef) {\n        if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatScrollStrategyAlreadyAttachedError();\n        }\n        this._overlayRef = overlayRef;\n    }\n    /** Enables the closing of the attached overlay on scroll. */\n    enable() {\n        if (this._scrollSubscription) {\n            return;\n        }\n        const stream = this._scrollDispatcher.scrolled(0);\n        if (this._config && this._config.threshold && this._config.threshold > 1) {\n            this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n            this._scrollSubscription = stream.subscribe(() => {\n                const scrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n                if (Math.abs(scrollPosition - this._initialScrollPosition) > this._config.threshold) {\n                    this._detach();\n                }\n                else {\n                    this._overlayRef.updatePosition();\n                }\n            });\n        }\n        else {\n            this._scrollSubscription = stream.subscribe(this._detach);\n        }\n    }\n    /** Disables the closing the attached overlay on scroll. */\n    disable() {\n        if (this._scrollSubscription) {\n            this._scrollSubscription.unsubscribe();\n            this._scrollSubscription = null;\n        }\n    }\n    detach() {\n        this.disable();\n        this._overlayRef = null;\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.io/license\n */\n/** Scroll strategy that doesn't do anything. */\nclass NoopScrollStrategy {\n    /** Does nothing, as this scroll strategy is a no-op. */\n    enable() { }\n    /** Does nothing, as this scroll strategy is a no-op. */\n    disable() { }\n    /** Does nothing, as this scroll strategy is a no-op. */\n    attach() { }\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.io/license\n */\n/**\n * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is scrolled out of view\n * @docs-private\n */\nfunction isElementScrolledOutsideView(element, scrollContainers) {\n    return scrollContainers.some(containerBounds => {\n        const outsideAbove = element.bottom < containerBounds.top;\n        const outsideBelow = element.top > containerBounds.bottom;\n        const outsideLeft = element.right < containerBounds.left;\n        const outsideRight = element.left > containerBounds.right;\n        return outsideAbove || outsideBelow || outsideLeft || outsideRight;\n    });\n}\n/**\n * Gets whether an element is clipped by any of its scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is clipped\n * @docs-private\n */\nfunction isElementClippedByScrolling(element, scrollContainers) {\n    return scrollContainers.some(scrollContainerRect => {\n        const clippedAbove = element.top < scrollContainerRect.top;\n        const clippedBelow = element.bottom > scrollContainerRect.bottom;\n        const clippedLeft = element.left < scrollContainerRect.left;\n        const clippedRight = element.right > scrollContainerRect.right;\n        return clippedAbove || clippedBelow || clippedLeft || clippedRight;\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.io/license\n */\n/**\n * Strategy that will update the element position as the user is scrolling.\n */\nclass RepositionScrollStrategy {\n    constructor(_scrollDispatcher, _viewportRuler, _ngZone, _config) {\n        this._scrollDispatcher = _scrollDispatcher;\n        this._viewportRuler = _viewportRuler;\n        this._ngZone = _ngZone;\n        this._config = _config;\n        this._scrollSubscription = null;\n    }\n    /** Attaches this scroll strategy to an overlay. */\n    attach(overlayRef) {\n        if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatScrollStrategyAlreadyAttachedError();\n        }\n        this._overlayRef = overlayRef;\n    }\n    /** Enables repositioning of the attached overlay on scroll. */\n    enable() {\n        if (!this._scrollSubscription) {\n            const throttle = this._config ? this._config.scrollThrottle : 0;\n            this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(() => {\n                this._overlayRef.updatePosition();\n                // TODO(crisbeto): make `close` on by default once all components can handle it.\n                if (this._config && this._config.autoClose) {\n                    const overlayRect = this._overlayRef.overlayElement.getBoundingClientRect();\n                    const { width, height } = this._viewportRuler.getViewportSize();\n                    // TODO(crisbeto): include all ancestor scroll containers here once\n                    // we have a way of exposing the trigger element to the scroll strategy.\n                    const parentRects = [{ width, height, bottom: height, right: width, top: 0, left: 0 }];\n                    if (isElementScrolledOutsideView(overlayRect, parentRects)) {\n                        this.disable();\n                        this._ngZone.run(() => this._overlayRef.detach());\n                    }\n                }\n            });\n        }\n    }\n    /** Disables repositioning of the attached overlay on scroll. */\n    disable() {\n        if (this._scrollSubscription) {\n            this._scrollSubscription.unsubscribe();\n            this._scrollSubscription = null;\n        }\n    }\n    detach() {\n        this.disable();\n        this._overlayRef = null;\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.io/license\n */\n/**\n * Options for how an overlay will handle scrolling.\n *\n * Users can provide a custom value for `ScrollStrategyOptions` to replace the default\n * behaviors. This class primarily acts as a factory for ScrollStrategy instances.\n */\nclass ScrollStrategyOptions {\n    constructor(_scrollDispatcher, _viewportRuler, _ngZone, document) {\n        this._scrollDispatcher = _scrollDispatcher;\n        this._viewportRuler = _viewportRuler;\n        this._ngZone = _ngZone;\n        /** Do nothing on scroll. */\n        this.noop = () => new NoopScrollStrategy();\n        /**\n         * Close the overlay as soon as the user scrolls.\n         * @param config Configuration to be used inside the scroll strategy.\n         */\n        this.close = (config) => new CloseScrollStrategy(this._scrollDispatcher, this._ngZone, this._viewportRuler, config);\n        /** Block scrolling. */\n        this.block = () => new BlockScrollStrategy(this._viewportRuler, this._document);\n        /**\n         * Update the overlay's position on scroll.\n         * @param config Configuration to be used inside the scroll strategy.\n         * Allows debouncing the reposition calls.\n         */\n        this.reposition = (config) => new RepositionScrollStrategy(this._scrollDispatcher, this._viewportRuler, this._ngZone, config);\n        this._document = document;\n    }\n}\nScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollStrategyOptions, deps: [{ token: i1.ScrollDispatcher }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollStrategyOptions, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollStrategyOptions, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.ScrollDispatcher }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\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.io/license\n */\n/** Initial configuration used when creating an overlay. */\nclass OverlayConfig {\n    constructor(config) {\n        /** Strategy to be used when handling scroll events while the overlay is open. */\n        this.scrollStrategy = new NoopScrollStrategy();\n        /** Custom class to add to the overlay pane. */\n        this.panelClass = '';\n        /** Whether the overlay has a backdrop. */\n        this.hasBackdrop = false;\n        /** Custom class to add to the backdrop */\n        this.backdropClass = 'cdk-overlay-dark-backdrop';\n        /**\n         * Whether the overlay should be disposed of when the user goes backwards/forwards in history.\n         * Note that this usually doesn't include clicking on links (unless the user is using\n         * the `HashLocationStrategy`).\n         */\n        this.disposeOnNavigation = false;\n        if (config) {\n            // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n            // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n            // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n            const configKeys = Object.keys(config);\n            for (const key of configKeys) {\n                if (config[key] !== undefined) {\n                    // TypeScript, as of version 3.5, sees the left-hand-side of this expression\n                    // as \"I don't know *which* key this is, so the only valid value is the intersection\n                    // of all the possible values.\" In this case, that happens to be `undefined`. TypeScript\n                    // is not smart enough to see that the right-hand-side is actually an access of the same\n                    // exact type with the same exact key, meaning that the value type must be identical.\n                    // So we use `any` to work around this.\n                    this[key] = config[key];\n                }\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.io/license\n */\n/** The points of the origin element and the overlay element to connect. */\nclass ConnectionPositionPair {\n    constructor(origin, overlay, \n    /** Offset along the X axis. */\n    offsetX, \n    /** Offset along the Y axis. */\n    offsetY, \n    /** Class(es) to be applied to the panel while this position is active. */\n    panelClass) {\n        this.offsetX = offsetX;\n        this.offsetY = offsetY;\n        this.panelClass = panelClass;\n        this.originX = origin.originX;\n        this.originY = origin.originY;\n        this.overlayX = overlay.overlayX;\n        this.overlayY = overlay.overlayY;\n    }\n}\n/**\n * Set of properties regarding the position of the origin and overlay relative to the viewport\n * with respect to the containing Scrollable elements.\n *\n * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the\n * bounds of any one of the strategy's Scrollable's bounding client rectangle.\n *\n * The overlay and origin are outside view if there is no overlap between their bounding client\n * rectangle and any one of the strategy's Scrollable's bounding client rectangle.\n *\n *       -----------                    -----------\n *       | outside |                    | clipped |\n *       |  view   |              --------------------------\n *       |         |              |     |         |        |\n *       ----------               |     -----------        |\n *  --------------------------    |                        |\n *  |                        |    |      Scrollable        |\n *  |                        |    |                        |\n *  |                        |     --------------------------\n *  |      Scrollable        |\n *  |                        |\n *  --------------------------\n *\n *  @docs-private\n */\nclass ScrollingVisibility {\n}\n/** The change event emitted by the strategy when a fallback position is used. */\nclass ConnectedOverlayPositionChange {\n    constructor(\n    /** The position used as a result of this change. */\n    connectionPair, \n    /** @docs-private */\n    scrollableViewProperties) {\n        this.connectionPair = connectionPair;\n        this.scrollableViewProperties = scrollableViewProperties;\n    }\n}\n/**\n * Validates whether a vertical position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateVerticalPosition(property, value) {\n    if (value !== 'top' && value !== 'bottom' && value !== 'center') {\n        throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` +\n            `Expected \"top\", \"bottom\" or \"center\".`);\n    }\n}\n/**\n * Validates whether a horizontal position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateHorizontalPosition(property, value) {\n    if (value !== 'start' && value !== 'end' && value !== 'center') {\n        throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` +\n            `Expected \"start\", \"end\" or \"center\".`);\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.io/license\n */\n/**\n * Service for dispatching events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass BaseOverlayDispatcher {\n    constructor(document) {\n        /** Currently attached overlays in the order they were attached. */\n        this._attachedOverlays = [];\n        this._document = document;\n    }\n    ngOnDestroy() {\n        this.detach();\n    }\n    /** Add a new overlay to the list of attached overlay refs. */\n    add(overlayRef) {\n        // Ensure that we don't get the same overlay multiple times.\n        this.remove(overlayRef);\n        this._attachedOverlays.push(overlayRef);\n    }\n    /** Remove an overlay from the list of attached overlay refs. */\n    remove(overlayRef) {\n        const index = this._attachedOverlays.indexOf(overlayRef);\n        if (index > -1) {\n            this._attachedOverlays.splice(index, 1);\n        }\n        // Remove the global listener once there are no more overlays.\n        if (this._attachedOverlays.length === 0) {\n            this.detach();\n        }\n    }\n}\nBaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BaseOverlayDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BaseOverlayDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: BaseOverlayDispatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\n/**\n * Service for dispatching keyboard events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass OverlayKeyboardDispatcher extends BaseOverlayDispatcher {\n    constructor(document, \n    /** @breaking-change 14.0.0 _ngZone will be required. */\n    _ngZone) {\n        super(document);\n        this._ngZone = _ngZone;\n        /** Keyboard event listener that will be attached to the body. */\n        this._keydownListener = (event) => {\n            const overlays = this._attachedOverlays;\n            for (let i = overlays.length - 1; i > -1; i--) {\n                // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.\n                // We want to target the most recent overlay, rather than trying to match where the event came\n                // from, because some components might open an overlay, but keep focus on a trigger element\n                // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,\n                // because we don't want overlays that don't handle keyboard events to block the ones below\n                // them that do.\n                if (overlays[i]._keydownEvents.observers.length > 0) {\n                    const keydownEvents = overlays[i]._keydownEvents;\n                    /** @breaking-change 14.0.0 _ngZone will be required. */\n                    if (this._ngZone) {\n                        this._ngZone.run(() => keydownEvents.next(event));\n                    }\n                    else {\n                        keydownEvents.next(event);\n                    }\n                    break;\n                }\n            }\n        };\n    }\n    /** Add a new overlay to the list of attached overlay refs. */\n    add(overlayRef) {\n        super.add(overlayRef);\n        // Lazily start dispatcher once first overlay is added\n        if (!this._isAttached) {\n            /** @breaking-change 14.0.0 _ngZone will be required. */\n            if (this._ngZone) {\n                this._ngZone.runOutsideAngular(() => this._document.body.addEventListener('keydown', this._keydownListener));\n            }\n            else {\n                this._document.body.addEventListener('keydown', this._keydownListener);\n            }\n            this._isAttached = true;\n        }\n    }\n    /** Detaches the global keyboard event listener. */\n    detach() {\n        if (this._isAttached) {\n            this._document.body.removeEventListener('keydown', this._keydownListener);\n            this._isAttached = false;\n        }\n    }\n}\nOverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayKeyboardDispatcher, deps: [{ token: DOCUMENT }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayKeyboardDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayKeyboardDispatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i0.NgZone, decorators: [{\n                    type: Optional\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.io/license\n */\n/**\n * Service for dispatching mouse click events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {\n    constructor(document, _platform, \n    /** @breaking-change 14.0.0 _ngZone will be required. */\n    _ngZone) {\n        super(document);\n        this._platform = _platform;\n        this._ngZone = _ngZone;\n        this._cursorStyleIsSet = false;\n        /** Store pointerdown event target to track origin of click. */\n        this._pointerDownListener = (event) => {\n            this._pointerDownEventTarget = _getEventTarget(event);\n        };\n        /** Click event listener that will be attached to the body propagate phase. */\n        this._clickListener = (event) => {\n            const target = _getEventTarget(event);\n            // In case of a click event, we want to check the origin of the click\n            // (e.g. in case where a user starts a click inside the overlay and\n            // releases the click outside of it).\n            // This is done by using the event target of the preceding pointerdown event.\n            // Every click event caused by a pointer device has a preceding pointerdown\n            // event, unless the click was programmatically triggered (e.g. in a unit test).\n            const origin = event.type === 'click' && this._pointerDownEventTarget\n                ? this._pointerDownEventTarget\n                : target;\n            // Reset the stored pointerdown event target, to avoid having it interfere\n            // in subsequent events.\n            this._pointerDownEventTarget = null;\n            // We copy the array because the original may be modified asynchronously if the\n            // outsidePointerEvents listener decides to detach overlays resulting in index errors inside\n            // the for loop.\n            const overlays = this._attachedOverlays.slice();\n            // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.\n            // We want to target all overlays for which the click could be considered as outside click.\n            // As soon as we reach an overlay for which the click is not outside click we break off\n            // the loop.\n            for (let i = overlays.length - 1; i > -1; i--) {\n                const overlayRef = overlays[i];\n                if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {\n                    continue;\n                }\n                // If it's a click inside the overlay, just break - we should do nothing\n                // If it's an outside click (both origin and target of the click) dispatch the mouse event,\n                // and proceed with the next overlay\n                if (overlayRef.overlayElement.contains(target) ||\n                    overlayRef.overlayElement.contains(origin)) {\n                    break;\n                }\n                const outsidePointerEvents = overlayRef._outsidePointerEvents;\n                /** @breaking-change 14.0.0 _ngZone will be required. */\n                if (this._ngZone) {\n                    this._ngZone.run(() => outsidePointerEvents.next(event));\n                }\n                else {\n                    outsidePointerEvents.next(event);\n                }\n            }\n        };\n    }\n    /** Add a new overlay to the list of attached overlay refs. */\n    add(overlayRef) {\n        super.add(overlayRef);\n        // Safari on iOS does not generate click events for non-interactive\n        // elements. However, we want to receive a click for any element outside\n        // the overlay. We can force a \"clickable\" state by setting\n        // `cursor: pointer` on the document body. See:\n        // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile\n        // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n        if (!this._isAttached) {\n            const body = this._document.body;\n            /** @breaking-change 14.0.0 _ngZone will be required. */\n            if (this._ngZone) {\n                this._ngZone.runOutsideAngular(() => this._addEventListeners(body));\n            }\n            else {\n                this._addEventListeners(body);\n            }\n            // click event is not fired on iOS. To make element \"clickable\" we are\n            // setting the cursor to pointer\n            if (this._platform.IOS && !this._cursorStyleIsSet) {\n                this._cursorOriginalValue = body.style.cursor;\n                body.style.cursor = 'pointer';\n                this._cursorStyleIsSet = true;\n            }\n            this._isAttached = true;\n        }\n    }\n    /** Detaches the global keyboard event listener. */\n    detach() {\n        if (this._isAttached) {\n            const body = this._document.body;\n            body.removeEventListener('pointerdown', this._pointerDownListener, true);\n            body.removeEventListener('click', this._clickListener, true);\n            body.removeEventListener('auxclick', this._clickListener, true);\n            body.removeEventListener('contextmenu', this._clickListener, true);\n            if (this._platform.IOS && this._cursorStyleIsSet) {\n                body.style.cursor = this._cursorOriginalValue;\n                this._cursorStyleIsSet = false;\n            }\n            this._isAttached = false;\n        }\n    }\n    _addEventListeners(body) {\n        body.addEventListener('pointerdown', this._pointerDownListener, true);\n        body.addEventListener('click', this._clickListener, true);\n        body.addEventListener('auxclick', this._clickListener, true);\n        body.addEventListener('contextmenu', this._clickListener, true);\n    }\n}\nOverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1$1.Platform }, { type: i0.NgZone, decorators: [{\n                    type: Optional\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.io/license\n */\n/** Container inside which all overlays will render. */\nclass OverlayContainer {\n    constructor(document, _platform) {\n        this._platform = _platform;\n        this._document = document;\n    }\n    ngOnDestroy() {\n        this._containerElement?.remove();\n    }\n    /**\n     * This method returns the overlay container element. It will lazily\n     * create the element the first time it is called to facilitate using\n     * the container in non-browser environments.\n     * @returns the container element\n     */\n    getContainerElement() {\n        if (!this._containerElement) {\n            this._createContainer();\n        }\n        return this._containerElement;\n    }\n    /**\n     * Create the overlay container element, which is simply a div\n     * with the 'cdk-overlay-container' class on the document body.\n     */\n    _createContainer() {\n        const containerClass = 'cdk-overlay-container';\n        // TODO(crisbeto): remove the testing check once we have an overlay testing\n        // module or Angular starts tearing down the testing `NgModule`. See:\n        // https://github.com/angular/angular/issues/18831\n        if (this._platform.isBrowser || _isTestEnvironment()) {\n            const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform=\"server\"], ` + `.${containerClass}[platform=\"test\"]`);\n            // Remove any old containers from the opposite platform.\n            // This can happen when transitioning from the server to the client.\n            for (let i = 0; i < oppositePlatformContainers.length; i++) {\n                oppositePlatformContainers[i].remove();\n            }\n        }\n        const container = this._document.createElement('div');\n        container.classList.add(containerClass);\n        // A long time ago we kept adding new overlay containers whenever a new app was instantiated,\n        // but at some point we added logic which clears the duplicate ones in order to avoid leaks.\n        // The new logic was a little too aggressive since it was breaking some legitimate use cases.\n        // To mitigate the problem we made it so that only containers from a different platform are\n        // cleared, but the side-effect was that people started depending on the overly-aggressive\n        // logic to clean up their tests for them. Until we can introduce an overlay-specific testing\n        // module which does the cleanup, we try to detect that we're in a test environment and we\n        // always clear the container. See #17006.\n        // TODO(crisbeto): remove the test environment check once we have an overlay testing module.\n        if (_isTestEnvironment()) {\n            container.setAttribute('platform', 'test');\n        }\n        else if (!this._platform.isBrowser) {\n            container.setAttribute('platform', 'server');\n        }\n        this._document.body.appendChild(container);\n        this._containerElement = container;\n    }\n}\nOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayContainer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayContainer, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1$1.Platform }]; } });\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.io/license\n */\n/**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\nclass OverlayRef {\n    constructor(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher, _animationsDisabled = false) {\n        this._portalOutlet = _portalOutlet;\n        this._host = _host;\n        this._pane = _pane;\n        this._config = _config;\n        this._ngZone = _ngZone;\n        this._keyboardDispatcher = _keyboardDispatcher;\n        this._document = _document;\n        this._location = _location;\n        this._outsideClickDispatcher = _outsideClickDispatcher;\n        this._animationsDisabled = _animationsDisabled;\n        this._backdropElement = null;\n        this._backdropClick = new Subject();\n        this._attachments = new Subject();\n        this._detachments = new Subject();\n        this._locationChanges = Subscription.EMPTY;\n        this._backdropClickHandler = (event) => this._backdropClick.next(event);\n        this._backdropTransitionendHandler = (event) => {\n            this._disposeBackdrop(event.target);\n        };\n        /** Stream of keydown events dispatched to this overlay. */\n        this._keydownEvents = new Subject();\n        /** Stream of mouse outside events dispatched to this overlay. */\n        this._outsidePointerEvents = new Subject();\n        if (_config.scrollStrategy) {\n            this._scrollStrategy = _config.scrollStrategy;\n            this._scrollStrategy.attach(this);\n        }\n        this._positionStrategy = _config.positionStrategy;\n    }\n    /** The overlay's HTML element */\n    get overlayElement() {\n        return this._pane;\n    }\n    /** The overlay's backdrop HTML element. */\n    get backdropElement() {\n        return this._backdropElement;\n    }\n    /**\n     * Wrapper around the panel element. Can be used for advanced\n     * positioning where a wrapper with specific styling is\n     * required around the overlay pane.\n     */\n    get hostElement() {\n        return this._host;\n    }\n    /**\n     * Attaches content, given via a Portal, to the overlay.\n     * If the overlay is configured to have a backdrop, it will be created.\n     *\n     * @param portal Portal instance to which to attach the overlay.\n     * @returns The portal attachment result.\n     */\n    attach(portal) {\n        // Insert the host into the DOM before attaching the portal, otherwise\n        // the animations module will skip animations on repeat attachments.\n        if (!this._host.parentElement && this._previousHostParent) {\n            this._previousHostParent.appendChild(this._host);\n        }\n        const attachResult = this._portalOutlet.attach(portal);\n        if (this._positionStrategy) {\n            this._positionStrategy.attach(this);\n        }\n        this._updateStackingOrder();\n        this._updateElementSize();\n        this._updateElementDirection();\n        if (this._scrollStrategy) {\n            this._scrollStrategy.enable();\n        }\n        // Update the position once the zone is stable so that the overlay will be fully rendered\n        // before attempting to position it, as the position may depend on the size of the rendered\n        // content.\n        this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n            // The overlay could've been detached before the zone has stabilized.\n            if (this.hasAttached()) {\n                this.updatePosition();\n            }\n        });\n        // Enable pointer events for the overlay pane element.\n        this._togglePointerEvents(true);\n        if (this._config.hasBackdrop) {\n            this._attachBackdrop();\n        }\n        if (this._config.panelClass) {\n            this._toggleClasses(this._pane, this._config.panelClass, true);\n        }\n        // Only emit the `attachments` event once all other setup is done.\n        this._attachments.next();\n        // Track this overlay by the keyboard dispatcher\n        this._keyboardDispatcher.add(this);\n        if (this._config.disposeOnNavigation) {\n            this._locationChanges = this._location.subscribe(() => this.dispose());\n        }\n        this._outsideClickDispatcher.add(this);\n        // TODO(crisbeto): the null check is here, because the portal outlet returns `any`.\n        // We should be guaranteed for the result to be `ComponentRef | EmbeddedViewRef`, but\n        // `instanceof EmbeddedViewRef` doesn't appear to work at the moment.\n        if (typeof attachResult?.onDestroy === 'function') {\n            // In most cases we control the portal and we know when it is being detached so that\n            // we can finish the disposal process. The exception is if the user passes in a custom\n            // `ViewContainerRef` that isn't destroyed through the overlay API. Note that we use\n            // `detach` here instead of `dispose`, because we don't know if the user intends to\n            // reattach the overlay at a later point. It also has the advantage of waiting for animations.\n            attachResult.onDestroy(() => {\n                if (this.hasAttached()) {\n                    // We have to delay the `detach` call, because detaching immediately prevents\n                    // other destroy hooks from running. This is likely a framework bug similar to\n                    // https://github.com/angular/angular/issues/46119\n                    this._ngZone.runOutsideAngular(() => Promise.resolve().then(() => this.detach()));\n                }\n            });\n        }\n        return attachResult;\n    }\n    /**\n     * Detaches an overlay from a portal.\n     * @returns The portal detachment result.\n     */\n    detach() {\n        if (!this.hasAttached()) {\n            return;\n        }\n        this.detachBackdrop();\n        // When the overlay is detached, the pane element should disable pointer events.\n        // This is necessary because otherwise the pane element will cover the page and disable\n        // pointer events therefore. Depends on the position strategy and the applied pane boundaries.\n        this._togglePointerEvents(false);\n        if (this._positionStrategy && this._positionStrategy.detach) {\n            this._positionStrategy.detach();\n        }\n        if (this._scrollStrategy) {\n            this._scrollStrategy.disable();\n        }\n        const detachmentResult = this._portalOutlet.detach();\n        // Only emit after everything is detached.\n        this._detachments.next();\n        // Remove this overlay from keyboard dispatcher tracking.\n        this._keyboardDispatcher.remove(this);\n        // Keeping the host element in the DOM can cause scroll jank, because it still gets\n        // rendered, even though it's transparent and unclickable which is why we remove it.\n        this._detachContentWhenStable();\n        this._locationChanges.unsubscribe();\n        this._outsideClickDispatcher.remove(this);\n        return detachmentResult;\n    }\n    /** Cleans up the overlay from the DOM. */\n    dispose() {\n        const isAttached = this.hasAttached();\n        if (this._positionStrategy) {\n            this._positionStrategy.dispose();\n        }\n        this._disposeScrollStrategy();\n        this._disposeBackdrop(this._backdropElement);\n        this._locationChanges.unsubscribe();\n        this._keyboardDispatcher.remove(this);\n        this._portalOutlet.dispose();\n        this._attachments.complete();\n        this._backdropClick.complete();\n        this._keydownEvents.complete();\n        this._outsidePointerEvents.complete();\n        this._outsideClickDispatcher.remove(this);\n        this._host?.remove();\n        this._previousHostParent = this._pane = this._host = null;\n        if (isAttached) {\n            this._detachments.next();\n        }\n        this._detachments.complete();\n    }\n    /** Whether the overlay has attached content. */\n    hasAttached() {\n        return this._portalOutlet.hasAttached();\n    }\n    /** Gets an observable that emits when the backdrop has been clicked. */\n    backdropClick() {\n        return this._backdropClick;\n    }\n    /** Gets an observable that emits when the overlay has been attached. */\n    attachments() {\n        return this._attachments;\n    }\n    /** Gets an observable that emits when the overlay has been detached. */\n    detachments() {\n        return this._detachments;\n    }\n    /** Gets an observable of keydown events targeted to this overlay. */\n    keydownEvents() {\n        return this._keydownEvents;\n    }\n    /** Gets an observable of pointer events targeted outside this overlay. */\n    outsidePointerEvents() {\n        return this._outsidePointerEvents;\n    }\n    /** Gets the current overlay configuration, which is immutable. */\n    getConfig() {\n        return this._config;\n    }\n    /** Updates the position of the overlay based on the position strategy. */\n    updatePosition() {\n        if (this._positionStrategy) {\n            this._positionStrategy.apply();\n        }\n    }\n    /** Switches to a new position strategy and updates the overlay position. */\n    updatePositionStrategy(strategy) {\n        if (strategy === this._positionStrategy) {\n            return;\n        }\n        if (this._positionStrategy) {\n            this._positionStrategy.dispose();\n        }\n        this._positionStrategy = strategy;\n        if (this.hasAttached()) {\n            strategy.attach(this);\n            this.updatePosition();\n        }\n    }\n    /** Update the size properties of the overlay. */\n    updateSize(sizeConfig) {\n        this._config = { ...this._config, ...sizeConfig };\n        this._updateElementSize();\n    }\n    /** Sets the LTR/RTL direction for the overlay. */\n    setDirection(dir) {\n        this._config = { ...this._config, direction: dir };\n        this._updateElementDirection();\n    }\n    /** Add a CSS class or an array of classes to the overlay pane. */\n    addPanelClass(classes) {\n        if (this._pane) {\n            this._toggleClasses(this._pane, classes, true);\n        }\n    }\n    /** Remove a CSS class or an array of classes from the overlay pane. */\n    removePanelClass(classes) {\n        if (this._pane) {\n            this._toggleClasses(this._pane, classes, false);\n        }\n    }\n    /**\n     * Returns the layout direction of the overlay panel.\n     */\n    getDirection() {\n        const direction = this._config.direction;\n        if (!direction) {\n            return 'ltr';\n        }\n        return typeof direction === 'string' ? direction : direction.value;\n    }\n    /** Switches to a new scroll strategy. */\n    updateScrollStrategy(strategy) {\n        if (strategy === this._scrollStrategy) {\n            return;\n        }\n        this._disposeScrollStrategy();\n        this._scrollStrategy = strategy;\n        if (this.hasAttached()) {\n            strategy.attach(this);\n            strategy.enable();\n        }\n    }\n    /** Updates the text direction of the overlay panel. */\n    _updateElementDirection() {\n        this._host.setAttribute('dir', this.getDirection());\n    }\n    /** Updates the size of the overlay element based on the overlay config. */\n    _updateElementSize() {\n        if (!this._pane) {\n            return;\n        }\n        const style = this._pane.style;\n        style.width = coerceCssPixelValue(this._config.width);\n        style.height = coerceCssPixelValue(this._config.height);\n        style.minWidth = coerceCssPixelValue(this._config.minWidth);\n        style.minHeight = coerceCssPixelValue(this._config.minHeight);\n        style.maxWidth = coerceCssPixelValue(this._config.maxWidth);\n        style.maxHeight = coerceCssPixelValue(this._config.maxHeight);\n    }\n    /** Toggles the pointer events for the overlay pane element. */\n    _togglePointerEvents(enablePointer) {\n        this._pane.style.pointerEvents = enablePointer ? '' : 'none';\n    }\n    /** Attaches a backdrop for this overlay. */\n    _attachBackdrop() {\n        const showingClass = 'cdk-overlay-backdrop-showing';\n        this._backdropElement = this._document.createElement('div');\n        this._backdropElement.classList.add('cdk-overlay-backdrop');\n        if (this._animationsDisabled) {\n            this._backdropElement.classList.add('cdk-overlay-backdrop-noop-animation');\n        }\n        if (this._config.backdropClass) {\n            this._toggleClasses(this._backdropElement, this._config.backdropClass, true);\n        }\n        // Insert the backdrop before the pane in the DOM order,\n        // in order to handle stacked overlays properly.\n        this._host.parentElement.insertBefore(this._backdropElement, this._host);\n        // Forward backdrop clicks such that the consumer of the overlay can perform whatever\n        // action desired when such a click occurs (usually closing the overlay).\n        this._backdropElement.addEventListener('click', this._backdropClickHandler);\n        // Add class to fade-in the backdrop after one frame.\n        if (!this._animationsDisabled && typeof requestAnimationFrame !== 'undefined') {\n            this._ngZone.runOutsideAngular(() => {\n                requestAnimationFrame(() => {\n                    if (this._backdropElement) {\n                        this._backdropElement.classList.add(showingClass);\n                    }\n                });\n            });\n        }\n        else {\n            this._backdropElement.classList.add(showingClass);\n        }\n    }\n    /**\n     * Updates the stacking order of the element, moving it to the top if necessary.\n     * This is required in cases where one overlay was detached, while another one,\n     * that should be behind it, was destroyed. The next time both of them are opened,\n     * the stacking will be wrong, because the detached element's pane will still be\n     * in its original DOM position.\n     */\n    _updateStackingOrder() {\n        if (this._host.nextSibling) {\n            this._host.parentNode.appendChild(this._host);\n        }\n    }\n    /** Detaches the backdrop (if any) associated with the overlay. */\n    detachBackdrop() {\n        const backdropToDetach = this._backdropElement;\n        if (!backdropToDetach) {\n            return;\n        }\n        if (this._animationsDisabled) {\n            this._disposeBackdrop(backdropToDetach);\n            return;\n        }\n        backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');\n        this._ngZone.runOutsideAngular(() => {\n            backdropToDetach.addEventListener('transitionend', this._backdropTransitionendHandler);\n        });\n        // If the backdrop doesn't have a transition, the `transitionend` event won't fire.\n        // In this case we make it unclickable and we try to remove it after a delay.\n        backdropToDetach.style.pointerEvents = 'none';\n        // Run this outside the Angular zone because there's nothing that Angular cares about.\n        // If it were to run inside the Angular zone, every test that used Overlay would have to be\n        // either async or fakeAsync.\n        this._backdropTimeout = this._ngZone.runOutsideAngular(() => setTimeout(() => {\n            this._disposeBackdrop(backdropToDetach);\n        }, 500));\n    }\n    /** Toggles a single CSS class or an array of classes on an element. */\n    _toggleClasses(element, cssClasses, isAdd) {\n        const classes = coerceArray(cssClasses || []).filter(c => !!c);\n        if (classes.length) {\n            isAdd ? element.classList.add(...classes) : element.classList.remove(...classes);\n        }\n    }\n    /** Detaches the overlay content next time the zone stabilizes. */\n    _detachContentWhenStable() {\n        // Normally we wouldn't have to explicitly run this outside the `NgZone`, however\n        // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will\n        // be patched to run inside the zone, which will throw us into an infinite loop.\n        this._ngZone.runOutsideAngular(() => {\n            // We can't remove the host here immediately, because the overlay pane's content\n            // might still be animating. This stream helps us avoid interrupting the animation\n            // by waiting for the pane to become empty.\n            const subscription = this._ngZone.onStable\n                .pipe(takeUntil(merge(this._attachments, this._detachments)))\n                .subscribe(() => {\n                // Needs a couple of checks for the pane and host, because\n                // they may have been removed by the time the zone stabilizes.\n                if (!this._pane || !this._host || this._pane.children.length === 0) {\n                    if (this._pane && this._config.panelClass) {\n                        this._toggleClasses(this._pane, this._config.panelClass, false);\n                    }\n                    if (this._host && this._host.parentElement) {\n                        this._previousHostParent = this._host.parentElement;\n                        this._host.remove();\n                    }\n                    subscription.unsubscribe();\n                }\n            });\n        });\n    }\n    /** Disposes of a scroll strategy. */\n    _disposeScrollStrategy() {\n        const scrollStrategy = this._scrollStrategy;\n        if (scrollStrategy) {\n            scrollStrategy.disable();\n            if (scrollStrategy.detach) {\n                scrollStrategy.detach();\n            }\n        }\n    }\n    /** Removes a backdrop element from the DOM. */\n    _disposeBackdrop(backdrop) {\n        if (backdrop) {\n            backdrop.removeEventListener('click', this._backdropClickHandler);\n            backdrop.removeEventListener('transitionend', this._backdropTransitionendHandler);\n            backdrop.remove();\n            // It is possible that a new portal has been attached to this overlay since we started\n            // removing the backdrop. If that is the case, only clear the backdrop reference if it\n            // is still the same instance that we started to remove.\n            if (this._backdropElement === backdrop) {\n                this._backdropElement = null;\n            }\n        }\n        if (this._backdropTimeout) {\n            clearTimeout(this._backdropTimeout);\n            this._backdropTimeout = undefined;\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.io/license\n */\n// TODO: refactor clipping detection into a separate thing (part of scrolling module)\n// TODO: doesn't handle both flexible width and height when it has to scroll along both axis.\n/** Class to be added to the overlay bounding box. */\nconst boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';\n/** Regex used to split a string on its CSS units. */\nconst cssUnitPattern = /([A-Za-z%]+)$/;\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n */\nclass FlexibleConnectedPositionStrategy {\n    constructor(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {\n        this._viewportRuler = _viewportRuler;\n        this._document = _document;\n        this._platform = _platform;\n        this._overlayContainer = _overlayContainer;\n        /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */\n        this._lastBoundingBoxSize = { width: 0, height: 0 };\n        /** Whether the overlay was pushed in a previous positioning. */\n        this._isPushed = false;\n        /** Whether the overlay can be pushed on-screen on the initial open. */\n        this._canPush = true;\n        /** Whether the overlay can grow via flexible width/height after the initial open. */\n        this._growAfterOpen = false;\n        /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n        this._hasFlexibleDimensions = true;\n        /** Whether the overlay position is locked. */\n        this._positionLocked = false;\n        /** Amount of space that must be maintained between the overlay and the edge of the viewport. */\n        this._viewportMargin = 0;\n        /** The Scrollable containers used to check scrollable view properties on position change. */\n        this._scrollables = [];\n        /** Ordered list of preferred positions, from most to least desirable. */\n        this._preferredPositions = [];\n        /** Subject that emits whenever the position changes. */\n        this._positionChanges = new Subject();\n        /** Subscription to viewport size changes. */\n        this._resizeSubscription = Subscription.EMPTY;\n        /** Default offset for the overlay along the x axis. */\n        this._offsetX = 0;\n        /** Default offset for the overlay along the y axis. */\n        this._offsetY = 0;\n        /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */\n        this._appliedPanelClasses = [];\n        /** Observable sequence of position changes. */\n        this.positionChanges = this._positionChanges;\n        this.setOrigin(connectedTo);\n    }\n    /** Ordered list of preferred positions, from most to least desirable. */\n    get positions() {\n        return this._preferredPositions;\n    }\n    /** Attaches this position strategy to an overlay. */\n    attach(overlayRef) {\n        if (this._overlayRef &&\n            overlayRef !== this._overlayRef &&\n            (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error('This position strategy is already attached to an overlay');\n        }\n        this._validatePositions();\n        overlayRef.hostElement.classList.add(boundingBoxClass);\n        this._overlayRef = overlayRef;\n        this._boundingBox = overlayRef.hostElement;\n        this._pane = overlayRef.overlayElement;\n        this._isDisposed = false;\n        this._isInitialRender = true;\n        this._lastPosition = null;\n        this._resizeSubscription.unsubscribe();\n        this._resizeSubscription = this._viewportRuler.change().subscribe(() => {\n            // When the window is resized, we want to trigger the next reposition as if it\n            // was an initial render, in order for the strategy to pick a new optimal position,\n            // otherwise position locking will cause it to stay at the old one.\n            this._isInitialRender = true;\n            this.apply();\n        });\n    }\n    /**\n     * Updates the position of the overlay element, using whichever preferred position relative\n     * to the origin best fits on-screen.\n     *\n     * The selection of a position goes as follows:\n     *  - If any positions fit completely within the viewport as-is,\n     *      choose the first position that does so.\n     *  - If flexible dimensions are enabled and at least one satisfies the given minimum width/height,\n     *      choose the position with the greatest available size modified by the positions' weight.\n     *  - If pushing is enabled, take the position that went off-screen the least and push it\n     *      on-screen.\n     *  - If none of the previous criteria were met, use the position that goes off-screen the least.\n     * @docs-private\n     */\n    apply() {\n        // We shouldn't do anything if the strategy was disposed or we're on the server.\n        if (this._isDisposed || !this._platform.isBrowser) {\n            return;\n        }\n        // If the position has been applied already (e.g. when the overlay was opened) and the\n        // consumer opted into locking in the position, re-use the old position, in order to\n        // prevent the overlay from jumping around.\n        if (!this._isInitialRender && this._positionLocked && this._lastPosition) {\n            this.reapplyLastPosition();\n            return;\n        }\n        this._clearPanelClasses();\n        this._resetOverlayElementStyles();\n        this._resetBoundingBoxStyles();\n        // We need the bounding rects for the origin, the overlay and the container to determine how to position\n        // the overlay relative to the origin.\n        // We use the viewport rect to determine whether a position would go off-screen.\n        this._viewportRect = this._getNarrowedViewportRect();\n        this._originRect = this._getOriginRect();\n        this._overlayRect = this._pane.getBoundingClientRect();\n        this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();\n        const originRect = this._originRect;\n        const overlayRect = this._overlayRect;\n        const viewportRect = this._viewportRect;\n        const containerRect = this._containerRect;\n        // Positions where the overlay will fit with flexible dimensions.\n        const flexibleFits = [];\n        // Fallback if none of the preferred positions fit within the viewport.\n        let fallback;\n        // Go through each of the preferred positions looking for a good fit.\n        // If a good fit is found, it will be applied immediately.\n        for (let pos of this._preferredPositions) {\n            // Get the exact (x, y) coordinate for the point-of-origin on the origin element.\n            let originPoint = this._getOriginPoint(originRect, containerRect, pos);\n            // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the\n            // overlay in this position. We use the top-left corner for calculations and later translate\n            // this into an appropriate (top, left, bottom, right) style.\n            let overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos);\n            // Calculate how well the overlay would fit into the viewport with this point.\n            let overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos);\n            // If the overlay, without any further work, fits into the viewport, use this position.\n            if (overlayFit.isCompletelyWithinViewport) {\n                this._isPushed = false;\n                this._applyPosition(pos, originPoint);\n                return;\n            }\n            // If the overlay has flexible dimensions, we can use this position\n            // so long as there's enough space for the minimum dimensions.\n            if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {\n                // Save positions where the overlay will fit with flexible dimensions. We will use these\n                // if none of the positions fit *without* flexible dimensions.\n                flexibleFits.push({\n                    position: pos,\n                    origin: originPoint,\n                    overlayRect,\n                    boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos),\n                });\n                continue;\n            }\n            // If the current preferred position does not fit on the screen, remember the position\n            // if it has more visible area on-screen than we've seen and move onto the next preferred\n            // position.\n            if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {\n                fallback = { overlayFit, overlayPoint, originPoint, position: pos, overlayRect };\n            }\n        }\n        // If there are any positions where the overlay would fit with flexible dimensions, choose the\n        // one that has the greatest area available modified by the position's weight\n        if (flexibleFits.length) {\n            let bestFit = null;\n            let bestScore = -1;\n            for (const fit of flexibleFits) {\n                const score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);\n                if (score > bestScore) {\n                    bestScore = score;\n                    bestFit = fit;\n                }\n            }\n            this._isPushed = false;\n            this._applyPosition(bestFit.position, bestFit.origin);\n            return;\n        }\n        // When none of the preferred positions fit within the viewport, take the position\n        // that went off-screen the least and attempt to push it on-screen.\n        if (this._canPush) {\n            // TODO(jelbourn): after pushing, the opening \"direction\" of the overlay might not make sense.\n            this._isPushed = true;\n            this._applyPosition(fallback.position, fallback.originPoint);\n            return;\n        }\n        // All options for getting the overlay within the viewport have been exhausted, so go with the\n        // position that went off-screen the least.\n        this._applyPosition(fallback.position, fallback.originPoint);\n    }\n    detach() {\n        this._clearPanelClasses();\n        this._lastPosition = null;\n        this._previousPushAmount = null;\n        this._resizeSubscription.unsubscribe();\n    }\n    /** Cleanup after the element gets destroyed. */\n    dispose() {\n        if (this._isDisposed) {\n            return;\n        }\n        // We can't use `_resetBoundingBoxStyles` here, because it resets\n        // some properties to zero, rather than removing them.\n        if (this._boundingBox) {\n            extendStyles(this._boundingBox.style, {\n                top: '',\n                left: '',\n                right: '',\n                bottom: '',\n                height: '',\n                width: '',\n                alignItems: '',\n                justifyContent: '',\n            });\n        }\n        if (this._pane) {\n            this._resetOverlayElementStyles();\n        }\n        if (this._overlayRef) {\n            this._overlayRef.hostElement.classList.remove(boundingBoxClass);\n        }\n        this.detach();\n        this._positionChanges.complete();\n        this._overlayRef = this._boundingBox = null;\n        this._isDisposed = true;\n    }\n    /**\n     * This re-aligns the overlay element with the trigger in its last calculated position,\n     * even if a position higher in the \"preferred positions\" list would now fit. This\n     * allows one to re-align the panel without changing the orientation of the panel.\n     */\n    reapplyLastPosition() {\n        if (this._isDisposed || !this._platform.isBrowser) {\n            return;\n        }\n        const lastPosition = this._lastPosition;\n        if (lastPosition) {\n            this._originRect = this._getOriginRect();\n            this._overlayRect = this._pane.getBoundingClientRect();\n            this._viewportRect = this._getNarrowedViewportRect();\n            this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();\n            const originPoint = this._getOriginPoint(this._originRect, this._containerRect, lastPosition);\n            this._applyPosition(lastPosition, originPoint);\n        }\n        else {\n            this.apply();\n        }\n    }\n    /**\n     * Sets the list of Scrollable containers that host the origin element so that\n     * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n     * Scrollable must be an ancestor element of the strategy's origin element.\n     */\n    withScrollableContainers(scrollables) {\n        this._scrollables = scrollables;\n        return this;\n    }\n    /**\n     * Adds new preferred positions.\n     * @param positions List of positions options for this overlay.\n     */\n    withPositions(positions) {\n        this._preferredPositions = positions;\n        // If the last calculated position object isn't part of the positions anymore, clear\n        // it in order to avoid it being picked up if the consumer tries to re-apply.\n        if (positions.indexOf(this._lastPosition) === -1) {\n            this._lastPosition = null;\n        }\n        this._validatePositions();\n        return this;\n    }\n    /**\n     * Sets a minimum distance the overlay may be positioned to the edge of the viewport.\n     * @param margin Required margin between the overlay and the viewport edge in pixels.\n     */\n    withViewportMargin(margin) {\n        this._viewportMargin = margin;\n        return this;\n    }\n    /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */\n    withFlexibleDimensions(flexibleDimensions = true) {\n        this._hasFlexibleDimensions = flexibleDimensions;\n        return this;\n    }\n    /** Sets whether the overlay can grow after the initial open via flexible width/height. */\n    withGrowAfterOpen(growAfterOpen = true) {\n        this._growAfterOpen = growAfterOpen;\n        return this;\n    }\n    /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */\n    withPush(canPush = true) {\n        this._canPush = canPush;\n        return this;\n    }\n    /**\n     * Sets whether the overlay's position should be locked in after it is positioned\n     * initially. When an overlay is locked in, it won't attempt to reposition itself\n     * when the position is re-applied (e.g. when the user scrolls away).\n     * @param isLocked Whether the overlay should locked in.\n     */\n    withLockedPosition(isLocked = true) {\n        this._positionLocked = isLocked;\n        return this;\n    }\n    /**\n     * Sets the origin, relative to which to position the overlay.\n     * Using an element origin is useful for building components that need to be positioned\n     * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be\n     * used for cases like contextual menus which open relative to the user's pointer.\n     * @param origin Reference to the new origin.\n     */\n    setOrigin(origin) {\n        this._origin = origin;\n        return this;\n    }\n    /**\n     * Sets the default offset for the overlay's connection point on the x-axis.\n     * @param offset New offset in the X axis.\n     */\n    withDefaultOffsetX(offset) {\n        this._offsetX = offset;\n        return this;\n    }\n    /**\n     * Sets the default offset for the overlay's connection point on the y-axis.\n     * @param offset New offset in the Y axis.\n     */\n    withDefaultOffsetY(offset) {\n        this._offsetY = offset;\n        return this;\n    }\n    /**\n     * Configures that the position strategy should set a `transform-origin` on some elements\n     * inside the overlay, depending on the current position that is being applied. This is\n     * useful for the cases where the origin of an animation can change depending on the\n     * alignment of the overlay.\n     * @param selector CSS selector that will be used to find the target\n     *    elements onto which to set the transform origin.\n     */\n    withTransformOriginOn(selector) {\n        this._transformOriginSelector = selector;\n        return this;\n    }\n    /**\n     * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.\n     */\n    _getOriginPoint(originRect, containerRect, pos) {\n        let x;\n        if (pos.originX == 'center') {\n            // Note: when centering we should always use the `left`\n            // offset, otherwise the position will be wrong in RTL.\n            x = originRect.left + originRect.width / 2;\n        }\n        else {\n            const startX = this._isRtl() ? originRect.right : originRect.left;\n            const endX = this._isRtl() ? originRect.left : originRect.right;\n            x = pos.originX == 'start' ? startX : endX;\n        }\n        // When zooming in Safari the container rectangle contains negative values for the position\n        // and we need to re-add them to the calculated coordinates.\n        if (containerRect.left < 0) {\n            x -= containerRect.left;\n        }\n        let y;\n        if (pos.originY == 'center') {\n            y = originRect.top + originRect.height / 2;\n        }\n        else {\n            y = pos.originY == 'top' ? originRect.top : originRect.bottom;\n        }\n        // Normally the containerRect's top value would be zero, however when the overlay is attached to an input\n        // (e.g. in an autocomplete), mobile browsers will shift everything in order to put the input in the middle\n        // of the screen and to make space for the virtual keyboard. We need to account for this offset,\n        // otherwise our positioning will be thrown off.\n        // Additionally, when zooming in Safari this fixes the vertical position.\n        if (containerRect.top < 0) {\n            y -= containerRect.top;\n        }\n        return { x, y };\n    }\n    /**\n     * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and\n     * origin point to which the overlay should be connected.\n     */\n    _getOverlayPoint(originPoint, overlayRect, pos) {\n        // Calculate the (overlayStartX, overlayStartY), the start of the\n        // potential overlay position relative to the origin point.\n        let overlayStartX;\n        if (pos.overlayX == 'center') {\n            overlayStartX = -overlayRect.width / 2;\n        }\n        else if (pos.overlayX === 'start') {\n            overlayStartX = this._isRtl() ? -overlayRect.width : 0;\n        }\n        else {\n            overlayStartX = this._isRtl() ? 0 : -overlayRect.width;\n        }\n        let overlayStartY;\n        if (pos.overlayY == 'center') {\n            overlayStartY = -overlayRect.height / 2;\n        }\n        else {\n            overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;\n        }\n        // The (x, y) coordinates of the overlay.\n        return {\n            x: originPoint.x + overlayStartX,\n            y: originPoint.y + overlayStartY,\n        };\n    }\n    /** Gets how well an overlay at the given point will fit within the viewport. */\n    _getOverlayFit(point, rawOverlayRect, viewport, position) {\n        // Round the overlay rect when comparing against the\n        // viewport, because the viewport is always rounded.\n        const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n        let { x, y } = point;\n        let offsetX = this._getOffset(position, 'x');\n        let offsetY = this._getOffset(position, 'y');\n        // Account for the offsets since they could push the overlay out of the viewport.\n        if (offsetX) {\n            x += offsetX;\n        }\n        if (offsetY) {\n            y += offsetY;\n        }\n        // How much the overlay would overflow at this position, on each side.\n        let leftOverflow = 0 - x;\n        let rightOverflow = x + overlay.width - viewport.width;\n        let topOverflow = 0 - y;\n        let bottomOverflow = y + overlay.height - viewport.height;\n        // Visible parts of the element on each axis.\n        let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);\n        let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);\n        let visibleArea = visibleWidth * visibleHeight;\n        return {\n            visibleArea,\n            isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,\n            fitsInViewportVertically: visibleHeight === overlay.height,\n            fitsInViewportHorizontally: visibleWidth == overlay.width,\n        };\n    }\n    /**\n     * Whether the overlay can fit within the viewport when it may resize either its width or height.\n     * @param fit How well the overlay fits in the viewport at some position.\n     * @param point The (x, y) coordinates of the overlay at some position.\n     * @param viewport The geometry of the viewport.\n     */\n    _canFitWithFlexibleDimensions(fit, point, viewport) {\n        if (this._hasFlexibleDimensions) {\n            const availableHeight = viewport.bottom - point.y;\n            const availableWidth = viewport.right - point.x;\n            const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);\n            const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);\n            const verticalFit = fit.fitsInViewportVertically || (minHeight != null && minHeight <= availableHeight);\n            const horizontalFit = fit.fitsInViewportHorizontally || (minWidth != null && minWidth <= availableWidth);\n            return verticalFit && horizontalFit;\n        }\n        return false;\n    }\n    /**\n     * Gets the point at which the overlay can be \"pushed\" on-screen. If the overlay is larger than\n     * the viewport, the top-left corner will be pushed on-screen (with overflow occurring on the\n     * right and bottom).\n     *\n     * @param start Starting point from which the overlay is pushed.\n     * @param rawOverlayRect Dimensions of the overlay.\n     * @param scrollPosition Current viewport scroll position.\n     * @returns The point at which to position the overlay after pushing. This is effectively a new\n     *     originPoint.\n     */\n    _pushOverlayOnScreen(start, rawOverlayRect, scrollPosition) {\n        // If the position is locked and we've pushed the overlay already, reuse the previous push\n        // amount, rather than pushing it again. If we were to continue pushing, the element would\n        // remain in the viewport, which goes against the expectations when position locking is enabled.\n        if (this._previousPushAmount && this._positionLocked) {\n            return {\n                x: start.x + this._previousPushAmount.x,\n                y: start.y + this._previousPushAmount.y,\n            };\n        }\n        // Round the overlay rect when comparing against the\n        // viewport, because the viewport is always rounded.\n        const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n        const viewport = this._viewportRect;\n        // Determine how much the overlay goes outside the viewport on each\n        // side, which we'll use to decide which direction to push it.\n        const overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);\n        const overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);\n        const overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);\n        const overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0);\n        // Amount by which to push the overlay in each axis such that it remains on-screen.\n        let pushX = 0;\n        let pushY = 0;\n        // If the overlay fits completely within the bounds of the viewport, push it from whichever\n        // direction is goes off-screen. Otherwise, push the top-left corner such that its in the\n        // viewport and allow for the trailing end of the overlay to go out of bounds.\n        if (overlay.width <= viewport.width) {\n            pushX = overflowLeft || -overflowRight;\n        }\n        else {\n            pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;\n        }\n        if (overlay.height <= viewport.height) {\n            pushY = overflowTop || -overflowBottom;\n        }\n        else {\n            pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;\n        }\n        this._previousPushAmount = { x: pushX, y: pushY };\n        return {\n            x: start.x + pushX,\n            y: start.y + pushY,\n        };\n    }\n    /**\n     * Applies a computed position to the overlay and emits a position change.\n     * @param position The position preference\n     * @param originPoint The point on the origin element where the overlay is connected.\n     */\n    _applyPosition(position, originPoint) {\n        this._setTransformOrigin(position);\n        this._setOverlayElementStyles(originPoint, position);\n        this._setBoundingBoxStyles(originPoint, position);\n        if (position.panelClass) {\n            this._addPanelClasses(position.panelClass);\n        }\n        // Save the last connected position in case the position needs to be re-calculated.\n        this._lastPosition = position;\n        // Notify that the position has been changed along with its change properties.\n        // We only emit if we've got any subscriptions, because the scroll visibility\n        // calculations can be somewhat expensive.\n        if (this._positionChanges.observers.length) {\n            const scrollableViewProperties = this._getScrollVisibility();\n            const changeEvent = new ConnectedOverlayPositionChange(position, scrollableViewProperties);\n            this._positionChanges.next(changeEvent);\n        }\n        this._isInitialRender = false;\n    }\n    /** Sets the transform origin based on the configured selector and the passed-in position.  */\n    _setTransformOrigin(position) {\n        if (!this._transformOriginSelector) {\n            return;\n        }\n        const elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);\n        let xOrigin;\n        let yOrigin = position.overlayY;\n        if (position.overlayX === 'center') {\n            xOrigin = 'center';\n        }\n        else if (this._isRtl()) {\n            xOrigin = position.overlayX === 'start' ? 'right' : 'left';\n        }\n        else {\n            xOrigin = position.overlayX === 'start' ? 'left' : 'right';\n        }\n        for (let i = 0; i < elements.length; i++) {\n            elements[i].style.transformOrigin = `${xOrigin} ${yOrigin}`;\n        }\n    }\n    /**\n     * Gets the position and size of the overlay's sizing container.\n     *\n     * This method does no measuring and applies no styles so that we can cheaply compute the\n     * bounds for all positions and choose the best fit based on these results.\n     */\n    _calculateBoundingBoxRect(origin, position) {\n        const viewport = this._viewportRect;\n        const isRtl = this._isRtl();\n        let height, top, bottom;\n        if (position.overlayY === 'top') {\n            // Overlay is opening \"downward\" and thus is bound by the bottom viewport edge.\n            top = origin.y;\n            height = viewport.height - top + this._viewportMargin;\n        }\n        else if (position.overlayY === 'bottom') {\n            // Overlay is opening \"upward\" and thus is bound by the top viewport edge. We need to add\n            // the viewport margin back in, because the viewport rect is narrowed down to remove the\n            // margin, whereas the `origin` position is calculated based on its `ClientRect`.\n            bottom = viewport.height - origin.y + this._viewportMargin * 2;\n            height = viewport.height - bottom + this._viewportMargin;\n        }\n        else {\n            // If neither top nor bottom, it means that the overlay is vertically centered on the\n            // origin point. Note that we want the position relative to the viewport, rather than\n            // the page, which is why we don't use something like `viewport.bottom - origin.y` and\n            // `origin.y - viewport.top`.\n            const smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);\n            const previousHeight = this._lastBoundingBoxSize.height;\n            height = smallestDistanceToViewportEdge * 2;\n            top = origin.y - smallestDistanceToViewportEdge;\n            if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {\n                top = origin.y - previousHeight / 2;\n            }\n        }\n        // The overlay is opening 'right-ward' (the content flows to the right).\n        const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) || (position.overlayX === 'end' && isRtl);\n        // The overlay is opening 'left-ward' (the content flows to the left).\n        const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) || (position.overlayX === 'start' && isRtl);\n        let width, left, right;\n        if (isBoundedByLeftViewportEdge) {\n            right = viewport.width - origin.x + this._viewportMargin;\n            width = origin.x - this._viewportMargin;\n        }\n        else if (isBoundedByRightViewportEdge) {\n            left = origin.x;\n            width = viewport.right - origin.x;\n        }\n        else {\n            // If neither start nor end, it means that the overlay is horizontally centered on the\n            // origin point. Note that we want the position relative to the viewport, rather than\n            // the page, which is why we don't use something like `viewport.right - origin.x` and\n            // `origin.x - viewport.left`.\n            const smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);\n            const previousWidth = this._lastBoundingBoxSize.width;\n            width = smallestDistanceToViewportEdge * 2;\n            left = origin.x - smallestDistanceToViewportEdge;\n            if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {\n                left = origin.x - previousWidth / 2;\n            }\n        }\n        return { top: top, left: left, bottom: bottom, right: right, width, height };\n    }\n    /**\n     * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the\n     * origin's connection point and stretches to the bounds of the viewport.\n     *\n     * @param origin The point on the origin element where the overlay is connected.\n     * @param position The position preference\n     */\n    _setBoundingBoxStyles(origin, position) {\n        const boundingBoxRect = this._calculateBoundingBoxRect(origin, position);\n        // It's weird if the overlay *grows* while scrolling, so we take the last size into account\n        // when applying a new size.\n        if (!this._isInitialRender && !this._growAfterOpen) {\n            boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);\n            boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);\n        }\n        const styles = {};\n        if (this._hasExactPosition()) {\n            styles.top = styles.left = '0';\n            styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';\n            styles.width = styles.height = '100%';\n        }\n        else {\n            const maxHeight = this._overlayRef.getConfig().maxHeight;\n            const maxWidth = this._overlayRef.getConfig().maxWidth;\n            styles.height = coerceCssPixelValue(boundingBoxRect.height);\n            styles.top = coerceCssPixelValue(boundingBoxRect.top);\n            styles.bottom = coerceCssPixelValue(boundingBoxRect.bottom);\n            styles.width = coerceCssPixelValue(boundingBoxRect.width);\n            styles.left = coerceCssPixelValue(boundingBoxRect.left);\n            styles.right = coerceCssPixelValue(boundingBoxRect.right);\n            // Push the pane content towards the proper direction.\n            if (position.overlayX === 'center') {\n                styles.alignItems = 'center';\n            }\n            else {\n                styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';\n            }\n            if (position.overlayY === 'center') {\n                styles.justifyContent = 'center';\n            }\n            else {\n                styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';\n            }\n            if (maxHeight) {\n                styles.maxHeight = coerceCssPixelValue(maxHeight);\n            }\n            if (maxWidth) {\n                styles.maxWidth = coerceCssPixelValue(maxWidth);\n            }\n        }\n        this._lastBoundingBoxSize = boundingBoxRect;\n        extendStyles(this._boundingBox.style, styles);\n    }\n    /** Resets the styles for the bounding box so that a new positioning can be computed. */\n    _resetBoundingBoxStyles() {\n        extendStyles(this._boundingBox.style, {\n            top: '0',\n            left: '0',\n            right: '0',\n            bottom: '0',\n            height: '',\n            width: '',\n            alignItems: '',\n            justifyContent: '',\n        });\n    }\n    /** Resets the styles for the overlay pane so that a new positioning can be computed. */\n    _resetOverlayElementStyles() {\n        extendStyles(this._pane.style, {\n            top: '',\n            left: '',\n            bottom: '',\n            right: '',\n            position: '',\n            transform: '',\n        });\n    }\n    /** Sets positioning styles to the overlay element. */\n    _setOverlayElementStyles(originPoint, position) {\n        const styles = {};\n        const hasExactPosition = this._hasExactPosition();\n        const hasFlexibleDimensions = this._hasFlexibleDimensions;\n        const config = this._overlayRef.getConfig();\n        if (hasExactPosition) {\n            const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n            extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));\n            extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));\n        }\n        else {\n            styles.position = 'static';\n        }\n        // Use a transform to apply the offsets. We do this because the `center` positions rely on\n        // being in the normal flex flow and setting a `top` / `left` at all will completely throw\n        // off the position. We also can't use margins, because they won't have an effect in some\n        // cases where the element doesn't have anything to \"push off of\". Finally, this works\n        // better both with flexible and non-flexible positioning.\n        let transformString = '';\n        let offsetX = this._getOffset(position, 'x');\n        let offsetY = this._getOffset(position, 'y');\n        if (offsetX) {\n            transformString += `translateX(${offsetX}px) `;\n        }\n        if (offsetY) {\n            transformString += `translateY(${offsetY}px)`;\n        }\n        styles.transform = transformString.trim();\n        // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because\n        // we need these values to both be set to \"100%\" for the automatic flexible sizing to work.\n        // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.\n        // Note that this doesn't apply when we have an exact position, in which case we do want to\n        // apply them because they'll be cleared from the bounding box.\n        if (config.maxHeight) {\n            if (hasExactPosition) {\n                styles.maxHeight = coerceCssPixelValue(config.maxHeight);\n            }\n            else if (hasFlexibleDimensions) {\n                styles.maxHeight = '';\n            }\n        }\n        if (config.maxWidth) {\n            if (hasExactPosition) {\n                styles.maxWidth = coerceCssPixelValue(config.maxWidth);\n            }\n            else if (hasFlexibleDimensions) {\n                styles.maxWidth = '';\n            }\n        }\n        extendStyles(this._pane.style, styles);\n    }\n    /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */\n    _getExactOverlayY(position, originPoint, scrollPosition) {\n        // Reset any existing styles. This is necessary in case the\n        // preferred position has changed since the last `apply`.\n        let styles = { top: '', bottom: '' };\n        let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n        if (this._isPushed) {\n            overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n        }\n        // We want to set either `top` or `bottom` based on whether the overlay wants to appear\n        // above or below the origin and the direction in which the element will expand.\n        if (position.overlayY === 'bottom') {\n            // When using `bottom`, we adjust the y position such that it is the distance\n            // from the bottom of the viewport rather than the top.\n            const documentHeight = this._document.documentElement.clientHeight;\n            styles.bottom = `${documentHeight - (overlayPoint.y + this._overlayRect.height)}px`;\n        }\n        else {\n            styles.top = coerceCssPixelValue(overlayPoint.y);\n        }\n        return styles;\n    }\n    /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */\n    _getExactOverlayX(position, originPoint, scrollPosition) {\n        // Reset any existing styles. This is necessary in case the preferred position has\n        // changed since the last `apply`.\n        let styles = { left: '', right: '' };\n        let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n        if (this._isPushed) {\n            overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n        }\n        // We want to set either `left` or `right` based on whether the overlay wants to appear \"before\"\n        // or \"after\" the origin, which determines the direction in which the element will expand.\n        // For the horizontal axis, the meaning of \"before\" and \"after\" change based on whether the\n        // page is in RTL or LTR.\n        let horizontalStyleProperty;\n        if (this._isRtl()) {\n            horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';\n        }\n        else {\n            horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';\n        }\n        // When we're setting `right`, we adjust the x position such that it is the distance\n        // from the right edge of the viewport rather than the left edge.\n        if (horizontalStyleProperty === 'right') {\n            const documentWidth = this._document.documentElement.clientWidth;\n            styles.right = `${documentWidth - (overlayPoint.x + this._overlayRect.width)}px`;\n        }\n        else {\n            styles.left = coerceCssPixelValue(overlayPoint.x);\n        }\n        return styles;\n    }\n    /**\n     * Gets the view properties of the trigger and overlay, including whether they are clipped\n     * or completely outside the view of any of the strategy's scrollables.\n     */\n    _getScrollVisibility() {\n        // Note: needs fresh rects since the position could've changed.\n        const originBounds = this._getOriginRect();\n        const overlayBounds = this._pane.getBoundingClientRect();\n        // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers\n        // every time, we should be able to use the scrollTop of the containers if the size of those\n        // containers hasn't changed.\n        const scrollContainerBounds = this._scrollables.map(scrollable => {\n            return scrollable.getElementRef().nativeElement.getBoundingClientRect();\n        });\n        return {\n            isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),\n            isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),\n            isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),\n            isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds),\n        };\n    }\n    /** Subtracts the amount that an element is overflowing on an axis from its length. */\n    _subtractOverflows(length, ...overflows) {\n        return overflows.reduce((currentValue, currentOverflow) => {\n            return currentValue - Math.max(currentOverflow, 0);\n        }, length);\n    }\n    /** Narrows the given viewport rect by the current _viewportMargin. */\n    _getNarrowedViewportRect() {\n        // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,\n        // because we want to use the `clientWidth` and `clientHeight` as the base. The difference\n        // being that the client properties don't include the scrollbar, as opposed to `innerWidth`\n        // and `innerHeight` that do. This is necessary, because the overlay container uses\n        // 100% `width` and `height` which don't include the scrollbar either.\n        const width = this._document.documentElement.clientWidth;\n        const height = this._document.documentElement.clientHeight;\n        const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n        return {\n            top: scrollPosition.top + this._viewportMargin,\n            left: scrollPosition.left + this._viewportMargin,\n            right: scrollPosition.left + width - this._viewportMargin,\n            bottom: scrollPosition.top + height - this._viewportMargin,\n            width: width - 2 * this._viewportMargin,\n            height: height - 2 * this._viewportMargin,\n        };\n    }\n    /** Whether the we're dealing with an RTL context */\n    _isRtl() {\n        return this._overlayRef.getDirection() === 'rtl';\n    }\n    /** Determines whether the overlay uses exact or flexible positioning. */\n    _hasExactPosition() {\n        return !this._hasFlexibleDimensions || this._isPushed;\n    }\n    /** Retrieves the offset of a position along the x or y axis. */\n    _getOffset(position, axis) {\n        if (axis === 'x') {\n            // We don't do something like `position['offset' + axis]` in\n            // order to avoid breaking minifiers that rename properties.\n            return position.offsetX == null ? this._offsetX : position.offsetX;\n        }\n        return position.offsetY == null ? this._offsetY : position.offsetY;\n    }\n    /** Validates that the current position match the expected values. */\n    _validatePositions() {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            if (!this._preferredPositions.length) {\n                throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');\n            }\n            // TODO(crisbeto): remove these once Angular's template type\n            // checking is advanced enough to catch these cases.\n            this._preferredPositions.forEach(pair => {\n                validateHorizontalPosition('originX', pair.originX);\n                validateVerticalPosition('originY', pair.originY);\n                validateHorizontalPosition('overlayX', pair.overlayX);\n                validateVerticalPosition('overlayY', pair.overlayY);\n            });\n        }\n    }\n    /** Adds a single CSS class or an array of classes on the overlay panel. */\n    _addPanelClasses(cssClasses) {\n        if (this._pane) {\n            coerceArray(cssClasses).forEach(cssClass => {\n                if (cssClass !== '' && this._appliedPanelClasses.indexOf(cssClass) === -1) {\n                    this._appliedPanelClasses.push(cssClass);\n                    this._pane.classList.add(cssClass);\n                }\n            });\n        }\n    }\n    /** Clears the classes that the position strategy has applied from the overlay panel. */\n    _clearPanelClasses() {\n        if (this._pane) {\n            this._appliedPanelClasses.forEach(cssClass => {\n                this._pane.classList.remove(cssClass);\n            });\n            this._appliedPanelClasses = [];\n        }\n    }\n    /** Returns the ClientRect of the current origin. */\n    _getOriginRect() {\n        const origin = this._origin;\n        if (origin instanceof ElementRef) {\n            return origin.nativeElement.getBoundingClientRect();\n        }\n        // Check for Element so SVG elements are also supported.\n        if (origin instanceof Element) {\n            return origin.getBoundingClientRect();\n        }\n        const width = origin.width || 0;\n        const height = origin.height || 0;\n        // If the origin is a point, return a client rect as if it was a 0x0 element at the point.\n        return {\n            top: origin.y,\n            bottom: origin.y + height,\n            left: origin.x,\n            right: origin.x + width,\n            height,\n            width,\n        };\n    }\n}\n/** Shallow-extends a stylesheet object with another stylesheet object. */\nfunction extendStyles(destination, source) {\n    for (let key in source) {\n        if (source.hasOwnProperty(key)) {\n            destination[key] = source[key];\n        }\n    }\n    return destination;\n}\n/**\n * Extracts the pixel value as a number from a value, if it's a number\n * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.\n */\nfunction getPixelValue(input) {\n    if (typeof input !== 'number' && input != null) {\n        const [value, units] = input.split(cssUnitPattern);\n        return !units || units === 'px' ? parseFloat(value) : null;\n    }\n    return input || null;\n}\n/**\n * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to\n * the nearest pixel. This allows us to account for the cases where there may be sub-pixel\n * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage\n * size, see #21350).\n */\nfunction getRoundedBoundingClientRect(clientRect) {\n    return {\n        top: Math.floor(clientRect.top),\n        right: Math.floor(clientRect.right),\n        bottom: Math.floor(clientRect.bottom),\n        left: Math.floor(clientRect.left),\n        width: Math.floor(clientRect.width),\n        height: Math.floor(clientRect.height),\n    };\n}\nconst STANDARD_DROPDOWN_BELOW_POSITIONS = [\n    { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },\n    { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },\n    { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top' },\n    { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom' },\n];\nconst STANDARD_DROPDOWN_ADJACENT_POSITIONS = [\n    { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top' },\n    { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom' },\n    { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top' },\n    { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom' },\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.io/license\n */\n/** Class to be added to the overlay pane wrapper. */\nconst wrapperClass = 'cdk-global-overlay-wrapper';\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * explicit position relative to the browser's viewport. We use flexbox, instead of\n * transforms, in order to avoid issues with subpixel rendering which can cause the\n * element to become blurry.\n */\nclass GlobalPositionStrategy {\n    constructor() {\n        this._cssPosition = 'static';\n        this._topOffset = '';\n        this._bottomOffset = '';\n        this._alignItems = '';\n        this._xPosition = '';\n        this._xOffset = '';\n        this._width = '';\n        this._height = '';\n        this._isDisposed = false;\n    }\n    attach(overlayRef) {\n        const config = overlayRef.getConfig();\n        this._overlayRef = overlayRef;\n        if (this._width && !config.width) {\n            overlayRef.updateSize({ width: this._width });\n        }\n        if (this._height && !config.height) {\n            overlayRef.updateSize({ height: this._height });\n        }\n        overlayRef.hostElement.classList.add(wrapperClass);\n        this._isDisposed = false;\n    }\n    /**\n     * Sets the top position of the overlay. Clears any previously set vertical position.\n     * @param value New top offset.\n     */\n    top(value = '') {\n        this._bottomOffset = '';\n        this._topOffset = value;\n        this._alignItems = 'flex-start';\n        return this;\n    }\n    /**\n     * Sets the left position of the overlay. Clears any previously set horizontal position.\n     * @param value New left offset.\n     */\n    left(value = '') {\n        this._xOffset = value;\n        this._xPosition = 'left';\n        return this;\n    }\n    /**\n     * Sets the bottom position of the overlay. Clears any previously set vertical position.\n     * @param value New bottom offset.\n     */\n    bottom(value = '') {\n        this._topOffset = '';\n        this._bottomOffset = value;\n        this._alignItems = 'flex-end';\n        return this;\n    }\n    /**\n     * Sets the right position of the overlay. Clears any previously set horizontal position.\n     * @param value New right offset.\n     */\n    right(value = '') {\n        this._xOffset = value;\n        this._xPosition = 'right';\n        return this;\n    }\n    /**\n     * Sets the overlay to the start of the viewport, depending on the overlay direction.\n     * This will be to the left in LTR layouts and to the right in RTL.\n     * @param offset Offset from the edge of the screen.\n     */\n    start(value = '') {\n        this._xOffset = value;\n        this._xPosition = 'start';\n        return this;\n    }\n    /**\n     * Sets the overlay to the end of the viewport, depending on the overlay direction.\n     * This will be to the right in LTR layouts and to the left in RTL.\n     * @param offset Offset from the edge of the screen.\n     */\n    end(value = '') {\n        this._xOffset = value;\n        this._xPosition = 'end';\n        return this;\n    }\n    /**\n     * Sets the overlay width and clears any previously set width.\n     * @param value New width for the overlay\n     * @deprecated Pass the `width` through the `OverlayConfig`.\n     * @breaking-change 8.0.0\n     */\n    width(value = '') {\n        if (this._overlayRef) {\n            this._overlayRef.updateSize({ width: value });\n        }\n        else {\n            this._width = value;\n        }\n        return this;\n    }\n    /**\n     * Sets the overlay height and clears any previously set height.\n     * @param value New height for the overlay\n     * @deprecated Pass the `height` through the `OverlayConfig`.\n     * @breaking-change 8.0.0\n     */\n    height(value = '') {\n        if (this._overlayRef) {\n            this._overlayRef.updateSize({ height: value });\n        }\n        else {\n            this._height = value;\n        }\n        return this;\n    }\n    /**\n     * Centers the overlay horizontally with an optional offset.\n     * Clears any previously set horizontal position.\n     *\n     * @param offset Overlay offset from the horizontal center.\n     */\n    centerHorizontally(offset = '') {\n        this.left(offset);\n        this._xPosition = 'center';\n        return this;\n    }\n    /**\n     * Centers the overlay vertically with an optional offset.\n     * Clears any previously set vertical position.\n     *\n     * @param offset Overlay offset from the vertical center.\n     */\n    centerVertically(offset = '') {\n        this.top(offset);\n        this._alignItems = 'center';\n        return this;\n    }\n    /**\n     * Apply the position to the element.\n     * @docs-private\n     */\n    apply() {\n        // Since the overlay ref applies the strategy asynchronously, it could\n        // have been disposed before it ends up being applied. If that is the\n        // case, we shouldn't do anything.\n        if (!this._overlayRef || !this._overlayRef.hasAttached()) {\n            return;\n        }\n        const styles = this._overlayRef.overlayElement.style;\n        const parentStyles = this._overlayRef.hostElement.style;\n        const config = this._overlayRef.getConfig();\n        const { width, height, maxWidth, maxHeight } = config;\n        const shouldBeFlushHorizontally = (width === '100%' || width === '100vw') &&\n            (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');\n        const shouldBeFlushVertically = (height === '100%' || height === '100vh') &&\n            (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');\n        const xPosition = this._xPosition;\n        const xOffset = this._xOffset;\n        const isRtl = this._overlayRef.getConfig().direction === 'rtl';\n        let marginLeft = '';\n        let marginRight = '';\n        let justifyContent = '';\n        if (shouldBeFlushHorizontally) {\n            justifyContent = 'flex-start';\n        }\n        else if (xPosition === 'center') {\n            justifyContent = 'center';\n            if (isRtl) {\n                marginRight = xOffset;\n            }\n            else {\n                marginLeft = xOffset;\n            }\n        }\n        else if (isRtl) {\n            if (xPosition === 'left' || xPosition === 'end') {\n                justifyContent = 'flex-end';\n                marginLeft = xOffset;\n            }\n            else if (xPosition === 'right' || xPosition === 'start') {\n                justifyContent = 'flex-start';\n                marginRight = xOffset;\n            }\n        }\n        else if (xPosition === 'left' || xPosition === 'start') {\n            justifyContent = 'flex-start';\n            marginLeft = xOffset;\n        }\n        else if (xPosition === 'right' || xPosition === 'end') {\n            justifyContent = 'flex-end';\n            marginRight = xOffset;\n        }\n        styles.position = this._cssPosition;\n        styles.marginLeft = shouldBeFlushHorizontally ? '0' : marginLeft;\n        styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;\n        styles.marginBottom = this._bottomOffset;\n        styles.marginRight = shouldBeFlushHorizontally ? '0' : marginRight;\n        parentStyles.justifyContent = justifyContent;\n        parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;\n    }\n    /**\n     * Cleans up the DOM changes from the position strategy.\n     * @docs-private\n     */\n    dispose() {\n        if (this._isDisposed || !this._overlayRef) {\n            return;\n        }\n        const styles = this._overlayRef.overlayElement.style;\n        const parent = this._overlayRef.hostElement;\n        const parentStyles = parent.style;\n        parent.classList.remove(wrapperClass);\n        parentStyles.justifyContent =\n            parentStyles.alignItems =\n                styles.marginTop =\n                    styles.marginBottom =\n                        styles.marginLeft =\n                            styles.marginRight =\n                                styles.position =\n                                    '';\n        this._overlayRef = null;\n        this._isDisposed = true;\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.io/license\n */\n/** Builder for overlay position strategy. */\nclass OverlayPositionBuilder {\n    constructor(_viewportRuler, _document, _platform, _overlayContainer) {\n        this._viewportRuler = _viewportRuler;\n        this._document = _document;\n        this._platform = _platform;\n        this._overlayContainer = _overlayContainer;\n    }\n    /**\n     * Creates a global position strategy.\n     */\n    global() {\n        return new GlobalPositionStrategy();\n    }\n    /**\n     * Creates a flexible position strategy.\n     * @param origin Origin relative to which to position the overlay.\n     */\n    flexibleConnectedTo(origin) {\n        return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);\n    }\n}\nOverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayPositionBuilder, deps: [{ token: i1.ViewportRuler }, { token: DOCUMENT }, { token: i1$1.Platform }, { token: OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayPositionBuilder, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayPositionBuilder, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.ViewportRuler }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1$1.Platform }, { type: OverlayContainer }]; } });\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.io/license\n */\n/** Next overlay unique ID. */\nlet nextUniqueId = 0;\n// Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver\n// which needs to be different depending on where OverlayModule is imported.\n/**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.\n */\nclass Overlay {\n    constructor(\n    /** Scrolling strategies that can be used when creating an overlay. */\n    scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher, _animationsModuleType) {\n        this.scrollStrategies = scrollStrategies;\n        this._overlayContainer = _overlayContainer;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._positionBuilder = _positionBuilder;\n        this._keyboardDispatcher = _keyboardDispatcher;\n        this._injector = _injector;\n        this._ngZone = _ngZone;\n        this._document = _document;\n        this._directionality = _directionality;\n        this._location = _location;\n        this._outsideClickDispatcher = _outsideClickDispatcher;\n        this._animationsModuleType = _animationsModuleType;\n    }\n    /**\n     * Creates an overlay.\n     * @param config Configuration applied to the overlay.\n     * @returns Reference to the created overlay.\n     */\n    create(config) {\n        const host = this._createHostElement();\n        const pane = this._createPaneElement(host);\n        const portalOutlet = this._createPortalOutlet(pane);\n        const overlayConfig = new OverlayConfig(config);\n        overlayConfig.direction = overlayConfig.direction || this._directionality.value;\n        return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher, this._animationsModuleType === 'NoopAnimations');\n    }\n    /**\n     * Gets a position builder that can be used, via fluent API,\n     * to construct and configure a position strategy.\n     * @returns An overlay position builder.\n     */\n    position() {\n        return this._positionBuilder;\n    }\n    /**\n     * Creates the DOM element for an overlay and appends it to the overlay container.\n     * @returns Newly-created pane element\n     */\n    _createPaneElement(host) {\n        const pane = this._document.createElement('div');\n        pane.id = `cdk-overlay-${nextUniqueId++}`;\n        pane.classList.add('cdk-overlay-pane');\n        host.appendChild(pane);\n        return pane;\n    }\n    /**\n     * Creates the host element that wraps around an overlay\n     * and can be used for advanced positioning.\n     * @returns Newly-create host element.\n     */\n    _createHostElement() {\n        const host = this._document.createElement('div');\n        this._overlayContainer.getContainerElement().appendChild(host);\n        return host;\n    }\n    /**\n     * Create a DomPortalOutlet into which the overlay content can be loaded.\n     * @param pane The DOM element to turn into a portal outlet.\n     * @returns A portal outlet for the given DOM element.\n     */\n    _createPortalOutlet(pane) {\n        // We have to resolve the ApplicationRef later in order to allow people\n        // to use overlay-based providers during app initialization.\n        if (!this._appRef) {\n            this._appRef = this._injector.get(ApplicationRef);\n        }\n        return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);\n    }\n}\nOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Overlay, deps: [{ token: ScrollStrategyOptions }, { token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: OverlayPositionBuilder }, { token: OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i5.Directionality }, { token: i6.Location }, { token: OverlayOutsideClickDispatcher }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Overlay });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Overlay, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: ScrollStrategyOptions }, { type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: OverlayPositionBuilder }, { type: OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i5.Directionality }, { type: i6.Location }, { type: OverlayOutsideClickDispatcher }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }, {\n                    type: Optional\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.io/license\n */\n/** Default set of positions for the overlay. Follows the behavior of a dropdown. */\nconst defaultPositionList = [\n    {\n        originX: 'start',\n        originY: 'bottom',\n        overlayX: 'start',\n        overlayY: 'top',\n    },\n    {\n        originX: 'start',\n        originY: 'top',\n        overlayX: 'start',\n        overlayY: 'bottom',\n    },\n    {\n        originX: 'end',\n        originY: 'top',\n        overlayX: 'end',\n        overlayY: 'bottom',\n    },\n    {\n        originX: 'end',\n        originY: 'bottom',\n        overlayX: 'end',\n        overlayY: 'top',\n    },\n];\n/** Injection token that determines the scroll handling while the connected overlay is open. */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new InjectionToken('cdk-connected-overlay-scroll-strategy');\n/**\n * Directive applied to an element to make it usable as an origin for an Overlay using a\n * ConnectedPositionStrategy.\n */\nclass CdkOverlayOrigin {\n    constructor(\n    /** Reference to the element on which the directive is applied. */\n    elementRef) {\n        this.elementRef = elementRef;\n    }\n}\nCdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkOverlayOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkOverlayOrigin, selector: \"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]\", exportAs: [\"cdkOverlayOrigin\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkOverlayOrigin, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',\n                    exportAs: 'cdkOverlayOrigin',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n/**\n * Directive to facilitate declarative creation of an\n * Overlay using a FlexibleConnectedPositionStrategy.\n */\nclass CdkConnectedOverlay {\n    // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.\n    constructor(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {\n        this._overlay = _overlay;\n        this._dir = _dir;\n        this._hasBackdrop = false;\n        this._lockPosition = false;\n        this._growAfterOpen = false;\n        this._flexibleDimensions = false;\n        this._push = false;\n        this._backdropSubscription = Subscription.EMPTY;\n        this._attachSubscription = Subscription.EMPTY;\n        this._detachSubscription = Subscription.EMPTY;\n        this._positionSubscription = Subscription.EMPTY;\n        /** Margin between the overlay and the viewport edges. */\n        this.viewportMargin = 0;\n        /** Whether the overlay is open. */\n        this.open = false;\n        /** Whether the overlay can be closed by user interaction. */\n        this.disableClose = false;\n        /** Event emitted when the backdrop is clicked. */\n        this.backdropClick = new EventEmitter();\n        /** Event emitted when the position has changed. */\n        this.positionChange = new EventEmitter();\n        /** Event emitted when the overlay has been attached. */\n        this.attach = new EventEmitter();\n        /** Event emitted when the overlay has been detached. */\n        this.detach = new EventEmitter();\n        /** Emits when there are keyboard events that are targeted at the overlay. */\n        this.overlayKeydown = new EventEmitter();\n        /** Emits when there are mouse outside click events that are targeted at the overlay. */\n        this.overlayOutsideClick = new EventEmitter();\n        this._templatePortal = new TemplatePortal(templateRef, viewContainerRef);\n        this._scrollStrategyFactory = scrollStrategyFactory;\n        this.scrollStrategy = this._scrollStrategyFactory();\n    }\n    /** The offset in pixels for the overlay connection point on the x-axis */\n    get offsetX() {\n        return this._offsetX;\n    }\n    set offsetX(offsetX) {\n        this._offsetX = offsetX;\n        if (this._position) {\n            this._updatePositionStrategy(this._position);\n        }\n    }\n    /** The offset in pixels for the overlay connection point on the y-axis */\n    get offsetY() {\n        return this._offsetY;\n    }\n    set offsetY(offsetY) {\n        this._offsetY = offsetY;\n        if (this._position) {\n            this._updatePositionStrategy(this._position);\n        }\n    }\n    /** Whether or not the overlay should attach a backdrop. */\n    get hasBackdrop() {\n        return this._hasBackdrop;\n    }\n    set hasBackdrop(value) {\n        this._hasBackdrop = coerceBooleanProperty(value);\n    }\n    /** Whether or not the overlay should be locked when scrolling. */\n    get lockPosition() {\n        return this._lockPosition;\n    }\n    set lockPosition(value) {\n        this._lockPosition = coerceBooleanProperty(value);\n    }\n    /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n    get flexibleDimensions() {\n        return this._flexibleDimensions;\n    }\n    set flexibleDimensions(value) {\n        this._flexibleDimensions = coerceBooleanProperty(value);\n    }\n    /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */\n    get growAfterOpen() {\n        return this._growAfterOpen;\n    }\n    set growAfterOpen(value) {\n        this._growAfterOpen = coerceBooleanProperty(value);\n    }\n    /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */\n    get push() {\n        return this._push;\n    }\n    set push(value) {\n        this._push = coerceBooleanProperty(value);\n    }\n    /** The associated overlay reference. */\n    get overlayRef() {\n        return this._overlayRef;\n    }\n    /** The element's layout direction. */\n    get dir() {\n        return this._dir ? this._dir.value : 'ltr';\n    }\n    ngOnDestroy() {\n        this._attachSubscription.unsubscribe();\n        this._detachSubscription.unsubscribe();\n        this._backdropSubscription.unsubscribe();\n        this._positionSubscription.unsubscribe();\n        if (this._overlayRef) {\n            this._overlayRef.dispose();\n        }\n    }\n    ngOnChanges(changes) {\n        if (this._position) {\n            this._updatePositionStrategy(this._position);\n            this._overlayRef.updateSize({\n                width: this.width,\n                minWidth: this.minWidth,\n                height: this.height,\n                minHeight: this.minHeight,\n            });\n            if (changes['origin'] && this.open) {\n                this._position.apply();\n            }\n        }\n        if (changes['open']) {\n            this.open ? this._attachOverlay() : this._detachOverlay();\n        }\n    }\n    /** Creates an overlay */\n    _createOverlay() {\n        if (!this.positions || !this.positions.length) {\n            this.positions = defaultPositionList;\n        }\n        const overlayRef = (this._overlayRef = this._overlay.create(this._buildConfig()));\n        this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());\n        this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());\n        overlayRef.keydownEvents().subscribe((event) => {\n            this.overlayKeydown.next(event);\n            if (event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)) {\n                event.preventDefault();\n                this._detachOverlay();\n            }\n        });\n        this._overlayRef.outsidePointerEvents().subscribe((event) => {\n            this.overlayOutsideClick.next(event);\n        });\n    }\n    /** Builds the overlay config based on the directive's inputs */\n    _buildConfig() {\n        const positionStrategy = (this._position =\n            this.positionStrategy || this._createPositionStrategy());\n        const overlayConfig = new OverlayConfig({\n            direction: this._dir,\n            positionStrategy,\n            scrollStrategy: this.scrollStrategy,\n            hasBackdrop: this.hasBackdrop,\n        });\n        if (this.width || this.width === 0) {\n            overlayConfig.width = this.width;\n        }\n        if (this.height || this.height === 0) {\n            overlayConfig.height = this.height;\n        }\n        if (this.minWidth || this.minWidth === 0) {\n            overlayConfig.minWidth = this.minWidth;\n        }\n        if (this.minHeight || this.minHeight === 0) {\n            overlayConfig.minHeight = this.minHeight;\n        }\n        if (this.backdropClass) {\n            overlayConfig.backdropClass = this.backdropClass;\n        }\n        if (this.panelClass) {\n            overlayConfig.panelClass = this.panelClass;\n        }\n        return overlayConfig;\n    }\n    /** Updates the state of a position strategy, based on the values of the directive inputs. */\n    _updatePositionStrategy(positionStrategy) {\n        const positions = this.positions.map(currentPosition => ({\n            originX: currentPosition.originX,\n            originY: currentPosition.originY,\n            overlayX: currentPosition.overlayX,\n            overlayY: currentPosition.overlayY,\n            offsetX: currentPosition.offsetX || this.offsetX,\n            offsetY: currentPosition.offsetY || this.offsetY,\n            panelClass: currentPosition.panelClass || undefined,\n        }));\n        return positionStrategy\n            .setOrigin(this._getFlexibleConnectedPositionStrategyOrigin())\n            .withPositions(positions)\n            .withFlexibleDimensions(this.flexibleDimensions)\n            .withPush(this.push)\n            .withGrowAfterOpen(this.growAfterOpen)\n            .withViewportMargin(this.viewportMargin)\n            .withLockedPosition(this.lockPosition)\n            .withTransformOriginOn(this.transformOriginSelector);\n    }\n    /** Returns the position strategy of the overlay to be set on the overlay config */\n    _createPositionStrategy() {\n        const strategy = this._overlay\n            .position()\n            .flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());\n        this._updatePositionStrategy(strategy);\n        return strategy;\n    }\n    _getFlexibleConnectedPositionStrategyOrigin() {\n        if (this.origin instanceof CdkOverlayOrigin) {\n            return this.origin.elementRef;\n        }\n        else {\n            return this.origin;\n        }\n    }\n    /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */\n    _attachOverlay() {\n        if (!this._overlayRef) {\n            this._createOverlay();\n        }\n        else {\n            // Update the overlay size, in case the directive's inputs have changed\n            this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;\n        }\n        if (!this._overlayRef.hasAttached()) {\n            this._overlayRef.attach(this._templatePortal);\n        }\n        if (this.hasBackdrop) {\n            this._backdropSubscription = this._overlayRef.backdropClick().subscribe(event => {\n                this.backdropClick.emit(event);\n            });\n        }\n        else {\n            this._backdropSubscription.unsubscribe();\n        }\n        this._positionSubscription.unsubscribe();\n        // Only subscribe to `positionChanges` if requested, because putting\n        // together all the information for it can be expensive.\n        if (this.positionChange.observers.length > 0) {\n            this._positionSubscription = this._position.positionChanges\n                .pipe(takeWhile(() => this.positionChange.observers.length > 0))\n                .subscribe(position => {\n                this.positionChange.emit(position);\n                if (this.positionChange.observers.length === 0) {\n                    this._positionSubscription.unsubscribe();\n                }\n            });\n        }\n    }\n    /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */\n    _detachOverlay() {\n        if (this._overlayRef) {\n            this._overlayRef.detach();\n        }\n        this._backdropSubscription.unsubscribe();\n        this._positionSubscription.unsubscribe();\n    }\n}\nCdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkConnectedOverlay, deps: [{ token: Overlay }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkConnectedOverlay, selector: \"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]\", inputs: { origin: [\"cdkConnectedOverlayOrigin\", \"origin\"], positions: [\"cdkConnectedOverlayPositions\", \"positions\"], positionStrategy: [\"cdkConnectedOverlayPositionStrategy\", \"positionStrategy\"], offsetX: [\"cdkConnectedOverlayOffsetX\", \"offsetX\"], offsetY: [\"cdkConnectedOverlayOffsetY\", \"offsetY\"], width: [\"cdkConnectedOverlayWidth\", \"width\"], height: [\"cdkConnectedOverlayHeight\", \"height\"], minWidth: [\"cdkConnectedOverlayMinWidth\", \"minWidth\"], minHeight: [\"cdkConnectedOverlayMinHeight\", \"minHeight\"], backdropClass: [\"cdkConnectedOverlayBackdropClass\", \"backdropClass\"], panelClass: [\"cdkConnectedOverlayPanelClass\", \"panelClass\"], viewportMargin: [\"cdkConnectedOverlayViewportMargin\", \"viewportMargin\"], scrollStrategy: [\"cdkConnectedOverlayScrollStrategy\", \"scrollStrategy\"], open: [\"cdkConnectedOverlayOpen\", \"open\"], disableClose: [\"cdkConnectedOverlayDisableClose\", \"disableClose\"], transformOriginSelector: [\"cdkConnectedOverlayTransformOriginOn\", \"transformOriginSelector\"], hasBackdrop: [\"cdkConnectedOverlayHasBackdrop\", \"hasBackdrop\"], lockPosition: [\"cdkConnectedOverlayLockPosition\", \"lockPosition\"], flexibleDimensions: [\"cdkConnectedOverlayFlexibleDimensions\", \"flexibleDimensions\"], growAfterOpen: [\"cdkConnectedOverlayGrowAfterOpen\", \"growAfterOpen\"], push: [\"cdkConnectedOverlayPush\", \"push\"] }, outputs: { backdropClick: \"backdropClick\", positionChange: \"positionChange\", attach: \"attach\", detach: \"detach\", overlayKeydown: \"overlayKeydown\", overlayOutsideClick: \"overlayOutsideClick\" }, exportAs: [\"cdkConnectedOverlay\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkConnectedOverlay, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',\n                    exportAs: 'cdkConnectedOverlay',\n                }]\n        }], ctorParameters: function () { return [{ type: Overlay }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]\n                }] }, { type: i5.Directionality, decorators: [{\n                    type: Optional\n                }] }]; }, propDecorators: { origin: [{\n                type: Input,\n                args: ['cdkConnectedOverlayOrigin']\n            }], positions: [{\n                type: Input,\n                args: ['cdkConnectedOverlayPositions']\n            }], positionStrategy: [{\n                type: Input,\n                args: ['cdkConnectedOverlayPositionStrategy']\n            }], offsetX: [{\n                type: Input,\n                args: ['cdkConnectedOverlayOffsetX']\n            }], offsetY: [{\n                type: Input,\n                args: ['cdkConnectedOverlayOffsetY']\n            }], width: [{\n                type: Input,\n                args: ['cdkConnectedOverlayWidth']\n            }], height: [{\n                type: Input,\n                args: ['cdkConnectedOverlayHeight']\n            }], minWidth: [{\n                type: Input,\n                args: ['cdkConnectedOverlayMinWidth']\n            }], minHeight: [{\n                type: Input,\n                args: ['cdkConnectedOverlayMinHeight']\n            }], backdropClass: [{\n                type: Input,\n                args: ['cdkConnectedOverlayBackdropClass']\n            }], panelClass: [{\n                type: Input,\n                args: ['cdkConnectedOverlayPanelClass']\n            }], viewportMargin: [{\n                type: Input,\n                args: ['cdkConnectedOverlayViewportMargin']\n            }], scrollStrategy: [{\n                type: Input,\n                args: ['cdkConnectedOverlayScrollStrategy']\n            }], open: [{\n                type: Input,\n                args: ['cdkConnectedOverlayOpen']\n            }], disableClose: [{\n                type: Input,\n                args: ['cdkConnectedOverlayDisableClose']\n            }], transformOriginSelector: [{\n                type: Input,\n                args: ['cdkConnectedOverlayTransformOriginOn']\n            }], hasBackdrop: [{\n                type: Input,\n                args: ['cdkConnectedOverlayHasBackdrop']\n            }], lockPosition: [{\n                type: Input,\n                args: ['cdkConnectedOverlayLockPosition']\n            }], flexibleDimensions: [{\n                type: Input,\n                args: ['cdkConnectedOverlayFlexibleDimensions']\n            }], growAfterOpen: [{\n                type: Input,\n                args: ['cdkConnectedOverlayGrowAfterOpen']\n            }], push: [{\n                type: Input,\n                args: ['cdkConnectedOverlayPush']\n            }], backdropClick: [{\n                type: Output\n            }], positionChange: [{\n                type: Output\n            }], attach: [{\n                type: Output\n            }], detach: [{\n                type: Output\n            }], overlayKeydown: [{\n                type: Output\n            }], overlayOutsideClick: [{\n                type: Output\n            }] } });\n/** @docs-private */\nfunction CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n    return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {\n    provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,\n    deps: [Overlay],\n    useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,\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.io/license\n */\nclass OverlayModule {\n}\nOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayModule, declarations: [CdkConnectedOverlay, CdkOverlayOrigin], imports: [BidiModule, PortalModule, ScrollingModule], exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule] });\nOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayModule, providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER], imports: [BidiModule, PortalModule, ScrollingModule, ScrollingModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: OverlayModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [BidiModule, PortalModule, ScrollingModule],\n                    exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule],\n                    declarations: [CdkConnectedOverlay, CdkOverlayOrigin],\n                    providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],\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.io/license\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.io/license\n */\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\nclass FullscreenOverlayContainer extends OverlayContainer {\n    constructor(_document, platform) {\n        super(_document, platform);\n    }\n    ngOnDestroy() {\n        super.ngOnDestroy();\n        if (this._fullScreenEventName && this._fullScreenListener) {\n            this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);\n        }\n    }\n    _createContainer() {\n        super._createContainer();\n        this._adjustParentForFullscreenChange();\n        this._addFullscreenChangeListener(() => this._adjustParentForFullscreenChange());\n    }\n    _adjustParentForFullscreenChange() {\n        if (!this._containerElement) {\n            return;\n        }\n        const fullscreenElement = this.getFullscreenElement();\n        const parent = fullscreenElement || this._document.body;\n        parent.appendChild(this._containerElement);\n    }\n    _addFullscreenChangeListener(fn) {\n        const eventName = this._getEventName();\n        if (eventName) {\n            if (this._fullScreenListener) {\n                this._document.removeEventListener(eventName, this._fullScreenListener);\n            }\n            this._document.addEventListener(eventName, fn);\n            this._fullScreenListener = fn;\n        }\n    }\n    _getEventName() {\n        if (!this._fullScreenEventName) {\n            const _document = this._document;\n            if (_document.fullscreenEnabled) {\n                this._fullScreenEventName = 'fullscreenchange';\n            }\n            else if (_document.webkitFullscreenEnabled) {\n                this._fullScreenEventName = 'webkitfullscreenchange';\n            }\n            else if (_document.mozFullScreenEnabled) {\n                this._fullScreenEventName = 'mozfullscreenchange';\n            }\n            else if (_document.msFullscreenEnabled) {\n                this._fullScreenEventName = 'MSFullscreenChange';\n            }\n        }\n        return this._fullScreenEventName;\n    }\n    /**\n     * When the page is put into fullscreen mode, a specific element is specified.\n     * Only that element and its children are visible when in fullscreen mode.\n     */\n    getFullscreenElement() {\n        const _document = this._document;\n        return (_document.fullscreenElement ||\n            _document.webkitFullscreenElement ||\n            _document.mozFullScreenElement ||\n            _document.msFullscreenElement ||\n            null);\n    }\n}\nFullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FullscreenOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nFullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FullscreenOverlayContainer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: FullscreenOverlayContainer, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i1$1.Platform }]; } });\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollStrategyOptions, ScrollingVisibility, validateHorizontalPosition, validateVerticalPosition };\n","import * as i0 from '@angular/core';\nimport { PLATFORM_ID, Injectable, Inject, NgModule } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\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.io/license\n */\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nlet hasV8BreakIterator;\n// We need a try/catch around the reference to `Intl`, because accessing it in some cases can\n// cause IE to throw. These cases are tied to particular versions of Windows and can happen if\n// the consumer is providing a polyfilled `Map`. See:\n// https://github.com/Microsoft/ChakraCore/issues/3189\n// https://github.com/angular/components/issues/15687\ntry {\n    hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;\n}\ncatch {\n    hasV8BreakIterator = false;\n}\n/**\n * Service to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n */\nclass Platform {\n    constructor(_platformId) {\n        this._platformId = _platformId;\n        // We want to use the Angular platform check because if the Document is shimmed\n        // without the navigator, the following checks will fail. This is preferred because\n        // sometimes the Document may be shimmed without the user's knowledge or intention\n        /** Whether the Angular application is being rendered in the browser. */\n        this.isBrowser = this._platformId\n            ? isPlatformBrowser(this._platformId)\n            : typeof document === 'object' && !!document;\n        /** Whether the current browser is Microsoft Edge. */\n        this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);\n        /** Whether the current rendering engine is Microsoft Trident. */\n        this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);\n        // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.\n        /** Whether the current rendering engine is Blink. */\n        this.BLINK = this.isBrowser &&\n            !!(window.chrome || hasV8BreakIterator) &&\n            typeof CSS !== 'undefined' &&\n            !this.EDGE &&\n            !this.TRIDENT;\n        // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to\n        // ensure that Webkit runs standalone and is not used as another engine's base.\n        /** Whether the current rendering engine is WebKit. */\n        this.WEBKIT = this.isBrowser &&\n            /AppleWebKit/i.test(navigator.userAgent) &&\n            !this.BLINK &&\n            !this.EDGE &&\n            !this.TRIDENT;\n        /** Whether the current platform is Apple iOS. */\n        this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !('MSStream' in window);\n        // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n        // them self as Gecko-like browsers and modify the userAgent's according to that.\n        // Since we only cover one explicit Firefox case, we can simply check for Firefox\n        // instead of having an unstable check for Gecko.\n        /** Whether the current browser is Firefox. */\n        this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);\n        /** Whether the current platform is Android. */\n        // Trident on mobile adds the android platform to the userAgent to trick detections.\n        this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;\n        // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake\n        // this and just place the Safari keyword in the userAgent. To be more safe about Safari every\n        // Safari browser should also use Webkit as its layout engine.\n        /** Whether the current browser is Safari. */\n        this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;\n    }\n}\nPlatform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Platform, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nPlatform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Platform, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: Platform, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: Object, decorators: [{\n                    type: Inject,\n                    args: [PLATFORM_ID]\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.io/license\n */\nclass PlatformModule {\n}\nPlatformModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PlatformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nPlatformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: PlatformModule });\nPlatformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PlatformModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PlatformModule, decorators: [{\n            type: NgModule,\n            args: [{}]\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.io/license\n */\n/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes;\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n    // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n    // first changing it to something else:\n    // The specified value \"\" does not conform to the required format.\n    // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n    'color',\n    'button',\n    'checkbox',\n    'date',\n    'datetime-local',\n    'email',\n    'file',\n    'hidden',\n    'image',\n    'month',\n    'number',\n    'password',\n    'radio',\n    'range',\n    'reset',\n    'search',\n    'submit',\n    'tel',\n    'text',\n    'time',\n    'url',\n    'week',\n];\n/** @returns The input types supported by this browser. */\nfunction getSupportedInputTypes() {\n    // Result is cached.\n    if (supportedInputTypes) {\n        return supportedInputTypes;\n    }\n    // We can't check if an input type is not supported until we're on the browser, so say that\n    // everything is supported when not on the browser. We don't use `Platform` here since it's\n    // just a helper function and can't inject it.\n    if (typeof document !== 'object' || !document) {\n        supportedInputTypes = new Set(candidateInputTypes);\n        return supportedInputTypes;\n    }\n    let featureTestInput = document.createElement('input');\n    supportedInputTypes = new Set(candidateInputTypes.filter(value => {\n        featureTestInput.setAttribute('type', value);\n        return featureTestInput.type === value;\n    }));\n    return supportedInputTypes;\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.io/license\n */\n/** Cached result of whether the user's browser supports passive event listeners. */\nlet supportsPassiveEvents;\n/**\n * Checks whether the user's browser supports passive event listeners.\n * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n */\nfunction supportsPassiveEventListeners() {\n    if (supportsPassiveEvents == null && typeof window !== 'undefined') {\n        try {\n            window.addEventListener('test', null, Object.defineProperty({}, 'passive', {\n                get: () => (supportsPassiveEvents = true),\n            }));\n        }\n        finally {\n            supportsPassiveEvents = supportsPassiveEvents || false;\n        }\n    }\n    return supportsPassiveEvents;\n}\n/**\n * Normalizes an `AddEventListener` object to something that can be passed\n * to `addEventListener` on any browser, no matter whether it supports the\n * `options` parameter.\n * @param options Object to be normalized.\n */\nfunction normalizePassiveListenerOptions(options) {\n    return supportsPassiveEventListeners() ? options : !!options.capture;\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.io/license\n */\n/** Cached result of the way the browser handles the horizontal scroll axis in RTL mode. */\nlet rtlScrollAxisType;\n/** Cached result of the check that indicates whether the browser supports scroll behaviors. */\nlet scrollBehaviorSupported;\n/** Check whether the browser supports scroll behaviors. */\nfunction supportsScrollBehavior() {\n    if (scrollBehaviorSupported == null) {\n        // If we're not in the browser, it can't be supported. Also check for `Element`, because\n        // some projects stub out the global `document` during SSR which can throw us off.\n        if (typeof document !== 'object' || !document || typeof Element !== 'function' || !Element) {\n            scrollBehaviorSupported = false;\n            return scrollBehaviorSupported;\n        }\n        // If the element can have a `scrollBehavior` style, we can be sure that it's supported.\n        if ('scrollBehavior' in document.documentElement.style) {\n            scrollBehaviorSupported = true;\n        }\n        else {\n            // At this point we have 3 possibilities: `scrollTo` isn't supported at all, it's\n            // supported but it doesn't handle scroll behavior, or it has been polyfilled.\n            const scrollToFunction = Element.prototype.scrollTo;\n            if (scrollToFunction) {\n                // We can detect if the function has been polyfilled by calling `toString` on it. Native\n                // functions are obfuscated using `[native code]`, whereas if it was overwritten we'd get\n                // the actual function source. Via https://davidwalsh.name/detect-native-function. Consider\n                // polyfilled functions as supporting scroll behavior.\n                scrollBehaviorSupported = !/\\{\\s*\\[native code\\]\\s*\\}/.test(scrollToFunction.toString());\n            }\n            else {\n                scrollBehaviorSupported = false;\n            }\n        }\n    }\n    return scrollBehaviorSupported;\n}\n/**\n * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,\n * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.\n */\nfunction getRtlScrollAxisType() {\n    // We can't check unless we're on the browser. Just assume 'normal' if we're not.\n    if (typeof document !== 'object' || !document) {\n        return 0 /* RtlScrollAxisType.NORMAL */;\n    }\n    if (rtlScrollAxisType == null) {\n        // Create a 1px wide scrolling container and a 2px wide content element.\n        const scrollContainer = document.createElement('div');\n        const containerStyle = scrollContainer.style;\n        scrollContainer.dir = 'rtl';\n        containerStyle.width = '1px';\n        containerStyle.overflow = 'auto';\n        containerStyle.visibility = 'hidden';\n        containerStyle.pointerEvents = 'none';\n        containerStyle.position = 'absolute';\n        const content = document.createElement('div');\n        const contentStyle = content.style;\n        contentStyle.width = '2px';\n        contentStyle.height = '1px';\n        scrollContainer.appendChild(content);\n        document.body.appendChild(scrollContainer);\n        rtlScrollAxisType = 0 /* RtlScrollAxisType.NORMAL */;\n        // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL\n        // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're\n        // dealing with one of the other two types of browsers.\n        if (scrollContainer.scrollLeft === 0) {\n            // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an\n            // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by\n            // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will\n            // return 0 when we read it again.\n            scrollContainer.scrollLeft = 1;\n            rtlScrollAxisType =\n                scrollContainer.scrollLeft === 0 ? 1 /* RtlScrollAxisType.NEGATED */ : 2 /* RtlScrollAxisType.INVERTED */;\n        }\n        scrollContainer.remove();\n    }\n    return rtlScrollAxisType;\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.io/license\n */\nlet shadowDomIsSupported;\n/** Checks whether the user's browser support Shadow DOM. */\nfunction _supportsShadowDom() {\n    if (shadowDomIsSupported == null) {\n        const head = typeof document !== 'undefined' ? document.head : null;\n        shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow));\n    }\n    return shadowDomIsSupported;\n}\n/** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */\nfunction _getShadowRoot(element) {\n    if (_supportsShadowDom()) {\n        const rootNode = element.getRootNode ? element.getRootNode() : null;\n        // Note that this should be caught by `_supportsShadowDom`, but some\n        // teams have been able to hit this code path on unsupported browsers.\n        if (typeof ShadowRoot !== 'undefined' && ShadowRoot && rootNode instanceof ShadowRoot) {\n            return rootNode;\n        }\n    }\n    return null;\n}\n/**\n * Gets the currently-focused element on the page while\n * also piercing through Shadow DOM boundaries.\n */\nfunction _getFocusedElementPierceShadowDom() {\n    let activeElement = typeof document !== 'undefined' && document\n        ? document.activeElement\n        : null;\n    while (activeElement && activeElement.shadowRoot) {\n        const newActiveElement = activeElement.shadowRoot.activeElement;\n        if (newActiveElement === activeElement) {\n            break;\n        }\n        else {\n            activeElement = newActiveElement;\n        }\n    }\n    return activeElement;\n}\n/** Gets the target of an event while accounting for Shadow DOM. */\nfunction _getEventTarget(event) {\n    // If an event is bound outside the Shadow DOM, the `event.target` will\n    // point to the shadow root so we have to use `composedPath` instead.\n    return (event.composedPath ? event.composedPath()[0] : event.target);\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.io/license\n */\n/** Gets whether the code is currently running in a test environment. */\nfunction _isTestEnvironment() {\n    // We can't use `declare const` because it causes conflicts inside Google with the real typings\n    // for these symbols and we can't read them off the global object, because they don't appear to\n    // be attached there for some runners like Jest.\n    // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)\n    return (\n    // @ts-ignore\n    (typeof __karma__ !== 'undefined' && !!__karma__) ||\n        // @ts-ignore\n        (typeof jasmine !== 'undefined' && !!jasmine) ||\n        // @ts-ignore\n        (typeof jest !== 'undefined' && !!jest) ||\n        // @ts-ignore\n        (typeof Mocha !== 'undefined' && !!Mocha));\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Platform, PlatformModule, _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _isTestEnvironment, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior };\n","import * as i0 from '@angular/core';\nimport { ElementRef, Injector, Directive, EventEmitter, Inject, Output, NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\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.io/license\n */\n/**\n * Throws an exception when attempting to attach a null portal to a host.\n * @docs-private\n */\nfunction throwNullPortalError() {\n    throw Error('Must provide a portal to attach');\n}\n/**\n * Throws an exception when attempting to attach a portal to a host that is already attached.\n * @docs-private\n */\nfunction throwPortalAlreadyAttachedError() {\n    throw Error('Host already has a portal attached');\n}\n/**\n * Throws an exception when attempting to attach a portal to an already-disposed host.\n * @docs-private\n */\nfunction throwPortalOutletAlreadyDisposedError() {\n    throw Error('This PortalOutlet has already been disposed');\n}\n/**\n * Throws an exception when attempting to attach an unknown portal type.\n * @docs-private\n */\nfunction throwUnknownPortalTypeError() {\n    throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' +\n        'a ComponentPortal or a TemplatePortal.');\n}\n/**\n * Throws an exception when attempting to attach a portal to a null host.\n * @docs-private\n */\nfunction throwNullPortalOutletError() {\n    throw Error('Attempting to attach a portal to a null PortalOutlet');\n}\n/**\n * Throws an exception when attempting to detach a portal that is not attached.\n * @docs-private\n */\nfunction throwNoPortalAttachedError() {\n    throw Error('Attempting to detach a portal that is not attached to a host');\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.io/license\n */\n/**\n * A `Portal` is something that you want to render somewhere else.\n * It can be attach to / detached from a `PortalOutlet`.\n */\nclass Portal {\n    /** Attach this portal to a host. */\n    attach(host) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            if (host == null) {\n                throwNullPortalOutletError();\n            }\n            if (host.hasAttached()) {\n                throwPortalAlreadyAttachedError();\n            }\n        }\n        this._attachedHost = host;\n        return host.attach(this);\n    }\n    /** Detach this portal from its host */\n    detach() {\n        let host = this._attachedHost;\n        if (host != null) {\n            this._attachedHost = null;\n            host.detach();\n        }\n        else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throwNoPortalAttachedError();\n        }\n    }\n    /** Whether this portal is attached to a host. */\n    get isAttached() {\n        return this._attachedHost != null;\n    }\n    /**\n     * Sets the PortalOutlet reference without performing `attach()`. This is used directly by\n     * the PortalOutlet when it is performing an `attach()` or `detach()`.\n     */\n    setAttachedHost(host) {\n        this._attachedHost = host;\n    }\n}\n/**\n * A `ComponentPortal` is a portal that instantiates some Component upon attachment.\n */\nclass ComponentPortal extends Portal {\n    constructor(component, viewContainerRef, injector, componentFactoryResolver) {\n        super();\n        this.component = component;\n        this.viewContainerRef = viewContainerRef;\n        this.injector = injector;\n        this.componentFactoryResolver = componentFactoryResolver;\n    }\n}\n/**\n * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).\n */\nclass TemplatePortal extends Portal {\n    constructor(\n    /** The embedded template that will be used to instantiate an embedded View in the host. */\n    templateRef, \n    /** Reference to the ViewContainer into which the template will be stamped out. */\n    viewContainerRef, \n    /** Contextual data to be passed in to the embedded view. */\n    context, \n    /** The injector to use for the embedded view. */\n    injector) {\n        super();\n        this.templateRef = templateRef;\n        this.viewContainerRef = viewContainerRef;\n        this.context = context;\n        this.injector = injector;\n    }\n    get origin() {\n        return this.templateRef.elementRef;\n    }\n    /**\n     * Attach the portal to the provided `PortalOutlet`.\n     * When a context is provided it will override the `context` property of the `TemplatePortal`\n     * instance.\n     */\n    attach(host, context = this.context) {\n        this.context = context;\n        return super.attach(host);\n    }\n    detach() {\n        this.context = undefined;\n        return super.detach();\n    }\n}\n/**\n * A `DomPortal` is a portal whose DOM element will be taken from its current position\n * in the DOM and moved into a portal outlet, when it is attached. On detach, the content\n * will be restored to its original position.\n */\nclass DomPortal extends Portal {\n    constructor(element) {\n        super();\n        this.element = element instanceof ElementRef ? element.nativeElement : element;\n    }\n}\n/**\n * Partial implementation of PortalOutlet that handles attaching\n * ComponentPortal and TemplatePortal.\n */\nclass BasePortalOutlet {\n    constructor() {\n        /** Whether this host has already been permanently disposed. */\n        this._isDisposed = false;\n        // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method.\n        this.attachDomPortal = null;\n    }\n    /** Whether this host has an attached portal. */\n    hasAttached() {\n        return !!this._attachedPortal;\n    }\n    /** Attaches a portal. */\n    attach(portal) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            if (!portal) {\n                throwNullPortalError();\n            }\n            if (this.hasAttached()) {\n                throwPortalAlreadyAttachedError();\n            }\n            if (this._isDisposed) {\n                throwPortalOutletAlreadyDisposedError();\n            }\n        }\n        if (portal instanceof ComponentPortal) {\n            this._attachedPortal = portal;\n            return this.attachComponentPortal(portal);\n        }\n        else if (portal instanceof TemplatePortal) {\n            this._attachedPortal = portal;\n            return this.attachTemplatePortal(portal);\n            // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`.\n        }\n        else if (this.attachDomPortal && portal instanceof DomPortal) {\n            this._attachedPortal = portal;\n            return this.attachDomPortal(portal);\n        }\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throwUnknownPortalTypeError();\n        }\n    }\n    /** Detaches a previously attached portal. */\n    detach() {\n        if (this._attachedPortal) {\n            this._attachedPortal.setAttachedHost(null);\n            this._attachedPortal = null;\n        }\n        this._invokeDisposeFn();\n    }\n    /** Permanently dispose of this portal host. */\n    dispose() {\n        if (this.hasAttached()) {\n            this.detach();\n        }\n        this._invokeDisposeFn();\n        this._isDisposed = true;\n    }\n    /** @docs-private */\n    setDisposeFn(fn) {\n        this._disposeFn = fn;\n    }\n    _invokeDisposeFn() {\n        if (this._disposeFn) {\n            this._disposeFn();\n            this._disposeFn = null;\n        }\n    }\n}\n/**\n * @deprecated Use `BasePortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass BasePortalHost extends BasePortalOutlet {\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.io/license\n */\n/**\n * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular\n * application context.\n */\nclass DomPortalOutlet extends BasePortalOutlet {\n    /**\n     * @param outletElement Element into which the content is projected.\n     * @param _componentFactoryResolver Used to resolve the component factory.\n     *   Only required when attaching component portals.\n     * @param _appRef Reference to the application. Only used in component portals when there\n     *   is no `ViewContainerRef` available.\n     * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't\n     *   have one. Only used for component portals.\n     * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually\n     *   become a required parameter.\n     */\n    constructor(\n    /** Element into which the content is projected. */\n    outletElement, _componentFactoryResolver, _appRef, _defaultInjector, \n    /**\n     * @deprecated `_document` Parameter to be made required.\n     * @breaking-change 10.0.0\n     */\n    _document) {\n        super();\n        this.outletElement = outletElement;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._appRef = _appRef;\n        this._defaultInjector = _defaultInjector;\n        /**\n         * Attaches a DOM portal by transferring its content into the outlet.\n         * @param portal Portal to be attached.\n         * @deprecated To be turned into a method.\n         * @breaking-change 10.0.0\n         */\n        this.attachDomPortal = (portal) => {\n            // @breaking-change 10.0.0 Remove check and error once the\n            // `_document` constructor parameter is required.\n            if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw Error('Cannot attach DOM portal without _document constructor parameter');\n            }\n            const element = portal.element;\n            if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw Error('DOM portal content must be attached to a parent node.');\n            }\n            // Anchor used to save the element's previous position so\n            // that we can restore it when the portal is detached.\n            const anchorNode = this._document.createComment('dom-portal');\n            element.parentNode.insertBefore(anchorNode, element);\n            this.outletElement.appendChild(element);\n            this._attachedPortal = portal;\n            super.setDisposeFn(() => {\n                // We can't use `replaceWith` here because IE doesn't support it.\n                if (anchorNode.parentNode) {\n                    anchorNode.parentNode.replaceChild(element, anchorNode);\n                }\n            });\n        };\n        this._document = _document;\n    }\n    /**\n     * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.\n     * @param portal Portal to be attached\n     * @returns Reference to the created component.\n     */\n    attachComponentPortal(portal) {\n        const resolver = (portal.componentFactoryResolver || this._componentFactoryResolver);\n        if ((typeof ngDevMode === 'undefined' || ngDevMode) && !resolver) {\n            throw Error('Cannot attach component portal to outlet without a ComponentFactoryResolver.');\n        }\n        const componentFactory = resolver.resolveComponentFactory(portal.component);\n        let componentRef;\n        // If the portal specifies a ViewContainerRef, we will use that as the attachment point\n        // for the component (in terms of Angular's component tree, not rendering).\n        // When the ViewContainerRef is missing, we use the factory to create the component directly\n        // and then manually attach the view to the application.\n        if (portal.viewContainerRef) {\n            componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.injector);\n            this.setDisposeFn(() => componentRef.destroy());\n        }\n        else {\n            if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._appRef) {\n                throw Error('Cannot attach component portal to outlet without an ApplicationRef.');\n            }\n            componentRef = componentFactory.create(portal.injector || this._defaultInjector || Injector.NULL);\n            this._appRef.attachView(componentRef.hostView);\n            this.setDisposeFn(() => {\n                // Verify that the ApplicationRef has registered views before trying to detach a host view.\n                // This check also protects the `detachView` from being called on a destroyed ApplicationRef.\n                if (this._appRef.viewCount > 0) {\n                    this._appRef.detachView(componentRef.hostView);\n                }\n                componentRef.destroy();\n            });\n        }\n        // At this point the component has been instantiated, so we move it to the location in the DOM\n        // where we want it to be rendered.\n        this.outletElement.appendChild(this._getComponentRootNode(componentRef));\n        this._attachedPortal = portal;\n        return componentRef;\n    }\n    /**\n     * Attaches a template portal to the DOM as an embedded view.\n     * @param portal Portal to be attached.\n     * @returns Reference to the created embedded view.\n     */\n    attachTemplatePortal(portal) {\n        let viewContainer = portal.viewContainerRef;\n        let viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context, {\n            injector: portal.injector,\n        });\n        // The method `createEmbeddedView` will add the view as a child of the viewContainer.\n        // But for the DomPortalOutlet the view can be added everywhere in the DOM\n        // (e.g Overlay Container) To move the view to the specified host element. We just\n        // re-append the existing root nodes.\n        viewRef.rootNodes.forEach(rootNode => this.outletElement.appendChild(rootNode));\n        // Note that we want to detect changes after the nodes have been moved so that\n        // any directives inside the portal that are looking at the DOM inside a lifecycle\n        // hook won't be invoked too early.\n        viewRef.detectChanges();\n        this.setDisposeFn(() => {\n            let index = viewContainer.indexOf(viewRef);\n            if (index !== -1) {\n                viewContainer.remove(index);\n            }\n        });\n        this._attachedPortal = portal;\n        // TODO(jelbourn): Return locals from view.\n        return viewRef;\n    }\n    /**\n     * Clears out a portal from the DOM.\n     */\n    dispose() {\n        super.dispose();\n        this.outletElement.remove();\n    }\n    /** Gets the root HTMLElement for an instantiated component. */\n    _getComponentRootNode(componentRef) {\n        return componentRef.hostView.rootNodes[0];\n    }\n}\n/**\n * @deprecated Use `DomPortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass DomPortalHost extends DomPortalOutlet {\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.io/license\n */\n/**\n * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,\n * the directive instance itself can be attached to a host, enabling declarative use of portals.\n */\nclass CdkPortal extends TemplatePortal {\n    constructor(templateRef, viewContainerRef) {\n        super(templateRef, viewContainerRef);\n    }\n}\nCdkPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkPortal, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkPortal, selector: \"[cdkPortal]\", exportAs: [\"cdkPortal\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkPortal, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkPortal]',\n                    exportAs: 'cdkPortal',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });\n/**\n * @deprecated Use `CdkPortal` instead.\n * @breaking-change 9.0.0\n */\nclass TemplatePortalDirective extends CdkPortal {\n}\nTemplatePortalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: TemplatePortalDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nTemplatePortalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: TemplatePortalDirective, selector: \"[cdk-portal], [portal]\", providers: [\n        {\n            provide: CdkPortal,\n            useExisting: TemplatePortalDirective,\n        },\n    ], exportAs: [\"cdkPortal\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: TemplatePortalDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdk-portal], [portal]',\n                    exportAs: 'cdkPortal',\n                    providers: [\n                        {\n                            provide: CdkPortal,\n                            useExisting: TemplatePortalDirective,\n                        },\n                    ],\n                }]\n        }] });\n/**\n * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be\n * directly attached to it, enabling declarative use.\n *\n * Usage:\n * `<ng-template [cdkPortalOutlet]=\"greeting\"></ng-template>`\n */\nclass CdkPortalOutlet extends BasePortalOutlet {\n    constructor(_componentFactoryResolver, _viewContainerRef, \n    /**\n     * @deprecated `_document` parameter to be made required.\n     * @breaking-change 9.0.0\n     */\n    _document) {\n        super();\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._viewContainerRef = _viewContainerRef;\n        /** Whether the portal component is initialized. */\n        this._isInitialized = false;\n        /** Emits when a portal is attached to the outlet. */\n        this.attached = new EventEmitter();\n        /**\n         * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.\n         * @param portal Portal to be attached.\n         * @deprecated To be turned into a method.\n         * @breaking-change 10.0.0\n         */\n        this.attachDomPortal = (portal) => {\n            // @breaking-change 9.0.0 Remove check and error once the\n            // `_document` constructor parameter is required.\n            if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw Error('Cannot attach DOM portal without _document constructor parameter');\n            }\n            const element = portal.element;\n            if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw Error('DOM portal content must be attached to a parent node.');\n            }\n            // Anchor used to save the element's previous position so\n            // that we can restore it when the portal is detached.\n            const anchorNode = this._document.createComment('dom-portal');\n            portal.setAttachedHost(this);\n            element.parentNode.insertBefore(anchorNode, element);\n            this._getRootNode().appendChild(element);\n            this._attachedPortal = portal;\n            super.setDisposeFn(() => {\n                if (anchorNode.parentNode) {\n                    anchorNode.parentNode.replaceChild(element, anchorNode);\n                }\n            });\n        };\n        this._document = _document;\n    }\n    /** Portal associated with the Portal outlet. */\n    get portal() {\n        return this._attachedPortal;\n    }\n    set portal(portal) {\n        // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have\n        // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`\n        // and attach a portal programmatically in the parent component. When Angular does the first CD\n        // round, it will fire the setter with empty string, causing the user's content to be cleared.\n        if (this.hasAttached() && !portal && !this._isInitialized) {\n            return;\n        }\n        if (this.hasAttached()) {\n            super.detach();\n        }\n        if (portal) {\n            super.attach(portal);\n        }\n        this._attachedPortal = portal || null;\n    }\n    /** Component or view reference that is attached to the portal. */\n    get attachedRef() {\n        return this._attachedRef;\n    }\n    ngOnInit() {\n        this._isInitialized = true;\n    }\n    ngOnDestroy() {\n        super.dispose();\n        this._attachedPortal = null;\n        this._attachedRef = null;\n    }\n    /**\n     * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.\n     *\n     * @param portal Portal to be attached to the portal outlet.\n     * @returns Reference to the created component.\n     */\n    attachComponentPortal(portal) {\n        portal.setAttachedHost(this);\n        // If the portal specifies an origin, use that as the logical location of the component\n        // in the application tree. Otherwise use the location of this PortalOutlet.\n        const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;\n        const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;\n        const componentFactory = resolver.resolveComponentFactory(portal.component);\n        const ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector);\n        // If we're using a view container that's different from the injected one (e.g. when the portal\n        // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered\n        // inside of the alternate view container.\n        if (viewContainerRef !== this._viewContainerRef) {\n            this._getRootNode().appendChild(ref.hostView.rootNodes[0]);\n        }\n        super.setDisposeFn(() => ref.destroy());\n        this._attachedPortal = portal;\n        this._attachedRef = ref;\n        this.attached.emit(ref);\n        return ref;\n    }\n    /**\n     * Attach the given TemplatePortal to this PortalHost as an embedded View.\n     * @param portal Portal to be attached.\n     * @returns Reference to the created embedded view.\n     */\n    attachTemplatePortal(portal) {\n        portal.setAttachedHost(this);\n        const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context, {\n            injector: portal.injector,\n        });\n        super.setDisposeFn(() => this._viewContainerRef.clear());\n        this._attachedPortal = portal;\n        this._attachedRef = viewRef;\n        this.attached.emit(viewRef);\n        return viewRef;\n    }\n    /** Gets the root node of the portal outlet. */\n    _getRootNode() {\n        const nativeElement = this._viewContainerRef.element.nativeElement;\n        // The directive could be set on a template which will result in a comment\n        // node being the root. Use the comment's parent node if that is the case.\n        return (nativeElement.nodeType === nativeElement.ELEMENT_NODE\n            ? nativeElement\n            : nativeElement.parentNode);\n    }\n}\nCdkPortalOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkPortalOutlet, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCdkPortalOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: { portal: [\"cdkPortalOutlet\", \"portal\"] }, outputs: { attached: \"attached\" }, exportAs: [\"cdkPortalOutlet\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkPortalOutlet, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkPortalOutlet]',\n                    exportAs: 'cdkPortalOutlet',\n                    inputs: ['portal: cdkPortalOutlet'],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; }, propDecorators: { attached: [{\n                type: Output\n            }] } });\n/**\n * @deprecated Use `CdkPortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass PortalHostDirective extends CdkPortalOutlet {\n}\nPortalHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalHostDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nPortalHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: PortalHostDirective, selector: \"[cdkPortalHost], [portalHost]\", inputs: { portal: [\"cdkPortalHost\", \"portal\"] }, providers: [\n        {\n            provide: CdkPortalOutlet,\n            useExisting: PortalHostDirective,\n        },\n    ], exportAs: [\"cdkPortalHost\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalHostDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkPortalHost], [portalHost]',\n                    exportAs: 'cdkPortalHost',\n                    inputs: ['portal: cdkPortalHost'],\n                    providers: [\n                        {\n                            provide: CdkPortalOutlet,\n                            useExisting: PortalHostDirective,\n                        },\n                    ],\n                }]\n        }] });\nclass PortalModule {\n}\nPortalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nPortalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalModule, declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective], exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective] });\nPortalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: PortalModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],\n                    declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],\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.io/license\n */\n/**\n * Custom injector to be used when providing custom\n * injection tokens to components inside a portal.\n * @docs-private\n * @deprecated Use `Injector.create` instead.\n * @breaking-change 11.0.0\n */\nclass PortalInjector {\n    constructor(_parentInjector, _customTokens) {\n        this._parentInjector = _parentInjector;\n        this._customTokens = _customTokens;\n    }\n    get(token, notFoundValue) {\n        const value = this._customTokens.get(token);\n        if (typeof value !== 'undefined') {\n            return value;\n        }\n        return this._parentInjector.get(token, notFoundValue);\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, DomPortalHost, DomPortalOutlet, Portal, PortalHostDirective, PortalInjector, PortalModule, TemplatePortal, TemplatePortalDirective };\n","let nextHandle = 1;\nlet resolved;\nconst activeHandles = {};\nfunction findAndClearHandle(handle) {\n    if (handle in activeHandles) {\n        delete activeHandles[handle];\n        return true;\n    }\n    return false;\n}\nexport const Immediate = {\n    setImmediate(cb) {\n        const handle = nextHandle++;\n        activeHandles[handle] = true;\n        if (!resolved) {\n            resolved = Promise.resolve();\n        }\n        resolved.then(() => findAndClearHandle(handle) && cb());\n        return handle;\n    },\n    clearImmediate(handle) {\n        findAndClearHandle(handle);\n    },\n};\nexport const TestTools = {\n    pending() {\n        return Object.keys(activeHandles).length;\n    }\n};\n","import { Immediate } from '../util/Immediate';\nconst { setImmediate, clearImmediate } = Immediate;\nexport const immediateProvider = {\n    setImmediate(...args) {\n        const { delegate } = immediateProvider;\n        return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate)(...args);\n    },\n    clearImmediate(handle) {\n        const { delegate } = immediateProvider;\n        return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);\n    },\n    delegate: undefined,\n};\n","import { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport const asapScheduler = new AsapScheduler(AsapAction);\nexport const asap = asapScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class AsapScheduler extends AsyncScheduler {\n    flush(action) {\n        this._active = true;\n        const flushId = this._scheduled;\n        this._scheduled = undefined;\n        const { actions } = this;\n        let error;\n        action = action || actions.shift();\n        do {\n            if ((error = action.execute(action.state, action.delay))) {\n                break;\n            }\n        } while ((action = actions[0]) && action.id === flushId && actions.shift());\n        this._active = false;\n        if (error) {\n            while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n                action.unsubscribe();\n            }\n            throw error;\n        }\n    }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { immediateProvider } from './immediateProvider';\nexport class AsapAction extends AsyncAction {\n    constructor(scheduler, work) {\n        super(scheduler, work);\n        this.scheduler = scheduler;\n        this.work = work;\n    }\n    requestAsyncId(scheduler, id, delay = 0) {\n        if (delay !== null && delay > 0) {\n            return super.requestAsyncId(scheduler, id, delay);\n        }\n        scheduler.actions.push(this);\n        return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));\n    }\n    recycleAsyncId(scheduler, id, delay = 0) {\n        var _a;\n        if (delay != null ? delay > 0 : this.delay > 0) {\n            return super.recycleAsyncId(scheduler, id, delay);\n        }\n        const { actions } = scheduler;\n        if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n            immediateProvider.clearImmediate(id);\n            if (scheduler._scheduled === id) {\n                scheduler._scheduled = undefined;\n            }\n        }\n        return undefined;\n    }\n}\n","import { coerceNumberProperty, coerceElement, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, Directive, Input, Injectable, Optional, Inject, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, SkipSelf, ElementRef, NgModule } from '@angular/core';\nimport { Subject, of, Observable, fromEvent, animationFrameScheduler, asapScheduler, Subscription, isObservable } from 'rxjs';\nimport { distinctUntilChanged, auditTime, filter, takeUntil, startWith, pairwise, switchMap, shareReplay } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/platform';\nimport { getRtlScrollAxisType, supportsScrollBehavior, Platform } from '@angular/cdk/platform';\nimport { DOCUMENT } from '@angular/common';\nimport * as i2 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport * as i2$1 from '@angular/cdk/collections';\nimport { isDataSource, ArrayDataSource, _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy } from '@angular/cdk/collections';\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.io/license\n */\n/** The injection token used to specify the virtual scrolling strategy. */\nconst VIRTUAL_SCROLL_STRATEGY = new InjectionToken('VIRTUAL_SCROLL_STRATEGY');\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.io/license\n */\n/** Virtual scrolling strategy for lists with items of known fixed size. */\nclass FixedSizeVirtualScrollStrategy {\n    /**\n     * @param itemSize The size of the items in the virtually scrolling list.\n     * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more\n     * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.\n     */\n    constructor(itemSize, minBufferPx, maxBufferPx) {\n        this._scrolledIndexChange = new Subject();\n        /** @docs-private Implemented as part of VirtualScrollStrategy. */\n        this.scrolledIndexChange = this._scrolledIndexChange.pipe(distinctUntilChanged());\n        /** The attached viewport. */\n        this._viewport = null;\n        this._itemSize = itemSize;\n        this._minBufferPx = minBufferPx;\n        this._maxBufferPx = maxBufferPx;\n    }\n    /**\n     * Attaches this scroll strategy to a viewport.\n     * @param viewport The viewport to attach this strategy to.\n     */\n    attach(viewport) {\n        this._viewport = viewport;\n        this._updateTotalContentSize();\n        this._updateRenderedRange();\n    }\n    /** Detaches this scroll strategy from the currently attached viewport. */\n    detach() {\n        this._scrolledIndexChange.complete();\n        this._viewport = null;\n    }\n    /**\n     * Update the item size and buffer size.\n     * @param itemSize The size of the items in the virtually scrolling list.\n     * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more\n     * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.\n     */\n    updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) {\n        if (maxBufferPx < minBufferPx && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');\n        }\n        this._itemSize = itemSize;\n        this._minBufferPx = minBufferPx;\n        this._maxBufferPx = maxBufferPx;\n        this._updateTotalContentSize();\n        this._updateRenderedRange();\n    }\n    /** @docs-private Implemented as part of VirtualScrollStrategy. */\n    onContentScrolled() {\n        this._updateRenderedRange();\n    }\n    /** @docs-private Implemented as part of VirtualScrollStrategy. */\n    onDataLengthChanged() {\n        this._updateTotalContentSize();\n        this._updateRenderedRange();\n    }\n    /** @docs-private Implemented as part of VirtualScrollStrategy. */\n    onContentRendered() {\n        /* no-op */\n    }\n    /** @docs-private Implemented as part of VirtualScrollStrategy. */\n    onRenderedOffsetChanged() {\n        /* no-op */\n    }\n    /**\n     * Scroll to the offset for the given index.\n     * @param index The index of the element to scroll to.\n     * @param behavior The ScrollBehavior to use when scrolling.\n     */\n    scrollToIndex(index, behavior) {\n        if (this._viewport) {\n            this._viewport.scrollToOffset(index * this._itemSize, behavior);\n        }\n    }\n    /** Update the viewport's total content size. */\n    _updateTotalContentSize() {\n        if (!this._viewport) {\n            return;\n        }\n        this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);\n    }\n    /** Update the viewport's rendered range. */\n    _updateRenderedRange() {\n        if (!this._viewport) {\n            return;\n        }\n        const renderedRange = this._viewport.getRenderedRange();\n        const newRange = { start: renderedRange.start, end: renderedRange.end };\n        const viewportSize = this._viewport.getViewportSize();\n        const dataLength = this._viewport.getDataLength();\n        let scrollOffset = this._viewport.measureScrollOffset();\n        // Prevent NaN as result when dividing by zero.\n        let firstVisibleIndex = this._itemSize > 0 ? scrollOffset / this._itemSize : 0;\n        // If user scrolls to the bottom of the list and data changes to a smaller list\n        if (newRange.end > dataLength) {\n            // We have to recalculate the first visible index based on new data length and viewport size.\n            const maxVisibleItems = Math.ceil(viewportSize / this._itemSize);\n            const newVisibleIndex = Math.max(0, Math.min(firstVisibleIndex, dataLength - maxVisibleItems));\n            // If first visible index changed we must update scroll offset to handle start/end buffers\n            // Current range must also be adjusted to cover the new position (bottom of new list).\n            if (firstVisibleIndex != newVisibleIndex) {\n                firstVisibleIndex = newVisibleIndex;\n                scrollOffset = newVisibleIndex * this._itemSize;\n                newRange.start = Math.floor(firstVisibleIndex);\n            }\n            newRange.end = Math.max(0, Math.min(dataLength, newRange.start + maxVisibleItems));\n        }\n        const startBuffer = scrollOffset - newRange.start * this._itemSize;\n        if (startBuffer < this._minBufferPx && newRange.start != 0) {\n            const expandStart = Math.ceil((this._maxBufferPx - startBuffer) / this._itemSize);\n            newRange.start = Math.max(0, newRange.start - expandStart);\n            newRange.end = Math.min(dataLength, Math.ceil(firstVisibleIndex + (viewportSize + this._minBufferPx) / this._itemSize));\n        }\n        else {\n            const endBuffer = newRange.end * this._itemSize - (scrollOffset + viewportSize);\n            if (endBuffer < this._minBufferPx && newRange.end != dataLength) {\n                const expandEnd = Math.ceil((this._maxBufferPx - endBuffer) / this._itemSize);\n                if (expandEnd > 0) {\n                    newRange.end = Math.min(dataLength, newRange.end + expandEnd);\n                    newRange.start = Math.max(0, Math.floor(firstVisibleIndex - this._minBufferPx / this._itemSize));\n                }\n            }\n        }\n        this._viewport.setRenderedRange(newRange);\n        this._viewport.setRenderedContentOffset(this._itemSize * newRange.start);\n        this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));\n    }\n}\n/**\n * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created\n * `FixedSizeVirtualScrollStrategy` from the given directive.\n * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the\n *     `FixedSizeVirtualScrollStrategy` from.\n */\nfunction _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {\n    return fixedSizeDir._scrollStrategy;\n}\n/** A virtual scroll strategy that supports fixed-size items. */\nclass CdkFixedSizeVirtualScroll {\n    constructor() {\n        this._itemSize = 20;\n        this._minBufferPx = 100;\n        this._maxBufferPx = 200;\n        /** The scroll strategy used by this directive. */\n        this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);\n    }\n    /** The size of the items in the list (in pixels). */\n    get itemSize() {\n        return this._itemSize;\n    }\n    set itemSize(value) {\n        this._itemSize = coerceNumberProperty(value);\n    }\n    /**\n     * The minimum amount of buffer rendered beyond the viewport (in pixels).\n     * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.\n     */\n    get minBufferPx() {\n        return this._minBufferPx;\n    }\n    set minBufferPx(value) {\n        this._minBufferPx = coerceNumberProperty(value);\n    }\n    /**\n     * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.\n     */\n    get maxBufferPx() {\n        return this._maxBufferPx;\n    }\n    set maxBufferPx(value) {\n        this._maxBufferPx = coerceNumberProperty(value);\n    }\n    ngOnChanges() {\n        this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);\n    }\n}\nCdkFixedSizeVirtualScroll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkFixedSizeVirtualScroll.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkFixedSizeVirtualScroll, selector: \"cdk-virtual-scroll-viewport[itemSize]\", inputs: { itemSize: \"itemSize\", minBufferPx: \"minBufferPx\", maxBufferPx: \"maxBufferPx\" }, providers: [\n        {\n            provide: VIRTUAL_SCROLL_STRATEGY,\n            useFactory: _fixedSizeVirtualScrollStrategyFactory,\n            deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],\n        },\n    ], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'cdk-virtual-scroll-viewport[itemSize]',\n                    providers: [\n                        {\n                            provide: VIRTUAL_SCROLL_STRATEGY,\n                            useFactory: _fixedSizeVirtualScrollStrategyFactory,\n                            deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],\n                        },\n                    ],\n                }]\n        }], propDecorators: { itemSize: [{\n                type: Input\n            }], minBufferPx: [{\n                type: Input\n            }], maxBufferPx: [{\n                type: Input\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.io/license\n */\n/** Time in ms to throttle the scrolling events by default. */\nconst DEFAULT_SCROLL_TIME = 20;\n/**\n * Service contained all registered Scrollable references and emits an event when any one of the\n * Scrollable references emit a scrolled event.\n */\nclass ScrollDispatcher {\n    constructor(_ngZone, _platform, document) {\n        this._ngZone = _ngZone;\n        this._platform = _platform;\n        /** Subject for notifying that a registered scrollable reference element has been scrolled. */\n        this._scrolled = new Subject();\n        /** Keeps track of the global `scroll` and `resize` subscriptions. */\n        this._globalSubscription = null;\n        /** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */\n        this._scrolledCount = 0;\n        /**\n         * Map of all the scrollable references that are registered with the service and their\n         * scroll event subscriptions.\n         */\n        this.scrollContainers = new Map();\n        this._document = document;\n    }\n    /**\n     * Registers a scrollable instance with the service and listens for its scrolled events. When the\n     * scrollable is scrolled, the service emits the event to its scrolled observable.\n     * @param scrollable Scrollable instance to be registered.\n     */\n    register(scrollable) {\n        if (!this.scrollContainers.has(scrollable)) {\n            this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(() => this._scrolled.next(scrollable)));\n        }\n    }\n    /**\n     * De-registers a Scrollable reference and unsubscribes from its scroll event observable.\n     * @param scrollable Scrollable instance to be deregistered.\n     */\n    deregister(scrollable) {\n        const scrollableReference = this.scrollContainers.get(scrollable);\n        if (scrollableReference) {\n            scrollableReference.unsubscribe();\n            this.scrollContainers.delete(scrollable);\n        }\n    }\n    /**\n     * Returns an observable that emits an event whenever any of the registered Scrollable\n     * references (or window, document, or body) fire a scrolled event. Can provide a time in ms\n     * to override the default \"throttle\" time.\n     *\n     * **Note:** in order to avoid hitting change detection for every scroll event,\n     * all of the events emitted from this stream will be run outside the Angular zone.\n     * If you need to update any data bindings as a result of a scroll event, you have\n     * to run the callback using `NgZone.run`.\n     */\n    scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) {\n        if (!this._platform.isBrowser) {\n            return of();\n        }\n        return new Observable((observer) => {\n            if (!this._globalSubscription) {\n                this._addGlobalListener();\n            }\n            // In the case of a 0ms delay, use an observable without auditTime\n            // since it does add a perceptible delay in processing overhead.\n            const subscription = auditTimeInMs > 0\n                ? this._scrolled.pipe(auditTime(auditTimeInMs)).subscribe(observer)\n                : this._scrolled.subscribe(observer);\n            this._scrolledCount++;\n            return () => {\n                subscription.unsubscribe();\n                this._scrolledCount--;\n                if (!this._scrolledCount) {\n                    this._removeGlobalListener();\n                }\n            };\n        });\n    }\n    ngOnDestroy() {\n        this._removeGlobalListener();\n        this.scrollContainers.forEach((_, container) => this.deregister(container));\n        this._scrolled.complete();\n    }\n    /**\n     * Returns an observable that emits whenever any of the\n     * scrollable ancestors of an element are scrolled.\n     * @param elementOrElementRef Element whose ancestors to listen for.\n     * @param auditTimeInMs Time to throttle the scroll events.\n     */\n    ancestorScrolled(elementOrElementRef, auditTimeInMs) {\n        const ancestors = this.getAncestorScrollContainers(elementOrElementRef);\n        return this.scrolled(auditTimeInMs).pipe(filter(target => {\n            return !target || ancestors.indexOf(target) > -1;\n        }));\n    }\n    /** Returns all registered Scrollables that contain the provided element. */\n    getAncestorScrollContainers(elementOrElementRef) {\n        const scrollingContainers = [];\n        this.scrollContainers.forEach((_subscription, scrollable) => {\n            if (this._scrollableContainsElement(scrollable, elementOrElementRef)) {\n                scrollingContainers.push(scrollable);\n            }\n        });\n        return scrollingContainers;\n    }\n    /** Use defaultView of injected document if available or fallback to global window reference */\n    _getWindow() {\n        return this._document.defaultView || window;\n    }\n    /** Returns true if the element is contained within the provided Scrollable. */\n    _scrollableContainsElement(scrollable, elementOrElementRef) {\n        let element = coerceElement(elementOrElementRef);\n        let scrollableElement = scrollable.getElementRef().nativeElement;\n        // Traverse through the element parents until we reach null, checking if any of the elements\n        // are the scrollable's element.\n        do {\n            if (element == scrollableElement) {\n                return true;\n            }\n        } while ((element = element.parentElement));\n        return false;\n    }\n    /** Sets up the global scroll listeners. */\n    _addGlobalListener() {\n        this._globalSubscription = this._ngZone.runOutsideAngular(() => {\n            const window = this._getWindow();\n            return fromEvent(window.document, 'scroll').subscribe(() => this._scrolled.next());\n        });\n    }\n    /** Cleans up the global scroll listener. */\n    _removeGlobalListener() {\n        if (this._globalSubscription) {\n            this._globalSubscription.unsubscribe();\n            this._globalSubscription = null;\n        }\n    }\n}\nScrollDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollDispatcher, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nScrollDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollDispatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\n/**\n * Sends an event when the directive's element is scrolled. Registers itself with the\n * ScrollDispatcher service to include itself as part of its collection of scrolling events that it\n * can be listened to through the service.\n */\nclass CdkScrollable {\n    constructor(elementRef, scrollDispatcher, ngZone, dir) {\n        this.elementRef = elementRef;\n        this.scrollDispatcher = scrollDispatcher;\n        this.ngZone = ngZone;\n        this.dir = dir;\n        this._destroyed = new Subject();\n        this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(observer)));\n    }\n    ngOnInit() {\n        this.scrollDispatcher.register(this);\n    }\n    ngOnDestroy() {\n        this.scrollDispatcher.deregister(this);\n        this._destroyed.next();\n        this._destroyed.complete();\n    }\n    /** Returns observable that emits when a scroll event is fired on the host element. */\n    elementScrolled() {\n        return this._elementScrolled;\n    }\n    /** Gets the ElementRef for the viewport. */\n    getElementRef() {\n        return this.elementRef;\n    }\n    /**\n     * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo\n     * method, since browsers are not consistent about what scrollLeft means in RTL. For this method\n     * left and right always refer to the left and right side of the scrolling container irrespective\n     * of the layout direction. start and end refer to left and right in an LTR context and vice-versa\n     * in an RTL context.\n     * @param options specified the offsets to scroll to.\n     */\n    scrollTo(options) {\n        const el = this.elementRef.nativeElement;\n        const isRtl = this.dir && this.dir.value == 'rtl';\n        // Rewrite start & end offsets as right or left offsets.\n        if (options.left == null) {\n            options.left = isRtl ? options.end : options.start;\n        }\n        if (options.right == null) {\n            options.right = isRtl ? options.start : options.end;\n        }\n        // Rewrite the bottom offset as a top offset.\n        if (options.bottom != null) {\n            options.top =\n                el.scrollHeight - el.clientHeight - options.bottom;\n        }\n        // Rewrite the right offset as a left offset.\n        if (isRtl && getRtlScrollAxisType() != 0 /* RtlScrollAxisType.NORMAL */) {\n            if (options.left != null) {\n                options.right =\n                    el.scrollWidth - el.clientWidth - options.left;\n            }\n            if (getRtlScrollAxisType() == 2 /* RtlScrollAxisType.INVERTED */) {\n                options.left = options.right;\n            }\n            else if (getRtlScrollAxisType() == 1 /* RtlScrollAxisType.NEGATED */) {\n                options.left = options.right ? -options.right : options.right;\n            }\n        }\n        else {\n            if (options.right != null) {\n                options.left =\n                    el.scrollWidth - el.clientWidth - options.right;\n            }\n        }\n        this._applyScrollToOptions(options);\n    }\n    _applyScrollToOptions(options) {\n        const el = this.elementRef.nativeElement;\n        if (supportsScrollBehavior()) {\n            el.scrollTo(options);\n        }\n        else {\n            if (options.top != null) {\n                el.scrollTop = options.top;\n            }\n            if (options.left != null) {\n                el.scrollLeft = options.left;\n            }\n        }\n    }\n    /**\n     * Measures the scroll offset relative to the specified edge of the viewport. This method can be\n     * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent\n     * about what scrollLeft means in RTL. The values returned by this method are normalized such that\n     * left and right always refer to the left and right side of the scrolling container irrespective\n     * of the layout direction. start and end refer to left and right in an LTR context and vice-versa\n     * in an RTL context.\n     * @param from The edge to measure from.\n     */\n    measureScrollOffset(from) {\n        const LEFT = 'left';\n        const RIGHT = 'right';\n        const el = this.elementRef.nativeElement;\n        if (from == 'top') {\n            return el.scrollTop;\n        }\n        if (from == 'bottom') {\n            return el.scrollHeight - el.clientHeight - el.scrollTop;\n        }\n        // Rewrite start & end as left or right offsets.\n        const isRtl = this.dir && this.dir.value == 'rtl';\n        if (from == 'start') {\n            from = isRtl ? RIGHT : LEFT;\n        }\n        else if (from == 'end') {\n            from = isRtl ? LEFT : RIGHT;\n        }\n        if (isRtl && getRtlScrollAxisType() == 2 /* RtlScrollAxisType.INVERTED */) {\n            // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and\n            // 0 when scrolled all the way right.\n            if (from == LEFT) {\n                return el.scrollWidth - el.clientWidth - el.scrollLeft;\n            }\n            else {\n                return el.scrollLeft;\n            }\n        }\n        else if (isRtl && getRtlScrollAxisType() == 1 /* RtlScrollAxisType.NEGATED */) {\n            // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and\n            // 0 when scrolled all the way right.\n            if (from == LEFT) {\n                return el.scrollLeft + el.scrollWidth - el.clientWidth;\n            }\n            else {\n                return -el.scrollLeft;\n            }\n        }\n        else {\n            // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and\n            // (scrollWidth - clientWidth) when scrolled all the way right.\n            if (from == LEFT) {\n                return el.scrollLeft;\n            }\n            else {\n                return el.scrollWidth - el.clientWidth - el.scrollLeft;\n            }\n        }\n    }\n}\nCdkScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkScrollable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollable, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdk-scrollable], [cdkScrollable]',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{\n                    type: Optional\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.io/license\n */\n/** Time in ms to throttle the resize events by default. */\nconst DEFAULT_RESIZE_TIME = 20;\n/**\n * Simple utility for getting the bounds of the browser viewport.\n * @docs-private\n */\nclass ViewportRuler {\n    constructor(_platform, ngZone, document) {\n        this._platform = _platform;\n        /** Stream of viewport change events. */\n        this._change = new Subject();\n        /** Event listener that will be used to handle the viewport change events. */\n        this._changeListener = (event) => {\n            this._change.next(event);\n        };\n        this._document = document;\n        ngZone.runOutsideAngular(() => {\n            if (_platform.isBrowser) {\n                const window = this._getWindow();\n                // Note that bind the events ourselves, rather than going through something like RxJS's\n                // `fromEvent` so that we can ensure that they're bound outside of the NgZone.\n                window.addEventListener('resize', this._changeListener);\n                window.addEventListener('orientationchange', this._changeListener);\n            }\n            // Clear the cached position so that the viewport is re-measured next time it is required.\n            // We don't need to keep track of the subscription, because it is completed on destroy.\n            this.change().subscribe(() => (this._viewportSize = null));\n        });\n    }\n    ngOnDestroy() {\n        if (this._platform.isBrowser) {\n            const window = this._getWindow();\n            window.removeEventListener('resize', this._changeListener);\n            window.removeEventListener('orientationchange', this._changeListener);\n        }\n        this._change.complete();\n    }\n    /** Returns the viewport's width and height. */\n    getViewportSize() {\n        if (!this._viewportSize) {\n            this._updateViewportSize();\n        }\n        const output = { width: this._viewportSize.width, height: this._viewportSize.height };\n        // If we're not on a browser, don't cache the size since it'll be mocked out anyway.\n        if (!this._platform.isBrowser) {\n            this._viewportSize = null;\n        }\n        return output;\n    }\n    /** Gets a ClientRect for the viewport's bounds. */\n    getViewportRect() {\n        // Use the document element's bounding rect rather than the window scroll properties\n        // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll\n        // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different\n        // conceptual viewports. Under most circumstances these viewports are equivalent, but they\n        // can disagree when the page is pinch-zoomed (on devices that support touch).\n        // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4\n        // We use the documentElement instead of the body because, by default (without a css reset)\n        // browsers typically give the document body an 8px margin, which is not included in\n        // getBoundingClientRect().\n        const scrollPosition = this.getViewportScrollPosition();\n        const { width, height } = this.getViewportSize();\n        return {\n            top: scrollPosition.top,\n            left: scrollPosition.left,\n            bottom: scrollPosition.top + height,\n            right: scrollPosition.left + width,\n            height,\n            width,\n        };\n    }\n    /** Gets the (top, left) scroll position of the viewport. */\n    getViewportScrollPosition() {\n        // While we can get a reference to the fake document\n        // during SSR, it doesn't have getBoundingClientRect.\n        if (!this._platform.isBrowser) {\n            return { top: 0, left: 0 };\n        }\n        // The top-left-corner of the viewport is determined by the scroll position of the document\n        // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about\n        // whether `document.body` or `document.documentElement` is the scrolled element, so reading\n        // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of\n        // `document.documentElement` works consistently, where the `top` and `left` values will\n        // equal negative the scroll position.\n        const document = this._document;\n        const window = this._getWindow();\n        const documentElement = document.documentElement;\n        const documentRect = documentElement.getBoundingClientRect();\n        const top = -documentRect.top ||\n            document.body.scrollTop ||\n            window.scrollY ||\n            documentElement.scrollTop ||\n            0;\n        const left = -documentRect.left ||\n            document.body.scrollLeft ||\n            window.scrollX ||\n            documentElement.scrollLeft ||\n            0;\n        return { top, left };\n    }\n    /**\n     * Returns a stream that emits whenever the size of the viewport changes.\n     * This stream emits outside of the Angular zone.\n     * @param throttleTime Time in milliseconds to throttle the stream.\n     */\n    change(throttleTime = DEFAULT_RESIZE_TIME) {\n        return throttleTime > 0 ? this._change.pipe(auditTime(throttleTime)) : this._change;\n    }\n    /** Use defaultView of injected document if available or fallback to global window reference */\n    _getWindow() {\n        return this._document.defaultView || window;\n    }\n    /** Updates the cached viewport size. */\n    _updateViewportSize() {\n        const window = this._getWindow();\n        this._viewportSize = this._platform.isBrowser\n            ? { width: window.innerWidth, height: window.innerHeight }\n            : { width: 0, height: 0 };\n    }\n}\nViewportRuler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ViewportRuler, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nViewportRuler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ViewportRuler, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ViewportRuler, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\nconst VIRTUAL_SCROLLABLE = new InjectionToken('VIRTUAL_SCROLLABLE');\n/**\n * Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.\n */\nclass CdkVirtualScrollable extends CdkScrollable {\n    constructor(elementRef, scrollDispatcher, ngZone, dir) {\n        super(elementRef, scrollDispatcher, ngZone, dir);\n    }\n    /**\n     * Measure the viewport size for the provided orientation.\n     *\n     * @param orientation The orientation to measure the size from.\n     */\n    measureViewportSize(orientation) {\n        const viewportEl = this.elementRef.nativeElement;\n        return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;\n    }\n}\nCdkVirtualScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkVirtualScrollable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkVirtualScrollable, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollable, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{\n                    type: Optional\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.io/license\n */\n/** Checks if the given ranges are equal. */\nfunction rangesEqual(r1, r2) {\n    return r1.start == r2.start && r1.end == r2.end;\n}\n/**\n * Scheduler to be used for scroll events. Needs to fall back to\n * something that doesn't rely on requestAnimationFrame on environments\n * that don't support it (e.g. server-side rendering).\n */\nconst SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? animationFrameScheduler : asapScheduler;\n/** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */\nclass CdkVirtualScrollViewport extends CdkVirtualScrollable {\n    constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, scrollable) {\n        super(elementRef, scrollDispatcher, ngZone, dir);\n        this.elementRef = elementRef;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._scrollStrategy = _scrollStrategy;\n        this.scrollable = scrollable;\n        this._platform = inject(Platform);\n        /** Emits when the viewport is detached from a CdkVirtualForOf. */\n        this._detachedSubject = new Subject();\n        /** Emits when the rendered range changes. */\n        this._renderedRangeSubject = new Subject();\n        this._orientation = 'vertical';\n        this._appendOnly = false;\n        // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll\n        // strategy lazily (i.e. only if the user is actually listening to the events). We do this because\n        // depending on how the strategy calculates the scrolled index, it may come at a cost to\n        // performance.\n        /** Emits when the index of the first element visible in the viewport changes. */\n        this.scrolledIndexChange = new Observable((observer) => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));\n        /** A stream that emits whenever the rendered range changes. */\n        this.renderedRangeStream = this._renderedRangeSubject;\n        /**\n         * The total size of all content (in pixels), including content that is not currently rendered.\n         */\n        this._totalContentSize = 0;\n        /** A string representing the `style.width` property value to be used for the spacer element. */\n        this._totalContentWidth = '';\n        /** A string representing the `style.height` property value to be used for the spacer element. */\n        this._totalContentHeight = '';\n        /** The currently rendered range of indices. */\n        this._renderedRange = { start: 0, end: 0 };\n        /** The length of the data bound to this viewport (in number of items). */\n        this._dataLength = 0;\n        /** The size of the viewport (in pixels). */\n        this._viewportSize = 0;\n        /** The last rendered content offset that was set. */\n        this._renderedContentOffset = 0;\n        /**\n         * Whether the last rendered content offset was to the end of the content (and therefore needs to\n         * be rewritten as an offset to the start of the content).\n         */\n        this._renderedContentOffsetNeedsRewrite = false;\n        /** Whether there is a pending change detection cycle. */\n        this._isChangeDetectionPending = false;\n        /** A list of functions to run after the next change detection cycle. */\n        this._runAfterChangeDetection = [];\n        /** Subscription to changes in the viewport size. */\n        this._viewportChanges = Subscription.EMPTY;\n        if (!_scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error('Error: cdk-virtual-scroll-viewport requires the \"itemSize\" property to be set.');\n        }\n        this._viewportChanges = viewportRuler.change().subscribe(() => {\n            this.checkViewportSize();\n        });\n        if (!this.scrollable) {\n            // No scrollable is provided, so the virtual-scroll-viewport needs to become a scrollable\n            this.elementRef.nativeElement.classList.add('cdk-virtual-scrollable');\n            this.scrollable = this;\n        }\n    }\n    /** The direction the viewport scrolls. */\n    get orientation() {\n        return this._orientation;\n    }\n    set orientation(orientation) {\n        if (this._orientation !== orientation) {\n            this._orientation = orientation;\n            this._calculateSpacerSize();\n        }\n    }\n    /**\n     * Whether rendered items should persist in the DOM after scrolling out of view. By default, items\n     * will be removed.\n     */\n    get appendOnly() {\n        return this._appendOnly;\n    }\n    set appendOnly(value) {\n        this._appendOnly = coerceBooleanProperty(value);\n    }\n    ngOnInit() {\n        // Scrolling depends on the element dimensions which we can't get during SSR.\n        if (!this._platform.isBrowser) {\n            return;\n        }\n        if (this.scrollable === this) {\n            super.ngOnInit();\n        }\n        // It's still too early to measure the viewport at this point. Deferring with a promise allows\n        // the Viewport to be rendered with the correct size before we measure. We run this outside the\n        // zone to avoid causing more change detection cycles. We handle the change detection loop\n        // ourselves instead.\n        this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {\n            this._measureViewportSize();\n            this._scrollStrategy.attach(this);\n            this.scrollable\n                .elementScrolled()\n                .pipe(\n            // Start off with a fake scroll event so we properly detect our initial position.\n            startWith(null), \n            // Collect multiple events into one until the next animation frame. This way if\n            // there are multiple scroll events in the same frame we only need to recheck\n            // our layout once.\n            auditTime(0, SCROLL_SCHEDULER))\n                .subscribe(() => this._scrollStrategy.onContentScrolled());\n            this._markChangeDetectionNeeded();\n        }));\n    }\n    ngOnDestroy() {\n        this.detach();\n        this._scrollStrategy.detach();\n        // Complete all subjects\n        this._renderedRangeSubject.complete();\n        this._detachedSubject.complete();\n        this._viewportChanges.unsubscribe();\n        super.ngOnDestroy();\n    }\n    /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */\n    attach(forOf) {\n        if (this._forOf && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error('CdkVirtualScrollViewport is already attached.');\n        }\n        // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length\n        // changes. Run outside the zone to avoid triggering change detection, since we're managing the\n        // change detection loop ourselves.\n        this.ngZone.runOutsideAngular(() => {\n            this._forOf = forOf;\n            this._forOf.dataStream.pipe(takeUntil(this._detachedSubject)).subscribe(data => {\n                const newLength = data.length;\n                if (newLength !== this._dataLength) {\n                    this._dataLength = newLength;\n                    this._scrollStrategy.onDataLengthChanged();\n                }\n                this._doChangeDetection();\n            });\n        });\n    }\n    /** Detaches the current `CdkVirtualForOf`. */\n    detach() {\n        this._forOf = null;\n        this._detachedSubject.next();\n    }\n    /** Gets the length of the data bound to this viewport (in number of items). */\n    getDataLength() {\n        return this._dataLength;\n    }\n    /** Gets the size of the viewport (in pixels). */\n    getViewportSize() {\n        return this._viewportSize;\n    }\n    // TODO(mmalerba): This is technically out of sync with what's really rendered until a render\n    // cycle happens. I'm being careful to only call it after the render cycle is complete and before\n    // setting it to something else, but its error prone and should probably be split into\n    // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.\n    /** Get the current rendered range of items. */\n    getRenderedRange() {\n        return this._renderedRange;\n    }\n    measureBoundingClientRectWithScrollOffset(from) {\n        return this.getElementRef().nativeElement.getBoundingClientRect()[from];\n    }\n    /**\n     * Sets the total size of all content (in pixels), including content that is not currently\n     * rendered.\n     */\n    setTotalContentSize(size) {\n        if (this._totalContentSize !== size) {\n            this._totalContentSize = size;\n            this._calculateSpacerSize();\n            this._markChangeDetectionNeeded();\n        }\n    }\n    /** Sets the currently rendered range of indices. */\n    setRenderedRange(range) {\n        if (!rangesEqual(this._renderedRange, range)) {\n            if (this.appendOnly) {\n                range = { start: 0, end: Math.max(this._renderedRange.end, range.end) };\n            }\n            this._renderedRangeSubject.next((this._renderedRange = range));\n            this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());\n        }\n    }\n    /**\n     * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).\n     */\n    getOffsetToRenderedContentStart() {\n        return this._renderedContentOffsetNeedsRewrite ? null : this._renderedContentOffset;\n    }\n    /**\n     * Sets the offset from the start of the viewport to either the start or end of the rendered data\n     * (in pixels).\n     */\n    setRenderedContentOffset(offset, to = 'to-start') {\n        // In appendOnly, we always start from the top\n        offset = this.appendOnly && to === 'to-start' ? 0 : offset;\n        // For a horizontal viewport in a right-to-left language we need to translate along the x-axis\n        // in the negative direction.\n        const isRtl = this.dir && this.dir.value == 'rtl';\n        const isHorizontal = this.orientation == 'horizontal';\n        const axis = isHorizontal ? 'X' : 'Y';\n        const axisDirection = isHorizontal && isRtl ? -1 : 1;\n        let transform = `translate${axis}(${Number(axisDirection * offset)}px)`;\n        this._renderedContentOffset = offset;\n        if (to === 'to-end') {\n            transform += ` translate${axis}(-100%)`;\n            // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise\n            // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would\n            // expand upward).\n            this._renderedContentOffsetNeedsRewrite = true;\n        }\n        if (this._renderedContentTransform != transform) {\n            // We know this value is safe because we parse `offset` with `Number()` before passing it\n            // into the string.\n            this._renderedContentTransform = transform;\n            this._markChangeDetectionNeeded(() => {\n                if (this._renderedContentOffsetNeedsRewrite) {\n                    this._renderedContentOffset -= this.measureRenderedContentSize();\n                    this._renderedContentOffsetNeedsRewrite = false;\n                    this.setRenderedContentOffset(this._renderedContentOffset);\n                }\n                else {\n                    this._scrollStrategy.onRenderedOffsetChanged();\n                }\n            });\n        }\n    }\n    /**\n     * Scrolls to the given offset from the start of the viewport. Please note that this is not always\n     * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left\n     * direction, this would be the equivalent of setting a fictional `scrollRight` property.\n     * @param offset The offset to scroll to.\n     * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.\n     */\n    scrollToOffset(offset, behavior = 'auto') {\n        const options = { behavior };\n        if (this.orientation === 'horizontal') {\n            options.start = offset;\n        }\n        else {\n            options.top = offset;\n        }\n        this.scrollable.scrollTo(options);\n    }\n    /**\n     * Scrolls to the offset for the given index.\n     * @param index The index of the element to scroll to.\n     * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.\n     */\n    scrollToIndex(index, behavior = 'auto') {\n        this._scrollStrategy.scrollToIndex(index, behavior);\n    }\n    /**\n     * Gets the current scroll offset from the start of the scrollable (in pixels).\n     * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'\n     *     in horizontal mode.\n     */\n    measureScrollOffset(from) {\n        // This is to break the call cycle\n        let measureScrollOffset;\n        if (this.scrollable == this) {\n            measureScrollOffset = (_from) => super.measureScrollOffset(_from);\n        }\n        else {\n            measureScrollOffset = (_from) => this.scrollable.measureScrollOffset(_from);\n        }\n        return Math.max(0, measureScrollOffset(from ?? (this.orientation === 'horizontal' ? 'start' : 'top')) -\n            this.measureViewportOffset());\n    }\n    /**\n     * Measures the offset of the viewport from the scrolling container\n     * @param from The edge to measure from.\n     */\n    measureViewportOffset(from) {\n        let fromRect;\n        const LEFT = 'left';\n        const RIGHT = 'right';\n        const isRtl = this.dir?.value == 'rtl';\n        if (from == 'start') {\n            fromRect = isRtl ? RIGHT : LEFT;\n        }\n        else if (from == 'end') {\n            fromRect = isRtl ? LEFT : RIGHT;\n        }\n        else if (from) {\n            fromRect = from;\n        }\n        else {\n            fromRect = this.orientation === 'horizontal' ? 'left' : 'top';\n        }\n        const scrollerClientRect = this.scrollable.measureBoundingClientRectWithScrollOffset(fromRect);\n        const viewportClientRect = this.elementRef.nativeElement.getBoundingClientRect()[fromRect];\n        return viewportClientRect - scrollerClientRect;\n    }\n    /** Measure the combined size of all of the rendered items. */\n    measureRenderedContentSize() {\n        const contentEl = this._contentWrapper.nativeElement;\n        return this.orientation === 'horizontal' ? contentEl.offsetWidth : contentEl.offsetHeight;\n    }\n    /**\n     * Measure the total combined size of the given range. Throws if the range includes items that are\n     * not rendered.\n     */\n    measureRangeSize(range) {\n        if (!this._forOf) {\n            return 0;\n        }\n        return this._forOf.measureRangeSize(range, this.orientation);\n    }\n    /** Update the viewport dimensions and re-render. */\n    checkViewportSize() {\n        // TODO: Cleanup later when add logic for handling content resize\n        this._measureViewportSize();\n        this._scrollStrategy.onDataLengthChanged();\n    }\n    /** Measure the viewport size. */\n    _measureViewportSize() {\n        this._viewportSize = this.scrollable.measureViewportSize(this.orientation);\n    }\n    /** Queue up change detection to run. */\n    _markChangeDetectionNeeded(runAfter) {\n        if (runAfter) {\n            this._runAfterChangeDetection.push(runAfter);\n        }\n        // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of\n        // properties sequentially we only have to run `_doChangeDetection` once at the end.\n        if (!this._isChangeDetectionPending) {\n            this._isChangeDetectionPending = true;\n            this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {\n                this._doChangeDetection();\n            }));\n        }\n    }\n    /** Run change detection. */\n    _doChangeDetection() {\n        this._isChangeDetectionPending = false;\n        // Apply the content transform. The transform can't be set via an Angular binding because\n        // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of\n        // string literals, a variable that can only be 'X' or 'Y', and user input that is run through\n        // the `Number` function first to coerce it to a numeric value.\n        this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;\n        // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection\n        // from the root, since the repeated items are content projected in. Calling `detectChanges`\n        // instead does not properly check the projected content.\n        this.ngZone.run(() => this._changeDetectorRef.markForCheck());\n        const runAfterChangeDetection = this._runAfterChangeDetection;\n        this._runAfterChangeDetection = [];\n        for (const fn of runAfterChangeDetection) {\n            fn();\n        }\n    }\n    /** Calculates the `style.width` and `style.height` for the spacer element. */\n    _calculateSpacerSize() {\n        this._totalContentHeight =\n            this.orientation === 'horizontal' ? '' : `${this._totalContentSize}px`;\n        this._totalContentWidth =\n            this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';\n    }\n}\nCdkVirtualScrollViewport.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollViewport, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i2.Directionality, optional: true }, { token: ScrollDispatcher }, { token: ViewportRuler }, { token: VIRTUAL_SCROLLABLE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkVirtualScrollViewport.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkVirtualScrollViewport, selector: \"cdk-virtual-scroll-viewport\", inputs: { orientation: \"orientation\", appendOnly: \"appendOnly\" }, outputs: { scrolledIndexChange: \"scrolledIndexChange\" }, host: { properties: { \"class.cdk-virtual-scroll-orientation-horizontal\": \"orientation === \\\"horizontal\\\"\", \"class.cdk-virtual-scroll-orientation-vertical\": \"orientation !== \\\"horizontal\\\"\" }, classAttribute: \"cdk-virtual-scroll-viewport\" }, providers: [\n        {\n            provide: CdkScrollable,\n            useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,\n            deps: [[new Optional(), new Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport],\n        },\n    ], viewQueries: [{ propertyName: \"_contentWrapper\", first: true, predicate: [\"contentWrapper\"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: \"<!--\\n  Wrap the rendered content in an element that will be used to offset it based on the scroll\\n  position.\\n-->\\n<div #contentWrapper class=\\\"cdk-virtual-scroll-content-wrapper\\\">\\n  <ng-content></ng-content>\\n</div>\\n<!--\\n  Spacer used to force the scrolling container to the correct size for the *total* number of items\\n  so that the scrollbar captures the size of the entire data set.\\n-->\\n<div class=\\\"cdk-virtual-scroll-spacer\\\"\\n     [style.width]=\\\"_totalContentWidth\\\" [style.height]=\\\"_totalContentHeight\\\"></div>\\n\", styles: [\"cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{\n            type: Component,\n            args: [{ selector: 'cdk-virtual-scroll-viewport', host: {\n                        'class': 'cdk-virtual-scroll-viewport',\n                        '[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === \"horizontal\"',\n                        '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== \"horizontal\"',\n                    }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [\n                        {\n                            provide: CdkScrollable,\n                            useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,\n                            deps: [[new Optional(), new Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport],\n                        },\n                    ], template: \"<!--\\n  Wrap the rendered content in an element that will be used to offset it based on the scroll\\n  position.\\n-->\\n<div #contentWrapper class=\\\"cdk-virtual-scroll-content-wrapper\\\">\\n  <ng-content></ng-content>\\n</div>\\n<!--\\n  Spacer used to force the scrolling container to the correct size for the *total* number of items\\n  so that the scrollbar captures the size of the entire data set.\\n-->\\n<div class=\\\"cdk-virtual-scroll-spacer\\\"\\n     [style.width]=\\\"_totalContentWidth\\\" [style.height]=\\\"_totalContentHeight\\\"></div>\\n\", styles: [\"cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [VIRTUAL_SCROLL_STRATEGY]\n                }] }, { type: i2.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: ScrollDispatcher }, { type: ViewportRuler }, { type: CdkVirtualScrollable, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [VIRTUAL_SCROLLABLE]\n                }] }]; }, propDecorators: { orientation: [{\n                type: Input\n            }], appendOnly: [{\n                type: Input\n            }], scrolledIndexChange: [{\n                type: Output\n            }], _contentWrapper: [{\n                type: ViewChild,\n                args: ['contentWrapper', { static: 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.io/license\n */\n/** Helper to extract the offset of a DOM Node in a certain direction. */\nfunction getOffset(orientation, direction, node) {\n    const el = node;\n    if (!el.getBoundingClientRect) {\n        return 0;\n    }\n    const rect = el.getBoundingClientRect();\n    if (orientation === 'horizontal') {\n        return direction === 'start' ? rect.left : rect.right;\n    }\n    return direction === 'start' ? rect.top : rect.bottom;\n}\n/**\n * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling\n * container.\n */\nclass CdkVirtualForOf {\n    constructor(\n    /** The view container to add items to. */\n    _viewContainerRef, \n    /** The template to use when stamping out new items. */\n    _template, \n    /** The set of available differs. */\n    _differs, \n    /** The strategy used to render items in the virtual scroll viewport. */\n    _viewRepeater, \n    /** The virtual scrolling viewport that these items are being rendered in. */\n    _viewport, ngZone) {\n        this._viewContainerRef = _viewContainerRef;\n        this._template = _template;\n        this._differs = _differs;\n        this._viewRepeater = _viewRepeater;\n        this._viewport = _viewport;\n        /** Emits when the rendered view of the data changes. */\n        this.viewChange = new Subject();\n        /** Subject that emits when a new DataSource instance is given. */\n        this._dataSourceChanges = new Subject();\n        /** Emits whenever the data in the current DataSource changes. */\n        this.dataStream = this._dataSourceChanges.pipe(\n        // Start off with null `DataSource`.\n        startWith(null), \n        // Bundle up the previous and current data sources so we can work with both.\n        pairwise(), \n        // Use `_changeDataSource` to disconnect from the previous data source and connect to the\n        // new one, passing back a stream of data changes which we run through `switchMap` to give\n        // us a data stream that emits the latest data from whatever the current `DataSource` is.\n        switchMap(([prev, cur]) => this._changeDataSource(prev, cur)), \n        // Replay the last emitted data when someone subscribes.\n        shareReplay(1));\n        /** The differ used to calculate changes to the data. */\n        this._differ = null;\n        /** Whether the rendered data should be updated during the next ngDoCheck cycle. */\n        this._needsUpdate = false;\n        this._destroyed = new Subject();\n        this.dataStream.subscribe(data => {\n            this._data = data;\n            this._onRenderedDataChange();\n        });\n        this._viewport.renderedRangeStream.pipe(takeUntil(this._destroyed)).subscribe(range => {\n            this._renderedRange = range;\n            if (this.viewChange.observers.length) {\n                ngZone.run(() => this.viewChange.next(this._renderedRange));\n            }\n            this._onRenderedDataChange();\n        });\n        this._viewport.attach(this);\n    }\n    /** The DataSource to display. */\n    get cdkVirtualForOf() {\n        return this._cdkVirtualForOf;\n    }\n    set cdkVirtualForOf(value) {\n        this._cdkVirtualForOf = value;\n        if (isDataSource(value)) {\n            this._dataSourceChanges.next(value);\n        }\n        else {\n            // If value is an an NgIterable, convert it to an array.\n            this._dataSourceChanges.next(new ArrayDataSource(isObservable(value) ? value : Array.from(value || [])));\n        }\n    }\n    /**\n     * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and\n     * the item and produces a value to be used as the item's identity when tracking changes.\n     */\n    get cdkVirtualForTrackBy() {\n        return this._cdkVirtualForTrackBy;\n    }\n    set cdkVirtualForTrackBy(fn) {\n        this._needsUpdate = true;\n        this._cdkVirtualForTrackBy = fn\n            ? (index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item)\n            : undefined;\n    }\n    /** The template used to stamp out new elements. */\n    set cdkVirtualForTemplate(value) {\n        if (value) {\n            this._needsUpdate = true;\n            this._template = value;\n        }\n    }\n    /**\n     * The size of the cache used to store templates that are not being used for re-use later.\n     * Setting the cache size to `0` will disable caching. Defaults to 20 templates.\n     */\n    get cdkVirtualForTemplateCacheSize() {\n        return this._viewRepeater.viewCacheSize;\n    }\n    set cdkVirtualForTemplateCacheSize(size) {\n        this._viewRepeater.viewCacheSize = coerceNumberProperty(size);\n    }\n    /**\n     * Measures the combined size (width for horizontal orientation, height for vertical) of all items\n     * in the specified range. Throws an error if the range includes items that are not currently\n     * rendered.\n     */\n    measureRangeSize(range, orientation) {\n        if (range.start >= range.end) {\n            return 0;\n        }\n        if ((range.start < this._renderedRange.start || range.end > this._renderedRange.end) &&\n            (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error(`Error: attempted to measure an item that isn't rendered.`);\n        }\n        // The index into the list of rendered views for the first item in the range.\n        const renderedStartIndex = range.start - this._renderedRange.start;\n        // The length of the range we're measuring.\n        const rangeLen = range.end - range.start;\n        // Loop over all the views, find the first and land node and compute the size by subtracting\n        // the top of the first node from the bottom of the last one.\n        let firstNode;\n        let lastNode;\n        // Find the first node by starting from the beginning and going forwards.\n        for (let i = 0; i < rangeLen; i++) {\n            const view = this._viewContainerRef.get(i + renderedStartIndex);\n            if (view && view.rootNodes.length) {\n                firstNode = lastNode = view.rootNodes[0];\n                break;\n            }\n        }\n        // Find the last node by starting from the end and going backwards.\n        for (let i = rangeLen - 1; i > -1; i--) {\n            const view = this._viewContainerRef.get(i + renderedStartIndex);\n            if (view && view.rootNodes.length) {\n                lastNode = view.rootNodes[view.rootNodes.length - 1];\n                break;\n            }\n        }\n        return firstNode && lastNode\n            ? getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode)\n            : 0;\n    }\n    ngDoCheck() {\n        if (this._differ && this._needsUpdate) {\n            // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of\n            // this list being rendered (can use simpler algorithm) vs needs update due to data actually\n            // changing (need to do this diff).\n            const changes = this._differ.diff(this._renderedItems);\n            if (!changes) {\n                this._updateContext();\n            }\n            else {\n                this._applyChanges(changes);\n            }\n            this._needsUpdate = false;\n        }\n    }\n    ngOnDestroy() {\n        this._viewport.detach();\n        this._dataSourceChanges.next(undefined);\n        this._dataSourceChanges.complete();\n        this.viewChange.complete();\n        this._destroyed.next();\n        this._destroyed.complete();\n        this._viewRepeater.detach();\n    }\n    /** React to scroll state changes in the viewport. */\n    _onRenderedDataChange() {\n        if (!this._renderedRange) {\n            return;\n        }\n        this._renderedItems = this._data.slice(this._renderedRange.start, this._renderedRange.end);\n        if (!this._differ) {\n            // Use a wrapper function for the `trackBy` so any new values are\n            // picked up automatically without having to recreate the differ.\n            this._differ = this._differs.find(this._renderedItems).create((index, item) => {\n                return this.cdkVirtualForTrackBy ? this.cdkVirtualForTrackBy(index, item) : item;\n            });\n        }\n        this._needsUpdate = true;\n    }\n    /** Swap out one `DataSource` for another. */\n    _changeDataSource(oldDs, newDs) {\n        if (oldDs) {\n            oldDs.disconnect(this);\n        }\n        this._needsUpdate = true;\n        return newDs ? newDs.connect(this) : of();\n    }\n    /** Update the `CdkVirtualForOfContext` for all views. */\n    _updateContext() {\n        const count = this._data.length;\n        let i = this._viewContainerRef.length;\n        while (i--) {\n            const view = this._viewContainerRef.get(i);\n            view.context.index = this._renderedRange.start + i;\n            view.context.count = count;\n            this._updateComputedContextProperties(view.context);\n            view.detectChanges();\n        }\n    }\n    /** Apply changes to the DOM. */\n    _applyChanges(changes) {\n        this._viewRepeater.applyChanges(changes, this._viewContainerRef, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record, currentIndex), record => record.item);\n        // Update $implicit for any items that had an identity change.\n        changes.forEachIdentityChange((record) => {\n            const view = this._viewContainerRef.get(record.currentIndex);\n            view.context.$implicit = record.item;\n        });\n        // Update the context variables on all items.\n        const count = this._data.length;\n        let i = this._viewContainerRef.length;\n        while (i--) {\n            const view = this._viewContainerRef.get(i);\n            view.context.index = this._renderedRange.start + i;\n            view.context.count = count;\n            this._updateComputedContextProperties(view.context);\n        }\n    }\n    /** Update the computed properties on the `CdkVirtualForOfContext`. */\n    _updateComputedContextProperties(context) {\n        context.first = context.index === 0;\n        context.last = context.index === context.count - 1;\n        context.even = context.index % 2 === 0;\n        context.odd = !context.even;\n    }\n    _getEmbeddedViewArgs(record, index) {\n        // Note that it's important that we insert the item directly at the proper index,\n        // rather than inserting it and the moving it in place, because if there's a directive\n        // on the same node that injects the `ViewContainerRef`, Angular will insert another\n        // comment node which can throw off the move when it's being repeated for all items.\n        return {\n            templateRef: this._template,\n            context: {\n                $implicit: record.item,\n                // It's guaranteed that the iterable is not \"undefined\" or \"null\" because we only\n                // generate views for elements if the \"cdkVirtualForOf\" iterable has elements.\n                cdkVirtualForOf: this._cdkVirtualForOf,\n                index: -1,\n                count: -1,\n                first: false,\n                last: false,\n                odd: false,\n                even: false,\n            },\n            index,\n        };\n    }\n}\nCdkVirtualForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: _VIEW_REPEATER_STRATEGY }, { token: CdkVirtualScrollViewport, skipSelf: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkVirtualForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkVirtualForOf, selector: \"[cdkVirtualFor][cdkVirtualForOf]\", inputs: { cdkVirtualForOf: \"cdkVirtualForOf\", cdkVirtualForTrackBy: \"cdkVirtualForTrackBy\", cdkVirtualForTemplate: \"cdkVirtualForTemplate\", cdkVirtualForTemplateCacheSize: \"cdkVirtualForTemplateCacheSize\" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualForOf, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkVirtualFor][cdkVirtualForOf]',\n                    providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: i2$1._RecycleViewRepeaterStrategy, decorators: [{\n                    type: Inject,\n                    args: [_VIEW_REPEATER_STRATEGY]\n                }] }, { type: CdkVirtualScrollViewport, decorators: [{\n                    type: SkipSelf\n                }] }, { type: i0.NgZone }]; }, propDecorators: { cdkVirtualForOf: [{\n                type: Input\n            }], cdkVirtualForTrackBy: [{\n                type: Input\n            }], cdkVirtualForTemplate: [{\n                type: Input\n            }], cdkVirtualForTemplateCacheSize: [{\n                type: Input\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.io/license\n */\n/**\n * Provides a virtual scrollable for the element it is attached to.\n */\nclass CdkVirtualScrollableElement extends CdkVirtualScrollable {\n    constructor(elementRef, scrollDispatcher, ngZone, dir) {\n        super(elementRef, scrollDispatcher, ngZone, dir);\n    }\n    measureBoundingClientRectWithScrollOffset(from) {\n        return (this.getElementRef().nativeElement.getBoundingClientRect()[from] -\n            this.measureScrollOffset(from));\n    }\n}\nCdkVirtualScrollableElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollableElement, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkVirtualScrollableElement.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkVirtualScrollableElement, selector: \"[cdkVirtualScrollingElement]\", host: { classAttribute: \"cdk-virtual-scrollable\" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkVirtualScrollingElement]',\n                    providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }],\n                    host: {\n                        'class': 'cdk-virtual-scrollable',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{\n                    type: Optional\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.io/license\n */\n/**\n * Provides as virtual scrollable for the global / window scrollbar.\n */\nclass CdkVirtualScrollableWindow extends CdkVirtualScrollable {\n    constructor(scrollDispatcher, ngZone, dir) {\n        super(new ElementRef(document.documentElement), scrollDispatcher, ngZone, dir);\n        this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(document, 'scroll').pipe(takeUntil(this._destroyed)).subscribe(observer)));\n    }\n    measureBoundingClientRectWithScrollOffset(from) {\n        return this.getElementRef().nativeElement.getBoundingClientRect()[from];\n    }\n}\nCdkVirtualScrollableWindow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [{ token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkVirtualScrollableWindow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkVirtualScrollableWindow, selector: \"cdk-virtual-scroll-viewport[scrollWindow]\", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'cdk-virtual-scroll-viewport[scrollWindow]',\n                    providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }],\n                }]\n        }], ctorParameters: function () { return [{ type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{\n                    type: Optional\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.io/license\n */\nclass CdkScrollableModule {\n}\nCdkScrollableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkScrollableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollableModule, declarations: [CdkScrollable], exports: [CdkScrollable] });\nCdkScrollableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollableModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkScrollableModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [CdkScrollable],\n                    declarations: [CdkScrollable],\n                }]\n        }] });\n/**\n * @docs-primary-export\n */\nclass ScrollingModule {\n}\nScrollingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nScrollingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollingModule, declarations: [CdkFixedSizeVirtualScroll,\n        CdkVirtualForOf,\n        CdkVirtualScrollViewport,\n        CdkVirtualScrollableWindow,\n        CdkVirtualScrollableElement], imports: [BidiModule, CdkScrollableModule], exports: [BidiModule, CdkScrollableModule, CdkFixedSizeVirtualScroll,\n        CdkVirtualForOf,\n        CdkVirtualScrollViewport,\n        CdkVirtualScrollableWindow,\n        CdkVirtualScrollableElement] });\nScrollingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, BidiModule, CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ScrollingModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [BidiModule, CdkScrollableModule],\n                    exports: [\n                        BidiModule,\n                        CdkScrollableModule,\n                        CdkFixedSizeVirtualScroll,\n                        CdkVirtualForOf,\n                        CdkVirtualScrollViewport,\n                        CdkVirtualScrollableWindow,\n                        CdkVirtualScrollableElement,\n                    ],\n                    declarations: [\n                        CdkFixedSizeVirtualScroll,\n                        CdkVirtualForOf,\n                        CdkVirtualScrollViewport,\n                        CdkVirtualScrollableWindow,\n                        CdkVirtualScrollableElement,\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.io/license\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_RESIZE_TIME, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, ViewportRuler, _fixedSizeVirtualScrollStrategyFactory };\n","import { SelectionModel, isDataSource } from '@angular/cdk/collections';\nimport { isObservable, Subject, BehaviorSubject, of } from 'rxjs';\nimport { take, filter, takeUntil } from 'rxjs/operators';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i2 from '@angular/cdk/bidi';\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.io/license\n */\n/** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */\nclass BaseTreeControl {\n    constructor() {\n        /** A selection model with multi-selection to track expansion status. */\n        this.expansionModel = new SelectionModel(true);\n    }\n    /** Toggles one single data node's expanded/collapsed state. */\n    toggle(dataNode) {\n        this.expansionModel.toggle(this._trackByValue(dataNode));\n    }\n    /** Expands one single data node. */\n    expand(dataNode) {\n        this.expansionModel.select(this._trackByValue(dataNode));\n    }\n    /** Collapses one single data node. */\n    collapse(dataNode) {\n        this.expansionModel.deselect(this._trackByValue(dataNode));\n    }\n    /** Whether a given data node is expanded or not. Returns true if the data node is expanded. */\n    isExpanded(dataNode) {\n        return this.expansionModel.isSelected(this._trackByValue(dataNode));\n    }\n    /** Toggles a subtree rooted at `node` recursively. */\n    toggleDescendants(dataNode) {\n        this.expansionModel.isSelected(this._trackByValue(dataNode))\n            ? this.collapseDescendants(dataNode)\n            : this.expandDescendants(dataNode);\n    }\n    /** Collapse all dataNodes in the tree. */\n    collapseAll() {\n        this.expansionModel.clear();\n    }\n    /** Expands a subtree rooted at given data node recursively. */\n    expandDescendants(dataNode) {\n        let toBeProcessed = [dataNode];\n        toBeProcessed.push(...this.getDescendants(dataNode));\n        this.expansionModel.select(...toBeProcessed.map(value => this._trackByValue(value)));\n    }\n    /** Collapses a subtree rooted at given data node recursively. */\n    collapseDescendants(dataNode) {\n        let toBeProcessed = [dataNode];\n        toBeProcessed.push(...this.getDescendants(dataNode));\n        this.expansionModel.deselect(...toBeProcessed.map(value => this._trackByValue(value)));\n    }\n    _trackByValue(value) {\n        return this.trackBy ? this.trackBy(value) : value;\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.io/license\n */\n/** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */\nclass FlatTreeControl extends BaseTreeControl {\n    /** Construct with flat tree data node functions getLevel and isExpandable. */\n    constructor(getLevel, isExpandable, options) {\n        super();\n        this.getLevel = getLevel;\n        this.isExpandable = isExpandable;\n        this.options = options;\n        if (this.options) {\n            this.trackBy = this.options.trackBy;\n        }\n    }\n    /**\n     * Gets a list of the data node's subtree of descendent data nodes.\n     *\n     * To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes\n     * with correct levels.\n     */\n    getDescendants(dataNode) {\n        const startIndex = this.dataNodes.indexOf(dataNode);\n        const results = [];\n        // Goes through flattened tree nodes in the `dataNodes` array, and get all descendants.\n        // The level of descendants of a tree node must be greater than the level of the given\n        // tree node.\n        // If we reach a node whose level is equal to the level of the tree node, we hit a sibling.\n        // If we reach a node whose level is greater than the level of the tree node, we hit a\n        // sibling of an ancestor.\n        for (let i = startIndex + 1; i < this.dataNodes.length && this.getLevel(dataNode) < this.getLevel(this.dataNodes[i]); i++) {\n            results.push(this.dataNodes[i]);\n        }\n        return results;\n    }\n    /**\n     * Expands all data nodes in the tree.\n     *\n     * To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened\n     * data nodes of the tree.\n     */\n    expandAll() {\n        this.expansionModel.select(...this.dataNodes.map(node => this._trackByValue(node)));\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.io/license\n */\n/** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */\nclass NestedTreeControl extends BaseTreeControl {\n    /** Construct with nested tree function getChildren. */\n    constructor(getChildren, options) {\n        super();\n        this.getChildren = getChildren;\n        this.options = options;\n        if (this.options) {\n            this.trackBy = this.options.trackBy;\n        }\n    }\n    /**\n     * Expands all dataNodes in the tree.\n     *\n     * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level\n     * data nodes of the tree.\n     */\n    expandAll() {\n        this.expansionModel.clear();\n        const allNodes = this.dataNodes.reduce((accumulator, dataNode) => [...accumulator, ...this.getDescendants(dataNode), dataNode], []);\n        this.expansionModel.select(...allNodes.map(node => this._trackByValue(node)));\n    }\n    /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */\n    getDescendants(dataNode) {\n        const descendants = [];\n        this._getDescendants(descendants, dataNode);\n        // Remove the node itself\n        return descendants.splice(1);\n    }\n    /** A helper function to get descendants recursively. */\n    _getDescendants(descendants, dataNode) {\n        descendants.push(dataNode);\n        const childrenNodes = this.getChildren(dataNode);\n        if (Array.isArray(childrenNodes)) {\n            childrenNodes.forEach((child) => this._getDescendants(descendants, child));\n        }\n        else if (isObservable(childrenNodes)) {\n            // TypeScript as of version 3.5 doesn't seem to treat `Boolean` like a function that\n            // returns a `boolean` specifically in the context of `filter`, so we manually clarify that.\n            childrenNodes.pipe(take(1), filter(Boolean)).subscribe(children => {\n                for (const child of children) {\n                    this._getDescendants(descendants, child);\n                }\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.io/license\n */\n/**\n * Injection token used to provide a `CdkTreeNode` to its outlet.\n * Used primarily to avoid circular imports.\n * @docs-private\n */\nconst CDK_TREE_NODE_OUTLET_NODE = new InjectionToken('CDK_TREE_NODE_OUTLET_NODE');\n/**\n * Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes\n * inside the outlet.\n */\nclass CdkTreeNodeOutlet {\n    constructor(viewContainer, _node) {\n        this.viewContainer = viewContainer;\n        this._node = _node;\n    }\n}\nCdkTreeNodeOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTreeNodeOutlet, selector: \"[cdkTreeNodeOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeOutlet, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkTreeNodeOutlet]',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [CDK_TREE_NODE_OUTLET_NODE]\n                }, {\n                    type: Optional\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.io/license\n */\n/** Context provided to the tree node component. */\nclass CdkTreeNodeOutletContext {\n    constructor(data) {\n        this.$implicit = data;\n    }\n}\n/**\n * Data node definition for the CdkTree.\n * Captures the node's template and a when predicate that describes when this node should be used.\n */\nclass CdkTreeNodeDef {\n    /** @docs-private */\n    constructor(template) {\n        this.template = template;\n    }\n}\nCdkTreeNodeDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTreeNodeDef, selector: \"[cdkTreeNodeDef]\", inputs: { when: [\"cdkTreeNodeDefWhen\", \"when\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeDef, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkTreeNodeDef]',\n                    inputs: ['when: cdkTreeNodeDefWhen'],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\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.io/license\n */\n/**\n * Returns an error to be thrown when there is no usable data.\n * @docs-private\n */\nfunction getTreeNoValidDataSourceError() {\n    return Error(`A valid data source must be provided.`);\n}\n/**\n * Returns an error to be thrown when there are multiple nodes that are missing a when function.\n * @docs-private\n */\nfunction getTreeMultipleDefaultNodeDefsError() {\n    return Error(`There can only be one default row without a when predicate function.`);\n}\n/**\n * Returns an error to be thrown when there are no matching node defs for a particular set of data.\n * @docs-private\n */\nfunction getTreeMissingMatchingNodeDefError() {\n    return Error(`Could not find a matching node definition for the provided node data.`);\n}\n/**\n * Returns an error to be thrown when there are tree control.\n * @docs-private\n */\nfunction getTreeControlMissingError() {\n    return Error(`Could not find a tree control for the tree.`);\n}\n/**\n * Returns an error to be thrown when tree control did not implement functions for flat/nested node.\n * @docs-private\n */\nfunction getTreeControlFunctionsMissingError() {\n    return Error(`Could not find functions for nested/flat tree in tree control.`);\n}\n\n/**\n * CDK tree component that connects with a data source to retrieve data of type `T` and renders\n * dataNodes with hierarchy. Updates the dataNodes when new data is provided by the data source.\n */\nclass CdkTree {\n    constructor(_differs, _changeDetectorRef) {\n        this._differs = _differs;\n        this._changeDetectorRef = _changeDetectorRef;\n        /** Subject that emits when the component has been destroyed. */\n        this._onDestroy = new Subject();\n        /** Level of nodes */\n        this._levels = new Map();\n        // TODO(tinayuangao): Setup a listener for scrolling, emit the calculated view to viewChange.\n        //     Remove the MAX_VALUE in viewChange\n        /**\n         * Stream containing the latest information on what rows are being displayed on screen.\n         * Can be used by the data source to as a heuristic of what data should be provided.\n         */\n        this.viewChange = new BehaviorSubject({\n            start: 0,\n            end: Number.MAX_VALUE,\n        });\n    }\n    /**\n     * Provides a stream containing the latest data array to render. Influenced by the tree's\n     * stream of view window (what dataNodes are currently on screen).\n     * Data source can be an observable of data array, or a data array to render.\n     */\n    get dataSource() {\n        return this._dataSource;\n    }\n    set dataSource(dataSource) {\n        if (this._dataSource !== dataSource) {\n            this._switchDataSource(dataSource);\n        }\n    }\n    ngOnInit() {\n        this._dataDiffer = this._differs.find([]).create(this.trackBy);\n        if (!this.treeControl && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getTreeControlMissingError();\n        }\n    }\n    ngOnDestroy() {\n        this._nodeOutlet.viewContainer.clear();\n        this.viewChange.complete();\n        this._onDestroy.next();\n        this._onDestroy.complete();\n        if (this._dataSource && typeof this._dataSource.disconnect === 'function') {\n            this.dataSource.disconnect(this);\n        }\n        if (this._dataSubscription) {\n            this._dataSubscription.unsubscribe();\n            this._dataSubscription = null;\n        }\n    }\n    ngAfterContentChecked() {\n        const defaultNodeDefs = this._nodeDefs.filter(def => !def.when);\n        if (defaultNodeDefs.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getTreeMultipleDefaultNodeDefsError();\n        }\n        this._defaultNodeDef = defaultNodeDefs[0];\n        if (this.dataSource && this._nodeDefs && !this._dataSubscription) {\n            this._observeRenderChanges();\n        }\n    }\n    // TODO(tinayuangao): Work on keyboard traversal and actions, make sure it's working for RTL\n    //     and nested trees.\n    /**\n     * Switch to the provided data source by resetting the data and unsubscribing from the current\n     * render change subscription if one exists. If the data source is null, interpret this by\n     * clearing the node outlet. Otherwise start listening for new data.\n     */\n    _switchDataSource(dataSource) {\n        if (this._dataSource && typeof this._dataSource.disconnect === 'function') {\n            this.dataSource.disconnect(this);\n        }\n        if (this._dataSubscription) {\n            this._dataSubscription.unsubscribe();\n            this._dataSubscription = null;\n        }\n        // Remove the all dataNodes if there is now no data source\n        if (!dataSource) {\n            this._nodeOutlet.viewContainer.clear();\n        }\n        this._dataSource = dataSource;\n        if (this._nodeDefs) {\n            this._observeRenderChanges();\n        }\n    }\n    /** Set up a subscription for the data provided by the data source. */\n    _observeRenderChanges() {\n        let dataStream;\n        if (isDataSource(this._dataSource)) {\n            dataStream = this._dataSource.connect(this);\n        }\n        else if (isObservable(this._dataSource)) {\n            dataStream = this._dataSource;\n        }\n        else if (Array.isArray(this._dataSource)) {\n            dataStream = of(this._dataSource);\n        }\n        if (dataStream) {\n            this._dataSubscription = dataStream\n                .pipe(takeUntil(this._onDestroy))\n                .subscribe(data => this.renderNodeChanges(data));\n        }\n        else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throw getTreeNoValidDataSourceError();\n        }\n    }\n    /** Check for changes made in the data and render each change (node added/removed/moved). */\n    renderNodeChanges(data, dataDiffer = this._dataDiffer, viewContainer = this._nodeOutlet.viewContainer, parentData) {\n        const changes = dataDiffer.diff(data);\n        if (!changes) {\n            return;\n        }\n        changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n            if (item.previousIndex == null) {\n                this.insertNode(data[currentIndex], currentIndex, viewContainer, parentData);\n            }\n            else if (currentIndex == null) {\n                viewContainer.remove(adjustedPreviousIndex);\n                this._levels.delete(item.item);\n            }\n            else {\n                const view = viewContainer.get(adjustedPreviousIndex);\n                viewContainer.move(view, currentIndex);\n            }\n        });\n        this._changeDetectorRef.detectChanges();\n    }\n    /**\n     * Finds the matching node definition that should be used for this node data. If there is only\n     * one node definition, it is returned. Otherwise, find the node definition that has a when\n     * predicate that returns true with the data. If none return true, return the default node\n     * definition.\n     */\n    _getNodeDef(data, i) {\n        if (this._nodeDefs.length === 1) {\n            return this._nodeDefs.first;\n        }\n        const nodeDef = this._nodeDefs.find(def => def.when && def.when(i, data)) || this._defaultNodeDef;\n        if (!nodeDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getTreeMissingMatchingNodeDefError();\n        }\n        return nodeDef;\n    }\n    /**\n     * Create the embedded view for the data node template and place it in the correct index location\n     * within the data node view container.\n     */\n    insertNode(nodeData, index, viewContainer, parentData) {\n        const node = this._getNodeDef(nodeData, index);\n        // Node context that will be provided to created embedded view\n        const context = new CdkTreeNodeOutletContext(nodeData);\n        // If the tree is flat tree, then use the `getLevel` function in flat tree control\n        // Otherwise, use the level of parent node.\n        if (this.treeControl.getLevel) {\n            context.level = this.treeControl.getLevel(nodeData);\n        }\n        else if (typeof parentData !== 'undefined' && this._levels.has(parentData)) {\n            context.level = this._levels.get(parentData) + 1;\n        }\n        else {\n            context.level = 0;\n        }\n        this._levels.set(nodeData, context.level);\n        // Use default tree nodeOutlet, or nested node's nodeOutlet\n        const container = viewContainer ? viewContainer : this._nodeOutlet.viewContainer;\n        container.createEmbeddedView(node.template, context, index);\n        // Set the data to just created `CdkTreeNode`.\n        // The `CdkTreeNode` created from `createEmbeddedView` will be saved in static variable\n        //     `mostRecentTreeNode`. We get it from static variable and pass the node data to it.\n        if (CdkTreeNode.mostRecentTreeNode) {\n            CdkTreeNode.mostRecentTreeNode.data = nodeData;\n        }\n    }\n}\nCdkTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTree, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nCdkTree.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTree, selector: \"cdk-tree\", inputs: { dataSource: \"dataSource\", treeControl: \"treeControl\", trackBy: \"trackBy\" }, host: { attributes: { \"role\": \"tree\" }, classAttribute: \"cdk-tree\" }, queries: [{ propertyName: \"_nodeDefs\", predicate: CdkTreeNodeDef, descendants: true }], viewQueries: [{ propertyName: \"_nodeOutlet\", first: true, predicate: CdkTreeNodeOutlet, descendants: true, static: true }], exportAs: [\"cdkTree\"], ngImport: i0, template: `<ng-container cdkTreeNodeOutlet></ng-container>`, isInline: true, dependencies: [{ kind: \"directive\", type: CdkTreeNodeOutlet, selector: \"[cdkTreeNodeOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTree, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'cdk-tree',\n                    exportAs: 'cdkTree',\n                    template: `<ng-container cdkTreeNodeOutlet></ng-container>`,\n                    host: {\n                        'class': 'cdk-tree',\n                        'role': 'tree',\n                    },\n                    encapsulation: ViewEncapsulation.None,\n                    // The \"OnPush\" status for the `CdkTree` component is effectively a noop, so we are removing it.\n                    // The view for `CdkTree` consists entirely of templates declared in other views. As they are\n                    // declared elsewhere, they are checked when their declaration points are checked.\n                    // tslint:disable-next-line:validate-decorators\n                    changeDetection: ChangeDetectionStrategy.Default,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dataSource: [{\n                type: Input\n            }], treeControl: [{\n                type: Input\n            }], trackBy: [{\n                type: Input\n            }], _nodeOutlet: [{\n                type: ViewChild,\n                args: [CdkTreeNodeOutlet, { static: true }]\n            }], _nodeDefs: [{\n                type: ContentChildren,\n                args: [CdkTreeNodeDef, {\n                        // We need to use `descendants: true`, because Ivy will no longer match\n                        // indirect descendants if it's left as false.\n                        descendants: true,\n                    }]\n            }] } });\n/**\n * Tree node for CdkTree. It contains the data in the tree node.\n */\nclass CdkTreeNode {\n    constructor(_elementRef, _tree) {\n        this._elementRef = _elementRef;\n        this._tree = _tree;\n        /** Subject that emits when the component has been destroyed. */\n        this._destroyed = new Subject();\n        /** Emits when the node's data has changed. */\n        this._dataChanges = new Subject();\n        CdkTreeNode.mostRecentTreeNode = this;\n        this.role = 'treeitem';\n    }\n    /**\n     * The role of the tree node.\n     * @deprecated The correct role is 'treeitem', 'group' should not be used. This input will be\n     *   removed in a future version.\n     * @breaking-change 12.0.0 Remove this input\n     */\n    get role() {\n        return 'treeitem';\n    }\n    set role(_role) {\n        // TODO: move to host after View Engine deprecation\n        this._elementRef.nativeElement.setAttribute('role', _role);\n    }\n    /** The tree node's data. */\n    get data() {\n        return this._data;\n    }\n    set data(value) {\n        if (value !== this._data) {\n            this._data = value;\n            this._setRoleFromData();\n            this._dataChanges.next();\n        }\n    }\n    get isExpanded() {\n        return this._tree.treeControl.isExpanded(this._data);\n    }\n    get level() {\n        // If the treeControl has a getLevel method, use it to get the level. Otherwise read the\n        // aria-level off the parent node and use it as the level for this node (note aria-level is\n        // 1-indexed, while this property is 0-indexed, so we don't need to increment).\n        return this._tree.treeControl.getLevel\n            ? this._tree.treeControl.getLevel(this._data)\n            : this._parentNodeAriaLevel;\n    }\n    ngOnInit() {\n        this._parentNodeAriaLevel = getParentNodeAriaLevel(this._elementRef.nativeElement);\n        this._elementRef.nativeElement.setAttribute('aria-level', `${this.level + 1}`);\n    }\n    ngOnDestroy() {\n        // If this is the last tree node being destroyed,\n        // clear out the reference to avoid leaking memory.\n        if (CdkTreeNode.mostRecentTreeNode === this) {\n            CdkTreeNode.mostRecentTreeNode = null;\n        }\n        this._dataChanges.complete();\n        this._destroyed.next();\n        this._destroyed.complete();\n    }\n    /** Focuses the menu item. Implements for FocusableOption. */\n    focus() {\n        this._elementRef.nativeElement.focus();\n    }\n    // TODO: role should eventually just be set in the component host\n    _setRoleFromData() {\n        if (!this._tree.treeControl.isExpandable &&\n            !this._tree.treeControl.getChildren &&\n            (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getTreeControlFunctionsMissingError();\n        }\n        this.role = 'treeitem';\n    }\n}\n/**\n * The most recently created `CdkTreeNode`. We save it in static variable so we can retrieve it\n * in `CdkTree` and set the data to it.\n */\nCdkTreeNode.mostRecentTreeNode = null;\nCdkTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNode, deps: [{ token: i0.ElementRef }, { token: CdkTree }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTreeNode, selector: \"cdk-tree-node\", inputs: { role: \"role\" }, host: { properties: { \"attr.aria-expanded\": \"isExpanded\" }, classAttribute: \"cdk-tree-node\" }, exportAs: [\"cdkTreeNode\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNode, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'cdk-tree-node',\n                    exportAs: 'cdkTreeNode',\n                    host: {\n                        'class': 'cdk-tree-node',\n                        '[attr.aria-expanded]': 'isExpanded',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: CdkTree }]; }, propDecorators: { role: [{\n                type: Input\n            }] } });\nfunction getParentNodeAriaLevel(nodeElement) {\n    let parent = nodeElement.parentElement;\n    while (parent && !isNodeElement(parent)) {\n        parent = parent.parentElement;\n    }\n    if (!parent) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throw Error('Incorrect tree structure containing detached node.');\n        }\n        else {\n            return -1;\n        }\n    }\n    else if (parent.classList.contains('cdk-nested-tree-node')) {\n        return coerceNumberProperty(parent.getAttribute('aria-level'));\n    }\n    else {\n        // The ancestor element is the cdk-tree itself\n        return 0;\n    }\n}\nfunction isNodeElement(element) {\n    const classList = element.classList;\n    return !!(classList?.contains('cdk-nested-tree-node') || classList?.contains('cdk-tree'));\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.io/license\n */\n/**\n * Nested node is a child of `<cdk-tree>`. It works with nested tree.\n * By using `cdk-nested-tree-node` component in tree node template, children of the parent node will\n * be added in the `cdkTreeNodeOutlet` in tree node template.\n * The children of node will be automatically added to `cdkTreeNodeOutlet`.\n */\nclass CdkNestedTreeNode extends CdkTreeNode {\n    constructor(elementRef, tree, _differs) {\n        super(elementRef, tree);\n        this._differs = _differs;\n    }\n    ngAfterContentInit() {\n        this._dataDiffer = this._differs.find([]).create(this._tree.trackBy);\n        if (!this._tree.treeControl.getChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getTreeControlFunctionsMissingError();\n        }\n        const childrenNodes = this._tree.treeControl.getChildren(this.data);\n        if (Array.isArray(childrenNodes)) {\n            this.updateChildrenNodes(childrenNodes);\n        }\n        else if (isObservable(childrenNodes)) {\n            childrenNodes\n                .pipe(takeUntil(this._destroyed))\n                .subscribe(result => this.updateChildrenNodes(result));\n        }\n        this.nodeOutlet.changes\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => this.updateChildrenNodes());\n    }\n    // This is a workaround for https://github.com/angular/angular/issues/23091\n    // In aot mode, the lifecycle hooks from parent class are not called.\n    ngOnInit() {\n        super.ngOnInit();\n    }\n    ngOnDestroy() {\n        this._clear();\n        super.ngOnDestroy();\n    }\n    /** Add children dataNodes to the NodeOutlet */\n    updateChildrenNodes(children) {\n        const outlet = this._getNodeOutlet();\n        if (children) {\n            this._children = children;\n        }\n        if (outlet && this._children) {\n            const viewContainer = outlet.viewContainer;\n            this._tree.renderNodeChanges(this._children, this._dataDiffer, viewContainer, this._data);\n        }\n        else {\n            // Reset the data differ if there's no children nodes displayed\n            this._dataDiffer.diff([]);\n        }\n    }\n    /** Clear the children dataNodes. */\n    _clear() {\n        const outlet = this._getNodeOutlet();\n        if (outlet) {\n            outlet.viewContainer.clear();\n            this._dataDiffer.diff([]);\n        }\n    }\n    /** Gets the outlet for the current node. */\n    _getNodeOutlet() {\n        const outlets = this.nodeOutlet;\n        // Note that since we use `descendants: true` on the query, we have to ensure\n        // that we don't pick up the outlet of a child node by accident.\n        return outlets && outlets.find(outlet => !outlet._node || outlet._node === this);\n    }\n}\nCdkNestedTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: CdkTree }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nCdkNestedTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkNestedTreeNode, selector: \"cdk-nested-tree-node\", inputs: { role: \"role\", disabled: \"disabled\", tabIndex: \"tabIndex\" }, host: { classAttribute: \"cdk-nested-tree-node\" }, providers: [\n        { provide: CdkTreeNode, useExisting: CdkNestedTreeNode },\n        { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: CdkNestedTreeNode },\n    ], queries: [{ propertyName: \"nodeOutlet\", predicate: CdkTreeNodeOutlet, descendants: true }], exportAs: [\"cdkNestedTreeNode\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkNestedTreeNode, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'cdk-nested-tree-node',\n                    exportAs: 'cdkNestedTreeNode',\n                    inputs: ['role', 'disabled', 'tabIndex'],\n                    providers: [\n                        { provide: CdkTreeNode, useExisting: CdkNestedTreeNode },\n                        { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: CdkNestedTreeNode },\n                    ],\n                    host: {\n                        'class': 'cdk-nested-tree-node',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: CdkTree }, { type: i0.IterableDiffers }]; }, propDecorators: { nodeOutlet: [{\n                type: ContentChildren,\n                args: [CdkTreeNodeOutlet, {\n                        // We need to use `descendants: true`, because Ivy will no longer match\n                        // indirect descendants if it's left as false.\n                        descendants: true,\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.io/license\n */\n/** Regex used to split a string on its CSS units. */\nconst cssUnitPattern = /([A-Za-z%]+)$/;\n/**\n * Indent for the children tree dataNodes.\n * This directive will add left-padding to the node to show hierarchy.\n */\nclass CdkTreeNodePadding {\n    constructor(_treeNode, _tree, _element, _dir) {\n        this._treeNode = _treeNode;\n        this._tree = _tree;\n        this._element = _element;\n        this._dir = _dir;\n        /** Subject that emits when the component has been destroyed. */\n        this._destroyed = new Subject();\n        /** CSS units used for the indentation value. */\n        this.indentUnits = 'px';\n        this._indent = 40;\n        this._setPadding();\n        if (_dir) {\n            _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => this._setPadding(true));\n        }\n        // In Ivy the indentation binding might be set before the tree node's data has been added,\n        // which means that we'll miss the first render. We have to subscribe to changes in the\n        // data to ensure that everything is up to date.\n        _treeNode._dataChanges.subscribe(() => this._setPadding());\n    }\n    /** The level of depth of the tree node. The padding will be `level * indent` pixels. */\n    get level() {\n        return this._level;\n    }\n    set level(value) {\n        this._setLevelInput(value);\n    }\n    /**\n     * The indent for each level. Can be a number or a CSS string.\n     * Default number 40px from material design menu sub-menu spec.\n     */\n    get indent() {\n        return this._indent;\n    }\n    set indent(indent) {\n        this._setIndentInput(indent);\n    }\n    ngOnDestroy() {\n        this._destroyed.next();\n        this._destroyed.complete();\n    }\n    /** The padding indent value for the tree node. Returns a string with px numbers if not null. */\n    _paddingIndent() {\n        const nodeLevel = this._treeNode.data && this._tree.treeControl.getLevel\n            ? this._tree.treeControl.getLevel(this._treeNode.data)\n            : null;\n        const level = this._level == null ? nodeLevel : this._level;\n        return typeof level === 'number' ? `${level * this._indent}${this.indentUnits}` : null;\n    }\n    _setPadding(forceChange = false) {\n        const padding = this._paddingIndent();\n        if (padding !== this._currentPadding || forceChange) {\n            const element = this._element.nativeElement;\n            const paddingProp = this._dir && this._dir.value === 'rtl' ? 'paddingRight' : 'paddingLeft';\n            const resetProp = paddingProp === 'paddingLeft' ? 'paddingRight' : 'paddingLeft';\n            element.style[paddingProp] = padding || '';\n            element.style[resetProp] = '';\n            this._currentPadding = padding;\n        }\n    }\n    /**\n     * This has been extracted to a util because of TS 4 and VE.\n     * View Engine doesn't support property rename inheritance.\n     * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n     * @docs-private\n     */\n    _setLevelInput(value) {\n        // Set to null as the fallback value so that _setPadding can fall back to the node level if the\n        // consumer set the directive as `cdkTreeNodePadding=\"\"`. We still want to take this value if\n        // they set 0 explicitly.\n        this._level = coerceNumberProperty(value, null);\n        this._setPadding();\n    }\n    /**\n     * This has been extracted to a util because of TS 4 and VE.\n     * View Engine doesn't support property rename inheritance.\n     * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n     * @docs-private\n     */\n    _setIndentInput(indent) {\n        let value = indent;\n        let units = 'px';\n        if (typeof indent === 'string') {\n            const parts = indent.split(cssUnitPattern);\n            value = parts[0];\n            units = parts[1] || units;\n        }\n        this.indentUnits = units;\n        this._indent = coerceNumberProperty(value);\n        this._setPadding();\n    }\n}\nCdkTreeNodePadding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodePadding, deps: [{ token: CdkTreeNode }, { token: CdkTree }, { token: i0.ElementRef }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodePadding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTreeNodePadding, selector: \"[cdkTreeNodePadding]\", inputs: { level: [\"cdkTreeNodePadding\", \"level\"], indent: [\"cdkTreeNodePaddingIndent\", \"indent\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodePadding, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkTreeNodePadding]',\n                }]\n        }], ctorParameters: function () { return [{ type: CdkTreeNode }, { type: CdkTree }, { type: i0.ElementRef }, { type: i2.Directionality, decorators: [{\n                    type: Optional\n                }] }]; }, propDecorators: { level: [{\n                type: Input,\n                args: ['cdkTreeNodePadding']\n            }], indent: [{\n                type: Input,\n                args: ['cdkTreeNodePaddingIndent']\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.io/license\n */\n/**\n * Node toggle to expand/collapse the node.\n */\nclass CdkTreeNodeToggle {\n    constructor(_tree, _treeNode) {\n        this._tree = _tree;\n        this._treeNode = _treeNode;\n        this._recursive = false;\n    }\n    /** Whether expand/collapse the node recursively. */\n    get recursive() {\n        return this._recursive;\n    }\n    set recursive(value) {\n        this._recursive = coerceBooleanProperty(value);\n    }\n    _toggle(event) {\n        this.recursive\n            ? this._tree.treeControl.toggleDescendants(this._treeNode.data)\n            : this._tree.treeControl.toggle(this._treeNode.data);\n        event.stopPropagation();\n    }\n}\nCdkTreeNodeToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeToggle, deps: [{ token: CdkTree }, { token: CdkTreeNode }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: CdkTreeNodeToggle, selector: \"[cdkTreeNodeToggle]\", inputs: { recursive: [\"cdkTreeNodeToggleRecursive\", \"recursive\"] }, host: { listeners: { \"click\": \"_toggle($event)\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeNodeToggle, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[cdkTreeNodeToggle]',\n                    host: {\n                        '(click)': '_toggle($event)',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: CdkTree }, { type: CdkTreeNode }]; }, propDecorators: { recursive: [{\n                type: Input,\n                args: ['cdkTreeNodeToggleRecursive']\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.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n    CdkNestedTreeNode,\n    CdkTreeNodeDef,\n    CdkTreeNodePadding,\n    CdkTreeNodeToggle,\n    CdkTree,\n    CdkTreeNode,\n    CdkTreeNodeOutlet,\n];\nclass CdkTreeModule {\n}\nCdkTreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkTreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeModule, declarations: [CdkNestedTreeNode,\n        CdkTreeNodeDef,\n        CdkTreeNodePadding,\n        CdkTreeNodeToggle,\n        CdkTree,\n        CdkTreeNode,\n        CdkTreeNodeOutlet], exports: [CdkNestedTreeNode,\n        CdkTreeNodeDef,\n        CdkTreeNodePadding,\n        CdkTreeNodeToggle,\n        CdkTree,\n        CdkTreeNode,\n        CdkTreeNodeOutlet] });\nCdkTreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: CdkTreeModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: EXPORTED_DECLARATIONS,\n                    declarations: EXPORTED_DECLARATIONS,\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseTreeControl, CDK_TREE_NODE_OUTLET_NODE, CdkNestedTreeNode, CdkTree, CdkTreeModule, CdkTreeNode, CdkTreeNodeDef, CdkTreeNodeOutlet, CdkTreeNodeOutletContext, CdkTreeNodePadding, CdkTreeNodeToggle, FlatTreeControl, NestedTreeControl, getTreeControlFunctionsMissingError, getTreeControlMissingError, getTreeMissingMatchingNodeDefError, getTreeMultipleDefaultNodeDefsError, getTreeNoValidDataSourceError };\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, ɵɵinject, Inject, inject, Optional, EventEmitter, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵisListLikeIterable, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, Host, Attribute, RendererStyleFlags2, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, ɵformatRuntimeError, Renderer2, ElementRef, Injector, PLATFORM_ID, NgZone } from '@angular/core';\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.io/license\n */\nlet _DOM = null;\nfunction getDOM() {\n    return _DOM;\n}\nfunction setDOM(adapter) {\n    _DOM = adapter;\n}\nfunction setRootDomAdapter(adapter) {\n    if (!_DOM) {\n        _DOM = adapter;\n    }\n}\n/* tslint:disable:requireParameterType */\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 * @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.io/license\n */\n/**\n * A DI Token representing the main rendering context. In a browser this is the DOM Document.\n *\n * Note: Document might not be available in the Application Context when Application and Rendering\n * Contexts are not the same (e.g. when running the application in a Web Worker).\n *\n * @publicApi\n */\nconst DOCUMENT = new InjectionToken('DocumentToken');\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.io/license\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('Not implemented');\n    }\n}\nPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: useBrowserPlatformLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PlatformLocation, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'platform',\n                    // See #23917\n                    useFactory: useBrowserPlatformLocation\n                }]\n        }] });\nfunction useBrowserPlatformLocation() {\n    return ɵɵinject(BrowserPlatformLocation);\n}\n/**\n * @description\n * Indicates when a location is initialized.\n *\n * @publicApi\n */\nconst LOCATION_INITIALIZED = new InjectionToken('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 */\nclass BrowserPlatformLocation extends PlatformLocation {\n    constructor(_doc) {\n        super();\n        this._doc = _doc;\n        this._init();\n    }\n    // This is moved to its own method so that `MockPlatformLocationStrategy` can overwrite it\n    /** @internal */\n    _init() {\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        if (supportsState()) {\n            this._history.pushState(state, title, url);\n        }\n        else {\n            this.location.hash = url;\n        }\n    }\n    replaceState(state, title, url) {\n        if (supportsState()) {\n            this._history.replaceState(state, title, url);\n        }\n        else {\n            this.location.hash = url;\n        }\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}\nBrowserPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserPlatformLocation, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: createBrowserPlatformLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserPlatformLocation, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'platform',\n                    // See #23917\n                    useFactory: createBrowserPlatformLocation,\n                }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\nfunction supportsState() {\n    return !!window.history.pushState;\n}\nfunction createBrowserPlatformLocation() {\n    return new BrowserPlatformLocation(ɵɵinject(DOCUMENT));\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.io/license\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.io/license\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.length == 0) {\n        return end;\n    }\n    if (end.length == 0) {\n        return start;\n    }\n    let slashes = 0;\n    if (start.endsWith('/')) {\n        slashes++;\n    }\n    if (end.startsWith('/')) {\n        slashes++;\n    }\n    if (slashes == 2) {\n        return start + end.substring(1);\n    }\n    if (slashes == 1) {\n        return start + end;\n    }\n    return 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 * @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.io/license\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('Not implemented');\n    }\n}\nLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LocationStrategy, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]\n        }] });\n/**\n * A predefined [DI token](guide/glossary#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 * ```typescript\n * import {Component, 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('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    constructor(_platformLocation, href) {\n        super();\n        this._platformLocation = _platformLocation;\n        this._removeListenerFns = [];\n        this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ??\n            inject(DOCUMENT).location?.origin ?? '';\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}\nPathLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nPathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PathLocationStrategy, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [APP_BASE_HREF]\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.io/license\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    constructor(_platformLocation, _baseHref) {\n        super();\n        this._platformLocation = _platformLocation;\n        this._baseHref = '';\n        this._removeListenerFns = [];\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        let path = this._platformLocation.hash;\n        if (path == null)\n            path = '#';\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}\nHashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nHashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HashLocationStrategy });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HashLocationStrategy, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: PlatformLocation }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [APP_BASE_HREF]\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.io/license\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 * <code-example path='common/location/ts/path_location_component.ts'\n * region='LocationComponent'></code-example>\n *\n * @publicApi\n */\nclass Location {\n    constructor(locationStrategy) {\n        /** @internal */\n        this._subject = new EventEmitter();\n        /** @internal */\n        this._urlChangeListeners = [];\n        /** @internal */\n        this._urlChangeSubscription = null;\n        this._locationStrategy = locationStrategy;\n        const browserBaseHref = this._locationStrategy.getBaseHref();\n        this._baseHref = stripTrailingSlash(_stripIndexHtml(browserBaseHref));\n        this._locationStrategy.onPopState((ev) => {\n            this._subject.emit({\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(_stripBaseHref(this._baseHref, _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        if (!this._urlChangeSubscription) {\n            this._urlChangeSubscription = this.subscribe(v => {\n                this._notifyUrlChangeListeners(v.url, v.state);\n            });\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({ next: onNext, error: onThrow, complete: onReturn });\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 */\nLocation.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 */\nLocation.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 */\nLocation.stripTrailingSlash = stripTrailingSlash;\nLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });\nLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Location, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'root',\n                    // See #23917\n                    useFactory: createLocation,\n                }]\n        }], ctorParameters: function () { return [{ type: LocationStrategy }]; } });\nfunction createLocation() {\n    return new Location(ɵɵinject(LocationStrategy));\n}\nfunction _stripBaseHref(baseHref, url) {\n    return baseHref && url.startsWith(baseHref) ? url.substring(baseHref.length) : url;\n}\nfunction _stripIndexHtml(url) {\n    return url.replace(/\\/index.html$/, '');\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.io/license\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.io/license\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 * @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.io/license\n */\n/**\n * Format styles that can be used to represent numbers.\n * @see `getLocaleNumberFormat()`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 `NgPlural`\n * @see `NgPluralCase`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 */\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 `getLocaleDateFormat()`\n * @see `getLocaleTimeFormat()`\n * @see `getLocaleDateTimeFormat()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n * @publicApi\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/**\n * Symbols that can be used to replace placeholders in number patterns.\n * Examples are based on `en-US` values.\n *\n * @see `getLocaleNumberSymbol()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nvar NumberSymbol;\n(function (NumberSymbol) {\n    /**\n     * Decimal separator.\n     * For `en-US`, the dot character.\n     * Example: 2,345`.`67\n     */\n    NumberSymbol[NumberSymbol[\"Decimal\"] = 0] = \"Decimal\";\n    /**\n     * Grouping separator, typically for thousands.\n     * For `en-US`, the comma character.\n     * Example: 2`,`345.67\n     */\n    NumberSymbol[NumberSymbol[\"Group\"] = 1] = \"Group\";\n    /**\n     * List-item separator.\n     * Example: \"one, two, and three\"\n     */\n    NumberSymbol[NumberSymbol[\"List\"] = 2] = \"List\";\n    /**\n     * Sign for percentage (out of 100).\n     * Example: 23.4%\n     */\n    NumberSymbol[NumberSymbol[\"PercentSign\"] = 3] = \"PercentSign\";\n    /**\n     * Sign for positive numbers.\n     * Example: +23\n     */\n    NumberSymbol[NumberSymbol[\"PlusSign\"] = 4] = \"PlusSign\";\n    /**\n     * Sign for negative numbers.\n     * Example: -23\n     */\n    NumberSymbol[NumberSymbol[\"MinusSign\"] = 5] = \"MinusSign\";\n    /**\n     * Computer notation for exponential value (n times a power of 10).\n     * Example: 1.2E3\n     */\n    NumberSymbol[NumberSymbol[\"Exponential\"] = 6] = \"Exponential\";\n    /**\n     * Human-readable format of exponential.\n     * Example: 1.2x103\n     */\n    NumberSymbol[NumberSymbol[\"SuperscriptingExponent\"] = 7] = \"SuperscriptingExponent\";\n    /**\n     * Sign for permille (out of 1000).\n     * Example: 23.4‰\n     */\n    NumberSymbol[NumberSymbol[\"PerMille\"] = 8] = \"PerMille\";\n    /**\n     * Infinity, can be used with plus and minus.\n     * Example: ∞, +∞, -∞\n     */\n    NumberSymbol[NumberSymbol[\"Infinity\"] = 9] = \"Infinity\";\n    /**\n     * Not a number.\n     * Example: NaN\n     */\n    NumberSymbol[NumberSymbol[\"NaN\"] = 10] = \"NaN\";\n    /**\n     * Symbol used between time units.\n     * Example: 10:52\n     */\n    NumberSymbol[NumberSymbol[\"TimeSeparator\"] = 11] = \"TimeSeparator\";\n    /**\n     * Decimal separator for currency values (fallback to `Decimal`).\n     * Example: $2,345.67\n     */\n    NumberSymbol[NumberSymbol[\"CurrencyDecimal\"] = 12] = \"CurrencyDecimal\";\n    /**\n     * Group separator for currency values (fallback to `Group`).\n     * Example: $2,345.67\n     */\n    NumberSymbol[NumberSymbol[\"CurrencyGroup\"] = 13] = \"CurrencyGroup\";\n})(NumberSymbol || (NumberSymbol = {}));\n/**\n * The value for each day of the week, based on the `en-US` locale\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayPeriods(locale, formStyle, width) {\n    const data = ɵfindLocaleData(locale);\n    const amPmData = [\n        data[ɵLocaleDataIndex.DayPeriodsFormat], 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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayNames(locale, formStyle, width) {\n    const data = ɵfindLocaleData(locale);\n    const daysData = [data[ɵLocaleDataIndex.DaysFormat], data[ɵLocaleDataIndex.DaysStandalone]];\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleMonthNames(locale, formStyle, width) {\n    const data = ɵfindLocaleData(locale);\n    const monthsData = [data[ɵLocaleDataIndex.MonthsFormat], data[ɵLocaleDataIndex.MonthsStandalone]];\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n\n * @publicApi\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 `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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.\n * @returns The character for the localized symbol.\n * @see `NumberSymbol`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 `NumberFormatStyle`\n * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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 */\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](https://angular.io/guide/i18n-overview)\n */\nfunction getLocaleCurrencies(locale) {\n    const data = ɵfindLocaleData(locale);\n    return data[ɵLocaleDataIndex.Currencies];\n}\n/**\n * @alias core/ɵgetLocalePluralCase\n * @publicApi\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\n            .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-common-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 `getLocaleExtraDayPeriods()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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-common-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 `getLocaleExtraDayPeriodRules()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\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\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.io/license\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]*)/;\nvar ZoneWidth;\n(function (ZoneWidth) {\n    ZoneWidth[ZoneWidth[\"Short\"] = 0] = \"Short\";\n    ZoneWidth[ZoneWidth[\"ShortGMT\"] = 1] = \"ShortGMT\";\n    ZoneWidth[ZoneWidth[\"Long\"] = 2] = \"Long\";\n    ZoneWidth[ZoneWidth[\"Extended\"] = 3] = \"Extended\";\n})(ZoneWidth || (ZoneWidth = {}));\nvar DateType;\n(function (DateType) {\n    DateType[DateType[\"FullYear\"] = 0] = \"FullYear\";\n    DateType[DateType[\"Month\"] = 1] = \"Month\";\n    DateType[DateType[\"Date\"] = 2] = \"Date\";\n    DateType[DateType[\"Hours\"] = 3] = \"Hours\";\n    DateType[DateType[\"Minutes\"] = 4] = \"Minutes\";\n    DateType[DateType[\"Seconds\"] = 5] = \"Seconds\";\n    DateType[DateType[\"FractionalSeconds\"] = 6] = \"FractionalSeconds\";\n    DateType[DateType[\"Day\"] = 7] = \"Day\";\n})(DateType || (DateType = {}));\nvar TranslationType;\n(function (TranslationType) {\n    TranslationType[TranslationType[\"DayPeriods\"] = 0] = \"DayPeriods\";\n    TranslationType[TranslationType[\"Days\"] = 1] = \"Days\";\n    TranslationType[TranslationType[\"Months\"] = 2] = \"Months\";\n    TranslationType[TranslationType[\"Eras\"] = 3] = \"Eras\";\n})(TranslationType || (TranslationType = {}));\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 * or a standard UTC/GMT or continental US time zone abbreviation.\n * If not specified, uses host system settings.\n *\n * @returns The formatted date string.\n *\n * @see `DatePipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\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 ? dateFormatter(date, locale, dateTimezoneOffset) :\n            value === '\\'\\'' ? '\\'' :\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] = 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), [shortTime, shortDate]);\n            break;\n        case 'medium':\n            const mediumTime = getNamedFormat(locale, 'mediumTime');\n            const mediumDate = getNamedFormat(locale, 'mediumDate');\n            formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);\n            break;\n        case 'long':\n            const longTime = getNamedFormat(locale, 'longTime');\n            const longDate = getNamedFormat(locale, 'longDate');\n            formatValue =\n                formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);\n            break;\n        case 'full':\n            const fullTime = getNamedFormat(locale, 'fullTime');\n            const fullDate = getNamedFormat(locale, 'fullDate');\n            formatValue =\n                formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);\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 === DateType.Hours) {\n            if (part === 0 && offset === -12) {\n                part = 12;\n            }\n        }\n        else if (name === 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 DateType.FullYear:\n            return date.getFullYear();\n        case DateType.Month:\n            return date.getMonth();\n        case DateType.Date:\n            return date.getDate();\n        case DateType.Hours:\n            return date.getHours();\n        case DateType.Minutes:\n            return date.getMinutes();\n        case DateType.Seconds:\n            return date.getSeconds();\n        case DateType.FractionalSeconds:\n            return date.getMilliseconds();\n        case 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 TranslationType.Months:\n            return getLocaleMonthNames(locale, form, width)[date.getMonth()];\n        case TranslationType.Days:\n            return getLocaleDayNames(locale, form, width)[date.getDay()];\n        case 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 ||\n                            (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 { // 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 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 ZoneWidth.Short:\n                return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n                    padNumber(Math.abs(zone % 60), 2, minusSign);\n            case ZoneWidth.ShortGMT:\n                return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n            case ZoneWidth.Long:\n                return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n                    padNumber(Math.abs(zone % 60), 2, minusSign);\n            case ZoneWidth.Extended:\n                if (offset === 0) {\n                    return 'Z';\n                }\n                else {\n                    return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\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}\nfunction getThursdayThisWeek(datetime) {\n    return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + (THURSDAY - datetime.getDay()));\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 = getThursdayThisWeek(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 = getThursdayThisWeek(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(TranslationType.Eras, TranslationWidth.Abbreviated);\n            break;\n        case 'GGGG':\n            formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);\n            break;\n        case 'GGGGG':\n            formatter = dateStrGetter(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(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(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(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(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(DateType.Month, 1, 1);\n            break;\n        case 'MM':\n        case 'LL':\n            formatter = dateGetter(DateType.Month, 2, 1);\n            break;\n        // Month of the year (January, ...), string, format\n        case 'MMM':\n            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);\n            break;\n        case 'MMMM':\n            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);\n            break;\n        case 'MMMMM':\n            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);\n            break;\n        // Month of the year (January, ...), string, standalone\n        case 'LLL':\n            formatter =\n                dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);\n            break;\n        case 'LLLL':\n            formatter =\n                dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);\n            break;\n        case 'LLLLL':\n            formatter =\n                dateStrGetter(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(DateType.Date, 1);\n            break;\n        case 'dd':\n            formatter = dateGetter(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(DateType.Day, 1);\n            break;\n        case 'ccc':\n            formatter =\n                dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);\n            break;\n        case 'cccc':\n            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);\n            break;\n        case 'ccccc':\n            formatter =\n                dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);\n            break;\n        case 'cccccc':\n            formatter = dateStrGetter(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(TranslationType.Days, TranslationWidth.Abbreviated);\n            break;\n        case 'EEEE':\n            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);\n            break;\n        case 'EEEEE':\n            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);\n            break;\n        case 'EEEEEE':\n            formatter = dateStrGetter(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(TranslationType.DayPeriods, TranslationWidth.Abbreviated);\n            break;\n        case 'aaaa':\n            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);\n            break;\n        case 'aaaaa':\n            formatter = dateStrGetter(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(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);\n            break;\n        case 'bbbb':\n            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);\n            break;\n        case 'bbbbb':\n            formatter = dateStrGetter(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(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);\n            break;\n        case 'BBBB':\n            formatter =\n                dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);\n            break;\n        case 'BBBBB':\n            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);\n            break;\n        // Hour in AM/PM, (1-12)\n        case 'h':\n            formatter = dateGetter(DateType.Hours, 1, -12);\n            break;\n        case 'hh':\n            formatter = dateGetter(DateType.Hours, 2, -12);\n            break;\n        // Hour of the day (0-23)\n        case 'H':\n            formatter = dateGetter(DateType.Hours, 1);\n            break;\n        // Hour in day, padded (00-23)\n        case 'HH':\n            formatter = dateGetter(DateType.Hours, 2);\n            break;\n        // Minute of the hour (0-59)\n        case 'm':\n            formatter = dateGetter(DateType.Minutes, 1);\n            break;\n        case 'mm':\n            formatter = dateGetter(DateType.Minutes, 2);\n            break;\n        // Second of the minute (0-59)\n        case 's':\n            formatter = dateGetter(DateType.Seconds, 1);\n            break;\n        case 'ss':\n            formatter = dateGetter(DateType.Seconds, 2);\n            break;\n        // Fractional second\n        case 'S':\n            formatter = dateGetter(DateType.FractionalSeconds, 1);\n            break;\n        case 'SS':\n            formatter = dateGetter(DateType.FractionalSeconds, 2);\n            break;\n        case 'SSS':\n            formatter = dateGetter(DateType.FractionalSeconds, 3);\n            break;\n        // Timezone ISO8601 short format (-0430)\n        case 'Z':\n        case 'ZZ':\n        case 'ZZZ':\n            formatter = timeZoneGetter(ZoneWidth.Short);\n            break;\n        // Timezone ISO8601 extended format (-04:30)\n        case 'ZZZZZ':\n            formatter = timeZoneGetter(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(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(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\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.io/license\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 `formatNumber()`\n * @see `DecimalPipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\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 `formatNumber()`\n * @see `DecimalPipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\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](https://angular.io/guide/i18n-overview)\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++) { /* 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 * @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.io/license\n */\n/**\n * @publicApi\n */\nclass NgLocalization {\n}\nNgLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNgLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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    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}\nNgLocaleLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nNgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgLocaleLocalization });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgLocaleLocalization, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [LOCALE_ID]\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.io/license\n */\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-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\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.io/license\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\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.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n *     <some-element [ngClass]=\"'first second'\">...</some-element>\n *\n *     <some-element [ngClass]=\"['first', 'second']\">...</some-element>\n *\n *     <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\n *\n *     <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>\n *\n *     <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\n * ```\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 * @publicApi\n */\nclass NgClass {\n    constructor(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {\n        this._iterableDiffers = _iterableDiffers;\n        this._keyValueDiffers = _keyValueDiffers;\n        this._ngEl = _ngEl;\n        this._renderer = _renderer;\n        this._iterableDiffer = null;\n        this._keyValueDiffer = null;\n        this._initialClasses = [];\n        this._rawClass = null;\n    }\n    set klass(value) {\n        this._removeClasses(this._initialClasses);\n        this._initialClasses = typeof value === 'string' ? value.split(/\\s+/) : [];\n        this._applyClasses(this._initialClasses);\n        this._applyClasses(this._rawClass);\n    }\n    set ngClass(value) {\n        this._removeClasses(this._rawClass);\n        this._applyClasses(this._initialClasses);\n        this._iterableDiffer = null;\n        this._keyValueDiffer = null;\n        this._rawClass = typeof value === 'string' ? value.split(/\\s+/) : value;\n        if (this._rawClass) {\n            if (ɵisListLikeIterable(this._rawClass)) {\n                this._iterableDiffer = this._iterableDiffers.find(this._rawClass).create();\n            }\n            else {\n                this._keyValueDiffer = this._keyValueDiffers.find(this._rawClass).create();\n            }\n        }\n    }\n    ngDoCheck() {\n        if (this._iterableDiffer) {\n            const iterableChanges = this._iterableDiffer.diff(this._rawClass);\n            if (iterableChanges) {\n                this._applyIterableChanges(iterableChanges);\n            }\n        }\n        else if (this._keyValueDiffer) {\n            const keyValueChanges = this._keyValueDiffer.diff(this._rawClass);\n            if (keyValueChanges) {\n                this._applyKeyValueChanges(keyValueChanges);\n            }\n        }\n    }\n    _applyKeyValueChanges(changes) {\n        changes.forEachAddedItem((record) => this._toggleClass(record.key, record.currentValue));\n        changes.forEachChangedItem((record) => this._toggleClass(record.key, record.currentValue));\n        changes.forEachRemovedItem((record) => {\n            if (record.previousValue) {\n                this._toggleClass(record.key, false);\n            }\n        });\n    }\n    _applyIterableChanges(changes) {\n        changes.forEachAddedItem((record) => {\n            if (typeof record.item === 'string') {\n                this._toggleClass(record.item, true);\n            }\n            else {\n                throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ɵstringify(record.item)}`);\n            }\n        });\n        changes.forEachRemovedItem((record) => this._toggleClass(record.item, false));\n    }\n    /**\n     * Applies a collection of CSS classes to the DOM element.\n     *\n     * For argument of type Set and Array CSS class names contained in those collections are always\n     * added.\n     * For argument of type Map CSS class name in the map's key is toggled based on the value (added\n     * for truthy and removed for falsy).\n     */\n    _applyClasses(rawClassVal) {\n        if (rawClassVal) {\n            if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {\n                rawClassVal.forEach((klass) => this._toggleClass(klass, true));\n            }\n            else {\n                Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, !!rawClassVal[klass]));\n            }\n        }\n    }\n    /**\n     * Removes a collection of CSS classes from the DOM element. This is mostly useful for cleanup\n     * purposes.\n     */\n    _removeClasses(rawClassVal) {\n        if (rawClassVal) {\n            if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {\n                rawClassVal.forEach((klass) => this._toggleClass(klass, false));\n            }\n            else {\n                Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, false));\n            }\n        }\n    }\n    _toggleClass(klass, enabled) {\n        klass = klass.trim();\n        if (klass) {\n            klass.split(/\\s+/g).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}\nNgClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgClass, deps: [{ token: i0.IterableDiffers }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\nNgClass.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgClass, isStandalone: true, selector: \"[ngClass]\", inputs: { klass: [\"class\", \"klass\"], ngClass: \"ngClass\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgClass, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngClass]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.KeyValueDiffers }, { 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 * @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.io/license\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 * * `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 * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\n * ```\n *\n * Customized injector/content\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n *                                   injector: injectorExpression;\n *                                   content: contentNodesExpression;\">\n * </ng-container>\n * ```\n *\n * Customized NgModule reference\n * ```\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    constructor(_viewContainerRef) {\n        this._viewContainerRef = _viewContainerRef;\n        this.ngComponentOutlet = null;\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n        const { _viewContainerRef: viewContainerRef, ngComponentOutletNgModule: ngModule, ngComponentOutletNgModuleFactory: ngModuleFactory, } = this;\n        viewContainerRef.clear();\n        this._componentRef = undefined;\n        if (this.ngComponentOutlet) {\n            const injector = this.ngComponentOutletInjector || viewContainerRef.parentInjector;\n            if (changes['ngComponentOutletNgModule'] || changes['ngComponentOutletNgModuleFactory']) {\n                if (this._moduleRef)\n                    this._moduleRef.destroy();\n                if (ngModule) {\n                    this._moduleRef = createNgModule(ngModule, getParentInjector(injector));\n                }\n                else if (ngModuleFactory) {\n                    this._moduleRef = ngModuleFactory.create(getParentInjector(injector));\n                }\n                else {\n                    this._moduleRef = undefined;\n                }\n            }\n            this._componentRef = viewContainerRef.createComponent(this.ngComponentOutlet, {\n                index: viewContainerRef.length,\n                injector,\n                ngModuleRef: this._moduleRef,\n                projectableNodes: this.ngComponentOutletContent,\n            });\n        }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        if (this._moduleRef)\n            this._moduleRef.destroy();\n    }\n}\nNgComponentOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgComponentOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgComponentOutlet, isStandalone: true, selector: \"[ngComponentOutlet]\", inputs: { ngComponentOutlet: \"ngComponentOutlet\", ngComponentOutletInjector: \"ngComponentOutletInjector\", ngComponentOutletContent: \"ngComponentOutletContent\", ngComponentOutletNgModule: \"ngComponentOutletNgModule\", ngComponentOutletNgModuleFactory: \"ngComponentOutletNgModuleFactory\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgComponentOutlet, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngComponentOutlet]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngComponentOutlet: [{\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 * @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.io/license\n */\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;\n/**\n * @publicApi\n */\nclass NgForOfContext {\n    constructor($implicit, ngForOf, index, count) {\n        this.$implicit = $implicit;\n        this.ngForOf = ngForOf;\n        this.index = index;\n        this.count = count;\n    }\n    get first() {\n        return this.index === 0;\n    }\n    get last() {\n        return this.index === this.count - 1;\n    }\n    get even() {\n        return this.index % 2 === 0;\n    }\n    get odd() {\n        return !this.even;\n    }\n}\n/**\n * A [structural directive](guide/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/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 * ```\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 * ```\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/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/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 *  ```\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/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/structural-directives)\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgForOf {\n    constructor(_viewContainer, _template, _differs) {\n        this._viewContainer = _viewContainer;\n        this._template = _template;\n        this._differs = _differs;\n        this._ngForOf = null;\n        this._ngForOfDirty = true;\n        this._differ = null;\n    }\n    /**\n     * The value of the iterable expression, which can be used as a\n     * [template input variable](guide/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 `TrackByFunction`\n     */\n    set ngForTrackBy(fn) {\n        if (NG_DEV_MODE && fn != null && typeof fn !== 'function') {\n            // TODO(vicb): use a log service once there is a public one available\n            if (console && console.warn) {\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        }\n        this._trackByFn = fn;\n    }\n    get ngForTrackBy() {\n        return this._trackByFn;\n    }\n    /**\n     * A reference to the template that is stamped out for each item in the iterable.\n     * @see [template reference variable](guide/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 (NG_DEV_MODE) {\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}\nNgForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nNgForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgForOf, isStandalone: true, selector: \"[ngFor][ngForOf]\", inputs: { ngForOf: \"ngForOf\", ngForTrackBy: \"ngForTrackBy\", ngForTemplate: \"ngForTemplate\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgForOf, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngFor][ngForOf]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\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/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 * ```\n * <div *ngIf=\"condition\">Content to render when condition is true.</div>\n * ```\n *\n * Simple form with expanded syntax:\n *\n * ```\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 * ```\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 * ```\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 * ```\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 * ```\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 * ```\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/structural-directives#one-per-element).\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgIf {\n    constructor(_viewContainer, templateRef) {\n        this._viewContainer = _viewContainer;\n        this._context = new NgIfContext();\n        this._thenTemplateRef = null;\n        this._elseTemplateRef = null;\n        this._thenViewRef = null;\n        this._elseViewRef = null;\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 =\n                        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 =\n                        this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\n                }\n            }\n        }\n    }\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}\nNgIf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgIf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgIf, isStandalone: true, selector: \"[ngIf]\", inputs: { ngIf: \"ngIf\", ngIfThen: \"ngIfThen\", ngIfElse: \"ngIfElse\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgIf, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngIf]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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    constructor() {\n        this.$implicit = null;\n        this.ngIf = null;\n    }\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\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.io/license\n */\nclass SwitchView {\n    constructor(_viewContainerRef, _templateRef) {\n        this._viewContainerRef = _viewContainerRef;\n        this._templateRef = _templateRef;\n        this._created = false;\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 * ```\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 * ```\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 * ```\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 * ```\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 `NgSwitchCase`\n * @see `NgSwitchDefault`\n * @see [Structural Directives](guide/structural-directives)\n *\n */\nclass NgSwitch {\n    constructor() {\n        this._defaultUsed = false;\n        this._caseCount = 0;\n        this._lastCaseCheckIndex = 0;\n        this._lastCasesMatched = false;\n    }\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        if (!this._defaultViews) {\n            this._defaultViews = [];\n        }\n        this._defaultViews.push(view);\n    }\n    /** @internal */\n    _matchCase(value) {\n        const matched = value == this._ngSwitch;\n        this._lastCasesMatched = 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 && useDefault !== this._defaultUsed) {\n            this._defaultUsed = useDefault;\n            for (let i = 0; i < this._defaultViews.length; i++) {\n                const defaultView = this._defaultViews[i];\n                defaultView.enforceState(useDefault);\n            }\n        }\n    }\n}\nNgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgSwitch, isStandalone: true, selector: \"[ngSwitch]\", inputs: { ngSwitch: \"ngSwitch\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitch, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngSwitch]',\n                    standalone: true,\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 * ```\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 * Unlike JavaScript, which uses strict equality, Angular uses loose equality.\n * This means that the empty string, `\"\"` matches 0.\n *\n * @publicApi\n * @see `NgSwitch`\n * @see `NgSwitchDefault`\n *\n */\nclass 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}\nNgSwitchCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgSwitchCase, isStandalone: true, selector: \"[ngSwitchCase]\", inputs: { ngSwitchCase: \"ngSwitchCase\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitchCase, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngSwitchCase]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 `NgSwitch`\n * @see `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}\nNgSwitchDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgSwitchDefault, isStandalone: true, selector: \"[ngSwitchDefault]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSwitchDefault, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngSwitchDefault]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\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    constructor(_localization) {\n        this._localization = _localization;\n        this._caseViews = {};\n    }\n    set ngPlural(value) {\n        this._switchValue = value;\n        this._updateView();\n    }\n    addCase(value, switchView) {\n        this._caseViews[value] = switchView;\n    }\n    _updateView() {\n        this._clearViews();\n        const cases = Object.keys(this._caseViews);\n        const key = getPluralCategory(this._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}\nNgPlural.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });\nNgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgPlural, isStandalone: true, selector: \"[ngPlural]\", inputs: { ngPlural: \"ngPlural\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgPlural, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngPlural]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * ```\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    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}\nNgPluralCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgPluralCase, isStandalone: true, selector: \"[ngPluralCase]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgPluralCase, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngPluralCase]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n *\n * Set the font of the containing element to the result of an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>\n * ```\n *\n * Set the width of the containing element to a pixel value returned by an expression.\n *\n * ```\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 * ```\n * <some-element [ngStyle]=\"objExp\">...</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 * @publicApi\n */\nclass NgStyle {\n    constructor(_ngEl, _differs, _renderer) {\n        this._ngEl = _ngEl;\n        this._differs = _differs;\n        this._renderer = _renderer;\n        this._ngStyle = null;\n        this._differ = null;\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}\nNgStyle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\nNgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgStyle, isStandalone: true, selector: \"[ngStyle]\", inputs: { ngStyle: \"ngStyle\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgStyle, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngStyle]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }]; }, propDecorators: { ngStyle: [{\n                type: Input,\n                args: ['ngStyle']\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.io/license\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 * ```\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    constructor(_viewContainerRef) {\n        this._viewContainerRef = _viewContainerRef;\n        this._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        this.ngTemplateOutletContext = null;\n        /**\n         * A string defining the template reference and optionally the context object for the template.\n         */\n        this.ngTemplateOutlet = null;\n        /** Injector to be used within the embedded view. */\n        this.ngTemplateOutletInjector = null;\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n        if (changes['ngTemplateOutlet'] || changes['ngTemplateOutletInjector']) {\n            const viewContainerRef = this._viewContainerRef;\n            if (this._viewRef) {\n                viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));\n            }\n            if (this.ngTemplateOutlet) {\n                const { ngTemplateOutlet: template, ngTemplateOutletContext: context, ngTemplateOutletInjector: injector } = this;\n                this._viewRef = viewContainerRef.createEmbeddedView(template, context, injector ? { injector } : undefined);\n            }\n            else {\n                this._viewRef = null;\n            }\n        }\n        else if (this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {\n            this._viewRef.context = this.ngTemplateOutletContext;\n        }\n    }\n}\nNgTemplateOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgTemplateOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgTemplateOutlet, isStandalone: true, selector: \"[ngTemplateOutlet]\", inputs: { ngTemplateOutletContext: \"ngTemplateOutletContext\", ngTemplateOutlet: \"ngTemplateOutlet\", ngTemplateOutletInjector: \"ngTemplateOutletInjector\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgTemplateOutlet, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[ngTemplateOutlet]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngTemplateOutletContext: [{\n                type: Input\n            }], ngTemplateOutlet: [{\n                type: Input\n            }], ngTemplateOutletInjector: [{\n                type: Input\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.io/license\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\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.io/license\n */\nfunction invalidPipeArgumentError(type, value) {\n    return new ɵRuntimeError(2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${ɵstringify(type)}'`);\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.io/license\n */\nclass SubscribableStrategy {\n    createSubscription(async, updateLatestValue) {\n        return async.subscribe({\n            next: updateLatestValue,\n            error: (e) => {\n                throw e;\n            }\n        });\n    }\n    dispose(subscription) {\n        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    constructor(ref) {\n        this._latestValue = null;\n        this._subscription = null;\n        this._obj = null;\n        this._strategy = null;\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                this._subscribe(obj);\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            // Note: `this._ref` is only cleared in `ngOnDestroy` so is known to be available when a\n            // value is being updated.\n            this._ref.markForCheck();\n        }\n    }\n}\nAsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });\nAsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: AsyncPipe, isStandalone: true, name: \"async\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AsyncPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'async',\n                    pure: false,\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });\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.io/license\n */\n/**\n * Transforms text to all lower case.\n *\n * @see `UpperCasePipe`\n * @see `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 * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>\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}\nLowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nLowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: \"lowercase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LowerCasePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'lowercase',\n                    standalone: true,\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\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3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D30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E]|\\uD838[\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF38\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;\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 `LowerCasePipe`\n * @see `UpperCasePipe`\n *\n * @usageNotes\n * The following example shows the result of transforming various strings into title case.\n *\n * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>\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}\nTitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nTitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: \"titlecase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TitleCasePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'titlecase',\n                    standalone: true,\n                }]\n        }] });\n/**\n * Transforms text to all upper case.\n * @see `LowerCasePipe`\n * @see `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}\nUpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nUpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: \"uppercase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UpperCasePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'uppercase',\n                    standalone: true,\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.io/license\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 */\nconst DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken('DATE_PIPE_DEFAULT_TIMEZONE');\n// clang-format off\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-common-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_TIMEZONE`\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 `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 *  | 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 *  | 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 * ```\n *\n * ### Usage example\n *\n * The following component uses a date pipe to display the current date in different formats.\n *\n * ```\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 */\n// clang-format on\nclass DatePipe {\n    constructor(locale, defaultTimezone) {\n        this.locale = locale;\n        this.defaultTimezone = defaultTimezone;\n    }\n    transform(value, format = 'mediumDate', timezone, locale) {\n        if (value == null || value === '' || value !== value)\n            return null;\n        try {\n            return formatDate(value, format, locale || this.locale, timezone ?? this.defaultTimezone ?? undefined);\n        }\n        catch (error) {\n            throw invalidPipeArgumentError(DatePipe, error.message);\n        }\n    }\n}\nDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });\nDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: DatePipe, isStandalone: true, name: \"date\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DatePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'date',\n                    pure: true,\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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                }] }]; } });\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.io/license\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    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}\nI18nPluralPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });\nI18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: \"i18nPlural\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nPluralPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'i18nPlural',\n                    pure: true,\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: NgLocalization }]; } });\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.io/license\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}\nI18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nI18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: \"i18nSelect\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nSelectPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'i18nSelect',\n                    pure: true,\n                    standalone: true,\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.io/license\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}\nJsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nJsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonPipe, isStandalone: true, name: \"json\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'json',\n                    pure: false,\n                    standalone: true,\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.io/license\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 *\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    constructor(differs) {\n        this.differs = differs;\n        this.keyValues = [];\n        this.compareFn = defaultComparator;\n    }\n    transform(input, compareFn = defaultComparator) {\n        if (!input || (!(input instanceof Map) && typeof input !== 'object')) {\n            return null;\n        }\n        if (!this.differ) {\n            // make a differ for whatever type we've been passed in\n            this.differ = this.differs.find(input).create();\n        }\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            this.keyValues.sort(compareFn);\n            this.compareFn = compareFn;\n        }\n        return this.keyValues;\n    }\n}\nKeyValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });\nKeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: \"keyvalue\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyValuePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'keyvalue',\n                    pure: false,\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }]; } });\nfunction defaultComparator(keyValueA, keyValueB) {\n    const a = keyValueA.key;\n    const b = keyValueB.key;\n    // if same exit with 0;\n    if (a === b)\n        return 0;\n    // make sure that undefined are at the end of the sort.\n    if (a === undefined)\n        return 1;\n    if (b === undefined)\n        return -1;\n    // make sure that nulls are at the end of the sort.\n    if (a === null)\n        return 1;\n    if (b === null)\n        return -1;\n    if (typeof a == 'string' && typeof b == 'string') {\n        return a < b ? -1 : 1;\n    }\n    if (typeof a == 'number' && typeof b == 'number') {\n        return a - b;\n    }\n    if (typeof a == 'boolean' && typeof b == 'boolean') {\n        return a < b ? -1 : 1;\n    }\n    // `a` and `b` are of different types. Compare their string values.\n    const aString = String(a);\n    const bString = String(b);\n    return aString == bString ? 0 : aString < bString ? -1 : 1;\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.io/license\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 `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-common-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 * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>\n *\n * @publicApi\n */\nclass DecimalPipe {\n    constructor(_locale) {\n        this._locale = _locale;\n    }\n    /**\n     * @param value The value to be formatted.\n     * @param digitsInfo Sets digit and decimal representation.\n     * [See more](#digitsinfo).\n     * @param locale Specifies what locale format rules to use.\n     * [See more](#locale).\n     */\n    transform(value, digitsInfo, locale) {\n        if (!isValue(value))\n            return null;\n        locale = 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}\nDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: DecimalPipe, isStandalone: true, name: \"number\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DecimalPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'number',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 `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 * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>\n *\n * @publicApi\n */\nclass PercentPipe {\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-common-locale-id).\n     */\n    transform(value, digitsInfo, locale) {\n        if (!isValue(value))\n            return null;\n        locale = 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}\nPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PercentPipe, isStandalone: true, name: \"percent\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PercentPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'percent',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * {@a currency-code-deprecation}\n * <div class=\"alert is-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v11 the default currency code will be taken from the current locale identified by\n * the `LOCALE_ID` token. See the [i18n guide](guide/i18n-common-locale-id) for\n * more information.**\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 * @see `getCurrencySymbol()`\n * @see `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 * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>\n *\n * @publicApi\n */\nclass CurrencyPipe {\n    constructor(_locale, _defaultCurrencyCode = 'USD') {\n        this._locale = _locale;\n        this._defaultCurrencyCode = _defaultCurrencyCode;\n    }\n    /**\n     *\n     * @param value The number to be formatted as currency.\n     * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n     * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n     * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n     * @param display The format for the currency indicator. One of the following:\n     *   - `code`: Show the code (such as `USD`).\n     *   - `symbol`(default): Show the symbol (such as `$`).\n     *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n     * currency.\n     * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n     * locale has no narrow symbol, uses the standard symbol for the locale.\n     *   - String: Use the given string value instead of a code or a symbol.\n     * For example, an empty string will suppress the currency & symbol.\n     *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n     *\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 `2`.\n     *   - `maxFractionDigits`: The maximum number of digits after the decimal point.\n     * Default is `2`.\n     * If not provided, the number will be formatted with the proper amount of digits,\n     * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n     * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\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-common-locale-id).\n     */\n    transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {\n        if (!isValue(value))\n            return null;\n        locale = 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}\nCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });\nCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: \"currency\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CurrencyPipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'currency',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\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}\nSlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nSlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: SlicePipe, isStandalone: true, name: \"slice\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SlicePipe, decorators: [{\n            type: Pipe,\n            args: [{\n                    name: 'slice',\n                    pure: false,\n                    standalone: true,\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.io/license\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/**\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.io/license\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}\nCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", 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] });\nCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CommonModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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\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.io/license\n */\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\nconst PLATFORM_WORKER_APP_ID = 'browserWorkerApp';\nconst PLATFORM_WORKER_UI_ID = 'browserWorkerUi';\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 * Returns whether a platform id represents a web worker app platform.\n * @publicApi\n */\nfunction isPlatformWorkerApp(platformId) {\n    return platformId === PLATFORM_WORKER_APP_ID;\n}\n/**\n * Returns whether a platform id represents a web worker UI platform.\n * @publicApi\n */\nfunction isPlatformWorkerUi(platformId) {\n    return platformId === PLATFORM_WORKER_UI_ID;\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.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('14.3.0');\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.io/license\n */\n/**\n * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.\n *\n * @publicApi\n */\nclass ViewportScroller {\n}\n// De-sugared tree-shakable injection\n// See #23917\n/** @nocollapse */\nViewportScroller.ɵprov = ɵɵdefineInjectable({\n    token: ViewportScroller,\n    providedIn: 'root',\n    factory: () => new BrowserViewportScroller(ɵɵinject(DOCUMENT), window)\n});\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n    constructor(document, window) {\n        this.document = document;\n        this.window = window;\n        this.offset = () => [0, 0];\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        if (this.supportsScrolling()) {\n            return [this.window.pageXOffset, this.window.pageYOffset];\n        }\n        else {\n            return [0, 0];\n        }\n    }\n    /**\n     * Sets the scroll position.\n     * @param position The new position in screen coordinates.\n     */\n    scrollToPosition(position) {\n        if (this.supportsScrolling()) {\n            this.window.scrollTo(position[0], position[1]);\n        }\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        if (!this.supportsScrolling()) {\n            return;\n        }\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        if (this.supportScrollRestoration()) {\n            const history = this.window.history;\n            if (history && history.scrollRestoration) {\n                history.scrollRestoration = scrollRestoration;\n            }\n        }\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    /**\n     * We only support scroll restoration when we can get a hold of window.\n     * This means that we do not support this behavior when running in a web worker.\n     *\n     * Lifting this restriction right now would require more changes in the dom adapter.\n     * Since webworkers aren't widely used, we will lift it once RouterScroller is\n     * battle-tested.\n     */\n    supportScrollRestoration() {\n        try {\n            if (!this.supportsScrolling()) {\n                return false;\n            }\n            // The `scrollRestoration` property could be on the `history` instance or its prototype.\n            const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||\n                getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));\n            // We can write to the `scrollRestoration` property if it is a writable data field or it has a\n            // setter function.\n            return !!scrollRestorationDescriptor &&\n                !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);\n        }\n        catch {\n            return false;\n        }\n    }\n    supportsScrolling() {\n        try {\n            return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;\n        }\n        catch {\n            return false;\n        }\n    }\n}\nfunction getScrollRestorationProperty(obj) {\n    return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration');\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' && document.body &&\n        (document.body.createShadowRoot || document.body.attachShadow)) {\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 * @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.io/license\n */\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {\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.io/license\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 * @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.io/license\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 `ImageLoader`\n * @see `NgOptimizedImage`\n */\nconst noopImageLoader = (config) => config.src;\n/**\n * Injection token that configures the image loader function.\n *\n * @see `ImageLoader`\n * @see `NgOptimizedImage`\n * @publicApi\n */\nconst IMAGE_LOADER = new InjectionToken('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 * @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.io/license\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    // 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 * @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.io/license\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', '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    let params = `f_auto,q_auto`; // sets image format and quality to \"auto\"\n    if (config.width) {\n        params += `,w_${config.width}`;\n    }\n    return `${path}/image/upload/${params}/${config.src}`;\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.io/license\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    let params = `tr:q-auto`; // applies the \"auto quality\" transformation\n    if (config.width) {\n        params += `,w-${config.width}`;\n    }\n    return `${path}/${params}/${config.src}`;\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.io/license\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    return url.href;\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.io/license\n */\n// Assembles directive details string, useful for error messages.\nfunction imgDirectiveDetails(ngSrc, includeNgSrc = true) {\n    const ngSrcInfo = includeNgSrc ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) ` : '';\n    return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;\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.io/license\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 * @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.io/license\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    constructor() {\n        // Map of full image URLs -> original `ngSrc` values.\n        this.images = new Map();\n        // Keep track of images for which `console.warn` was produced.\n        this.alreadyWarned = new Set();\n        this.window = null;\n        this.observer = null;\n        assertDevMode('LCP checker');\n        const win = inject(DOCUMENT).defaultView;\n        if (typeof win !== 'undefined' && 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 imgNgSrc = this.images.get(imgSrc);\n            if (imgNgSrc && !this.alreadyWarned.has(imgSrc)) {\n                this.alreadyWarned.add(imgSrc);\n                logMissingPriorityWarning(imgSrc);\n            }\n        });\n        observer.observe({ type: 'largest-contentful-paint', buffered: true });\n        return observer;\n    }\n    registerImage(rewrittenSrc, originalNgSrc) {\n        if (!this.observer)\n            return;\n        this.images.set(getUrl(rewrittenSrc, this.window).href, originalNgSrc);\n    }\n    unregisterImage(rewrittenSrc) {\n        if (!this.observer)\n            return;\n        this.images.delete(getUrl(rewrittenSrc, this.window).href);\n    }\n    ngOnDestroy() {\n        if (!this.observer)\n            return;\n        this.observer.disconnect();\n        this.images.clear();\n        this.alreadyWarned.clear();\n    }\n}\nLCPImageObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nLCPImageObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LCPImageObserver, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return []; } });\nfunction logMissingPriorityWarning(ngSrc) {\n    const directiveDetails = imgDirectiveDetails(ngSrc);\n    console.warn(ɵ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}\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.io/license\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 * ```typescript\n *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}\n * ```\n *\n * or:\n *\n * ```typescript\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('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    constructor() {\n        this.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        this.preconnectLinks = null;\n        /*\n         * Keep track of all already seen origin URLs to avoid repeating the same check.\n         */\n        this.alreadySeen = new Set();\n        this.window = null;\n        this.blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);\n        assertDevMode('preconnect link checker');\n        const win = this.document.defaultView;\n        if (typeof win !== 'undefined') {\n            this.window = win;\n        }\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 (!this.window)\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        if (!this.preconnectLinks) {\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        }\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}\nPreconnectLinkChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPreconnectLinkChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreconnectLinkChecker, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return []; } });\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 * @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.io/license\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('NG_OPTIMIZED_PRELOADED_IMAGES', { providedIn: 'root', factory: () => new Set() });\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.io/license\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    constructor() {\n        this.preloadedImages = inject(PRELOADED_IMAGES);\n        this.document = inject(DOCUMENT);\n    }\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}\nPreloadLinkCreator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPreloadLinkCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreloadLinkCreator, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\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 = .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/** Info about built-in loaders we can test for. */\nconst BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo];\nconst defaultConfig = {\n    breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],\n};\n/**\n * Injection token that configures the image optimized image functionality.\n *\n * @see `NgOptimizedImage`\n * @publicApi\n * @developerPreview\n */\nconst IMAGE_CONFIG = new InjectionToken('ImageConfig', { providedIn: 'root', factory: () => defaultConfig });\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 * - Asserting that there is a corresponding 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/standalone-components) 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 * ```typescript\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 *   standalone: true\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 * ```typescript\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 * ```typescript\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 * ```\n * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">\n * ```\n *\n * @publicApi\n */\nclass NgOptimizedImage {\n    constructor() {\n        this.imageLoader = inject(IMAGE_LOADER);\n        this.config = processConfig(inject(IMAGE_CONFIG));\n        this.renderer = inject(Renderer2);\n        this.imgElement = inject(ElementRef).nativeElement;\n        this.injector = inject(Injector);\n        this.isServer = isPlatformServer(inject(PLATFORM_ID));\n        this.preloadLinkChecker = inject(PreloadLinkCreator);\n        // a LCP image observer - should be injected only in the dev mode\n        this.lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;\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        this._renderedSrc = null;\n        this._priority = false;\n        this._disableOptimizedSrcset = false;\n        this._fill = false;\n    }\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    set width(value) {\n        ngDevMode && assertGreaterThanZero(this, value, 'width');\n        this._width = inputToInteger(value);\n    }\n    get width() {\n        return this._width;\n    }\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.* The intrinsic\n     * height of the image in pixels.\n     */\n    set height(value) {\n        ngDevMode && assertGreaterThanZero(this, value, 'height');\n        this._height = inputToInteger(value);\n    }\n    get height() {\n        return this._height;\n    }\n    /**\n     * Indicates whether this image should have a high priority.\n     */\n    set priority(value) {\n        this._priority = inputToBoolean(value);\n    }\n    get priority() {\n        return this._priority;\n    }\n    /**\n     * Disables automatic srcset generation for this image.\n     */\n    set disableOptimizedSrcset(value) {\n        this._disableOptimizedSrcset = inputToBoolean(value);\n    }\n    get disableOptimizedSrcset() {\n        return this._disableOptimizedSrcset;\n    }\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     * @developerPreview\n     */\n    set fill(value) {\n        this._fill = inputToBoolean(value);\n    }\n    get fill() {\n        return this._fill;\n    }\n    /** @nodoc */\n    ngOnInit() {\n        if (ngDevMode) {\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                assertNonZeroRenderedHeight(this, this.imgElement, this.renderer);\n            }\n            else {\n                assertNonEmptyWidthAndHeight(this);\n                // Only check for distorted images when not in fill mode, where\n                // images may be intentionally stretched, cropped or letterboxed.\n                assertNoImageDistortion(this, this.imgElement, this.renderer);\n            }\n            assertValidLoadingInput(this);\n            if (!this.ngSrcset) {\n                assertNoComplexSizes(this);\n            }\n            assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);\n            assertNoNgSrcsetWithoutLoader(this, this.imageLoader);\n            assertNoLoaderParamsWithoutLoader(this, this.imageLoader);\n            if (this.priority) {\n                const checker = this.injector.get(PreconnectLinkChecker);\n                checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);\n            }\n            else {\n                // Monitor whether an image is an LCP element only in case\n                // the `priority` attribute is missing. Otherwise, an image\n                // has the necessary settings and no extra checks are required.\n                if (this.lcpObserver !== null) {\n                    const ngZone = this.injector.get(NgZone);\n                    ngZone.runOutsideAngular(() => {\n                        this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc);\n                    });\n                }\n            }\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            if (!this.sizes) {\n                this.sizes = '100vw';\n            }\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 rewrittenSrc = this.getRewrittenSrc();\n        this.setHostAttribute('src', rewrittenSrc);\n        let rewrittenSrcset = undefined;\n        if (this.sizes) {\n            this.setHostAttribute('sizes', this.sizes);\n        }\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        if (this.isServer && this.priority) {\n            this.preloadLinkChecker.createPreloadLinkTag(this.renderer, rewrittenSrc, rewrittenSrcset, this.sizes);\n        }\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n        if (ngDevMode) {\n            assertNoPostInitInputChange(this, changes, [\n                'ngSrc',\n                'ngSrcset',\n                'width',\n                'height',\n                'priority',\n                'fill',\n                'loading',\n                'sizes',\n                'loaderParams',\n                'disableOptimizedSrcset',\n            ]);\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.split(',').filter(src => src !== '').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    getFixedSrcset() {\n        const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => {\n            const imgUrl = this.callImageLoader({ src: this.ngSrc, width: this.width * multiplier });\n            return `${imgUrl} ${multiplier}x`;\n        });\n        return finalSrcs.join(', ');\n    }\n    shouldGenerateAutomaticSrcset() {\n        return !this._disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader &&\n            !(this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        if (ngDevMode) {\n            if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {\n                this.lcpObserver.unregisterImage(this._renderedSrc);\n            }\n        }\n    }\n    setHostAttribute(name, value) {\n        this.renderer.setAttribute(this.imgElement, name, value);\n    }\n}\nNgOptimizedImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nNgOptimizedImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgOptimizedImage, isStandalone: true, selector: \"img[ngSrc]\", inputs: { ngSrc: \"ngSrc\", ngSrcset: \"ngSrcset\", sizes: \"sizes\", width: \"width\", height: \"height\", loading: \"loading\", priority: \"priority\", loaderParams: \"loaderParams\", disableOptimizedSrcset: \"disableOptimizedSrcset\", fill: \"fill\", src: \"src\", srcset: \"srcset\" }, host: { properties: { \"style.position\": \"fill ? \\\"absolute\\\" : null\", \"style.width\": \"fill ? \\\"100%\\\" : null\", \"style.height\": \"fill ? \\\"100%\\\" : null\", \"style.inset\": \"fill ? \\\"0px\\\" : null\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgOptimizedImage, decorators: [{\n            type: Directive,\n            args: [{\n                    standalone: true,\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 ? \"0px\" : null'\n                    }\n                }]\n        }], propDecorators: { ngSrc: [{\n                type: Input\n            }], ngSrcset: [{\n                type: Input\n            }], sizes: [{\n                type: Input\n            }], width: [{\n                type: Input\n            }], height: [{\n                type: Input\n            }], loading: [{\n                type: Input\n            }], priority: [{\n                type: Input\n            }], loaderParams: [{\n                type: Input\n            }], disableOptimizedSrcset: [{\n                type: Input\n            }], fill: [{\n                type: Input\n            }], src: [{\n                type: Input\n            }], srcset: [{\n                type: Input\n            }] } });\n/***** Helpers *****/\n/**\n * Convert input value to integer.\n */\nfunction inputToInteger(value) {\n    return typeof value === 'string' ? parseInt(value, 10) : value;\n}\n/**\n * Convert input value to boolean.\n */\nfunction inputToBoolean(value) {\n    return value != null && `${value}` !== 'false';\n}\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({}, defaultConfig, 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}\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.split(',').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 = `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 = `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 *ngIf 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            `(\\`${inputValue}\\`). To fix this, provide \\`${inputName}\\` ` +\n            `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 removeListenerFn = renderer.listen(img, 'load', () => {\n        removeListenerFn();\n        const renderedWidth = img.clientWidth;\n        const renderedHeight = img.clientHeight;\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: ${intrinsicAspectRatio}). \\nSupplied width and height attributes: ` +\n                `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${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: ${intrinsicAspectRatio}). \\nRendered image size: ` +\n                `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +\n                `${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}\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 removeListenerFn = renderer.listen(img, 'load', () => {\n        removeListenerFn();\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}\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/**\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.io/license\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.io/license\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.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, 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, isPlatformWorkerApp, isPlatformWorkerUi, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, registerLocaleData, BrowserPlatformLocation as ɵBrowserPlatformLocation, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, getDOM as ɵgetDOM, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, ɵparseCookieValue, XhrFactory as XhrFactory$1 } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, Inject, PLATFORM_ID, NgModule } from '@angular/core';\nimport { of, Observable } from 'rxjs';\nimport { concatMap, filter, map } from 'rxjs/operators';\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.io/license\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 * @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.io/license\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    /**  Constructs a new HTTP header object with the given values.*/\n    constructor(headers) {\n        /**\n         * Internal map of lowercased header names to the normalized\n         * form of the name (the form seen first).\n         */\n        this.normalizedNames = new Map();\n        /**\n         * Queued updates to be materialized the next initialization.\n         */\n        this.lazyUpdate = null;\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 key = name.toLowerCase();\n                        const value = line.slice(index + 1).trim();\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                });\n            };\n        }\n        else {\n            this.lazyInit = () => {\n                if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                    assertValidHeaders(headers);\n                }\n                this.headers = new Map();\n                Object.keys(headers).forEach(name => {\n                    let values = headers[name];\n                    const key = name.toLowerCase();\n                    if (typeof values === 'string') {\n                        values = [values];\n                    }\n                    if (values.length > 0) {\n                        this.headers.set(key, values);\n                        this.maybeSetNormalizedName(name, key);\n                    }\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 =\n            (!!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    /**\n     * @internal\n     */\n    forEach(fn) {\n        this.init();\n        Array.from(this.normalizedNames.keys())\n            .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 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' && !Array.isArray(value)) {\n            throw new Error(`Unexpected value of the \\`${key}\\` header provided. ` +\n                `Expecting either a string or an array, but got: \\`${value}\\`.`);\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.io/license\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    constructor(options = {}) {\n        this.updates = null;\n        this.cloneFrom = null;\n        this.encoder = options.encoder || new HttpUrlEncodingCodec();\n        if (!!options.fromString) {\n            if (!!options.fromObject) {\n                throw new Error(`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).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 * @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.io/license\n */\n/**\n * A token used to manipulate and access values stored in `HttpContext`.\n *\n * @publicApi\n */\nclass HttpContextToken {\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 * ```typescript\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    constructor() {\n        this.map = new Map();\n    }\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 * @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.io/license\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 * 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    constructor(method, url, third, fourth) {\n        this.url = 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        this.body = null;\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        this.reportProgress = false;\n        /**\n         * Whether this request should be sent with outgoing credentials (cookies).\n         */\n        this.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        this.responseType = 'json';\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        }\n        // If no headers have been passed in, construct a new HttpHeaders instance.\n        if (!this.headers) {\n            this.headers = new HttpHeaders();\n        }\n        // If no context have been passed in, construct a new HttpContext instance.\n        if (!this.context) {\n            this.context = new HttpContext();\n        }\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 (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||\n            isUrlSearchParams(this.body) || typeof this.body === 'string') {\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' || 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/plain';\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' || typeof this.body === 'number' ||\n            typeof this.body === 'boolean') {\n            return 'application/json';\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        // 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 !== undefined) ? update.withCredentials : this.withCredentials;\n        const reportProgress = (update.reportProgress !== undefined) ? 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 =\n                Object.keys(update.setHeaders)\n                    .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)\n                .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        });\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.io/license\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    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     * 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 /* HttpStatusCode.Ok */, 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        this.type = HttpEventType.ResponseHeader;\n    }\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     * Construct a new `HttpResponse`.\n     */\n    constructor(init = {}) {\n        super(init);\n        this.type = HttpEventType.Response;\n        this.body = init.body !== undefined ? init.body : null;\n    }\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    constructor(init) {\n        // Initialize with a default status of 0 / Unknown Error.\n        super(init, 0, 'Unknown Error');\n        this.name = 'HttpErrorResponse';\n        /**\n         * Errors are never okay, even when the status code is in the 2xx success range.\n         */\n        this.ok = false;\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/**\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.io/license\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    };\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 *\n * @usageNotes\n * Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.\n *\n * ### HTTP Request Example\n *\n * ```\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 * ```\n * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});\n * ```\n *\n *\n * ### JSONP Example\n * ```\n * requestJsonp(url, callback = 'callback') {\n *  return this.httpClient.jsonp(this.heroesURL, callback);\n * }\n * ```\n *\n * ### PATCH Example\n * ```\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    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            });\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 Error('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 Error('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 Error('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 Error(`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}\nHttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClient });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClient, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: HttpHandler }]; } });\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.io/license\n */\n/**\n * `HttpHandler` which applies an `HttpInterceptor` to an `HttpRequest`.\n *\n *\n */\nclass HttpInterceptorHandler {\n    constructor(next, interceptor) {\n        this.next = next;\n        this.interceptor = interceptor;\n    }\n    handle(req) {\n        return this.interceptor.intercept(req, this.next);\n    }\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('HTTP_INTERCEPTORS');\nclass NoopInterceptor {\n    intercept(req, next) {\n        return next.handle(req);\n    }\n}\nNoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoopInterceptor, decorators: [{\n            type: Injectable\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.io/license\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 * Processes an `HttpRequest` with the JSONP method,\n * by performing JSONP style requests.\n * @see `HttpHandler`\n * @see `HttpXhrBackend`\n *\n * @publicApi\n */\nclass JsonpClientBackend {\n    constructor(callbackMap, document) {\n        this.callbackMap = callbackMap;\n        this.document = document;\n        /**\n         * A resolved promise that can be used to schedule microtasks in the event handlers.\n         */\n        this.resolvedPromise = Promise.resolve();\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                // Remove the <script> tag if it's still on the page.\n                if (node.parentNode) {\n                    node.parentNode.removeChild(node);\n                }\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: 200 /* HttpStatusCode.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        if (!foreignDocument) {\n            foreignDocument = this.document.implementation.createHTMLDocument();\n        }\n        foreignDocument.adoptNode(script);\n    }\n}\nJsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nJsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpClientBackend });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpClientBackend, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n/**\n * Identifies requests with the method JSONP and\n * shifts them to the `JsonpClientBackend`.\n *\n * @see `HttpInterceptor`\n *\n * @publicApi\n */\nclass JsonpInterceptor {\n    constructor(jsonp) {\n        this.jsonp = jsonp;\n    }\n    /**\n     * Identifies and handles a given JSONP request.\n     * @param req 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(req, next) {\n        if (req.method === 'JSONP') {\n            return this.jsonp.handle(req);\n        }\n        // Fall through for normal HTTP requests.\n        return next.handle(req);\n    }\n}\nJsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpInterceptor, deps: [{ token: JsonpClientBackend }], target: i0.ɵɵFactoryTarget.Injectable });\nJsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: JsonpInterceptor, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: JsonpClientBackend }]; } });\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.io/license\n */\nconst XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\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:/m.test(xhr.getAllResponseHeaders())) {\n        return xhr.getResponseHeader('X-Request-URL');\n    }\n    return null;\n}\n/**\n * Uses `XMLHttpRequest` to send requests to a backend server.\n * @see `HttpHandler`\n * @see `JsonpClientBackend`\n *\n * @publicApi\n */\nclass HttpXhrBackend {\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 Error(`Attempted to construct Jsonp request without HttpClientJsonpModule installed.`);\n        }\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 flag.\n            const xhr = this.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')) {\n                xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');\n            }\n            // Auto-detect the Content-Type header if one isn't present already.\n            if (!req.headers.has('Content-Type')) {\n                const detectedType = req.detectContentTypeHeader();\n                // Sometimes Content-Type detection fails.\n                if (detectedType !== null) {\n                    xhr.setRequestHeader('Content-Type', 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 !== 204 /* HttpStatusCode.NoContent */) {\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 ? 200 /* HttpStatusCode.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 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 been a\n                        // JSON response. Restore the original body (including any XSSI prefix) to deliver\n                        // a better error response.\n                        body = originalBody;\n                        // If this was an error request to begin with, leave it as a string, it probably\n                        // 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}\nHttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXhrBackend });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXhrBackend, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });\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.io/license\n */\nconst XSRF_COOKIE_NAME = new InjectionToken('XSRF_COOKIE_NAME');\nconst XSRF_HEADER_NAME = new InjectionToken('XSRF_HEADER_NAME');\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    constructor(doc, platform, cookieName) {\n        this.doc = doc;\n        this.platform = platform;\n        this.cookieName = cookieName;\n        this.lastCookieString = '';\n        this.lastToken = null;\n        /**\n         * @internal for testing\n         */\n        this.parseCount = 0;\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}\nHttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfCookieExtractor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ 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                }] }]; } });\n/**\n * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.\n */\nclass HttpXsrfInterceptor {\n    constructor(tokenService, headerName) {\n        this.tokenService = tokenService;\n        this.headerName = headerName;\n    }\n    intercept(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 (req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') ||\n            lcUrl.startsWith('https://')) {\n            return next.handle(req);\n        }\n        const token = this.tokenService.getToken();\n        // Be careful not to overwrite an existing header of the same name.\n        if (token !== null && !req.headers.has(this.headerName)) {\n            req = req.clone({ headers: req.headers.set(this.headerName, token) });\n        }\n        return next.handle(req);\n    }\n}\nHttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: HttpXsrfTokenExtractor }, { token: XSRF_HEADER_NAME }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: HttpXsrfTokenExtractor }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [XSRF_HEADER_NAME]\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.io/license\n */\n/**\n * An injectable `HttpHandler` that applies multiple interceptors\n * to a request before passing it to the given `HttpBackend`.\n *\n * The interceptors are loaded lazily from the injector, to allow\n * interceptors to themselves inject classes depending indirectly\n * on `HttpInterceptingHandler` itself.\n * @see `HttpInterceptor`\n */\nclass HttpInterceptingHandler {\n    constructor(backend, injector) {\n        this.backend = backend;\n        this.injector = injector;\n        this.chain = null;\n    }\n    handle(req) {\n        if (this.chain === null) {\n            const interceptors = this.injector.get(HTTP_INTERCEPTORS, []);\n            this.chain = interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), this.backend);\n        }\n        return this.chain.handle(req);\n    }\n}\nHttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpInterceptingHandler, deps: [{ token: HttpBackend }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpInterceptingHandler });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpInterceptingHandler, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.Injector }]; } });\n/**\n * Constructs an `HttpHandler` that applies interceptors\n * to a request before passing it to the given `HttpBackend`.\n *\n * Use as a factory function within `HttpClientModule`.\n *\n *\n */\nfunction interceptingHandler(backend, interceptors = []) {\n    if (!interceptors) {\n        return backend;\n    }\n    return interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), backend);\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 * 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 */\nclass HttpClientXsrfModule {\n    /**\n     * Disable the default XSRF protection.\n     */\n    static disable() {\n        return {\n            ngModule: HttpClientXsrfModule,\n            providers: [\n                { provide: HttpXsrfInterceptor, useClass: NoopInterceptor },\n            ],\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: [\n                options.cookieName ? { provide: XSRF_COOKIE_NAME, useValue: options.cookieName } : [],\n                options.headerName ? { provide: XSRF_HEADER_NAME, useValue: options.headerName } : [],\n            ],\n        };\n    }\n}\nHttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientXsrfModule });\nHttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientXsrfModule, providers: [\n        HttpXsrfInterceptor,\n        { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n        { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n        { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },\n        { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },\n    ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                        { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },\n                        { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },\n                    ],\n                }]\n        }] });\n/**\n * Configures the [dependency injector](guide/glossary#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](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nclass HttpClientModule {\n}\nHttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientModule, imports: [HttpClientXsrfModule] });\nHttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientModule, providers: [\n        HttpClient,\n        { provide: HttpHandler, useClass: HttpInterceptingHandler },\n        HttpXhrBackend,\n        { provide: HttpBackend, useExisting: HttpXhrBackend },\n    ], imports: [HttpClientXsrfModule.withOptions({\n            cookieName: 'XSRF-TOKEN',\n            headerName: 'X-XSRF-TOKEN',\n        })] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    /**\n                     * Optional configuration for XSRF protection.\n                     */\n                    imports: [\n                        HttpClientXsrfModule.withOptions({\n                            cookieName: 'XSRF-TOKEN',\n                            headerName: 'X-XSRF-TOKEN',\n                        }),\n                    ],\n                    /**\n                     * Configures the [dependency injector](guide/glossary#injector) where it is imported\n                     * with supporting services for HTTP communications.\n                     */\n                    providers: [\n                        HttpClient,\n                        { provide: HttpHandler, useClass: HttpInterceptingHandler },\n                        HttpXhrBackend,\n                        { provide: HttpBackend, useExisting: HttpXhrBackend },\n                    ],\n                }]\n        }] });\n/**\n * Configures the [dependency injector](guide/glossary#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 * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nclass HttpClientJsonpModule {\n}\nHttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientJsonpModule });\nHttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientJsonpModule, providers: [\n        JsonpClientBackend,\n        { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n        { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },\n    ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpClientJsonpModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    providers: [\n                        JsonpClientBackend,\n                        { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n                        { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },\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.io/license\n */\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n * @see `XhrFactory`\n * @deprecated\n * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.\n */\nconst XhrFactory = XhrFactory$1;\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, XhrFactory, HttpInterceptingHandler as ɵHttpInterceptingHandler };\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 1 && v === 0)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"it\", [[\"m.\", \"p.\"], [\"AM\", \"PM\"], u], u, [[\"D\", \"L\", \"M\", \"M\", \"G\", \"V\", \"S\"], [\"dom\", \"lun\", \"mar\", \"mer\", \"gio\", \"ven\", \"sab\"], [\"domenica\", \"lunedì\", \"martedì\", \"mercoledì\", \"giovedì\", \"venerdì\", \"sabato\"], [\"dom\", \"lun\", \"mar\", \"mer\", \"gio\", \"ven\", \"sab\"]], u, [[\"G\", \"F\", \"M\", \"A\", \"M\", \"G\", \"L\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"gen\", \"feb\", \"mar\", \"apr\", \"mag\", \"giu\", \"lug\", \"ago\", \"set\", \"ott\", \"nov\", \"dic\"], [\"gennaio\", \"febbraio\", \"marzo\", \"aprile\", \"maggio\", \"giugno\", \"luglio\", \"agosto\", \"settembre\", \"ottobre\", \"novembre\", \"dicembre\"]], u, [[\"aC\", \"dC\"], [\"a.C.\", \"d.C.\"], [\"avanti Cristo\", \"dopo Cristo\"]], 1, [6, 0], [\"dd/MM/yy\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} {0}\", u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"BRL\": [u, \"R$\"], \"BYN\": [u, \"Br\"], \"EGP\": [u, \"£E\"], \"HKD\": [u, \"$\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MXN\": [u, \"$\"], \"NOK\": [u, \"NKr\"], \"THB\": [\"฿\"], \"TWD\": [u, \"NT$\"], \"USD\": [u, \"$\"], \"VND\": [u, \"₫\"] }, \"ltr\", plural];\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { Subject, Subscription, Observable, merge as merge$1 } from 'rxjs';\nimport { share } from 'rxjs/operators';\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.io/license\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\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.io/license\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 ? '' : after) :\n        ((after == null || after === '') ? before : before + ' ' + after);\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.io/license\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 * @usageNotes\n * ### Example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\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 `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' && fn.hasOwnProperty(__forward_ref__) &&\n        fn.__forward_ref__ === forwardRef;\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.io/license\n */\n/**\n * Base URL for the error details page.\n *\n * Keep the files below in full sync:\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.io/errors';\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.io/license\n */\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\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 logic.\n */\nclass RuntimeError extends Error {\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    const fullCode = `NG0${Math.abs(code)}`;\n    let errorMessage = `${fullCode}${message ? ': ' + message.trim() : ''}`;\n    if (ngDevMode && code < 0) {\n        const addPeriodSeparator = !errorMessage.match(/[.,;!?]$/);\n        const separator = addPeriodSeparator ? '.' : '';\n        errorMessage =\n            `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n    }\n    return errorMessage;\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.io/license\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 * 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/**\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.io/license\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 */, `Circular dependency in DI detected for ${token}${depPath}`);\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 (provider.ɵproviders) {\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 Error('Invalid provider');\n    }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n    const injectorDetails = injectorName ? ` in ${injectorName}` : '';\n    throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, ngDevMode && `No provider for ${stringifyForError(token)} found${injectorDetails}`);\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.io/license\n */\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 we're in a worker, `Node` will not be defined.\n    if (!(typeof Node !== 'undefined' && node instanceof Node) &&\n        !(typeof node === 'object' && node != null &&\n            node.constructor.name === 'WebWorkerRenderNode')) {\n        throwError(`The provided value must be an instance of a DOM Node 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}\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.io/license\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` to access the `Injector` and request injection 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        const typeName = getTypeName(type);\n        // TODO(FW-1307): Re-add ngDevMode when closure can handle it\n        // ngDevMode &&\n        console.warn(`DEPRECATED: DI is instantiating a token \"${typeName}\" 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 \"${typeName}\" class.`);\n        return def;\n    }\n    else {\n        return null;\n    }\n}\n/** Gets the name of a type, accounting for some cross-browser differences. */\nfunction getTypeName(type) {\n    // `Function.prototype.name` behaves differently between IE and other browsers. In most browsers\n    // it'll always return the name of the function itself, no matter how many other functions it\n    // inherits from. On IE the function doesn't have its own `name` property, but it takes it from\n    // the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most\n    // browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around\n    // the issue by converting the function to a string and parsing its name out that way via a regex.\n    if (type.hasOwnProperty('name')) {\n        return type.name;\n    }\n    const match = ('' + type).match(/^function\\s*([^\\s(]+)/);\n    return match === null ? '' : match[1];\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 * @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.io/license\n */\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for `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 * @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.io/license\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 ? 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(stringify(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\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.io/license\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\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.io/license\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 {@link ChangeDetectorRef#usage-notes Change detection usage}\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 * Defines the possible states of the default change detector.\n * @see `ChangeDetectorRef`\n */\nvar ChangeDetectorStatus;\n(function (ChangeDetectorStatus) {\n    /**\n     * A state in which, after calling `detectChanges()`, the change detector\n     * state becomes `Checked`, and must be explicitly invoked or reactivated.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"CheckOnce\"] = 0] = \"CheckOnce\";\n    /**\n     * A state in which change detection is skipped until the change detector mode\n     * becomes `CheckOnce`.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"Checked\"] = 1] = \"Checked\";\n    /**\n     * A state in which change detection continues automatically until explicitly\n     * deactivated.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"CheckAlways\"] = 2] = \"CheckAlways\";\n    /**\n     * A state in which a change detector sub tree is not a part of the main tree and\n     * should be skipped.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"Detached\"] = 3] = \"Detached\";\n    /**\n     * Indicates that the change detector encountered an error checking a binding\n     * or calling a directive lifecycle method and is now in an inconsistent state. Change\n     * detectors in this state do not detect changes.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"Errored\"] = 4] = \"Errored\";\n    /**\n     * Indicates that the change detector has been destroyed.\n     */\n    ChangeDetectorStatus[ChangeDetectorStatus[\"Destroyed\"] = 5] = \"Destroyed\";\n})(ChangeDetectorStatus || (ChangeDetectorStatus = {}));\n/**\n * Reports whether a given strategy is currently the default for change detection.\n * @param changeDetectionStrategy The strategy to check.\n * @returns True if the given strategy is the current default, false otherwise.\n * @see `ChangeDetectorStatus`\n * @see `ChangeDetectorRef`\n */\nfunction isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\n    return changeDetectionStrategy == null ||\n        changeDetectionStrategy === ChangeDetectionStrategy.Default;\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.io/license\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$1;\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$1 || (ViewEncapsulation$1 = {}));\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.io/license\n */\n// Always use __globalThis if available, which is the spec-defined global variable across all\n// environments, then fallback to __global first, because in Node tests both __global and\n// __window may be defined and _global should be __global in that case. Note: Typeof/Instanceof\n// checks are considered side-effects in Terser. We explicitly mark this as side-effect free:\n// https://github.com/terser/terser/issues/250.\nconst _global = ( /* @__PURE__ */(() => (typeof globalThis !== 'undefined' && globalThis) ||\n    (typeof global !== 'undefined' && global) || (typeof window !== 'undefined' && window) ||\n    (typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&\n        self instanceof WorkerGlobalScope && self))());\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.io/license\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    };\n    // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n    const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n    _global['ngDevMode'] = allowNgDevModeTrue && newCounters;\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') {\n            ngDevModeResetPerfCounters();\n        }\n        return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n    }\n    return 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.io/license\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 * @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.io/license\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/**\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.io/license\n */\n/** Counter used to generate unique IDs for component definitions. */\nlet componentDefCount = 0;\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyDirective {\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 type = componentDefinition.type;\n        const standalone = componentDefinition.standalone === true;\n        const declaredInputs = {};\n        const def = {\n            type: type,\n            providersResolver: null,\n            decls: componentDefinition.decls,\n            vars: componentDefinition.vars,\n            factory: null,\n            template: componentDefinition.template || null,\n            consts: componentDefinition.consts || null,\n            ngContentSelectors: componentDefinition.ngContentSelectors,\n            hostBindings: componentDefinition.hostBindings || null,\n            hostVars: componentDefinition.hostVars || 0,\n            hostAttrs: componentDefinition.hostAttrs || null,\n            contentQueries: componentDefinition.contentQueries || null,\n            declaredInputs: declaredInputs,\n            inputs: null,\n            outputs: null,\n            exportAs: componentDefinition.exportAs || null,\n            onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n            directiveDefs: null,\n            pipeDefs: null,\n            standalone,\n            dependencies: standalone && componentDefinition.dependencies || null,\n            getStandaloneInjector: null,\n            selectors: componentDefinition.selectors || EMPTY_ARRAY,\n            viewQuery: componentDefinition.viewQuery || null,\n            features: componentDefinition.features || null,\n            data: componentDefinition.data || {},\n            encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n            id: `c${componentDefCount++}`,\n            styles: componentDefinition.styles || EMPTY_ARRAY,\n            _: null,\n            setInput: null,\n            schemas: componentDefinition.schemas || null,\n            tView: null,\n        };\n        const dependencies = componentDefinition.dependencies;\n        const feature = componentDefinition.features;\n        def.inputs = invertObject(componentDefinition.inputs, declaredInputs),\n            def.outputs = invertObject(componentDefinition.outputs),\n            feature && feature.forEach((fn) => fn(def));\n        def.directiveDefs = dependencies ?\n            (() => (typeof dependencies === 'function' ? dependencies() : dependencies)\n                .map(extractDirectiveDef)\n                .filter(nonNull)) :\n            null;\n        def.pipeDefs = dependencies ?\n            (() => (typeof dependencies === 'function' ? dependencies() : dependencies)\n                .map(getPipeDef$1)\n                .filter(nonNull)) :\n            null;\n        return def;\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 = () => (typeof directives === 'function' ? directives() : directives).map(extractDirectiveDef);\n    def.pipeDefs = () => (typeof pipes === 'function' ? pipes() : pipes).map(getPipeDef$1);\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}\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 = scope.declarations || EMPTY_ARRAY;\n        ngModuleDef.imports = scope.imports || EMPTY_ARRAY;\n        ngModuleDef.exports = scope.exports || EMPTY_ARRAY;\n    });\n}\n/**\n * Inverts an inputs or outputs lookup such that the keys, which were the\n * minified keys, are part of the values, and the values are parsed so that\n * the publicName of the property is the new key\n *\n * e.g. for\n *\n * ```\n * class Comp {\n *   @Input()\n *   propName1: string;\n *\n *   @Input('publicName2')\n *   declaredPropName2: number;\n * }\n * ```\n *\n * will be serialized as\n *\n * ```\n * {\n *   propName1: 'propName1',\n *   declaredPropName2: ['publicName2', 'declaredPropName2'],\n * }\n * ```\n *\n * which is than translated by the minifier as:\n *\n * ```\n * {\n *   minifiedPropName1: 'propName1',\n *   minifiedPropName2: ['publicName2', 'declaredPropName2'],\n * }\n * ```\n *\n * becomes: (public name => minifiedName)\n *\n * ```\n * {\n *  'propName1': 'minifiedPropName1',\n *  'publicName2': 'minifiedPropName2',\n * }\n * ```\n *\n * Optionally the function can take `secondary` which will result in: (public name => declared name)\n *\n * ```\n * {\n *  'propName1': 'propName1',\n *  'publicName2': 'declaredPropName2',\n * }\n * ```\n *\n\n */\nfunction invertObject(obj, secondary) {\n    if (obj == null)\n        return EMPTY_OBJ;\n    const newLookup = {};\n    for (const minifiedKey in obj) {\n        if (obj.hasOwnProperty(minifiedKey)) {\n            let publicName = obj[minifiedKey];\n            let declaredName = publicName;\n            if (Array.isArray(publicName)) {\n                declaredName = publicName[1];\n                publicName = publicName[0];\n            }\n            newLookup[publicName] = minifiedKey;\n            if (secondary) {\n                (secondary[publicName] = declaredName);\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 */\nconst ɵɵdefineDirective = ɵɵdefineComponent;\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\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}\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}\nfunction isStandalone(type) {\n    const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n    return def !== null ? def.standalone : false;\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/**\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.io/license\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;\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst TRANSPLANTED_VIEWS_TO_REFRESH = 5;\nconst T_HOST = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR$1 = 9;\nconst RENDERER_FACTORY = 10;\nconst RENDERER = 11;\nconst SANITIZER = 12;\nconst CHILD_HEAD = 13;\nconst CHILD_TAIL = 14;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 15;\nconst DECLARATION_COMPONENT_VIEW = 16;\nconst DECLARATION_LCONTAINER = 17;\nconst PREORDER_HOOK_FLAGS = 18;\nconst QUERIES = 19;\nconst ID = 20;\nconst EMBEDDED_VIEW_INJECTOR = 21;\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 = 22;\n/**\n * Converts `TViewType` into human readable text.\n * Make sure this matches with `TViewType`\n */\nconst TViewTypeAsString = [\n    'Root',\n    'Component',\n    'Embedded', // 2\n];\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$8 = 1;\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.io/license\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/**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip\n * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify\n * that the `MOVED_VIEWS` are transplanted and on-push.\n */\nconst HAS_TRANSPLANTED_VIEWS = 2;\n// PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\n// T_HOST is index 6\n// We already have this constants in LView, we don't need to re-create it.\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// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$7 = 1;\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.io/license\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 & 8 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n    return (tNode.flags & 2 /* TNodeFlags.isComponentHost */) === 2 /* TNodeFlags.isComponentHost */;\n}\nfunction isDirectiveHost(tNode) {\n    return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n    return def.template !== null;\n}\nfunction isRootView(target) {\n    return (target[FLAGS] & 256 /* LViewFlags.IsRoot */) !== 0;\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.io/license\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    tNode.hasOwnProperty('tView_') &&\n        assertEqual(tNode.tView_, tView, '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 assertDataNext(lView, index, arr) {\n    if (arr == null)\n        arr = lView;\n    assertEqual(arr.length, index, `index ${index} expected to be at the end of arr (length ${arr.length})`);\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(lView, index) {\n    const tView = lView[1];\n    assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInVarsRange(lView, index) {\n    const tView = lView[1];\n    assertBetween(tView.bindingStartIndex, tView.expandoStartIndex, 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}\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 * @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.io/license\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 * @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.io/license\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 `OnChanges`\n *\n * @publicApi\n */\nclass SimpleChange {\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\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.io/license\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 * ```\n * static ɵcmp = defineComponent({\n *   ...\n *   inputs: {name: 'publicName'},\n *   features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n    return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n    if (definition.type.prototype.ngOnChanges) {\n        definition.setInput = ngOnChangesSetInput;\n    }\n    return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\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, value, publicName, privateName) {\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 declaredName = this.declaredInputs[publicName];\n    const previousChange = previous[declaredName];\n    current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n    instance[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\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.io/license\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\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.io/license\n */\nconst SVG_NAMESPACE = 'svg';\nconst SVG_NAMESPACE_URI = 'http://www.w3.org/2000/svg';\nconst MATH_ML_NAMESPACE = 'math';\nconst MATH_ML_NAMESPACE_URI = 'http://www.w3.org/1998/MathML/';\nfunction getNamespaceUri(namespace) {\n    const name = namespace.toLowerCase();\n    return name === SVG_NAMESPACE ? SVG_NAMESPACE_URI :\n        (name === MATH_ML_NAMESPACE ? MATH_ML_NAMESPACE_URI : 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.io/license\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 * Returns `LContainer` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLContainer(value) {\n    while (Array.isArray(value)) {\n        // This check is same as `isLContainer()` 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 (value[TYPE] === true)\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] & 64 /* LViewFlags.Attached */) === 64 /* 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 * Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents\n * whose\n *  1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh\n *  or\n *  2. counter goes from 1 to 0, indicating there are no more descendant views to refresh\n */\nfunction updateTransplantedViewCount(lContainer, amount) {\n    lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n    let viewOrContainer = lContainer;\n    let parent = lContainer[PARENT];\n    while (parent !== null &&\n        ((amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1) ||\n            (amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0))) {\n        parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n        viewOrContainer = parent;\n        parent = parent[PARENT];\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.io/license\n */\nconst instructionState = {\n    lFrame: createLFrame(null),\n    bindingsEnabled: true,\n};\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 _isInCheckNoChangesMode = 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 * Enables directive matching on elements.\n *\n *  * Example:\n * ```\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 * Disables directive matching on element.\n *\n *  * Example:\n * ```\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 * 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 setCurrentTNodeAsParent() {\n    instructionState.lFrame.isParent = true;\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 _isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n    !ngDevMode && throwError('Must never be called in production mode');\n    _isInCheckNoChangesMode = mode;\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 =\n        walkUpViews(level, instructionState.lFrame.contextLView);\n    return contextLView[CONTEXT];\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}\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 && 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}\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.io/license\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 || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges);\n        (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = []))\n            .push(directiveIndex, wrappedOnChanges);\n    }\n    if (ngOnInit) {\n        (tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit);\n    }\n    if (ngDoCheck) {\n        (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck);\n        (tView.preOrderCheckHooks || (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 || (tView.contentHooks = [])).push(-i, ngAfterContentInit);\n        }\n        if (ngAfterContentChecked) {\n            (tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked);\n            (tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked);\n        }\n        if (ngAfterViewInit) {\n            (tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit);\n        }\n        if (ngAfterViewChecked) {\n            (tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked);\n            (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked);\n        }\n        if (ngOnDestroy != null) {\n            (tView.destroyHooks || (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 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 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 &= 2047 /* 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            if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n                callHook(currentView, initPhase, arr, i);\n                currentView[PREORDER_HOOK_FLAGS] =\n                    (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i +\n                        2;\n            }\n            i++;\n        }\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] >> 11 /* 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] += 2048 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n            profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n            try {\n                hook.call(directive);\n            }\n            finally {\n                profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n            }\n        }\n    }\n    else {\n        profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n        try {\n            hook.call(directive);\n        }\n        finally {\n            profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\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.io/license\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    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        /**\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        this.resolving = false;\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// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$6 = 1;\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    return text.length > 0 ? text.substring(1) : text;\n}\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$5 = 1;\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n * <div my-dir [class]=\"exp\"></div>\n * ```\n * and\n * ```\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 & 16 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n * <div my-dir [style]=\"exp\"></div>\n * ```\n * and\n * ```\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 & 32 /* TNodeFlags.hasStyleInput */) !== 0;\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.io/license\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        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 */ || 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/**\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.io/license\n */\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n    return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n    ngDevMode && assertNumber(parentLocation, 'Number expected');\n    ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');\n    const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n    ngDevMode &&\n        assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\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/**\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.io/license\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 * ```\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 << 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 * ```\n * @Component(...)\n * class MyComponent {\n *   constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * <my-component title=\"Hello\"></my-component>\n * ```\n *\n * Then factory method generated is:\n * ```\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$1];\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] & 1024 /* LViewFlags.HasEmbeddedViewInjector */) {\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            const value = bloomHash(flags);\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 = injectorIndex === -1 ? 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 ? injectablesStart : 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        const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : 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            // 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            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}\nclass NodeInjector {\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, 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 && currentLView !== null &&\n        (currentLView[FLAGS] & 1024 /* LViewFlags.HasEmbeddedViewInjector */) &&\n        !(currentLView[FLAGS] & 256 /* LViewFlags.IsRoot */)) {\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 * @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.io/license\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 * @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.io/license\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                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\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.io/license\n */\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = makeParamDecorator('Attribute', (attributeName) => ({ attributeName, __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName) }));\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.io/license\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 * ```\n * interface MyInterface {...}\n * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));\n * // myInterface is inferred to be MyInterface.\n * ```\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` 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`. As\n * mentioned above, `'root'` is the default value for `providedIn`.\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 *\n * @publicApi\n */\nclass InjectionToken {\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        /** @internal */\n        this.ngMetadataName = 'InjectionToken';\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\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.io/license\n */\n/**\n * A DI token that you can use to create a virtual [provider](guide/glossary#provider)\n * that will populate the `entryComponents` field of components and NgModules\n * based on its `useValue` property value.\n * All components that are referenced in the `useValue` value (either directly\n * or in a nested array or map) are added to the `entryComponents` property.\n *\n * @usageNotes\n *\n * The following example shows how the router can populate the `entryComponents`\n * field of an NgModule based on a router configuration that refers\n * to components.\n *\n * ```typescript\n * // helper function inside the router\n * function provideRoutes(routes) {\n *   return [\n *     {provide: ROUTES, useValue: routes},\n *     {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}\n *   ];\n * }\n *\n * // user code\n * let routes = [\n *   {path: '/root', component: RootComp},\n *   {path: '/teams', component: TeamsComp}\n * ];\n *\n * @NgModule({\n *   providers: [provideRoutes(routes)]\n * })\n * class ModuleWithRoutes {}\n * ```\n *\n * @publicApi\n * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.\n */\nconst ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents');\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 `ContentChildren`.\n * @see `ContentChild`.\n * @see `ViewChildren`.\n * @see `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, data = {}) => ({\n    selector,\n    first: false,\n    isViewQuery: false,\n    descendants: false,\n    emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n    ...data\n}), Query);\n/**\n * ContentChild decorator and metadata.\n *\n *\n * @Annotation\n *\n * @publicApi\n */\nconst ContentChild = makePropDecorator('ContentChild', (selector, data = {}) => ({ selector, first: true, isViewQuery: false, descendants: true, ...data }), Query);\n/**\n * ViewChildren decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChildren = makePropDecorator('ViewChildren', (selector, data = {}) => ({\n    selector,\n    first: false,\n    isViewQuery: true,\n    descendants: true,\n    emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n    ...data\n}), Query);\n/**\n * ViewChild decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChild = makePropDecorator('ViewChild', (selector, data) => ({ selector, first: true, isViewQuery: true, descendants: true, ...data }), Query);\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.io/license\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;\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 = {}));\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.io/license\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\n            .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 +=\n                `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n            message += '\\n';\n            message +=\n                `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n        }\n        else {\n            message +=\n                `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n        }\n        message +=\n            `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n        message +=\n            `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 * @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.io/license\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 * @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.io/license\n */\n/**\n * Equivalent to ES6 spread, add each item to an array.\n *\n * @param items The items to add\n * @param arr The array to which you want to add the items\n */\nfunction addAllToArray(items, arr) {\n    for (let i = 0; i < items.length; i++) {\n        arr.push(items[i]);\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, dst) {\n    if (dst === undefined)\n        dst = list;\n    for (let i = 0; i < list.length; i++) {\n        let item = list[i];\n        if (Array.isArray(item)) {\n            // we need to inline it.\n            if (dst === list) {\n                // Our assumption that the list was already flat was wrong and\n                // we need to clone flat since we need to write to it.\n                dst = list.slice(0, i);\n            }\n            flatten(item, dst);\n        }\n        else if (dst !== list) {\n            dst.push(item);\n        }\n    }\n    return dst;\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 * Insert a `value` into an `array` so that the array remains sorted.\n *\n * NOTE:\n * - Duplicates are not allowed, and are ignored.\n * - This uses binary search algorithm for fast inserts.\n *\n * @param array A sorted array to insert into.\n * @param value The value to insert.\n * @returns index of the inserted value.\n */\nfunction arrayInsertSorted(array, value) {\n    let index = arrayIndexOfSorted(array, value);\n    if (index < 0) {\n        // if we did not find it insert it.\n        index = ~index;\n        arrayInsert(array, index, value);\n    }\n    return index;\n}\n/**\n * Remove `value` from a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to remove from.\n * @param value The value to remove.\n * @returns index of the removed value.\n *   - positive index if value found and removed.\n *   - negative index if value not found. (`~index` to get the value where it should have been\n *     inserted)\n */\nfunction arrayRemoveSorted(array, value) {\n    const index = arrayIndexOfSorted(array, value);\n    if (index >= 0) {\n        arraySplice(array, index, 1);\n    }\n    return index;\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 * @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.io/license\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 * ```\n *   function MyClass() {\n *     var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\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 * ```\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    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 && 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/**\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.io/license\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 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 \\`EnvironmentInjector#runInContext\\`.`);\n    }\n    else if (_currentInjector === null) {\n        return injectRootLimpMode(token, undefined, flags);\n    }\n    else {\n        return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\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 during instantiation of a dependency by the DI system. It can be used\n * 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 *\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`, `@SkipSef`, 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 * ```typescript\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 * ```typescript\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 * ```typescript\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    if (typeof flags !== 'number') {\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        flags = (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    }\n    return ɵɵinject(token, flags);\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 * @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.io/license\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.\n// tslint:disable-next-line: no-toplevel-property-access\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\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.io/license\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 * @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.io/license\n */\n/**\n * Used to resolve resource URLs on `@Component` when used with JIT compilation.\n *\n * Example:\n * ```\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 styleUrls = component.styleUrls;\n        const styles = component.styles || (component.styles = []);\n        const styleOffset = component.styles.length;\n        styleUrls && 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        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}\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 * @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.io/license\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 * @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.io/license\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\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.io/license\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'`,\n        // because while most browsers return 'function', IE returns 'object'.\n        (typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement &&\n            element instanceof HTMLUnknownElement) ||\n            (typeof customElements !== 'undefined' && 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 ? '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 +=\n                    `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 +=\n                    `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, and we are in a browser context (web worker nodes should be skipped).\n    if (matchingSchemas(schemas, tagName) || propName in element || isAnimationProp(propName)) {\n        return true;\n    }\n    // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we\n    // need to account for both here, while being careful with `typeof null` also returning 'object'.\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 += `\\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 += `\\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 += `\\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 += `\\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 += `\\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'], ['ngFor', 'NgFor'], ['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 * @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.io/license\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\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.io/license\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 = /(<|>)/;\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 * ```\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\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.io/license\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\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.io/license\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    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    /** Component's parent view data. */\n    get lView() {\n        return getLViewById(this.lViewId);\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.io/license\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, false);\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__';\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 extracted from the given view based on the\n * provided list of directive index values.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n * @param includeComponents Whether or not to include components in returned directives\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView, includeComponents) {\n    const tNode = lView[TVIEW].data[nodeIndex];\n    let directiveStartIndex = tNode.directiveStart;\n    if (directiveStartIndex == 0)\n        return EMPTY_ARRAY;\n    const directiveEndIndex = tNode.directiveEnd;\n    if (!includeComponents && tNode.flags & 2 /* TNodeFlags.isComponentHost */)\n        directiveStartIndex++;\n    return lView.slice(directiveStartIndex, directiveEndIndex);\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n    const tNode = lView[TVIEW].data[nodeIndex];\n    let directiveStartIndex = tNode.directiveStart;\n    return tNode.flags & 2 /* TNodeFlags.isComponentHost */ ? lView[directiveStartIndex] : 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 * @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.io/license\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 * @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.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$4 = 1;\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.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$3 = 1;\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.io/license\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}\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 && !(lView[FLAGS] & 256 /* LViewFlags.IsRoot */)) {\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 * @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.io/license\n */\nconst unusedValueToPlacateAjd$2 = unusedValueExportToPlacateAjd$7 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$3 + unusedValueExportToPlacateAjd$8;\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}\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 * 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 removeViewFromContainer(tView, lView) {\n    const renderer = lView[RENDERER];\n    applyView(tView, lView, renderer, 2 /* WalkTNodeTreeAction.Detach */, null, null);\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 addViewToContainer(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 renderDetachView(tView, lView) {\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    // Sets the attached flag\n    lView[FLAGS] |= 64 /* LViewFlags.Attached */;\n}\n/**\n * Track views created from the declaration container (TemplateRef) and inserted into a\n * different LContainer.\n */\nfunction trackMovedView(declarationContainer, lView) {\n    ngDevMode && assertDefined(lView, 'LView required');\n    ngDevMode && assertLContainer(declarationContainer);\n    const movedViews = declarationContainer[MOVED_VIEWS];\n    const insertedLContainer = lView[PARENT];\n    ngDevMode && assertLContainer(insertedLContainer);\n    const insertedComponentLView = insertedLContainer[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[HAS_TRANSPLANTED_VIEWS] = true;\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    const insertionLContainer = lView[PARENT];\n    ngDevMode && assertLContainer(insertionLContainer);\n    // If the view was marked for refresh but then detached before it was checked (where the flag\n    // would be cleared and the counter decremented), we need to decrement the view counter here\n    // instead.\n    if (lView[FLAGS] & 512 /* LViewFlags.RefreshTransplantedView */) {\n        lView[FLAGS] &= ~512 /* LViewFlags.RefreshTransplantedView */;\n        updateTransplantedViewCount(insertionLContainer, -1);\n    }\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        removeViewFromContainer(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] &= ~64 /* 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 (!(lView[FLAGS] & 128 /* LViewFlags.Destroyed */)) {\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/**\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 (!(lView[FLAGS] & 128 /* LViewFlags.Destroyed */)) {\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] &= ~64 /* 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] |= 128 /* LViewFlags.Destroyed */;\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}\n/** Removes listeners and unsubscribes from output subscriptions */\nfunction processCleanups(tView, lView) {\n    const tCleanup = tView.cleanup;\n    const lCleanup = lView[CLEANUP];\n    // `LCleanup` contains both share information with `TCleanup` as well as instance specific\n    // information appended at the end. We need to know where the end of the `TCleanup` information\n    // is, and we track this with `lastLCleanupIndex`.\n    let lastLCleanupIndex = -1;\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\n                const idxOrTargetGetter = tCleanup[i + 1];\n                const target = typeof idxOrTargetGetter === 'function' ?\n                    idxOrTargetGetter(lView) :\n                    unwrapRNode(lView[idxOrTargetGetter]);\n                const listener = lCleanup[lastLCleanupIndex = tCleanup[i + 2]];\n                const useCaptureOrSubIdx = tCleanup[i + 3];\n                if (typeof useCaptureOrSubIdx === 'boolean') {\n                    // native DOM listener registered with Renderer3\n                    target.removeEventListener(tCleanup[i], listener, useCaptureOrSubIdx);\n                }\n                else {\n                    if (useCaptureOrSubIdx >= 0) {\n                        // unregister\n                        lCleanup[lastLCleanupIndex = useCaptureOrSubIdx]();\n                    }\n                    else {\n                        // Subscription\n                        lCleanup[lastLCleanupIndex = -useCaptureOrSubIdx].unsubscribe();\n                    }\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[lastLCleanupIndex = tCleanup[i + 1]];\n                tCleanup[i].call(context);\n            }\n        }\n    }\n    if (lCleanup !== null) {\n        for (let i = lastLCleanupIndex + 1; i < lCleanup.length; i++) {\n            const instanceCleanupFn = lCleanup[i];\n            ngDevMode && assertFunction(instanceCleanupFn, 'Expecting instance cleanup function.');\n            instanceCleanupFn();\n        }\n        lView[CLEANUP] = null;\n    }\n}\n/** Calls onDestroy hooks for this view */\nfunction executeOnDestroys(tView, lView) {\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.\n    while (parentTNode !== null &&\n        (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */))) {\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 (parentTNode.flags & 2 /* TNodeFlags.isComponentHost */) {\n            ngDevMode && assertTNodeForLView(parentTNode, lView);\n            const encapsulation = tView.data[parentTNode.directiveStart].encapsulation;\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$1.None ||\n                encapsulation === ViewEncapsulation$1.Emulated) {\n                return null;\n            }\n        }\n        return getNativeByTNode(parentTNode, lView);\n    }\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/** Removes a node from the DOM given its native parent. */\nfunction nativeRemoveChild(renderer, parent, child, isHostElement) {\n    renderer.removeChild(parent, child, isHostElement);\n}\n/** Checks if an element is a `<template>` node. */\nfunction isTemplateNode(node) {\n    return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\n/**\n * Returns a native parent of a given native node.\n */\nfunction nativeParentNode(renderer, node) {\n    return renderer.parentNode(node);\n}\n/**\n * Returns a native sibling of a given native node.\n */\nfunction nativeNextSibling(renderer, node) {\n    return renderer.nextSibling(node);\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 */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */ | 16 /* TNodeType.Projection */);\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 & 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 * 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    const nativeParent = nativeParentNode(renderer, rNode);\n    if (nativeParent) {\n        nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);\n    }\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        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 |= 4 /* TNodeFlags.isProjected */;\n            }\n        }\n        if ((tNode.flags & 64 /* TNodeFlags.isDetached */) !== 64 /* TNodeFlags.isDetached */) {\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 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        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/**\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\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.io/license\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 * @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.io/license\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 * @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.io/license\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`, `Server`, and `WebWorker`)\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    // 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. Meanwhile we just return `undefined` and let the application fail.\n    return undefined;\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.io/license\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\n                    .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\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.io/license\n */\nclass SafeValueImpl {\n    constructor(changingThisBreaksApplicationSecurity) {\n        this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n    }\n    toString() {\n        return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` +\n            ` (see https://g.co/ng/security#xss)`;\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 ? 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 https://g.co/ng/security#xss)`);\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 * @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.io/license\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    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()\n                .parseFromString(trustedHTMLFromString(html), 'text/html')\n                .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.removeChild(body.firstChild);\n            return body;\n        }\n        catch {\n            return null;\n        }\n    }\n}\n/**\n * Use an HTML5 `template` element, if supported, or an inert body element created via\n * `createHtmlDocument` 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    constructor(defaultDoc) {\n        this.defaultDoc = defaultDoc;\n        this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');\n        if (this.inertDocument.body == null) {\n            // usually there should be only one body element in the document, but IE doesn't have any, so\n            // we need to create one.\n            const inertHtml = this.inertDocument.createElement('html');\n            this.inertDocument.appendChild(inertHtml);\n            const inertBodyElement = this.inertDocument.createElement('body');\n            inertHtml.appendChild(inertBodyElement);\n        }\n    }\n    getInertBodyElement(html) {\n        // Prefer using <template> element if supported.\n        const templateEl = this.inertDocument.createElement('template');\n        if ('content' in templateEl) {\n            templateEl.innerHTML = trustedHTMLFromString(html);\n            return templateEl;\n        }\n        // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`\n        // and we returned the inert `body` node. This was changed, because IE seems to treat setting\n        // `innerHTML` on an inserted element differently, compared to one that hasn't been inserted\n        // yet. In particular, IE appears to split some of the text into multiple text nodes rather\n        // than keeping them in a single one which ends up messing with Ivy's i18n parsing further\n        // down the line. This has been worked around by creating a new inert `body` and using it as\n        // the root node in which we insert the HTML.\n        const inertBody = this.inertDocument.createElement('body');\n        inertBody.innerHTML = trustedHTMLFromString(html);\n        // Support: IE 11 only\n        // strip custom-namespaced attributes on IE<=11\n        if (this.defaultDoc.documentMode) {\n            this.stripCustomNsAttrs(inertBody);\n        }\n        return inertBody;\n    }\n    /**\n     * When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'\n     * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.\n     * 'ns1:xlink:foo').\n     *\n     * This is undesirable since we don't want to allow any of these custom attributes. This method\n     * strips them all.\n     */\n    stripCustomNsAttrs(el) {\n        const elAttrs = el.attributes;\n        // loop backwards so that we can support removals.\n        for (let i = elAttrs.length - 1; 0 < i; i--) {\n            const attrib = elAttrs.item(i);\n            const attrName = attrib.name;\n            if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {\n                el.removeAttribute(attrName);\n            }\n        }\n        let childNode = el.firstChild;\n        while (childNode) {\n            if (childNode.nodeType === Node.ELEMENT_NODE)\n                this.stripCustomNsAttrs(childNode);\n            childNode = childNode.nextSibling;\n        }\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 * @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.io/license\n */\n/**\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\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 (comment from here on and regex copied from\n * Soy's EscapingConventions):\n * (1) Either an allowed protocol (http, https, mailto or ftp).\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. \"h&#116;tp\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo&lt;bar/baz\".  Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript&#58;...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\nconst SAFE_URL_PATTERN = /^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;\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 https://g.co/ng/security#xss)`);\n    }\n    return 'unsafe:' + url;\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.io/license\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    constructor() {\n        // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n        // because characters were re-encoded.\n        this.sanitizedSomething = false;\n        this.buf = [];\n    }\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        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                current = current.firstChild;\n                continue;\n            }\n            while (current) {\n                // Leaving the element. 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 = this.checkClobberedElement(current, current.nextSibling);\n                if (next) {\n                    current = next;\n                    break;\n                }\n                current = this.checkClobberedElement(current, current.parentNode);\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 = element.nodeName.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 = current.nodeName.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    checkClobberedElement(node, nextNode) {\n        if (nextNode &&\n            (node.compareDocumentPosition(nextNode) &\n                Node.DOCUMENT_POSITION_CONTAINED_BY) === Node.DOCUMENT_POSITION_CONTAINED_BY) {\n            throw new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);\n        }\n        return nextNode;\n    }\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.replace(/&/g, '&amp;')\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, '&lt;')\n        .replace(/>/g, '&gt;');\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 https://g.co/ng/security#xss');\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.removeChild(parent.firstChild);\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 * @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.io/license\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 * @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.io/license\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 &&\n        'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');\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' || tag === 'frame' || tag === 'iframe' || 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[SANITIZER];\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.io/license\n */\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = new InjectionToken('ENVIRONMENT_INITIALIZER');\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.io/license\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 = new InjectionToken('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\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.io/license\n */\nconst INJECTOR_DEF_TYPES = new InjectionToken('INJECTOR_DEF_TYPES');\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.io/license\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\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.io/license\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.io/license\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/standalone-components).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```typescript\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 * ```typescript\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 * @developerPreview\n */\nfunction importProvidersFrom(...sources) {\n    return { ɵproviders: internalImportProvidersFrom(true, sources) };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n    const providersOut = [];\n    const dedup = new Set(); // already seen types\n    let injectorTypesWithProviders;\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, providersOut, [], dedup)) {\n            injectorTypesWithProviders || (injectorTypesWithProviders = []);\n            injectorTypesWithProviders.push(internalSource);\n        }\n    });\n    // Collect all providers from `ModuleWithProviders` types.\n    if (injectorTypesWithProviders !== undefined) {\n        processInjectorTypesWithProviders(injectorTypesWithProviders, providersOut);\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, providersOut) {\n    for (let i = 0; i < typesWithProviders.length; i++) {\n        const { ngModule, providers } = typesWithProviders[i];\n        deepForEach(providers, provider => {\n            ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n            providersOut.push(provider);\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, providersOut, 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.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, providersOut, 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, providersOut, parents, dedup)) {\n                        importTypesWithProviders || (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, providersOut);\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            providersOut.push(\n            // Provider to create `defType` using its factory.\n            { provide: defType, useFactory: factory, deps: EMPTY_ARRAY }, \n            // Make this `defType` available to an internal logic that calculates injector scope.\n            { provide: INJECTOR_DEF_TYPES, useValue: defType, multi: true }, \n            // Provider to eagerly instantiate `defType` via `ENVIRONMENT_INITIALIZER`.\n            { provide: ENVIRONMENT_INITIALIZER, useValue: () => ɵɵinject(defType), multi: true } //\n            );\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            deepForEach(defProviders, provider => {\n                ngDevMode && validateProvider(provider, defProviders, injectorType);\n                providersOut.push(provider);\n            });\n        }\n    }\n    else {\n        // Should not happen, but just in case.\n        return false;\n    }\n    return (defType !== container &&\n        container.providers !== undefined);\n}\nfunction validateProvider(provider, providers, containerType) {\n    if (isTypeProvider(provider) || isValueProvider(provider) || 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}\nconst USE_VALUE$1 = getClosureSafeProperty({ provide: String, useValue: getClosureSafeProperty });\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 * @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.io/license\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('Set Injector scope.');\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.io/license\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$1 = undefined;\nfunction getNullInjector() {\n    if (NULL_INJECTOR$1 === undefined) {\n        NULL_INJECTOR$1 = new NullInjector();\n    }\n    return NULL_INJECTOR$1;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n *\n * @developerPreview\n */\nclass EnvironmentInjector {\n}\nclass R3Injector extends EnvironmentInjector {\n    constructor(providers, parent, source, scopes) {\n        super();\n        this.parent = parent;\n        this.source = source;\n        this.scopes = 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        this.records = new Map();\n        /**\n         * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n         */\n        this._ngOnDestroyHooks = new Set();\n        this._onDestroyHooks = [];\n        this._destroyed = false;\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, 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 =\n            new Set(this.get(INJECTOR_DEF_TYPES.multi, EMPTY_ARRAY, InjectFlags.Self));\n    }\n    /**\n     * Flag indicating that this injector was previously destroyed.\n     */\n    get destroyed() {\n        return this._destroyed;\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        this.assertNotDestroyed();\n        // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n        this._destroyed = true;\n        try {\n            // Call all the lifecycle hooks.\n            for (const service of this._ngOnDestroyHooks) {\n                service.ngOnDestroy();\n            }\n            for (const hook of this._onDestroyHooks) {\n                hook();\n            }\n        }\n        finally {\n            // Release all references.\n            this.records.clear();\n            this._ngOnDestroyHooks.clear();\n            this.injectorDefTypes.clear();\n            this._onDestroyHooks.length = 0;\n        }\n    }\n    onDestroy(callback) {\n        this._onDestroyHooks.push(callback);\n    }\n    runInContext(fn) {\n        this.assertNotDestroyed();\n        const previousInjector = setCurrentInjector(this);\n        const previousInjectImplementation = setInjectImplementation(undefined);\n        try {\n            return fn();\n        }\n        finally {\n            setCurrentInjector(previousInjector);\n            setInjectImplementation(previousInjectImplementation);\n        }\n    }\n    get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n        this.assertNotDestroyed();\n        // Set the injection context.\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                        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 = (flags & InjectFlags.Optional) && notFoundValue === THROW_IF_NOT_FOUND ?\n                null :\n                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        }\n    }\n    /** @internal */\n    resolveInjectorInitializers() {\n        const previousInjector = setCurrentInjector(this);\n        const previousInjectImplementation = setInjectImplementation(undefined);\n        try {\n            const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, 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        }\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    assertNotDestroyed() {\n        if (this._destroyed) {\n            throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n        }\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) ? provider : resolveForwardRef(provider && provider.provide);\n        // Construct a `Record` for the provider.\n        const record = providerToRecord(provider);\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            const existing = this.records.get(token);\n            if (ngDevMode && existing && existing.multi !== undefined) {\n                throwMixedMultiProviderError();\n            }\n        }\n        this.records.set(token, record);\n    }\n    hydrate(token, record) {\n        if (ngDevMode && record.value === CIRCULAR) {\n            throwCyclicDependencyError(stringify(token));\n        }\n        else if (record.value === NOT_YET) {\n            record.value = CIRCULAR;\n            record.value = record.factory();\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    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}\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        const args = newArray(paramLength, '?');\n        throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Can't resolve all parameters for ${stringify(token)}: (${args.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 && isImportedNgModuleProviders(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 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 && typeof value === 'object' &&\n        typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n    return (typeof value === 'function') ||\n        (typeof value === 'object' && value instanceof InjectionToken);\n}\nfunction isImportedNgModuleProviders(provider) {\n    return !!provider.ɵproviders;\n}\nfunction forEachSingleProvider(providers, fn) {\n    for (const provider of providers) {\n        if (Array.isArray(provider)) {\n            forEachSingleProvider(provider, fn);\n        }\n        else if (isImportedNgModuleProviders(provider)) {\n            forEachSingleProvider(provider.ɵproviders, fn);\n        }\n        else {\n            fn(provider);\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.io/license\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 * @see [Dynamic Components](guide/dynamic-component-loader)\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\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.io/license\n */\nfunction noComponentFactoryError(component) {\n    const error = Error(`No component factory found for ${stringify(component)}. Did you add it to @NgModule.entryComponents?`);\n    error[ERROR_COMPONENT] = component;\n    return error;\n}\nconst ERROR_COMPONENT = 'ngComponent';\nfunction getComponent$1(error) {\n    return error[ERROR_COMPONENT];\n}\nclass _NullComponentFactoryResolver {\n    resolveComponentFactory(component) {\n        throw noComponentFactoryError(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}\nComponentFactoryResolver$1.NULL = ( /* @__PURE__ */new _NullComponentFactoryResolver());\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.io/license\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    constructor(nativeElement) {\n        this.nativeElement = nativeElement;\n    }\n}\n/**\n * @internal\n * @nocollapse\n */\nElementRef.__NG_ELEMENT_ID__ = injectElementRef;\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\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.io/license\n */\nconst Renderer2Interceptor = new InjectionToken('Renderer2Interceptor');\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/**\n * @internal\n * @nocollapse\n */\nRenderer2.__NG_ELEMENT_ID__ = () => injectRenderer2();\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 * @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.io/license\n */\n/**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @publicApi\n */\nclass Sanitizer {\n}\n/** @nocollapse */\nSanitizer.ɵprov = ɵɵdefineInjectable({\n    token: Sanitizer,\n    providedIn: 'root',\n    factory: () => 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.io/license\n */\n/**\n * @description Represents the version of Angular\n *\n * @publicApi\n */\nclass Version {\n    constructor(full) {\n        this.full = full;\n        this.major = full.split('.')[0];\n        this.minor = full.split('.')[1];\n        this.patch = full.split('.').slice(2).join('.');\n    }\n}\n/**\n * @publicApi\n */\nconst VERSION = new Version('14.3.0');\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.io/license\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 * @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.io/license\n */\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nfunction wrappedError(message, originalError) {\n    const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n    const error = Error(msg);\n    error[ERROR_ORIGINAL_ERROR] = originalError;\n    return error;\n}\nfunction getOriginalError(error) {\n    return error[ERROR_ORIGINAL_ERROR];\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.io/license\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 * ```\n * class MyErrorHandler implements ErrorHandler {\n *   handleError(error) {\n *     // do something with the exception\n *   }\n * }\n *\n * @NgModule({\n *   providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n    constructor() {\n        /**\n         * @internal\n         */\n        this._console = console;\n    }\n    handleError(error) {\n        const originalError = this._findOriginalError(error);\n        this._console.error('ERROR', error);\n        if (originalError) {\n            this._console.error('ORIGINAL ERROR', originalError);\n        }\n    }\n    /** @internal */\n    _findOriginalError(error) {\n        let e = error && getOriginalError(error);\n        while (e && getOriginalError(e)) {\n            e = getOriginalError(e);\n        }\n        return e || null;\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.io/license\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 * @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.io/license\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 * @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.io/license\n */\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) {\n    const field = propName ? ` for '${propName}'` : '';\n    let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${oldValue}'. Current value: '${currValue}'.`;\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 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/**\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.io/license\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\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.io/license\n */\nconst unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$4;\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\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(attrs, cssClassToMatch, isProjectionMode) {\n    // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.\n    // It is strange to me that sometimes the class information comes in form of `class` attribute\n    // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine\n    // if that is the right behavior.\n    ngDevMode &&\n        assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n    let i = 0;\n    while (i < attrs.length) {\n        let item = attrs[i++];\n        if (isProjectionMode && item === 'class') {\n            item = attrs[i];\n            if (classIndexOf(item.toLowerCase(), cssClassToMatch, 0) !== -1) {\n                return true;\n            }\n        }\n        else if (item === 1 /* AttributeMarker.Classes */) {\n            // We found the classes section. Start searching for the class.\n            while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {\n                // while we have strings\n                if (item.toLowerCase() === cssClassToMatch)\n                    return true;\n            }\n            return false;\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 node 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 = getNameOnlyMarkerIndex(nodeAttrs);\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 {\n            const selectorAttrValue = mode & 8 /* SelectorFlags.CLASS */ ? current : selector[++i];\n            // special case for matching against classes when a tNode has been instantiated with\n            // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])\n            if ((mode & 8 /* SelectorFlags.CLASS */) && tNode.attrs !== null) {\n                if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {\n                    if (isPositive(mode))\n                        return false;\n                    skipToNextSelector = true;\n                }\n                continue;\n            }\n            const attrName = (mode & 8 /* SelectorFlags.CLASS */) ? 'class' : current;\n            const attrIndexInNode = findAttrIndexInNode(attrName, 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                const compareAgainstClassName = mode & 8 /* SelectorFlags.CLASS */ ? nodeAttrValue : null;\n                if (compareAgainstClassName &&\n                    classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 ||\n                    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 */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n                bindingsMode = true;\n            }\n            else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || 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    return { attrs, classes };\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.io/license\n */\n/** A special value which designates that a value has not changed. */\nconst NO_CHANGE = (typeof ngDevMode === 'undefined' || ngDevMode) ? { __brand__: 'NO_CHANGE' } : {};\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.io/license\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) {\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, 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\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.io/license\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 * @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.io/license\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'injectable', type });\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'injectable', type });\n                    ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n                        name: type.name,\n                        type,\n                        typeArgumentCount: 0,\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({ provide: String, useValue: getClosureSafeProperty });\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 * @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.io/license\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 * @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.io/license\n */\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.\n *\n * @publicApi\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 = [\n        additionalProviders || EMPTY_ARRAY,\n        importProvidersFrom(defType),\n    ];\n    name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n    return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\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.io/license\n */\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/glossary#provider) that associate\n * dependencies of various types with [injection tokens](guide/glossary#di-token).\n *\n * @see [\"DI Providers\"](guide/dependency-injection-providers).\n * @see `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 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}\nInjector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\nInjector.NULL = ( /* @__PURE__ */new NullInjector());\n/** @nocollapse */\nInjector.ɵprov = ɵɵdefineInjectable({\n    token: Injector,\n    providedIn: 'any',\n    factory: () => ɵɵinject(INJECTOR),\n});\n/**\n * @internal\n * @nocollapse\n */\nInjector.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;\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.io/license\n */\nfunction findFirstClosedCycle(keys) {\n    const res = [];\n    for (let i = 0; i < keys.length; ++i) {\n        if (res.indexOf(keys[i]) > -1) {\n            res.push(keys[i]);\n            return res;\n        }\n        res.push(keys[i]);\n    }\n    return res;\n}\nfunction constructResolvingPath(keys) {\n    if (keys.length > 1) {\n        const reversed = findFirstClosedCycle(keys.slice().reverse());\n        const tokenStrs = reversed.map(k => stringify(k.token));\n        return ' (' + tokenStrs.join(' -> ') + ')';\n    }\n    return '';\n}\nfunction injectionError(injector, key, constructResolvingMessage, originalError) {\n    const keys = [key];\n    const errMsg = constructResolvingMessage(keys);\n    const error = (originalError ? wrappedError(errMsg, originalError) : Error(errMsg));\n    error.addKey = addKey;\n    error.keys = keys;\n    error.injectors = [injector];\n    error.constructResolvingMessage = constructResolvingMessage;\n    error[ERROR_ORIGINAL_ERROR] = originalError;\n    return error;\n}\nfunction addKey(injector, key) {\n    this.injectors.push(injector);\n    this.keys.push(key);\n    // Note: This updated message won't be reflected in the `.stack` property\n    this.message = this.constructResolvingMessage(this.keys);\n}\n/**\n * Thrown when trying to retrieve a dependency by key from {@link Injector}, but the\n * {@link Injector} does not have a {@link Provider} for the given key.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n *   constructor(b:B) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n */\nfunction noProviderError(injector, key) {\n    return injectionError(injector, key, function (keys) {\n        const first = stringify(keys[0].token);\n        return `No provider for ${first}!${constructResolvingPath(keys)}`;\n    });\n}\n/**\n * Thrown when dependencies form a cycle.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * var injector = Injector.resolveAndCreate([\n *   {provide: \"one\", useFactory: (two) => \"two\", deps: [[new Inject(\"two\")]]},\n *   {provide: \"two\", useFactory: (one) => \"one\", deps: [[new Inject(\"one\")]]}\n * ]);\n *\n * expect(() => injector.get(\"one\")).toThrowError();\n * ```\n *\n * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.\n */\nfunction cyclicDependencyError(injector, key) {\n    return injectionError(injector, key, function (keys) {\n        return `Cannot instantiate cyclic dependency!${constructResolvingPath(keys)}`;\n    });\n}\n/**\n * Thrown when a constructing type returns with an Error.\n *\n * The `InstantiationError` class contains the original error plus the dependency graph which caused\n * this object to be instantiated.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n *   constructor() {\n *     throw new Error('message');\n *   }\n * }\n *\n * var injector = Injector.resolveAndCreate([A]);\n\n * try {\n *   injector.get(A);\n * } catch (e) {\n *   expect(e instanceof InstantiationError).toBe(true);\n *   expect(e.originalException.message).toEqual(\"message\");\n *   expect(e.originalStack).toBeDefined();\n * }\n * ```\n */\nfunction instantiationError(injector, originalException, originalStack, key) {\n    return injectionError(injector, key, function (keys) {\n        const first = stringify(keys[0].token);\n        return `${originalException.message}: Error during instantiation of ${first}!${constructResolvingPath(keys)}.`;\n    }, originalException);\n}\n/**\n * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}\n * creation.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\"not a type\"])).toThrowError();\n * ```\n */\nfunction invalidProviderError(provider) {\n    return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${provider}`);\n}\n/**\n * Thrown when the class has no annotation information.\n *\n * Lack of annotation information prevents the {@link Injector} from determining which dependencies\n * need to be injected into the constructor.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n *   constructor(b) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n *\n * This error is also thrown when the class not marked with {@link Injectable} has parameter types.\n *\n * ```typescript\n * class B {}\n *\n * class A {\n *   constructor(b:B) {} // no information about the parameter types of A is available at runtime.\n * }\n *\n * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();\n * ```\n *\n */\nfunction noAnnotationError(typeOrFunc, params) {\n    const signature = [];\n    for (let i = 0, ii = params.length; i < ii; i++) {\n        const parameter = params[i];\n        if (!parameter || parameter.length == 0) {\n            signature.push('?');\n        }\n        else {\n            signature.push(parameter.map(stringify).join(' '));\n        }\n    }\n    return Error('Cannot resolve all parameters for \\'' + stringify(typeOrFunc) + '\\'(' +\n        signature.join(', ') + '). ' +\n        'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \\'' +\n        stringify(typeOrFunc) + '\\' is decorated with Injectable.');\n}\n/**\n * Thrown when getting an object by index.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {}\n *\n * var injector = Injector.resolveAndCreate([A]);\n *\n * expect(() => injector.getAt(100)).toThrowError();\n * ```\n *\n */\nfunction outOfBoundsError(index) {\n    return Error(`Index ${index} is out-of-bounds.`);\n}\n// TODO: add a working example after alpha38 is released\n/**\n * Thrown when a multi provider and a regular provider are bound to the same token.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\n *   { provide: \"Strings\", useValue: \"string1\", multi: true},\n *   { provide: \"Strings\", useValue: \"string2\", multi: false}\n * ])).toThrowError();\n * ```\n */\nfunction mixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\n    return Error(`Cannot mix multi providers and regular providers, got: ${provider1} ${provider2}`);\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.io/license\n */\n/**\n * A unique object used for retrieving items from the {@link ReflectiveInjector}.\n *\n * Keys have:\n * - a system-wide unique `id`.\n * - a `token`.\n *\n * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows\n * the\n * injector to store created objects in a more efficient way.\n *\n * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when\n * resolving\n * providers.\n *\n * @deprecated No replacement\n * @publicApi\n */\nclass ReflectiveKey {\n    /**\n     * Private\n     */\n    constructor(token, id) {\n        this.token = token;\n        this.id = id;\n        if (!token) {\n            throw new RuntimeError(208 /* RuntimeErrorCode.MISSING_INJECTION_TOKEN */, ngDevMode && 'Token must be defined!');\n        }\n        this.displayName = stringify(this.token);\n    }\n    /**\n     * Retrieves a `Key` for a token.\n     */\n    static get(token) {\n        return _globalKeyRegistry.get(resolveForwardRef(token));\n    }\n    /**\n     * @returns the number of keys registered in the system.\n     */\n    static get numberOfKeys() {\n        return _globalKeyRegistry.numberOfKeys;\n    }\n}\nclass KeyRegistry {\n    constructor() {\n        this._allKeys = new Map();\n    }\n    get(token) {\n        if (token instanceof ReflectiveKey)\n            return token;\n        if (this._allKeys.has(token)) {\n            return this._allKeys.get(token);\n        }\n        const newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);\n        this._allKeys.set(token, newKey);\n        return newKey;\n    }\n    get numberOfKeys() {\n        return this._allKeys.size;\n    }\n}\nconst _globalKeyRegistry = new KeyRegistry();\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.io/license\n */\n/**\n * `Dependency` is used by the framework to extend DI.\n * This is internal to Angular and should not be used directly.\n */\nclass ReflectiveDependency {\n    constructor(key, optional, visibility) {\n        this.key = key;\n        this.optional = optional;\n        this.visibility = visibility;\n    }\n    static fromKey(key) {\n        return new ReflectiveDependency(key, false, null);\n    }\n}\nconst _EMPTY_LIST = [];\nclass ResolvedReflectiveProvider_ {\n    constructor(key, resolvedFactories, multiProvider) {\n        this.key = key;\n        this.resolvedFactories = resolvedFactories;\n        this.multiProvider = multiProvider;\n        this.resolvedFactory = this.resolvedFactories[0];\n    }\n}\n/**\n * An internal resolved representation of a factory function created by resolving `Provider`.\n * @publicApi\n */\nclass ResolvedReflectiveFactory {\n    constructor(\n    /**\n     * Factory function which can return an instance of an object represented by a key.\n     */\n    factory, \n    /**\n     * Arguments (dependencies) to the `factory` function.\n     */\n    dependencies) {\n        this.factory = factory;\n        this.dependencies = dependencies;\n    }\n}\n/**\n * Resolve a single provider.\n */\nfunction resolveReflectiveFactory(provider) {\n    let factoryFn;\n    let resolvedDeps;\n    if (provider.useClass) {\n        const useClass = resolveForwardRef(provider.useClass);\n        factoryFn = getReflect().factory(useClass);\n        resolvedDeps = _dependenciesFor(useClass);\n    }\n    else if (provider.useExisting) {\n        factoryFn = (aliasInstance) => aliasInstance;\n        resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];\n    }\n    else if (provider.useFactory) {\n        factoryFn = provider.useFactory;\n        resolvedDeps = constructDependencies(provider.useFactory, provider.deps);\n    }\n    else {\n        factoryFn = () => provider.useValue;\n        resolvedDeps = _EMPTY_LIST;\n    }\n    return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);\n}\n/**\n * Converts the `Provider` into `ResolvedProvider`.\n *\n * `Injector` internally only uses `ResolvedProvider`, `Provider` contains convenience provider\n * syntax.\n */\nfunction resolveReflectiveProvider(provider) {\n    return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi || false);\n}\n/**\n * Resolve a list of Providers.\n */\nfunction resolveReflectiveProviders(providers) {\n    const normalized = _normalizeProviders(providers, []);\n    const resolved = normalized.map(resolveReflectiveProvider);\n    const resolvedProviderMap = mergeResolvedReflectiveProviders(resolved, new Map());\n    return Array.from(resolvedProviderMap.values());\n}\n/**\n * Merges a list of ResolvedProviders into a list where each key is contained exactly once and\n * multi providers have been merged.\n */\nfunction mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {\n    for (let i = 0; i < providers.length; i++) {\n        const provider = providers[i];\n        const existing = normalizedProvidersMap.get(provider.key.id);\n        if (existing) {\n            if (provider.multiProvider !== existing.multiProvider) {\n                throw mixingMultiProvidersWithRegularProvidersError(existing, provider);\n            }\n            if (provider.multiProvider) {\n                for (let j = 0; j < provider.resolvedFactories.length; j++) {\n                    existing.resolvedFactories.push(provider.resolvedFactories[j]);\n                }\n            }\n            else {\n                normalizedProvidersMap.set(provider.key.id, provider);\n            }\n        }\n        else {\n            let resolvedProvider;\n            if (provider.multiProvider) {\n                resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider);\n            }\n            else {\n                resolvedProvider = provider;\n            }\n            normalizedProvidersMap.set(provider.key.id, resolvedProvider);\n        }\n    }\n    return normalizedProvidersMap;\n}\nfunction _normalizeProviders(providers, res) {\n    providers.forEach(b => {\n        if (b instanceof Type) {\n            res.push({ provide: b, useClass: b });\n        }\n        else if (b && typeof b == 'object' && b.provide !== undefined) {\n            res.push(b);\n        }\n        else if (Array.isArray(b)) {\n            _normalizeProviders(b, res);\n        }\n        else {\n            throw invalidProviderError(b);\n        }\n    });\n    return res;\n}\nfunction constructDependencies(typeOrFunc, dependencies) {\n    if (!dependencies) {\n        return _dependenciesFor(typeOrFunc);\n    }\n    else {\n        const params = dependencies.map(t => [t]);\n        return dependencies.map(t => _extractToken(typeOrFunc, t, params));\n    }\n}\nfunction _dependenciesFor(typeOrFunc) {\n    const params = getReflect().parameters(typeOrFunc);\n    if (!params)\n        return [];\n    if (params.some(p => p == null)) {\n        throw noAnnotationError(typeOrFunc, params);\n    }\n    return params.map(p => _extractToken(typeOrFunc, p, params));\n}\nfunction _extractToken(typeOrFunc, metadata, params) {\n    let token = null;\n    let optional = false;\n    if (!Array.isArray(metadata)) {\n        if (metadata instanceof Inject) {\n            return _createDependency(metadata.token, optional, null);\n        }\n        else {\n            return _createDependency(metadata, optional, null);\n        }\n    }\n    let visibility = null;\n    for (let i = 0; i < metadata.length; ++i) {\n        const paramMetadata = metadata[i];\n        if (paramMetadata instanceof Type) {\n            token = paramMetadata;\n        }\n        else if (paramMetadata instanceof Inject) {\n            token = paramMetadata.token;\n        }\n        else if (paramMetadata instanceof Optional) {\n            optional = true;\n        }\n        else if (paramMetadata instanceof Self || paramMetadata instanceof SkipSelf) {\n            visibility = paramMetadata;\n        }\n        else if (paramMetadata instanceof InjectionToken) {\n            token = paramMetadata;\n        }\n    }\n    token = resolveForwardRef(token);\n    if (token != null) {\n        return _createDependency(token, optional, visibility);\n    }\n    else {\n        throw noAnnotationError(typeOrFunc, params);\n    }\n}\nfunction _createDependency(token, optional, visibility) {\n    return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);\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.io/license\n */\n// Threshold for the dynamic version\nconst UNDEFINED = {};\n/**\n * A ReflectiveDependency injection container used for instantiating objects and resolving\n * dependencies.\n *\n * An `Injector` is a replacement for a `new` operator, which can automatically resolve the\n * constructor dependencies.\n *\n * In typical use, application code asks for the dependencies in the constructor and they are\n * resolved by the `Injector`.\n *\n * @usageNotes\n * ### Example\n *\n * The following example creates an `Injector` configured to create `Engine` and `Car`.\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n *   constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n * var car = injector.get(Car);\n * expect(car instanceof Car).toBe(true);\n * expect(car.engine instanceof Engine).toBe(true);\n * ```\n *\n * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`\n * resolve all of the object's dependencies automatically.\n *\n * TODO: delete in v14.\n *\n * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.\n * @publicApi\n */\nclass ReflectiveInjector {\n    /**\n     * Turns an array of provider definitions into an array of resolved providers.\n     *\n     * A resolution is a process of flattening multiple nested arrays and converting individual\n     * providers into an array of `ResolvedReflectiveProvider`s.\n     *\n     * @usageNotes\n     * ### Example\n     *\n     * ```typescript\n     * @Injectable()\n     * class Engine {\n     * }\n     *\n     * @Injectable()\n     * class Car {\n     *   constructor(public engine:Engine) {}\n     * }\n     *\n     * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);\n     *\n     * expect(providers.length).toEqual(2);\n     *\n     * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);\n     * expect(providers[0].key.displayName).toBe(\"Car\");\n     * expect(providers[0].dependencies.length).toEqual(1);\n     * expect(providers[0].factory).toBeDefined();\n     *\n     * expect(providers[1].key.displayName).toBe(\"Engine\");\n     * });\n     * ```\n     *\n     */\n    static resolve(providers) {\n        return resolveReflectiveProviders(providers);\n    }\n    /**\n     * Resolves an array of providers and creates an injector from those providers.\n     *\n     * The passed-in providers can be an array of `Type`, `Provider`,\n     * or a recursive array of more providers.\n     *\n     * @usageNotes\n     * ### Example\n     *\n     * ```typescript\n     * @Injectable()\n     * class Engine {\n     * }\n     *\n     * @Injectable()\n     * class Car {\n     *   constructor(public engine:Engine) {}\n     * }\n     *\n     * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n     * expect(injector.get(Car) instanceof Car).toBe(true);\n     * ```\n     */\n    static resolveAndCreate(providers, parent) {\n        const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n        return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);\n    }\n    /**\n     * Creates an injector from previously resolved providers.\n     *\n     * This API is the recommended way to construct injectors in performance-sensitive parts.\n     *\n     * @usageNotes\n     * ### Example\n     *\n     * ```typescript\n     * @Injectable()\n     * class Engine {\n     * }\n     *\n     * @Injectable()\n     * class Car {\n     *   constructor(public engine:Engine) {}\n     * }\n     *\n     * var providers = ReflectiveInjector.resolve([Car, Engine]);\n     * var injector = ReflectiveInjector.fromResolvedProviders(providers);\n     * expect(injector.get(Car) instanceof Car).toBe(true);\n     * ```\n     */\n    static fromResolvedProviders(providers, parent) {\n        return new ReflectiveInjector_(providers, parent);\n    }\n}\nclass ReflectiveInjector_ {\n    /**\n     * Private\n     */\n    constructor(_providers, _parent) {\n        /** @internal */\n        this._constructionCounter = 0;\n        this._providers = _providers;\n        this.parent = _parent || null;\n        const len = _providers.length;\n        this.keyIds = [];\n        this.objs = [];\n        for (let i = 0; i < len; i++) {\n            this.keyIds[i] = _providers[i].key.id;\n            this.objs[i] = UNDEFINED;\n        }\n    }\n    get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n        return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);\n    }\n    resolveAndCreateChild(providers) {\n        const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n        return this.createChildFromResolved(ResolvedReflectiveProviders);\n    }\n    createChildFromResolved(providers) {\n        const inj = new ReflectiveInjector_(providers);\n        inj.parent = this;\n        return inj;\n    }\n    resolveAndInstantiate(provider) {\n        return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);\n    }\n    instantiateResolved(provider) {\n        return this._instantiateProvider(provider);\n    }\n    getProviderAtIndex(index) {\n        if (index < 0 || index >= this._providers.length) {\n            throw outOfBoundsError(index);\n        }\n        return this._providers[index];\n    }\n    /** @internal */\n    _new(provider) {\n        if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {\n            throw cyclicDependencyError(this, provider.key);\n        }\n        return this._instantiateProvider(provider);\n    }\n    _getMaxNumberOfObjects() {\n        return this.objs.length;\n    }\n    _instantiateProvider(provider) {\n        if (provider.multiProvider) {\n            const res = [];\n            for (let i = 0; i < provider.resolvedFactories.length; ++i) {\n                res[i] = this._instantiate(provider, provider.resolvedFactories[i]);\n            }\n            return res;\n        }\n        else {\n            return this._instantiate(provider, provider.resolvedFactories[0]);\n        }\n    }\n    _instantiate(provider, ResolvedReflectiveFactory) {\n        const factory = ResolvedReflectiveFactory.factory;\n        let deps;\n        try {\n            deps =\n                ResolvedReflectiveFactory.dependencies.map(dep => this._getByReflectiveDependency(dep));\n        }\n        catch (e) {\n            if (e.addKey) {\n                e.addKey(this, provider.key);\n            }\n            throw e;\n        }\n        let obj;\n        try {\n            obj = factory(...deps);\n        }\n        catch (e) {\n            throw instantiationError(this, e, e.stack, provider.key);\n        }\n        return obj;\n    }\n    _getByReflectiveDependency(dep) {\n        return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);\n    }\n    _getByKey(key, visibility, notFoundValue) {\n        if (key === ReflectiveInjector_.INJECTOR_KEY) {\n            return this;\n        }\n        if (visibility instanceof Self) {\n            return this._getByKeySelf(key, notFoundValue);\n        }\n        else {\n            return this._getByKeyDefault(key, notFoundValue, visibility);\n        }\n    }\n    _getObjByKeyId(keyId) {\n        for (let i = 0; i < this.keyIds.length; i++) {\n            if (this.keyIds[i] === keyId) {\n                if (this.objs[i] === UNDEFINED) {\n                    this.objs[i] = this._new(this._providers[i]);\n                }\n                return this.objs[i];\n            }\n        }\n        return UNDEFINED;\n    }\n    /** @internal */\n    _throwOrNull(key, notFoundValue) {\n        if (notFoundValue !== THROW_IF_NOT_FOUND) {\n            return notFoundValue;\n        }\n        else {\n            throw noProviderError(this, key);\n        }\n    }\n    /** @internal */\n    _getByKeySelf(key, notFoundValue) {\n        const obj = this._getObjByKeyId(key.id);\n        return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);\n    }\n    /** @internal */\n    _getByKeyDefault(key, notFoundValue, visibility) {\n        let inj;\n        if (visibility instanceof SkipSelf) {\n            inj = this.parent;\n        }\n        else {\n            inj = this;\n        }\n        while (inj instanceof ReflectiveInjector_) {\n            const inj_ = inj;\n            const obj = inj_._getObjByKeyId(key.id);\n            if (obj !== UNDEFINED)\n                return obj;\n            inj = inj_.parent;\n        }\n        if (inj !== null) {\n            return inj.get(key.token, notFoundValue);\n        }\n        else {\n            return this._throwOrNull(key, notFoundValue);\n        }\n    }\n    get displayName() {\n        const providers = _mapProviders(this, (b) => ' \"' + b.key.displayName + '\" ')\n            .join(', ');\n        return `ReflectiveInjector(providers: [${providers}])`;\n    }\n    toString() {\n        return this.displayName;\n    }\n}\nReflectiveInjector_.INJECTOR_KEY = ( /* @__PURE__ */ReflectiveKey.get(Injector));\nfunction _mapProviders(injector, fn) {\n    const res = [];\n    for (let i = 0; i < injector._providers.length; ++i) {\n        res[i] = fn(injector.getProviderAtIndex(i));\n    }\n    return res;\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.io/license\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.io/license\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.io/license\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    return getOrCreateInjectable(tNode, lView, 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 * 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 ? `This constructor was not compatible with Dependency Injection.` : 'invalid';\n    throw new Error(msg);\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.io/license\n */\n/**\n * THIS FILE CONTAINS CODE WHICH SHOULD BE TREE SHAKEN AND NEVER CALLED FROM PRODUCTION CODE!!!\n */\n/**\n * Creates an `Array` construction with a given name. This is useful when\n * looking for memory consumption to see what time of array it is.\n *\n *\n * @param name Name to give to the constructor\n * @returns A subclass of `Array` if possible. This can only be done in\n *          environments which support `class` construct.\n */\nfunction createNamedArrayType(name) {\n    // This should never be called in prod mode, so let's verify that is the case.\n    if (ngDevMode) {\n        try {\n            // If this function were compromised the following could lead to arbitrary\n            // script execution. We bless it with Trusted Types anyway since this\n            // function is stripped out of production binaries.\n            return (newTrustedFunctionForDev('Array', `return class ${name} extends Array{}`))(Array);\n        }\n        catch (e) {\n            // If it does not work just give up and fall back to regular Array.\n            return Array;\n        }\n    }\n    else {\n        throw new Error('Looks like we are in \\'prod mode\\', but we are creating a named Array type, which is wrong! Check your code');\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.io/license\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 */) ==\n        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 */) ===\n        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 * @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.io/license\n */\n/**\n * Patch a `debug` property 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 debug Value to patch\n */\nfunction attachDebugObject(obj, debug) {\n    if (ngDevMode) {\n        Object.defineProperty(obj, 'debug', { value: debug, 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 * 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/**\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.io/license\n */\n/*\n * This file contains conditionally attached classes which provide human readable (debug) level\n * information for `LView`, `LContainer` and other internal data structures. These data structures\n * are stored internally as array which makes it very difficult during debugging to reason about the\n * current state of the system.\n *\n * Patching the array with extra property does change the array's hidden class' but it does not\n * change the cost of access, therefore this patching should not have significant if any impact in\n * `ngDevMode` mode. (see: https://jsperf.com/array-vs-monkey-patch-array)\n *\n * So instead of seeing:\n * ```\n * Array(30) [Object, 659, null, …]\n * ```\n *\n * You get to see:\n * ```\n * LViewDebug {\n *   views: [...],\n *   flags: {attached: true, ...}\n *   nodes: [\n *     {html: '<div id=\"123\">', ..., nodes: [\n *       {html: '<span>', ..., nodes: null}\n *     ]}\n *   ]\n * }\n * ```\n */\nlet LVIEW_COMPONENT_CACHE;\nlet LVIEW_EMBEDDED_CACHE;\nlet LVIEW_ROOT;\nlet LVIEW_COMPONENT;\nlet LVIEW_EMBEDDED;\n/**\n * This function clones a blueprint and creates LView.\n *\n * Simple slice will keep the same type, and we need it to be LView\n */\nfunction cloneToLViewFromTViewBlueprint(tView) {\n    const debugTView = tView;\n    const lView = getLViewToClone(debugTView.type, tView.template && tView.template.name);\n    return lView.concat(tView.blueprint);\n}\nclass LRootView extends Array {\n}\nclass LComponentView extends Array {\n}\nclass LEmbeddedView extends Array {\n}\nfunction getLViewToClone(type, name) {\n    switch (type) {\n        case 0 /* TViewType.Root */:\n            if (LVIEW_ROOT === undefined)\n                LVIEW_ROOT = new LRootView();\n            return LVIEW_ROOT;\n        case 1 /* TViewType.Component */:\n            if (!ngDevMode || !ngDevMode.namedConstructors) {\n                if (LVIEW_COMPONENT === undefined)\n                    LVIEW_COMPONENT = new LComponentView();\n                return LVIEW_COMPONENT;\n            }\n            if (LVIEW_COMPONENT_CACHE === undefined)\n                LVIEW_COMPONENT_CACHE = new Map();\n            let componentArray = LVIEW_COMPONENT_CACHE.get(name);\n            if (componentArray === undefined) {\n                componentArray = new (createNamedArrayType('LComponentView' + nameSuffix(name)))();\n                LVIEW_COMPONENT_CACHE.set(name, componentArray);\n            }\n            return componentArray;\n        case 2 /* TViewType.Embedded */:\n            if (!ngDevMode || !ngDevMode.namedConstructors) {\n                if (LVIEW_EMBEDDED === undefined)\n                    LVIEW_EMBEDDED = new LEmbeddedView();\n                return LVIEW_EMBEDDED;\n            }\n            if (LVIEW_EMBEDDED_CACHE === undefined)\n                LVIEW_EMBEDDED_CACHE = new Map();\n            let embeddedArray = LVIEW_EMBEDDED_CACHE.get(name);\n            if (embeddedArray === undefined) {\n                embeddedArray = new (createNamedArrayType('LEmbeddedView' + nameSuffix(name)))();\n                LVIEW_EMBEDDED_CACHE.set(name, embeddedArray);\n            }\n            return embeddedArray;\n    }\n}\nfunction nameSuffix(text) {\n    if (text == null)\n        return '';\n    const index = text.lastIndexOf('_Template');\n    return '_' + (index === -1 ? text : text.slice(0, index));\n}\n/**\n * This class is a debug version of Object literal so that we can have constructor name show up\n * in\n * debug tools in ngDevMode.\n */\nconst TViewConstructor = class TView {\n    constructor(type, blueprint, template, queries, viewQuery, declTNode, data, bindingStartIndex, expandoStartIndex, hostBindingOpCodes, firstCreatePass, firstUpdatePass, staticViewQueries, staticContentQueries, preOrderHooks, preOrderCheckHooks, contentHooks, contentCheckHooks, viewHooks, viewCheckHooks, destroyHooks, cleanup, contentQueries, components, directiveRegistry, pipeRegistry, firstChild, schemas, consts, incompleteFirstPass, _decls, _vars) {\n        this.type = type;\n        this.blueprint = blueprint;\n        this.template = template;\n        this.queries = queries;\n        this.viewQuery = viewQuery;\n        this.declTNode = declTNode;\n        this.data = data;\n        this.bindingStartIndex = bindingStartIndex;\n        this.expandoStartIndex = expandoStartIndex;\n        this.hostBindingOpCodes = hostBindingOpCodes;\n        this.firstCreatePass = firstCreatePass;\n        this.firstUpdatePass = firstUpdatePass;\n        this.staticViewQueries = staticViewQueries;\n        this.staticContentQueries = staticContentQueries;\n        this.preOrderHooks = preOrderHooks;\n        this.preOrderCheckHooks = preOrderCheckHooks;\n        this.contentHooks = contentHooks;\n        this.contentCheckHooks = contentCheckHooks;\n        this.viewHooks = viewHooks;\n        this.viewCheckHooks = viewCheckHooks;\n        this.destroyHooks = destroyHooks;\n        this.cleanup = cleanup;\n        this.contentQueries = contentQueries;\n        this.components = components;\n        this.directiveRegistry = directiveRegistry;\n        this.pipeRegistry = pipeRegistry;\n        this.firstChild = firstChild;\n        this.schemas = schemas;\n        this.consts = consts;\n        this.incompleteFirstPass = incompleteFirstPass;\n        this._decls = _decls;\n        this._vars = _vars;\n    }\n    get template_() {\n        const buf = [];\n        processTNodeChildren(this.firstChild, buf);\n        return buf.join('');\n    }\n    get type_() {\n        return TViewTypeAsString[this.type] || `TViewType.?${this.type}?`;\n    }\n};\nclass TNode {\n    constructor(tView_, //\n    type, //\n    index, //\n    insertBeforeIndex, //\n    injectorIndex, //\n    directiveStart, //\n    directiveEnd, //\n    directiveStylingLast, //\n    propertyBindings, //\n    flags, //\n    providerIndexes, //\n    value, //\n    attrs, //\n    mergedAttrs, //\n    localNames, //\n    initialInputs, //\n    inputs, //\n    outputs, //\n    tViews, //\n    next, //\n    projectionNext, //\n    child, //\n    parent, //\n    projection, //\n    styles, //\n    stylesWithoutHost, //\n    residualStyles, //\n    classes, //\n    classesWithoutHost, //\n    residualClasses, //\n    classBindings, //\n    styleBindings) {\n        this.tView_ = tView_;\n        this.type = type;\n        this.index = index;\n        this.insertBeforeIndex = insertBeforeIndex;\n        this.injectorIndex = injectorIndex;\n        this.directiveStart = directiveStart;\n        this.directiveEnd = directiveEnd;\n        this.directiveStylingLast = directiveStylingLast;\n        this.propertyBindings = propertyBindings;\n        this.flags = flags;\n        this.providerIndexes = providerIndexes;\n        this.value = value;\n        this.attrs = attrs;\n        this.mergedAttrs = mergedAttrs;\n        this.localNames = localNames;\n        this.initialInputs = initialInputs;\n        this.inputs = inputs;\n        this.outputs = outputs;\n        this.tViews = tViews;\n        this.next = next;\n        this.projectionNext = projectionNext;\n        this.child = child;\n        this.parent = parent;\n        this.projection = projection;\n        this.styles = styles;\n        this.stylesWithoutHost = stylesWithoutHost;\n        this.residualStyles = residualStyles;\n        this.classes = classes;\n        this.classesWithoutHost = classesWithoutHost;\n        this.residualClasses = residualClasses;\n        this.classBindings = classBindings;\n        this.styleBindings = styleBindings;\n    }\n    /**\n     * Return a human debug version of the set of `NodeInjector`s which will be consulted when\n     * resolving tokens from this `TNode`.\n     *\n     * When debugging applications, it is often difficult to determine which `NodeInjector`s will be\n     * consulted. This method shows a list of `DebugNode`s representing the `TNode`s which will be\n     * consulted in order when resolving a token starting at this `TNode`.\n     *\n     * The original data is stored in `LView` and `TView` with a lot of offset indexes, and so it is\n     * difficult to reason about.\n     *\n     * @param lView The `LView` instance for this `TNode`.\n     */\n    debugNodeInjectorPath(lView) {\n        const path = [];\n        let injectorIndex = getInjectorIndex(this, lView);\n        if (injectorIndex === -1) {\n            // Looks like the current `TNode` does not have `NodeInjector` associated with it => look for\n            // parent NodeInjector.\n            const parentLocation = getParentInjectorLocation(this, lView);\n            if (parentLocation !== NO_PARENT_INJECTOR) {\n                // We found a parent, so start searching from the parent location.\n                injectorIndex = getParentInjectorIndex(parentLocation);\n                lView = getParentInjectorView(parentLocation, lView);\n            }\n            else {\n                // No parents have been found, so there are no `NodeInjector`s to consult.\n            }\n        }\n        while (injectorIndex !== -1) {\n            ngDevMode && assertNodeInjector(lView, injectorIndex);\n            const tNode = lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n            path.push(buildDebugNode(tNode, lView));\n            const parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n            if (parentLocation === NO_PARENT_INJECTOR) {\n                injectorIndex = -1;\n            }\n            else {\n                injectorIndex = getParentInjectorIndex(parentLocation);\n                lView = getParentInjectorView(parentLocation, lView);\n            }\n        }\n        return path;\n    }\n    get type_() {\n        return toTNodeTypeAsString(this.type) || `TNodeType.?${this.type}?`;\n    }\n    get flags_() {\n        const flags = [];\n        if (this.flags & 16 /* TNodeFlags.hasClassInput */)\n            flags.push('TNodeFlags.hasClassInput');\n        if (this.flags & 8 /* TNodeFlags.hasContentQuery */)\n            flags.push('TNodeFlags.hasContentQuery');\n        if (this.flags & 32 /* TNodeFlags.hasStyleInput */)\n            flags.push('TNodeFlags.hasStyleInput');\n        if (this.flags & 128 /* TNodeFlags.hasHostBindings */)\n            flags.push('TNodeFlags.hasHostBindings');\n        if (this.flags & 2 /* TNodeFlags.isComponentHost */)\n            flags.push('TNodeFlags.isComponentHost');\n        if (this.flags & 1 /* TNodeFlags.isDirectiveHost */)\n            flags.push('TNodeFlags.isDirectiveHost');\n        if (this.flags & 64 /* TNodeFlags.isDetached */)\n            flags.push('TNodeFlags.isDetached');\n        if (this.flags & 4 /* TNodeFlags.isProjected */)\n            flags.push('TNodeFlags.isProjected');\n        return flags.join('|');\n    }\n    get template_() {\n        if (this.type & 1 /* TNodeType.Text */)\n            return this.value;\n        const buf = [];\n        const tagName = typeof this.value === 'string' && this.value || this.type_;\n        buf.push('<', tagName);\n        if (this.flags) {\n            buf.push(' ', this.flags_);\n        }\n        if (this.attrs) {\n            for (let i = 0; i < this.attrs.length;) {\n                const attrName = this.attrs[i++];\n                if (typeof attrName == 'number') {\n                    break;\n                }\n                const attrValue = this.attrs[i++];\n                buf.push(' ', attrName, '=\"', attrValue, '\"');\n            }\n        }\n        buf.push('>');\n        processTNodeChildren(this.child, buf);\n        buf.push('</', tagName, '>');\n        return buf.join('');\n    }\n    get styleBindings_() {\n        return toDebugStyleBinding(this, false);\n    }\n    get classBindings_() {\n        return toDebugStyleBinding(this, true);\n    }\n    get providerIndexStart_() {\n        return this.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n    }\n    get providerIndexEnd_() {\n        return this.providerIndexStart_ +\n            (this.providerIndexes >>> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */);\n    }\n}\nconst TNodeDebug = TNode;\nfunction toDebugStyleBinding(tNode, isClassBased) {\n    const tData = tNode.tView_.data;\n    const bindings = [];\n    const range = isClassBased ? tNode.classBindings : tNode.styleBindings;\n    const prev = getTStylingRangePrev(range);\n    const next = getTStylingRangeNext(range);\n    let isTemplate = next !== 0;\n    let cursor = isTemplate ? next : prev;\n    while (cursor !== 0) {\n        const itemKey = tData[cursor];\n        const itemRange = tData[cursor + 1];\n        bindings.unshift({\n            key: itemKey,\n            index: cursor,\n            isTemplate: isTemplate,\n            prevDuplicate: getTStylingRangePrevDuplicate(itemRange),\n            nextDuplicate: getTStylingRangeNextDuplicate(itemRange),\n            nextIndex: getTStylingRangeNext(itemRange),\n            prevIndex: getTStylingRangePrev(itemRange),\n        });\n        if (cursor === prev)\n            isTemplate = false;\n        cursor = getTStylingRangePrev(itemRange);\n    }\n    bindings.push((isClassBased ? tNode.residualClasses : tNode.residualStyles) || null);\n    return bindings;\n}\nfunction processTNodeChildren(tNode, buf) {\n    while (tNode) {\n        buf.push(tNode.template_);\n        tNode = tNode.next;\n    }\n}\nclass TViewData extends Array {\n}\nlet TVIEWDATA_EMPTY; // can't initialize here or it will not be tree shaken, because\n// `LView` constructor could have side-effects.\n/**\n * This function clones a blueprint and creates TData.\n *\n * Simple slice will keep the same type, and we need it to be TData\n */\nfunction cloneToTViewData(list) {\n    if (TVIEWDATA_EMPTY === undefined)\n        TVIEWDATA_EMPTY = new TViewData();\n    return TVIEWDATA_EMPTY.concat(list);\n}\nclass LViewBlueprint extends Array {\n}\nclass MatchesArray extends Array {\n}\nclass TViewComponents extends Array {\n}\nclass TNodeLocalNames extends Array {\n}\nclass TNodeInitialInputs extends Array {\n}\nclass LCleanup extends Array {\n}\nclass TCleanup extends Array {\n}\nfunction attachLViewDebug(lView) {\n    attachDebugObject(lView, new LViewDebug(lView));\n}\nfunction attachLContainerDebug(lContainer) {\n    attachDebugObject(lContainer, new LContainerDebug(lContainer));\n}\nfunction toDebug(obj) {\n    if (obj) {\n        const debug = obj.debug;\n        assertDefined(debug, 'Object does not have a debug representation.');\n        return debug;\n    }\n    else {\n        return obj;\n    }\n}\n/**\n * Use this method to unwrap a native element in `LView` and convert it into HTML for easier\n * reading.\n *\n * @param value possibly wrapped native DOM node.\n * @param includeChildren If `true` then the serialized HTML form will include child elements\n * (same\n * as `outerHTML`). If `false` then the serialized HTML form will only contain the element\n * itself\n * (will not serialize child elements).\n */\nfunction toHtml(value, includeChildren = false) {\n    const node = unwrapRNode(value);\n    if (node) {\n        switch (node.nodeType) {\n            case Node.TEXT_NODE:\n                return node.textContent;\n            case Node.COMMENT_NODE:\n                return `<!--${node.textContent}-->`;\n            case Node.ELEMENT_NODE:\n                const outerHTML = node.outerHTML;\n                if (includeChildren) {\n                    return outerHTML;\n                }\n                else {\n                    const innerHTML = '>' + node.innerHTML + '<';\n                    return (outerHTML.split(innerHTML)[0]) + '>';\n                }\n        }\n    }\n    return null;\n}\nclass LViewDebug {\n    constructor(_raw_lView) {\n        this._raw_lView = _raw_lView;\n    }\n    /**\n     * Flags associated with the `LView` unpacked into a more readable state.\n     */\n    get flags() {\n        const flags = this._raw_lView[FLAGS];\n        return {\n            __raw__flags__: flags,\n            initPhaseState: flags & 3 /* LViewFlags.InitPhaseStateMask */,\n            creationMode: !!(flags & 4 /* LViewFlags.CreationMode */),\n            firstViewPass: !!(flags & 8 /* LViewFlags.FirstLViewPass */),\n            checkAlways: !!(flags & 16 /* LViewFlags.CheckAlways */),\n            dirty: !!(flags & 32 /* LViewFlags.Dirty */),\n            attached: !!(flags & 64 /* LViewFlags.Attached */),\n            destroyed: !!(flags & 128 /* LViewFlags.Destroyed */),\n            isRoot: !!(flags & 256 /* LViewFlags.IsRoot */),\n            indexWithinInitPhase: flags >> 11 /* LViewFlags.IndexWithinInitPhaseShift */,\n        };\n    }\n    get parent() {\n        return toDebug(this._raw_lView[PARENT]);\n    }\n    get hostHTML() {\n        return toHtml(this._raw_lView[HOST], true);\n    }\n    get html() {\n        return (this.nodes || []).map(mapToHTML).join('');\n    }\n    get context() {\n        return this._raw_lView[CONTEXT];\n    }\n    /**\n     * The tree of nodes associated with the current `LView`. The nodes have been normalized into\n     * a tree structure with relevant details pulled out for readability.\n     */\n    get nodes() {\n        const lView = this._raw_lView;\n        const tNode = lView[TVIEW].firstChild;\n        return toDebugNodes(tNode, lView);\n    }\n    get template() {\n        return this.tView.template_;\n    }\n    get tView() {\n        return this._raw_lView[TVIEW];\n    }\n    get cleanup() {\n        return this._raw_lView[CLEANUP];\n    }\n    get injector() {\n        return this._raw_lView[INJECTOR$1];\n    }\n    get rendererFactory() {\n        return this._raw_lView[RENDERER_FACTORY];\n    }\n    get renderer() {\n        return this._raw_lView[RENDERER];\n    }\n    get sanitizer() {\n        return this._raw_lView[SANITIZER];\n    }\n    get childHead() {\n        return toDebug(this._raw_lView[CHILD_HEAD]);\n    }\n    get next() {\n        return toDebug(this._raw_lView[NEXT]);\n    }\n    get childTail() {\n        return toDebug(this._raw_lView[CHILD_TAIL]);\n    }\n    get declarationView() {\n        return toDebug(this._raw_lView[DECLARATION_VIEW]);\n    }\n    get queries() {\n        return this._raw_lView[QUERIES];\n    }\n    get tHost() {\n        return this._raw_lView[T_HOST];\n    }\n    get id() {\n        return this._raw_lView[ID];\n    }\n    get decls() {\n        return toLViewRange(this.tView, this._raw_lView, HEADER_OFFSET, this.tView.bindingStartIndex);\n    }\n    get vars() {\n        return toLViewRange(this.tView, this._raw_lView, this.tView.bindingStartIndex, this.tView.expandoStartIndex);\n    }\n    get expando() {\n        return toLViewRange(this.tView, this._raw_lView, this.tView.expandoStartIndex, this._raw_lView.length);\n    }\n    /**\n     * Normalized view of child views (and containers) attached at this location.\n     */\n    get childViews() {\n        const childViews = [];\n        let child = this.childHead;\n        while (child) {\n            childViews.push(child);\n            child = child.next;\n        }\n        return childViews;\n    }\n}\nfunction mapToHTML(node) {\n    if (node.type === 'ElementContainer') {\n        return (node.children || []).map(mapToHTML).join('');\n    }\n    else if (node.type === 'IcuContainer') {\n        throw new Error('Not implemented');\n    }\n    else {\n        return toHtml(node.native, true) || '';\n    }\n}\nfunction toLViewRange(tView, lView, start, end) {\n    let content = [];\n    for (let index = start; index < end; index++) {\n        content.push({ index: index, t: tView.data[index], l: lView[index] });\n    }\n    return { start: start, end: end, length: end - start, content: content };\n}\n/**\n * Turns a flat list of nodes into a tree by walking the associated `TNode` tree.\n *\n * @param tNode\n * @param lView\n */\nfunction toDebugNodes(tNode, lView) {\n    if (tNode) {\n        const debugNodes = [];\n        let tNodeCursor = tNode;\n        while (tNodeCursor) {\n            debugNodes.push(buildDebugNode(tNodeCursor, lView));\n            tNodeCursor = tNodeCursor.next;\n        }\n        return debugNodes;\n    }\n    else {\n        return [];\n    }\n}\nfunction buildDebugNode(tNode, lView) {\n    const rawValue = lView[tNode.index];\n    const native = unwrapRNode(rawValue);\n    const factories = [];\n    const instances = [];\n    const tView = lView[TVIEW];\n    for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n        const def = tView.data[i];\n        factories.push(def.type);\n        instances.push(lView[i]);\n    }\n    return {\n        html: toHtml(native),\n        type: toTNodeTypeAsString(tNode.type),\n        tNode,\n        native: native,\n        children: toDebugNodes(tNode.child, lView),\n        factories,\n        instances,\n        injector: buildNodeInjectorDebug(tNode, tView, lView),\n        get injectorResolutionPath() {\n            return tNode.debugNodeInjectorPath(lView);\n        },\n    };\n}\nfunction buildNodeInjectorDebug(tNode, tView, lView) {\n    const viewProviders = [];\n    for (let i = tNode.providerIndexStart_; i < tNode.providerIndexEnd_; i++) {\n        viewProviders.push(tView.data[i]);\n    }\n    const providers = [];\n    for (let i = tNode.providerIndexEnd_; i < tNode.directiveEnd; i++) {\n        providers.push(tView.data[i]);\n    }\n    const nodeInjectorDebug = {\n        bloom: toBloom(lView, tNode.injectorIndex),\n        cumulativeBloom: toBloom(tView.data, tNode.injectorIndex),\n        providers,\n        viewProviders,\n        parentInjectorIndex: lView[tNode.providerIndexStart_ - 1],\n    };\n    return nodeInjectorDebug;\n}\n/**\n * Convert a number at `idx` location in `array` into binary representation.\n *\n * @param array\n * @param idx\n */\nfunction binary(array, idx) {\n    const value = array[idx];\n    // If not a number we print 8 `?` to retain alignment but let user know that it was called on\n    // wrong type.\n    if (typeof value !== 'number')\n        return '????????';\n    // We prefix 0s so that we have constant length number\n    const text = '00000000' + value.toString(2);\n    return text.substring(text.length - 8);\n}\n/**\n * Convert a bloom filter at location `idx` in `array` into binary representation.\n *\n * @param array\n * @param idx\n */\nfunction toBloom(array, idx) {\n    if (idx < 0) {\n        return 'NO_NODE_INJECTOR';\n    }\n    return `${binary(array, idx + 7)}_${binary(array, idx + 6)}_${binary(array, idx + 5)}_${binary(array, idx + 4)}_${binary(array, idx + 3)}_${binary(array, idx + 2)}_${binary(array, idx + 1)}_${binary(array, idx + 0)}`;\n}\nclass LContainerDebug {\n    constructor(_raw_lContainer) {\n        this._raw_lContainer = _raw_lContainer;\n    }\n    get hasTransplantedViews() {\n        return this._raw_lContainer[HAS_TRANSPLANTED_VIEWS];\n    }\n    get views() {\n        return this._raw_lContainer.slice(CONTAINER_HEADER_OFFSET)\n            .map(toDebug);\n    }\n    get parent() {\n        return toDebug(this._raw_lContainer[PARENT]);\n    }\n    get movedViews() {\n        return this._raw_lContainer[MOVED_VIEWS];\n    }\n    get host() {\n        return this._raw_lContainer[HOST];\n    }\n    get native() {\n        return this._raw_lContainer[NATIVE];\n    }\n    get next() {\n        return toDebug(this._raw_lContainer[NEXT]);\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.io/license\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                hostBindingFn(2 /* RenderFlags.Update */, context);\n            }\n        }\n    }\n    finally {\n        setSelectedIndex(-1);\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        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}\n/** Refreshes child components in the current view (update mode). */\nfunction refreshChildComponents(hostLView, components) {\n    for (let i = 0; i < components.length; i++) {\n        refreshComponent(hostLView, components[i]);\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}\nfunction createLView(parentLView, tView, context, flags, host, tHostNode, rendererFactory, renderer, sanitizer, injector, embeddedViewInjector) {\n    const lView = ngDevMode ? cloneToLViewFromTViewBlueprint(tView) : tView.blueprint.slice();\n    lView[HOST] = host;\n    lView[FLAGS] = flags | 4 /* LViewFlags.CreationMode */ | 64 /* LViewFlags.Attached */ | 8 /* LViewFlags.FirstLViewPass */;\n    if (embeddedViewInjector !== null ||\n        (parentLView && (parentLView[FLAGS] & 1024 /* LViewFlags.HasEmbeddedViewInjector */))) {\n        lView[FLAGS] |= 1024 /* 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[RENDERER_FACTORY] = (rendererFactory || parentLView && parentLView[RENDERER_FACTORY]);\n    ngDevMode && assertDefined(lView[RENDERER_FACTORY], 'RendererFactory is required');\n    lView[RENDERER] = (renderer || parentLView && parentLView[RENDERER]);\n    ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');\n    lView[SANITIZER] = sanitizer || parentLView && parentLView[SANITIZER] || null;\n    lView[INJECTOR$1] = injector || parentLView && parentLView[INJECTOR$1] || null;\n    lView[T_HOST] = tHostNode;\n    lView[ID] = getUniqueLViewId();\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    ngDevMode && attachLViewDebug(lView);\n    return lView;\n}\nfunction getOrCreateTNode(tView, index, type, name, attrs) {\n    ngDevMode && 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 |= 64 /* 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] =\n        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    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            }\n        }\n    }\n    return tNode;\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}\n//////////////////////////\n//// Render\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    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        // 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/**\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    const flags = lView[FLAGS];\n    if ((flags & 128 /* LViewFlags.Destroyed */) === 128 /* LViewFlags.Destroyed */)\n        return;\n    enterView(lView);\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    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        // 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        refreshEmbeddedViews(lView);\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            refreshChildComponents(lView, components);\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        // 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] &= ~(32 /* LViewFlags.Dirty */ | 8 /* LViewFlags.FirstLViewPass */);\n        }\n        if (lView[FLAGS] & 512 /* LViewFlags.RefreshTransplantedView */) {\n            lView[FLAGS] &= ~512 /* LViewFlags.RefreshTransplantedView */;\n            updateTransplantedViewCount(lView[PARENT], -1);\n        }\n    }\n    finally {\n        leaveView();\n    }\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 ? 2 /* ProfilerEvent.TemplateUpdateStart */ : 0 /* ProfilerEvent.TemplateCreateStart */;\n        profiler(preHookType, context);\n        templateFn(rf, context);\n    }\n    finally {\n        setSelectedIndex(prevSelectedIndex);\n        const postHookType = isUpdatePhase ? 3 /* ProfilerEvent.TemplateUpdateEnd */ : 1 /* ProfilerEvent.TemplateCreateEnd */;\n        profiler(postHookType, context);\n    }\n}\n//////////////////////////\n//// Element\n//////////////////////////\nfunction executeContentQueries(tView, tNode, lView) {\n    if (isContentQueryHost(tNode)) {\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                def.contentQueries(1 /* RenderFlags.Create */, lView[directiveIndex], directiveIndex);\n            }\n        }\n    }\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstances(tView, lView, tNode) {\n    if (!getBindingsEnabled())\n        return;\n    instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));\n    if ((tNode.flags & 128 /* TNodeFlags.hasHostBindings */) === 128 /* 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);\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) {\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] = ngDevMode ?\n        new TViewConstructor(type, // type: TViewType,\n        blueprint, // blueprint: LView,\n        templateFn, // template: ComponentTemplate<{}>|null,\n        null, // queries: TQueries|null\n        viewQuery, // viewQuery: ViewQueriesFunction<{}>|null,\n        declTNode, // declTNode: TNode|null,\n        cloneToTViewData(blueprint).fill(null, bindingStartIndex), // data: TData,\n        bindingStartIndex, // bindingStartIndex: number,\n        initialViewLength, // expandoStartIndex: number,\n        null, // hostBindingOpCodes: HostBindingOpCodes,\n        true, // firstCreatePass: boolean,\n        true, // firstUpdatePass: boolean,\n        false, // staticViewQueries: boolean,\n        false, // staticContentQueries: boolean,\n        null, // preOrderHooks: HookData|null,\n        null, // preOrderCheckHooks: HookData|null,\n        null, // contentHooks: HookData|null,\n        null, // contentCheckHooks: HookData|null,\n        null, // viewHooks: HookData|null,\n        null, // viewCheckHooks: HookData|null,\n        null, // destroyHooks: DestroyHookData|null,\n        null, // cleanup: any[]|null,\n        null, // contentQueries: number[]|null,\n        null, // components: number[]|null,\n        typeof directives === 'function' ? //\n            directives() : //\n            directives, // directiveRegistry: DirectiveDefList|null,\n        typeof pipes === 'function' ? pipes() : pipes, // pipeRegistry: PipeDefList|null,\n        null, // firstChild: TNode|null,\n        schemas, // schemas: SchemaMetadata[]|null,\n        consts, // consts: TConstants|null\n        false, // incompleteFirstPass: boolean\n        decls, // ngDevMode only: decls\n        vars) :\n        {\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        };\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 = ngDevMode ? new LViewBlueprint() : [];\n    for (let i = 0; i < initialViewLength; i++) {\n        blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);\n    }\n    return blueprint;\n}\nfunction createError(text, token) {\n    return new Error(`Renderer: ${text} [${stringifyForError(token)}]`);\n}\n/**\n * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.\n *\n * @param rendererFactory Factory function to create renderer instance.\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 */\nfunction locateHostElement(renderer, elementOrSelector, encapsulation) {\n    // When using native Shadow DOM, do not clear host element to allow native slot projection\n    const preserveContent = encapsulation === ViewEncapsulation$1.ShadowDom;\n    return renderer.selectRootElement(elementOrSelector, preserveContent);\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 *\n * This function can also be used to store instance specific cleanup fns. In that case the `context`\n * is `null` and the function is store in `LView` (rather than it `TView`).\n */\nfunction storeCleanupWithContext(tView, lView, context, cleanupFn) {\n    const lCleanup = getOrCreateLViewCleanup(lView);\n    if (context === null) {\n        // If context is null that this is instance specific callback. These callbacks can only be\n        // inserted after template shared instances. For this reason in ngDevMode we freeze the TView.\n        if (ngDevMode) {\n            Object.freeze(getOrCreateTViewCleanup(tView));\n        }\n        lCleanup.push(cleanupFn);\n    }\n    else {\n        lCleanup.push(context);\n        if (tView.firstCreatePass) {\n            getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);\n        }\n    }\n}\nfunction createTNode(tView, tParent, type, index, value, attrs) {\n    ngDevMode && 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    const tNode = ngDevMode ?\n        new TNodeDebug(tView, // tView_: TView\n        type, // type: TNodeType\n        index, // index: number\n        null, // insertBeforeIndex: null|-1|number|number[]\n        injectorIndex, // injectorIndex: number\n        -1, // directiveStart: number\n        -1, // directiveEnd: number\n        -1, // directiveStylingLast: number\n        null, // propertyBindings: number[]|null\n        0, // flags: TNodeFlags\n        0, // providerIndexes: TNodeProviderIndexes\n        value, // value: string|null\n        attrs, // attrs: (string|AttributeMarker|(string|SelectorFlags)[])[]|null\n        null, // mergedAttrs\n        null, // localNames: (string|number)[]|null\n        undefined, // initialInputs: (string[]|null)[]|null|undefined\n        null, // inputs: PropertyAliases|null\n        null, // outputs: PropertyAliases|null\n        null, // tViews: ITView|ITView[]|null\n        null, // next: ITNode|null\n        null, // projectionNext: ITNode|null\n        null, // child: ITNode|null\n        tParent, // parent: TElementNode|TContainerNode|null\n        null, // projection: number|(ITNode|RNode[])[]|null\n        null, // styles: string|null\n        null, // stylesWithoutHost: string|null\n        undefined, // residualStyles: string|null\n        null, // classes: string|null\n        null, // classesWithoutHost: string|null\n        undefined, // residualClasses: string|null\n        0, // classBindings: TStylingRange;\n        0) :\n        {\n            type,\n            index,\n            insertBeforeIndex: null,\n            injectorIndex,\n            directiveStart: -1,\n            directiveEnd: -1,\n            directiveStylingLast: -1,\n            propertyBindings: null,\n            flags: 0,\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            tViews: null,\n            next: 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}\nfunction generatePropertyAliases(inputAliasMap, directiveDefIdx, propStore) {\n    for (let publicName in inputAliasMap) {\n        if (inputAliasMap.hasOwnProperty(publicName)) {\n            propStore = propStore === null ? {} : propStore;\n            const internalName = inputAliasMap[publicName];\n            if (propStore.hasOwnProperty(publicName)) {\n                propStore[publicName].push(directiveDefIdx, internalName);\n            }\n            else {\n                (propStore[publicName] = [directiveDefIdx, internalName]);\n            }\n        }\n    }\n    return propStore;\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) {\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 = ngDevMode ? new TNodeInitialInputs() : [];\n    let inputsStore = null;\n    let outputsStore = null;\n    for (let i = start; i < end; i++) {\n        const directiveDef = tViewData[i];\n        const directiveInputs = directiveDef.inputs;\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 = (tNodeAttrs !== null && !isInlineTemplate(tNode)) ?\n            generateInitialInputs(directiveInputs, tNodeAttrs) :\n            null;\n        inputsFromAttrs.push(initialInputs);\n        inputsStore = generatePropertyAliases(directiveInputs, i, inputsStore);\n        outputsStore = generatePropertyAliases(directiveDef.outputs, i, outputsStore);\n    }\n    if (inputsStore !== null) {\n        if (inputsStore.hasOwnProperty('class')) {\n            tNode.flags |= 16 /* TNodeFlags.hasClassInput */;\n        }\n        if (inputsStore.hasOwnProperty('style')) {\n            tNode.flags |= 32 /* 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] |= 32 /* 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 += 2) {\n            setNgReflectProperty(lView, element, type, dataValue[i + 1], value);\n        }\n    }\n}\n/**\n * Instantiate a root component.\n */\nfunction instantiateRootComponent(tView, lView, def) {\n    const rootTNode = getCurrentTNode();\n    if (tView.firstCreatePass) {\n        if (def.providersResolver)\n            def.providersResolver(def);\n        const directiveIndex = allocExpando(tView, lView, 1, null);\n        ngDevMode &&\n            assertEqual(directiveIndex, rootTNode.directiveStart, 'Because this is a root component the allocated expando should match the TNode component.');\n        configureViewWithDirective(tView, rootTNode, lView, directiveIndex, def);\n        initializeInputAndOutputAliases(tView, rootTNode);\n    }\n    const directive = getNodeInjectable(lView, tView, rootTNode.directiveStart, rootTNode);\n    attachPatchData(directive, lView);\n    const native = getNativeByTNode(rootTNode, lView);\n    if (native) {\n        attachPatchData(native, lView);\n    }\n    return directive;\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    let hasDirectives = false;\n    if (getBindingsEnabled()) {\n        const directiveDefs = findDirectiveDefMatches(tView, lView, tNode);\n        const exportsMap = localRefs === null ? null : { '': -1 };\n        if (directiveDefs !== null) {\n            hasDirectives = true;\n            initTNodeFlags(tNode, tView.data.length, directiveDefs.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 < directiveDefs.length; i++) {\n                const def = directiveDefs[i];\n                if (def.providersResolver)\n                    def.providersResolver(def);\n            }\n            let preOrderHooksFound = false;\n            let preOrderCheckHooksFound = false;\n            let directiveIdx = allocExpando(tView, lView, directiveDefs.length, null);\n            ngDevMode &&\n                assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');\n            for (let i = 0; i < directiveDefs.length; i++) {\n                const def = directiveDefs[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 |= 8 /* TNodeFlags.hasContentQuery */;\n                if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0)\n                    tNode.flags |= 128 /* 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 || (tView.preOrderHooks = [])).push(tNode.index);\n                    preOrderHooksFound = true;\n                }\n                if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {\n                    (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(tNode.index);\n                    preOrderCheckHooksFound = true;\n                }\n                directiveIdx++;\n            }\n            initializeInputAndOutputAliases(tView, tNode);\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    return hasDirectives;\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 lView `LView` current `LView`\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, lView, 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, native) {\n    const start = tNode.directiveStart;\n    const end = tNode.directiveEnd;\n    if (!tView.firstCreatePass) {\n        getOrCreateNodeInjectorForNode(tNode, lView);\n    }\n    attachPatchData(native, lView);\n    const initialInputs = tNode.initialInputs;\n    for (let i = start; i < end; i++) {\n        const def = tView.data[i];\n        const isComponent = isComponentDef(def);\n        if (isComponent) {\n            ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n            addComponentLogic(lView, tNode, def);\n        }\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 (isComponent) {\n            const componentView = getComponentLViewByIndex(tNode.index, lView);\n            componentView[CONTEXT] = directive;\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, viewData, 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 || (matches = ngDevMode ? new MatchesArray() : []);\n                diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, viewData), tView, def.type);\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 (tNode.flags & 2 /* TNodeFlags.isComponentHost */) {\n                            // If another component has been matched previously, it's the first element in the\n                            // `matches` array, see how we store components/directives in `matches` below.\n                            throwMultipleComponentError(tNode, matches[0].type, def.type);\n                        }\n                    }\n                    markAsComponentHost(tView, tNode);\n                    // The component is always stored first with directives after.\n                    matches.unshift(def);\n                }\n                else {\n                    matches.push(def);\n                }\n            }\n        }\n    }\n    return matches;\n}\n/**\n * Marks a given TNode as a component's host. This consists of:\n * - setting appropriate TNode flags;\n * - storing index of component's host element so it will be queued for view refresh during CD.\n */\nfunction markAsComponentHost(tView, hostTNode) {\n    ngDevMode && assertFirstCreatePass(tView);\n    hostTNode.flags |= 2 /* TNodeFlags.isComponentHost */;\n    (tView.components || (tView.components = ngDevMode ? new TViewComponents() : []))\n        .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 = ngDevMode ? new TNodeLocalNames() : [];\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, lView, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);\n}\nfunction addComponentLogic(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[RENDERER_FACTORY];\n    const componentView = addToViewTree(lView, createLView(lView, tView, null, def.onPush ? 32 /* LViewFlags.Dirty */ : 16 /* LViewFlags.CheckAlways */, native, hostTNode, rendererFactory, 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    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        const setInput = def.setInput;\n        for (let i = 0; i < initialInputs.length;) {\n            const publicName = initialInputs[i++];\n            const privateName = initialInputs[i++];\n            const value = initialInputs[i++];\n            if (setInput !== null) {\n                def.setInput(instance, value, publicName, privateName);\n            }\n            else {\n                instance[privateName] = value;\n            }\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 The list of inputs from the directive def\n * @param attrs The static attrs on this node\n */\nfunction generateInitialInputs(inputs, 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            inputsToStore.push(attrName, inputs[attrName], attrs[i + 1]);\n        }\n        i += 2;\n    }\n    return inputsToStore;\n}\n//////////////////////////\n//// ViewContainer & View\n//////////////////////////\n// Not sure why I need to do `any` here but TS complains later.\nconst LContainerArray = class LContainer extends Array {\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    // https://jsperf.com/array-literal-vs-new-array-really\n    const lContainer = new (ngDevMode ? LContainerArray : Array)(hostNative, // host native\n    true, // Boolean `true` in this position signifies that this is an `LContainer`\n    false, // has transplanted views\n    currentView, // parent\n    null, // next\n    0, // transplanted views to refresh count\n    tNode, // t_host\n    native, // native,\n    null, // view refs\n    null);\n    ngDevMode &&\n        assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');\n    ngDevMode && attachLContainerDebug(lContainer);\n    return lContainer;\n}\n/**\n * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes\n * them by executing an associated template function.\n */\nfunction refreshEmbeddedViews(lView) {\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            const embeddedTView = embeddedLView[TVIEW];\n            ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');\n            if (viewAttachedToChangeDetector(embeddedLView)) {\n                refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);\n            }\n        }\n    }\n}\n/**\n * Mark transplanted views as needing to be refreshed at their insertion 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[HAS_TRANSPLANTED_VIEWS])\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            const insertionLContainer = movedLView[PARENT];\n            ngDevMode && assertLContainer(insertionLContainer);\n            // We don't want to increment the counter if the moved LView was already marked for\n            // refresh.\n            if ((movedLView[FLAGS] & 512 /* LViewFlags.RefreshTransplantedView */) === 0) {\n                updateTransplantedViewCount(insertionLContainer, 1);\n            }\n            // Note, it is possible that the `movedViews` is tracking views that are transplanted *and*\n            // those that aren't (declaration component === insertion component). In the latter case,\n            // it's fine to add the flag, as we will clear it immediately in\n            // `refreshEmbeddedViews` for the view currently being refreshed.\n            movedLView[FLAGS] |= 512 /* LViewFlags.RefreshTransplantedView */;\n        }\n    }\n}\n/////////////\n/**\n * Refreshes components by entering the component view and processing its bindings, queries, etc.\n *\n * @param componentHostIdx  Element index in LView[] (adjusted for HEADER_OFFSET)\n */\nfunction refreshComponent(hostLView, componentHostIdx) {\n    ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');\n    const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n    // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n    if (viewAttachedToChangeDetector(componentView)) {\n        const tView = componentView[TVIEW];\n        if (componentView[FLAGS] & (16 /* LViewFlags.CheckAlways */ | 32 /* LViewFlags.Dirty */)) {\n            refreshView(tView, componentView, tView.template, componentView[CONTEXT]);\n        }\n        else if (componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n            // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n            refreshContainsDirtyView(componentView);\n        }\n    }\n}\n/**\n * Refreshes all transplanted views marked with `LViewFlags.RefreshTransplantedView` that are\n * children or descendants of the given lView.\n *\n * @param lView The lView which contains descendant transplanted views that need to be refreshed.\n */\nfunction refreshContainsDirtyView(lView) {\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            if (viewAttachedToChangeDetector(embeddedLView)) {\n                if (embeddedLView[FLAGS] & 512 /* LViewFlags.RefreshTransplantedView */) {\n                    const embeddedTView = embeddedLView[TVIEW];\n                    ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');\n                    refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);\n                }\n                else if (embeddedLView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n                    refreshContainsDirtyView(embeddedLView);\n                }\n            }\n        }\n    }\n    const tView = lView[TVIEW];\n    // Refresh child component views.\n    const components = tView.components;\n    if (components !== null) {\n        for (let i = 0; i < components.length; i++) {\n            const componentView = getComponentLViewByIndex(components[i], lView);\n            // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n            if (viewAttachedToChangeDetector(componentView) &&\n                componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n                refreshContainsDirtyView(componentView);\n            }\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    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 * ```\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 * 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 addToViewTree(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//// Change detection\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) {\n    while (lView) {\n        lView[FLAGS] |= 32 /* LViewFlags.Dirty */;\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}\nfunction detectChangesInternal(tView, lView, context, notifyErrorHandler = true) {\n    const rendererFactory = lView[RENDERER_FACTORY];\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 && rendererFactory.begin)\n        rendererFactory.begin();\n    try {\n        refreshView(tView, lView, tView.template, context);\n    }\n    catch (error) {\n        if (notifyErrorHandler) {\n            handleError(lView, error);\n        }\n        throw error;\n    }\n    finally {\n        if (!checkNoChangesMode && rendererFactory.end)\n            rendererFactory.end();\n    }\n}\nfunction checkNoChangesInternal(tView, lView, context, notifyErrorHandler = true) {\n    setIsInCheckNoChangesMode(true);\n    try {\n        detectChangesInternal(tView, lView, context, notifyErrorHandler);\n    }\n    finally {\n        setIsInCheckNoChangesMode(false);\n    }\n}\nfunction executeViewQueryFn(flags, viewQueryFn, component) {\n    ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');\n    setCurrentQueryIndex(0);\n    viewQueryFn(flags, component);\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}\nfunction getOrCreateLViewCleanup(view) {\n    // top level variables should not be exported for performance reasons (PERF_NOTES.md)\n    return view[CLEANUP] || (view[CLEANUP] = ngDevMode ? new LCleanup() : []);\n}\nfunction getOrCreateTViewCleanup(tView) {\n    return tView.cleanup || (tView.cleanup = ngDevMode ? new TCleanup() : []);\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$1];\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 instance = lView[index];\n        ngDevMode && assertIndexInRange(lView, index);\n        const def = tView.data[index];\n        if (def.setInput !== null) {\n            def.setInput(instance, value, publicName, privateName);\n        }\n        else {\n            instance[privateName] = value;\n        }\n    }\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.io/license\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\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.io/license\n */\nfunction collectNativeNodes(tView, lView, tNode, result, isProjection = false) {\n    while (tNode !== null) {\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            for (let i = CONTAINER_HEADER_OFFSET; i < lNode.length; i++) {\n                const lViewInAContainer = lNode[i];\n                const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;\n                if (lViewFirstChildTNode !== null) {\n                    collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);\n                }\n            }\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/**\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.io/license\n */\nclass ViewRef$1 {\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) {\n        this._lView = _lView;\n        this._cdRefInjectingView = _cdRefInjectingView;\n        this._appRef = null;\n        this._attachedToViewContainer = false;\n    }\n    get rootNodes() {\n        const lView = this._lView;\n        const tView = lView[TVIEW];\n        return collectNativeNodes(tView, lView, tView.firstChild, []);\n    }\n    get context() {\n        return this._lView[CONTEXT];\n    }\n    set context(value) {\n        this._lView[CONTEXT] = value;\n    }\n    get destroyed() {\n        return (this._lView[FLAGS] & 128 /* LViewFlags.Destroyed */) === 128 /* LViewFlags.Destroyed */;\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        storeCleanupWithContext(this._lView[TVIEW], this._lView, null, 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 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     * ```typescript\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);\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 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     * ```typescript\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] &= ~64 /* 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 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     * ```typescript\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        this._lView[FLAGS] |= 64 /* LViewFlags.Attached */;\n    }\n    /**\n     * Checks the view and its children.\n     *\n     * This can also be used in combination with {@link ChangeDetectorRef#detach 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 detach} for more information.\n     */\n    detectChanges() {\n        detectChangesInternal(this._lView[TVIEW], this._lView, this.context);\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[TVIEW], this._lView, this.context);\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        renderDetachView(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    }\n}\n/** @internal */\nclass RootViewRef extends ViewRef$1 {\n    constructor(_view) {\n        super(_view);\n        this._view = _view;\n    }\n    detectChanges() {\n        const lView = this._view;\n        const tView = lView[TVIEW];\n        const context = lView[CONTEXT];\n        detectChangesInternal(tView, lView, context, false);\n    }\n    checkNoChanges() {\n        if (ngDevMode) {\n            const lView = this._view;\n            const tView = lView[TVIEW];\n            const context = lView[CONTEXT];\n            checkNoChangesInternal(tView, lView, context, false);\n        }\n    }\n    get context() {\n        return null;\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.io/license\n */\nclass ComponentFactoryResolver extends ComponentFactoryResolver$1 {\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) {\n    const array = [];\n    for (let nonMinified in map) {\n        if (map.hasOwnProperty(nonMinified)) {\n            const minified = map[nonMinified];\n            array.push({ propName: minified, templateName: nonMinified });\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 * 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    constructor(injector, parentInjector) {\n        this.injector = injector;\n        this.parentInjector = parentInjector;\n    }\n    get(token, notFoundValue, 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 * ComponentFactory interface implementation.\n */\nclass ComponentFactory extends ComponentFactory$1 {\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 =\n            componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];\n        this.isBoundToModule = !!ngModule;\n    }\n    get inputs() {\n        return toRefArray(this.componentDef.inputs);\n    }\n    get outputs() {\n        return toRefArray(this.componentDef.outputs);\n    }\n    create(injector, projectableNodes, rootSelectorOrNode, environmentInjector) {\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 = this.componentDef.getStandaloneInjector(realEnvironmentInjector) ||\n                realEnvironmentInjector;\n        }\n        const rootViewInjector = realEnvironmentInjector ? new ChainedInjector(injector, realEnvironmentInjector) : 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 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 selector.\n        const elementName = this.componentDef.selectors[0][0] || 'div';\n        const hostRNode = rootSelectorOrNode ?\n            locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) :\n            createElementNode(hostRenderer, elementName, getNamespace(elementName));\n        const rootFlags = this.componentDef.onPush ? 32 /* LViewFlags.Dirty */ | 256 /* LViewFlags.IsRoot */ :\n            16 /* LViewFlags.CheckAlways */ | 256 /* LViewFlags.IsRoot */;\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);\n        const rootLView = createLView(null, rootTView, null, rootFlags, null, null, rendererFactory, hostRenderer, sanitizer, rootViewInjector, null);\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 component;\n        let tElementNode;\n        try {\n            const componentView = createRootComponentView(hostRNode, this.componentDef, rootLView, rendererFactory, hostRenderer);\n            if (hostRNode) {\n                if (rootSelectorOrNode) {\n                    setUpAttributes(hostRenderer, hostRNode, ['ng-version', VERSION.full]);\n                }\n                else {\n                    // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`\n                    // is not defined), also apply attributes and classes extracted from component selector.\n                    // Extract attributes and classes from the first selector only to match VE behavior.\n                    const { attrs, classes } = extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);\n                    if (attrs) {\n                        setUpAttributes(hostRenderer, hostRNode, attrs);\n                    }\n                    if (classes && classes.length > 0) {\n                        writeDirectClass(hostRenderer, hostRNode, classes.join(' '));\n                    }\n                }\n            }\n            tElementNode = getTNode(rootTView, HEADER_OFFSET);\n            if (projectableNodes !== undefined) {\n                const projection = tElementNode.projection = [];\n                for (let i = 0; i < this.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 ? Array.from(nodesforSlot) : null);\n                }\n            }\n            // TODO: should LifecycleHooksFeature and other host features be generated by the compiler and\n            // executed here?\n            // Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref\n            component =\n                createRootComponent(componentView, this.componentDef, rootLView, [LifecycleHooksFeature]);\n            renderView(rootTView, rootLView, null);\n        }\n        finally {\n            leaveView();\n        }\n        return new ComponentRef(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);\n    }\n}\nconst componentFactoryResolver = new ComponentFactoryResolver();\n/**\n * Creates a ComponentFactoryResolver and stores it on the injector. Or, if the\n * ComponentFactoryResolver\n * already exists, retrieves the existing ComponentFactoryResolver.\n *\n * @returns The ComponentFactoryResolver instance to use\n */\nfunction injectComponentFactoryResolver() {\n    return componentFactoryResolver;\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    constructor(componentType, instance, location, _rootLView, _tNode) {\n        super();\n        this.location = location;\n        this._rootLView = _rootLView;\n        this._tNode = _tNode;\n        this.instance = instance;\n        this.hostView = this.changeDetectorRef = new RootViewRef(_rootLView);\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            const lView = this._rootLView;\n            setInputsForProperty(lView[TVIEW], lView, dataValue, name, value);\n            markDirtyIfOnPush(lView, this._tNode.index);\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// TODO: A hack to not pull in the NullInjector from @angular/core.\nconst NULL_INJECTOR = {\n    get: (token, notFoundValue) => {\n        throwProviderNotFoundError(token, 'NullInjector');\n    }\n};\n/**\n * Creates the root component view and the root component node.\n *\n * @param rNode Render host element.\n * @param def ComponentDef\n * @param rootView The parent view where the host node is stored\n * @param rendererFactory Factory to be used for creating child renderers.\n * @param hostRenderer The current renderer\n * @param sanitizer The sanitizer, if provided\n *\n * @returns Component view created\n */\nfunction createRootComponentView(rNode, def, rootView, rendererFactory, hostRenderer, sanitizer) {\n    const tView = rootView[TVIEW];\n    const index = HEADER_OFFSET;\n    ngDevMode && assertIndexInRange(rootView, index);\n    rootView[index] = rNode;\n    // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at\n    // the same time we want to communicate the debug `TNode` that this is a special `TNode`\n    // representing a host element.\n    const tNode = getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, '#host', null);\n    const mergedAttrs = tNode.mergedAttrs = def.hostAttrs;\n    if (mergedAttrs !== null) {\n        computeStaticStyling(tNode, mergedAttrs, true);\n        if (rNode !== null) {\n            setUpAttributes(hostRenderer, rNode, mergedAttrs);\n            if (tNode.classes !== null) {\n                writeDirectClass(hostRenderer, rNode, tNode.classes);\n            }\n            if (tNode.styles !== null) {\n                writeDirectStyle(hostRenderer, rNode, tNode.styles);\n            }\n        }\n    }\n    const viewRenderer = rendererFactory.createRenderer(rNode, def);\n    const componentView = createLView(rootView, getOrCreateComponentTView(def), null, def.onPush ? 32 /* LViewFlags.Dirty */ : 16 /* LViewFlags.CheckAlways */, rootView[index], tNode, rendererFactory, viewRenderer, sanitizer || null, null, null);\n    if (tView.firstCreatePass) {\n        diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);\n        markAsComponentHost(tView, tNode);\n        initTNodeFlags(tNode, rootView.length, 1);\n    }\n    addToViewTree(rootView, componentView);\n    // Store component view at node index, with node as the HOST\n    return rootView[index] = componentView;\n}\n/**\n * Creates a root component and sets it up with features and host bindings.Shared by\n * renderComponent() and ViewContainerRef.createComponent().\n */\nfunction createRootComponent(componentView, componentDef, rootLView, hostFeatures) {\n    const tView = rootLView[TVIEW];\n    // Create directive instance with factory() and store at next index in viewData\n    const component = instantiateRootComponent(tView, rootLView, componentDef);\n    // Root view only contains an instance of this component,\n    // so we use a reference to that component instance as a context.\n    componentView[CONTEXT] = rootLView[CONTEXT] = component;\n    if (hostFeatures !== null) {\n        for (const feature of hostFeatures) {\n            feature(component, componentDef);\n        }\n    }\n    // We want to generate an empty QueryList for root content queries for backwards\n    // compatibility with ViewEngine.\n    if (componentDef.contentQueries) {\n        const tNode = getCurrentTNode();\n        ngDevMode && assertDefined(tNode, 'TNode expected');\n        componentDef.contentQueries(1 /* RenderFlags.Create */, component, tNode.directiveStart);\n    }\n    const rootTNode = getCurrentTNode();\n    ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');\n    if (tView.firstCreatePass &&\n        (componentDef.hostBindings !== null || componentDef.hostAttrs !== null)) {\n        setSelectedIndex(rootTNode.index);\n        const rootTView = rootLView[TVIEW];\n        registerHostBindingOpCodes(rootTView, rootTNode, rootLView, rootTNode.directiveStart, rootTNode.directiveEnd, componentDef);\n        invokeHostBindingsInCreationMode(componentDef, component);\n    }\n    return component;\n}\n/**\n * Used to enable lifecycle hooks on the root component.\n *\n * Include this feature when calling `renderComponent` if the root component\n * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't\n * be called properly.\n *\n * Example:\n *\n * ```\n * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});\n * ```\n */\nfunction LifecycleHooksFeature() {\n    const tNode = getCurrentTNode();\n    ngDevMode && assertDefined(tNode, 'TNode is required');\n    registerPostOrderHooks(getLView()[TVIEW], tNode);\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.io/license\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.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                fillProperties(definition.inputs, superDef.inputs);\n                fillProperties(definition.declaredInputs, superDef.declaredInputs);\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}\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 =\n            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 * @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.io/license\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 * @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.io/license\n */\nlet _symbolIterator = null;\nfunction getSymbolIterator() {\n    if (!_symbolIterator) {\n        const Symbol = _global['Symbol'];\n        if (Symbol && Symbol.iterator) {\n            _symbolIterator = Symbol.iterator;\n        }\n        else {\n            // es6-shim specific logic\n            const keys = Object.getOwnPropertyNames(Map.prototype);\n            for (let i = 0; i < keys.length; ++i) {\n                const key = keys[i];\n                if (key !== 'entries' && key !== 'size' &&\n                    Map.prototype[key] === Map.prototype['entries']) {\n                    _symbolIterator = key;\n                }\n            }\n        }\n    }\n    return _symbolIterator;\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.io/license\n */\nfunction isIterable(obj) {\n    return obj !== null && typeof obj === 'object' && obj[getSymbolIterator()] !== 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            getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n}\nfunction areIterablesEqual(a, b, comparator) {\n    const iterator1 = a[getSymbolIterator()]();\n    const iterator2 = b[getSymbolIterator()]();\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[getSymbolIterator()]();\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\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.io/license\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/**\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.io/license\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);\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\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.io/license\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 * @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.io/license\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 ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n        renderStringify(v2) + i2 + renderStringify(v3) + 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 ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n        renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + 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 + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 +\n            renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + 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 ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n        renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n        renderStringify(v5) + i5 + renderStringify(v6) + 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 ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n        renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n        renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + 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\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.io/license\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    detectChangesInternal(view[TVIEW], view, component);\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.io/license\n */\nfunction templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, 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, getConstant(tViewConsts, attrsIndex));\n    resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n    registerPostOrderHooks(tView, tNode);\n    const embeddedTView = tNode.tViews = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);\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 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 adjustedIndex = index + HEADER_OFFSET;\n    const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) :\n        tView.data[adjustedIndex];\n    setCurrentTNode(tNode, false);\n    const comment = lView[RENDERER].createComment(ngDevMode ? 'container' : '');\n    appendChild(tView, lView, comment, tNode);\n    attachPatchData(comment, lView);\n    addToViewTree(lView, lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode));\n    if (isDirectiveHost(tNode)) {\n        createDirectivesInstances(tView, lView, tNode);\n    }\n    if (localRefsIndex != null) {\n        saveResolvedLocalsInData(lView, tNode, localRefExtractor);\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.io/license\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 * @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.io/license\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 * @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.io/license\n */\nfunction elementStartFirstCreatePass(index, tView, lView, native, 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    const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n    if (ngDevMode) {\n        validateElementIsKnown(native, lView, tNode.value, tView.schemas, hasDirectives);\n    }\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 native = lView[adjustedIndex] = createElementNode(renderer, name, getNamespace$1());\n    const tNode = tView.firstCreatePass ?\n        elementStartFirstCreatePass(adjustedIndex, tView, lView, native, name, attrsIndex, localRefsIndex) :\n        tView.data[adjustedIndex];\n    setCurrentTNode(tNode, true);\n    const mergedAttrs = tNode.mergedAttrs;\n    if (mergedAttrs !== null) {\n        setUpAttributes(renderer, native, mergedAttrs);\n    }\n    const classes = tNode.classes;\n    if (classes !== null) {\n        writeDirectClass(renderer, native, classes);\n    }\n    const styles = tNode.styles;\n    if (styles !== null) {\n        writeDirectStyle(renderer, native, styles);\n    }\n    if ((tNode.flags & 64 /* TNodeFlags.isDetached */) !== 64 /* TNodeFlags.isDetached */) {\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 (isDirectiveHost(tNode)) {\n        createDirectivesInstances(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    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}\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.io/license\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    ngDevMode && ngDevMode.rendererCreateComment++;\n    const native = lView[adjustedIndex] =\n        lView[RENDERER].createComment(ngDevMode ? 'ng-container' : '');\n    appendChild(tView, lView, native, tNode);\n    attachPatchData(native, lView);\n    if (isDirectiveHost(tNode)) {\n        createDirectivesInstances(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}\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 * @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.io/license\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 * Determine if the argument is an Observable\n *\n * Strictly this tests that the `obj` is `Subscribable`, since `Observable`\n * types need additional methods, such as `lift()`. But it is adequate for our\n * needs since within the Angular framework code we only ever need to use the\n * `subscribe()` method, and RxJS has mechanisms to wrap `Subscribable` objects\n * into `Observable` as needed.\n */\nconst isObservable = isSubscribable;\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.io/license\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\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, !!useCapture, 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, false);\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, useCapture, 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, false /** preventDefault */);\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, false /** preventDefault */);\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 && !isObservable(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    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    }\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, wrapWithPreventDefault) {\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 = tNode.flags & 2 /* TNodeFlags.isComponentHost */ ?\n            getComponentLViewByIndex(tNode.index, lView) :\n            lView;\n        markViewDirty(startView);\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        if (wrapWithPreventDefault && result === false) {\n            e.preventDefault();\n            // Necessary for legacy browsers that don't support preventDefault (e.g. IE)\n            e.returnValue = false;\n        }\n        return result;\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.io/license\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.io/license\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 * @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.io/license\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 =\n            newArray(numProjectionSlots, null);\n        const tails = projectionHeads.slice();\n        let componentChild = componentNode.child;\n        while (componentChild !== null) {\n            const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 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            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\n * @param selectorIndex:\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 *\n * @codeGenApi\n */\nfunction ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {\n    const lView = getLView();\n    const tView = getTView();\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    // `<ng-content>` has no content\n    setCurrentTNodeAsNotParent();\n    if ((tProjectionNode.flags & 64 /* TNodeFlags.isDetached */) !== 64 /* TNodeFlags.isDetached */) {\n        // re-distribution of projectable nodes is stored on a component's view level\n        applyProjection(tView, lView, tProjectionNode);\n    }\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 * @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.io/license\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 * ```\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 * ```\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 * ```\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] =\n                    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, isClassBinding);\n    markDuplicates(tData, tStylingKey, index, false, isClassBinding);\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 */ && 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, isClassBinding) {\n    const tStylingAtIndex = tData[index + 1];\n    const isMap = tStylingKey === null;\n    let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : 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 ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) :\n                setTStylingRangePrevDuplicate(tStyleRangeAtCursor);\n        }\n        cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) :\n            getTStylingRangeNext(tStyleRangeAtCursor);\n    }\n    if (foundDuplicate) {\n        // if we found a duplicate, than mark ourselves.\n        tData[index + 1] = isPrevDir ? 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) ===\n            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) >=\n            0; // see if we are matching the key\n    }\n    return 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.io/license\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 * ```\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 * ```\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 * ```\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 * ```\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 */ || 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 ===\n            i - 4 && // We have seen only 4 characters so far \"URL(\" (Ignore \"foo_URL()\")\n            ch3 === 85 /* CharCode.U */ &&\n            ch2 === 82 /* CharCode.R */ && ch1 === 76 /* CharCode.L */ && 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 ? 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 '` + text.substring(0, index) + '[>>' +\n        text.substring(index, index + 1) + '<<]' + text.slice(index + 1) +\n        `'. Expecting '${expecting}'.`);\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.io/license\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(keyValueArraySet, 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 && isClassBased === false && 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 =\n                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 =\n                        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 * ```\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 * ```\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 * ```\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 * ```\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 * 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 ? keyValueArrayGet(valueAtLViewIndex, prop) :\n            (key === prop ? valueAtLViewIndex : 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 === undefined */) {\n        // do nothing\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 ? 16 /* TNodeFlags.hasClassInput */ : 32 /* TNodeFlags.hasStyleInput */)) !== 0;\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.io/license\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 = lView[adjustedIndex] = createTextNode(lView[RENDERER], value);\n    appendChild(tView, lView, textNative, tNode);\n    // Text nodes are self closing.\n    setCurrentTNode(tNode, 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.io/license\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/**\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.io/license\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.io/license\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 * @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.io/license\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 * @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.io/license\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 * @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.io/license\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        // tslint:disable-next-line:no-toplevel-property-access\n        _global['ngI18nClosureMode'] =\n            // TODO(FW-1250): validate that this actually, you know, works.\n            // tslint:disable-next-line:no-toplevel-property-access\n            typeof goog !== 'undefined' && typeof goog.getMsg === 'function';\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.io/license\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 * @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.io/license\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-common-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-overview)\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 `NgPlural`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\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] = _global.ng && _global.ng.common && _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\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.io/license\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 * @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.io/license\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// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$2 = 1;\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.io/license\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    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 * @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.io/license\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) ? tNodeInsertBeforeIndex[0] : 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.flags & 2 /* TNodeFlags.isComponentHost */) === 0) {\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\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.io/license\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 * @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.io/license\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('tViews') || 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') ? 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('tViews'), 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 */, index];\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\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.io/license\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) ? tI18n : 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}\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        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] =\n                isComment ? renderer.createComment(text) : createTextNode(renderer, text);\n        }\n        if (appendNow && parentRNode !== null) {\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] = createTextNode(renderer, opCode);\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 = nativeParentNode(renderer, 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] =\n                            createCommentNode(renderer, commentValue);\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] =\n                            createElementNode(renderer, tagName, null);\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        }\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 * @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.io/license\n */\nfunction loadIcuContainerVisitor() {\n    const _stack = [];\n    let _index = -1;\n    let _lView;\n    let _removes;\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     * ```\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        _lView = lView;\n        while (_stack.length)\n            _stack.pop();\n        ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);\n        enterIcu(tIcuContainerNode.value, lView);\n        return icuContainerIteratorNext;\n    }\n    function enterIcu(tIcu, lView) {\n        _index = 0;\n        const currentCase = getCurrentICUCaseIndex(tIcu, lView);\n        if (currentCase !== null) {\n            ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);\n            _removes = tIcu.remove[currentCase];\n        }\n        else {\n            _removes = EMPTY_ARRAY;\n        }\n    }\n    function icuContainerIteratorNext() {\n        if (_index < _removes.length) {\n            const removeOpCode = _removes[_index++];\n            ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');\n            if (removeOpCode > 0) {\n                const rNode = _lView[removeOpCode];\n                ngDevMode && assertDomNode(rNode);\n                return rNode;\n            }\n            else {\n                _stack.push(_index, _removes);\n                // ICUs are represented by negative indices\n                const tIcuIndex = ~removeOpCode;\n                const tIcu = _lView[TVIEW].data[tIcuIndex];\n                ngDevMode && assertTIcu(tIcu);\n                enterIcu(tIcu, _lView);\n                return icuContainerIteratorNext();\n            }\n        }\n        else {\n            if (_stack.length === 0) {\n                return null;\n            }\n            else {\n                _removes = _stack.pop();\n                _index = _stack.pop();\n                return icuContainerIteratorNext();\n            }\n        }\n    }\n    return icuContainerIteratorStart;\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.io/license\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    constructor(codes) {\n        this.i = 0;\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' || typeof value === 'number' || 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\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.io/license\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 Dart introduced &ngsp; as a placeholder for non-removable space, see:\n * https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32\n * In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character\n * and later on replaced by a space. We are re-implementing the same idea here, since translations\n * 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 * 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    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(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(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                setCurrentTNode(getCurrentParentTNode(), false);\n            }\n            else {\n                const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);\n                existingTNodeStack.unshift([]);\n                setCurrentTNode(tNode, true);\n            }\n        }\n    }\n    tView.data[index] = {\n        create: createOpCodes,\n        update: updateOpCodes,\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(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    if (hasBinding) {\n        generateBindingUpdateOpCodes(updateOpCodes, text, tNode.index, null, 0, null);\n    }\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}\nfunction isRootTemplateMessage(subTemplateIndex) {\n    return subTemplateIndex === -1;\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 * ```\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(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    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        bindingMask = parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) |\n            bindingMask;\n    }\n    if (bindingMask) {\n        addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);\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(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(tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);\n    }\n    else {\n        return 0;\n    }\n}\nfunction walkIcuTree(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 https://g.co/ng/security#xss)`);\n                            }\n                        }\n                        else {\n                            addCreateAttribute(create, newIndex, attr);\n                        }\n                    }\n                    // Parse the children of this node (if any)\n                    bindingMask = walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) |\n                        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                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(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/**\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.io/license\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 * @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.io/license\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    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 */) ?\n        lView[parentTNode.index] :\n        null;\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 * @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.io/license\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.io/license\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        let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);\n        let providerFactory = providerToFactory(provider);\n        const tNode = getCurrentTNode();\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 &&\n                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 :\n                    existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);\n                registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? 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 =\n            (def, processProvidersFn) => {\n                return providersResolver(def, //\n                processProvidersFn ? processProvidersFn(providers) : providers, //\n                viewProviders);\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.io/license\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. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)\n * for additional context. 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 * @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.io/license\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    constructor(ngModuleType, _parent) {\n        super();\n        this._parent = _parent;\n        // tslint:disable-next-line:require-internal-with-underscore\n        this._bootstrapComponents = [];\n        this.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        this.componentFactoryResolver = new ComponentFactoryResolver(this);\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                provide: ComponentFactoryResolver$1,\n                useValue: this.componentFactoryResolver\n            }\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        this._r3Injector.resolveInjectorInitializers();\n        this.instance = this._r3Injector.get(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    constructor(moduleType) {\n        super();\n        this.moduleType = moduleType;\n    }\n    create(parentInjector) {\n        return new NgModuleRef(this.moduleType, parentInjector);\n    }\n}\nclass EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {\n    constructor(providers, parent, source) {\n        super();\n        this.componentFactoryResolver = new ComponentFactoryResolver(this);\n        this.instance = null;\n        const injector = new R3Injector([\n            ...providers,\n            { provide: NgModuleRef$1, useValue: this },\n            { provide: ComponentFactoryResolver$1, useValue: this.componentFactoryResolver },\n        ], parent || getNullInjector(), source, new Set(['environment']));\n        this.injector = injector;\n        injector.resolveInjectorInitializers();\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 * Learn more about environment injectors in\n * [this guide](guide/standalone-components#environment-injectors).\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 * @developerPreview\n */\nfunction createEnvironmentInjector(providers, parent, debugName = null) {\n    const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);\n    return adapter.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.io/license\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    constructor(_injector) {\n        this._injector = _injector;\n        this.cachedInjectors = new Map();\n    }\n    getOrCreateStandaloneInjector(componentDef) {\n        if (!componentDef.standalone) {\n            return null;\n        }\n        if (!this.cachedInjectors.has(componentDef.id)) {\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.id, standaloneInjector);\n        }\n        return this.cachedInjectors.get(componentDef.id);\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}\n/** @nocollapse */\nStandaloneService.ɵprov = ɵɵdefineInjectable({\n    token: StandaloneService,\n    providedIn: 'environment',\n    factory: () => new StandaloneService(ɵɵinject(EnvironmentInjector)),\n});\n/**\n * A feature that acts as a setup code for the {@link StandaloneService}.\n *\n * The most important responsibility of this feature is to expose the \"getStandaloneInjector\"\n * function (an entry points to a standalone injector creation) on a component definition object. We\n * go through the features infrastructure to make sure that the standalone injector creation logic\n * is tree-shakable and not included in applications that don't use standalone components.\n *\n * @codeGenApi\n */\nfunction ɵɵStandaloneFeature(definition) {\n    definition.getStandaloneInjector = (parentInjector) => {\n        return parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(definition);\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.io/license\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 * @globalApi ng\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 * @globalApi ng\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 * @globalApi ng\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 lView[FLAGS] & 256 /* LViewFlags.IsRoot */ ? 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 * @globalApi ng\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 * @globalApi ng\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 * @globalApi ng\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, false);\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 * @globalApi ng\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        return {\n            inputs: componentDef.inputs,\n            outputs: componentDef.outputs,\n            encapsulation: componentDef.encapsulation,\n            changeDetection: componentDef.onPush ? ChangeDetectionStrategy.OnPush :\n                ChangeDetectionStrategy.Default\n        };\n    }\n    const directiveDef = getDirectiveDef(constructor);\n    if (directiveDef) {\n        return { inputs: directiveDef.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 * @globalApi ng\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 * @globalApi ng\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 && obj.template !== undefined && obj.declaredInputs !== undefined;\n}\n/**\n * Returns the attached `DebugNode` instance for an element in the DOM.\n *\n * @param element DOM element which is owned by an existing component's view.\n */\nfunction getDebugNode$1(element) {\n    if (ngDevMode && !(element instanceof Node)) {\n        throw new Error('Expecting instance of DOM Element');\n    }\n    const lContext = getLContext(element);\n    const lView = lContext ? lContext.lView : null;\n    if (lView === null) {\n        return null;\n    }\n    const nodeIndex = lContext.nodeIndex;\n    if (nodeIndex !== -1) {\n        const valueInLView = lView[nodeIndex];\n        // this means that value in the lView is a component with its own\n        // data. In this situation the TNode is not accessed at the same spot.\n        const tNode = isLView(valueInLView) ? valueInLView[T_HOST] : getTNode(lView[TVIEW], nodeIndex);\n        ngDevMode &&\n            assertEqual(tNode.index, nodeIndex, 'Expecting that TNode at index is same as index');\n        return buildDebugNode(tNode, lView);\n    }\n    return null;\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/**\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.io/license\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 * @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.io/license\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 ? 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 ? 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 ? 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 ? 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 ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) :\n        getPureFunctionReturnValue(lView, bindingIndex);\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.io/license\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 || (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    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    }\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        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}\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 ? '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 slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind1(index, slotOffset, 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(), slotOffset, 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) ? 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 * @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.io/license\n */\nclass EventEmitter_ extends Subject {\n    constructor(isAsync = false) {\n        super();\n        this.__isAsync = isAsync;\n    }\n    emit(value) {\n        super.next(value);\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 = _wrapInTimeout(errorFn);\n            if (nextFn) {\n                nextFn = _wrapInTimeout(nextFn);\n            }\n            if (completeFn) {\n                completeFn = _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}\nfunction _wrapInTimeout(fn) {\n    return (value) => {\n        setTimeout(fn, undefined, value);\n    };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\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.io/license\n */\nfunction symbolIterator() {\n    return this._results[getSymbolIterator()]();\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 * ```typescript\n * @Component({...})\n * class Container {\n *   @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\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        this.dirty = true;\n        this._results = [];\n        this._changesDetected = false;\n        this._changes = null;\n        this.length = 0;\n        this.first = undefined;\n        this.last = undefined;\n        // This function should be declared on the prototype, but doing so there will cause the class\n        // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n        // the constructor.\n        // [getSymbolIterator()](): Iterator<T> { ... }\n        const symbol = getSymbolIterator();\n        const proto = QueryList.prototype;\n        if (!proto[symbol])\n            proto[symbol] = symbolIterator;\n    }\n    /**\n     * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n     */\n    get changes() {\n        return this._changes || (this._changes = new EventEmitter());\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    /**\n     * See\n     * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)\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        // Cast to `QueryListInternal` so that we can mutate fields which are readonly for the usage of\n        // QueryList (but not for QueryList itself.)\n        const self = this;\n        self.dirty = false;\n        const newResultFlat = flatten(resultsTree);\n        if (this._changesDetected = !arrayEquals(self._results, newResultFlat, identityAccessor)) {\n            self._results = newResultFlat;\n            self.length = newResultFlat.length;\n            self.last = newResultFlat[this.length - 1];\n            self.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 && (this._changesDetected || !this._emitDistinctChangesOnly))\n            this._changes.emit(this);\n    }\n    /** internal */\n    setDirty() {\n        this.dirty = true;\n    }\n    /** internal */\n    destroy() {\n        this.changes.complete();\n        this.changes.unsubscribe();\n    }\n}\nSymbol.iterator;\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.io/license\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 `ViewContainerRef`\n * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)\n *\n * @publicApi\n */\nclass TemplateRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nTemplateRef.__NG_ELEMENT_ID__ = injectTemplateRef;\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    constructor(_declarationLView, _declarationTContainer, elementRef) {\n        super();\n        this._declarationLView = _declarationLView;\n        this._declarationTContainer = _declarationTContainer;\n        this.elementRef = elementRef;\n    }\n    createEmbeddedView(context, injector) {\n        const embeddedTView = this._declarationTContainer.tViews;\n        const embeddedLView = createLView(this._declarationLView, embeddedTView, context, 16 /* LViewFlags.CheckAlways */, null, embeddedTView.declTNode, null, null, null, null, injector || null);\n        const declarationLContainer = this._declarationLView[this._declarationTContainer.index];\n        ngDevMode && assertLContainer(declarationLContainer);\n        embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;\n        const declarationViewLQueries = this._declarationLView[QUERIES];\n        if (declarationViewLQueries !== null) {\n            embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);\n        }\n        renderView(embeddedTView, embeddedLView, context);\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.tViews, 'TView must be allocated');\n        return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\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.io/license\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](guide/glossary#view-tree).\n *\n * @see `ComponentRef`\n * @see `EmbeddedViewRef`\n *\n * @publicApi\n */\nclass ViewContainerRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nViewContainerRef.__NG_ELEMENT_ID__ = injectViewContainerRef;\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    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 viewRef = templateRef.createEmbeddedView(context || {}, injector);\n        this.insert(viewRef, index);\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 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 componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, environmentInjector);\n        this.insert(componentRef.hostView, index);\n        return componentRef;\n    }\n    insert(viewRef, index) {\n        const lView = viewRef._lView;\n        const tView = lView[TVIEW];\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        insertView(tView, lView, lContainer, adjustedIdx);\n        // Physical operation of adding the DOM nodes.\n        const beforeNode = getBeforeNodeForView(adjustedIdx, lContainer);\n        const renderer = lView[RENDERER];\n        const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);\n        if (parentRNode !== null) {\n            addViewToContainer(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);\n        }\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 ViewContainerRefToken The ViewContainerRef type\n * @param ElementRefToken The ElementRef type\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        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            // 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            const renderer = hostLView[RENDERER];\n            ngDevMode && ngDevMode.rendererCreateComment++;\n            commentNode = renderer.createComment(ngDevMode ? 'container' : '');\n            const hostNative = getNativeByTNode(hostTNode, hostLView);\n            const parentOfHostNative = nativeParentNode(renderer, hostNative);\n            nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);\n        }\n        hostLView[hostTNode.index] = lContainer =\n            createLContainer(slotValue, hostLView, commentNode, hostTNode);\n        addToViewTree(hostLView, lContainer);\n    }\n    return new R3ViewContainerRef(lContainer, hostTNode, hostLView);\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.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$1 = 1;\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.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd = 1;\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.io/license\n */\nconst unusedValueToPlacateAjd = unusedValueExportToPlacateAjd$1 + unusedValueExportToPlacateAjd$6 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd;\nclass LQuery_ {\n    constructor(queryList) {\n        this.queryList = queryList;\n        this.matches = null;\n    }\n    clone() {\n        return new LQuery_(this.queryList);\n    }\n    setDirty() {\n        this.queryList.setDirty();\n    }\n}\nclass LQueries_ {\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    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    constructor(predicate, flags, read = null) {\n        this.predicate = predicate;\n        this.flags = flags;\n        this.read = read;\n    }\n}\nclass TQueries_ {\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    constructor(metadata, nodeIndex = -1) {\n        this.metadata = metadata;\n        this.matches = null;\n        this.indexInDeclarationView = -1;\n        this.crossesNgTemplate = false;\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        this._appliesToNextNode = true;\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 && (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 || 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; 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}\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 = tQuery.crossesNgTemplate ?\n                collectQueryResults(tView, lView, queryIndex, []) :\n                materializeViewResults(tView, lView, tQuery, queryIndex);\n            queryList.reset(result, unwrapElementRef);\n            queryList.notifyOnChanges();\n        }\n        return true;\n    }\n    return false;\n}\n/**\n * Creates new QueryList, stores the reference in LView and returns QueryList.\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    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    createLQuery(tView, getLView(), flags);\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    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    createLQuery(tView, getLView(), flags);\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}\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}\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    if (lView[QUERIES] === null)\n        lView[QUERIES] = new LQueries_();\n    lView[QUERIES].queries.push(new LQuery_(queryList));\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 ? tViewContentQueries[tViewContentQueries.length - 1] : -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/**\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.io/license\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\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.io/license\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.io/license\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    'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,\n    'ɵɵProvidersFeature': ɵɵProvidersFeature,\n    'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,\n    'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,\n    'ɵɵStandaloneFeature': ɵɵStandaloneFeature,\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    'ɵɵviewQuery': ɵɵviewQuery,\n    'ɵɵloadQuery': ɵɵloadQuery,\n    'ɵɵcontentQuery': ɵɵcontentQuery,\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    'ɵɵ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    'ɵɵ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}))();\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\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.io/license\n */\nfunction patchModuleCompilation() {\n    // Does nothing, but exists as a target for patching.\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.io/license\n */\nfunction isModuleWithProviders(value) {\n    return value.ngModule !== undefined;\n}\nfunction isNgModule(value) {\n    return !!getNgModuleDef(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.io/license\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\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 &&\n                    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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\n                ngInjectorDef =\n                    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).map(unwrapModuleWithProvidersImports).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    declarations.forEach(verifyComponentEntryComponentsIsPartOfNgModule);\n    const ngModule = getAnnotation(moduleType, 'NgModule');\n    if (ngModule) {\n        ngModule.imports &&\n            flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).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        ngModule.entryComponents &&\n            deepForEach(ngModule.entryComponents, 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' || 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 verifyComponentEntryComponentsIsPartOfNgModule(type) {\n        type = resolveForwardRef(type);\n        if (getComponentDef(type)) {\n            // We know we are component\n            const component = getAnnotation(type, 'Component');\n            if (component && component.entryComponents) {\n                deepForEach(component.entryComponents, verifyComponentIsPartOfNgModule);\n            }\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}\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) && !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        return transitiveScopesForNgModule(type);\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 * @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.io/license\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'component', type: type });\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                    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$1.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: 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                    isStandalone: !!metadata.standalone,\n                };\n                compilationDepth++;\n                try {\n                    if (meta.usesInheritance) {\n                        addDirectiveDefToUndecoratedParents(type);\n                    }\n                    ngComponentDef =\n                        compiler.compileComponent(angularCoreEnv, templateUrl, meta);\n                    if (metadata.standalone) {\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 (metadata.standalone) {\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 (metadata.standalone) {\n                    ngComponentDef.schemas = [];\n                }\n            }\n            return ngComponentDef;\n        },\n        // Make the property configurable in dev mode to allow overriding in tests\n        configurable: !!ngDevMode,\n    });\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 * 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 (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();\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    const pipeDefs = () => {\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    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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\n                ngDirectiveDef =\n                    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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\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,\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) && !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    };\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', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked',\n    'ngAfterContentInit', '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) || isContentQuery(current) || isViewQuery(current) ||\n                metadataName === 'Output' || metadataName === 'HostBinding' ||\n                metadataName === 'HostListener') {\n                return true;\n            }\n        }\n    }\n    return 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.io/license\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'pipe', type: metadata.type });\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({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'pipe', type: metadata.type });\n                ngPipeDef =\n                    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,\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.io/license\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', (bindingPropertyName) => ({ bindingPropertyName }));\n/**\n * @Annotation\n * @publicApi\n */\nconst Output = makePropDecorator('Output', (bindingPropertyName) => ({ bindingPropertyName }));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostBinding = makePropDecorator('HostBinding', (hostPropertyName) => ({ hostPropertyName }));\n/**\n * Decorator that binds a DOM event to a host listener and supplies configuration metadata.\n * Angular invokes the supplied handler method when the host element emits the specified event,\n * and updates the bound element with the result.\n *\n * If the handler method returns false, applies `preventDefault` on the bound element.\n *\n * @usageNotes\n *\n * The following example declares a directive\n * that attaches a click listener to a button and counts clicks.\n *\n * ```ts\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n *   numberOfClicks = 0;\n *\n *   @HostListener('click', ['$event.target'])\n *   onClick(btn) {\n *     console.log('button', btn, 'number of clicks:', this.numberOfClicks++);\n *   }\n * }\n *\n * @Component({\n *   selector: 'app',\n *   template: '<button counting>Increment</button>',\n * })\n * class App {}\n *\n * ```\n *\n * The following example registers another DOM event handler that listens for `Enter` key-press\n * events on the global `window`.\n * ``` ts\n * import { HostListener, Component } from \"@angular/core\";\n *\n * @Component({\n *   selector: 'app',\n *   template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key\n * to increment the counter.\n *   <button (click)=\"resetCounter()\">Reset Counter</button>`\n * })\n * class AppComponent {\n *   counter = 0;\n *   @HostListener('window:keydown.enter', ['$event'])\n *   handleKeyDown(event: KeyboardEvent) {\n *     this.counter++;\n *   }\n *   resetCounter() {\n *     this.counter = 0;\n *   }\n * }\n * ```\n * The list of valid key names for `keydown` and `keyup` events\n * can be found here:\n * https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values\n *\n * Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.\n *\n * The global target names that can be used to prefix an event name are\n * `document:`, `window:` and `body:`.\n *\n * @Annotation\n * @publicApi\n */\nconst HostListener = makePropDecorator('HostListener', (eventName, args) => ({ eventName, args }));\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.io/license\n */\n/**\n * @Annotation\n * @publicApi\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` and `entryComponents` options configure 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 * @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.io/license\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.io/license\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.io/license\n */\nfunction noop(...args) {\n    // Do nothing.\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.io/license\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\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") 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 * @see `ApplicationInitStatus`\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 *\n * ```\n *  function initializeApp(): Promise<any> {\n *    return new Promise((resolve, reject) => {\n *      // Do some asynchronous stuff\n *      resolve();\n *    });\n *  }\n *\n *  @NgModule({\n *   imports: [BrowserModule],\n *   declarations: [AppComponent],\n *   bootstrap: [AppComponent],\n *   providers: [{\n *     provide: APP_INITIALIZER,\n *     useFactory: () => initializeApp,\n *     multi: true\n *    }]\n *   })\n *  export class AppModule {}\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 * ```\n *  function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n *   return () => httpClient.get(\"https://someUrl.com/api/user\")\n *     .pipe(\n *        tap(user => { ... })\n *     );\n *  }\n *\n *  @NgModule({\n *    imports: [BrowserModule, HttpClientModule],\n *    declarations: [AppComponent],\n *    bootstrap: [AppComponent],\n *    providers: [{\n *      provide: APP_INITIALIZER,\n *      useFactory: initializeAppFactory,\n *      deps: [HttpClient],\n *      multi: true\n *    }]\n *  })\n *  export class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_INITIALIZER = new InjectionToken('Application Initializer');\n/**\n * A class that reflects the state of running {@link APP_INITIALIZER} functions.\n *\n * @publicApi\n */\nclass ApplicationInitStatus {\n    constructor(appInits) {\n        this.appInits = appInits;\n        this.resolve = noop;\n        this.reject = noop;\n        this.initialized = false;\n        this.done = false;\n        this.donePromise = new Promise((res, rej) => {\n            this.resolve = res;\n            this.reject = rej;\n        });\n    }\n    /** @internal */\n    runInitializers() {\n        if (this.initialized) {\n            return;\n        }\n        const asyncInitPromises = [];\n        const complete = () => {\n            this.done = true;\n            this.resolve();\n        };\n        if (this.appInits) {\n            for (let i = 0; i < this.appInits.length; i++) {\n                const initResult = this.appInits[i]();\n                if (isPromise(initResult)) {\n                    asyncInitPromises.push(initResult);\n                }\n                else if (isObservable(initResult)) {\n                    const observableAsPromise = new Promise((resolve, reject) => {\n                        initResult.subscribe({ complete: resolve, error: reject });\n                    });\n                    asyncInitPromises.push(observableAsPromise);\n                }\n            }\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}\nApplicationInitStatus.ɵfac = function ApplicationInitStatus_Factory(t) { return new (t || ApplicationInitStatus)(ɵɵinject(APP_INITIALIZER, 8)); };\nApplicationInitStatus.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationInitStatus, factory: ApplicationInitStatus.ɵfac, providedIn: 'root' });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{\n        type: Injectable,\n        args: [{ providedIn: 'root' }]\n    }], function () { return [{ type: undefined, decorators: [{\n                type: Inject,\n                args: [APP_INITIALIZER]\n            }, {\n                type: Optional\n            }] }]; }, null); })();\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.io/license\n */\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") representing a unique string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.\n *\n * BY default, the value is randomly generated and assigned to the application by Angular.\n * To provide a custom ID value, use a DI provider <!-- TODO: provider --> to configure\n * the root {@link Injector} that uses this token.\n *\n * @publicApi\n */\nconst APP_ID = new InjectionToken('AppId', {\n    providedIn: 'root',\n    factory: _appIdRandomProviderFactory,\n});\nfunction _appIdRandomProviderFactory() {\n    return `${_randomChar()}${_randomChar()}${_randomChar()}`;\n}\n/**\n * Providers that generate a random `APP_ID_TOKEN`.\n * @publicApi\n */\nconst APP_ID_RANDOM_PROVIDER = {\n    provide: APP_ID,\n    useFactory: _appIdRandomProviderFactory,\n    deps: [],\n};\nfunction _randomChar() {\n    return String.fromCharCode(97 + Math.floor(Math.random() * 25));\n}\n/**\n * A function that is executed when a platform is initialized.\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = new InjectionToken('Platform ID', {\n    providedIn: 'platform',\n    factory: () => 'unknown', // set a default platform name, when none set explicitly\n});\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") 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('appBootstrapListener');\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates the root directory of\n * the application\n * @publicApi\n */\nconst PACKAGE_ROOT_URL = new InjectionToken('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](guide/glossary#di-token \"DI token definition\") that indicates which animations\n * module has been loaded.\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = new InjectionToken('AnimationModuleType');\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.io/license\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        // tslint:disable-next-line:no-console\n        console.warn(message);\n    }\n}\nConsole.ɵfac = function Console_Factory(t) { return new (t || Console)(); };\nConsole.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac, providedIn: 'platform' });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Console, [{\n        type: Injectable,\n        args: [{ providedIn: 'platform' }]\n    }], null, null); })();\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.io/license\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' && ngI18nClosureMode &&\n        typeof goog !== 'undefined' && 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-common-locale-id) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\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('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-common-locale-id) for more information.\n *\n * <div class=\"alert is-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 * ```typescript\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('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-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\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('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-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\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('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-common-merge#report-missing-translations) for more information.\n *\n * @usageNotes\n * ### Example\n * ```typescript\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/**\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.io/license\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 * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass ModuleWithComponentFactories {\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 * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass Compiler {\n    /**\n     * Compiles the given NgModule and all of its components. All templates of the components listed\n     * in `entryComponents` 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 #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)\n            .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 #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}\nCompiler.ɵfac = function Compiler_Factory(t) { return new (t || Compiler)(); };\nCompiler.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Compiler, factory: Compiler.ɵfac, providedIn: 'root' });\n(function () { (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('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 * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass CompilerFactory {\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.io/license\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 * @globalApi ng\n */\nfunction applyChanges(component) {\n    ngDevMode && assertDefined(component, 'component');\n    markViewDirty(getComponentViewByInstance(component));\n    getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));\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.io/license\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';\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        /**\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\n         * removed completely.\n         */\n        publishGlobalUtil('ɵsetProfiler', setProfiler);\n        publishGlobalUtil('getDirectiveMetadata', getDirectiveMetadata$1);\n        publishGlobalUtil('getComponent', getComponent);\n        publishGlobalUtil('getContext', getContext);\n        publishGlobalUtil('getListeners', getListeners);\n        publishGlobalUtil('getOwningComponent', getOwningComponent);\n        publishGlobalUtil('getHostElement', getHostElement);\n        publishGlobalUtil('getInjector', getInjector);\n        publishGlobalUtil('getRootComponents', getRootComponents);\n        publishGlobalUtil('getDirectives', getDirectives);\n        publishGlobalUtil('applyChanges', applyChanges);\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    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        if (w) {\n            let container = w[GLOBAL_PUBLISH_EXPANDO_KEY];\n            if (!container) {\n                container = w[GLOBAL_PUBLISH_EXPANDO_KEY] = {};\n            }\n            container[name] = fn;\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.io/license\n */\nconst promise = (() => Promise.resolve(0))();\nfunction scheduleMicroTask(fn) {\n    if (typeof Zone === 'undefined') {\n        // use promise to schedule microTask instead of use Zone\n        promise.then(() => {\n            fn && fn.apply(null, null);\n        });\n    }\n    else {\n        Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\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.io/license\n */\nfunction getNativeRequestAnimationFrame() {\n    let nativeRequestAnimationFrame = _global['requestAnimationFrame'];\n    let nativeCancelAnimationFrame = _global['cancelAnimationFrame'];\n    if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {\n        // use unpatched version of requestAnimationFrame(native delegate) if possible\n        // to avoid another Change detection\n        const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n        if (unpatchedRequestAnimationFrame) {\n            nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;\n        }\n        const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n        if (unpatchedCancelAnimationFrame) {\n            nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;\n        }\n    }\n    return { nativeRequestAnimationFrame, nativeCancelAnimationFrame };\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.io/license\n */\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 * ```\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    constructor({ enableLongStackTrace = false, shouldCoalesceEventChangeDetection = false, shouldCoalesceRunChangeDetection = false }) {\n        this.hasPendingMacrotasks = false;\n        this.hasPendingMicrotasks = false;\n        /**\n         * Whether there are no outstanding microtasks or macrotasks.\n         */\n        this.isStable = true;\n        /**\n         * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n         */\n        this.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        this.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        this.onStable = new EventEmitter(false);\n        /**\n         * Notifies that an error has been delivered.\n         */\n        this.onError = new EventEmitter(false);\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        if (Zone['AsyncStackTaggingZoneSpec']) {\n            const AsyncStackTaggingZoneSpec = Zone['AsyncStackTaggingZoneSpec'];\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.lastRequestAnimationFrameId = -1;\n        self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;\n        forkInnerZoneWithAngularBehavior(self);\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('isAngularZone') === true;\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    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 `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    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.lastRequestAnimationFrameId !== -1) {\n        return;\n    }\n    zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {\n        // This is a work around for https://github.com/angular/angular/issues/36839.\n        // The core issue is that when event coalescing is enabled it is possible for microtasks\n        // to get flushed too early (As is the case with `Promise.then`) between the\n        // coalescing eventTasks.\n        //\n        // To workaround this we schedule a \"fake\" eventTask before we process the\n        // coalescing eventTasks. The benefit of this is that the \"fake\" container eventTask\n        //  will prevent the microtasks queue from getting drained in between the coalescing\n        // eventTask execution.\n        if (!zone.fakeTopEventTask) {\n            zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {\n                zone.lastRequestAnimationFrameId = -1;\n                updateMicroTaskStatus(zone);\n                zone.isCheckStableRunning = true;\n                checkStable(zone);\n                zone.isCheckStableRunning = false;\n            }, undefined, () => { }, () => { });\n        }\n        zone.fakeTopEventTask.invoke();\n    });\n    updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n    const delayChangeDetectionForEventsDelegate = () => {\n        delayChangeDetectionForEvents(zone);\n    };\n    zone._inner = zone._inner.fork({\n        name: 'angular',\n        properties: { 'isAngularZone': true },\n        onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\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                    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.lastRequestAnimationFrameId !== -1)) {\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    constructor() {\n        this.hasPendingMicrotasks = false;\n        this.hasPendingMacrotasks = false;\n        this.isStable = true;\n        this.onUnstable = new EventEmitter();\n        this.onMicrotaskEmpty = new EventEmitter();\n        this.onStable = new EventEmitter();\n        this.onError = new EventEmitter();\n    }\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}\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.io/license\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 * ```typescript\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);\n * ```\n *\n * @publicApi\n */\nclass Testability {\n    constructor(_ngZone, registry, testabilityGetter) {\n        this._ngZone = _ngZone;\n        this.registry = registry;\n        this._pendingCount = 0;\n        this._isZoneStable = true;\n        /**\n         * Whether any work was done since the last 'whenStable' callback. This is\n         * useful to detect if this could have potentially destabilized another\n         * component while it is stabilizing.\n         * @internal\n         */\n        this._didWork = false;\n        this._callbacks = [];\n        this.taskTrackingZone = null;\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._didWork = true;\n                this._isZoneStable = false;\n            }\n        });\n        this._ngZone.runOutsideAngular(() => {\n            this._ngZone.onStable.subscribe({\n                next: () => {\n                    NgZone.assertNotInAngularZone();\n                    scheduleMicroTask(() => {\n                        this._isZoneStable = true;\n                        this._runCallbacksIfReady();\n                    });\n                }\n            });\n        });\n    }\n    /**\n     * Increases the number of pending request\n     * @deprecated pending requests are now tracked with zones.\n     */\n    increasePendingRequestCount() {\n        this._pendingCount += 1;\n        this._didWork = true;\n        return this._pendingCount;\n    }\n    /**\n     * Decreases the number of pending request\n     * @deprecated pending requests are now tracked with zones\n     */\n    decreasePendingRequestCount() {\n        this._pendingCount -= 1;\n        if (this._pendingCount < 0) {\n            throw new Error('pending async requests below zero');\n        }\n        this._runCallbacksIfReady();\n        return this._pendingCount;\n    }\n    /**\n     * Whether an associated application is stable\n     */\n    isStable() {\n        return this._isZoneStable && this._pendingCount === 0 && !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            scheduleMicroTask(() => {\n                while (this._callbacks.length !== 0) {\n                    let cb = this._callbacks.pop();\n                    clearTimeout(cb.timeoutId);\n                    cb.doneCb(this._didWork);\n                }\n                this._didWork = false;\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            this._didWork = true;\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(this._didWork, this.getPendingTasks());\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        // These arguments are 'Function' above to keep the public API simple.\n        this.addCallback(doneCb, timeout, updateCb);\n        this._runCallbacksIfReady();\n    }\n    /**\n     * Get the number of pending requests\n     * @deprecated pending requests are now tracked with zones\n     */\n    getPendingRequestCount() {\n        return this._pendingCount;\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}\nTestability.ɵfac = function Testability_Factory(t) { return new (t || Testability)(ɵɵinject(NgZone), ɵɵinject(TestabilityRegistry), ɵɵinject(TESTABILITY_GETTER)); };\nTestability.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Testability, factory: Testability.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Testability, [{\n        type: Injectable\n    }], function () { return [{ 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    constructor() {\n        /** @internal */\n        this._applications = new Map();\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     * @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}\nTestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); };\nTestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac, providedIn: 'platform' });\n(function () { (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 * @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.io/license\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('AllowMultipleToken');\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('PlatformDestroyListeners');\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;\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 = _mergeArrays(compilerOptions.map(o => o.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)))\n        .then(() => moduleFactory);\n}\nfunction publishDefaultGlobalUtils() {\n    ngDevMode && publishDefaultGlobalUtils$1();\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 * @publicApi\n */\nclass NgProbeToken {\n    constructor(name, token) {\n        this.name = name;\n        this.token = token;\n    }\n}\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 &&\n            'There can be only one platform. Destroy the previous one to create a new one.');\n    }\n    publishDefaultGlobalUtils();\n    _platformInjector = injector;\n    const platform = injector.get(PlatformRef);\n    runPlatformInitializers(injector);\n    return platform;\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    // Otherwise, setup a new platform injector and run platform initializers.\n    const injector = createPlatformInjector(providers);\n    _platformInjector = injector;\n    publishDefaultGlobalUtils();\n    runPlatformInitializers(injector);\n    return injector;\n}\nfunction runPlatformInitializers(injector) {\n    const inits = injector.get(PLATFORM_INITIALIZER, null);\n    if (inits) {\n        inits.forEach((init) => init());\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    const { rootComponent, appProviders, platformProviders } = config;\n    if (NG_DEV_MODE && rootComponent !== undefined) {\n        assertStandaloneComponentType(rootComponent);\n    }\n    const platformInjector = createOrReusePlatformInjector(platformProviders);\n    const ngZone = getNgZone('zone.js', getNgZoneOptions());\n    return ngZone.run(() => {\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            { provide: NgZone, useValue: ngZone },\n            ...(appProviders || []), //\n        ];\n        const envInjector = createEnvironmentInjector(allAppProviders, platformInjector, 'Environment Injector');\n        const exceptionHandler = envInjector.get(ErrorHandler, null);\n        if (NG_DEV_MODE && !exceptionHandler) {\n            throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, 'No `ErrorHandler` found in the Dependency Injection tree.');\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        const destroyListener = () => envInjector.destroy();\n        const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS);\n        onPlatformDestroyListeners.add(destroyListener);\n        envInjector.onDestroy(() => {\n            onErrorSubscription.unsubscribe();\n            onPlatformDestroyListeners.delete(destroyListener);\n        });\n        return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n            const initStatus = envInjector.get(ApplicationInitStatus);\n            initStatus.runInitializers();\n            return initStatus.donePromise.then(() => {\n                const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n                setLocaleId(localeId || DEFAULT_LOCALE_ID);\n                const appRef = envInjector.get(ApplicationRef);\n                if (rootComponent !== undefined) {\n                    appRef.bootstrap(rootComponent);\n                }\n                return appRef;\n            });\n        });\n    });\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 * 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 * 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 * 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 * Returns the current platform.\n *\n * @publicApi\n */\nfunction getPlatform() {\n    return _platformInjector?.get(PlatformRef) ?? null;\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    /** @internal */\n    constructor(_injector) {\n        this._injector = _injector;\n        this._modules = [];\n        this._destroyListeners = [];\n        this._destroyed = false;\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        // Note: We need to create the NgZone _before_ we instantiate the module,\n        // as instantiating the module creates some providers eagerly.\n        // So we create a mini parent injector that just contains the new NgZone and\n        // pass that as parent to the NgModuleFactory.\n        const ngZone = getNgZone(options?.ngZone, getNgZoneOptions(options));\n        const providers = [{ provide: NgZone, useValue: ngZone }];\n        // Note: Create ngZoneInjector within ngZone.run so that all of the instantiated services are\n        // created within the Angular zone\n        // Do not try to replace ngZone.run with ApplicationRef#run because ApplicationRef would then be\n        // created outside of the Angular zone.\n        return ngZone.run(() => {\n            const ngZoneInjector = Injector.create({ providers: providers, parent: this.injector, name: moduleFactory.moduleType.name });\n            const moduleRef = moduleFactory.create(ngZoneInjector);\n            const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\n            if (!exceptionHandler) {\n                throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, ngDevMode && 'No ErrorHandler. Is platform module (BrowserModule) included?');\n            }\n            ngZone.runOutsideAngular(() => {\n                const subscription = ngZone.onError.subscribe({\n                    next: (error) => {\n                        exceptionHandler.handleError(error);\n                    }\n                });\n                moduleRef.onDestroy(() => {\n                    remove(this._modules, moduleRef);\n                    subscription.unsubscribe();\n                });\n            });\n            return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n                const initStatus = moduleRef.injector.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 = moduleRef.injector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n                    setLocaleId(localeId || DEFAULT_LOCALE_ID);\n                    this._moduleDoBootstrap(moduleRef);\n                    return moduleRef;\n                });\n            });\n        });\n    }\n    /**\n     * Creates an instance of an `@NgModule` for a given platform.\n     *\n     * @usageNotes\n     * ### Simple Example\n     *\n     * ```typescript\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)\n            .then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));\n    }\n    _moduleDoBootstrap(moduleRef) {\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        this._modules.push(moduleRef);\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}\nPlatformRef.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); };\nPlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac, providedIn: 'platform' });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PlatformRef, [{\n        type: Injectable,\n        args: [{ providedIn: 'platform' }]\n    }], function () { return [{ type: Injector }]; }, null); })();\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 && options.ngZoneEventCoalescing) || false,\n        shouldCoalesceRunChangeDetection: !!(options && options.ngZoneRunCoalescing) || false,\n    };\n}\nfunction getNgZone(ngZoneToUse, options) {\n    let ngZone;\n    if (ngZoneToUse === 'noop') {\n        ngZone = new NoopNgZone();\n    }\n    else {\n        ngZone = (ngZoneToUse === 'zone.js' ? undefined : ngZoneToUse) || new NgZone(options);\n    }\n    return ngZone;\n}\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        dst = objs.reduce(optionsReducer, dst);\n    }\n    else {\n        dst = { ...dst, ...objs };\n    }\n    return dst;\n}\n/**\n * A reference to an Angular application running on a page.\n *\n * @usageNotes\n *\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 * ```\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 * ```\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 * ```\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 * ```\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 * ```\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    constructor(_zone, _injector, _exceptionHandler) {\n        this._zone = _zone;\n        this._injector = _injector;\n        this._exceptionHandler = _exceptionHandler;\n        /** @internal */\n        this._bootstrapListeners = [];\n        this._views = [];\n        this._runningTick = false;\n        this._stable = true;\n        this._destroyed = false;\n        this._destroyListeners = [];\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        this.componentTypes = [];\n        /**\n         * Get a list of components registered to this application.\n         */\n        this.components = [];\n        this._onMicrotaskEmptySubscription = this._zone.onMicrotaskEmpty.subscribe({\n            next: () => {\n                this._zone.run(() => {\n                    this.tick();\n                });\n            }\n        });\n        const isCurrentlyStable = new Observable((observer) => {\n            this._stable = this._zone.isStable && !this._zone.hasPendingMacrotasks &&\n                !this._zone.hasPendingMicrotasks;\n            this._zone.runOutsideAngular(() => {\n                observer.next(this._stable);\n                observer.complete();\n            });\n        });\n        const isStable = new Observable((observer) => {\n            // Create the subscription to onStable outside the Angular Zone so that\n            // the callback is run outside the Angular Zone.\n            let stableSub;\n            this._zone.runOutsideAngular(() => {\n                stableSub = 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                    scheduleMicroTask(() => {\n                        if (!this._stable && !this._zone.hasPendingMacrotasks &&\n                            !this._zone.hasPendingMicrotasks) {\n                            this._stable = true;\n                            observer.next(true);\n                        }\n                    });\n                });\n            });\n            const unstableSub = this._zone.onUnstable.subscribe(() => {\n                NgZone.assertInAngularZone();\n                if (this._stable) {\n                    this._stable = false;\n                    this._zone.runOutsideAngular(() => {\n                        observer.next(false);\n                    });\n                }\n            });\n            return () => {\n                stableSub.unsubscribe();\n                unstableSub.unsubscribe();\n            };\n        });\n        this.isStable =\n            merge$1(isCurrentlyStable, isStable.pipe(share()));\n    }\n    /**\n     * Indicates whether this instance was destroyed.\n     */\n    get destroyed() {\n        return this._destroyed;\n    }\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        NG_DEV_MODE && this.warnIfDestroyed();\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 = 'Cannot bootstrap as there are still asynchronous initializers running.' +\n                (standalone ? '' :\n                    ' Bootstrap components in the `ngDoBootstrap` method of the root module.');\n            throw new RuntimeError(405 /* RuntimeErrorCode.ASYNC_INITIALIZERS_STILL_RUNNING */, NG_DEV_MODE && 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) ? undefined : 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. Call enableProdMode() to enable production 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        NG_DEV_MODE && this.warnIfDestroyed();\n        if (this._runningTick) {\n            throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');\n        }\n        try {\n            this._runningTick = true;\n            for (let view of this._views) {\n                view.detectChanges();\n            }\n            if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                for (let view of this._views) {\n                    view.checkNoChanges();\n                }\n            }\n        }\n        catch (e) {\n            // Attention: Don't rethrow as it could cancel subscriptions to Observables!\n            this._zone.runOutsideAngular(() => this._exceptionHandler.handleError(e));\n        }\n        finally {\n            this._runningTick = false;\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        NG_DEV_MODE && this.warnIfDestroyed();\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        NG_DEV_MODE && this.warnIfDestroyed();\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, []).concat(this._bootstrapListeners);\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            this._onMicrotaskEmptySubscription.unsubscribe();\n        }\n        finally {\n            // Indicate that this instance is destroyed.\n            this._destroyed = true;\n            // Release all references.\n            this._views = [];\n            this._bootstrapListeners = [];\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     * @internal\n     */\n    onDestroy(callback) {\n        NG_DEV_MODE && this.warnIfDestroyed();\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    warnIfDestroyed() {\n        if (NG_DEV_MODE && this._destroyed) {\n            console.warn(formatRuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, 'This instance of the `ApplicationRef` has already been destroyed.'));\n        }\n    }\n}\nApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(EnvironmentInjector), ɵɵinject(ErrorHandler)); };\nApplicationRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationRef, [{\n        type: Injectable,\n        args: [{ providedIn: 'root' }]\n    }], function () { return [{ type: NgZone }, { type: EnvironmentInjector }, { type: ErrorHandler }]; }, null); })();\nfunction remove(list, el) {\n    const index = list.indexOf(el);\n    if (index > -1) {\n        list.splice(index, 1);\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 * @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.io/license\n */\n/**\n * This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`.\n *\n * For more information on how to run and debug tests with either Ivy or View Engine (legacy),\n * please see [BAZEL.md](./docs/BAZEL.md).\n */\nlet _devMode = true;\nlet _runModeLocked = false;\n/**\n * Returns whether Angular is in development mode. After called once,\n * the value is locked and won't change any more.\n *\n * By default, this is true, unless a user calls `enableProdMode` before calling this.\n *\n * @publicApi\n */\nfunction isDevMode() {\n    _runModeLocked = true;\n    return _devMode;\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 * @publicApi\n */\nfunction enableProdMode() {\n    if (_runModeLocked) {\n        throw new Error('Cannot enable prod mode after platform setup.');\n    }\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    _devMode = 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.io/license\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.io/license\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.io/license\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 * @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.io/license\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/lifecycle-hooks#using-change-detection-hooks)\n * @see [Defining custom change detection](guide/lifecycle-hooks#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. See [live demo](https://plnkr.co/edit/GC512b?p=preview).\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\"\n * region=\"mark-for-check\"></code-example>\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 * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"detach\"></code-example>\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 * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"reattach\"></code-example>\n *\n * @publicApi\n */\nclass ChangeDetectorRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nChangeDetectorRef.__NG_ELEMENT_ID__ = injectChangeDetectorRef;\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 & (3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */)) {\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 * @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.io/license\n */\n/**\n * Represents an Angular [view](guide/glossary#view \"Definition\").\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nclass ViewRef extends ChangeDetectorRef {\n}\n/**\n * Represents an Angular [view](guide/glossary#view) in a view container.\n * An [embedded view](guide/glossary#view-tree) 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 `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 * ```\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 * ```\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 * ```\n *   <li>{{item}}</li>\n * ```\n *\n * The outer and inner `TemplateRef` instances are assembled into views as follows:\n *\n * ```\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/**\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.io/license\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.io/license\n */\n// This file exists for easily patching NgModuleFactoryLoader in g3\nvar ng_module_factory_loader_impl = {};\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.io/license\n */\n/**\n * @publicApi\n */\nclass DebugEventListener {\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    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 &&\n            (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    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        const eAttrs = element.attributes;\n        for (let i = 0; i < eAttrs.length; i++) {\n            const attr = eAttrs[i];\n            const lowercaseName = attr.name.toLowerCase();\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.indexOf(lowercaseName) === -1) {\n                // Save the lowercase name to align the behavior between browsers.\n                // IE preserves the case, while all other browser convert it to lower case.\n                attributes[lowercaseName] = attr.value;\n            }\n        }\n        return attributes;\n    }\n    /**\n     * The inline styles of the DOM element.\n     *\n     * Will be `null` if there is no `style` property on the underlying DOM element.\n     *\n     * @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)\n     */\n    get styles() {\n        if (this.nativeElement && this.nativeElement.style) {\n            return this.nativeElement.style;\n        }\n        return {};\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' || typeof value === 'boolean' || 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 & 4 /* 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 && (debugNode instanceof DebugElement) && predicate(debugNode) &&\n            matches.indexOf(debugNode) === -1) {\n            matches.push(debugNode);\n        }\n        else if (!elementsOnly && 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 && (debugNode instanceof DebugElement) && predicate(debugNode) &&\n                matches.indexOf(debugNode) === -1) {\n                matches.push(debugNode);\n            }\n            else if (!elementsOnly && 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] = 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}\n// TODO: cleanup all references to this function and remove it.\nfunction getDebugNodeR2(_nativeNode) {\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\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.io/license\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    constructor(trackByFn) {\n        this.length = 0;\n        // Keeps track of the used records at any point in time (during & across `_check()` calls)\n        this._linkedRecords = null;\n        // Keeps track of the removed records at any point in time during `_check()` calls.\n        this._unlinkedRecords = null;\n        this._previousItHead = null;\n        this._itHead = null;\n        this._itTail = null;\n        this._additionsHead = null;\n        this._additionsTail = null;\n        this._movesHead = null;\n        this._movesTail = null;\n        this._removalsHead = null;\n        this._removalsTail = null;\n        // Keeps track of records where custom track by is the same, but item identity has changed\n        this._identityChangesHead = null;\n        this._identityChangesTail = null;\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 <\n                        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 || this._movesHead !== null ||\n            this._removalsHead !== null || 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 =\n                    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    constructor(item, trackById) {\n        this.item = item;\n        this.trackById = trackById;\n        this.currentIndex = null;\n        this.previousIndex = null;\n        /** @internal */\n        this._nextPrevious = null;\n        /** @internal */\n        this._prev = null;\n        /** @internal */\n        this._next = null;\n        /** @internal */\n        this._prevDup = null;\n        /** @internal */\n        this._nextDup = null;\n        /** @internal */\n        this._prevRemoved = null;\n        /** @internal */\n        this._nextRemoved = null;\n        /** @internal */\n        this._nextAdded = null;\n        /** @internal */\n        this._nextMoved = null;\n        /** @internal */\n        this._nextIdentityChange = null;\n    }\n}\n// A linked list of IterableChangeRecords with the same IterableChangeRecord_.item\nclass _DuplicateItemRecordList {\n    constructor() {\n        /** @internal */\n        this._head = null;\n        /** @internal */\n        this._tail = null;\n    }\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    constructor() {\n        this.map = new Map();\n    }\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\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.io/license\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    constructor() {\n        this._records = new Map();\n        this._mapHead = null;\n        // _appendAfter is used in the check loop\n        this._appendAfter = null;\n        this._previousMapHead = null;\n        this._changesHead = null;\n        this._changesTail = null;\n        this._additionsHead = null;\n        this._additionsTail = null;\n        this._removalsHead = null;\n        this._removalsTail = null;\n    }\n    get isDirty() {\n        return this._additionsHead !== null || this._changesHead !== null ||\n            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 &&\n                `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    constructor(key) {\n        this.key = key;\n        this.previousValue = null;\n        this.currentValue = null;\n        /** @internal */\n        this._nextPrevious = null;\n        /** @internal */\n        this._next = null;\n        /** @internal */\n        this._prev = null;\n        /** @internal */\n        this._nextAdded = null;\n        /** @internal */\n        this._nextRemoved = null;\n        /** @internal */\n        this._nextChanged = null;\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.io/license\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    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     * ```\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}\n/** @nocollapse */\nIterableDiffers.ɵprov = ɵɵdefineInjectable({ token: IterableDiffers, providedIn: 'root', factory: defaultIterableDiffersFactory });\nfunction getTypeNameForDebugging(type) {\n    return type['name'] || typeof type;\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.io/license\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    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     * ```\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/** @nocollapse */\nKeyValueDiffers.ɵprov = ɵɵdefineInjectable({ token: KeyValueDiffers, providedIn: 'root', factory: defaultKeyValueDiffersFactory });\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.io/license\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 * @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.io/license\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.io/license\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 * @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.io/license\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}\nApplicationModule.ɵfac = function ApplicationModule_Factory(t) { return new (t || ApplicationModule)(ɵɵinject(ApplicationRef)); };\nApplicationModule.ɵmod = /*@__PURE__*/ ɵɵdefineNgModule({ type: ApplicationModule });\nApplicationModule.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationModule, [{\n        type: NgModule\n    }], function () { return [{ type: ApplicationRef }]; }, null); })();\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.io/license\n */\n/** Coerces a value (typically a string) to a boolean. */\nfunction coerceToBoolean(value) {\n    return typeof value === 'boolean' ? value : (value != null && value !== '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.io/license\n */\n// TODO(alxhub): allows tests to compile, can be removed when tests have been updated.\nconst ɵivyEnabled = true;\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.io/license\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({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'directive', type: decl.type });\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 * Compiles a partial component declaration object into a full component definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareComponent(decl) {\n    const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'component', type: decl.type });\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({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'injectable', type: decl.type });\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({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'NgModule', type: decl.type });\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({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'NgModule', type: decl.type });\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({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'pipe', type: decl.type });\n    return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);\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.io/license\n */\n// clang-format on\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.io/license\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 * ```typescript\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 host = 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, {host, 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 * ```\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, see\n * additional info about it at https://angular.io/guide/standalone-components#environment-injectors.\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 at\n * https://angular.io/guide/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.\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 * ```typescript\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    };\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.io/license\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 = _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 * @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.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, 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, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, 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, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, isDevMode, platformCore, reflectComponentType, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, 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, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isInjectable as ɵisInjectable, isListLikeIterable as ɵisListLikeIterable, isObservable as ɵisObservable, isPromise as ɵisPromise, isStandalone as ɵisStandalone, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵ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, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵ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, ɵɵvalidateIframeAttribute, ɵɵviewQuery };\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisObservable, ɵRuntimeError, Self, EventEmitter, Input, Host, SkipSelf, ɵcoerceToBoolean, ChangeDetectorRef, Output, NgModule, Injectable, inject, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin } from 'rxjs';\nimport { map } from 'rxjs/operators';\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.io/license\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    constructor(_renderer, _elementRef) {\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n        /**\n         * The registered callback function called when a change or input event occurs on the input\n         * element.\n         * @nodoc\n         */\n        this.onChange = (_) => { };\n        /**\n         * The registered callback function called when a blur event occurs on the input element.\n         * @nodoc\n         */\n        this.onTouched = () => { };\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}\nBaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nBaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: BaseControlValueAccessor, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BaseControlValueAccessor, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ 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}\nBuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nBuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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('NgValueAccessor');\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.io/license\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 * ```\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}\nCheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nCheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: CheckboxControlValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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.io/license\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('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 * {@searchKeywords ngDefaultControl}\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 * ```\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 * ```\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    constructor(renderer, elementRef, _compositionMode) {\n        super(renderer, elementRef);\n        this._compositionMode = _compositionMode;\n        /** Whether the user is creating a composition string (IME events). */\n        this._composing = false;\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}\nDefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nDefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DefaultValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [COMPOSITION_BUFFER_MODE]\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.io/license\n */\nconst NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;\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 ||\n        ((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 `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 * ```typescript\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('NgValidators');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see `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 * ```typescript\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('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/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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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 `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     * ```typescript\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     * ```typescript\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 `updateValueAndValidity()`\n     *\n     */\n    static pattern(pattern) {\n        return patternValidator(pattern);\n    }\n    /**\n     * @description\n     * Validator that performs no operation.\n     *\n     * @see `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 `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) ? 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 (NG_DEV_MODE$1 && !(ɵisObservable(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    // Not using Array.reduce here due to a Chrome 80 bug\n    // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\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 ? 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) ? [...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 * @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.io/license\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    constructor() {\n        /**\n         * Set of synchronous validators as they were provided while calling `setValidators` function.\n         * @internal\n         */\n        this._rawValidators = [];\n        /**\n         * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n         * function.\n         * @internal\n         */\n        this._rawAsyncValidators = [];\n        /*\n         * The set of callbacks to be invoked when directive instance is being destroyed.\n         */\n        this._onDestroyCallbacks = [];\n    }\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 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     * 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     * 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     * ```\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     * ```\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 * @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.io/license\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 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 * @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.io/license\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    constructor() {\n        super(...arguments);\n        /**\n         * @description\n         * The parent form for the control.\n         *\n         * @internal\n         */\n        this._parent = null;\n        /**\n         * @description\n         * The name for the control\n         */\n        this.name = null;\n        /**\n         * @description\n         * The value accessor for the control\n         */\n        this.valueAccessor = null;\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.io/license\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    constructor(cd) {\n        this._cd = cd;\n    }\n    get isTouched() {\n        return !!this._cd?.control?.touched;\n    }\n    get isUntouched() {\n        return !!this._cd?.control?.untouched;\n    }\n    get isPristine() {\n        return !!this._cd?.control?.pristine;\n    }\n    get isDirty() {\n        return !!this._cd?.control?.dirty;\n    }\n    get isValid() {\n        return !!this._cd?.control?.valid;\n    }\n    get isInvalid() {\n        return !!this._cd?.control?.invalid;\n    }\n    get isPending() {\n        return !!this._cd?.control?.pending;\n    }\n    get isSubmitted() {\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}\nNgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgControlStatus, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgControlStatus, decorators: [{\n            type: Directive,\n            args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]\n        }], ctorParameters: function () { return [{ 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 `NgControlStatus`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatusGroup extends AbstractControlStatus {\n    constructor(cd) {\n        super(cd);\n    }\n}\nNgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgControlStatusGroup, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgControlStatusGroup, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\n                    host: ngGroupStatusHost\n                }]\n        }], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{\n                    type: Optional\n                }, {\n                    type: Self\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.io/license\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\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.io/license\n */\nfunction controlParentException() {\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    Example:\n\n    ${formControlNameExample}`);\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 * @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.io/license\n */\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;\n/**\n * Reports that a control is valid, meaning that no errors exist in the input value.\n *\n * @see `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 `status`\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a control is pending, meaning that that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see `markAsPending`\n * @see `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 `markAsDisabled`\n * @see `status`\n */\nconst DISABLED = 'DISABLED';\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) ? composeAsyncValidators(asyncValidator) :\n        asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n    return validatorOrOpts != null && !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 */, NG_DEV_MODE ? noControlsError(isGroup) : '');\n    }\n    if (!controls[key]) {\n        throw new ɵRuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, NG_DEV_MODE ? 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 */, NG_DEV_MODE ? missingControlValueError(isGroup, key) : '');\n        }\n    });\n}\n// clang-format on\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/reactive-forms)\n * @see [Dynamic Forms Guide](/guide/dynamic-form)\n *\n * @publicApi\n */\nclass AbstractControl {\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        /** @internal */\n        this._pendingDirty = false;\n        /**\n         * Indicates that a control has its own pending asynchronous validation in progress.\n         *\n         * @internal\n         */\n        this._hasOwnPendingAsyncValidator = false;\n        /** @internal */\n        this._pendingTouched = false;\n        /** @internal */\n        this._onCollectionChange = () => { };\n        this._parent = null;\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        this.pristine = true;\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        this.touched = false;\n        /** @internal */\n        this._onDisabledChange = [];\n        this._rawValidators = validators;\n        this._rawAsyncValidators = asyncValidators;\n        this._composedValidatorFn = coerceToValidator(this._rawValidators);\n        this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\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     * 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     * 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 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     * 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._rawValidators = validators;\n        this._composedValidatorFn = coerceToValidator(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._rawAsyncValidators = validators;\n        this._composedAsyncValidatorFn = coerceToAsyncValidator(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    /**\n     * Marks the control as `touched`. A control is touched by focus and\n     * blur events that do not change the value.\n     *\n     * @see `markAsUntouched()`\n     * @see `markAsDirty()`\n     * @see `markAsPristine()`\n     *\n     * @param opts Configuration options that determine how the control propagates changes\n     * and emits events after marking is applied.\n     * * `onlySelf`: When true, mark only this control. When false or not supplied,\n     * marks all direct ancestors. Default is false.\n     */\n    markAsTouched(opts = {}) {\n        this.touched = true;\n        if (this._parent && !opts.onlySelf) {\n            this._parent.markAsTouched(opts);\n        }\n    }\n    /**\n     * Marks the control and all its descendant controls as `touched`.\n     * @see `markAsTouched()`\n     */\n    markAllAsTouched() {\n        this.markAsTouched({ onlySelf: true });\n        this._forEachChild((control) => control.markAllAsTouched());\n    }\n    /**\n     * Marks the control as `untouched`.\n     *\n     * If the control has any children, also marks all children as `untouched`\n     * and recalculates the `touched` status of all parent controls.\n     *\n     * @see `markAsTouched()`\n     * @see `markAsDirty()`\n     * @see `markAsPristine()`\n     *\n     * @param opts Configuration options that determine how the control propagates changes\n     * and emits events after the marking is applied.\n     * * `onlySelf`: When true, mark only this control. When false or not supplied,\n     * marks all direct ancestors. Default is false.\n     */\n    markAsUntouched(opts = {}) {\n        this.touched = false;\n        this._pendingTouched = false;\n        this._forEachChild((control) => {\n            control.markAsUntouched({ onlySelf: true });\n        });\n        if (this._parent && !opts.onlySelf) {\n            this._parent._updateTouched(opts);\n        }\n    }\n    /**\n     * Marks the control as `dirty`. A control becomes dirty when\n     * the control's value is changed through the UI; compare `markAsTouched`.\n     *\n     * @see `markAsTouched()`\n     * @see `markAsUntouched()`\n     * @see `markAsPristine()`\n     *\n     * @param opts Configuration options that determine how the control propagates changes\n     * and emits events after marking is applied.\n     * * `onlySelf`: When true, mark only this control. When false or not supplied,\n     * marks all direct ancestors. Default is false.\n     */\n    markAsDirty(opts = {}) {\n        this.pristine = false;\n        if (this._parent && !opts.onlySelf) {\n            this._parent.markAsDirty(opts);\n        }\n    }\n    /**\n     * Marks the control as `pristine`.\n     *\n     * If the control has any children, marks all children as `pristine`,\n     * and recalculates the `pristine` status of all parent\n     * controls.\n     *\n     * @see `markAsTouched()`\n     * @see `markAsUntouched()`\n     * @see `markAsDirty()`\n     *\n     * @param opts Configuration options that determine how the control emits events after\n     * marking is applied.\n     * * `onlySelf`: When true, mark only this control. When false or not supplied,\n     * marks all direct ancestors. Default is false.\n     */\n    markAsPristine(opts = {}) {\n        this.pristine = true;\n        this._pendingDirty = false;\n        this._forEachChild((control) => {\n            control.markAsPristine({ onlySelf: true });\n        });\n        if (this._parent && !opts.onlySelf) {\n            this._parent._updatePristine(opts);\n        }\n    }\n    /**\n     * Marks the control as `pending`.\n     *\n     * A control is pending while the control performs async validation.\n     *\n     * @see {@link AbstractControl.status}\n     *\n     * @param opts Configuration options that determine how the control propagates changes and\n     * emits events after marking is applied.\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     * observable emits an event with the latest status the control is marked pending.\n     * When false, no events are emitted.\n     *\n     */\n    markAsPending(opts = {}) {\n        this.status = PENDING;\n        if (opts.emitEvent !== false) {\n            this.statusChanges.emit(this.status);\n        }\n        if (this._parent && !opts.onlySelf) {\n            this._parent.markAsPending(opts);\n        }\n    }\n    /**\n     * Disables the control. This means the control is exempt from validation checks and\n     * excluded from the aggregate value of any parent. Its status is `DISABLED`.\n     *\n     * If the control has children, all children are also disabled.\n     *\n     * @see {@link AbstractControl.status}\n     *\n     * @param opts Configuration options that determine how the control propagates\n     * changes and emits events after the control is disabled.\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), both the `statusChanges` and\n     * `valueChanges`\n     * observables emit events with the latest status and value when the control is disabled.\n     * When false, no events are emitted.\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            control.disable({ ...opts, onlySelf: true });\n        });\n        this._updateValue();\n        if (opts.emitEvent !== false) {\n            this.valueChanges.emit(this.value);\n            this.statusChanges.emit(this.status);\n        }\n        this._updateAncestors({ ...opts, skipPristineCheck });\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), both the `statusChanges` and\n     * `valueChanges`\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 });\n        this._onDisabledChange.forEach((changeFn) => changeFn(false));\n    }\n    _updateAncestors(opts) {\n        if (this._parent && !opts.onlySelf) {\n            this._parent.updateValueAndValidity(opts);\n            if (!opts.skipPristineCheck) {\n                this._parent._updatePristine();\n            }\n            this._parent._updateTouched();\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    /**\n     * Recalculates the value and validation status of the control.\n     *\n     * By default, it also updates the value and validity of its ancestors.\n     *\n     * @param opts Configuration options determine how the control propagates changes and emits events\n     * after updates and validity checks are applied.\n     * * `onlySelf`: When true, only update this control. When false or not supplied,\n     * update all direct ancestors. Default 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 updated.\n     * When false, no events are emitted.\n     */\n    updateValueAndValidity(opts = {}) {\n        this._setInitialStatus();\n        this._updateValue();\n        if (this.enabled) {\n            this._cancelExistingSubscription();\n            this.errors = this._runValidator();\n            this.status = this._calculateStatus();\n            if (this.status === VALID || this.status === PENDING) {\n                this._runAsyncValidator(opts.emitEvent);\n            }\n        }\n        if (opts.emitEvent !== false) {\n            this.valueChanges.emit(this.value);\n            this.statusChanges.emit(this.status);\n        }\n        if (this._parent && !opts.onlySelf) {\n            this._parent.updateValueAndValidity(opts);\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(emitEvent) {\n        if (this.asyncValidator) {\n            this.status = PENDING;\n            this._hasOwnPendingAsyncValidator = true;\n            const obs = toObservable(this.asyncValidator(this));\n            this._asyncValidationSubscription = obs.subscribe((errors) => {\n                this._hasOwnPendingAsyncValidator = false;\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 });\n            });\n        }\n    }\n    _cancelExistingSubscription() {\n        if (this._asyncValidationSubscription) {\n            this._asyncValidationSubscription.unsubscribe();\n            this._hasOwnPendingAsyncValidator = false;\n        }\n    }\n    /**\n     * Sets errors on a form control when running validations manually, rather than automatically.\n     *\n     * Calling `setErrors` also updates the validity of the parent control.\n     *\n     * @param opts Configuration options that determine how the control propagates\n     * changes and emits events after the control errors are set.\n     * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n     * observable emits an event after the errors are set.\n     *\n     * @usageNotes\n     *\n     * ### Manually set the errors for a control\n     *\n     * ```\n     * const login = new FormControl('someLogin');\n     * login.setErrors({\n     *   notUnique: true\n     * });\n     *\n     * expect(login.valid).toEqual(false);\n     * expect(login.errors).toEqual({ notUnique: true });\n     *\n     * login.setValue('someOtherLogin');\n     *\n     * expect(login.valid).toEqual(true);\n     * ```\n     */\n    setErrors(errors, opts = {}) {\n        this.errors = errors;\n        this._updateControlsErrors(opts.emitEvent !== false);\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     * ```\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     * ```\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) {\n        this.status = this._calculateStatus();\n        if (emitEvent) {\n            this.statusChanges.emit(this.status);\n        }\n        if (this._parent) {\n            this._parent._updateControlsErrors(emitEvent);\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 = {}) {\n        this.pristine = !this._anyControlsDirty();\n        if (this._parent && !opts.onlySelf) {\n            this._parent._updatePristine(opts);\n        }\n    }\n    /** @internal */\n    _updateTouched(opts = {}) {\n        this.touched = this._anyControlsTouched();\n        if (this._parent && !opts.onlySelf) {\n            this._parent._updateTouched(opts);\n        }\n    }\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\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.io/license\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 * ```\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 * ```\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 * ```\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 * ```\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        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    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     * ```\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], { onlySelf: true, emitEvent: options.emitEvent });\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     * ```\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     * ```\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[name], { onlySelf: true, emitEvent: options.emitEvent });\n        });\n        this._updatePristine(options);\n        this._updateTouched(options);\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}\nconst UntypedFormGroup = FormGroup;\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 * ```\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}\nconst isFormRecord = (control) => control instanceof FormRecord;\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.io/license\n */\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) {\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (!control)\n            _throwError(dir, 'Cannot find control with');\n        if (!dir.valueAccessor)\n            _throwError(dir, 'No value accessor for form control with');\n    }\n    setUpValidators(control, dir);\n    dir.valueAccessor.writeValue(control.value);\n    if (control.disabled) {\n        dir.valueAccessor.setDisabledState?.(true);\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 _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\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.io/license\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    constructor(validators, asyncValidators) {\n        super();\n        /**\n         * @description\n         * Returns whether the form submission has been triggered.\n         */\n        this.submitted = false;\n        this._directives = new Set();\n        /**\n         * @description\n         * Event emitter for the \"ngSubmit\" event\n         */\n        this.ngSubmit = new EventEmitter();\n        this.form =\n            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 =\n                container.registerControl(dir.name, dir.control);\n            setUpControl(dir.control, dir);\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.submitted = 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.submitted = 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}\nNgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgForm, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], ctorParameters: function () { return [{ 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: { options: [{\n                type: Input,\n                args: ['ngFormOptions']\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.io/license\n */\nfunction removeListItem(list, el) {\n    const index = list.indexOf(el);\n    if (index > -1)\n        list.splice(index, 1);\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.io/license\n */\nfunction isFormControlState(formState) {\n    return typeof formState === 'object' && formState !== null &&\n        Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\n}\nconst FormControl = (class FormControl extends AbstractControl {\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        /** @publicApi */\n        this.defaultValue = null;\n        /** @internal */\n        this._onChange = [];\n        /** @internal */\n        this._pendingChange = false;\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 ? 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;\nconst isFormControl = (control) => control instanceof FormControl;\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.io/license\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    /** @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}\nAbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nAbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{\n            type: Directive\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.io/license\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\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.io/license\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    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) && !(this._parent instanceof NgForm) &&\n            (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw modelGroupParentException();\n        }\n    }\n}\nNgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 });\nNgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgModelGroup, selector: \"[ngModelGroup]\", inputs: { name: [\"ngModelGroup\", \"name\"] }, providers: [modelGroupProvider], exportAs: [\"ngModelGroup\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgModelGroup, decorators: [{\n            type: Directive,\n            args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]\n        }], ctorParameters: function () { return [{ 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\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.io/license\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 * ```\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 model and binds it\n * 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 `RadioControlValueAccessor`\n * @see `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    constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef) {\n        super();\n        this._changeDetectorRef = _changeDetectorRef;\n        this.control = new FormControl();\n        /** @internal */\n        this._registered = false;\n        /**\n         * @description\n         * Event emitter for producing the `ngModelChange` event after\n         * the view model updates.\n         */\n        this.update = new EventEmitter();\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);\n        this.control.updateValueAndValidity({ emitEvent: false });\n    }\n    _checkForErrors() {\n        if (!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 && ɵcoerceToBoolean(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}\nNgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 }], target: i0.ɵɵFactoryTarget.Directive });\nNgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgModel, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], ctorParameters: function () { return [{ 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                }] }]; }, 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 * @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.io/license\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 * ```\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nclass ɵNgNoValidate {\n}\nɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\", host: { attributes: { \"novalidate\": \"\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵNgNoValidate, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'form:not([ngNoForm]):not([ngNativeValidate])',\n                    host: { 'novalidate': '' },\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.io/license\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 * ```\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}\nNumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nNumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NumberValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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.io/license\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 * Internal-only NgModule that works as a host for the `RadioControlRegistry` tree-shakable\n * provider. Note: the `InternalFormsSharedModule` can not be used here directly, since it's\n * declared *after* the `RadioControlRegistry` class and the `providedIn` doesn't support\n * `forwardRef` logic.\n */\nclass RadioControlRegistryModule {\n}\nRadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nRadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistryModule });\nRadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistryModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistryModule, decorators: [{\n            type: NgModule\n        }] });\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nclass RadioControlRegistry {\n    constructor() {\n        this._accessors = [];\n    }\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 &&\n            controlPair[1].name === accessor.name;\n    }\n}\nRadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nRadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistry, providedIn: RadioControlRegistryModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlRegistry, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: RadioControlRegistryModule }]\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    constructor(renderer, elementRef, _registry, _injector) {\n        super(renderer, elementRef);\n        this._registry = _registry;\n        this._injector = _injector;\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        this.onChange = () => { };\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    /**\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 && this.formControlName && 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}\nRadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });\nRadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RadioControlValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], ctorParameters: function () { return [{ 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\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.io/license\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 * ```\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}\nRangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nRangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RangeValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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.io/license\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('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 * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see `FormControl`\n * @see `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    constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n        super();\n        this._ngModelWarningConfig = _ngModelWarningConfig;\n        /** @deprecated as of v6 */\n        this.update = new EventEmitter();\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        this._ngModelWarningSent = false;\n        this._setValidators(validators);\n        this._setAsyncValidators(asyncValidators);\n        this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\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    /** @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);\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}\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 */\nFormControlDirective._ngModelWarningSentOnce = false;\nFormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 }], target: i0.ɵɵFactoryTarget.Directive });\nFormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormControlDirective, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormControlDirective, decorators: [{\n            type: Directive,\n            args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]\n        }], ctorParameters: function () { return [{ 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: { 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\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.io/license\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/reactive-forms)\n * @see `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    constructor(validators, asyncValidators) {\n        super();\n        /**\n         * @description\n         * Reports whether the form submission has been triggered.\n         */\n        this.submitted = false;\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        this._onCollectionChange = () => this._updateDomValue();\n        /**\n         * @description\n         * Tracks the list of added `FormControlName` instances\n         */\n        this.directives = [];\n        /**\n         * @description\n         * Tracks the `FormGroup` bound to this directive.\n         */\n        this.form = null;\n        /**\n         * @description\n         * Emits an event when the form submission has been triggered.\n         */\n        this.ngSubmit = new EventEmitter();\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);\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.submitted = true;\n        syncPendingControls(this.form, this.directives);\n        this.ngSubmit.emit($event);\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.submitted = false;\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);\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}\nFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormGroupDirective, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], ctorParameters: function () { return [{ 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: { form: [{\n                type: Input,\n                args: ['formGroup']\n            }], ngSubmit: [{\n                type: Output\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.io/license\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/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    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}\nFormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 });\nFormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormGroupName, selector: \"[formGroupName]\", inputs: { name: [\"formGroupName\", \"name\"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormGroupName, decorators: [{\n            type: Directive,\n            args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]\n        }], ctorParameters: function () { return [{ 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/reactive-forms)\n * @see `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    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        this._checkParentType();\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}\nFormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 });\nFormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormArrayName, selector: \"[formArrayName]\", inputs: { name: [\"formArrayName\", \"name\"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormArrayName, decorators: [{\n            type: Directive,\n            args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]\n        }], ctorParameters: function () { return [{ 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) && !(parent instanceof FormGroupDirective) &&\n        !(parent instanceof FormArrayName);\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.io/license\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/reactive-forms)\n * @see `FormControl`\n * @see `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 * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlName extends NgControl {\n    constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n        super();\n        this._ngModelWarningConfig = _ngModelWarningConfig;\n        this._added = false;\n        /** @deprecated as of v6 */\n        this.update = new EventEmitter();\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        this._ngModelWarningSent = false;\n        this._parent = parent;\n        this._setValidators(validators);\n        this._setAsyncValidators(asyncValidators);\n        this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\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    /** @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();\n            }\n        }\n    }\n    _setUpControl() {\n        this._checkParentType();\n        this.control = this.formDirective.addControl(this);\n        this._added = true;\n    }\n}\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 */\nFormControlName._ngModelWarningSentOnce = false;\nFormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 });\nFormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormControlName, selector: \"[formControlName]\", inputs: { name: [\"formControlName\", \"name\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormControlName, decorators: [{\n            type: Directive,\n            args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]\n        }], ctorParameters: function () { return [{ 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\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.io/license\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 * ```\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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this._optionMap = new Map();\n        /** @internal */\n        this._idCounter = 0;\n        this._compareWith = Object.is;\n    }\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    /**\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 Array.from(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}\nSelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nSelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectControlValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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 `SelectControlValueAccessor`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgSelectOption {\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}\nNgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: NgSelectOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NgSelectOption, decorators: [{\n            type: Directive,\n            args: [{ selector: 'option' }]\n        }], ctorParameters: function () { return [{ 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\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.io/license\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}\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 `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 * ```\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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this._optionMap = new Map();\n        /** @internal */\n        this._idCounter = 0;\n        this._compareWith = Object.is;\n    }\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    /**\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 Array.from(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}\nSelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nSelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectMultipleControlValueAccessor, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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 `SelectMultipleControlValueAccessor`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass ɵNgSelectMultipleOption {\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}\nɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ɵNgSelectMultipleOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{\n            type: Directive,\n            args: [{ selector: 'option' }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\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    constructor() {\n        this._validator = nullValidator;\n    }\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}\nAbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nAbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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/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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'max';\n        /** @internal */\n        this.normalizeInput = (input) => toFloat(input);\n        /** @internal */\n        this.createValidator = (max) => maxValidator(max);\n    }\n}\nMaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MaxValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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/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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'min';\n        /** @internal */\n        this.normalizeInput = (input) => toFloat(input);\n        /** @internal */\n        this.createValidator = (min) => minValidator(min);\n    }\n}\nMinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MinValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass RequiredValidator extends AbstractValidatorDirective {\n    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'required';\n        /** @internal */\n        this.normalizeInput = ɵcoerceToBoolean;\n        /** @internal */\n        this.createValidator = (input) => requiredValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n        return input;\n    }\n}\nRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RequiredValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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/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 * ```\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass CheckboxRequiredValidator extends RequiredValidator {\n    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.createValidator = (input) => requiredTrueValidator;\n    }\n}\nCheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nCheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: CheckboxRequiredValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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/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 * ```\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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'email';\n        /** @internal */\n        this.normalizeInput = ɵcoerceToBoolean;\n        /** @internal */\n        this.createValidator = (input) => emailValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n        return input;\n    }\n}\nEmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nEmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: EmailValidator, selector: \"[email][formControlName],[email][formControl],[email][ngModel]\", inputs: { email: \"email\" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmailValidator, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[email][formControlName],[email][formControl],[email][ngModel]',\n                    providers: [EMAIL_VALIDATOR]\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/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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'minlength';\n        /** @internal */\n        this.normalizeInput = (input) => toInteger(input);\n        /** @internal */\n        this.createValidator = (minlength) => minLengthValidator(minlength);\n    }\n}\nMinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MinLengthValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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 max 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/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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'maxlength';\n        /** @internal */\n        this.normalizeInput = (input) => toInteger(input);\n        /** @internal */\n        this.createValidator = (maxlength) => maxLengthValidator(maxlength);\n    }\n}\nMaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MaxLengthValidator, 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 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\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/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    constructor() {\n        super(...arguments);\n        /** @internal */\n        this.inputName = 'pattern';\n        /** @internal */\n        this.normalizeInput = (input) => input;\n        /** @internal */\n        this.createValidator = (input) => patternValidator(input);\n    }\n}\nPatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nPatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PatternValidator, selector: \"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]\", inputs: { pattern: \"pattern\" }, host: { properties: { \"attr.pattern\": \"_enabled ? pattern : null\" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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                }]\n        }], propDecorators: { pattern: [{\n                type: Input\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.io/license\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 = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nclass ɵInternalFormsSharedModule {\n}\nɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", 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], imports: [RadioControlRegistryModule], 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ɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵInternalFormsSharedModule, imports: [RadioControlRegistryModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: SHARED_FORM_DIRECTIVES,\n                    imports: [RadioControlRegistryModule],\n                    exports: SHARED_FORM_DIRECTIVES,\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.io/license\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 * Providers associated with this module:\n * * `RadioControlRegistry`\n *\n * @see [Forms Overview](/guide/forms-overview)\n * @see [Template-driven Forms Guide](/guide/forms)\n *\n * @publicApi\n */\nclass FormsModule {\n}\nFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });\nFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 * Providers associated with this module:\n * * `FormBuilder`\n * * `RadioControlRegistry`\n *\n * @see [Forms Overview](guide/forms-overview)\n * @see [Reactive Forms Guide](guide/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     */\n    static withConfig(opts) {\n        return {\n            ngModule: ReactiveFormsModule,\n            providers: [\n                { provide: NG_MODEL_WITH_FORM_CONTROL_WARNING, useValue: opts.warnOnNgModelWithFormControl }\n            ]\n        };\n    }\n}\nReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });\nReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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 * @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.io/license\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 * ```\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 * ```\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    /**\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     * ```\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     * ```\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     * ```\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);\n        this._updateTouched(options);\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 =\n            this.controls.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;\nconst isFormArray = (control) => control instanceof FormArray;\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.io/license\n */\nfunction isAbstractControlOptions(options) {\n    return !!options &&\n        (options.asyncValidators !== undefined ||\n            options.validators !== undefined ||\n            options.updateOn !== undefined);\n}\n// clang-format on\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/reactive-forms)\n *\n * @publicApi\n */\nclass FormBuilder {\n    constructor() {\n        this.useNonNullable = false;\n    }\n    /**\n     * @description\n     * Returns a FormBuilder in which automatically constructed @see 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     * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">\n     * </code-example>\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) { // A control; just return it\n            return controls;\n        }\n        else if (Array.isArray(controls)) { // 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 { // T or FormControlState<T>\n            return this.control(controls);\n        }\n    }\n}\nFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormBuilder, providedIn: ReactiveFormsModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormBuilder, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: ReactiveFormsModule }]\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}\nNonNullableFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNonNullableFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NonNullableFormBuilder, providedIn: ReactiveFormsModule, useFactory: () => inject(FormBuilder).nonNullable });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NonNullableFormBuilder, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: ReactiveFormsModule,\n                    useFactory: () => inject(FormBuilder).nonNullable,\n                }]\n        }] });\n/**\n * UntypedFormBuilder is the same as @see 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}\nUntypedFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\nUntypedFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UntypedFormBuilder, providedIn: ReactiveFormsModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UntypedFormBuilder, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: ReactiveFormsModule }]\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.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('14.3.0');\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.io/license\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.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","import * as i0 from '@angular/core';\nimport { Version, InjectionToken, NgModule, Optional, Inject, inject, LOCALE_ID, Injectable, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, EventEmitter, Output } from '@angular/core';\nimport * as i1 from '@angular/cdk/a11y';\nimport { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport { VERSION as VERSION$1 } from '@angular/cdk';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i1$1 from '@angular/cdk/platform';\nimport { _isTestEnvironment, normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';\nimport { Observable, Subject } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';\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.io/license\n */\n/** Current version of Angular Material. */\nconst VERSION = new Version('14.2.7');\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.io/license\n */\n/** @docs-private */\nclass AnimationCurves {\n}\nAnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\nAnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\nAnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\nAnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n/** @docs-private */\nclass AnimationDurations {\n}\nAnimationDurations.COMPLEX = '375ms';\nAnimationDurations.ENTERING = '225ms';\nAnimationDurations.EXITING = '195ms';\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.io/license\n */\n/** @docs-private */\nfunction MATERIAL_SANITY_CHECKS_FACTORY() {\n    return true;\n}\n/** Injection token that configures whether the Material sanity checks are enabled. */\nconst MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {\n    providedIn: 'root',\n    factory: MATERIAL_SANITY_CHECKS_FACTORY,\n});\n/**\n * Module that captures anything that should be loaded and/or run for *all* Angular Material\n * components. This includes Bidi, etc.\n *\n * This module should be imported to each top-level component module (e.g., MatTabsModule).\n */\nclass MatCommonModule {\n    constructor(highContrastModeDetector, _sanityChecks, _document) {\n        this._sanityChecks = _sanityChecks;\n        this._document = _document;\n        /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */\n        this._hasDoneGlobalChecks = false;\n        // While A11yModule also does this, we repeat it here to avoid importing A11yModule\n        // in MatCommonModule.\n        highContrastModeDetector._applyBodyHighContrastModeCssClasses();\n        if (!this._hasDoneGlobalChecks) {\n            this._hasDoneGlobalChecks = true;\n            if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                if (this._checkIsEnabled('doctype')) {\n                    _checkDoctypeIsDefined(this._document);\n                }\n                if (this._checkIsEnabled('theme')) {\n                    _checkThemeIsPresent(this._document);\n                }\n                if (this._checkIsEnabled('version')) {\n                    _checkCdkVersionMatch();\n                }\n            }\n        }\n    }\n    /** Gets whether a specific sanity check is enabled. */\n    _checkIsEnabled(name) {\n        if (_isTestEnvironment()) {\n            return false;\n        }\n        if (typeof this._sanityChecks === 'boolean') {\n            return this._sanityChecks;\n        }\n        return !!this._sanityChecks[name];\n    }\n}\nMatCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCommonModule, deps: [{ token: i1.HighContrastModeDetector }, { token: MATERIAL_SANITY_CHECKS, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.NgModule });\nMatCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCommonModule, imports: [BidiModule], exports: [BidiModule] });\nMatCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCommonModule, imports: [BidiModule, BidiModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCommonModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [BidiModule],\n                    exports: [BidiModule],\n                }]\n        }], ctorParameters: function () { return [{ type: i1.HighContrastModeDetector }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MATERIAL_SANITY_CHECKS]\n                }] }, { type: Document, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n/** Checks that the page has a doctype. */\nfunction _checkDoctypeIsDefined(doc) {\n    if (!doc.doctype) {\n        console.warn('Current document does not have a doctype. This may cause ' +\n            'some Angular Material components not to behave as expected.');\n    }\n}\n/** Checks that a theme has been included. */\nfunction _checkThemeIsPresent(doc) {\n    // We need to assert that the `body` is defined, because these checks run very early\n    // and the `body` won't be defined if the consumer put their scripts in the `head`.\n    if (!doc.body || typeof getComputedStyle !== 'function') {\n        return;\n    }\n    const testElement = doc.createElement('div');\n    testElement.classList.add('mat-theme-loaded-marker');\n    doc.body.appendChild(testElement);\n    const computedStyle = getComputedStyle(testElement);\n    // In some situations the computed style of the test element can be null. For example in\n    // Firefox, the computed style is null if an application is running inside of a hidden iframe.\n    // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n    if (computedStyle && computedStyle.display !== 'none') {\n        console.warn('Could not find Angular Material core theme. Most Material ' +\n            'components may not work as expected. For more info refer ' +\n            'to the theming guide: https://material.angular.io/guide/theming');\n    }\n    testElement.remove();\n}\n/** Checks whether the Material version matches the CDK version. */\nfunction _checkCdkVersionMatch() {\n    if (VERSION.full !== VERSION$1.full) {\n        console.warn('The Angular Material version (' +\n            VERSION.full +\n            ') does not match ' +\n            'the Angular CDK version (' +\n            VERSION$1.full +\n            ').\\n' +\n            'Please ensure the versions of these two packages exactly match.');\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.io/license\n */\nfunction mixinDisabled(base) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            this._disabled = false;\n        }\n        get disabled() {\n            return this._disabled;\n        }\n        set disabled(value) {\n            this._disabled = coerceBooleanProperty(value);\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.io/license\n */\nfunction mixinColor(base, defaultColor) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            this.defaultColor = defaultColor;\n            // Set the default color that can be specified from the mixin.\n            this.color = defaultColor;\n        }\n        get color() {\n            return this._color;\n        }\n        set color(value) {\n            const colorPalette = value || this.defaultColor;\n            if (colorPalette !== this._color) {\n                if (this._color) {\n                    this._elementRef.nativeElement.classList.remove(`mat-${this._color}`);\n                }\n                if (colorPalette) {\n                    this._elementRef.nativeElement.classList.add(`mat-${colorPalette}`);\n                }\n                this._color = colorPalette;\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.io/license\n */\nfunction mixinDisableRipple(base) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            this._disableRipple = false;\n        }\n        /** Whether the ripple effect is disabled or not. */\n        get disableRipple() {\n            return this._disableRipple;\n        }\n        set disableRipple(value) {\n            this._disableRipple = coerceBooleanProperty(value);\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.io/license\n */\nfunction mixinTabIndex(base, defaultTabIndex = 0) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            this._tabIndex = defaultTabIndex;\n            this.defaultTabIndex = defaultTabIndex;\n        }\n        get tabIndex() {\n            return this.disabled ? -1 : this._tabIndex;\n        }\n        set tabIndex(value) {\n            // If the specified tabIndex value is null or undefined, fall back to the default value.\n            this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;\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.io/license\n */\nfunction mixinErrorState(base) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            /** Whether the component is in an error state. */\n            this.errorState = false;\n        }\n        /** Updates the error state based on the provided error state matcher. */\n        updateErrorState() {\n            const oldState = this.errorState;\n            const parent = this._parentFormGroup || this._parentForm;\n            const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;\n            const control = this.ngControl ? this.ngControl.control : null;\n            const newState = matcher.isErrorState(control, parent);\n            if (newState !== oldState) {\n                this.errorState = newState;\n                this.stateChanges.next();\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.io/license\n */\n/** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */\nfunction mixinInitialized(base) {\n    return class extends base {\n        constructor(...args) {\n            super(...args);\n            /** Whether this directive has been marked as initialized. */\n            this._isInitialized = false;\n            /**\n             * List of subscribers that subscribed before the directive was initialized. Should be notified\n             * during _markInitialized. Set to null after pending subscribers are notified, and should\n             * not expect to be populated after.\n             */\n            this._pendingSubscribers = [];\n            /**\n             * Observable stream that emits when the directive initializes. If already initialized, the\n             * subscriber is stored to be notified once _markInitialized is called.\n             */\n            this.initialized = new Observable(subscriber => {\n                // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify\n                // when _markInitialized is called.\n                if (this._isInitialized) {\n                    this._notifySubscriber(subscriber);\n                }\n                else {\n                    this._pendingSubscribers.push(subscriber);\n                }\n            });\n        }\n        /**\n         * Marks the state as initialized and notifies pending subscribers. Should be called at the end\n         * of ngOnInit.\n         * @docs-private\n         */\n        _markInitialized() {\n            if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw Error('This directive has already been marked as initialized and ' +\n                    'should not be called twice.');\n            }\n            this._isInitialized = true;\n            this._pendingSubscribers.forEach(this._notifySubscriber);\n            this._pendingSubscribers = null;\n        }\n        /** Emits and completes the subscriber stream (should only emit once). */\n        _notifySubscriber(subscriber) {\n            subscriber.next();\n            subscriber.complete();\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.io/license\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.io/license\n */\n/** InjectionToken for datepicker that can be used to override default locale code. */\nconst MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {\n    providedIn: 'root',\n    factory: MAT_DATE_LOCALE_FACTORY,\n});\n/** @docs-private */\nfunction MAT_DATE_LOCALE_FACTORY() {\n    return inject(LOCALE_ID);\n}\n/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */\nclass DateAdapter {\n    constructor() {\n        this._localeChanges = new Subject();\n        /** A stream that emits when the locale changes. */\n        this.localeChanges = this._localeChanges;\n    }\n    /**\n     * Given a potential date object, returns that same date object if it is\n     * a valid date, or `null` if it's not a valid date.\n     * @param obj The object to check.\n     * @returns A date or `null`.\n     */\n    getValidDateOrNull(obj) {\n        return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;\n    }\n    /**\n     * Attempts to deserialize a value to a valid date object. This is different from parsing in that\n     * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\n     * string). The default implementation does not allow any deserialization, it simply checks that\n     * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\n     * method on all of its `@Input()` properties that accept dates. It is therefore possible to\n     * support passing values from your backend directly to these properties by overriding this method\n     * to also deserialize the format used by your backend.\n     * @param value The value to be deserialized into a date object.\n     * @returns The deserialized date object, either a valid date, null if the value can be\n     *     deserialized into a null date (e.g. the empty string), or an invalid date.\n     */\n    deserialize(value) {\n        if (value == null || (this.isDateInstance(value) && this.isValid(value))) {\n            return value;\n        }\n        return this.invalid();\n    }\n    /**\n     * Sets the locale used for all dates.\n     * @param locale The new locale.\n     */\n    setLocale(locale) {\n        this.locale = locale;\n        this._localeChanges.next();\n    }\n    /**\n     * Compares two dates.\n     * @param first The first date to compare.\n     * @param second The second date to compare.\n     * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,\n     *     a number greater than 0 if the first date is later.\n     */\n    compareDate(first, second) {\n        return (this.getYear(first) - this.getYear(second) ||\n            this.getMonth(first) - this.getMonth(second) ||\n            this.getDate(first) - this.getDate(second));\n    }\n    /**\n     * Checks if two dates are equal.\n     * @param first The first date to check.\n     * @param second The second date to check.\n     * @returns Whether the two dates are equal.\n     *     Null dates are considered equal to other null dates.\n     */\n    sameDate(first, second) {\n        if (first && second) {\n            let firstValid = this.isValid(first);\n            let secondValid = this.isValid(second);\n            if (firstValid && secondValid) {\n                return !this.compareDate(first, second);\n            }\n            return firstValid == secondValid;\n        }\n        return first == second;\n    }\n    /**\n     * Clamp the given date between min and max dates.\n     * @param date The date to clamp.\n     * @param min The minimum value to allow. If null or omitted no min is enforced.\n     * @param max The maximum value to allow. If null or omitted no max is enforced.\n     * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,\n     *     otherwise `date`.\n     */\n    clampDate(date, min, max) {\n        if (min && this.compareDate(date, min) < 0) {\n            return min;\n        }\n        if (max && this.compareDate(date, max) > 0) {\n            return max;\n        }\n        return date;\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.io/license\n */\nconst MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');\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.io/license\n */\n/**\n * Matches strings that have the form of a valid RFC 3339 string\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\n * because the regex will match strings an with out of bounds month, date, etc.\n */\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n/** Creates an array and fills it with values. */\nfunction range(length, valueFunction) {\n    const valuesArray = Array(length);\n    for (let i = 0; i < length; i++) {\n        valuesArray[i] = valueFunction(i);\n    }\n    return valuesArray;\n}\n/** Adapts the native JS Date for use with cdk-based components that work with dates. */\nclass NativeDateAdapter extends DateAdapter {\n    constructor(matDateLocale, \n    /**\n     * @deprecated No longer being used. To be removed.\n     * @breaking-change 14.0.0\n     */\n    _platform) {\n        super();\n        /**\n         * @deprecated No longer being used. To be removed.\n         * @breaking-change 14.0.0\n         */\n        this.useUtcForDisplay = false;\n        super.setLocale(matDateLocale);\n    }\n    getYear(date) {\n        return date.getFullYear();\n    }\n    getMonth(date) {\n        return date.getMonth();\n    }\n    getDate(date) {\n        return date.getDate();\n    }\n    getDayOfWeek(date) {\n        return date.getDay();\n    }\n    getMonthNames(style) {\n        const dtf = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });\n        return range(12, i => this._format(dtf, new Date(2017, i, 1)));\n    }\n    getDateNames() {\n        const dtf = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' });\n        return range(31, i => this._format(dtf, new Date(2017, 0, i + 1)));\n    }\n    getDayOfWeekNames(style) {\n        const dtf = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' });\n        return range(7, i => this._format(dtf, new Date(2017, 0, i + 1)));\n    }\n    getYearName(date) {\n        const dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' });\n        return this._format(dtf, date);\n    }\n    getFirstDayOfWeek() {\n        // We can't tell using native JS Date what the first day of the week is, we default to Sunday.\n        return 0;\n    }\n    getNumDaysInMonth(date) {\n        return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));\n    }\n    clone(date) {\n        return new Date(date.getTime());\n    }\n    createDate(year, month, date) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            // Check for invalid month and date (except upper bound on date which we have to check after\n            // creating the Date).\n            if (month < 0 || month > 11) {\n                throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\n            }\n            if (date < 1) {\n                throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\n            }\n        }\n        let result = this._createDateWithOverflow(year, month, date);\n        // Check that the date wasn't above the upper bound for the month, causing the month to overflow\n        if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n        }\n        return result;\n    }\n    today() {\n        return new Date();\n    }\n    parse(value, parseFormat) {\n        // We have no way using the native JS Date to set the parse format or locale, so we ignore these\n        // parameters.\n        if (typeof value == 'number') {\n            return new Date(value);\n        }\n        return value ? new Date(Date.parse(value)) : null;\n    }\n    format(date, displayFormat) {\n        if (!this.isValid(date)) {\n            throw Error('NativeDateAdapter: Cannot format invalid date.');\n        }\n        const dtf = new Intl.DateTimeFormat(this.locale, { ...displayFormat, timeZone: 'utc' });\n        return this._format(dtf, date);\n    }\n    addCalendarYears(date, years) {\n        return this.addCalendarMonths(date, years * 12);\n    }\n    addCalendarMonths(date, months) {\n        let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));\n        // It's possible to wind up in the wrong month if the original month has more days than the new\n        // month. In this case we want to go to the last day of the desired month.\n        // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't\n        // guarantee this.\n        if (this.getMonth(newDate) != (((this.getMonth(date) + months) % 12) + 12) % 12) {\n            newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);\n        }\n        return newDate;\n    }\n    addCalendarDays(date, days) {\n        return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);\n    }\n    toIso8601(date) {\n        return [\n            date.getUTCFullYear(),\n            this._2digit(date.getUTCMonth() + 1),\n            this._2digit(date.getUTCDate()),\n        ].join('-');\n    }\n    /**\n     * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n     * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n     * invalid date for all other values.\n     */\n    deserialize(value) {\n        if (typeof value === 'string') {\n            if (!value) {\n                return null;\n            }\n            // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n            // string is the right format first.\n            if (ISO_8601_REGEX.test(value)) {\n                let date = new Date(value);\n                if (this.isValid(date)) {\n                    return date;\n                }\n            }\n        }\n        return super.deserialize(value);\n    }\n    isDateInstance(obj) {\n        return obj instanceof Date;\n    }\n    isValid(date) {\n        return !isNaN(date.getTime());\n    }\n    invalid() {\n        return new Date(NaN);\n    }\n    /** Creates a date but allows the month and date to overflow. */\n    _createDateWithOverflow(year, month, date) {\n        // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n        // To work around this we use `setFullYear` and `setHours` instead.\n        const d = new Date();\n        d.setFullYear(year, month, date);\n        d.setHours(0, 0, 0, 0);\n        return d;\n    }\n    /**\n     * Pads a number to make it two digits.\n     * @param n The number to pad.\n     * @returns The padded number.\n     */\n    _2digit(n) {\n        return ('00' + n).slice(-2);\n    }\n    /**\n     * When converting Date object to string, javascript built-in functions may return wrong\n     * results because it applies its internal DST rules. The DST rules around the world change\n     * very frequently, and the current valid rule is not always valid in previous years though.\n     * We work around this problem building a new Date object which has its internal UTC\n     * representation with the local date and time.\n     * @param dtf Intl.DateTimeFormat object, containing the desired string format. It must have\n     *    timeZone set to 'utc' to work fine.\n     * @param date Date from which we want to get the string representation according to dtf\n     * @returns A Date object with its UTC representation based on the passed in date info\n     */\n    _format(dtf, date) {\n        // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n        // To work around this we use `setUTCFullYear` and `setUTCHours` instead.\n        const d = new Date();\n        d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n        d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n        return dtf.format(d);\n    }\n}\nNativeDateAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nNativeDateAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateAdapter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateAdapter, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_DATE_LOCALE]\n                }] }, { type: i1$1.Platform }]; } });\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.io/license\n */\nconst MAT_NATIVE_DATE_FORMATS = {\n    parse: {\n        dateInput: null,\n    },\n    display: {\n        dateInput: { year: 'numeric', month: 'numeric', day: 'numeric' },\n        monthYearLabel: { year: 'numeric', month: 'short' },\n        dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\n        monthYearA11yLabel: { year: 'numeric', month: 'long' },\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.io/license\n */\nclass NativeDateModule {\n}\nNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateModule });\nNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateModule, providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: NativeDateModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }],\n                }]\n        }] });\nclass MatNativeDateModule {\n}\nMatNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatNativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatNativeDateModule, imports: [NativeDateModule] });\nMatNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatNativeDateModule, providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS }], imports: [NativeDateModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatNativeDateModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [NativeDateModule],\n                    providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS }],\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.io/license\n */\n/** Error state matcher that matches when a control is invalid and dirty. */\nclass ShowOnDirtyErrorStateMatcher {\n    isErrorState(control, form) {\n        return !!(control && control.invalid && (control.dirty || (form && form.submitted)));\n    }\n}\nShowOnDirtyErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nShowOnDirtyErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{\n            type: Injectable\n        }] });\n/** Provider that defines how form controls behave with regards to displaying error messages. */\nclass ErrorStateMatcher {\n    isErrorState(control, form) {\n        return !!(control && control.invalid && (control.touched || (form && form.submitted)));\n    }\n}\nErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: ErrorStateMatcher, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\n */\n/**\n * Shared directive to count lines inside a text area, such as a list item.\n * Line elements can be extracted with a @ContentChildren(MatLine) query, then\n * counted by checking the query list's length.\n */\nclass MatLine {\n}\nMatLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatLine.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatLine, selector: \"[mat-line], [matLine]\", host: { classAttribute: \"mat-line\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLine, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[mat-line], [matLine]',\n                    host: { 'class': 'mat-line' },\n                }]\n        }] });\n/**\n * Helper that takes a query list of lines and sets the correct class on the host.\n * @docs-private\n */\nfunction setLines(lines, element, prefix = 'mat') {\n    // Note: doesn't need to unsubscribe, because `changes`\n    // gets completed by Angular when the view is destroyed.\n    lines.changes.pipe(startWith(lines)).subscribe(({ length }) => {\n        setClass(element, `${prefix}-2-line`, false);\n        setClass(element, `${prefix}-3-line`, false);\n        setClass(element, `${prefix}-multi-line`, false);\n        if (length === 2 || length === 3) {\n            setClass(element, `${prefix}-${length}-line`, true);\n        }\n        else if (length > 3) {\n            setClass(element, `${prefix}-multi-line`, true);\n        }\n    });\n}\n/** Adds or removes a class from an element. */\nfunction setClass(element, className, isAdd) {\n    element.nativeElement.classList.toggle(className, isAdd);\n}\nclass MatLineModule {\n}\nMatLineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatLineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLineModule, declarations: [MatLine], imports: [MatCommonModule], exports: [MatLine, MatCommonModule] });\nMatLineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLineModule, imports: [MatCommonModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLineModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatCommonModule],\n                    exports: [MatLine, MatCommonModule],\n                    declarations: [MatLine],\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.io/license\n */\n/**\n * Reference to a previously launched ripple element.\n */\nclass RippleRef {\n    constructor(_renderer, \n    /** Reference to the ripple HTML element. */\n    element, \n    /** Ripple configuration used for the ripple. */\n    config, \n    /* Whether animations are forcibly disabled for ripples through CSS. */\n    _animationForciblyDisabledThroughCss = false) {\n        this._renderer = _renderer;\n        this.element = element;\n        this.config = config;\n        this._animationForciblyDisabledThroughCss = _animationForciblyDisabledThroughCss;\n        /** Current state of the ripple. */\n        this.state = 3 /* RippleState.HIDDEN */;\n    }\n    /** Fades out the ripple element. */\n    fadeOut() {\n        this._renderer.fadeOutRipple(this);\n    }\n}\n\n// TODO: import these values from `@material/ripple` eventually.\n/**\n * Default ripple animation configuration for ripples without an explicit\n * animation config specified.\n */\nconst defaultRippleAnimationConfig = {\n    enterDuration: 225,\n    exitDuration: 150,\n};\n/**\n * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch\n * events to avoid synthetic mouse events.\n */\nconst ignoreMouseEventsTimeout = 800;\n/** Options that apply to all the event listeners that are bound by the ripple renderer. */\nconst passiveEventOptions = normalizePassiveListenerOptions({ passive: true });\n/** Events that signal that the pointer is down. */\nconst pointerDownEvents = ['mousedown', 'touchstart'];\n/** Events that signal that the pointer is up. */\nconst pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];\n/**\n * Helper service that performs DOM manipulations. Not intended to be used outside this module.\n * The constructor takes a reference to the ripple directive's host element and a map of DOM\n * event handlers to be installed on the element that triggers ripple animations.\n * This will eventually become a custom renderer once Angular support exists.\n * @docs-private\n */\nclass RippleRenderer {\n    constructor(_target, _ngZone, elementOrElementRef, platform) {\n        this._target = _target;\n        this._ngZone = _ngZone;\n        /** Whether the pointer is currently down or not. */\n        this._isPointerDown = false;\n        /**\n         * Map of currently active ripple references.\n         * The ripple reference is mapped to its element event listeners.\n         * The reason why `| null` is used is that event listeners are added only\n         * when the condition is truthy (see the `_startFadeOutTransition` method).\n         */\n        this._activeRipples = new Map();\n        /** Whether pointer-up event listeners have been registered. */\n        this._pointerUpEventsRegistered = false;\n        // Only do anything if we're on the browser.\n        if (platform.isBrowser) {\n            this._containerElement = coerceElement(elementOrElementRef);\n        }\n    }\n    /**\n     * Fades in a ripple at the given coordinates.\n     * @param x Coordinate within the element, along the X axis at which to start the ripple.\n     * @param y Coordinate within the element, along the Y axis at which to start the ripple.\n     * @param config Extra ripple options.\n     */\n    fadeInRipple(x, y, config = {}) {\n        const containerRect = (this._containerRect =\n            this._containerRect || this._containerElement.getBoundingClientRect());\n        const animationConfig = { ...defaultRippleAnimationConfig, ...config.animation };\n        if (config.centered) {\n            x = containerRect.left + containerRect.width / 2;\n            y = containerRect.top + containerRect.height / 2;\n        }\n        const radius = config.radius || distanceToFurthestCorner(x, y, containerRect);\n        const offsetX = x - containerRect.left;\n        const offsetY = y - containerRect.top;\n        const enterDuration = animationConfig.enterDuration;\n        const ripple = document.createElement('div');\n        ripple.classList.add('mat-ripple-element');\n        ripple.style.left = `${offsetX - radius}px`;\n        ripple.style.top = `${offsetY - radius}px`;\n        ripple.style.height = `${radius * 2}px`;\n        ripple.style.width = `${radius * 2}px`;\n        // If a custom color has been specified, set it as inline style. If no color is\n        // set, the default color will be applied through the ripple theme styles.\n        if (config.color != null) {\n            ripple.style.backgroundColor = config.color;\n        }\n        ripple.style.transitionDuration = `${enterDuration}ms`;\n        this._containerElement.appendChild(ripple);\n        // By default the browser does not recalculate the styles of dynamically created\n        // ripple elements. This is critical to ensure that the `scale` animates properly.\n        // We enforce a style recalculation by calling `getComputedStyle` and *accessing* a property.\n        // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a\n        const computedStyles = window.getComputedStyle(ripple);\n        const userTransitionProperty = computedStyles.transitionProperty;\n        const userTransitionDuration = computedStyles.transitionDuration;\n        // Note: We detect whether animation is forcibly disabled through CSS by the use of\n        // `transition: none`. This is technically unexpected since animations are controlled\n        // through the animation config, but this exists for backwards compatibility. This logic does\n        // not need to be super accurate since it covers some edge cases which can be easily avoided by users.\n        const animationForciblyDisabledThroughCss = userTransitionProperty === 'none' ||\n            // Note: The canonical unit for serialized CSS `<time>` properties is seconds. Additionally\n            // some browsers expand the duration for every property (in our case `opacity` and `transform`).\n            userTransitionDuration === '0s' ||\n            userTransitionDuration === '0s, 0s';\n        // Exposed reference to the ripple that will be returned.\n        const rippleRef = new RippleRef(this, ripple, config, animationForciblyDisabledThroughCss);\n        // Start the enter animation by setting the transform/scale to 100%. The animation will\n        // execute as part of this statement because we forced a style recalculation before.\n        // Note: We use a 3d transform here in order to avoid an issue in Safari where\n        // the ripples aren't clipped when inside the shadow DOM (see #24028).\n        ripple.style.transform = 'scale3d(1, 1, 1)';\n        rippleRef.state = 0 /* RippleState.FADING_IN */;\n        if (!config.persistent) {\n            this._mostRecentTransientRipple = rippleRef;\n        }\n        let eventListeners = null;\n        // Do not register the `transition` event listener if fade-in and fade-out duration\n        // are set to zero. The events won't fire anyway and we can save resources here.\n        if (!animationForciblyDisabledThroughCss && (enterDuration || animationConfig.exitDuration)) {\n            this._ngZone.runOutsideAngular(() => {\n                const onTransitionEnd = () => this._finishRippleTransition(rippleRef);\n                const onTransitionCancel = () => this._destroyRipple(rippleRef);\n                ripple.addEventListener('transitionend', onTransitionEnd);\n                // If the transition is cancelled (e.g. due to DOM removal), we destroy the ripple\n                // directly as otherwise we would keep it part of the ripple container forever.\n                // https://www.w3.org/TR/css-transitions-1/#:~:text=no%20longer%20in%20the%20document.\n                ripple.addEventListener('transitioncancel', onTransitionCancel);\n                eventListeners = { onTransitionEnd, onTransitionCancel };\n            });\n        }\n        // Add the ripple reference to the list of all active ripples.\n        this._activeRipples.set(rippleRef, eventListeners);\n        // In case there is no fade-in transition duration, we need to manually call the transition\n        // end listener because `transitionend` doesn't fire if there is no transition.\n        if (animationForciblyDisabledThroughCss || !enterDuration) {\n            this._finishRippleTransition(rippleRef);\n        }\n        return rippleRef;\n    }\n    /** Fades out a ripple reference. */\n    fadeOutRipple(rippleRef) {\n        // For ripples already fading out or hidden, this should be a noop.\n        if (rippleRef.state === 2 /* RippleState.FADING_OUT */ || rippleRef.state === 3 /* RippleState.HIDDEN */) {\n            return;\n        }\n        const rippleEl = rippleRef.element;\n        const animationConfig = { ...defaultRippleAnimationConfig, ...rippleRef.config.animation };\n        // This starts the fade-out transition and will fire the transition end listener that\n        // removes the ripple element from the DOM.\n        rippleEl.style.transitionDuration = `${animationConfig.exitDuration}ms`;\n        rippleEl.style.opacity = '0';\n        rippleRef.state = 2 /* RippleState.FADING_OUT */;\n        // In case there is no fade-out transition duration, we need to manually call the\n        // transition end listener because `transitionend` doesn't fire if there is no transition.\n        if (rippleRef._animationForciblyDisabledThroughCss || !animationConfig.exitDuration) {\n            this._finishRippleTransition(rippleRef);\n        }\n    }\n    /** Fades out all currently active ripples. */\n    fadeOutAll() {\n        this._getActiveRipples().forEach(ripple => ripple.fadeOut());\n    }\n    /** Fades out all currently active non-persistent ripples. */\n    fadeOutAllNonPersistent() {\n        this._getActiveRipples().forEach(ripple => {\n            if (!ripple.config.persistent) {\n                ripple.fadeOut();\n            }\n        });\n    }\n    /** Sets up the trigger event listeners */\n    setupTriggerEvents(elementOrElementRef) {\n        const element = coerceElement(elementOrElementRef);\n        if (!element || element === this._triggerElement) {\n            return;\n        }\n        // Remove all previously registered event listeners from the trigger element.\n        this._removeTriggerEvents();\n        this._triggerElement = element;\n        this._registerEvents(pointerDownEvents);\n    }\n    /**\n     * Handles all registered events.\n     * @docs-private\n     */\n    handleEvent(event) {\n        if (event.type === 'mousedown') {\n            this._onMousedown(event);\n        }\n        else if (event.type === 'touchstart') {\n            this._onTouchStart(event);\n        }\n        else {\n            this._onPointerUp();\n        }\n        // If pointer-up events haven't been registered yet, do so now.\n        // We do this on-demand in order to reduce the total number of event listeners\n        // registered by the ripples, which speeds up the rendering time for large UIs.\n        if (!this._pointerUpEventsRegistered) {\n            this._registerEvents(pointerUpEvents);\n            this._pointerUpEventsRegistered = true;\n        }\n    }\n    /** Method that will be called if the fade-in or fade-in transition completed. */\n    _finishRippleTransition(rippleRef) {\n        if (rippleRef.state === 0 /* RippleState.FADING_IN */) {\n            this._startFadeOutTransition(rippleRef);\n        }\n        else if (rippleRef.state === 2 /* RippleState.FADING_OUT */) {\n            this._destroyRipple(rippleRef);\n        }\n    }\n    /**\n     * Starts the fade-out transition of the given ripple if it's not persistent and the pointer\n     * is not held down anymore.\n     */\n    _startFadeOutTransition(rippleRef) {\n        const isMostRecentTransientRipple = rippleRef === this._mostRecentTransientRipple;\n        const { persistent } = rippleRef.config;\n        rippleRef.state = 1 /* RippleState.VISIBLE */;\n        // When the timer runs out while the user has kept their pointer down, we want to\n        // keep only the persistent ripples and the latest transient ripple. We do this,\n        // because we don't want stacked transient ripples to appear after their enter\n        // animation has finished.\n        if (!persistent && (!isMostRecentTransientRipple || !this._isPointerDown)) {\n            rippleRef.fadeOut();\n        }\n    }\n    /** Destroys the given ripple by removing it from the DOM and updating its state. */\n    _destroyRipple(rippleRef) {\n        const eventListeners = this._activeRipples.get(rippleRef) ?? null;\n        this._activeRipples.delete(rippleRef);\n        // Clear out the cached bounding rect if we have no more ripples.\n        if (!this._activeRipples.size) {\n            this._containerRect = null;\n        }\n        // If the current ref is the most recent transient ripple, unset it\n        // avoid memory leaks.\n        if (rippleRef === this._mostRecentTransientRipple) {\n            this._mostRecentTransientRipple = null;\n        }\n        rippleRef.state = 3 /* RippleState.HIDDEN */;\n        if (eventListeners !== null) {\n            rippleRef.element.removeEventListener('transitionend', eventListeners.onTransitionEnd);\n            rippleRef.element.removeEventListener('transitioncancel', eventListeners.onTransitionCancel);\n        }\n        rippleRef.element.remove();\n    }\n    /** Function being called whenever the trigger is being pressed using mouse. */\n    _onMousedown(event) {\n        // Screen readers will fire fake mouse events for space/enter. Skip launching a\n        // ripple in this case for consistency with the non-screen-reader experience.\n        const isFakeMousedown = isFakeMousedownFromScreenReader(event);\n        const isSyntheticEvent = this._lastTouchStartEvent &&\n            Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout;\n        if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) {\n            this._isPointerDown = true;\n            this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig);\n        }\n    }\n    /** Function being called whenever the trigger is being pressed using touch. */\n    _onTouchStart(event) {\n        if (!this._target.rippleDisabled && !isFakeTouchstartFromScreenReader(event)) {\n            // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse\n            // events will launch a second ripple if we don't ignore mouse events for a specific\n            // time after a touchstart event.\n            this._lastTouchStartEvent = Date.now();\n            this._isPointerDown = true;\n            // Use `changedTouches` so we skip any touches where the user put\n            // their finger down, but used another finger to tap the element again.\n            const touches = event.changedTouches;\n            for (let i = 0; i < touches.length; i++) {\n                this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig);\n            }\n        }\n    }\n    /** Function being called whenever the trigger is being released. */\n    _onPointerUp() {\n        if (!this._isPointerDown) {\n            return;\n        }\n        this._isPointerDown = false;\n        // Fade-out all ripples that are visible and not persistent.\n        this._getActiveRipples().forEach(ripple => {\n            // By default, only ripples that are completely visible will fade out on pointer release.\n            // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.\n            const isVisible = ripple.state === 1 /* RippleState.VISIBLE */ ||\n                (ripple.config.terminateOnPointerUp && ripple.state === 0 /* RippleState.FADING_IN */);\n            if (!ripple.config.persistent && isVisible) {\n                ripple.fadeOut();\n            }\n        });\n    }\n    /** Registers event listeners for a given list of events. */\n    _registerEvents(eventTypes) {\n        this._ngZone.runOutsideAngular(() => {\n            eventTypes.forEach(type => {\n                this._triggerElement.addEventListener(type, this, passiveEventOptions);\n            });\n        });\n    }\n    _getActiveRipples() {\n        return Array.from(this._activeRipples.keys());\n    }\n    /** Removes previously registered event listeners from the trigger element. */\n    _removeTriggerEvents() {\n        if (this._triggerElement) {\n            pointerDownEvents.forEach(type => {\n                this._triggerElement.removeEventListener(type, this, passiveEventOptions);\n            });\n            if (this._pointerUpEventsRegistered) {\n                pointerUpEvents.forEach(type => {\n                    this._triggerElement.removeEventListener(type, this, passiveEventOptions);\n                });\n            }\n        }\n    }\n}\n/**\n * Returns the distance from the point (x, y) to the furthest corner of a rectangle.\n */\nfunction distanceToFurthestCorner(x, y, rect) {\n    const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));\n    const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));\n    return Math.sqrt(distX * distX + distY * distY);\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.io/license\n */\n/** Injection token that can be used to specify the global ripple options. */\nconst MAT_RIPPLE_GLOBAL_OPTIONS = new InjectionToken('mat-ripple-global-options');\nclass MatRipple {\n    constructor(_elementRef, ngZone, platform, globalOptions, _animationMode) {\n        this._elementRef = _elementRef;\n        this._animationMode = _animationMode;\n        /**\n         * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius\n         * will be the distance from the center of the ripple to the furthest corner of the host element's\n         * bounding rectangle.\n         */\n        this.radius = 0;\n        this._disabled = false;\n        /** Whether ripple directive is initialized and the input bindings are set. */\n        this._isInitialized = false;\n        this._globalOptions = globalOptions || {};\n        this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);\n    }\n    /**\n     * Whether click events will not trigger the ripple. Ripples can be still launched manually\n     * by using the `launch()` method.\n     */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        if (value) {\n            this.fadeOutAllNonPersistent();\n        }\n        this._disabled = value;\n        this._setupTriggerEventsIfEnabled();\n    }\n    /**\n     * The element that triggers the ripple when click events are received.\n     * Defaults to the directive's host element.\n     */\n    get trigger() {\n        return this._trigger || this._elementRef.nativeElement;\n    }\n    set trigger(trigger) {\n        this._trigger = trigger;\n        this._setupTriggerEventsIfEnabled();\n    }\n    ngOnInit() {\n        this._isInitialized = true;\n        this._setupTriggerEventsIfEnabled();\n    }\n    ngOnDestroy() {\n        this._rippleRenderer._removeTriggerEvents();\n    }\n    /** Fades out all currently showing ripple elements. */\n    fadeOutAll() {\n        this._rippleRenderer.fadeOutAll();\n    }\n    /** Fades out all currently showing non-persistent ripple elements. */\n    fadeOutAllNonPersistent() {\n        this._rippleRenderer.fadeOutAllNonPersistent();\n    }\n    /**\n     * Ripple configuration from the directive's input values.\n     * @docs-private Implemented as part of RippleTarget\n     */\n    get rippleConfig() {\n        return {\n            centered: this.centered,\n            radius: this.radius,\n            color: this.color,\n            animation: {\n                ...this._globalOptions.animation,\n                ...(this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {}),\n                ...this.animation,\n            },\n            terminateOnPointerUp: this._globalOptions.terminateOnPointerUp,\n        };\n    }\n    /**\n     * Whether ripples on pointer-down are disabled or not.\n     * @docs-private Implemented as part of RippleTarget\n     */\n    get rippleDisabled() {\n        return this.disabled || !!this._globalOptions.disabled;\n    }\n    /** Sets up the trigger event listeners if ripples are enabled. */\n    _setupTriggerEventsIfEnabled() {\n        if (!this.disabled && this._isInitialized) {\n            this._rippleRenderer.setupTriggerEvents(this.trigger);\n        }\n    }\n    /** Launches a manual ripple at the specified coordinated or just by the ripple config. */\n    launch(configOrX, y = 0, config) {\n        if (typeof configOrX === 'number') {\n            return this._rippleRenderer.fadeInRipple(configOrX, y, { ...this.rippleConfig, ...config });\n        }\n        else {\n            return this._rippleRenderer.fadeInRipple(0, 0, { ...this.rippleConfig, ...configOrX });\n        }\n    }\n}\nMatRipple.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRipple, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatRipple.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: { color: [\"matRippleColor\", \"color\"], unbounded: [\"matRippleUnbounded\", \"unbounded\"], centered: [\"matRippleCentered\", \"centered\"], radius: [\"matRippleRadius\", \"radius\"], animation: [\"matRippleAnimation\", \"animation\"], disabled: [\"matRippleDisabled\", \"disabled\"], trigger: [\"matRippleTrigger\", \"trigger\"] }, host: { properties: { \"class.mat-ripple-unbounded\": \"unbounded\" }, classAttribute: \"mat-ripple\" }, exportAs: [\"matRipple\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRipple, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[mat-ripple], [matRipple]',\n                    exportAs: 'matRipple',\n                    host: {\n                        'class': 'mat-ripple',\n                        '[class.mat-ripple-unbounded]': 'unbounded',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { color: [{\n                type: Input,\n                args: ['matRippleColor']\n            }], unbounded: [{\n                type: Input,\n                args: ['matRippleUnbounded']\n            }], centered: [{\n                type: Input,\n                args: ['matRippleCentered']\n            }], radius: [{\n                type: Input,\n                args: ['matRippleRadius']\n            }], animation: [{\n                type: Input,\n                args: ['matRippleAnimation']\n            }], disabled: [{\n                type: Input,\n                args: ['matRippleDisabled']\n            }], trigger: [{\n                type: Input,\n                args: ['matRippleTrigger']\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.io/license\n */\nclass MatRippleModule {\n}\nMatRippleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRippleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatRippleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRippleModule, declarations: [MatRipple], imports: [MatCommonModule], exports: [MatRipple, MatCommonModule] });\nMatRippleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRippleModule, imports: [MatCommonModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatRippleModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatCommonModule],\n                    exports: [MatRipple, MatCommonModule],\n                    declarations: [MatRipple],\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.io/license\n */\n/**\n * Component that shows a simplified checkbox without including any kind of \"real\" checkbox.\n * Meant to be used when the checkbox is purely decorative and a large number of them will be\n * included, such as for the options in a multi-select. Uses no SVGs or complex animations.\n * Note that theming is meant to be handled by the parent element, e.g.\n * `mat-primary .mat-pseudo-checkbox`.\n *\n * Note that this component will be completely invisible to screen-reader users. This is *not*\n * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly\n * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail\n * of more complex components that appropriately handle selected / checked state.\n * @docs-private\n */\nclass MatPseudoCheckbox {\n    constructor(_animationMode) {\n        this._animationMode = _animationMode;\n        /** Display state of the checkbox. */\n        this.state = 'unchecked';\n        /** Whether the checkbox is disabled. */\n        this.disabled = false;\n    }\n}\nMatPseudoCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckbox, deps: [{ token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatPseudoCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatPseudoCheckbox, selector: \"mat-pseudo-checkbox\", inputs: { state: \"state\", disabled: \"disabled\" }, host: { properties: { \"class.mat-pseudo-checkbox-indeterminate\": \"state === \\\"indeterminate\\\"\", \"class.mat-pseudo-checkbox-checked\": \"state === \\\"checked\\\"\", \"class.mat-pseudo-checkbox-disabled\": \"disabled\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\" }, classAttribute: \"mat-pseudo-checkbox\" }, ngImport: i0, template: '', isInline: true, styles: [\".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\\\"\\\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckbox, decorators: [{\n            type: Component,\n            args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'mat-pseudo-checkbox', template: '', host: {\n                        'class': 'mat-pseudo-checkbox',\n                        '[class.mat-pseudo-checkbox-indeterminate]': 'state === \"indeterminate\"',\n                        '[class.mat-pseudo-checkbox-checked]': 'state === \"checked\"',\n                        '[class.mat-pseudo-checkbox-disabled]': 'disabled',\n                        '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n                    }, styles: [\".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\\\"\\\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\"] }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { state: [{\n                type: Input\n            }], disabled: [{\n                type: Input\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.io/license\n */\nclass MatPseudoCheckboxModule {\n}\nMatPseudoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatPseudoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckboxModule, declarations: [MatPseudoCheckbox], imports: [MatCommonModule], exports: [MatPseudoCheckbox] });\nMatPseudoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckboxModule, imports: [MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPseudoCheckboxModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatCommonModule],\n                    exports: [MatPseudoCheckbox],\n                    declarations: [MatPseudoCheckbox],\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.io/license\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.io/license\n */\n/**\n * Injection token used to provide the parent component to options.\n */\nconst MAT_OPTION_PARENT_COMPONENT = new InjectionToken('MAT_OPTION_PARENT_COMPONENT');\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.io/license\n */\n// Notes on the accessibility pattern used for `mat-optgroup`.\n// The option group has two different \"modes\": regular and inert. The regular mode uses the\n// recommended a11y pattern which has `role=\"group\"` on the group element with `aria-labelledby`\n// pointing to the label. This works for `mat-select`, but it seems to hit a bug for autocomplete\n// under VoiceOver where the group doesn't get read out at all. The bug appears to be that if\n// there's __any__ a11y-related attribute on the group (e.g. `role` or `aria-labelledby`),\n// VoiceOver on Safari won't read it out.\n// We've introduced the `inert` mode as a workaround. Under this mode, all a11y attributes are\n// removed from the group, and we get the screen reader to read out the group label by mirroring it\n// inside an invisible element in the option. This is sub-optimal, because the screen reader will\n// repeat the group label on each navigation, whereas the default pattern only reads the group when\n// the user enters a new group. The following alternate approaches were considered:\n// 1. Reading out the group label using the `LiveAnnouncer` solves the problem, but we can't control\n//    when the text will be read out so sometimes it comes in too late or never if the user\n//    navigates quickly.\n// 2. `<mat-option aria-describedby=\"groupLabel\"` - This works on Safari, but VoiceOver in Chrome\n//    won't read out the description at all.\n// 3. `<mat-option aria-labelledby=\"optionLabel groupLabel\"` - This works on Chrome, but Safari\n//     doesn't read out the text at all. Furthermore, on\n// Boilerplate for applying mixins to MatOptgroup.\n/** @docs-private */\nconst _MatOptgroupMixinBase = mixinDisabled(class {\n});\n// Counter for unique group ids.\nlet _uniqueOptgroupIdCounter = 0;\nclass _MatOptgroupBase extends _MatOptgroupMixinBase {\n    constructor(parent) {\n        super();\n        /** Unique id for the underlying label. */\n        this._labelId = `mat-optgroup-label-${_uniqueOptgroupIdCounter++}`;\n        this._inert = parent?.inertGroups ?? false;\n    }\n}\n_MatOptgroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatOptgroupBase, deps: [{ token: MAT_OPTION_PARENT_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatOptgroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatOptgroupBase, inputs: { label: \"label\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatOptgroupBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_OPTION_PARENT_COMPONENT]\n                }, {\n                    type: Optional\n                }] }]; }, propDecorators: { label: [{\n                type: Input\n            }] } });\n/**\n * Injection token that can be used to reference instances of `MatOptgroup`. It serves as\n * alternative token to the actual `MatOptgroup` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\nconst MAT_OPTGROUP = new InjectionToken('MatOptgroup');\n/**\n * Component that is used to group instances of `mat-option`.\n */\nclass MatOptgroup extends _MatOptgroupBase {\n}\nMatOptgroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptgroup, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatOptgroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatOptgroup, selector: \"mat-optgroup\", inputs: { disabled: \"disabled\" }, host: { properties: { \"attr.role\": \"_inert ? null : \\\"group\\\"\", \"attr.aria-disabled\": \"_inert ? null : disabled.toString()\", \"attr.aria-labelledby\": \"_inert ? null : _labelId\", \"class.mat-optgroup-disabled\": \"disabled\" }, classAttribute: \"mat-optgroup\" }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], exportAs: [\"matOptgroup\"], usesInheritance: true, ngImport: i0, template: \"<span class=\\\"mat-optgroup-label\\\" aria-hidden=\\\"true\\\" [id]=\\\"_labelId\\\">{{ label }} <ng-content></ng-content></span>\\n<ng-content select=\\\"mat-option, ng-container\\\"></ng-content>\\n\", styles: [\".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptgroup, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-optgroup', exportAs: 'matOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {\n                        'class': 'mat-optgroup',\n                        '[attr.role]': '_inert ? null : \"group\"',\n                        '[attr.aria-disabled]': '_inert ? null : disabled.toString()',\n                        '[attr.aria-labelledby]': '_inert ? null : _labelId',\n                        '[class.mat-optgroup-disabled]': 'disabled',\n                    }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], template: \"<span class=\\\"mat-optgroup-label\\\" aria-hidden=\\\"true\\\" [id]=\\\"_labelId\\\">{{ label }} <ng-content></ng-content></span>\\n<ng-content select=\\\"mat-option, ng-container\\\"></ng-content>\\n\", styles: [\".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\"] }]\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.io/license\n */\n/**\n * Option IDs need to be unique across components, so this counter exists outside of\n * the component definition.\n */\nlet _uniqueIdCounter = 0;\n/** Event object emitted by MatOption when selected or deselected. */\nclass MatOptionSelectionChange {\n    constructor(\n    /** Reference to the option that emitted the event. */\n    source, \n    /** Whether the change in the option's value was a result of a user action. */\n    isUserInput = false) {\n        this.source = source;\n        this.isUserInput = isUserInput;\n    }\n}\nclass _MatOptionBase {\n    constructor(_element, _changeDetectorRef, _parent, group) {\n        this._element = _element;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._parent = _parent;\n        this.group = group;\n        this._selected = false;\n        this._active = false;\n        this._disabled = false;\n        this._mostRecentViewValue = '';\n        /** The unique ID of the option. */\n        this.id = `mat-option-${_uniqueIdCounter++}`;\n        /** Event emitted when the option is selected or deselected. */\n        // tslint:disable-next-line:no-output-on-prefix\n        this.onSelectionChange = new EventEmitter();\n        /** Emits when the state of the option changes and any parents have to be notified. */\n        this._stateChanges = new Subject();\n    }\n    /** Whether the wrapping component is in multiple selection mode. */\n    get multiple() {\n        return this._parent && this._parent.multiple;\n    }\n    /** Whether or not the option is currently selected. */\n    get selected() {\n        return this._selected;\n    }\n    /** Whether the option is disabled. */\n    get disabled() {\n        return (this.group && this.group.disabled) || this._disabled;\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n    }\n    /** Whether ripples for the option are disabled. */\n    get disableRipple() {\n        return !!(this._parent && this._parent.disableRipple);\n    }\n    /**\n     * Whether or not the option is currently active and ready to be selected.\n     * An active option displays styles as if it is focused, but the\n     * focus is actually retained somewhere else. This comes in handy\n     * for components like autocomplete where focus must remain on the input.\n     */\n    get active() {\n        return this._active;\n    }\n    /**\n     * The displayed value of the option. It is necessary to show the selected option in the\n     * select's trigger.\n     */\n    get viewValue() {\n        // TODO(kara): Add input property alternative for node envs.\n        return (this._getHostElement().textContent || '').trim();\n    }\n    /** Selects the option. */\n    select() {\n        if (!this._selected) {\n            this._selected = true;\n            this._changeDetectorRef.markForCheck();\n            this._emitSelectionChangeEvent();\n        }\n    }\n    /** Deselects the option. */\n    deselect() {\n        if (this._selected) {\n            this._selected = false;\n            this._changeDetectorRef.markForCheck();\n            this._emitSelectionChangeEvent();\n        }\n    }\n    /** Sets focus onto this option. */\n    focus(_origin, options) {\n        // Note that we aren't using `_origin`, but we need to keep it because some internal consumers\n        // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.\n        const element = this._getHostElement();\n        if (typeof element.focus === 'function') {\n            element.focus(options);\n        }\n    }\n    /**\n     * This method sets display styles on the option to make it appear\n     * active. This is used by the ActiveDescendantKeyManager so key\n     * events will display the proper options as active on arrow key events.\n     */\n    setActiveStyles() {\n        if (!this._active) {\n            this._active = true;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /**\n     * This method removes display styles on the option that made it appear\n     * active. This is used by the ActiveDescendantKeyManager so key\n     * events will display the proper options as active on arrow key events.\n     */\n    setInactiveStyles() {\n        if (this._active) {\n            this._active = false;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /** Gets the label to be used when determining whether the option should be focused. */\n    getLabel() {\n        return this.viewValue;\n    }\n    /** Ensures the option is selected when activated from the keyboard. */\n    _handleKeydown(event) {\n        if ((event.keyCode === ENTER || event.keyCode === SPACE) && !hasModifierKey(event)) {\n            this._selectViaInteraction();\n            // Prevent the page from scrolling down and form submits.\n            event.preventDefault();\n        }\n    }\n    /**\n     * `Selects the option while indicating the selection came from the user. Used to\n     * determine if the select's view -> model callback should be invoked.`\n     */\n    _selectViaInteraction() {\n        if (!this.disabled) {\n            this._selected = this.multiple ? !this._selected : true;\n            this._changeDetectorRef.markForCheck();\n            this._emitSelectionChangeEvent(true);\n        }\n    }\n    /**\n     * Gets the `aria-selected` value for the option. We explicitly omit the `aria-selected`\n     * attribute from single-selection, unselected options. Including the `aria-selected=\"false\"`\n     * attributes adds a significant amount of noise to screen-reader users without providing useful\n     * information.\n     */\n    _getAriaSelected() {\n        return this.selected || (this.multiple ? false : null);\n    }\n    /** Returns the correct tabindex for the option depending on disabled state. */\n    _getTabIndex() {\n        return this.disabled ? '-1' : '0';\n    }\n    /** Gets the host DOM element. */\n    _getHostElement() {\n        return this._element.nativeElement;\n    }\n    ngAfterViewChecked() {\n        // Since parent components could be using the option's label to display the selected values\n        // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed\n        // we have to check for changes in the DOM ourselves and dispatch an event. These checks are\n        // relatively cheap, however we still limit them only to selected options in order to avoid\n        // hitting the DOM too often.\n        if (this._selected) {\n            const viewValue = this.viewValue;\n            if (viewValue !== this._mostRecentViewValue) {\n                this._mostRecentViewValue = viewValue;\n                this._stateChanges.next();\n            }\n        }\n    }\n    ngOnDestroy() {\n        this._stateChanges.complete();\n    }\n    /** Emits the selection change event. */\n    _emitSelectionChangeEvent(isUserInput = false) {\n        this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));\n    }\n}\n_MatOptionBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatOptionBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatOptionBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatOptionBase, inputs: { value: \"value\", id: \"id\", disabled: \"disabled\" }, outputs: { onSelectionChange: \"onSelectionChange\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatOptionBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined }, { type: _MatOptgroupBase }]; }, propDecorators: { value: [{\n                type: Input\n            }], id: [{\n                type: Input\n            }], disabled: [{\n                type: Input\n            }], onSelectionChange: [{\n                type: Output\n            }] } });\n/**\n * Single option inside of a `<mat-select>` element.\n */\nclass MatOption extends _MatOptionBase {\n    constructor(element, changeDetectorRef, parent, group) {\n        super(element, changeDetectorRef, parent, group);\n    }\n}\nMatOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_OPTION_PARENT_COMPONENT, optional: true }, { token: MAT_OPTGROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatOption, selector: \"mat-option\", host: { attributes: { \"role\": \"option\" }, listeners: { \"click\": \"_selectViaInteraction()\", \"keydown\": \"_handleKeydown($event)\" }, properties: { \"attr.tabindex\": \"_getTabIndex()\", \"class.mat-selected\": \"selected\", \"class.mat-option-multiple\": \"multiple\", \"class.mat-active\": \"active\", \"id\": \"id\", \"attr.aria-selected\": \"_getAriaSelected()\", \"attr.aria-disabled\": \"disabled.toString()\", \"class.mat-option-disabled\": \"disabled\" }, classAttribute: \"mat-option mat-focus-indicator\" }, exportAs: [\"matOption\"], usesInheritance: true, ngImport: i0, template: \"<mat-pseudo-checkbox *ngIf=\\\"multiple\\\" class=\\\"mat-option-pseudo-checkbox\\\"\\n    [state]=\\\"selected ? 'checked' : 'unchecked'\\\" [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n<span class=\\\"mat-option-text\\\"><ng-content></ng-content></span>\\n\\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\\n<span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"group && group._inert\\\">({{ group.label }})</span>\\n\\n<div class=\\\"mat-option-ripple\\\" mat-ripple\\n     [matRippleTrigger]=\\\"_getHostElement()\\\"\\n     [matRippleDisabled]=\\\"disabled || disableRipple\\\">\\n</div>\\n\", styles: [\".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:\\\"\\\"}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\"], dependencies: [{ kind: \"directive\", type: MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: MatPseudoCheckbox, selector: \"mat-pseudo-checkbox\", inputs: [\"state\", \"disabled\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOption, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-option', exportAs: 'matOption', host: {\n                        'role': 'option',\n                        '[attr.tabindex]': '_getTabIndex()',\n                        '[class.mat-selected]': 'selected',\n                        '[class.mat-option-multiple]': 'multiple',\n                        '[class.mat-active]': 'active',\n                        '[id]': 'id',\n                        '[attr.aria-selected]': '_getAriaSelected()',\n                        '[attr.aria-disabled]': 'disabled.toString()',\n                        '[class.mat-option-disabled]': 'disabled',\n                        '(click)': '_selectViaInteraction()',\n                        '(keydown)': '_handleKeydown($event)',\n                        'class': 'mat-option mat-focus-indicator',\n                    }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<mat-pseudo-checkbox *ngIf=\\\"multiple\\\" class=\\\"mat-option-pseudo-checkbox\\\"\\n    [state]=\\\"selected ? 'checked' : 'unchecked'\\\" [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n<span class=\\\"mat-option-text\\\"><ng-content></ng-content></span>\\n\\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\\n<span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"group && group._inert\\\">({{ group.label }})</span>\\n\\n<div class=\\\"mat-option-ripple\\\" mat-ripple\\n     [matRippleTrigger]=\\\"_getHostElement()\\\"\\n     [matRippleDisabled]=\\\"disabled || disableRipple\\\">\\n</div>\\n\", styles: [\".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:\\\"\\\"}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_OPTION_PARENT_COMPONENT]\n                }] }, { type: MatOptgroup, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_OPTGROUP]\n                }] }]; } });\n/**\n * Counts the amount of option group labels that precede the specified option.\n * @param optionIndex Index of the option at which to start counting.\n * @param options Flat list of all of the options.\n * @param optionGroups Flat list of all of the option groups.\n * @docs-private\n */\nfunction _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {\n    if (optionGroups.length) {\n        let optionsArray = options.toArray();\n        let groups = optionGroups.toArray();\n        let groupCounter = 0;\n        for (let i = 0; i < optionIndex + 1; i++) {\n            if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {\n                groupCounter++;\n            }\n        }\n        return groupCounter;\n    }\n    return 0;\n}\n/**\n * Determines the position to which to scroll a panel in order for an option to be into view.\n * @param optionOffset Offset of the option from the top of the panel.\n * @param optionHeight Height of the options.\n * @param currentScrollPosition Current scroll position of the panel.\n * @param panelHeight Height of the panel.\n * @docs-private\n */\nfunction _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {\n    if (optionOffset < currentScrollPosition) {\n        return optionOffset;\n    }\n    if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {\n        return Math.max(0, optionOffset - panelHeight + optionHeight);\n    }\n    return currentScrollPosition;\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.io/license\n */\nclass MatOptionModule {\n}\nMatOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptionModule, declarations: [MatOption, MatOptgroup], imports: [MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule], exports: [MatOption, MatOptgroup] });\nMatOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptionModule, imports: [MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatOptionModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule],\n                    exports: [MatOption, MatOptgroup],\n                    declarations: [MatOption, MatOptgroup],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationCurves, AnimationDurations, DateAdapter, ErrorStateMatcher, MATERIAL_SANITY_CHECKS, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_OPTION_PARENT_COMPONENT, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatLine, MatLineModule, MatNativeDateModule, MatOptgroup, MatOption, MatOptionModule, MatOptionSelectionChange, MatPseudoCheckbox, MatPseudoCheckboxModule, MatRipple, MatRippleModule, NativeDateAdapter, NativeDateModule, RippleRef, RippleRenderer, ShowOnDirtyErrorStateMatcher, VERSION, _MatOptgroupBase, _MatOptionBase, _countGroupLabelsBeforeOption, _getOptionScrollPosition, defaultRippleAnimationConfig, mixinColor, mixinDisableRipple, mixinDisabled, mixinErrorState, mixinInitialized, mixinTabIndex, setLines };\n","import * as i4 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Attribute, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport * as i1 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Subject, merge, fromEvent } from 'rxjs';\nimport { startWith, takeUntil, take } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i2 from '@angular/cdk/platform';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\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.io/license\n */\nlet nextUniqueId$2 = 0;\n/**\n * Injection token that can be used to reference instances of `MatError`. It serves as\n * alternative token to the actual `MatError` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_ERROR = new InjectionToken('MatError');\n/** Single error message to be shown underneath the form field. */\nclass MatError {\n    constructor(ariaLive, elementRef) {\n        this.id = `mat-error-${nextUniqueId$2++}`;\n        // If no aria-live value is set add 'polite' as a default. This is preferred over setting\n        // role='alert' so that screen readers do not interrupt the current task to read this aloud.\n        if (!ariaLive) {\n            elementRef.nativeElement.setAttribute('aria-live', 'polite');\n        }\n    }\n}\nMatError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatError, deps: [{ token: 'aria-live', attribute: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatError.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatError, selector: \"mat-error\", inputs: { id: \"id\" }, host: { attributes: { \"aria-atomic\": \"true\" }, properties: { \"attr.id\": \"id\" }, classAttribute: \"mat-error\" }, providers: [{ provide: MAT_ERROR, useExisting: MatError }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatError, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-error',\n                    host: {\n                        'class': 'mat-error',\n                        '[attr.id]': 'id',\n                        'aria-atomic': 'true',\n                    },\n                    providers: [{ provide: MAT_ERROR, useExisting: MatError }],\n                }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['aria-live']\n                }] }, { type: i0.ElementRef }]; }, propDecorators: { id: [{\n                type: Input\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.io/license\n */\n/**\n * Animations used by the MatFormField.\n * @docs-private\n */\nconst matFormFieldAnimations = {\n    /** Animation that transitions the form field's error and hint messages. */\n    transitionMessages: trigger('transitionMessages', [\n        // TODO(mmalerba): Use angular animations for label animation as well.\n        state('enter', style({ opacity: 1, transform: 'translateY(0%)' })),\n        transition('void => enter', [\n            style({ opacity: 0, transform: 'translateY(-5px)' }),\n            animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)'),\n        ]),\n    ]),\n};\n\n/** An interface which allows a control to work inside of a `MatFormField`. */\nclass MatFormFieldControl {\n}\nMatFormFieldControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatFormFieldControl.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatFormFieldControl, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldControl, decorators: [{\n            type: Directive\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.io/license\n */\n/** @docs-private */\nfunction getMatFormFieldPlaceholderConflictError() {\n    return Error('Placeholder attribute and child element were both specified.');\n}\n/** @docs-private */\nfunction getMatFormFieldDuplicatedHintError(align) {\n    return Error(`A hint was already declared for 'align=\"${align}\"'.`);\n}\n/** @docs-private */\nfunction getMatFormFieldMissingControlError() {\n    return Error('mat-form-field must contain a MatFormFieldControl.');\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.io/license\n */\nlet nextUniqueId$1 = 0;\n/**\n * Injection token that can be used to reference instances of `MatHint`. It serves as\n * alternative token to the actual `MatHint` class which could cause unnecessary\n * retention of the class and its directive metadata.\n *\n * *Note*: This is not part of the public API as the MDC-based form-field will not\n * need a lightweight token for `MatHint` and we want to reduce breaking changes.\n */\nconst _MAT_HINT = new InjectionToken('MatHint');\n/** Hint text to be shown underneath the form field control. */\nclass MatHint {\n    constructor() {\n        /** Whether to align the hint label at the start or end of the line. */\n        this.align = 'start';\n        /** Unique ID for the hint. Used for the aria-describedby on the form field control. */\n        this.id = `mat-hint-${nextUniqueId$1++}`;\n    }\n}\nMatHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatHint, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatHint.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatHint, selector: \"mat-hint\", inputs: { align: \"align\", id: \"id\" }, host: { properties: { \"class.mat-form-field-hint-end\": \"align === \\\"end\\\"\", \"attr.id\": \"id\", \"attr.align\": \"null\" }, classAttribute: \"mat-hint\" }, providers: [{ provide: _MAT_HINT, useExisting: MatHint }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatHint, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-hint',\n                    host: {\n                        'class': 'mat-hint',\n                        '[class.mat-form-field-hint-end]': 'align === \"end\"',\n                        '[attr.id]': 'id',\n                        // Remove align attribute to prevent it from interfering with layout.\n                        '[attr.align]': 'null',\n                    },\n                    providers: [{ provide: _MAT_HINT, useExisting: MatHint }],\n                }]\n        }], propDecorators: { align: [{\n                type: Input\n            }], id: [{\n                type: Input\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.io/license\n */\n/** The floating label for a `mat-form-field`. */\nclass MatLabel {\n}\nMatLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatLabel, selector: \"mat-label\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatLabel, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-label',\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.io/license\n */\n/**\n * The placeholder text for an `MatFormField`.\n * @deprecated Use `<mat-label>` to specify the label and the `placeholder` attribute to specify the\n *     placeholder.\n * @breaking-change 8.0.0\n */\nclass MatPlaceholder {\n}\nMatPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatPlaceholder, selector: \"mat-placeholder\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPlaceholder, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-placeholder',\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatPrefix`. It serves as\n * alternative token to the actual `MatPrefix` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_PREFIX = new InjectionToken('MatPrefix');\n/** Prefix to be placed in front of the form field. */\nclass MatPrefix {\n}\nMatPrefix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPrefix, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatPrefix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatPrefix, selector: \"[matPrefix]\", providers: [{ provide: MAT_PREFIX, useExisting: MatPrefix }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPrefix, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matPrefix]',\n                    providers: [{ provide: MAT_PREFIX, useExisting: MatPrefix }],\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatSuffix`. It serves as\n * alternative token to the actual `MatSuffix` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_SUFFIX = new InjectionToken('MatSuffix');\n/** Suffix to be placed at the end of the form field. */\nclass MatSuffix {\n}\nMatSuffix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSuffix, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatSuffix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSuffix, selector: \"[matSuffix]\", providers: [{ provide: MAT_SUFFIX, useExisting: MatSuffix }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSuffix, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matSuffix]',\n                    providers: [{ provide: MAT_SUFFIX, useExisting: MatSuffix }],\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.io/license\n */\nlet nextUniqueId = 0;\nconst floatingLabelScale = 0.75;\nconst outlineGapPadding = 5;\n/**\n * Boilerplate for applying mixins to MatFormField.\n * @docs-private\n */\nconst _MatFormFieldBase = mixinColor(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n}, 'primary');\n/**\n * Injection token that can be used to configure the\n * default options for all form field within an app.\n */\nconst MAT_FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken('MAT_FORM_FIELD_DEFAULT_OPTIONS');\n/**\n * Injection token that can be used to inject an instances of `MatFormField`. It serves\n * as alternative token to the actual `MatFormField` class which would cause unnecessary\n * retention of the `MatFormField` class and its component metadata.\n */\nconst MAT_FORM_FIELD = new InjectionToken('MatFormField');\n/** Container for form controls that applies Material Design styling and behavior. */\nclass MatFormField extends _MatFormFieldBase {\n    constructor(elementRef, _changeDetectorRef, _dir, _defaults, _platform, _ngZone, _animationMode) {\n        super(elementRef);\n        this._changeDetectorRef = _changeDetectorRef;\n        this._dir = _dir;\n        this._defaults = _defaults;\n        this._platform = _platform;\n        this._ngZone = _ngZone;\n        /**\n         * Whether the outline gap needs to be calculated\n         * immediately on the next change detection run.\n         */\n        this._outlineGapCalculationNeededImmediately = false;\n        /** Whether the outline gap needs to be calculated next time the zone has stabilized. */\n        this._outlineGapCalculationNeededOnStable = false;\n        this._destroyed = new Subject();\n        this._hideRequiredMarker = false;\n        /** Override for the logic that disables the label animation in certain cases. */\n        this._showAlwaysAnimate = false;\n        /** State of the mat-hint and mat-error animations. */\n        this._subscriptAnimationState = '';\n        this._hintLabel = '';\n        // Unique id for the hint label.\n        this._hintLabelId = `mat-hint-${nextUniqueId++}`;\n        // Unique id for the label element.\n        this._labelId = `mat-form-field-label-${nextUniqueId++}`;\n        this.floatLabel = this._getDefaultFloatLabelState();\n        this._animationsEnabled = _animationMode !== 'NoopAnimations';\n        // Set the default through here so we invoke the setter on the first run.\n        this.appearance = _defaults?.appearance || 'legacy';\n        if (_defaults) {\n            this._hideRequiredMarker = Boolean(_defaults.hideRequiredMarker);\n            if (_defaults.color) {\n                this.color = this.defaultColor = _defaults.color;\n            }\n        }\n    }\n    /** The form field appearance style. */\n    get appearance() {\n        return this._appearance;\n    }\n    set appearance(value) {\n        const oldValue = this._appearance;\n        this._appearance = value || this._defaults?.appearance || 'legacy';\n        if (this._appearance === 'outline' && oldValue !== value) {\n            this._outlineGapCalculationNeededOnStable = true;\n        }\n    }\n    /** Whether the required marker should be hidden. */\n    get hideRequiredMarker() {\n        return this._hideRequiredMarker;\n    }\n    set hideRequiredMarker(value) {\n        this._hideRequiredMarker = coerceBooleanProperty(value);\n    }\n    /** Whether the floating label should always float or not. */\n    _shouldAlwaysFloat() {\n        return this.floatLabel === 'always' && !this._showAlwaysAnimate;\n    }\n    /** Whether the label can float or not. */\n    _canLabelFloat() {\n        return this.floatLabel !== 'never';\n    }\n    /** Text for the form field hint. */\n    get hintLabel() {\n        return this._hintLabel;\n    }\n    set hintLabel(value) {\n        this._hintLabel = value;\n        this._processHints();\n    }\n    /**\n     * Whether the label should always float, never float or float as the user types.\n     *\n     * Note: only the legacy appearance supports the `never` option. `never` was originally added as a\n     * way to make the floating label emulate the behavior of a standard input placeholder. However\n     * the form field now supports both floating labels and placeholders. Therefore in the non-legacy\n     * appearances the `never` option has been disabled in favor of just using the placeholder.\n     */\n    get floatLabel() {\n        return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel;\n    }\n    set floatLabel(value) {\n        if (value !== this._floatLabel) {\n            this._floatLabel = value || this._getDefaultFloatLabelState();\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    get _control() {\n        // TODO(crisbeto): we need this workaround in order to support both Ivy and ViewEngine.\n        //  We should clean this up once Ivy is the default renderer.\n        return this._explicitFormFieldControl || this._controlNonStatic || this._controlStatic;\n    }\n    set _control(value) {\n        this._explicitFormFieldControl = value;\n    }\n    /**\n     * Gets the id of the label element. If no label is present, returns `null`.\n     */\n    getLabelId() {\n        return this._hasFloatingLabel() ? this._labelId : null;\n    }\n    /**\n     * Gets an ElementRef for the element that a overlay attached to the form field should be\n     * positioned relative to.\n     */\n    getConnectedOverlayOrigin() {\n        return this._connectionContainerRef || this._elementRef;\n    }\n    ngAfterContentInit() {\n        this._validateControlChild();\n        const control = this._control;\n        if (control.controlType) {\n            this._elementRef.nativeElement.classList.add(`mat-form-field-type-${control.controlType}`);\n        }\n        // Subscribe to changes in the child control state in order to update the form field UI.\n        control.stateChanges.pipe(startWith(null)).subscribe(() => {\n            this._validatePlaceholders();\n            this._syncDescribedByIds();\n            this._changeDetectorRef.markForCheck();\n        });\n        // Run change detection if the value changes.\n        if (control.ngControl && control.ngControl.valueChanges) {\n            control.ngControl.valueChanges\n                .pipe(takeUntil(this._destroyed))\n                .subscribe(() => this._changeDetectorRef.markForCheck());\n        }\n        // Note that we have to run outside of the `NgZone` explicitly,\n        // in order to avoid throwing users into an infinite loop\n        // if `zone-patch-rxjs` is included.\n        this._ngZone.runOutsideAngular(() => {\n            this._ngZone.onStable.pipe(takeUntil(this._destroyed)).subscribe(() => {\n                if (this._outlineGapCalculationNeededOnStable) {\n                    this.updateOutlineGap();\n                }\n            });\n        });\n        // Run change detection and update the outline if the suffix or prefix changes.\n        merge(this._prefixChildren.changes, this._suffixChildren.changes).subscribe(() => {\n            this._outlineGapCalculationNeededOnStable = true;\n            this._changeDetectorRef.markForCheck();\n        });\n        // Re-validate when the number of hints changes.\n        this._hintChildren.changes.pipe(startWith(null)).subscribe(() => {\n            this._processHints();\n            this._changeDetectorRef.markForCheck();\n        });\n        // Update the aria-described by when the number of errors changes.\n        this._errorChildren.changes.pipe(startWith(null)).subscribe(() => {\n            this._syncDescribedByIds();\n            this._changeDetectorRef.markForCheck();\n        });\n        if (this._dir) {\n            this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n                if (typeof requestAnimationFrame === 'function') {\n                    this._ngZone.runOutsideAngular(() => {\n                        requestAnimationFrame(() => this.updateOutlineGap());\n                    });\n                }\n                else {\n                    this.updateOutlineGap();\n                }\n            });\n        }\n    }\n    ngAfterContentChecked() {\n        this._validateControlChild();\n        if (this._outlineGapCalculationNeededImmediately) {\n            this.updateOutlineGap();\n        }\n    }\n    ngAfterViewInit() {\n        // Avoid animations on load.\n        this._subscriptAnimationState = 'enter';\n        this._changeDetectorRef.detectChanges();\n    }\n    ngOnDestroy() {\n        this._destroyed.next();\n        this._destroyed.complete();\n    }\n    /**\n     * Determines whether a class from the AbstractControlDirective\n     * should be forwarded to the host element.\n     */\n    _shouldForward(prop) {\n        const control = this._control ? this._control.ngControl : null;\n        return control && control[prop];\n    }\n    _hasPlaceholder() {\n        return !!((this._control && this._control.placeholder) || this._placeholderChild);\n    }\n    _hasLabel() {\n        return !!(this._labelChildNonStatic || this._labelChildStatic);\n    }\n    _shouldLabelFloat() {\n        return (this._canLabelFloat() &&\n            ((this._control && this._control.shouldLabelFloat) || this._shouldAlwaysFloat()));\n    }\n    _hideControlPlaceholder() {\n        // In the legacy appearance the placeholder is promoted to a label if no label is given.\n        return ((this.appearance === 'legacy' && !this._hasLabel()) ||\n            (this._hasLabel() && !this._shouldLabelFloat()));\n    }\n    _hasFloatingLabel() {\n        // In the legacy appearance the placeholder is promoted to a label if no label is given.\n        return this._hasLabel() || (this.appearance === 'legacy' && this._hasPlaceholder());\n    }\n    /** Determines whether to display hints or errors. */\n    _getDisplayedMessages() {\n        return this._errorChildren && this._errorChildren.length > 0 && this._control.errorState\n            ? 'error'\n            : 'hint';\n    }\n    /** Animates the placeholder up and locks it in position. */\n    _animateAndLockLabel() {\n        if (this._hasFloatingLabel() && this._canLabelFloat()) {\n            // If animations are disabled, we shouldn't go in here,\n            // because the `transitionend` will never fire.\n            if (this._animationsEnabled && this._label) {\n                this._showAlwaysAnimate = true;\n                fromEvent(this._label.nativeElement, 'transitionend')\n                    .pipe(take(1))\n                    .subscribe(() => {\n                    this._showAlwaysAnimate = false;\n                });\n            }\n            this.floatLabel = 'always';\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /**\n     * Ensure that there is only one placeholder (either `placeholder` attribute on the child control\n     * or child element with the `mat-placeholder` directive).\n     */\n    _validatePlaceholders() {\n        if (this._control.placeholder &&\n            this._placeholderChild &&\n            (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatFormFieldPlaceholderConflictError();\n        }\n    }\n    /** Does any extra processing that is required when handling the hints. */\n    _processHints() {\n        this._validateHints();\n        this._syncDescribedByIds();\n    }\n    /**\n     * Ensure that there is a maximum of one of each `<mat-hint>` alignment specified, with the\n     * attribute being considered as `align=\"start\"`.\n     */\n    _validateHints() {\n        if (this._hintChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            let startHint;\n            let endHint;\n            this._hintChildren.forEach((hint) => {\n                if (hint.align === 'start') {\n                    if (startHint || this.hintLabel) {\n                        throw getMatFormFieldDuplicatedHintError('start');\n                    }\n                    startHint = hint;\n                }\n                else if (hint.align === 'end') {\n                    if (endHint) {\n                        throw getMatFormFieldDuplicatedHintError('end');\n                    }\n                    endHint = hint;\n                }\n            });\n        }\n    }\n    /** Gets the default float label state. */\n    _getDefaultFloatLabelState() {\n        return (this._defaults && this._defaults.floatLabel) || 'auto';\n    }\n    /**\n     * Sets the list of element IDs that describe the child control. This allows the control to update\n     * its `aria-describedby` attribute accordingly.\n     */\n    _syncDescribedByIds() {\n        if (this._control) {\n            let ids = [];\n            // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug.\n            if (this._control.userAriaDescribedBy &&\n                typeof this._control.userAriaDescribedBy === 'string') {\n                ids.push(...this._control.userAriaDescribedBy.split(' '));\n            }\n            if (this._getDisplayedMessages() === 'hint') {\n                const startHint = this._hintChildren\n                    ? this._hintChildren.find(hint => hint.align === 'start')\n                    : null;\n                const endHint = this._hintChildren\n                    ? this._hintChildren.find(hint => hint.align === 'end')\n                    : null;\n                if (startHint) {\n                    ids.push(startHint.id);\n                }\n                else if (this._hintLabel) {\n                    ids.push(this._hintLabelId);\n                }\n                if (endHint) {\n                    ids.push(endHint.id);\n                }\n            }\n            else if (this._errorChildren) {\n                ids.push(...this._errorChildren.map(error => error.id));\n            }\n            this._control.setDescribedByIds(ids);\n        }\n    }\n    /** Throws an error if the form field's control is missing. */\n    _validateControlChild() {\n        if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatFormFieldMissingControlError();\n        }\n    }\n    /**\n     * Updates the width and position of the gap in the outline. Only relevant for the outline\n     * appearance.\n     */\n    updateOutlineGap() {\n        const labelEl = this._label ? this._label.nativeElement : null;\n        const container = this._connectionContainerRef.nativeElement;\n        const outlineStartSelector = '.mat-form-field-outline-start';\n        const outlineGapSelector = '.mat-form-field-outline-gap';\n        // getBoundingClientRect isn't available on the server.\n        if (this.appearance !== 'outline' || !this._platform.isBrowser) {\n            return;\n        }\n        // If there is no content, set the gap elements to zero.\n        if (!labelEl || !labelEl.children.length || !labelEl.textContent.trim()) {\n            const gapElements = container.querySelectorAll(`${outlineStartSelector}, ${outlineGapSelector}`);\n            for (let i = 0; i < gapElements.length; i++) {\n                gapElements[i].style.width = '0';\n            }\n            return;\n        }\n        // If the element is not present in the DOM, the outline gap will need to be calculated\n        // the next time it is checked and in the DOM.\n        if (!this._isAttachedToDOM()) {\n            this._outlineGapCalculationNeededImmediately = true;\n            return;\n        }\n        let startWidth = 0;\n        let gapWidth = 0;\n        const startEls = container.querySelectorAll(outlineStartSelector);\n        const gapEls = container.querySelectorAll(outlineGapSelector);\n        if (this._label && this._label.nativeElement.children.length) {\n            const containerRect = container.getBoundingClientRect();\n            // If the container's width and height are zero, it means that the element is\n            // invisible and we can't calculate the outline gap. Mark the element as needing\n            // to be checked the next time the zone stabilizes. We can't do this immediately\n            // on the next change detection, because even if the element becomes visible,\n            // the `ClientRect` won't be recalculated immediately. We reset the\n            // `_outlineGapCalculationNeededImmediately` flag some we don't run the checks twice.\n            if (containerRect.width === 0 && containerRect.height === 0) {\n                this._outlineGapCalculationNeededOnStable = true;\n                this._outlineGapCalculationNeededImmediately = false;\n                return;\n            }\n            const containerStart = this._getStartEnd(containerRect);\n            const labelChildren = labelEl.children;\n            const labelStart = this._getStartEnd(labelChildren[0].getBoundingClientRect());\n            let labelWidth = 0;\n            for (let i = 0; i < labelChildren.length; i++) {\n                labelWidth += labelChildren[i].offsetWidth;\n            }\n            startWidth = Math.abs(labelStart - containerStart) - outlineGapPadding;\n            gapWidth = labelWidth > 0 ? labelWidth * floatingLabelScale + outlineGapPadding * 2 : 0;\n        }\n        for (let i = 0; i < startEls.length; i++) {\n            startEls[i].style.width = `${startWidth}px`;\n        }\n        for (let i = 0; i < gapEls.length; i++) {\n            gapEls[i].style.width = `${gapWidth}px`;\n        }\n        this._outlineGapCalculationNeededOnStable = this._outlineGapCalculationNeededImmediately =\n            false;\n    }\n    /** Gets the start end of the rect considering the current directionality. */\n    _getStartEnd(rect) {\n        return this._dir && this._dir.value === 'rtl' ? rect.right : rect.left;\n    }\n    /** Checks whether the form field is attached to the DOM. */\n    _isAttachedToDOM() {\n        const element = this._elementRef.nativeElement;\n        if (element.getRootNode) {\n            const rootNode = element.getRootNode();\n            // If the element is inside the DOM the root node will be either the document\n            // or the closest shadow root, otherwise it'll be the element itself.\n            return rootNode && rootNode !== element;\n        }\n        // Otherwise fall back to checking if it's in the document. This doesn't account for\n        // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.\n        return document.documentElement.contains(element);\n    }\n}\nMatFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormField, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.Directionality, optional: true }, { token: MAT_FORM_FIELD_DEFAULT_OPTIONS, optional: true }, { token: i2.Platform }, { token: i0.NgZone }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatFormField, selector: \"mat-form-field\", inputs: { color: \"color\", appearance: \"appearance\", hideRequiredMarker: \"hideRequiredMarker\", hintLabel: \"hintLabel\", floatLabel: \"floatLabel\" }, host: { properties: { \"class.mat-form-field-appearance-standard\": \"appearance == \\\"standard\\\"\", \"class.mat-form-field-appearance-fill\": \"appearance == \\\"fill\\\"\", \"class.mat-form-field-appearance-outline\": \"appearance == \\\"outline\\\"\", \"class.mat-form-field-appearance-legacy\": \"appearance == \\\"legacy\\\"\", \"class.mat-form-field-invalid\": \"_control.errorState\", \"class.mat-form-field-can-float\": \"_canLabelFloat()\", \"class.mat-form-field-should-float\": \"_shouldLabelFloat()\", \"class.mat-form-field-has-label\": \"_hasFloatingLabel()\", \"class.mat-form-field-hide-placeholder\": \"_hideControlPlaceholder()\", \"class.mat-form-field-disabled\": \"_control.disabled\", \"class.mat-form-field-autofilled\": \"_control.autofilled\", \"class.mat-focused\": \"_control.focused\", \"class.ng-untouched\": \"_shouldForward(\\\"untouched\\\")\", \"class.ng-touched\": \"_shouldForward(\\\"touched\\\")\", \"class.ng-pristine\": \"_shouldForward(\\\"pristine\\\")\", \"class.ng-dirty\": \"_shouldForward(\\\"dirty\\\")\", \"class.ng-valid\": \"_shouldForward(\\\"valid\\\")\", \"class.ng-invalid\": \"_shouldForward(\\\"invalid\\\")\", \"class.ng-pending\": \"_shouldForward(\\\"pending\\\")\", \"class._mat-animation-noopable\": \"!_animationsEnabled\" }, classAttribute: \"mat-form-field\" }, providers: [{ provide: MAT_FORM_FIELD, useExisting: MatFormField }], queries: [{ propertyName: \"_controlNonStatic\", first: true, predicate: MatFormFieldControl, descendants: true }, { propertyName: \"_controlStatic\", first: true, predicate: MatFormFieldControl, descendants: true, static: true }, { propertyName: \"_labelChildNonStatic\", first: true, predicate: MatLabel, descendants: true }, { propertyName: \"_labelChildStatic\", first: true, predicate: MatLabel, descendants: true, static: true }, { propertyName: \"_placeholderChild\", first: true, predicate: MatPlaceholder, descendants: true }, { propertyName: \"_errorChildren\", predicate: MAT_ERROR, descendants: true }, { propertyName: \"_hintChildren\", predicate: _MAT_HINT, descendants: true }, { propertyName: \"_prefixChildren\", predicate: MAT_PREFIX, descendants: true }, { propertyName: \"_suffixChildren\", predicate: MAT_SUFFIX, descendants: true }], viewQueries: [{ propertyName: \"_connectionContainerRef\", first: true, predicate: [\"connectionContainer\"], descendants: true, static: true }, { propertyName: \"_inputContainerRef\", first: true, predicate: [\"inputContainer\"], descendants: true }, { propertyName: \"_label\", first: true, predicate: [\"label\"], descendants: true }], exportAs: [\"matFormField\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-form-field-wrapper\\\">\\n  <div class=\\\"mat-form-field-flex\\\" #connectionContainer\\n       (click)=\\\"_control.onContainerClick && _control.onContainerClick($event)\\\">\\n\\n    <!-- Outline used for outline appearance. -->\\n    <ng-container *ngIf=\\\"appearance == 'outline'\\\">\\n      <div class=\\\"mat-form-field-outline\\\">\\n        <div class=\\\"mat-form-field-outline-start\\\"></div>\\n        <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n        <div class=\\\"mat-form-field-outline-end\\\"></div>\\n      </div>\\n      <div class=\\\"mat-form-field-outline mat-form-field-outline-thick\\\">\\n        <div class=\\\"mat-form-field-outline-start\\\"></div>\\n        <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n        <div class=\\\"mat-form-field-outline-end\\\"></div>\\n      </div>\\n    </ng-container>\\n\\n    <div\\n      class=\\\"mat-form-field-prefix\\\"\\n      *ngIf=\\\"_prefixChildren.length\\\"\\n      (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n      [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\">\\n      <ng-content select=\\\"[matPrefix]\\\"></ng-content>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-infix\\\" #inputContainer>\\n      <ng-content></ng-content>\\n\\n      <span class=\\\"mat-form-field-label-wrapper\\\">\\n        <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\\n             read if it comes before the control in the DOM. -->\\n        <label class=\\\"mat-form-field-label\\\"\\n               (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n               [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\"\\n               [id]=\\\"_labelId\\\"\\n               [attr.for]=\\\"_control.id\\\"\\n               [attr.aria-owns]=\\\"_control.id\\\"\\n               [class.mat-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n               [class.mat-form-field-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n               [class.mat-accent]=\\\"color == 'accent'\\\"\\n               [class.mat-warn]=\\\"color == 'warn'\\\"\\n               #label\\n               *ngIf=\\\"_hasFloatingLabel()\\\"\\n               [ngSwitch]=\\\"_hasLabel()\\\">\\n\\n          <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\\n          <ng-container *ngSwitchCase=\\\"false\\\">\\n            <ng-content select=\\\"mat-placeholder\\\"></ng-content>\\n            <span>{{_control.placeholder}}</span>\\n          </ng-container>\\n\\n          <ng-content select=\\\"mat-label\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n\\n          <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\\n          <span\\n            class=\\\"mat-placeholder-required mat-form-field-required-marker\\\"\\n            aria-hidden=\\\"true\\\"\\n            *ngIf=\\\"!hideRequiredMarker && _control.required && !_control.disabled\\\">&#32;*</span>\\n        </label>\\n      </span>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-suffix\\\" *ngIf=\\\"_suffixChildren.length\\\">\\n      <ng-content select=\\\"[matSuffix]\\\"></ng-content>\\n    </div>\\n  </div>\\n\\n  <!-- Underline used for legacy, standard, and box appearances. -->\\n  <div class=\\\"mat-form-field-underline\\\"\\n       *ngIf=\\\"appearance != 'outline'\\\">\\n    <span class=\\\"mat-form-field-ripple\\\"\\n          [class.mat-accent]=\\\"color == 'accent'\\\"\\n          [class.mat-warn]=\\\"color == 'warn'\\\"></span>\\n  </div>\\n\\n  <div class=\\\"mat-form-field-subscript-wrapper\\\"\\n       [ngSwitch]=\\\"_getDisplayedMessages()\\\">\\n    <div *ngSwitchCase=\\\"'error'\\\" [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n      <ng-content select=\\\"mat-error\\\"></ng-content>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-hint-wrapper\\\" *ngSwitchCase=\\\"'hint'\\\"\\n      [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n      <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\\n      <div *ngIf=\\\"hintLabel\\\" [id]=\\\"_hintLabelId\\\" class=\\\"mat-hint\\\">{{hintLabel}}</div>\\n      <ng-content select=\\\"mat-hint:not([align='end'])\\\"></ng-content>\\n      <div class=\\\"mat-form-field-hint-spacer\\\"></div>\\n      <ng-content select=\\\"mat-hint[align='end']\\\"></ng-content>\\n    </div>\\n  </div>\\n</div>\\n\", styles: [\".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\", \".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\\\"\\\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\", \".mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\\\" \\\";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\\\"\\\";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\", \".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\", \".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\", \".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\"], dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i3.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { kind: \"directive\", type: i3.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { kind: \"directive\", type: i4.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }], animations: [matFormFieldAnimations.transitionMessages], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormField, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-form-field', exportAs: 'matFormField', animations: [matFormFieldAnimations.transitionMessages], host: {\n                        'class': 'mat-form-field',\n                        '[class.mat-form-field-appearance-standard]': 'appearance == \"standard\"',\n                        '[class.mat-form-field-appearance-fill]': 'appearance == \"fill\"',\n                        '[class.mat-form-field-appearance-outline]': 'appearance == \"outline\"',\n                        '[class.mat-form-field-appearance-legacy]': 'appearance == \"legacy\"',\n                        '[class.mat-form-field-invalid]': '_control.errorState',\n                        '[class.mat-form-field-can-float]': '_canLabelFloat()',\n                        '[class.mat-form-field-should-float]': '_shouldLabelFloat()',\n                        '[class.mat-form-field-has-label]': '_hasFloatingLabel()',\n                        '[class.mat-form-field-hide-placeholder]': '_hideControlPlaceholder()',\n                        '[class.mat-form-field-disabled]': '_control.disabled',\n                        '[class.mat-form-field-autofilled]': '_control.autofilled',\n                        '[class.mat-focused]': '_control.focused',\n                        '[class.ng-untouched]': '_shouldForward(\"untouched\")',\n                        '[class.ng-touched]': '_shouldForward(\"touched\")',\n                        '[class.ng-pristine]': '_shouldForward(\"pristine\")',\n                        '[class.ng-dirty]': '_shouldForward(\"dirty\")',\n                        '[class.ng-valid]': '_shouldForward(\"valid\")',\n                        '[class.ng-invalid]': '_shouldForward(\"invalid\")',\n                        '[class.ng-pending]': '_shouldForward(\"pending\")',\n                        '[class._mat-animation-noopable]': '!_animationsEnabled',\n                    }, inputs: ['color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: MAT_FORM_FIELD, useExisting: MatFormField }], template: \"<div class=\\\"mat-form-field-wrapper\\\">\\n  <div class=\\\"mat-form-field-flex\\\" #connectionContainer\\n       (click)=\\\"_control.onContainerClick && _control.onContainerClick($event)\\\">\\n\\n    <!-- Outline used for outline appearance. -->\\n    <ng-container *ngIf=\\\"appearance == 'outline'\\\">\\n      <div class=\\\"mat-form-field-outline\\\">\\n        <div class=\\\"mat-form-field-outline-start\\\"></div>\\n        <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n        <div class=\\\"mat-form-field-outline-end\\\"></div>\\n      </div>\\n      <div class=\\\"mat-form-field-outline mat-form-field-outline-thick\\\">\\n        <div class=\\\"mat-form-field-outline-start\\\"></div>\\n        <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n        <div class=\\\"mat-form-field-outline-end\\\"></div>\\n      </div>\\n    </ng-container>\\n\\n    <div\\n      class=\\\"mat-form-field-prefix\\\"\\n      *ngIf=\\\"_prefixChildren.length\\\"\\n      (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n      [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\">\\n      <ng-content select=\\\"[matPrefix]\\\"></ng-content>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-infix\\\" #inputContainer>\\n      <ng-content></ng-content>\\n\\n      <span class=\\\"mat-form-field-label-wrapper\\\">\\n        <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\\n             read if it comes before the control in the DOM. -->\\n        <label class=\\\"mat-form-field-label\\\"\\n               (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n               [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\"\\n               [id]=\\\"_labelId\\\"\\n               [attr.for]=\\\"_control.id\\\"\\n               [attr.aria-owns]=\\\"_control.id\\\"\\n               [class.mat-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n               [class.mat-form-field-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n               [class.mat-accent]=\\\"color == 'accent'\\\"\\n               [class.mat-warn]=\\\"color == 'warn'\\\"\\n               #label\\n               *ngIf=\\\"_hasFloatingLabel()\\\"\\n               [ngSwitch]=\\\"_hasLabel()\\\">\\n\\n          <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\\n          <ng-container *ngSwitchCase=\\\"false\\\">\\n            <ng-content select=\\\"mat-placeholder\\\"></ng-content>\\n            <span>{{_control.placeholder}}</span>\\n          </ng-container>\\n\\n          <ng-content select=\\\"mat-label\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n\\n          <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\\n          <span\\n            class=\\\"mat-placeholder-required mat-form-field-required-marker\\\"\\n            aria-hidden=\\\"true\\\"\\n            *ngIf=\\\"!hideRequiredMarker && _control.required && !_control.disabled\\\">&#32;*</span>\\n        </label>\\n      </span>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-suffix\\\" *ngIf=\\\"_suffixChildren.length\\\">\\n      <ng-content select=\\\"[matSuffix]\\\"></ng-content>\\n    </div>\\n  </div>\\n\\n  <!-- Underline used for legacy, standard, and box appearances. -->\\n  <div class=\\\"mat-form-field-underline\\\"\\n       *ngIf=\\\"appearance != 'outline'\\\">\\n    <span class=\\\"mat-form-field-ripple\\\"\\n          [class.mat-accent]=\\\"color == 'accent'\\\"\\n          [class.mat-warn]=\\\"color == 'warn'\\\"></span>\\n  </div>\\n\\n  <div class=\\\"mat-form-field-subscript-wrapper\\\"\\n       [ngSwitch]=\\\"_getDisplayedMessages()\\\">\\n    <div *ngSwitchCase=\\\"'error'\\\" [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n      <ng-content select=\\\"mat-error\\\"></ng-content>\\n    </div>\\n\\n    <div class=\\\"mat-form-field-hint-wrapper\\\" *ngSwitchCase=\\\"'hint'\\\"\\n      [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n      <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\\n      <div *ngIf=\\\"hintLabel\\\" [id]=\\\"_hintLabelId\\\" class=\\\"mat-hint\\\">{{hintLabel}}</div>\\n      <ng-content select=\\\"mat-hint:not([align='end'])\\\"></ng-content>\\n      <div class=\\\"mat-form-field-hint-spacer\\\"></div>\\n      <ng-content select=\\\"mat-hint[align='end']\\\"></ng-content>\\n    </div>\\n  </div>\\n</div>\\n\", styles: [\".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\", \".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\\\"\\\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\", \".mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\\\" \\\";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\\\"\\\";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\", \".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\", \".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\", \".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]\n                }] }, { type: i2.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { appearance: [{\n                type: Input\n            }], hideRequiredMarker: [{\n                type: Input\n            }], hintLabel: [{\n                type: Input\n            }], floatLabel: [{\n                type: Input\n            }], _connectionContainerRef: [{\n                type: ViewChild,\n                args: ['connectionContainer', { static: true }]\n            }], _inputContainerRef: [{\n                type: ViewChild,\n                args: ['inputContainer']\n            }], _label: [{\n                type: ViewChild,\n                args: ['label']\n            }], _controlNonStatic: [{\n                type: ContentChild,\n                args: [MatFormFieldControl]\n            }], _controlStatic: [{\n                type: ContentChild,\n                args: [MatFormFieldControl, { static: true }]\n            }], _labelChildNonStatic: [{\n                type: ContentChild,\n                args: [MatLabel]\n            }], _labelChildStatic: [{\n                type: ContentChild,\n                args: [MatLabel, { static: true }]\n            }], _placeholderChild: [{\n                type: ContentChild,\n                args: [MatPlaceholder]\n            }], _errorChildren: [{\n                type: ContentChildren,\n                args: [MAT_ERROR, { descendants: true }]\n            }], _hintChildren: [{\n                type: ContentChildren,\n                args: [_MAT_HINT, { descendants: true }]\n            }], _prefixChildren: [{\n                type: ContentChildren,\n                args: [MAT_PREFIX, { descendants: true }]\n            }], _suffixChildren: [{\n                type: ContentChildren,\n                args: [MAT_SUFFIX, { descendants: 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.io/license\n */\nclass MatFormFieldModule {\n}\nMatFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldModule, declarations: [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix], imports: [CommonModule, MatCommonModule, ObserversModule], exports: [MatCommonModule,\n        MatError,\n        MatFormField,\n        MatHint,\n        MatLabel,\n        MatPlaceholder,\n        MatPrefix,\n        MatSuffix] });\nMatFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldModule, imports: [CommonModule, MatCommonModule, ObserversModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatFormFieldModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix],\n                    imports: [CommonModule, MatCommonModule, ObserversModule],\n                    exports: [\n                        MatCommonModule,\n                        MatError,\n                        MatFormField,\n                        MatHint,\n                        MatLabel,\n                        MatPlaceholder,\n                        MatPrefix,\n                        MatSuffix,\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_ERROR, MAT_FORM_FIELD, MAT_FORM_FIELD_DEFAULT_OPTIONS, MAT_PREFIX, MAT_SUFFIX, MatError, MatFormField, MatFormFieldControl, MatFormFieldModule, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix, _MAT_HINT, getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError, matFormFieldAnimations };\n","import * as i0 from '@angular/core';\nimport { SecurityContext, Injectable, Optional, Inject, SkipSelf, ErrorHandler, InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Input, NgModule } from '@angular/core';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT } from '@angular/common';\nimport { of, throwError, forkJoin, Subscription } from 'rxjs';\nimport { tap, map, catchError, finalize, share, take } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpClient } from '@angular/common/http';\nimport * as i2 from '@angular/platform-browser';\nimport { DomSanitizer } from '@angular/platform-browser';\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.io/license\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 (typeof window !== 'undefined') {\n            const ttWindow = window;\n            if (ttWindow.trustedTypes !== undefined) {\n                policy = ttWindow.trustedTypes.createPolicy('angular#components', {\n                    createHTML: (s) => s,\n                });\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 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()?.createHTML(html) || html;\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.io/license\n */\n/**\n * Returns an exception to be thrown in the case when attempting to\n * load an icon with a name that cannot be found.\n * @docs-private\n */\nfunction getMatIconNameNotFoundError(iconName) {\n    return Error(`Unable to find icon with the name \"${iconName}\"`);\n}\n/**\n * Returns an exception to be thrown when the consumer attempts to use\n * `<mat-icon>` without including @angular/common/http.\n * @docs-private\n */\nfunction getMatIconNoHttpProviderError() {\n    return Error('Could not find HttpClient provider for use with Angular Material icons. ' +\n        'Please include the HttpClientModule from @angular/common/http in your ' +\n        'app imports.');\n}\n/**\n * Returns an exception to be thrown when a URL couldn't be sanitized.\n * @param url URL that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeUrlError(url) {\n    return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL ` +\n        `via Angular's DomSanitizer. Attempted URL was \"${url}\".`);\n}\n/**\n * Returns an exception to be thrown when a HTML string couldn't be sanitized.\n * @param literal HTML that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeLiteralError(literal) {\n    return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by ` +\n        `Angular's DomSanitizer. Attempted literal was \"${literal}\".`);\n}\n/**\n * Configuration for an icon, including the URL and possibly the cached SVG element.\n * @docs-private\n */\nclass SvgIconConfig {\n    constructor(url, svgText, options) {\n        this.url = url;\n        this.svgText = svgText;\n        this.options = options;\n    }\n}\n/**\n * Service to register and display icons used by the `<mat-icon>` component.\n * - Registers icon URLs by namespace and name.\n * - Registers icon set URLs by namespace.\n * - Registers aliases for CSS classes, for use with icon fonts.\n * - Loads icons from URLs and extracts individual icons from icon sets.\n */\nclass MatIconRegistry {\n    constructor(_httpClient, _sanitizer, document, _errorHandler) {\n        this._httpClient = _httpClient;\n        this._sanitizer = _sanitizer;\n        this._errorHandler = _errorHandler;\n        /**\n         * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n         */\n        this._svgIconConfigs = new Map();\n        /**\n         * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n         * Multiple icon sets can be registered under the same namespace.\n         */\n        this._iconSetConfigs = new Map();\n        /** Cache for icons loaded by direct URLs. */\n        this._cachedIconsByUrl = new Map();\n        /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */\n        this._inProgressUrlFetches = new Map();\n        /** Map from font identifiers to their CSS class names. Used for icon fonts. */\n        this._fontCssClassesByAlias = new Map();\n        /** Registered icon resolver functions. */\n        this._resolvers = [];\n        /**\n         * The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font\n         * specified. The default 'material-icons' value assumes that the material icon font has been\n         * loaded as described at http://google.github.io/material-design-icons/#icon-font-for-the-web\n         */\n        this._defaultFontSetClass = ['material-icons', 'mat-ligature-font'];\n        this._document = document;\n    }\n    /**\n     * Registers an icon by URL in the default namespace.\n     * @param iconName Name under which the icon should be registered.\n     * @param url\n     */\n    addSvgIcon(iconName, url, options) {\n        return this.addSvgIconInNamespace('', iconName, url, options);\n    }\n    /**\n     * Registers an icon using an HTML string in the default namespace.\n     * @param iconName Name under which the icon should be registered.\n     * @param literal SVG source of the icon.\n     */\n    addSvgIconLiteral(iconName, literal, options) {\n        return this.addSvgIconLiteralInNamespace('', iconName, literal, options);\n    }\n    /**\n     * Registers an icon by URL in the specified namespace.\n     * @param namespace Namespace in which the icon should be registered.\n     * @param iconName Name under which the icon should be registered.\n     * @param url\n     */\n    addSvgIconInNamespace(namespace, iconName, url, options) {\n        return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig(url, null, options));\n    }\n    /**\n     * Registers an icon resolver function with the registry. The function will be invoked with the\n     * name and namespace of an icon when the registry tries to resolve the URL from which to fetch\n     * the icon. The resolver is expected to return a `SafeResourceUrl` that points to the icon,\n     * an object with the icon URL and icon options, or `null` if the icon is not supported. Resolvers\n     * will be invoked in the order in which they have been registered.\n     * @param resolver Resolver function to be registered.\n     */\n    addSvgIconResolver(resolver) {\n        this._resolvers.push(resolver);\n        return this;\n    }\n    /**\n     * Registers an icon using an HTML string in the specified namespace.\n     * @param namespace Namespace in which the icon should be registered.\n     * @param iconName Name under which the icon should be registered.\n     * @param literal SVG source of the icon.\n     */\n    addSvgIconLiteralInNamespace(namespace, iconName, literal, options) {\n        const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n        // TODO: add an ngDevMode check\n        if (!cleanLiteral) {\n            throw getMatIconFailedToSanitizeLiteralError(literal);\n        }\n        // Security: The literal is passed in as SafeHtml, and is thus trusted.\n        const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n        return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig('', trustedLiteral, options));\n    }\n    /**\n     * Registers an icon set by URL in the default namespace.\n     * @param url\n     */\n    addSvgIconSet(url, options) {\n        return this.addSvgIconSetInNamespace('', url, options);\n    }\n    /**\n     * Registers an icon set using an HTML string in the default namespace.\n     * @param literal SVG source of the icon set.\n     */\n    addSvgIconSetLiteral(literal, options) {\n        return this.addSvgIconSetLiteralInNamespace('', literal, options);\n    }\n    /**\n     * Registers an icon set by URL in the specified namespace.\n     * @param namespace Namespace in which to register the icon set.\n     * @param url\n     */\n    addSvgIconSetInNamespace(namespace, url, options) {\n        return this._addSvgIconSetConfig(namespace, new SvgIconConfig(url, null, options));\n    }\n    /**\n     * Registers an icon set using an HTML string in the specified namespace.\n     * @param namespace Namespace in which to register the icon set.\n     * @param literal SVG source of the icon set.\n     */\n    addSvgIconSetLiteralInNamespace(namespace, literal, options) {\n        const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n        if (!cleanLiteral) {\n            throw getMatIconFailedToSanitizeLiteralError(literal);\n        }\n        // Security: The literal is passed in as SafeHtml, and is thus trusted.\n        const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n        return this._addSvgIconSetConfig(namespace, new SvgIconConfig('', trustedLiteral, options));\n    }\n    /**\n     * Defines an alias for CSS class names to be used for icon fonts. Creating an matIcon\n     * component with the alias as the fontSet input will cause the class name to be applied\n     * to the `<mat-icon>` element.\n     *\n     * If the registered font is a ligature font, then don't forget to also include the special\n     * class `mat-ligature-font` to allow the usage via attribute. So register like this:\n     *\n     * ```ts\n     * iconRegistry.registerFontClassAlias('f1', 'font1 mat-ligature-font');\n     * ```\n     *\n     * And use like this:\n     *\n     * ```html\n     * <mat-icon fontSet=\"f1\" fontIcon=\"home\"></mat-icon>\n     * ```\n     *\n     * @param alias Alias for the font.\n     * @param classNames Class names override to be used instead of the alias.\n     */\n    registerFontClassAlias(alias, classNames = alias) {\n        this._fontCssClassesByAlias.set(alias, classNames);\n        return this;\n    }\n    /**\n     * Returns the CSS class name associated with the alias by a previous call to\n     * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.\n     */\n    classNameForFontAlias(alias) {\n        return this._fontCssClassesByAlias.get(alias) || alias;\n    }\n    /**\n     * Sets the CSS classes to be used for icon fonts when an `<mat-icon>` component does not\n     * have a fontSet input value, and is not loading an icon by name or URL.\n     */\n    setDefaultFontSetClass(...classNames) {\n        this._defaultFontSetClass = classNames;\n        return this;\n    }\n    /**\n     * Returns the CSS classes to be used for icon fonts when an `<mat-icon>` component does not\n     * have a fontSet input value, and is not loading an icon by name or URL.\n     */\n    getDefaultFontSetClass() {\n        return this._defaultFontSetClass;\n    }\n    /**\n     * Returns an Observable that produces the icon (as an `<svg>` DOM element) from the given URL.\n     * The response from the URL may be cached so this will not always cause an HTTP request, but\n     * the produced element will always be a new copy of the originally fetched icon. (That is,\n     * it will not contain any modifications made to elements previously returned).\n     *\n     * @param safeUrl URL from which to fetch the SVG icon.\n     */\n    getSvgIconFromUrl(safeUrl) {\n        const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n        if (!url) {\n            throw getMatIconFailedToSanitizeUrlError(safeUrl);\n        }\n        const cachedIcon = this._cachedIconsByUrl.get(url);\n        if (cachedIcon) {\n            return of(cloneSvg(cachedIcon));\n        }\n        return this._loadSvgIconFromConfig(new SvgIconConfig(safeUrl, null)).pipe(tap(svg => this._cachedIconsByUrl.set(url, svg)), map(svg => cloneSvg(svg)));\n    }\n    /**\n     * Returns an Observable that produces the icon (as an `<svg>` DOM element) with the given name\n     * and namespace. The icon must have been previously registered with addIcon or addIconSet;\n     * if not, the Observable will throw an error.\n     *\n     * @param name Name of the icon to be retrieved.\n     * @param namespace Namespace in which to look for the icon.\n     */\n    getNamedSvgIcon(name, namespace = '') {\n        const key = iconKey(namespace, name);\n        let config = this._svgIconConfigs.get(key);\n        // Return (copy of) cached icon if possible.\n        if (config) {\n            return this._getSvgFromConfig(config);\n        }\n        // Otherwise try to resolve the config from one of the resolver functions.\n        config = this._getIconConfigFromResolvers(namespace, name);\n        if (config) {\n            this._svgIconConfigs.set(key, config);\n            return this._getSvgFromConfig(config);\n        }\n        // See if we have any icon sets registered for the namespace.\n        const iconSetConfigs = this._iconSetConfigs.get(namespace);\n        if (iconSetConfigs) {\n            return this._getSvgFromIconSetConfigs(name, iconSetConfigs);\n        }\n        return throwError(getMatIconNameNotFoundError(key));\n    }\n    ngOnDestroy() {\n        this._resolvers = [];\n        this._svgIconConfigs.clear();\n        this._iconSetConfigs.clear();\n        this._cachedIconsByUrl.clear();\n    }\n    /**\n     * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.\n     */\n    _getSvgFromConfig(config) {\n        if (config.svgText) {\n            // We already have the SVG element for this icon, return a copy.\n            return of(cloneSvg(this._svgElementFromConfig(config)));\n        }\n        else {\n            // Fetch the icon from the config's URL, cache it, and return a copy.\n            return this._loadSvgIconFromConfig(config).pipe(map(svg => cloneSvg(svg)));\n        }\n    }\n    /**\n     * Attempts to find an icon with the specified name in any of the SVG icon sets.\n     * First searches the available cached icons for a nested element with a matching name, and\n     * if found copies the element to a new `<svg>` element. If not found, fetches all icon sets\n     * that have not been cached, and searches again after all fetches are completed.\n     * The returned Observable produces the SVG element if possible, and throws\n     * an error if no icon with the specified name can be found.\n     */\n    _getSvgFromIconSetConfigs(name, iconSetConfigs) {\n        // For all the icon set SVG elements we've fetched, see if any contain an icon with the\n        // requested name.\n        const namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n        if (namedIcon) {\n            // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every\n            // time anyway, there's probably not much advantage compared to just always extracting\n            // it from the icon set.\n            return of(namedIcon);\n        }\n        // Not found in any cached icon sets. If there are icon sets with URLs that we haven't\n        // fetched, fetch them now and look for iconName in the results.\n        const iconSetFetchRequests = iconSetConfigs\n            .filter(iconSetConfig => !iconSetConfig.svgText)\n            .map(iconSetConfig => {\n            return this._loadSvgIconSetFromConfig(iconSetConfig).pipe(catchError((err) => {\n                const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, iconSetConfig.url);\n                // Swallow errors fetching individual URLs so the\n                // combined Observable won't necessarily fail.\n                const errorMessage = `Loading icon set URL: ${url} failed: ${err.message}`;\n                this._errorHandler.handleError(new Error(errorMessage));\n                return of(null);\n            }));\n        });\n        // Fetch all the icon set URLs. When the requests complete, every IconSet should have a\n        // cached SVG element (unless the request failed), and we can check again for the icon.\n        return forkJoin(iconSetFetchRequests).pipe(map(() => {\n            const foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n            // TODO: add an ngDevMode check\n            if (!foundIcon) {\n                throw getMatIconNameNotFoundError(name);\n            }\n            return foundIcon;\n        }));\n    }\n    /**\n     * Searches the cached SVG elements for the given icon sets for a nested icon element whose \"id\"\n     * tag matches the specified name. If found, copies the nested element to a new SVG element and\n     * returns it. Returns null if no matching element is found.\n     */\n    _extractIconWithNameFromAnySet(iconName, iconSetConfigs) {\n        // Iterate backwards, so icon sets added later have precedence.\n        for (let i = iconSetConfigs.length - 1; i >= 0; i--) {\n            const config = iconSetConfigs[i];\n            // Parsing the icon set's text into an SVG element can be expensive. We can avoid some of\n            // the parsing by doing a quick check using `indexOf` to see if there's any chance for the\n            // icon to be in the set. This won't be 100% accurate, but it should help us avoid at least\n            // some of the parsing.\n            if (config.svgText && config.svgText.toString().indexOf(iconName) > -1) {\n                const svg = this._svgElementFromConfig(config);\n                const foundIcon = this._extractSvgIconFromSet(svg, iconName, config.options);\n                if (foundIcon) {\n                    return foundIcon;\n                }\n            }\n        }\n        return null;\n    }\n    /**\n     * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element\n     * from it.\n     */\n    _loadSvgIconFromConfig(config) {\n        return this._fetchIcon(config).pipe(tap(svgText => (config.svgText = svgText)), map(() => this._svgElementFromConfig(config)));\n    }\n    /**\n     * Loads the content of the icon set URL specified in the\n     * SvgIconConfig and attaches it to the config.\n     */\n    _loadSvgIconSetFromConfig(config) {\n        if (config.svgText) {\n            return of(null);\n        }\n        return this._fetchIcon(config).pipe(tap(svgText => (config.svgText = svgText)));\n    }\n    /**\n     * Searches the cached element of the given SvgIconConfig for a nested icon element whose \"id\"\n     * tag matches the specified name. If found, copies the nested element to a new SVG element and\n     * returns it. Returns null if no matching element is found.\n     */\n    _extractSvgIconFromSet(iconSet, iconName, options) {\n        // Use the `id=\"iconName\"` syntax in order to escape special\n        // characters in the ID (versus using the #iconName syntax).\n        const iconSource = iconSet.querySelector(`[id=\"${iconName}\"]`);\n        if (!iconSource) {\n            return null;\n        }\n        // Clone the element and remove the ID to prevent multiple elements from being added\n        // to the page with the same ID.\n        const iconElement = iconSource.cloneNode(true);\n        iconElement.removeAttribute('id');\n        // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as\n        // the content of a new <svg> node.\n        if (iconElement.nodeName.toLowerCase() === 'svg') {\n            return this._setSvgAttributes(iconElement, options);\n        }\n        // If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note\n        // that the same could be achieved by referring to it via <use href=\"#id\">, however the <use>\n        // tag is problematic on Firefox, because it needs to include the current page path.\n        if (iconElement.nodeName.toLowerCase() === 'symbol') {\n            return this._setSvgAttributes(this._toSvgElement(iconElement), options);\n        }\n        // createElement('SVG') doesn't work as expected; the DOM ends up with\n        // the correct nodes, but the SVG content doesn't render. Instead we\n        // have to create an empty SVG node using innerHTML and append its content.\n        // Elements created using DOMParser.parseFromString have the same problem.\n        // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display\n        const svg = this._svgElementFromString(trustedHTMLFromString('<svg></svg>'));\n        // Clone the node so we don't remove it from the parent icon set element.\n        svg.appendChild(iconElement);\n        return this._setSvgAttributes(svg, options);\n    }\n    /**\n     * Creates a DOM element from the given SVG string.\n     */\n    _svgElementFromString(str) {\n        const div = this._document.createElement('DIV');\n        div.innerHTML = str;\n        const svg = div.querySelector('svg');\n        // TODO: add an ngDevMode check\n        if (!svg) {\n            throw Error('<svg> tag not found');\n        }\n        return svg;\n    }\n    /**\n     * Converts an element into an SVG node by cloning all of its children.\n     */\n    _toSvgElement(element) {\n        const svg = this._svgElementFromString(trustedHTMLFromString('<svg></svg>'));\n        const attributes = element.attributes;\n        // Copy over all the attributes from the `symbol` to the new SVG, except the id.\n        for (let i = 0; i < attributes.length; i++) {\n            const { name, value } = attributes[i];\n            if (name !== 'id') {\n                svg.setAttribute(name, value);\n            }\n        }\n        for (let i = 0; i < element.childNodes.length; i++) {\n            if (element.childNodes[i].nodeType === this._document.ELEMENT_NODE) {\n                svg.appendChild(element.childNodes[i].cloneNode(true));\n            }\n        }\n        return svg;\n    }\n    /**\n     * Sets the default attributes for an SVG element to be used as an icon.\n     */\n    _setSvgAttributes(svg, options) {\n        svg.setAttribute('fit', '');\n        svg.setAttribute('height', '100%');\n        svg.setAttribute('width', '100%');\n        svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n        svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.\n        if (options && options.viewBox) {\n            svg.setAttribute('viewBox', options.viewBox);\n        }\n        return svg;\n    }\n    /**\n     * Returns an Observable which produces the string contents of the given icon. Results may be\n     * cached, so future calls with the same URL may not cause another HTTP request.\n     */\n    _fetchIcon(iconConfig) {\n        const { url: safeUrl, options } = iconConfig;\n        const withCredentials = options?.withCredentials ?? false;\n        if (!this._httpClient) {\n            throw getMatIconNoHttpProviderError();\n        }\n        // TODO: add an ngDevMode check\n        if (safeUrl == null) {\n            throw Error(`Cannot fetch icon from URL \"${safeUrl}\".`);\n        }\n        const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n        // TODO: add an ngDevMode check\n        if (!url) {\n            throw getMatIconFailedToSanitizeUrlError(safeUrl);\n        }\n        // Store in-progress fetches to avoid sending a duplicate request for a URL when there is\n        // already a request in progress for that URL. It's necessary to call share() on the\n        // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.\n        const inProgressFetch = this._inProgressUrlFetches.get(url);\n        if (inProgressFetch) {\n            return inProgressFetch;\n        }\n        const req = this._httpClient.get(url, { responseType: 'text', withCredentials }).pipe(map(svg => {\n            // Security: This SVG is fetched from a SafeResourceUrl, and is thus\n            // trusted HTML.\n            return trustedHTMLFromString(svg);\n        }), finalize(() => this._inProgressUrlFetches.delete(url)), share());\n        this._inProgressUrlFetches.set(url, req);\n        return req;\n    }\n    /**\n     * Registers an icon config by name in the specified namespace.\n     * @param namespace Namespace in which to register the icon config.\n     * @param iconName Name under which to register the config.\n     * @param config Config to be registered.\n     */\n    _addSvgIconConfig(namespace, iconName, config) {\n        this._svgIconConfigs.set(iconKey(namespace, iconName), config);\n        return this;\n    }\n    /**\n     * Registers an icon set config in the specified namespace.\n     * @param namespace Namespace in which to register the icon config.\n     * @param config Config to be registered.\n     */\n    _addSvgIconSetConfig(namespace, config) {\n        const configNamespace = this._iconSetConfigs.get(namespace);\n        if (configNamespace) {\n            configNamespace.push(config);\n        }\n        else {\n            this._iconSetConfigs.set(namespace, [config]);\n        }\n        return this;\n    }\n    /** Parses a config's text into an SVG element. */\n    _svgElementFromConfig(config) {\n        if (!config.svgElement) {\n            const svg = this._svgElementFromString(config.svgText);\n            this._setSvgAttributes(svg, config.options);\n            config.svgElement = svg;\n        }\n        return config.svgElement;\n    }\n    /** Tries to create an icon config through the registered resolver functions. */\n    _getIconConfigFromResolvers(namespace, name) {\n        for (let i = 0; i < this._resolvers.length; i++) {\n            const result = this._resolvers[i](name, namespace);\n            if (result) {\n                return isSafeUrlWithOptions(result)\n                    ? new SvgIconConfig(result.url, null, result.options)\n                    : new SvgIconConfig(result, null);\n            }\n        }\n        return undefined;\n    }\n}\nMatIconRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconRegistry, deps: [{ token: i1.HttpClient, optional: true }, { token: i2.DomSanitizer }, { token: DOCUMENT, optional: true }, { token: i0.ErrorHandler }], target: i0.ɵɵFactoryTarget.Injectable });\nMatIconRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconRegistry, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconRegistry, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.HttpClient, decorators: [{\n                    type: Optional\n                }] }, { type: i2.DomSanitizer }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: i0.ErrorHandler }]; } });\n/** @docs-private */\nfunction ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, httpClient, sanitizer, errorHandler, document) {\n    return parentRegistry || new MatIconRegistry(httpClient, sanitizer, document, errorHandler);\n}\n/** @docs-private */\nconst ICON_REGISTRY_PROVIDER = {\n    // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one.\n    provide: MatIconRegistry,\n    deps: [\n        [new Optional(), new SkipSelf(), MatIconRegistry],\n        [new Optional(), HttpClient],\n        DomSanitizer,\n        ErrorHandler,\n        [new Optional(), DOCUMENT],\n    ],\n    useFactory: ICON_REGISTRY_PROVIDER_FACTORY,\n};\n/** Clones an SVGElement while preserving type information. */\nfunction cloneSvg(svg) {\n    return svg.cloneNode(true);\n}\n/** Returns the cache key to use for an icon namespace and name. */\nfunction iconKey(namespace, name) {\n    return namespace + ':' + name;\n}\nfunction isSafeUrlWithOptions(value) {\n    return !!(value.url && value.options);\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.io/license\n */\n// Boilerplate for applying mixins to MatIcon.\n/** @docs-private */\nconst _MatIconBase = mixinColor(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n});\n/** Injection token to be used to override the default options for `mat-icon`. */\nconst MAT_ICON_DEFAULT_OPTIONS = new InjectionToken('MAT_ICON_DEFAULT_OPTIONS');\n/**\n * Injection token used to provide the current location to `MatIcon`.\n * Used to handle server-side rendering and to stub out during unit tests.\n * @docs-private\n */\nconst MAT_ICON_LOCATION = new InjectionToken('mat-icon-location', {\n    providedIn: 'root',\n    factory: MAT_ICON_LOCATION_FACTORY,\n});\n/** @docs-private */\nfunction MAT_ICON_LOCATION_FACTORY() {\n    const _document = inject(DOCUMENT);\n    const _location = _document ? _document.location : null;\n    return {\n        // Note that this needs to be a function, rather than a property, because Angular\n        // will only resolve it once, but we want the current path on each call.\n        getPathname: () => (_location ? _location.pathname + _location.search : ''),\n    };\n}\n/** SVG attributes that accept a FuncIRI (e.g. `url(<something>)`). */\nconst funcIriAttributes = [\n    'clip-path',\n    'color-profile',\n    'src',\n    'cursor',\n    'fill',\n    'filter',\n    'marker',\n    'marker-start',\n    'marker-mid',\n    'marker-end',\n    'mask',\n    'stroke',\n];\n/** Selector that can be used to find all elements that are using a `FuncIRI`. */\nconst funcIriAttributeSelector = funcIriAttributes.map(attr => `[${attr}]`).join(', ');\n/** Regex that can be used to extract the id out of a FuncIRI. */\nconst funcIriPattern = /^url\\(['\"]?#(.*?)['\"]?\\)$/;\n/**\n * Component to display an icon. It can be used in the following ways:\n *\n * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the\n *   addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of\n *   MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format\n *   \"[namespace]:[name]\", if not the value will be the name of an icon in the default namespace.\n *   Examples:\n *     `<mat-icon svgIcon=\"left-arrow\"></mat-icon>\n *     <mat-icon svgIcon=\"animals:cat\"></mat-icon>`\n *\n * - Use a font ligature as an icon by putting the ligature text in the `fontIcon` attribute or the\n *   content of the `<mat-icon>` component. If you register a custom font class, don't forget to also\n *   include the special class `mat-ligature-font`. It is recommended to use the attribute alternative\n *   to prevent the ligature text to be selectable and to appear in search engine results.\n *   By default, the Material icons font is used as described at\n *   http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an\n *   alternate font by setting the fontSet input to either the CSS class to apply to use the\n *   desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.\n *   Examples:\n *     `<mat-icon fontIcon=\"home\"></mat-icon>\n *     <mat-icon>home</mat-icon>\n *     <mat-icon fontSet=\"myfont\" fontIcon=\"sun\"></mat-icon>\n *     <mat-icon fontSet=\"myfont\">sun</mat-icon>`\n *\n * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the\n *   font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a\n *   CSS class which causes the glyph to be displayed via a :before selector, as in\n *   https://fortawesome.github.io/Font-Awesome/examples/\n *   Example:\n *     `<mat-icon fontSet=\"fa\" fontIcon=\"alarm\"></mat-icon>`\n */\nclass MatIcon extends _MatIconBase {\n    constructor(elementRef, _iconRegistry, ariaHidden, _location, _errorHandler, defaults) {\n        super(elementRef);\n        this._iconRegistry = _iconRegistry;\n        this._location = _location;\n        this._errorHandler = _errorHandler;\n        this._inline = false;\n        this._previousFontSetClass = [];\n        /** Subscription to the current in-progress SVG icon request. */\n        this._currentIconFetch = Subscription.EMPTY;\n        if (defaults) {\n            if (defaults.color) {\n                this.color = this.defaultColor = defaults.color;\n            }\n            if (defaults.fontSet) {\n                this.fontSet = defaults.fontSet;\n            }\n        }\n        // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is\n        // the right thing to do for the majority of icon use-cases.\n        if (!ariaHidden) {\n            elementRef.nativeElement.setAttribute('aria-hidden', 'true');\n        }\n    }\n    /**\n     * Whether the icon should be inlined, automatically sizing the icon to match the font size of\n     * the element the icon is contained in.\n     */\n    get inline() {\n        return this._inline;\n    }\n    set inline(inline) {\n        this._inline = coerceBooleanProperty(inline);\n    }\n    /** Name of the icon in the SVG icon set. */\n    get svgIcon() {\n        return this._svgIcon;\n    }\n    set svgIcon(value) {\n        if (value !== this._svgIcon) {\n            if (value) {\n                this._updateSvgIcon(value);\n            }\n            else if (this._svgIcon) {\n                this._clearSvgElement();\n            }\n            this._svgIcon = value;\n        }\n    }\n    /** Font set that the icon is a part of. */\n    get fontSet() {\n        return this._fontSet;\n    }\n    set fontSet(value) {\n        const newValue = this._cleanupFontValue(value);\n        if (newValue !== this._fontSet) {\n            this._fontSet = newValue;\n            this._updateFontIconClasses();\n        }\n    }\n    /** Name of an icon within a font set. */\n    get fontIcon() {\n        return this._fontIcon;\n    }\n    set fontIcon(value) {\n        const newValue = this._cleanupFontValue(value);\n        if (newValue !== this._fontIcon) {\n            this._fontIcon = newValue;\n            this._updateFontIconClasses();\n        }\n    }\n    /**\n     * Splits an svgIcon binding value into its icon set and icon name components.\n     * Returns a 2-element array of [(icon set), (icon name)].\n     * The separator for the two fields is ':'. If there is no separator, an empty\n     * string is returned for the icon set and the entire value is returned for\n     * the icon name. If the argument is falsy, returns an array of two empty strings.\n     * Throws an error if the name contains two or more ':' separators.\n     * Examples:\n     *   `'social:cake' -> ['social', 'cake']\n     *   'penguin' -> ['', 'penguin']\n     *   null -> ['', '']\n     *   'a:b:c' -> (throws Error)`\n     */\n    _splitIconName(iconName) {\n        if (!iconName) {\n            return ['', ''];\n        }\n        const parts = iconName.split(':');\n        switch (parts.length) {\n            case 1:\n                return ['', parts[0]]; // Use default namespace.\n            case 2:\n                return parts;\n            default:\n                throw Error(`Invalid icon name: \"${iconName}\"`); // TODO: add an ngDevMode check\n        }\n    }\n    ngOnInit() {\n        // Update font classes because ngOnChanges won't be called if none of the inputs are present,\n        // e.g. <mat-icon>arrow</mat-icon> In this case we need to add a CSS class for the default font.\n        this._updateFontIconClasses();\n    }\n    ngAfterViewChecked() {\n        const cachedElements = this._elementsWithExternalReferences;\n        if (cachedElements && cachedElements.size) {\n            const newPath = this._location.getPathname();\n            // We need to check whether the URL has changed on each change detection since\n            // the browser doesn't have an API that will let us react on link clicks and\n            // we can't depend on the Angular router. The references need to be updated,\n            // because while most browsers don't care whether the URL is correct after\n            // the first render, Safari will break if the user navigates to a different\n            // page and the SVG isn't re-rendered.\n            if (newPath !== this._previousPath) {\n                this._previousPath = newPath;\n                this._prependPathToReferences(newPath);\n            }\n        }\n    }\n    ngOnDestroy() {\n        this._currentIconFetch.unsubscribe();\n        if (this._elementsWithExternalReferences) {\n            this._elementsWithExternalReferences.clear();\n        }\n    }\n    _usingFontIcon() {\n        return !this.svgIcon;\n    }\n    _setSvgElement(svg) {\n        this._clearSvgElement();\n        // Note: we do this fix here, rather than the icon registry, because the\n        // references have to point to the URL at the time that the icon was created.\n        const path = this._location.getPathname();\n        this._previousPath = path;\n        this._cacheChildrenWithExternalReferences(svg);\n        this._prependPathToReferences(path);\n        this._elementRef.nativeElement.appendChild(svg);\n    }\n    _clearSvgElement() {\n        const layoutElement = this._elementRef.nativeElement;\n        let childCount = layoutElement.childNodes.length;\n        if (this._elementsWithExternalReferences) {\n            this._elementsWithExternalReferences.clear();\n        }\n        // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that\n        // we can't use innerHTML, because IE will throw if the element has a data binding.\n        while (childCount--) {\n            const child = layoutElement.childNodes[childCount];\n            // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid\n            // of any loose text nodes, as well as any SVG elements in order to remove any old icons.\n            if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') {\n                child.remove();\n            }\n        }\n    }\n    _updateFontIconClasses() {\n        if (!this._usingFontIcon()) {\n            return;\n        }\n        const elem = this._elementRef.nativeElement;\n        const fontSetClasses = (this.fontSet\n            ? this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/)\n            : this._iconRegistry.getDefaultFontSetClass()).filter(className => className.length > 0);\n        this._previousFontSetClass.forEach(className => elem.classList.remove(className));\n        fontSetClasses.forEach(className => elem.classList.add(className));\n        this._previousFontSetClass = fontSetClasses;\n        if (this.fontIcon !== this._previousFontIconClass &&\n            !fontSetClasses.includes('mat-ligature-font')) {\n            if (this._previousFontIconClass) {\n                elem.classList.remove(this._previousFontIconClass);\n            }\n            if (this.fontIcon) {\n                elem.classList.add(this.fontIcon);\n            }\n            this._previousFontIconClass = this.fontIcon;\n        }\n    }\n    /**\n     * Cleans up a value to be used as a fontIcon or fontSet.\n     * Since the value ends up being assigned as a CSS class, we\n     * have to trim the value and omit space-separated values.\n     */\n    _cleanupFontValue(value) {\n        return typeof value === 'string' ? value.trim().split(' ')[0] : value;\n    }\n    /**\n     * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`\n     * reference. This is required because WebKit browsers require references to be prefixed with\n     * the current path, if the page has a `base` tag.\n     */\n    _prependPathToReferences(path) {\n        const elements = this._elementsWithExternalReferences;\n        if (elements) {\n            elements.forEach((attrs, element) => {\n                attrs.forEach(attr => {\n                    element.setAttribute(attr.name, `url('${path}#${attr.value}')`);\n                });\n            });\n        }\n    }\n    /**\n     * Caches the children of an SVG element that have `url()`\n     * references that we need to prefix with the current path.\n     */\n    _cacheChildrenWithExternalReferences(element) {\n        const elementsWithFuncIri = element.querySelectorAll(funcIriAttributeSelector);\n        const elements = (this._elementsWithExternalReferences =\n            this._elementsWithExternalReferences || new Map());\n        for (let i = 0; i < elementsWithFuncIri.length; i++) {\n            funcIriAttributes.forEach(attr => {\n                const elementWithReference = elementsWithFuncIri[i];\n                const value = elementWithReference.getAttribute(attr);\n                const match = value ? value.match(funcIriPattern) : null;\n                if (match) {\n                    let attributes = elements.get(elementWithReference);\n                    if (!attributes) {\n                        attributes = [];\n                        elements.set(elementWithReference, attributes);\n                    }\n                    attributes.push({ name: attr, value: match[1] });\n                }\n            });\n        }\n    }\n    /** Sets a new SVG icon with a particular name. */\n    _updateSvgIcon(rawName) {\n        this._svgNamespace = null;\n        this._svgName = null;\n        this._currentIconFetch.unsubscribe();\n        if (rawName) {\n            const [namespace, iconName] = this._splitIconName(rawName);\n            if (namespace) {\n                this._svgNamespace = namespace;\n            }\n            if (iconName) {\n                this._svgName = iconName;\n            }\n            this._currentIconFetch = this._iconRegistry\n                .getNamedSvgIcon(iconName, namespace)\n                .pipe(take(1))\n                .subscribe(svg => this._setSvgElement(svg), (err) => {\n                const errorMessage = `Error retrieving icon ${namespace}:${iconName}! ${err.message}`;\n                this._errorHandler.handleError(new Error(errorMessage));\n            });\n        }\n    }\n}\nMatIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIcon, deps: [{ token: i0.ElementRef }, { token: MatIconRegistry }, { token: 'aria-hidden', attribute: true }, { token: MAT_ICON_LOCATION }, { token: i0.ErrorHandler }, { token: MAT_ICON_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatIcon, selector: \"mat-icon\", inputs: { color: \"color\", inline: \"inline\", svgIcon: \"svgIcon\", fontSet: \"fontSet\", fontIcon: \"fontIcon\" }, host: { attributes: { \"role\": \"img\" }, properties: { \"attr.data-mat-icon-type\": \"_usingFontIcon() ? \\\"font\\\" : \\\"svg\\\"\", \"attr.data-mat-icon-name\": \"_svgName || fontIcon\", \"attr.data-mat-icon-namespace\": \"_svgNamespace || fontSet\", \"attr.fontIcon\": \"_usingFontIcon() ? fontIcon : null\", \"class.mat-icon-inline\": \"inline\", \"class.mat-icon-no-color\": \"color !== \\\"primary\\\" && color !== \\\"accent\\\" && color !== \\\"warn\\\"\" }, classAttribute: \"mat-icon notranslate\" }, exportAs: [\"matIcon\"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [\".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIcon, decorators: [{\n            type: Component,\n            args: [{ template: '<ng-content></ng-content>', selector: 'mat-icon', exportAs: 'matIcon', inputs: ['color'], host: {\n                        'role': 'img',\n                        'class': 'mat-icon notranslate',\n                        '[attr.data-mat-icon-type]': '_usingFontIcon() ? \"font\" : \"svg\"',\n                        '[attr.data-mat-icon-name]': '_svgName || fontIcon',\n                        '[attr.data-mat-icon-namespace]': '_svgNamespace || fontSet',\n                        '[attr.fontIcon]': '_usingFontIcon() ? fontIcon : null',\n                        '[class.mat-icon-inline]': 'inline',\n                        '[class.mat-icon-no-color]': 'color !== \"primary\" && color !== \"accent\" && color !== \"warn\"',\n                    }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MatIconRegistry }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['aria-hidden']\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_ICON_LOCATION]\n                }] }, { type: i0.ErrorHandler }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_ICON_DEFAULT_OPTIONS]\n                }] }]; }, propDecorators: { inline: [{\n                type: Input\n            }], svgIcon: [{\n                type: Input\n            }], fontSet: [{\n                type: Input\n            }], fontIcon: [{\n                type: Input\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.io/license\n */\nclass MatIconModule {\n}\nMatIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconModule, declarations: [MatIcon], imports: [MatCommonModule], exports: [MatIcon, MatCommonModule] });\nMatIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconModule, imports: [MatCommonModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatIconModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatCommonModule],\n                    exports: [MatIcon, MatCommonModule],\n                    declarations: [MatIcon],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ICON_REGISTRY_PROVIDER, ICON_REGISTRY_PROVIDER_FACTORY, MAT_ICON_DEFAULT_OPTIONS, MAT_ICON_LOCATION, MAT_ICON_LOCATION_FACTORY, MatIcon, MatIconModule, MatIconRegistry, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError };\n","import * as i8 from '@angular/cdk/overlay';\nimport { Overlay, CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';\nimport * as i7 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, EventEmitter, Optional, Inject, Self, Attribute, Input, ViewChild, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport * as i2 from '@angular/material/core';\nimport { mixinDisableRipple, mixinTabIndex, mixinDisabled, mixinErrorState, _countGroupLabelsBeforeOption, _getOptionScrollPosition, MAT_OPTION_PARENT_COMPONENT, MatOption, MAT_OPTGROUP, MatOptionModule, MatCommonModule } from '@angular/material/core';\nimport * as i6 from '@angular/material/form-field';\nimport { MAT_FORM_FIELD, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport * as i1 from '@angular/cdk/scrolling';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i5 from '@angular/cdk/a11y';\nimport { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport * as i3 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE, hasModifierKey, A } from '@angular/cdk/keycodes';\nimport * as i4 from '@angular/forms';\nimport { Validators } from '@angular/forms';\nimport { Subject, defer, merge } from 'rxjs';\nimport { startWith, switchMap, take, filter, map, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport { trigger, transition, query, animateChild, state, style, animate } from '@angular/animations';\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.io/license\n */\n/**\n * The following are all the animations for the mat-select component, with each\n * const containing the metadata for one animation.\n *\n * The values below match the implementation of the AngularJS Material mat-select animation.\n * @docs-private\n */\nconst matSelectAnimations = {\n    /**\n     * This animation ensures the select's overlay panel animation (transformPanel) is called when\n     * closing the select.\n     * This is needed due to https://github.com/angular/angular/issues/23302\n     */\n    transformPanelWrap: trigger('transformPanelWrap', [\n        transition('* => void', query('@transformPanel', [animateChild()], { optional: true })),\n    ]),\n    /**\n     * This animation transforms the select's overlay panel on and off the page.\n     *\n     * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it\n     * up to 100% on the Y axis, fades in its border, and translates slightly up and to the\n     * side to ensure the option text correctly overlaps the trigger text.\n     *\n     * When the panel is removed from the DOM, it simply fades out linearly.\n     */\n    transformPanel: trigger('transformPanel', [\n        state('void', style({\n            transform: 'scaleY(0.8)',\n            minWidth: '100%',\n            opacity: 0,\n        })),\n        state('showing', style({\n            opacity: 1,\n            minWidth: 'calc(100% + 32px)',\n            transform: 'scaleY(1)',\n        })),\n        state('showing-multiple', style({\n            opacity: 1,\n            minWidth: 'calc(100% + 64px)',\n            transform: 'scaleY(1)',\n        })),\n        transition('void => *', animate('120ms cubic-bezier(0, 0, 0.2, 1)')),\n        transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 }))),\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.io/license\n */\n/**\n * Returns an exception to be thrown when attempting to change a select's `multiple` option\n * after initialization.\n * @docs-private\n */\nfunction getMatSelectDynamicMultipleError() {\n    return Error('Cannot change `multiple` mode of select after initialization.');\n}\n/**\n * Returns an exception to be thrown when attempting to assign a non-array value to a select\n * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for\n * resetting the value.\n * @docs-private\n */\nfunction getMatSelectNonArrayValueError() {\n    return Error('Value must be an array in multiple-selection mode.');\n}\n/**\n * Returns an exception to be thrown when assigning a non-function value to the comparator\n * used to determine if a value corresponds to an option. Note that whether the function\n * actually takes two values and returns a boolean is not checked.\n */\nfunction getMatSelectNonFunctionValueError() {\n    return Error('`compareWith` must be a function.');\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.io/license\n */\nlet nextUniqueId = 0;\n/**\n * The following style constants are necessary to save here in order\n * to properly calculate the alignment of the selected option over\n * the trigger element.\n */\n/** The max height of the select's overlay panel. */\nconst SELECT_PANEL_MAX_HEIGHT = 256;\n/** The panel's padding on the x-axis. */\nconst SELECT_PANEL_PADDING_X = 16;\n/** The panel's x axis padding if it is indented (e.g. there is an option group). */\nconst SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;\n/** The height of the select items in `em` units. */\nconst SELECT_ITEM_HEIGHT_EM = 3;\n// TODO(josephperrott): Revert to a constant after 2018 spec updates are fully merged.\n/**\n * Distance between the panel edge and the option text in\n * multi-selection mode.\n *\n * Calculated as:\n * (SELECT_PANEL_PADDING_X * 1.5) + 16 = 40\n * The padding is multiplied by 1.5 because the checkbox's margin is half the padding.\n * The checkbox width is 16px.\n */\nconst SELECT_MULTIPLE_PANEL_PADDING_X = SELECT_PANEL_PADDING_X * 1.5 + 16;\n/**\n * The select panel will only \"fit\" inside the viewport if it is positioned at\n * this value or more away from the viewport boundary.\n */\nconst SELECT_PANEL_VIEWPORT_PADDING = 8;\n/** Injection token that determines the scroll handling while a select is open. */\nconst MAT_SELECT_SCROLL_STRATEGY = new InjectionToken('mat-select-scroll-strategy');\n/** @docs-private */\nfunction MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n    return () => overlay.scrollStrategies.reposition();\n}\n/** Injection token that can be used to provide the default options the select module. */\nconst MAT_SELECT_CONFIG = new InjectionToken('MAT_SELECT_CONFIG');\n/** @docs-private */\nconst MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {\n    provide: MAT_SELECT_SCROLL_STRATEGY,\n    deps: [Overlay],\n    useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,\n};\n/** Change event object that is emitted when the select value has changed. */\nclass MatSelectChange {\n    constructor(\n    /** Reference to the select that emitted the change event. */\n    source, \n    /** Current value of the select that emitted the event. */\n    value) {\n        this.source = source;\n        this.value = value;\n    }\n}\n// Boilerplate for applying mixins to MatSelect.\n/** @docs-private */\nconst _MatSelectMixinBase = mixinDisableRipple(mixinTabIndex(mixinDisabled(mixinErrorState(class {\n    constructor(_elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, \n    /**\n     * Form control bound to the component.\n     * Implemented as part of `MatFormFieldControl`.\n     * @docs-private\n     */\n    ngControl) {\n        this._elementRef = _elementRef;\n        this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n        this._parentForm = _parentForm;\n        this._parentFormGroup = _parentFormGroup;\n        this.ngControl = ngControl;\n        /**\n         * Emits whenever the component state changes and should cause the parent\n         * form-field to update. Implemented as part of `MatFormFieldControl`.\n         * @docs-private\n         */\n        this.stateChanges = new Subject();\n    }\n}))));\n/**\n * Injection token that can be used to reference instances of `MatSelectTrigger`. It serves as\n * alternative token to the actual `MatSelectTrigger` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_SELECT_TRIGGER = new InjectionToken('MatSelectTrigger');\n/**\n * Allows the user to customize the trigger that is displayed when the select has a value.\n */\nclass MatSelectTrigger {\n}\nMatSelectTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatSelectTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSelectTrigger, selector: \"mat-select-trigger\", providers: [{ provide: MAT_SELECT_TRIGGER, useExisting: MatSelectTrigger }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectTrigger, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-select-trigger',\n                    providers: [{ provide: MAT_SELECT_TRIGGER, useExisting: MatSelectTrigger }],\n                }]\n        }] });\n/** Base class with all of the `MatSelect` functionality. */\nclass _MatSelectBase extends _MatSelectMixinBase {\n    constructor(_viewportRuler, _changeDetectorRef, _ngZone, _defaultErrorStateMatcher, elementRef, _dir, _parentForm, _parentFormGroup, _parentFormField, ngControl, tabIndex, scrollStrategyFactory, _liveAnnouncer, _defaultOptions) {\n        super(elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);\n        this._viewportRuler = _viewportRuler;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._ngZone = _ngZone;\n        this._dir = _dir;\n        this._parentFormField = _parentFormField;\n        this._liveAnnouncer = _liveAnnouncer;\n        this._defaultOptions = _defaultOptions;\n        /** Whether or not the overlay panel is open. */\n        this._panelOpen = false;\n        /** Comparison function to specify which option is displayed. Defaults to object equality. */\n        this._compareWith = (o1, o2) => o1 === o2;\n        /** Unique id for this input. */\n        this._uid = `mat-select-${nextUniqueId++}`;\n        /** Current `aria-labelledby` value for the select trigger. */\n        this._triggerAriaLabelledBy = null;\n        /** Emits whenever the component is destroyed. */\n        this._destroy = new Subject();\n        /** `View -> model callback called when value changes` */\n        this._onChange = () => { };\n        /** `View -> model callback called when select has been touched` */\n        this._onTouched = () => { };\n        /** ID for the DOM node containing the select's value. */\n        this._valueId = `mat-select-value-${nextUniqueId++}`;\n        /** Emits when the panel element is finished transforming in. */\n        this._panelDoneAnimatingStream = new Subject();\n        this._overlayPanelClass = this._defaultOptions?.overlayPanelClass || '';\n        this._focused = false;\n        /** A name for this control that can be used by `mat-form-field`. */\n        this.controlType = 'mat-select';\n        this._multiple = false;\n        this._disableOptionCentering = this._defaultOptions?.disableOptionCentering ?? false;\n        /** Aria label of the select. */\n        this.ariaLabel = '';\n        /** Combined stream of all of the child options' change events. */\n        this.optionSelectionChanges = defer(() => {\n            const options = this.options;\n            if (options) {\n                return options.changes.pipe(startWith(options), switchMap(() => merge(...options.map(option => option.onSelectionChange))));\n            }\n            return this._ngZone.onStable.pipe(take(1), switchMap(() => this.optionSelectionChanges));\n        });\n        /** Event emitted when the select panel has been toggled. */\n        this.openedChange = new EventEmitter();\n        /** Event emitted when the select has been opened. */\n        this._openedStream = this.openedChange.pipe(filter(o => o), map(() => { }));\n        /** Event emitted when the select has been closed. */\n        this._closedStream = this.openedChange.pipe(filter(o => !o), map(() => { }));\n        /** Event emitted when the selected value has been changed by the user. */\n        this.selectionChange = new EventEmitter();\n        /**\n         * Event that emits whenever the raw value of the select changes. This is here primarily\n         * to facilitate the two-way binding for the `value` input.\n         * @docs-private\n         */\n        this.valueChange = new EventEmitter();\n        if (this.ngControl) {\n            // Note: we provide the value accessor through here, instead of\n            // the `providers` to avoid running into a circular import.\n            this.ngControl.valueAccessor = this;\n        }\n        // Note that we only want to set this when the defaults pass it in, otherwise it should\n        // stay as `undefined` so that it falls back to the default in the key manager.\n        if (_defaultOptions?.typeaheadDebounceInterval != null) {\n            this._typeaheadDebounceInterval = _defaultOptions.typeaheadDebounceInterval;\n        }\n        this._scrollStrategyFactory = scrollStrategyFactory;\n        this._scrollStrategy = this._scrollStrategyFactory();\n        this.tabIndex = parseInt(tabIndex) || 0;\n        // Force setter to be called in case id was not specified.\n        this.id = this.id;\n    }\n    /** Whether the select is focused. */\n    get focused() {\n        return this._focused || this._panelOpen;\n    }\n    /** Placeholder to be shown if no value has been selected. */\n    get placeholder() {\n        return this._placeholder;\n    }\n    set placeholder(value) {\n        this._placeholder = value;\n        this.stateChanges.next();\n    }\n    /** Whether the component is required. */\n    get required() {\n        return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;\n    }\n    set required(value) {\n        this._required = coerceBooleanProperty(value);\n        this.stateChanges.next();\n    }\n    /** Whether the user should be allowed to select multiple options. */\n    get multiple() {\n        return this._multiple;\n    }\n    set multiple(value) {\n        if (this._selectionModel && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatSelectDynamicMultipleError();\n        }\n        this._multiple = coerceBooleanProperty(value);\n    }\n    /** Whether to center the active option over the trigger. */\n    get disableOptionCentering() {\n        return this._disableOptionCentering;\n    }\n    set disableOptionCentering(value) {\n        this._disableOptionCentering = coerceBooleanProperty(value);\n    }\n    /**\n     * Function to compare the option values with the selected values. The first argument\n     * is a value from an option. The second is a value from the selection. A boolean\n     * should be returned.\n     */\n    get compareWith() {\n        return this._compareWith;\n    }\n    set compareWith(fn) {\n        if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n            throw getMatSelectNonFunctionValueError();\n        }\n        this._compareWith = fn;\n        if (this._selectionModel) {\n            // A different comparator means the selection could change.\n            this._initializeSelection();\n        }\n    }\n    /** Value of the select control. */\n    get value() {\n        return this._value;\n    }\n    set value(newValue) {\n        const hasAssigned = this._assignValue(newValue);\n        if (hasAssigned) {\n            this._onChange(newValue);\n        }\n    }\n    /** Time to wait in milliseconds after the last keystroke before moving focus to an item. */\n    get typeaheadDebounceInterval() {\n        return this._typeaheadDebounceInterval;\n    }\n    set typeaheadDebounceInterval(value) {\n        this._typeaheadDebounceInterval = coerceNumberProperty(value);\n    }\n    /** Unique id of the element. */\n    get id() {\n        return this._id;\n    }\n    set id(value) {\n        this._id = value || this._uid;\n        this.stateChanges.next();\n    }\n    ngOnInit() {\n        this._selectionModel = new SelectionModel(this.multiple);\n        this.stateChanges.next();\n        // We need `distinctUntilChanged` here, because some browsers will\n        // fire the animation end event twice for the same animation. See:\n        // https://github.com/angular/angular/issues/24084\n        this._panelDoneAnimatingStream\n            .pipe(distinctUntilChanged(), takeUntil(this._destroy))\n            .subscribe(() => this._panelDoneAnimating(this.panelOpen));\n    }\n    ngAfterContentInit() {\n        this._initKeyManager();\n        this._selectionModel.changed.pipe(takeUntil(this._destroy)).subscribe(event => {\n            event.added.forEach(option => option.select());\n            event.removed.forEach(option => option.deselect());\n        });\n        this.options.changes.pipe(startWith(null), takeUntil(this._destroy)).subscribe(() => {\n            this._resetOptions();\n            this._initializeSelection();\n        });\n    }\n    ngDoCheck() {\n        const newAriaLabelledby = this._getTriggerAriaLabelledby();\n        const ngControl = this.ngControl;\n        // We have to manage setting the `aria-labelledby` ourselves, because part of its value\n        // is computed as a result of a content query which can cause this binding to trigger a\n        // \"changed after checked\" error.\n        if (newAriaLabelledby !== this._triggerAriaLabelledBy) {\n            const element = this._elementRef.nativeElement;\n            this._triggerAriaLabelledBy = newAriaLabelledby;\n            if (newAriaLabelledby) {\n                element.setAttribute('aria-labelledby', newAriaLabelledby);\n            }\n            else {\n                element.removeAttribute('aria-labelledby');\n            }\n        }\n        if (ngControl) {\n            // The disabled state might go out of sync if the form group is swapped out. See #17860.\n            if (this._previousControl !== ngControl.control) {\n                if (this._previousControl !== undefined &&\n                    ngControl.disabled !== null &&\n                    ngControl.disabled !== this.disabled) {\n                    this.disabled = ngControl.disabled;\n                }\n                this._previousControl = ngControl.control;\n            }\n            this.updateErrorState();\n        }\n    }\n    ngOnChanges(changes) {\n        // Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let\n        // the parent form field know to run change detection when the disabled state changes.\n        if (changes['disabled'] || changes['userAriaDescribedBy']) {\n            this.stateChanges.next();\n        }\n        if (changes['typeaheadDebounceInterval'] && this._keyManager) {\n            this._keyManager.withTypeAhead(this._typeaheadDebounceInterval);\n        }\n    }\n    ngOnDestroy() {\n        this._destroy.next();\n        this._destroy.complete();\n        this.stateChanges.complete();\n    }\n    /** Toggles the overlay panel open or closed. */\n    toggle() {\n        this.panelOpen ? this.close() : this.open();\n    }\n    /** Opens the overlay panel. */\n    open() {\n        if (this._canOpen()) {\n            this._panelOpen = true;\n            this._keyManager.withHorizontalOrientation(null);\n            this._highlightCorrectOption();\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /** Closes the overlay panel and focuses the host element. */\n    close() {\n        if (this._panelOpen) {\n            this._panelOpen = false;\n            this._keyManager.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr');\n            this._changeDetectorRef.markForCheck();\n            this._onTouched();\n        }\n    }\n    /**\n     * Sets the select's value. Part of the ControlValueAccessor interface\n     * required to integrate with Angular's core forms API.\n     *\n     * @param value New value to be written to the model.\n     */\n    writeValue(value) {\n        this._assignValue(value);\n    }\n    /**\n     * Saves a callback function to be invoked when the select's value\n     * changes from user input. Part of the ControlValueAccessor interface\n     * required to integrate with Angular's core forms API.\n     *\n     * @param fn Callback to be triggered when the value changes.\n     */\n    registerOnChange(fn) {\n        this._onChange = fn;\n    }\n    /**\n     * Saves a callback function to be invoked when the select is blurred\n     * by the user. Part of the ControlValueAccessor interface required\n     * to integrate with Angular's core forms API.\n     *\n     * @param fn Callback to be triggered when the component has been touched.\n     */\n    registerOnTouched(fn) {\n        this._onTouched = fn;\n    }\n    /**\n     * Disables the select. Part of the ControlValueAccessor interface required\n     * to integrate with Angular's core forms API.\n     *\n     * @param isDisabled Sets whether the component is disabled.\n     */\n    setDisabledState(isDisabled) {\n        this.disabled = isDisabled;\n        this._changeDetectorRef.markForCheck();\n        this.stateChanges.next();\n    }\n    /** Whether or not the overlay panel is open. */\n    get panelOpen() {\n        return this._panelOpen;\n    }\n    /** The currently selected option. */\n    get selected() {\n        return this.multiple ? this._selectionModel?.selected || [] : this._selectionModel?.selected[0];\n    }\n    /** The value displayed in the trigger. */\n    get triggerValue() {\n        if (this.empty) {\n            return '';\n        }\n        if (this._multiple) {\n            const selectedOptions = this._selectionModel.selected.map(option => option.viewValue);\n            if (this._isRtl()) {\n                selectedOptions.reverse();\n            }\n            // TODO(crisbeto): delimiter should be configurable for proper localization.\n            return selectedOptions.join(', ');\n        }\n        return this._selectionModel.selected[0].viewValue;\n    }\n    /** Whether the element is in RTL mode. */\n    _isRtl() {\n        return this._dir ? this._dir.value === 'rtl' : false;\n    }\n    /** Handles all keydown events on the select. */\n    _handleKeydown(event) {\n        if (!this.disabled) {\n            this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);\n        }\n    }\n    /** Handles keyboard events while the select is closed. */\n    _handleClosedKeydown(event) {\n        const keyCode = event.keyCode;\n        const isArrowKey = keyCode === DOWN_ARROW ||\n            keyCode === UP_ARROW ||\n            keyCode === LEFT_ARROW ||\n            keyCode === RIGHT_ARROW;\n        const isOpenKey = keyCode === ENTER || keyCode === SPACE;\n        const manager = this._keyManager;\n        // Open the select on ALT + arrow key to match the native <select>\n        if ((!manager.isTyping() && isOpenKey && !hasModifierKey(event)) ||\n            ((this.multiple || event.altKey) && isArrowKey)) {\n            event.preventDefault(); // prevents the page from scrolling down when pressing space\n            this.open();\n        }\n        else if (!this.multiple) {\n            const previouslySelectedOption = this.selected;\n            manager.onKeydown(event);\n            const selectedOption = this.selected;\n            // Since the value has changed, we need to announce it ourselves.\n            if (selectedOption && previouslySelectedOption !== selectedOption) {\n                // We set a duration on the live announcement, because we want the live element to be\n                // cleared after a while so that users can't navigate to it using the arrow keys.\n                this._liveAnnouncer.announce(selectedOption.viewValue, 10000);\n            }\n        }\n    }\n    /** Handles keyboard events when the selected is open. */\n    _handleOpenKeydown(event) {\n        const manager = this._keyManager;\n        const keyCode = event.keyCode;\n        const isArrowKey = keyCode === DOWN_ARROW || keyCode === UP_ARROW;\n        const isTyping = manager.isTyping();\n        if (isArrowKey && event.altKey) {\n            // Close the select on ALT + arrow key to match the native <select>\n            event.preventDefault();\n            this.close();\n            // Don't do anything in this case if the user is typing,\n            // because the typing sequence can include the space key.\n        }\n        else if (!isTyping &&\n            (keyCode === ENTER || keyCode === SPACE) &&\n            manager.activeItem &&\n            !hasModifierKey(event)) {\n            event.preventDefault();\n            manager.activeItem._selectViaInteraction();\n        }\n        else if (!isTyping && this._multiple && keyCode === A && event.ctrlKey) {\n            event.preventDefault();\n            const hasDeselectedOptions = this.options.some(opt => !opt.disabled && !opt.selected);\n            this.options.forEach(option => {\n                if (!option.disabled) {\n                    hasDeselectedOptions ? option.select() : option.deselect();\n                }\n            });\n        }\n        else {\n            const previouslyFocusedIndex = manager.activeItemIndex;\n            manager.onKeydown(event);\n            if (this._multiple &&\n                isArrowKey &&\n                event.shiftKey &&\n                manager.activeItem &&\n                manager.activeItemIndex !== previouslyFocusedIndex) {\n                manager.activeItem._selectViaInteraction();\n            }\n        }\n    }\n    _onFocus() {\n        if (!this.disabled) {\n            this._focused = true;\n            this.stateChanges.next();\n        }\n    }\n    /**\n     * Calls the touched callback only if the panel is closed. Otherwise, the trigger will\n     * \"blur\" to the panel when it opens, causing a false positive.\n     */\n    _onBlur() {\n        this._focused = false;\n        if (!this.disabled && !this.panelOpen) {\n            this._onTouched();\n            this._changeDetectorRef.markForCheck();\n            this.stateChanges.next();\n        }\n    }\n    /**\n     * Callback that is invoked when the overlay panel has been attached.\n     */\n    _onAttached() {\n        this._overlayDir.positionChange.pipe(take(1)).subscribe(() => {\n            this._changeDetectorRef.detectChanges();\n            this._positioningSettled();\n        });\n    }\n    /** Returns the theme to be used on the panel. */\n    _getPanelTheme() {\n        return this._parentFormField ? `mat-${this._parentFormField.color}` : '';\n    }\n    /** Whether the select has a value. */\n    get empty() {\n        return !this._selectionModel || this._selectionModel.isEmpty();\n    }\n    _initializeSelection() {\n        // Defer setting the value in order to avoid the \"Expression\n        // has changed after it was checked\" errors from Angular.\n        Promise.resolve().then(() => {\n            if (this.ngControl) {\n                this._value = this.ngControl.value;\n            }\n            this._setSelectionByValue(this._value);\n            this.stateChanges.next();\n        });\n    }\n    /**\n     * Sets the selected option based on a value. If no option can be\n     * found with the designated value, the select trigger is cleared.\n     */\n    _setSelectionByValue(value) {\n        this._selectionModel.selected.forEach(option => option.setInactiveStyles());\n        this._selectionModel.clear();\n        if (this.multiple && value) {\n            if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n                throw getMatSelectNonArrayValueError();\n            }\n            value.forEach((currentValue) => this._selectOptionByValue(currentValue));\n            this._sortValues();\n        }\n        else {\n            const correspondingOption = this._selectOptionByValue(value);\n            // Shift focus to the active item. Note that we shouldn't do this in multiple\n            // mode, because we don't know what option the user interacted with last.\n            if (correspondingOption) {\n                this._keyManager.updateActiveItem(correspondingOption);\n            }\n            else if (!this.panelOpen) {\n                // Otherwise reset the highlighted option. Note that we only want to do this while\n                // closed, because doing it while open can shift the user's focus unnecessarily.\n                this._keyManager.updateActiveItem(-1);\n            }\n        }\n        this._changeDetectorRef.markForCheck();\n    }\n    /**\n     * Finds and selects and option based on its value.\n     * @returns Option that has the corresponding value.\n     */\n    _selectOptionByValue(value) {\n        const correspondingOption = this.options.find((option) => {\n            // Skip options that are already in the model. This allows us to handle cases\n            // where the same primitive value is selected multiple times.\n            if (this._selectionModel.isSelected(option)) {\n                return false;\n            }\n            try {\n                // Treat null as a special reset value.\n                return option.value != null && this._compareWith(option.value, value);\n            }\n            catch (error) {\n                if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                    // Notify developers of errors in their comparator.\n                    console.warn(error);\n                }\n                return false;\n            }\n        });\n        if (correspondingOption) {\n            this._selectionModel.select(correspondingOption);\n        }\n        return correspondingOption;\n    }\n    /** Assigns a specific value to the select. Returns whether the value has changed. */\n    _assignValue(newValue) {\n        // Always re-assign an array, because it might have been mutated.\n        if (newValue !== this._value || (this._multiple && Array.isArray(newValue))) {\n            if (this.options) {\n                this._setSelectionByValue(newValue);\n            }\n            this._value = newValue;\n            return true;\n        }\n        return false;\n    }\n    /** Sets up a key manager to listen to keyboard events on the overlay panel. */\n    _initKeyManager() {\n        this._keyManager = new ActiveDescendantKeyManager(this.options)\n            .withTypeAhead(this._typeaheadDebounceInterval)\n            .withVerticalOrientation()\n            .withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr')\n            .withHomeAndEnd()\n            .withAllowedModifierKeys(['shiftKey']);\n        this._keyManager.tabOut.pipe(takeUntil(this._destroy)).subscribe(() => {\n            if (this.panelOpen) {\n                // Select the active item when tabbing away. This is consistent with how the native\n                // select behaves. Note that we only want to do this in single selection mode.\n                if (!this.multiple && this._keyManager.activeItem) {\n                    this._keyManager.activeItem._selectViaInteraction();\n                }\n                // Restore focus to the trigger before closing. Ensures that the focus\n                // position won't be lost if the user got focus into the overlay.\n                this.focus();\n                this.close();\n            }\n        });\n        this._keyManager.change.pipe(takeUntil(this._destroy)).subscribe(() => {\n            if (this._panelOpen && this.panel) {\n                this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);\n            }\n            else if (!this._panelOpen && !this.multiple && this._keyManager.activeItem) {\n                this._keyManager.activeItem._selectViaInteraction();\n            }\n        });\n    }\n    /** Drops current option subscriptions and IDs and resets from scratch. */\n    _resetOptions() {\n        const changedOrDestroyed = merge(this.options.changes, this._destroy);\n        this.optionSelectionChanges.pipe(takeUntil(changedOrDestroyed)).subscribe(event => {\n            this._onSelect(event.source, event.isUserInput);\n            if (event.isUserInput && !this.multiple && this._panelOpen) {\n                this.close();\n                this.focus();\n            }\n        });\n        // Listen to changes in the internal state of the options and react accordingly.\n        // Handles cases like the labels of the selected options changing.\n        merge(...this.options.map(option => option._stateChanges))\n            .pipe(takeUntil(changedOrDestroyed))\n            .subscribe(() => {\n            this._changeDetectorRef.markForCheck();\n            this.stateChanges.next();\n        });\n    }\n    /** Invoked when an option is clicked. */\n    _onSelect(option, isUserInput) {\n        const wasSelected = this._selectionModel.isSelected(option);\n        if (option.value == null && !this._multiple) {\n            option.deselect();\n            this._selectionModel.clear();\n            if (this.value != null) {\n                this._propagateChanges(option.value);\n            }\n        }\n        else {\n            if (wasSelected !== option.selected) {\n                option.selected\n                    ? this._selectionModel.select(option)\n                    : this._selectionModel.deselect(option);\n            }\n            if (isUserInput) {\n                this._keyManager.setActiveItem(option);\n            }\n            if (this.multiple) {\n                this._sortValues();\n                if (isUserInput) {\n                    // In case the user selected the option with their mouse, we\n                    // want to restore focus back to the trigger, in order to\n                    // prevent the select keyboard controls from clashing with\n                    // the ones from `mat-option`.\n                    this.focus();\n                }\n            }\n        }\n        if (wasSelected !== this._selectionModel.isSelected(option)) {\n            this._propagateChanges();\n        }\n        this.stateChanges.next();\n    }\n    /** Sorts the selected values in the selected based on their order in the panel. */\n    _sortValues() {\n        if (this.multiple) {\n            const options = this.options.toArray();\n            this._selectionModel.sort((a, b) => {\n                return this.sortComparator\n                    ? this.sortComparator(a, b, options)\n                    : options.indexOf(a) - options.indexOf(b);\n            });\n            this.stateChanges.next();\n        }\n    }\n    /** Emits change event to set the model value. */\n    _propagateChanges(fallbackValue) {\n        let valueToEmit = null;\n        if (this.multiple) {\n            valueToEmit = this.selected.map(option => option.value);\n        }\n        else {\n            valueToEmit = this.selected ? this.selected.value : fallbackValue;\n        }\n        this._value = valueToEmit;\n        this.valueChange.emit(valueToEmit);\n        this._onChange(valueToEmit);\n        this.selectionChange.emit(this._getChangeEvent(valueToEmit));\n        this._changeDetectorRef.markForCheck();\n    }\n    /**\n     * Highlights the selected item. If no option is selected, it will highlight\n     * the first item instead.\n     */\n    _highlightCorrectOption() {\n        if (this._keyManager) {\n            if (this.empty) {\n                this._keyManager.setFirstItemActive();\n            }\n            else {\n                this._keyManager.setActiveItem(this._selectionModel.selected[0]);\n            }\n        }\n    }\n    /** Whether the panel is allowed to open. */\n    _canOpen() {\n        return !this._panelOpen && !this.disabled && this.options?.length > 0;\n    }\n    /** Focuses the select element. */\n    focus(options) {\n        this._elementRef.nativeElement.focus(options);\n    }\n    /** Gets the aria-labelledby for the select panel. */\n    _getPanelAriaLabelledby() {\n        if (this.ariaLabel) {\n            return null;\n        }\n        const labelId = this._parentFormField?.getLabelId();\n        const labelExpression = labelId ? labelId + ' ' : '';\n        return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;\n    }\n    /** Determines the `aria-activedescendant` to be set on the host. */\n    _getAriaActiveDescendant() {\n        if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {\n            return this._keyManager.activeItem.id;\n        }\n        return null;\n    }\n    /** Gets the aria-labelledby of the select component trigger. */\n    _getTriggerAriaLabelledby() {\n        if (this.ariaLabel) {\n            return null;\n        }\n        const labelId = this._parentFormField?.getLabelId();\n        let value = (labelId ? labelId + ' ' : '') + this._valueId;\n        if (this.ariaLabelledby) {\n            value += ' ' + this.ariaLabelledby;\n        }\n        return value;\n    }\n    /** Called when the overlay panel is done animating. */\n    _panelDoneAnimating(isOpen) {\n        this.openedChange.emit(isOpen);\n    }\n    /**\n     * Implemented as part of MatFormFieldControl.\n     * @docs-private\n     */\n    setDescribedByIds(ids) {\n        if (ids.length) {\n            this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));\n        }\n        else {\n            this._elementRef.nativeElement.removeAttribute('aria-describedby');\n        }\n    }\n    /**\n     * Implemented as part of MatFormFieldControl.\n     * @docs-private\n     */\n    onContainerClick() {\n        this.focus();\n        this.open();\n    }\n    /**\n     * Implemented as part of MatFormFieldControl.\n     * @docs-private\n     */\n    get shouldLabelFloat() {\n        return this._panelOpen || !this.empty || (this._focused && !!this._placeholder);\n    }\n}\n_MatSelectBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSelectBase, deps: [{ token: i1.ViewportRuler }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.ErrorStateMatcher }, { token: i0.ElementRef }, { token: i3.Directionality, optional: true }, { token: i4.NgForm, optional: true }, { token: i4.FormGroupDirective, optional: true }, { token: MAT_FORM_FIELD, optional: true }, { token: i4.NgControl, optional: true, self: true }, { token: 'tabindex', attribute: true }, { token: MAT_SELECT_SCROLL_STRATEGY }, { token: i5.LiveAnnouncer }, { token: MAT_SELECT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatSelectBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatSelectBase, inputs: { userAriaDescribedBy: [\"aria-describedby\", \"userAriaDescribedBy\"], panelClass: \"panelClass\", placeholder: \"placeholder\", required: \"required\", multiple: \"multiple\", disableOptionCentering: \"disableOptionCentering\", compareWith: \"compareWith\", value: \"value\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], errorStateMatcher: \"errorStateMatcher\", typeaheadDebounceInterval: \"typeaheadDebounceInterval\", sortComparator: \"sortComparator\", id: \"id\" }, outputs: { openedChange: \"openedChange\", _openedStream: \"opened\", _closedStream: \"closed\", selectionChange: \"selectionChange\", valueChange: \"valueChange\" }, viewQueries: [{ propertyName: \"trigger\", first: true, predicate: [\"trigger\"], descendants: true }, { propertyName: \"panel\", first: true, predicate: [\"panel\"], descendants: true }, { propertyName: \"_overlayDir\", first: true, predicate: CdkConnectedOverlay, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSelectBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i1.ViewportRuler }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.ErrorStateMatcher }, { type: i0.ElementRef }, { type: i3.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i4.NgForm, decorators: [{\n                    type: Optional\n                }] }, { type: i4.FormGroupDirective, decorators: [{\n                    type: Optional\n                }] }, { type: i6.MatFormField, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_FORM_FIELD]\n                }] }, { type: i4.NgControl, decorators: [{\n                    type: Self\n                }, {\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_SELECT_SCROLL_STRATEGY]\n                }] }, { type: i5.LiveAnnouncer }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_SELECT_CONFIG]\n                }] }]; }, propDecorators: { userAriaDescribedBy: [{\n                type: Input,\n                args: ['aria-describedby']\n            }], trigger: [{\n                type: ViewChild,\n                args: ['trigger']\n            }], panel: [{\n                type: ViewChild,\n                args: ['panel']\n            }], _overlayDir: [{\n                type: ViewChild,\n                args: [CdkConnectedOverlay]\n            }], panelClass: [{\n                type: Input\n            }], placeholder: [{\n                type: Input\n            }], required: [{\n                type: Input\n            }], multiple: [{\n                type: Input\n            }], disableOptionCentering: [{\n                type: Input\n            }], compareWith: [{\n                type: Input\n            }], value: [{\n                type: Input\n            }], ariaLabel: [{\n                type: Input,\n                args: ['aria-label']\n            }], ariaLabelledby: [{\n                type: Input,\n                args: ['aria-labelledby']\n            }], errorStateMatcher: [{\n                type: Input\n            }], typeaheadDebounceInterval: [{\n                type: Input\n            }], sortComparator: [{\n                type: Input\n            }], id: [{\n                type: Input\n            }], openedChange: [{\n                type: Output\n            }], _openedStream: [{\n                type: Output,\n                args: ['opened']\n            }], _closedStream: [{\n                type: Output,\n                args: ['closed']\n            }], selectionChange: [{\n                type: Output\n            }], valueChange: [{\n                type: Output\n            }] } });\nclass MatSelect extends _MatSelectBase {\n    constructor() {\n        super(...arguments);\n        /** The scroll position of the overlay panel, calculated to center the selected option. */\n        this._scrollTop = 0;\n        /** The cached font-size of the trigger element. */\n        this._triggerFontSize = 0;\n        /** The value of the select panel's transform-origin property. */\n        this._transformOrigin = 'top';\n        /**\n         * The y-offset of the overlay panel in relation to the trigger's top start corner.\n         * This must be adjusted to align the selected option text over the trigger text.\n         * when the panel opens. Will change based on the y-position of the selected option.\n         */\n        this._offsetY = 0;\n        this._positions = [\n            {\n                originX: 'start',\n                originY: 'top',\n                overlayX: 'start',\n                overlayY: 'top',\n            },\n            {\n                originX: 'start',\n                originY: 'bottom',\n                overlayX: 'start',\n                overlayY: 'bottom',\n            },\n        ];\n    }\n    /**\n     * Calculates the scroll position of the select's overlay panel.\n     *\n     * Attempts to center the selected option in the panel. If the option is\n     * too high or too low in the panel to be scrolled to the center, it clamps the\n     * scroll position to the min or max scroll positions respectively.\n     */\n    _calculateOverlayScroll(selectedIndex, scrollBuffer, maxScroll) {\n        const itemHeight = this._getItemHeight();\n        const optionOffsetFromScrollTop = itemHeight * selectedIndex;\n        const halfOptionHeight = itemHeight / 2;\n        // Starts at the optionOffsetFromScrollTop, which scrolls the option to the top of the\n        // scroll container, then subtracts the scroll buffer to scroll the option down to\n        // the center of the overlay panel. Half the option height must be re-added to the\n        // scrollTop so the option is centered based on its middle, not its top edge.\n        const optimalScrollPosition = optionOffsetFromScrollTop - scrollBuffer + halfOptionHeight;\n        return Math.min(Math.max(0, optimalScrollPosition), maxScroll);\n    }\n    ngOnInit() {\n        super.ngOnInit();\n        this._viewportRuler\n            .change()\n            .pipe(takeUntil(this._destroy))\n            .subscribe(() => {\n            if (this.panelOpen) {\n                this._triggerRect = this.trigger.nativeElement.getBoundingClientRect();\n                this._changeDetectorRef.markForCheck();\n            }\n        });\n    }\n    open() {\n        if (super._canOpen()) {\n            super.open();\n            this._triggerRect = this.trigger.nativeElement.getBoundingClientRect();\n            // Note: The computed font-size will be a string pixel value (e.g. \"16px\").\n            // `parseInt` ignores the trailing 'px' and converts this to a number.\n            this._triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement).fontSize || '0');\n            this._calculateOverlayPosition();\n            // Set the font size on the panel element once it exists.\n            this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n                if (this._triggerFontSize &&\n                    this._overlayDir.overlayRef &&\n                    this._overlayDir.overlayRef.overlayElement) {\n                    this._overlayDir.overlayRef.overlayElement.style.fontSize = `${this._triggerFontSize}px`;\n                }\n            });\n        }\n    }\n    /** Scrolls the active option into view. */\n    _scrollOptionIntoView(index) {\n        const labelCount = _countGroupLabelsBeforeOption(index, this.options, this.optionGroups);\n        const itemHeight = this._getItemHeight();\n        if (index === 0 && labelCount === 1) {\n            // If we've got one group label before the option and we're at the top option,\n            // scroll the list to the top. This is better UX than scrolling the list to the\n            // top of the option, because it allows the user to read the top group's label.\n            this.panel.nativeElement.scrollTop = 0;\n        }\n        else {\n            this.panel.nativeElement.scrollTop = _getOptionScrollPosition((index + labelCount) * itemHeight, itemHeight, this.panel.nativeElement.scrollTop, SELECT_PANEL_MAX_HEIGHT);\n        }\n    }\n    _positioningSettled() {\n        this._calculateOverlayOffsetX();\n        this.panel.nativeElement.scrollTop = this._scrollTop;\n    }\n    _panelDoneAnimating(isOpen) {\n        if (this.panelOpen) {\n            this._scrollTop = 0;\n        }\n        else {\n            this._overlayDir.offsetX = 0;\n            this._changeDetectorRef.markForCheck();\n        }\n        super._panelDoneAnimating(isOpen);\n    }\n    _getChangeEvent(value) {\n        return new MatSelectChange(this, value);\n    }\n    /**\n     * Sets the x-offset of the overlay panel in relation to the trigger's top start corner.\n     * This must be adjusted to align the selected option text over the trigger text when\n     * the panel opens. Will change based on LTR or RTL text direction. Note that the offset\n     * can't be calculated until the panel has been attached, because we need to know the\n     * content width in order to constrain the panel within the viewport.\n     */\n    _calculateOverlayOffsetX() {\n        const overlayRect = this._overlayDir.overlayRef.overlayElement.getBoundingClientRect();\n        const viewportSize = this._viewportRuler.getViewportSize();\n        const isRtl = this._isRtl();\n        const paddingWidth = this.multiple\n            ? SELECT_MULTIPLE_PANEL_PADDING_X + SELECT_PANEL_PADDING_X\n            : SELECT_PANEL_PADDING_X * 2;\n        let offsetX;\n        // Adjust the offset, depending on the option padding.\n        if (this.multiple) {\n            offsetX = SELECT_MULTIPLE_PANEL_PADDING_X;\n        }\n        else if (this.disableOptionCentering) {\n            offsetX = SELECT_PANEL_PADDING_X;\n        }\n        else {\n            let selected = this._selectionModel.selected[0] || this.options.first;\n            offsetX = selected && selected.group ? SELECT_PANEL_INDENT_PADDING_X : SELECT_PANEL_PADDING_X;\n        }\n        // Invert the offset in LTR.\n        if (!isRtl) {\n            offsetX *= -1;\n        }\n        // Determine how much the select overflows on each side.\n        const leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));\n        const rightOverflow = overlayRect.right + offsetX - viewportSize.width + (isRtl ? 0 : paddingWidth);\n        // If the element overflows on either side, reduce the offset to allow it to fit.\n        if (leftOverflow > 0) {\n            offsetX += leftOverflow + SELECT_PANEL_VIEWPORT_PADDING;\n        }\n        else if (rightOverflow > 0) {\n            offsetX -= rightOverflow + SELECT_PANEL_VIEWPORT_PADDING;\n        }\n        // Set the offset directly in order to avoid having to go through change detection and\n        // potentially triggering \"changed after it was checked\" errors. Round the value to avoid\n        // blurry content in some browsers.\n        this._overlayDir.offsetX = Math.round(offsetX);\n        this._overlayDir.overlayRef.updatePosition();\n    }\n    /**\n     * Calculates the y-offset of the select's overlay panel in relation to the\n     * top start corner of the trigger. It has to be adjusted in order for the\n     * selected option to be aligned over the trigger when the panel opens.\n     */\n    _calculateOverlayOffsetY(selectedIndex, scrollBuffer, maxScroll) {\n        const itemHeight = this._getItemHeight();\n        const optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;\n        const maxOptionsDisplayed = Math.floor(SELECT_PANEL_MAX_HEIGHT / itemHeight);\n        let optionOffsetFromPanelTop;\n        // Disable offset if requested by user by returning 0 as value to offset\n        if (this.disableOptionCentering) {\n            return 0;\n        }\n        if (this._scrollTop === 0) {\n            optionOffsetFromPanelTop = selectedIndex * itemHeight;\n        }\n        else if (this._scrollTop === maxScroll) {\n            const firstDisplayedIndex = this._getItemCount() - maxOptionsDisplayed;\n            const selectedDisplayIndex = selectedIndex - firstDisplayedIndex;\n            // The first item is partially out of the viewport. Therefore we need to calculate what\n            // portion of it is shown in the viewport and account for it in our offset.\n            let partialItemHeight = itemHeight - ((this._getItemCount() * itemHeight - SELECT_PANEL_MAX_HEIGHT) % itemHeight);\n            // Because the panel height is longer than the height of the options alone,\n            // there is always extra padding at the top or bottom of the panel. When\n            // scrolled to the very bottom, this padding is at the top of the panel and\n            // must be added to the offset.\n            optionOffsetFromPanelTop = selectedDisplayIndex * itemHeight + partialItemHeight;\n        }\n        else {\n            // If the option was scrolled to the middle of the panel using a scroll buffer,\n            // its offset will be the scroll buffer minus the half height that was added to\n            // center it.\n            optionOffsetFromPanelTop = scrollBuffer - itemHeight / 2;\n        }\n        // The final offset is the option's offset from the top, adjusted for the height difference,\n        // multiplied by -1 to ensure that the overlay moves in the correct direction up the page.\n        // The value is rounded to prevent some browsers from blurring the content.\n        return Math.round(optionOffsetFromPanelTop * -1 - optionHeightAdjustment);\n    }\n    /**\n     * Checks that the attempted overlay position will fit within the viewport.\n     * If it will not fit, tries to adjust the scroll position and the associated\n     * y-offset so the panel can open fully on-screen. If it still won't fit,\n     * sets the offset back to 0 to allow the fallback position to take over.\n     */\n    _checkOverlayWithinViewport(maxScroll) {\n        const itemHeight = this._getItemHeight();\n        const viewportSize = this._viewportRuler.getViewportSize();\n        const topSpaceAvailable = this._triggerRect.top - SELECT_PANEL_VIEWPORT_PADDING;\n        const bottomSpaceAvailable = viewportSize.height - this._triggerRect.bottom - SELECT_PANEL_VIEWPORT_PADDING;\n        const panelHeightTop = Math.abs(this._offsetY);\n        const totalPanelHeight = Math.min(this._getItemCount() * itemHeight, SELECT_PANEL_MAX_HEIGHT);\n        const panelHeightBottom = totalPanelHeight - panelHeightTop - this._triggerRect.height;\n        if (panelHeightBottom > bottomSpaceAvailable) {\n            this._adjustPanelUp(panelHeightBottom, bottomSpaceAvailable);\n        }\n        else if (panelHeightTop > topSpaceAvailable) {\n            this._adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll);\n        }\n        else {\n            this._transformOrigin = this._getOriginBasedOnOption();\n        }\n    }\n    /** Adjusts the overlay panel up to fit in the viewport. */\n    _adjustPanelUp(panelHeightBottom, bottomSpaceAvailable) {\n        // Browsers ignore fractional scroll offsets, so we need to round.\n        const distanceBelowViewport = Math.round(panelHeightBottom - bottomSpaceAvailable);\n        // Scrolls the panel up by the distance it was extending past the boundary, then\n        // adjusts the offset by that amount to move the panel up into the viewport.\n        this._scrollTop -= distanceBelowViewport;\n        this._offsetY -= distanceBelowViewport;\n        this._transformOrigin = this._getOriginBasedOnOption();\n        // If the panel is scrolled to the very top, it won't be able to fit the panel\n        // by scrolling, so set the offset to 0 to allow the fallback position to take\n        // effect.\n        if (this._scrollTop <= 0) {\n            this._scrollTop = 0;\n            this._offsetY = 0;\n            this._transformOrigin = `50% bottom 0px`;\n        }\n    }\n    /** Adjusts the overlay panel down to fit in the viewport. */\n    _adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll) {\n        // Browsers ignore fractional scroll offsets, so we need to round.\n        const distanceAboveViewport = Math.round(panelHeightTop - topSpaceAvailable);\n        // Scrolls the panel down by the distance it was extending past the boundary, then\n        // adjusts the offset by that amount to move the panel down into the viewport.\n        this._scrollTop += distanceAboveViewport;\n        this._offsetY += distanceAboveViewport;\n        this._transformOrigin = this._getOriginBasedOnOption();\n        // If the panel is scrolled to the very bottom, it won't be able to fit the\n        // panel by scrolling, so set the offset to 0 to allow the fallback position\n        // to take effect.\n        if (this._scrollTop >= maxScroll) {\n            this._scrollTop = maxScroll;\n            this._offsetY = 0;\n            this._transformOrigin = `50% top 0px`;\n            return;\n        }\n    }\n    /** Calculates the scroll position and x- and y-offsets of the overlay panel. */\n    _calculateOverlayPosition() {\n        const itemHeight = this._getItemHeight();\n        const items = this._getItemCount();\n        const panelHeight = Math.min(items * itemHeight, SELECT_PANEL_MAX_HEIGHT);\n        const scrollContainerHeight = items * itemHeight;\n        // The farthest the panel can be scrolled before it hits the bottom\n        const maxScroll = scrollContainerHeight - panelHeight;\n        // If no value is selected we open the popup to the first item.\n        let selectedOptionOffset;\n        if (this.empty) {\n            selectedOptionOffset = 0;\n        }\n        else {\n            selectedOptionOffset = Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]), 0);\n        }\n        selectedOptionOffset += _countGroupLabelsBeforeOption(selectedOptionOffset, this.options, this.optionGroups);\n        // We must maintain a scroll buffer so the selected option will be scrolled to the\n        // center of the overlay panel rather than the top.\n        const scrollBuffer = panelHeight / 2;\n        this._scrollTop = this._calculateOverlayScroll(selectedOptionOffset, scrollBuffer, maxScroll);\n        this._offsetY = this._calculateOverlayOffsetY(selectedOptionOffset, scrollBuffer, maxScroll);\n        this._checkOverlayWithinViewport(maxScroll);\n    }\n    /** Sets the transform origin point based on the selected option. */\n    _getOriginBasedOnOption() {\n        const itemHeight = this._getItemHeight();\n        const optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;\n        const originY = Math.abs(this._offsetY) - optionHeightAdjustment + itemHeight / 2;\n        return `50% ${originY}px 0px`;\n    }\n    /** Calculates the height of the select's options. */\n    _getItemHeight() {\n        return this._triggerFontSize * SELECT_ITEM_HEIGHT_EM;\n    }\n    /** Calculates the amount of items in the select. This includes options and group labels. */\n    _getItemCount() {\n        return this.options.length + this.optionGroups.length;\n    }\n}\nMatSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSelect, selector: \"mat-select\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { attributes: { \"role\": \"combobox\", \"aria-autocomplete\": \"none\", \"aria-haspopup\": \"true\" }, listeners: { \"keydown\": \"_handleKeydown($event)\", \"focus\": \"_onFocus()\", \"blur\": \"_onBlur()\" }, properties: { \"attr.id\": \"id\", \"attr.tabindex\": \"tabIndex\", \"attr.aria-controls\": \"panelOpen ? id + \\\"-panel\\\" : null\", \"attr.aria-expanded\": \"panelOpen\", \"attr.aria-label\": \"ariaLabel || null\", \"attr.aria-required\": \"required.toString()\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.aria-invalid\": \"errorState\", \"attr.aria-activedescendant\": \"_getAriaActiveDescendant()\", \"class.mat-select-disabled\": \"disabled\", \"class.mat-select-invalid\": \"errorState\", \"class.mat-select-required\": \"required\", \"class.mat-select-empty\": \"empty\", \"class.mat-select-multiple\": \"multiple\" }, classAttribute: \"mat-select\" }, providers: [\n        { provide: MatFormFieldControl, useExisting: MatSelect },\n        { provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },\n    ], queries: [{ propertyName: \"customTrigger\", first: true, predicate: MAT_SELECT_TRIGGER, descendants: true }, { propertyName: \"options\", predicate: MatOption, descendants: true }, { propertyName: \"optionGroups\", predicate: MAT_OPTGROUP, descendants: true }], exportAs: [\"matSelect\"], usesInheritance: true, ngImport: i0, template: \"<!--\\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\\n While aria-owns is not required for the ARIA 1.2 `role=\\\"combobox\\\"` interaction pattern,\\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model=\\\"true\\\"`\\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\\n VoiceOver from \\\"seeing\\\" the select's listbox overlay for aria-activedescendant.\\n Using `aria-owns` re-parents the select overlay so that it works again.\\n See https://github.com/angular/components/issues/20694\\n-->\\n<div cdk-overlay-origin\\n     [attr.aria-owns]=\\\"panelOpen ? id + '-panel' : null\\\"\\n     class=\\\"mat-select-trigger\\\"\\n     (click)=\\\"toggle()\\\"\\n     #origin=\\\"cdkOverlayOrigin\\\"\\n     #trigger>\\n  <div class=\\\"mat-select-value\\\" [ngSwitch]=\\\"empty\\\" [attr.id]=\\\"_valueId\\\">\\n    <span class=\\\"mat-select-placeholder mat-select-min-line\\\" *ngSwitchCase=\\\"true\\\">{{placeholder}}</span>\\n    <span class=\\\"mat-select-value-text\\\" *ngSwitchCase=\\\"false\\\" [ngSwitch]=\\\"!!customTrigger\\\">\\n      <span class=\\\"mat-select-min-line\\\" *ngSwitchDefault>{{triggerValue}}</span>\\n      <ng-content select=\\\"mat-select-trigger\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n    </span>\\n  </div>\\n\\n  <div class=\\\"mat-select-arrow-wrapper\\\"><div class=\\\"mat-select-arrow\\\"></div></div>\\n</div>\\n\\n<ng-template\\n  cdk-connected-overlay\\n  cdkConnectedOverlayLockPosition\\n  cdkConnectedOverlayHasBackdrop\\n  cdkConnectedOverlayBackdropClass=\\\"cdk-overlay-transparent-backdrop\\\"\\n  [cdkConnectedOverlayPanelClass]=\\\"_overlayPanelClass\\\"\\n  [cdkConnectedOverlayScrollStrategy]=\\\"_scrollStrategy\\\"\\n  [cdkConnectedOverlayOrigin]=\\\"origin\\\"\\n  [cdkConnectedOverlayOpen]=\\\"panelOpen\\\"\\n  [cdkConnectedOverlayPositions]=\\\"_positions\\\"\\n  [cdkConnectedOverlayMinWidth]=\\\"_triggerRect?.width!\\\"\\n  [cdkConnectedOverlayOffsetY]=\\\"_offsetY\\\"\\n  (backdropClick)=\\\"close()\\\"\\n  (attach)=\\\"_onAttached()\\\"\\n  (detach)=\\\"close()\\\">\\n  <div class=\\\"mat-select-panel-wrap\\\" [@transformPanelWrap]>\\n    <div\\n      #panel\\n      role=\\\"listbox\\\"\\n      tabindex=\\\"-1\\\"\\n      class=\\\"mat-select-panel {{ _getPanelTheme() }}\\\"\\n      [attr.id]=\\\"id + '-panel'\\\"\\n      [attr.aria-multiselectable]=\\\"multiple\\\"\\n      [attr.aria-label]=\\\"ariaLabel || null\\\"\\n      [attr.aria-labelledby]=\\\"_getPanelAriaLabelledby()\\\"\\n      [ngClass]=\\\"panelClass\\\"\\n      [@transformPanel]=\\\"multiple ? 'showing-multiple' : 'showing'\\\"\\n      (@transformPanel.done)=\\\"_panelDoneAnimatingStream.next($event.toState)\\\"\\n      [style.transformOrigin]=\\\"_transformOrigin\\\"\\n      [style.font-size.px]=\\\"_triggerFontSize\\\"\\n      (keydown)=\\\"_handleKeydown($event)\\\">\\n      <ng-content></ng-content>\\n    </div>\\n  </div>\\n</ng-template>\\n\", styles: [\".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:\\\" \\\";white-space:pre;width:1px;display:inline-block;visibility:hidden}\"], dependencies: [{ kind: \"directive\", type: i7.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i7.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { kind: \"directive\", type: i7.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { kind: \"directive\", type: i7.NgSwitchDefault, selector: \"[ngSwitchDefault]\" }, { kind: \"directive\", type: i8.CdkConnectedOverlay, selector: \"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]\", inputs: [\"cdkConnectedOverlayOrigin\", \"cdkConnectedOverlayPositions\", \"cdkConnectedOverlayPositionStrategy\", \"cdkConnectedOverlayOffsetX\", \"cdkConnectedOverlayOffsetY\", \"cdkConnectedOverlayWidth\", \"cdkConnectedOverlayHeight\", \"cdkConnectedOverlayMinWidth\", \"cdkConnectedOverlayMinHeight\", \"cdkConnectedOverlayBackdropClass\", \"cdkConnectedOverlayPanelClass\", \"cdkConnectedOverlayViewportMargin\", \"cdkConnectedOverlayScrollStrategy\", \"cdkConnectedOverlayOpen\", \"cdkConnectedOverlayDisableClose\", \"cdkConnectedOverlayTransformOriginOn\", \"cdkConnectedOverlayHasBackdrop\", \"cdkConnectedOverlayLockPosition\", \"cdkConnectedOverlayFlexibleDimensions\", \"cdkConnectedOverlayGrowAfterOpen\", \"cdkConnectedOverlayPush\"], outputs: [\"backdropClick\", \"positionChange\", \"attach\", \"detach\", \"overlayKeydown\", \"overlayOutsideClick\"], exportAs: [\"cdkConnectedOverlay\"] }, { kind: \"directive\", type: i8.CdkOverlayOrigin, selector: \"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]\", exportAs: [\"cdkOverlayOrigin\"] }], animations: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelect, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-select', exportAs: 'matSelect', inputs: ['disabled', 'disableRipple', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {\n                        'role': 'combobox',\n                        'aria-autocomplete': 'none',\n                        // TODO(crisbeto): the value for aria-haspopup should be `listbox`, but currently it's difficult\n                        // to sync into Google, because of an outdated automated a11y check which flags it as an invalid\n                        // value. At some point we should try to switch it back to being `listbox`.\n                        'aria-haspopup': 'true',\n                        'class': 'mat-select',\n                        '[attr.id]': 'id',\n                        '[attr.tabindex]': 'tabIndex',\n                        '[attr.aria-controls]': 'panelOpen ? id + \"-panel\" : null',\n                        '[attr.aria-expanded]': 'panelOpen',\n                        '[attr.aria-label]': 'ariaLabel || null',\n                        '[attr.aria-required]': 'required.toString()',\n                        '[attr.aria-disabled]': 'disabled.toString()',\n                        '[attr.aria-invalid]': 'errorState',\n                        '[attr.aria-activedescendant]': '_getAriaActiveDescendant()',\n                        '[class.mat-select-disabled]': 'disabled',\n                        '[class.mat-select-invalid]': 'errorState',\n                        '[class.mat-select-required]': 'required',\n                        '[class.mat-select-empty]': 'empty',\n                        '[class.mat-select-multiple]': 'multiple',\n                        '(keydown)': '_handleKeydown($event)',\n                        '(focus)': '_onFocus()',\n                        '(blur)': '_onBlur()',\n                    }, animations: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel], providers: [\n                        { provide: MatFormFieldControl, useExisting: MatSelect },\n                        { provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },\n                    ], template: \"<!--\\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\\n While aria-owns is not required for the ARIA 1.2 `role=\\\"combobox\\\"` interaction pattern,\\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model=\\\"true\\\"`\\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\\n VoiceOver from \\\"seeing\\\" the select's listbox overlay for aria-activedescendant.\\n Using `aria-owns` re-parents the select overlay so that it works again.\\n See https://github.com/angular/components/issues/20694\\n-->\\n<div cdk-overlay-origin\\n     [attr.aria-owns]=\\\"panelOpen ? id + '-panel' : null\\\"\\n     class=\\\"mat-select-trigger\\\"\\n     (click)=\\\"toggle()\\\"\\n     #origin=\\\"cdkOverlayOrigin\\\"\\n     #trigger>\\n  <div class=\\\"mat-select-value\\\" [ngSwitch]=\\\"empty\\\" [attr.id]=\\\"_valueId\\\">\\n    <span class=\\\"mat-select-placeholder mat-select-min-line\\\" *ngSwitchCase=\\\"true\\\">{{placeholder}}</span>\\n    <span class=\\\"mat-select-value-text\\\" *ngSwitchCase=\\\"false\\\" [ngSwitch]=\\\"!!customTrigger\\\">\\n      <span class=\\\"mat-select-min-line\\\" *ngSwitchDefault>{{triggerValue}}</span>\\n      <ng-content select=\\\"mat-select-trigger\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n    </span>\\n  </div>\\n\\n  <div class=\\\"mat-select-arrow-wrapper\\\"><div class=\\\"mat-select-arrow\\\"></div></div>\\n</div>\\n\\n<ng-template\\n  cdk-connected-overlay\\n  cdkConnectedOverlayLockPosition\\n  cdkConnectedOverlayHasBackdrop\\n  cdkConnectedOverlayBackdropClass=\\\"cdk-overlay-transparent-backdrop\\\"\\n  [cdkConnectedOverlayPanelClass]=\\\"_overlayPanelClass\\\"\\n  [cdkConnectedOverlayScrollStrategy]=\\\"_scrollStrategy\\\"\\n  [cdkConnectedOverlayOrigin]=\\\"origin\\\"\\n  [cdkConnectedOverlayOpen]=\\\"panelOpen\\\"\\n  [cdkConnectedOverlayPositions]=\\\"_positions\\\"\\n  [cdkConnectedOverlayMinWidth]=\\\"_triggerRect?.width!\\\"\\n  [cdkConnectedOverlayOffsetY]=\\\"_offsetY\\\"\\n  (backdropClick)=\\\"close()\\\"\\n  (attach)=\\\"_onAttached()\\\"\\n  (detach)=\\\"close()\\\">\\n  <div class=\\\"mat-select-panel-wrap\\\" [@transformPanelWrap]>\\n    <div\\n      #panel\\n      role=\\\"listbox\\\"\\n      tabindex=\\\"-1\\\"\\n      class=\\\"mat-select-panel {{ _getPanelTheme() }}\\\"\\n      [attr.id]=\\\"id + '-panel'\\\"\\n      [attr.aria-multiselectable]=\\\"multiple\\\"\\n      [attr.aria-label]=\\\"ariaLabel || null\\\"\\n      [attr.aria-labelledby]=\\\"_getPanelAriaLabelledby()\\\"\\n      [ngClass]=\\\"panelClass\\\"\\n      [@transformPanel]=\\\"multiple ? 'showing-multiple' : 'showing'\\\"\\n      (@transformPanel.done)=\\\"_panelDoneAnimatingStream.next($event.toState)\\\"\\n      [style.transformOrigin]=\\\"_transformOrigin\\\"\\n      [style.font-size.px]=\\\"_triggerFontSize\\\"\\n      (keydown)=\\\"_handleKeydown($event)\\\">\\n      <ng-content></ng-content>\\n    </div>\\n  </div>\\n</ng-template>\\n\", styles: [\".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:\\\" \\\";white-space:pre;width:1px;display:inline-block;visibility:hidden}\"] }]\n        }], propDecorators: { options: [{\n                type: ContentChildren,\n                args: [MatOption, { descendants: true }]\n            }], optionGroups: [{\n                type: ContentChildren,\n                args: [MAT_OPTGROUP, { descendants: true }]\n            }], customTrigger: [{\n                type: ContentChild,\n                args: [MAT_SELECT_TRIGGER]\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.io/license\n */\nclass MatSelectModule {\n}\nMatSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectModule, declarations: [MatSelect, MatSelectTrigger], imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule], exports: [CdkScrollableModule,\n        MatFormFieldModule,\n        MatSelect,\n        MatSelectTrigger,\n        MatOptionModule,\n        MatCommonModule] });\nMatSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectModule, providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER], imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule, CdkScrollableModule,\n        MatFormFieldModule,\n        MatOptionModule,\n        MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSelectModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule],\n                    exports: [\n                        CdkScrollableModule,\n                        MatFormFieldModule,\n                        MatSelect,\n                        MatSelectTrigger,\n                        MatOptionModule,\n                        MatCommonModule,\n                    ],\n                    declarations: [MatSelect, MatSelectTrigger],\n                    providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SELECT_CONFIG, MAT_SELECT_SCROLL_STRATEGY, MAT_SELECT_SCROLL_STRATEGY_PROVIDER, MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY, MAT_SELECT_TRIGGER, MatSelect, MatSelectChange, MatSelectModule, MatSelectTrigger, _MatSelectBase, matSelectAnimations };\n","import * as i3 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Directive, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Inject, Optional, ViewChild, NgModule } from '@angular/core';\nimport * as i2 from '@angular/material/core';\nimport { mixinTabIndex, mixinColor, mixinDisableRipple, mixinDisabled, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport * as i1 from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxRequiredValidator } from '@angular/forms';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\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.io/license\n */\n/** Injection token to be used to override the default options for `mat-slide-toggle`. */\nconst MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS = new InjectionToken('mat-slide-toggle-default-options', {\n    providedIn: 'root',\n    factory: () => ({ disableToggleValue: 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.io/license\n */\n// Increasing integer for generating unique ids for slide-toggle components.\nlet nextUniqueId = 0;\n/** @docs-private */\nconst MAT_SLIDE_TOGGLE_VALUE_ACCESSOR = {\n    provide: NG_VALUE_ACCESSOR,\n    useExisting: forwardRef(() => MatSlideToggle),\n    multi: true,\n};\n/** Change event object emitted by a MatSlideToggle. */\nclass MatSlideToggleChange {\n    constructor(\n    /** The source MatSlideToggle of the event. */\n    source, \n    /** The new `checked` value of the MatSlideToggle. */\n    checked) {\n        this.source = source;\n        this.checked = checked;\n    }\n}\n// Boilerplate for applying mixins to MatSlideToggle.\n/** @docs-private */\nconst _MatSlideToggleMixinBase = mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n}))));\nclass _MatSlideToggleBase extends _MatSlideToggleMixinBase {\n    constructor(elementRef, _focusMonitor, _changeDetectorRef, tabIndex, defaults, animationMode, idPrefix) {\n        super(elementRef);\n        this._focusMonitor = _focusMonitor;\n        this._changeDetectorRef = _changeDetectorRef;\n        this.defaults = defaults;\n        this._onChange = (_) => { };\n        this._onTouched = () => { };\n        this._required = false;\n        this._checked = false;\n        /** Name value will be applied to the input element if present. */\n        this.name = null;\n        /** Whether the label should appear after or before the slide-toggle. Defaults to 'after'. */\n        this.labelPosition = 'after';\n        /** Used to set the aria-label attribute on the underlying input element. */\n        this.ariaLabel = null;\n        /** Used to set the aria-labelledby attribute on the underlying input element. */\n        this.ariaLabelledby = null;\n        /** An event will be dispatched each time the slide-toggle changes its value. */\n        this.change = new EventEmitter();\n        /**\n         * An event will be dispatched each time the slide-toggle input is toggled.\n         * This event is always emitted when the user toggles the slide toggle, but this does not mean\n         * the slide toggle's value has changed.\n         */\n        this.toggleChange = new EventEmitter();\n        this.tabIndex = parseInt(tabIndex) || 0;\n        this.color = this.defaultColor = defaults.color || 'accent';\n        this._noopAnimations = animationMode === 'NoopAnimations';\n        this.id = this._uniqueId = `${idPrefix}${++nextUniqueId}`;\n    }\n    /** Whether the slide-toggle is required. */\n    get required() {\n        return this._required;\n    }\n    set required(value) {\n        this._required = coerceBooleanProperty(value);\n    }\n    /** Whether the slide-toggle element is checked or not. */\n    get checked() {\n        return this._checked;\n    }\n    set checked(value) {\n        this._checked = coerceBooleanProperty(value);\n        this._changeDetectorRef.markForCheck();\n    }\n    /** Returns the unique id for the visual hidden input. */\n    get inputId() {\n        return `${this.id || this._uniqueId}-input`;\n    }\n    ngAfterContentInit() {\n        this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {\n            if (focusOrigin === 'keyboard' || focusOrigin === 'program') {\n                this._focused = true;\n            }\n            else if (!focusOrigin) {\n                // When a focused element becomes disabled, the browser *immediately* fires a blur event.\n                // Angular does not expect events to be raised during change detection, so any state\n                // change (such as a form control's ng-touched) will cause a changed-after-checked error.\n                // See https://github.com/angular/angular/issues/17793. To work around this, we defer\n                // telling the form control it has been touched until the next tick.\n                Promise.resolve().then(() => {\n                    this._focused = false;\n                    this._onTouched();\n                    this._changeDetectorRef.markForCheck();\n                });\n            }\n        });\n    }\n    ngOnDestroy() {\n        this._focusMonitor.stopMonitoring(this._elementRef);\n    }\n    /** Implemented as part of ControlValueAccessor. */\n    writeValue(value) {\n        this.checked = !!value;\n    }\n    /** Implemented as part of ControlValueAccessor. */\n    registerOnChange(fn) {\n        this._onChange = fn;\n    }\n    /** Implemented as part of ControlValueAccessor. */\n    registerOnTouched(fn) {\n        this._onTouched = fn;\n    }\n    /** Implemented as a part of ControlValueAccessor. */\n    setDisabledState(isDisabled) {\n        this.disabled = isDisabled;\n        this._changeDetectorRef.markForCheck();\n    }\n    /** Toggles the checked state of the slide-toggle. */\n    toggle() {\n        this.checked = !this.checked;\n        this._onChange(this.checked);\n    }\n    /**\n     * Emits a change event on the `change` output. Also notifies the FormControl about the change.\n     */\n    _emitChangeEvent() {\n        this._onChange(this.checked);\n        this.change.emit(this._createChangeEvent(this.checked));\n    }\n}\n_MatSlideToggleBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatSlideToggleBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatSlideToggleBase, inputs: { name: \"name\", id: \"id\", labelPosition: \"labelPosition\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], required: \"required\", checked: \"checked\" }, outputs: { change: \"change\", toggleChange: \"toggleChange\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: i0.ChangeDetectorRef }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; }, propDecorators: { name: [{\n                type: Input\n            }], id: [{\n                type: Input\n            }], labelPosition: [{\n                type: Input\n            }], ariaLabel: [{\n                type: Input,\n                args: ['aria-label']\n            }], ariaLabelledby: [{\n                type: Input,\n                args: ['aria-labelledby']\n            }], ariaDescribedby: [{\n                type: Input,\n                args: ['aria-describedby']\n            }], required: [{\n                type: Input\n            }], checked: [{\n                type: Input\n            }], change: [{\n                type: Output\n            }], toggleChange: [{\n                type: Output\n            }] } });\n/** Represents a slidable \"switch\" toggle that can be moved between on and off. */\nclass MatSlideToggle extends _MatSlideToggleBase {\n    constructor(elementRef, focusMonitor, changeDetectorRef, tabIndex, defaults, animationMode) {\n        super(elementRef, focusMonitor, changeDetectorRef, tabIndex, defaults, animationMode, 'mat-slide-toggle-');\n    }\n    _createChangeEvent(isChecked) {\n        return new MatSlideToggleChange(this, isChecked);\n    }\n    /** Method being called whenever the underlying input emits a change event. */\n    _onChangeEvent(event) {\n        // We always have to stop propagation on the change event.\n        // Otherwise the change event, from the input element, will bubble up and\n        // emit its event object to the component's `change` output.\n        event.stopPropagation();\n        this.toggleChange.emit();\n        // When the slide toggle's config disables toggle change event by setting\n        // `disableToggleValue: true`, the slide toggle's value does not change, and the\n        // checked state of the underlying input needs to be changed back.\n        if (this.defaults.disableToggleValue) {\n            this._inputElement.nativeElement.checked = this.checked;\n            return;\n        }\n        // Sync the value from the underlying input element with the component instance.\n        this.checked = this._inputElement.nativeElement.checked;\n        // Emit our custom change event only if the underlying input emitted one. This ensures that\n        // there is no change event, when the checked state changes programmatically.\n        this._emitChangeEvent();\n    }\n    /** Method being called whenever the slide-toggle has been clicked. */\n    _onInputClick(event) {\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `slide-toggle` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n    }\n    /** Focuses the slide-toggle. */\n    focus(options, origin) {\n        if (origin) {\n            this._focusMonitor.focusVia(this._inputElement, origin, options);\n        }\n        else {\n            this._inputElement.nativeElement.focus(options);\n        }\n    }\n    /** Method being called whenever the label text changes. */\n    _onLabelTextChange() {\n        // Since the event of the `cdkObserveContent` directive runs outside of the zone, the\n        // slide-toggle component will be only marked for check, but no actual change detection runs\n        // automatically. Instead of going back into the zone in order to trigger a change detection\n        // which causes *all* components to be checked (if explicitly marked or not using OnPush),\n        // we only trigger an explicit change detection for the slide-toggle view and its children.\n        this._changeDetectorRef.detectChanges();\n    }\n}\nMatSlideToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggle, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }, { token: MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatSlideToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSlideToggle, selector: \"mat-slide-toggle\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", color: \"color\", tabIndex: \"tabIndex\" }, host: { properties: { \"id\": \"id\", \"attr.tabindex\": \"null\", \"attr.aria-label\": \"null\", \"attr.aria-labelledby\": \"null\", \"attr.name\": \"null\", \"class.mat-checked\": \"checked\", \"class.mat-disabled\": \"disabled\", \"class.mat-slide-toggle-label-before\": \"labelPosition == \\\"before\\\"\", \"class._mat-animation-noopable\": \"_noopAnimations\" }, classAttribute: \"mat-slide-toggle\" }, providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], viewQueries: [{ propertyName: \"_inputElement\", first: true, predicate: [\"input\"], descendants: true }], exportAs: [\"matSlideToggle\"], usesInheritance: true, ngImport: i0, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-slide-toggle-label\\\" #label>\\n  <span class=\\\"mat-slide-toggle-bar\\\"\\n       [class.mat-slide-toggle-bar-no-side-margin]=\\\"!labelContent.textContent || !labelContent.textContent.trim()\\\">\\n\\n    <input #input class=\\\"mat-slide-toggle-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n           role=\\\"switch\\\"\\n           [id]=\\\"inputId\\\"\\n           [required]=\\\"required\\\"\\n           [tabIndex]=\\\"tabIndex\\\"\\n           [checked]=\\\"checked\\\"\\n           [disabled]=\\\"disabled\\\"\\n           [attr.name]=\\\"name\\\"\\n           [attr.aria-checked]=\\\"checked\\\"\\n           [attr.aria-label]=\\\"ariaLabel\\\"\\n           [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n           [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n           (change)=\\\"_onChangeEvent($event)\\\"\\n           (click)=\\\"_onInputClick($event)\\\">\\n\\n    <span class=\\\"mat-slide-toggle-thumb-container\\\">\\n      <span class=\\\"mat-slide-toggle-thumb\\\"></span>\\n      <span class=\\\"mat-slide-toggle-ripple mat-focus-indicator\\\" mat-ripple\\n           [matRippleTrigger]=\\\"label\\\"\\n           [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n           [matRippleCentered]=\\\"true\\\"\\n           [matRippleRadius]=\\\"20\\\"\\n           [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n        <span class=\\\"mat-ripple-element mat-slide-toggle-persistent-ripple\\\"></span>\\n      </span>\\n    </span>\\n\\n  </span>\\n\\n  <span class=\\\"mat-slide-toggle-content\\\" #labelContent (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n    <!-- Add an invisible span so JAWS can read the label -->\\n    <span style=\\\"display:none\\\">&nbsp;</span>\\n    <ng-content></ng-content>\\n  </span>\\n</label>\\n\", styles: [\".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:\\\"\\\"}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}\"], dependencies: [{ kind: \"directive\", type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i3.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggle, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-slide-toggle', exportAs: 'matSlideToggle', host: {\n                        'class': 'mat-slide-toggle',\n                        '[id]': 'id',\n                        // Needs to be removed since it causes some a11y issues (see #21266).\n                        '[attr.tabindex]': 'null',\n                        '[attr.aria-label]': 'null',\n                        '[attr.aria-labelledby]': 'null',\n                        '[attr.name]': 'null',\n                        '[class.mat-checked]': 'checked',\n                        '[class.mat-disabled]': 'disabled',\n                        '[class.mat-slide-toggle-label-before]': 'labelPosition == \"before\"',\n                        '[class._mat-animation-noopable]': '_noopAnimations',\n                    }, providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-slide-toggle-label\\\" #label>\\n  <span class=\\\"mat-slide-toggle-bar\\\"\\n       [class.mat-slide-toggle-bar-no-side-margin]=\\\"!labelContent.textContent || !labelContent.textContent.trim()\\\">\\n\\n    <input #input class=\\\"mat-slide-toggle-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n           role=\\\"switch\\\"\\n           [id]=\\\"inputId\\\"\\n           [required]=\\\"required\\\"\\n           [tabIndex]=\\\"tabIndex\\\"\\n           [checked]=\\\"checked\\\"\\n           [disabled]=\\\"disabled\\\"\\n           [attr.name]=\\\"name\\\"\\n           [attr.aria-checked]=\\\"checked\\\"\\n           [attr.aria-label]=\\\"ariaLabel\\\"\\n           [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n           [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n           (change)=\\\"_onChangeEvent($event)\\\"\\n           (click)=\\\"_onInputClick($event)\\\">\\n\\n    <span class=\\\"mat-slide-toggle-thumb-container\\\">\\n      <span class=\\\"mat-slide-toggle-thumb\\\"></span>\\n      <span class=\\\"mat-slide-toggle-ripple mat-focus-indicator\\\" mat-ripple\\n           [matRippleTrigger]=\\\"label\\\"\\n           [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n           [matRippleCentered]=\\\"true\\\"\\n           [matRippleRadius]=\\\"20\\\"\\n           [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n        <span class=\\\"mat-ripple-element mat-slide-toggle-persistent-ripple\\\"></span>\\n      </span>\\n    </span>\\n\\n  </span>\\n\\n  <span class=\\\"mat-slide-toggle-content\\\" #labelContent (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n    <!-- Add an invisible span so JAWS can read the label -->\\n    <span style=\\\"display:none\\\">&nbsp;</span>\\n    <ng-content></ng-content>\\n  </span>\\n</label>\\n\", styles: [\".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:\\\"\\\"}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { _inputElement: [{\n                type: ViewChild,\n                args: ['input']\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.io/license\n */\nconst MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR = {\n    provide: NG_VALIDATORS,\n    useExisting: forwardRef(() => MatSlideToggleRequiredValidator),\n    multi: true,\n};\n/**\n * Validator for Material slide-toggle components with the required attribute in a\n * template-driven form. The default validator for required form controls asserts\n * that the control value is not undefined but that is not appropriate for a slide-toggle\n * where the value is always defined.\n *\n * Required slide-toggle form controls are valid when checked.\n */\nclass MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {\n}\nMatSlideToggleRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatSlideToggleRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSlideToggleRequiredValidator, selector: \"mat-slide-toggle[required][formControlName],\\n             mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]\", providers: [MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleRequiredValidator, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: `mat-slide-toggle[required][formControlName],\n             mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]`,\n                    providers: [MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR],\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.io/license\n */\n/** This module is used by both original and MDC-based slide-toggle implementations. */\nclass _MatSlideToggleRequiredValidatorModule {\n}\n_MatSlideToggleRequiredValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n_MatSlideToggleRequiredValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, declarations: [MatSlideToggleRequiredValidator], exports: [MatSlideToggleRequiredValidator] });\n_MatSlideToggleRequiredValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [MatSlideToggleRequiredValidator],\n                    declarations: [MatSlideToggleRequiredValidator],\n                }]\n        }] });\nclass MatSlideToggleModule {\n}\nMatSlideToggleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSlideToggleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleModule, declarations: [MatSlideToggle], imports: [_MatSlideToggleRequiredValidatorModule, MatRippleModule,\n        MatCommonModule,\n        ObserversModule], exports: [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, MatCommonModule] });\nMatSlideToggleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleModule, imports: [_MatSlideToggleRequiredValidatorModule,\n        MatRippleModule,\n        MatCommonModule,\n        ObserversModule, _MatSlideToggleRequiredValidatorModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlideToggleModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [\n                        _MatSlideToggleRequiredValidatorModule,\n                        MatRippleModule,\n                        MatCommonModule,\n                        ObserversModule,\n                    ],\n                    exports: [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, MatCommonModule],\n                    declarations: [MatSlideToggle],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR, MAT_SLIDE_TOGGLE_VALUE_ACCESSOR, MatSlideToggle, MatSlideToggleChange, MatSlideToggleModule, MatSlideToggleRequiredValidator, _MatSlideToggleBase, _MatSlideToggleRequiredValidatorModule };\n","import * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Attribute, Inject, Input, Output, ViewChild, NgModule } from '@angular/core';\nimport { mixinTabIndex, mixinColor, mixinDisabled, MatCommonModule } from '@angular/material/core';\nimport * as i1 from '@angular/cdk/a11y';\nimport * as i2 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { hasModifierKey, DOWN_ARROW, RIGHT_ARROW, UP_ARROW, LEFT_ARROW, HOME, END, PAGE_DOWN, PAGE_UP } from '@angular/cdk/keycodes';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { Subscription } from 'rxjs';\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.io/license\n */\nconst activeEventOptions = normalizePassiveListenerOptions({ passive: false });\n/**\n * Visually, a 30px separation between tick marks looks best. This is very subjective but it is\n * the default separation we chose.\n */\nconst MIN_AUTO_TICK_SEPARATION = 30;\n/** The thumb gap size for a disabled slider. */\nconst DISABLED_THUMB_GAP = 7;\n/** The thumb gap size for a non-active slider at its minimum value. */\nconst MIN_VALUE_NONACTIVE_THUMB_GAP = 7;\n/** The thumb gap size for an active slider at its minimum value. */\nconst MIN_VALUE_ACTIVE_THUMB_GAP = 10;\n/**\n * Provider Expression that allows mat-slider to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)] and [formControl].\n * @docs-private\n */\nconst MAT_SLIDER_VALUE_ACCESSOR = {\n    provide: NG_VALUE_ACCESSOR,\n    useExisting: forwardRef(() => MatSlider),\n    multi: true,\n};\n/** A simple change event emitted by the MatSlider component. */\nclass MatSliderChange {\n}\n// Boilerplate for applying mixins to MatSlider.\n/** @docs-private */\nconst _MatSliderBase = mixinTabIndex(mixinColor(mixinDisabled(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n}), 'accent'));\n/**\n * Allows users to select from a range of values by moving the slider thumb. It is similar in\n * behavior to the native `<input type=\"range\">` element.\n */\nclass MatSlider extends _MatSliderBase {\n    constructor(elementRef, _focusMonitor, _changeDetectorRef, _dir, tabIndex, _ngZone, _document, _animationMode) {\n        super(elementRef);\n        this._focusMonitor = _focusMonitor;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._dir = _dir;\n        this._ngZone = _ngZone;\n        this._animationMode = _animationMode;\n        this._invert = false;\n        this._max = 100;\n        this._min = 0;\n        this._step = 1;\n        this._thumbLabel = false;\n        this._tickInterval = 0;\n        this._value = null;\n        this._vertical = false;\n        /** Event emitted when the slider value has changed. */\n        this.change = new EventEmitter();\n        /** Event emitted when the slider thumb moves. */\n        this.input = new EventEmitter();\n        /**\n         * Emits when the raw value of the slider changes. This is here primarily\n         * to facilitate the two-way binding for the `value` input.\n         * @docs-private\n         */\n        this.valueChange = new EventEmitter();\n        /** onTouch function registered via registerOnTouch (ControlValueAccessor). */\n        this.onTouched = () => { };\n        this._percent = 0;\n        /**\n         * Whether or not the thumb is sliding and what the user is using to slide it with.\n         * Used to determine if there should be a transition for the thumb and fill track.\n         */\n        this._isSliding = null;\n        /**\n         * Whether or not the slider is active (clicked or sliding).\n         * Used to shrink and grow the thumb as according to the Material Design spec.\n         */\n        this._isActive = false;\n        /** The size of a tick interval as a percentage of the size of the track. */\n        this._tickIntervalPercent = 0;\n        /** The dimensions of the slider. */\n        this._sliderDimensions = null;\n        this._controlValueAccessorChangeFn = () => { };\n        /** Subscription to the Directionality change EventEmitter. */\n        this._dirChangeSubscription = Subscription.EMPTY;\n        /** Called when the user has put their pointer down on the slider. */\n        this._pointerDown = (event) => {\n            // Don't do anything if the slider is disabled or the\n            // user is using anything other than the main mouse button.\n            if (this.disabled || this._isSliding || (!isTouchEvent(event) && event.button !== 0)) {\n                return;\n            }\n            this._ngZone.run(() => {\n                this._touchId = isTouchEvent(event)\n                    ? getTouchIdForSlider(event, this._elementRef.nativeElement)\n                    : undefined;\n                const pointerPosition = getPointerPositionOnPage(event, this._touchId);\n                if (pointerPosition) {\n                    const oldValue = this.value;\n                    this._isSliding = 'pointer';\n                    this._lastPointerEvent = event;\n                    this._focusHostElement();\n                    this._onMouseenter(); // Simulate mouseenter in case this is a mobile device.\n                    this._bindGlobalEvents(event);\n                    this._focusHostElement();\n                    this._updateValueFromPosition(pointerPosition);\n                    this._valueOnSlideStart = oldValue;\n                    // Despite the fact that we explicitly bind active events, in some cases the browser\n                    // still dispatches non-cancelable events which cause this call to throw an error.\n                    // There doesn't appear to be a good way of avoiding them. See #23820.\n                    if (event.cancelable) {\n                        event.preventDefault();\n                    }\n                    // Emit a change and input event if the value changed.\n                    if (oldValue != this.value) {\n                        this._emitInputEvent();\n                    }\n                }\n            });\n        };\n        /**\n         * Called when the user has moved their pointer after\n         * starting to drag. Bound on the document level.\n         */\n        this._pointerMove = (event) => {\n            if (this._isSliding === 'pointer') {\n                const pointerPosition = getPointerPositionOnPage(event, this._touchId);\n                if (pointerPosition) {\n                    // Prevent the slide from selecting anything else.\n                    if (event.cancelable) {\n                        event.preventDefault();\n                    }\n                    const oldValue = this.value;\n                    this._lastPointerEvent = event;\n                    this._updateValueFromPosition(pointerPosition);\n                    // Native range elements always emit `input` events when the value changed while sliding.\n                    if (oldValue != this.value) {\n                        this._emitInputEvent();\n                    }\n                }\n            }\n        };\n        /** Called when the user has lifted their pointer. Bound on the document level. */\n        this._pointerUp = (event) => {\n            if (this._isSliding === 'pointer') {\n                if (!isTouchEvent(event) ||\n                    typeof this._touchId !== 'number' ||\n                    // Note that we use `changedTouches`, rather than `touches` because it\n                    // seems like in most cases `touches` is empty for `touchend` events.\n                    findMatchingTouch(event.changedTouches, this._touchId)) {\n                    if (event.cancelable) {\n                        event.preventDefault();\n                    }\n                    this._removeGlobalEvents();\n                    this._isSliding = null;\n                    this._touchId = undefined;\n                    if (this._valueOnSlideStart != this.value && !this.disabled) {\n                        this._emitChangeEvent();\n                    }\n                    this._valueOnSlideStart = this._lastPointerEvent = null;\n                }\n            }\n        };\n        /** Called when the window has lost focus. */\n        this._windowBlur = () => {\n            // If the window is blurred while dragging we need to stop dragging because the\n            // browser won't dispatch the `mouseup` and `touchend` events anymore.\n            if (this._lastPointerEvent) {\n                this._pointerUp(this._lastPointerEvent);\n            }\n        };\n        this._document = _document;\n        this.tabIndex = parseInt(tabIndex) || 0;\n        _ngZone.runOutsideAngular(() => {\n            const element = elementRef.nativeElement;\n            element.addEventListener('mousedown', this._pointerDown, activeEventOptions);\n            element.addEventListener('touchstart', this._pointerDown, activeEventOptions);\n        });\n    }\n    /** Whether the slider is inverted. */\n    get invert() {\n        return this._invert;\n    }\n    set invert(value) {\n        this._invert = coerceBooleanProperty(value);\n    }\n    /** The maximum value that the slider can have. */\n    get max() {\n        return this._max;\n    }\n    set max(v) {\n        this._max = coerceNumberProperty(v, this._max);\n        this._percent = this._calculatePercentage(this._value);\n        // Since this also modifies the percentage, we need to let the change detection know.\n        this._changeDetectorRef.markForCheck();\n    }\n    /** The minimum value that the slider can have. */\n    get min() {\n        return this._min;\n    }\n    set min(v) {\n        this._min = coerceNumberProperty(v, this._min);\n        this._percent = this._calculatePercentage(this._value);\n        // Since this also modifies the percentage, we need to let the change detection know.\n        this._changeDetectorRef.markForCheck();\n    }\n    /** The values at which the thumb will snap. */\n    get step() {\n        return this._step;\n    }\n    set step(v) {\n        this._step = coerceNumberProperty(v, this._step);\n        if (this._step % 1 !== 0) {\n            this._roundToDecimal = this._step.toString().split('.').pop().length;\n        }\n        // Since this could modify the label, we need to notify the change detection.\n        this._changeDetectorRef.markForCheck();\n    }\n    /** Whether or not to show the thumb label. */\n    get thumbLabel() {\n        return this._thumbLabel;\n    }\n    set thumbLabel(value) {\n        this._thumbLabel = coerceBooleanProperty(value);\n    }\n    /**\n     * How often to show ticks. Relative to the step so that a tick always appears on a step.\n     * Ex: Tick interval of 4 with a step of 3 will draw a tick every 4 steps (every 12 values).\n     */\n    get tickInterval() {\n        return this._tickInterval;\n    }\n    set tickInterval(value) {\n        if (value === 'auto') {\n            this._tickInterval = 'auto';\n        }\n        else if (typeof value === 'number' || typeof value === 'string') {\n            this._tickInterval = coerceNumberProperty(value, this._tickInterval);\n        }\n        else {\n            this._tickInterval = 0;\n        }\n    }\n    /** Value of the slider. */\n    get value() {\n        // If the value needs to be read and it is still uninitialized, initialize it to the min.\n        if (this._value === null) {\n            this.value = this._min;\n        }\n        return this._value;\n    }\n    set value(v) {\n        if (v !== this._value) {\n            let value = coerceNumberProperty(v, 0);\n            // While incrementing by a decimal we can end up with values like 33.300000000000004.\n            // Truncate it to ensure that it matches the label and to make it easier to work with.\n            if (this._roundToDecimal && value !== this.min && value !== this.max) {\n                value = parseFloat(value.toFixed(this._roundToDecimal));\n            }\n            this._value = value;\n            this._percent = this._calculatePercentage(this._value);\n            // Since this also modifies the percentage, we need to let the change detection know.\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /** Whether the slider is vertical. */\n    get vertical() {\n        return this._vertical;\n    }\n    set vertical(value) {\n        this._vertical = coerceBooleanProperty(value);\n    }\n    /** The value to be used for display purposes. */\n    get displayValue() {\n        if (this.displayWith) {\n            // Value is never null but since setters and getters cannot have\n            // different types, the value getter is also typed to return null.\n            return this.displayWith(this.value);\n        }\n        // Note that this could be improved further by rounding something like 0.999 to 1 or\n        // 0.899 to 0.9, however it is very performance sensitive, because it gets called on\n        // every change detection cycle.\n        if (this._roundToDecimal && this.value && this.value % 1 !== 0) {\n            return this.value.toFixed(this._roundToDecimal);\n        }\n        return this.value || 0;\n    }\n    /** set focus to the host element */\n    focus(options) {\n        this._focusHostElement(options);\n    }\n    /** blur the host element */\n    blur() {\n        this._blurHostElement();\n    }\n    /** The percentage of the slider that coincides with the value. */\n    get percent() {\n        return this._clamp(this._percent);\n    }\n    /**\n     * Whether the axis of the slider is inverted.\n     * (i.e. whether moving the thumb in the positive x or y direction decreases the slider's value).\n     */\n    _shouldInvertAxis() {\n        // Standard non-inverted mode for a vertical slider should be dragging the thumb from bottom to\n        // top. However from a y-axis standpoint this is inverted.\n        return this.vertical ? !this.invert : this.invert;\n    }\n    /** Whether the slider is at its minimum value. */\n    _isMinValue() {\n        return this.percent === 0;\n    }\n    /**\n     * The amount of space to leave between the slider thumb and the track fill & track background\n     * elements.\n     */\n    _getThumbGap() {\n        if (this.disabled) {\n            return DISABLED_THUMB_GAP;\n        }\n        if (this._isMinValue() && !this.thumbLabel) {\n            return this._isActive ? MIN_VALUE_ACTIVE_THUMB_GAP : MIN_VALUE_NONACTIVE_THUMB_GAP;\n        }\n        return 0;\n    }\n    /** CSS styles for the track background element. */\n    _getTrackBackgroundStyles() {\n        const axis = this.vertical ? 'Y' : 'X';\n        const scale = this.vertical ? `1, ${1 - this.percent}, 1` : `${1 - this.percent}, 1, 1`;\n        const sign = this._shouldInvertMouseCoords() ? '-' : '';\n        return {\n            // scale3d avoids some rendering issues in Chrome. See #12071.\n            transform: `translate${axis}(${sign}${this._getThumbGap()}px) scale3d(${scale})`,\n        };\n    }\n    /** CSS styles for the track fill element. */\n    _getTrackFillStyles() {\n        const percent = this.percent;\n        const axis = this.vertical ? 'Y' : 'X';\n        const scale = this.vertical ? `1, ${percent}, 1` : `${percent}, 1, 1`;\n        const sign = this._shouldInvertMouseCoords() ? '' : '-';\n        return {\n            // scale3d avoids some rendering issues in Chrome. See #12071.\n            transform: `translate${axis}(${sign}${this._getThumbGap()}px) scale3d(${scale})`,\n            // iOS Safari has a bug where it won't re-render elements which start of as `scale(0)` until\n            // something forces a style recalculation on it. Since we'll end up with `scale(0)` when\n            // the value of the slider is 0, we can easily get into this situation. We force a\n            // recalculation by changing the element's `display` when it goes from 0 to any other value.\n            display: percent === 0 ? 'none' : '',\n        };\n    }\n    /** CSS styles for the ticks container element. */\n    _getTicksContainerStyles() {\n        let axis = this.vertical ? 'Y' : 'X';\n        // For a horizontal slider in RTL languages we push the ticks container off the left edge\n        // instead of the right edge to avoid causing a horizontal scrollbar to appear.\n        let sign = !this.vertical && this._getDirection() == 'rtl' ? '' : '-';\n        let offset = (this._tickIntervalPercent / 2) * 100;\n        return {\n            'transform': `translate${axis}(${sign}${offset}%)`,\n        };\n    }\n    /** CSS styles for the ticks element. */\n    _getTicksStyles() {\n        let tickSize = this._tickIntervalPercent * 100;\n        let backgroundSize = this.vertical ? `2px ${tickSize}%` : `${tickSize}% 2px`;\n        let axis = this.vertical ? 'Y' : 'X';\n        // Depending on the direction we pushed the ticks container, push the ticks the opposite\n        // direction to re-center them but clip off the end edge. In RTL languages we need to flip the\n        // ticks 180 degrees so we're really cutting off the end edge abd not the start.\n        let sign = !this.vertical && this._getDirection() == 'rtl' ? '-' : '';\n        let rotate = !this.vertical && this._getDirection() == 'rtl' ? ' rotate(180deg)' : '';\n        let styles = {\n            'backgroundSize': backgroundSize,\n            // Without translateZ ticks sometimes jitter as the slider moves on Chrome & Firefox.\n            'transform': `translateZ(0) translate${axis}(${sign}${tickSize / 2}%)${rotate}`,\n        };\n        if (this._isMinValue() && this._getThumbGap()) {\n            const shouldInvertAxis = this._shouldInvertAxis();\n            let side;\n            if (this.vertical) {\n                side = shouldInvertAxis ? 'Bottom' : 'Top';\n            }\n            else {\n                side = shouldInvertAxis ? 'Right' : 'Left';\n            }\n            styles[`padding${side}`] = `${this._getThumbGap()}px`;\n        }\n        return styles;\n    }\n    _getThumbContainerStyles() {\n        const shouldInvertAxis = this._shouldInvertAxis();\n        let axis = this.vertical ? 'Y' : 'X';\n        // For a horizontal slider in RTL languages we push the thumb container off the left edge\n        // instead of the right edge to avoid causing a horizontal scrollbar to appear.\n        let invertOffset = this._getDirection() == 'rtl' && !this.vertical ? !shouldInvertAxis : shouldInvertAxis;\n        let offset = (invertOffset ? this.percent : 1 - this.percent) * 100;\n        return {\n            'transform': `translate${axis}(-${offset}%)`,\n        };\n    }\n    /**\n     * Whether mouse events should be converted to a slider position by calculating their distance\n     * from the right or bottom edge of the slider as opposed to the top or left.\n     */\n    _shouldInvertMouseCoords() {\n        const shouldInvertAxis = this._shouldInvertAxis();\n        return this._getDirection() == 'rtl' && !this.vertical ? !shouldInvertAxis : shouldInvertAxis;\n    }\n    /** The language direction for this slider element. */\n    _getDirection() {\n        return this._dir && this._dir.value == 'rtl' ? 'rtl' : 'ltr';\n    }\n    ngAfterViewInit() {\n        this._focusMonitor.monitor(this._elementRef, true).subscribe((origin) => {\n            this._isActive = !!origin && origin !== 'keyboard';\n            this._changeDetectorRef.detectChanges();\n        });\n        if (this._dir) {\n            this._dirChangeSubscription = this._dir.change.subscribe(() => {\n                this._changeDetectorRef.markForCheck();\n            });\n        }\n    }\n    ngOnDestroy() {\n        const element = this._elementRef.nativeElement;\n        element.removeEventListener('mousedown', this._pointerDown, activeEventOptions);\n        element.removeEventListener('touchstart', this._pointerDown, activeEventOptions);\n        this._lastPointerEvent = null;\n        this._removeGlobalEvents();\n        this._focusMonitor.stopMonitoring(this._elementRef);\n        this._dirChangeSubscription.unsubscribe();\n    }\n    _onMouseenter() {\n        if (this.disabled) {\n            return;\n        }\n        // We save the dimensions of the slider here so we can use them to update the spacing of the\n        // ticks and determine where on the slider click and slide events happen.\n        this._sliderDimensions = this._getSliderDimensions();\n        this._updateTickIntervalPercent();\n    }\n    _onFocus() {\n        // We save the dimensions of the slider here so we can use them to update the spacing of the\n        // ticks and determine where on the slider click and slide events happen.\n        this._sliderDimensions = this._getSliderDimensions();\n        this._updateTickIntervalPercent();\n    }\n    _onBlur() {\n        this.onTouched();\n    }\n    _onKeydown(event) {\n        if (this.disabled ||\n            hasModifierKey(event) ||\n            (this._isSliding && this._isSliding !== 'keyboard')) {\n            return;\n        }\n        const oldValue = this.value;\n        switch (event.keyCode) {\n            case PAGE_UP:\n                this._increment(10);\n                break;\n            case PAGE_DOWN:\n                this._increment(-10);\n                break;\n            case END:\n                this.value = this.max;\n                break;\n            case HOME:\n                this.value = this.min;\n                break;\n            case LEFT_ARROW:\n                // NOTE: For a sighted user it would make more sense that when they press an arrow key on an\n                // inverted slider the thumb moves in that direction. However for a blind user, nothing\n                // about the slider indicates that it is inverted. They will expect left to be decrement,\n                // regardless of how it appears on the screen. For speakers ofRTL languages, they probably\n                // expect left to mean increment. Therefore we flip the meaning of the side arrow keys for\n                // RTL. For inverted sliders we prefer a good a11y experience to having it \"look right\" for\n                // sighted users, therefore we do not swap the meaning.\n                this._increment(this._getDirection() == 'rtl' ? 1 : -1);\n                break;\n            case UP_ARROW:\n                this._increment(1);\n                break;\n            case RIGHT_ARROW:\n                // See comment on LEFT_ARROW about the conditions under which we flip the meaning.\n                this._increment(this._getDirection() == 'rtl' ? -1 : 1);\n                break;\n            case DOWN_ARROW:\n                this._increment(-1);\n                break;\n            default:\n                // Return if the key is not one that we explicitly handle to avoid calling preventDefault on\n                // it.\n                return;\n        }\n        if (oldValue != this.value) {\n            this._emitInputEvent();\n            this._emitChangeEvent();\n        }\n        this._isSliding = 'keyboard';\n        event.preventDefault();\n    }\n    _onKeyup() {\n        if (this._isSliding === 'keyboard') {\n            this._isSliding = null;\n        }\n    }\n    /** Use defaultView of injected document if available or fallback to global window reference */\n    _getWindow() {\n        return this._document.defaultView || window;\n    }\n    /**\n     * Binds our global move and end events. They're bound at the document level and only while\n     * dragging so that the user doesn't have to keep their pointer exactly over the slider\n     * as they're swiping across the screen.\n     */\n    _bindGlobalEvents(triggerEvent) {\n        // Note that we bind the events to the `document`, because it allows us to capture\n        // drag cancel events where the user's pointer is outside the browser window.\n        const document = this._document;\n        const isTouch = isTouchEvent(triggerEvent);\n        const moveEventName = isTouch ? 'touchmove' : 'mousemove';\n        const endEventName = isTouch ? 'touchend' : 'mouseup';\n        document.addEventListener(moveEventName, this._pointerMove, activeEventOptions);\n        document.addEventListener(endEventName, this._pointerUp, activeEventOptions);\n        if (isTouch) {\n            document.addEventListener('touchcancel', this._pointerUp, activeEventOptions);\n        }\n        const window = this._getWindow();\n        if (typeof window !== 'undefined' && window) {\n            window.addEventListener('blur', this._windowBlur);\n        }\n    }\n    /** Removes any global event listeners that we may have added. */\n    _removeGlobalEvents() {\n        const document = this._document;\n        document.removeEventListener('mousemove', this._pointerMove, activeEventOptions);\n        document.removeEventListener('mouseup', this._pointerUp, activeEventOptions);\n        document.removeEventListener('touchmove', this._pointerMove, activeEventOptions);\n        document.removeEventListener('touchend', this._pointerUp, activeEventOptions);\n        document.removeEventListener('touchcancel', this._pointerUp, activeEventOptions);\n        const window = this._getWindow();\n        if (typeof window !== 'undefined' && window) {\n            window.removeEventListener('blur', this._windowBlur);\n        }\n    }\n    /** Increments the slider by the given number of steps (negative number decrements). */\n    _increment(numSteps) {\n        // Pre-clamp the current value since it's allowed to be\n        // out of bounds when assigned programmatically.\n        const clampedValue = this._clamp(this.value || 0, this.min, this.max);\n        this.value = this._clamp(clampedValue + this.step * numSteps, this.min, this.max);\n    }\n    /** Calculate the new value from the new physical location. The value will always be snapped. */\n    _updateValueFromPosition(pos) {\n        if (!this._sliderDimensions) {\n            return;\n        }\n        let offset = this.vertical ? this._sliderDimensions.top : this._sliderDimensions.left;\n        let size = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;\n        let posComponent = this.vertical ? pos.y : pos.x;\n        // The exact value is calculated from the event and used to find the closest snap value.\n        let percent = this._clamp((posComponent - offset) / size);\n        if (this._shouldInvertMouseCoords()) {\n            percent = 1 - percent;\n        }\n        // Since the steps may not divide cleanly into the max value, if the user\n        // slid to 0 or 100 percent, we jump to the min/max value. This approach\n        // is slightly more intuitive than using `Math.ceil` below, because it\n        // follows the user's pointer closer.\n        if (percent === 0) {\n            this.value = this.min;\n        }\n        else if (percent === 1) {\n            this.value = this.max;\n        }\n        else {\n            const exactValue = this._calculateValue(percent);\n            // This calculation finds the closest step by finding the closest\n            // whole number divisible by the step relative to the min.\n            const closestValue = Math.round((exactValue - this.min) / this.step) * this.step + this.min;\n            // The value needs to snap to the min and max.\n            this.value = this._clamp(closestValue, this.min, this.max);\n        }\n    }\n    /** Emits a change event if the current value is different from the last emitted value. */\n    _emitChangeEvent() {\n        this._controlValueAccessorChangeFn(this.value);\n        this.valueChange.emit(this.value);\n        this.change.emit(this._createChangeEvent());\n    }\n    /** Emits an input event when the current value is different from the last emitted value. */\n    _emitInputEvent() {\n        this.input.emit(this._createChangeEvent());\n    }\n    /** Updates the amount of space between ticks as a percentage of the width of the slider. */\n    _updateTickIntervalPercent() {\n        if (!this.tickInterval || !this._sliderDimensions) {\n            return;\n        }\n        let tickIntervalPercent;\n        if (this.tickInterval == 'auto') {\n            let trackSize = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;\n            let pixelsPerStep = (trackSize * this.step) / (this.max - this.min);\n            let stepsPerTick = Math.ceil(MIN_AUTO_TICK_SEPARATION / pixelsPerStep);\n            let pixelsPerTick = stepsPerTick * this.step;\n            tickIntervalPercent = pixelsPerTick / trackSize;\n        }\n        else {\n            tickIntervalPercent = (this.tickInterval * this.step) / (this.max - this.min);\n        }\n        this._tickIntervalPercent = isSafeNumber(tickIntervalPercent) ? tickIntervalPercent : 0;\n    }\n    /** Creates a slider change object from the specified value. */\n    _createChangeEvent(value = this.value) {\n        let event = new MatSliderChange();\n        event.source = this;\n        event.value = value;\n        return event;\n    }\n    /** Calculates the percentage of the slider that a value is. */\n    _calculatePercentage(value) {\n        const percentage = ((value || 0) - this.min) / (this.max - this.min);\n        return isSafeNumber(percentage) ? percentage : 0;\n    }\n    /** Calculates the value a percentage of the slider corresponds to. */\n    _calculateValue(percentage) {\n        return this.min + percentage * (this.max - this.min);\n    }\n    /** Return a number between two numbers. */\n    _clamp(value, min = 0, max = 1) {\n        return Math.max(min, Math.min(value, max));\n    }\n    /**\n     * Get the bounding client rect of the slider track element.\n     * The track is used rather than the native element to ignore the extra space that the thumb can\n     * take up.\n     */\n    _getSliderDimensions() {\n        return this._sliderWrapper ? this._sliderWrapper.nativeElement.getBoundingClientRect() : null;\n    }\n    /**\n     * Focuses the native element.\n     * Currently only used to allow a blur event to fire but will be used with keyboard input later.\n     */\n    _focusHostElement(options) {\n        this._elementRef.nativeElement.focus(options);\n    }\n    /** Blurs the native element. */\n    _blurHostElement() {\n        this._elementRef.nativeElement.blur();\n    }\n    /**\n     * Sets the model value. Implemented as part of ControlValueAccessor.\n     * @param value\n     */\n    writeValue(value) {\n        this.value = value;\n    }\n    /**\n     * Registers a callback to be triggered when the value has changed.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    registerOnChange(fn) {\n        this._controlValueAccessorChangeFn = fn;\n    }\n    /**\n     * Registers a callback to be triggered when the component is touched.\n     * Implemented as part of ControlValueAccessor.\n     * @param fn Callback to be registered.\n     */\n    registerOnTouched(fn) {\n        this.onTouched = fn;\n    }\n    /**\n     * Sets whether the component should be disabled.\n     * Implemented as part of ControlValueAccessor.\n     * @param isDisabled\n     */\n    setDisabledState(isDisabled) {\n        this.disabled = isDisabled;\n    }\n}\nMatSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlider, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: i0.ChangeDetectorRef }, { token: i2.Directionality, optional: true }, { token: 'tabindex', attribute: true }, { token: i0.NgZone }, { token: DOCUMENT }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatSlider, selector: \"mat-slider\", inputs: { disabled: \"disabled\", color: \"color\", tabIndex: \"tabIndex\", invert: \"invert\", max: \"max\", min: \"min\", step: \"step\", thumbLabel: \"thumbLabel\", tickInterval: \"tickInterval\", value: \"value\", displayWith: \"displayWith\", valueText: \"valueText\", vertical: \"vertical\" }, outputs: { change: \"change\", input: \"input\", valueChange: \"valueChange\" }, host: { attributes: { \"role\": \"slider\" }, listeners: { \"focus\": \"_onFocus()\", \"blur\": \"_onBlur()\", \"keydown\": \"_onKeydown($event)\", \"keyup\": \"_onKeyup()\", \"mouseenter\": \"_onMouseenter()\", \"selectstart\": \"$event.preventDefault()\" }, properties: { \"tabIndex\": \"tabIndex\", \"attr.aria-disabled\": \"disabled\", \"attr.aria-valuemax\": \"max\", \"attr.aria-valuemin\": \"min\", \"attr.aria-valuenow\": \"value\", \"attr.aria-valuetext\": \"valueText == null ? displayValue : valueText\", \"attr.aria-orientation\": \"vertical ? \\\"vertical\\\" : \\\"horizontal\\\"\", \"class.mat-slider-disabled\": \"disabled\", \"class.mat-slider-has-ticks\": \"tickInterval\", \"class.mat-slider-horizontal\": \"!vertical\", \"class.mat-slider-axis-inverted\": \"_shouldInvertAxis()\", \"class.mat-slider-invert-mouse-coords\": \"_shouldInvertMouseCoords()\", \"class.mat-slider-sliding\": \"_isSliding\", \"class.mat-slider-thumb-label-showing\": \"thumbLabel\", \"class.mat-slider-vertical\": \"vertical\", \"class.mat-slider-min-value\": \"_isMinValue()\", \"class.mat-slider-hide-last-tick\": \"disabled || _isMinValue() && _getThumbGap() && _shouldInvertAxis()\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\" }, classAttribute: \"mat-slider mat-focus-indicator\" }, providers: [MAT_SLIDER_VALUE_ACCESSOR], viewQueries: [{ propertyName: \"_sliderWrapper\", first: true, predicate: [\"sliderWrapper\"], descendants: true }], exportAs: [\"matSlider\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-slider-wrapper\\\" #sliderWrapper>\\n  <div class=\\\"mat-slider-track-wrapper\\\">\\n    <div class=\\\"mat-slider-track-background\\\" [ngStyle]=\\\"_getTrackBackgroundStyles()\\\"></div>\\n    <div class=\\\"mat-slider-track-fill\\\" [ngStyle]=\\\"_getTrackFillStyles()\\\"></div>\\n  </div>\\n  <div class=\\\"mat-slider-ticks-container\\\" [ngStyle]=\\\"_getTicksContainerStyles()\\\">\\n    <div class=\\\"mat-slider-ticks\\\" [ngStyle]=\\\"_getTicksStyles()\\\"></div>\\n  </div>\\n  <div class=\\\"mat-slider-thumb-container\\\" [ngStyle]=\\\"_getThumbContainerStyles()\\\">\\n    <div class=\\\"mat-slider-focus-ring\\\"></div>\\n    <div class=\\\"mat-slider-thumb\\\"></div>\\n    <div class=\\\"mat-slider-thumb-label\\\">\\n      <span class=\\\"mat-slider-thumb-label-text\\\">{{displayValue}}</span>\\n    </div>\\n  </div>\\n</div>\\n\", styles: [\".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:\\\"\\\";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\"], dependencies: [{ kind: \"directive\", type: i3.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSlider, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-slider', exportAs: 'matSlider', providers: [MAT_SLIDER_VALUE_ACCESSOR], host: {\n                        '(focus)': '_onFocus()',\n                        '(blur)': '_onBlur()',\n                        '(keydown)': '_onKeydown($event)',\n                        '(keyup)': '_onKeyup()',\n                        '(mouseenter)': '_onMouseenter()',\n                        // On Safari starting to slide temporarily triggers text selection mode which\n                        // show the wrong cursor. We prevent it by stopping the `selectstart` event.\n                        '(selectstart)': '$event.preventDefault()',\n                        'class': 'mat-slider mat-focus-indicator',\n                        'role': 'slider',\n                        '[tabIndex]': 'tabIndex',\n                        '[attr.aria-disabled]': 'disabled',\n                        '[attr.aria-valuemax]': 'max',\n                        '[attr.aria-valuemin]': 'min',\n                        '[attr.aria-valuenow]': 'value',\n                        // NVDA and Jaws appear to announce the `aria-valuenow` by calculating its percentage based\n                        // on its value between `aria-valuemin` and `aria-valuemax`. Due to how decimals are handled,\n                        // it can cause the slider to read out a very long value like 0.20000068 if the current value\n                        // is 0.2 with a min of 0 and max of 1. We work around the issue by setting `aria-valuetext`\n                        // to the same value that we set on the slider's thumb which will be truncated.\n                        '[attr.aria-valuetext]': 'valueText == null ? displayValue : valueText',\n                        '[attr.aria-orientation]': 'vertical ? \"vertical\" : \"horizontal\"',\n                        '[class.mat-slider-disabled]': 'disabled',\n                        '[class.mat-slider-has-ticks]': 'tickInterval',\n                        '[class.mat-slider-horizontal]': '!vertical',\n                        '[class.mat-slider-axis-inverted]': '_shouldInvertAxis()',\n                        // Class binding which is only used by the test harness as there is no other\n                        // way for the harness to detect if mouse coordinates need to be inverted.\n                        '[class.mat-slider-invert-mouse-coords]': '_shouldInvertMouseCoords()',\n                        '[class.mat-slider-sliding]': '_isSliding',\n                        '[class.mat-slider-thumb-label-showing]': 'thumbLabel',\n                        '[class.mat-slider-vertical]': 'vertical',\n                        '[class.mat-slider-min-value]': '_isMinValue()',\n                        '[class.mat-slider-hide-last-tick]': 'disabled || _isMinValue() && _getThumbGap() && _shouldInvertAxis()',\n                        '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n                    }, inputs: ['disabled', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-slider-wrapper\\\" #sliderWrapper>\\n  <div class=\\\"mat-slider-track-wrapper\\\">\\n    <div class=\\\"mat-slider-track-background\\\" [ngStyle]=\\\"_getTrackBackgroundStyles()\\\"></div>\\n    <div class=\\\"mat-slider-track-fill\\\" [ngStyle]=\\\"_getTrackFillStyles()\\\"></div>\\n  </div>\\n  <div class=\\\"mat-slider-ticks-container\\\" [ngStyle]=\\\"_getTicksContainerStyles()\\\">\\n    <div class=\\\"mat-slider-ticks\\\" [ngStyle]=\\\"_getTicksStyles()\\\"></div>\\n  </div>\\n  <div class=\\\"mat-slider-thumb-container\\\" [ngStyle]=\\\"_getThumbContainerStyles()\\\">\\n    <div class=\\\"mat-slider-focus-ring\\\"></div>\\n    <div class=\\\"mat-slider-thumb\\\"></div>\\n    <div class=\\\"mat-slider-thumb-label\\\">\\n      <span class=\\\"mat-slider-thumb-label-text\\\">{{displayValue}}</span>\\n    </div>\\n  </div>\\n</div>\\n\", styles: [\".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:\\\"\\\";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: i0.ChangeDetectorRef }, { type: i2.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { invert: [{\n                type: Input\n            }], max: [{\n                type: Input\n            }], min: [{\n                type: Input\n            }], step: [{\n                type: Input\n            }], thumbLabel: [{\n                type: Input\n            }], tickInterval: [{\n                type: Input\n            }], value: [{\n                type: Input\n            }], displayWith: [{\n                type: Input\n            }], valueText: [{\n                type: Input\n            }], vertical: [{\n                type: Input\n            }], change: [{\n                type: Output\n            }], input: [{\n                type: Output\n            }], valueChange: [{\n                type: Output\n            }], _sliderWrapper: [{\n                type: ViewChild,\n                args: ['sliderWrapper']\n            }] } });\n/** Checks if number is safe for calculation */\nfunction isSafeNumber(value) {\n    return !isNaN(value) && isFinite(value);\n}\n/** Returns whether an event is a touch event. */\nfunction isTouchEvent(event) {\n    // This function is called for every pixel that the user has dragged so we need it to be\n    // as fast as possible. Since we only bind mouse events and touch events, we can assume\n    // that if the event's name starts with `t`, it's a touch event.\n    return event.type[0] === 't';\n}\n/** Gets the coordinates of a touch or mouse event relative to the viewport. */\nfunction getPointerPositionOnPage(event, id) {\n    let point;\n    if (isTouchEvent(event)) {\n        // The `identifier` could be undefined if the browser doesn't support `TouchEvent.identifier`.\n        // If that's the case, attribute the first touch to all active sliders. This should still cover\n        // the most common case while only breaking multi-touch.\n        if (typeof id === 'number') {\n            point = findMatchingTouch(event.touches, id) || findMatchingTouch(event.changedTouches, id);\n        }\n        else {\n            // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.\n            point = event.touches[0] || event.changedTouches[0];\n        }\n    }\n    else {\n        point = event;\n    }\n    return point ? { x: point.clientX, y: point.clientY } : undefined;\n}\n/** Finds a `Touch` with a specific ID in a `TouchList`. */\nfunction findMatchingTouch(touches, id) {\n    for (let i = 0; i < touches.length; i++) {\n        if (touches[i].identifier === id) {\n            return touches[i];\n        }\n    }\n    return undefined;\n}\n/** Gets the unique ID of a touch that matches a specific slider. */\nfunction getTouchIdForSlider(event, sliderHost) {\n    for (let i = 0; i < event.touches.length; i++) {\n        const target = event.touches[i].target;\n        if (sliderHost === target || sliderHost.contains(target)) {\n            return event.touches[i].identifier;\n        }\n    }\n    return undefined;\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.io/license\n */\nclass MatSliderModule {\n}\nMatSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSliderModule, declarations: [MatSlider], imports: [CommonModule, MatCommonModule], exports: [MatSlider, MatCommonModule] });\nMatSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSliderModule, imports: [CommonModule, MatCommonModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatSliderModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule, MatCommonModule],\n                    exports: [MatSlider, MatCommonModule],\n                    declarations: [MatSlider],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SLIDER_VALUE_ACCESSOR, MatSlider, MatSliderChange, MatSliderModule };\n","import * as i7 from '@angular/cdk/a11y';\nimport { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';\nimport * as i5 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i2 from '@angular/cdk/portal';\nimport { CdkPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport * as i1$2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChild, ViewChild, Input, forwardRef, EventEmitter, Output, ContentChildren, QueryList, Attribute, NgModule } from '@angular/core';\nimport * as i4 from '@angular/material/core';\nimport { mixinDisabled, mixinColor, mixinDisableRipple, mixinTabIndex, MAT_RIPPLE_GLOBAL_OPTIONS, RippleRenderer, MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { take, startWith, distinctUntilChanged, takeUntil, switchMap, skip, filter } from 'rxjs/operators';\nimport { Subject, Subscription, fromEvent, of, merge, EMPTY, Observable, timer } from 'rxjs';\nimport * as i1 from '@angular/cdk/bidi';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/scrolling';\nimport * as i3 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';\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.io/license\n */\n/** Injection token for the MatInkBar's Positioner. */\nconst _MAT_INK_BAR_POSITIONER = new InjectionToken('MatInkBarPositioner', {\n    providedIn: 'root',\n    factory: _MAT_INK_BAR_POSITIONER_FACTORY,\n});\n/**\n * The default positioner function for the MatInkBar.\n * @docs-private\n */\nfunction _MAT_INK_BAR_POSITIONER_FACTORY() {\n    const method = (element) => ({\n        left: element ? (element.offsetLeft || 0) + 'px' : '0',\n        width: element ? (element.offsetWidth || 0) + 'px' : '0',\n    });\n    return method;\n}\n/**\n * The ink-bar is used to display and animate the line underneath the current active tab label.\n * @docs-private\n */\nclass MatInkBar {\n    constructor(_elementRef, _ngZone, _inkBarPositioner, _animationMode) {\n        this._elementRef = _elementRef;\n        this._ngZone = _ngZone;\n        this._inkBarPositioner = _inkBarPositioner;\n        this._animationMode = _animationMode;\n    }\n    /**\n     * Calculates the styles from the provided element in order to align the ink-bar to that element.\n     * Shows the ink bar if previously set as hidden.\n     * @param element\n     */\n    alignToElement(element) {\n        this.show();\n        // `onStable` might not run for a while if the zone has already stabilized.\n        // Wrap the call in `NgZone.run` to ensure that it runs relatively soon.\n        this._ngZone.run(() => {\n            this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n                const positions = this._inkBarPositioner(element);\n                const inkBar = this._elementRef.nativeElement;\n                inkBar.style.left = positions.left;\n                inkBar.style.width = positions.width;\n            });\n        });\n    }\n    /** Shows the ink bar. */\n    show() {\n        this._elementRef.nativeElement.style.visibility = 'visible';\n    }\n    /** Hides the ink bar. */\n    hide() {\n        this._elementRef.nativeElement.style.visibility = 'hidden';\n    }\n}\nMatInkBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatInkBar, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: _MAT_INK_BAR_POSITIONER }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatInkBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatInkBar, selector: \"mat-ink-bar\", host: { properties: { \"class._mat-animation-noopable\": \"_animationMode === 'NoopAnimations'\" }, classAttribute: \"mat-ink-bar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatInkBar, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'mat-ink-bar',\n                    host: {\n                        'class': 'mat-ink-bar',\n                        '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [_MAT_INK_BAR_POSITIONER]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabContent`. It serves as\n * alternative token to the actual `MatTabContent` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_CONTENT = new InjectionToken('MatTabContent');\n/** Decorates the `ng-template` tags and reads out the template from it. */\nclass MatTabContent {\n    constructor(/** Content for the tab. */ template) {\n        this.template = template;\n    }\n}\nMatTabContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabContent, selector: \"[matTabContent]\", providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabContent, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matTabContent]',\n                    providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\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.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabLabel`. It serves as\n * alternative token to the actual `MatTabLabel` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_LABEL = new InjectionToken('MatTabLabel');\n/**\n * Used to provide a tab label to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB = new InjectionToken('MAT_TAB');\n/** Used to flag tab labels for use with the portal directive */\nclass MatTabLabel extends CdkPortal {\n    constructor(templateRef, viewContainerRef, _closestTab) {\n        super(templateRef, viewContainerRef);\n        this._closestTab = _closestTab;\n    }\n}\nMatTabLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabel, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: MAT_TAB, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLabel, selector: \"[mat-tab-label], [matTabLabel]\", providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabel, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[mat-tab-label], [matTabLabel]',\n                    providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],\n                }]\n        }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_TAB]\n                }, {\n                    type: Optional\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.io/license\n */\n// Boilerplate for applying mixins to MatTab.\n/** @docs-private */\nconst _MatTabBase = mixinDisabled(class {\n});\n/**\n * Used to provide a tab group to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB_GROUP = new InjectionToken('MAT_TAB_GROUP');\nclass MatTab extends _MatTabBase {\n    constructor(_viewContainerRef, _closestTabGroup) {\n        super();\n        this._viewContainerRef = _viewContainerRef;\n        this._closestTabGroup = _closestTabGroup;\n        /** Plain text label for the tab, used when there is no template label. */\n        this.textLabel = '';\n        /** Portal that will be the hosted content of the tab */\n        this._contentPortal = null;\n        /** Emits whenever the internal state of the tab changes. */\n        this._stateChanges = new Subject();\n        /**\n         * The relatively indexed position where 0 represents the center, negative is left, and positive\n         * represents the right.\n         */\n        this.position = null;\n        /**\n         * The initial relatively index origin of the tab if it was created and selected after there\n         * was already a selected tab. Provides context of what position the tab should originate from.\n         */\n        this.origin = null;\n        /**\n         * Whether the tab is currently active.\n         */\n        this.isActive = false;\n    }\n    /** Content for the tab label given by `<ng-template mat-tab-label>`. */\n    get templateLabel() {\n        return this._templateLabel;\n    }\n    set templateLabel(value) {\n        this._setTemplateLabelInput(value);\n    }\n    /** @docs-private */\n    get content() {\n        return this._contentPortal;\n    }\n    ngOnChanges(changes) {\n        if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {\n            this._stateChanges.next();\n        }\n    }\n    ngOnDestroy() {\n        this._stateChanges.complete();\n    }\n    ngOnInit() {\n        this._contentPortal = new TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);\n    }\n    /**\n     * This has been extracted to a util because of TS 4 and VE.\n     * View Engine doesn't support property rename inheritance.\n     * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n     * @docs-private\n     */\n    _setTemplateLabelInput(value) {\n        // Only update the label if the query managed to find one. This works around an issue where a\n        // user may have manually set `templateLabel` during creation mode, which would then get\n        // clobbered by `undefined` when the query resolves. Also note that we check that the closest\n        // tab matches the current one so that we don't pick up labels from nested tabs.\n        if (value && value._closestTab === this) {\n            this._templateLabel = value;\n        }\n    }\n}\nMatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTab, deps: [{ token: i0.ViewContainerRef }, { token: MAT_TAB_GROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTab, selector: \"mat-tab\", inputs: { disabled: \"disabled\", textLabel: [\"label\", \"textLabel\"], ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], labelClass: \"labelClass\", bodyClass: \"bodyClass\" }, providers: [{ provide: MAT_TAB, useExisting: MatTab }], queries: [{ propertyName: \"templateLabel\", first: true, predicate: MAT_TAB_LABEL, descendants: true }, { propertyName: \"_explicitContent\", first: true, predicate: MAT_TAB_CONTENT, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: \"_implicitContent\", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: [\"matTab\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\\n    TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\\n    tab-group. -->\\n<ng-template><ng-content></ng-content></ng-template>\\n\", changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTab, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-tab', inputs: ['disabled'], changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, exportAs: 'matTab', providers: [{ provide: MAT_TAB, useExisting: MatTab }], template: \"<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\\n    TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\\n    tab-group. -->\\n<ng-template><ng-content></ng-content></ng-template>\\n\" }]\n        }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_TAB_GROUP]\n                }, {\n                    type: Optional\n                }] }]; }, propDecorators: { templateLabel: [{\n                type: ContentChild,\n                args: [MAT_TAB_LABEL]\n            }], _explicitContent: [{\n                type: ContentChild,\n                args: [MAT_TAB_CONTENT, { read: TemplateRef, static: true }]\n            }], _implicitContent: [{\n                type: ViewChild,\n                args: [TemplateRef, { static: true }]\n            }], textLabel: [{\n                type: Input,\n                args: ['label']\n            }], ariaLabel: [{\n                type: Input,\n                args: ['aria-label']\n            }], ariaLabelledby: [{\n                type: Input,\n                args: ['aria-labelledby']\n            }], labelClass: [{\n                type: Input\n            }], bodyClass: [{\n                type: Input\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.io/license\n */\n/**\n * Animations used by the Material tabs.\n * @docs-private\n */\nconst matTabsAnimations = {\n    /** Animation translates a tab along the X axis. */\n    translateTab: trigger('translateTab', [\n        // Transitions to `none` instead of 0, because some browsers might blur the content.\n        state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),\n        // If the tab is either on the left or right, we additionally add a `min-height` of 1px\n        // in order to ensure that the element has a height before its state changes. This is\n        // necessary because Chrome does seem to skip the transition in RTL mode if the element does\n        // not have a static height and is not rendered. See related issue: #9465\n        state('left', style({\n            transform: 'translate3d(-100%, 0, 0)',\n            minHeight: '1px',\n            // Normally this is redundant since we detach the content from the DOM, but if the user\n            // opted into keeping the content in the DOM, we have to hide it so it isn't focusable.\n            visibility: 'hidden',\n        })),\n        state('right', style({\n            transform: 'translate3d(100%, 0, 0)',\n            minHeight: '1px',\n            visibility: 'hidden',\n        })),\n        transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),\n        transition('void => left-origin-center', [\n            style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' }),\n            animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\n        ]),\n        transition('void => right-origin-center', [\n            style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' }),\n            animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\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.io/license\n */\n/**\n * The portal host directive for the contents of the tab.\n * @docs-private\n */\nclass MatTabBodyPortal extends CdkPortalOutlet {\n    constructor(componentFactoryResolver, viewContainerRef, _host, _document) {\n        super(componentFactoryResolver, viewContainerRef, _document);\n        this._host = _host;\n        /** Subscription to events for when the tab body begins centering. */\n        this._centeringSub = Subscription.EMPTY;\n        /** Subscription to events for when the tab body finishes leaving from center position. */\n        this._leavingSub = Subscription.EMPTY;\n    }\n    /** Set initial visibility or set up subscription for changing visibility. */\n    ngOnInit() {\n        super.ngOnInit();\n        this._centeringSub = this._host._beforeCentering\n            .pipe(startWith(this._host._isCenterPosition(this._host._position)))\n            .subscribe((isCentering) => {\n            if (isCentering && !this.hasAttached()) {\n                this.attach(this._host._content);\n            }\n        });\n        this._leavingSub = this._host._afterLeavingCenter.subscribe(() => {\n            if (!this._host.preserveContent) {\n                this.detach();\n            }\n        });\n    }\n    /** Clean up centering subscription. */\n    ngOnDestroy() {\n        super.ngOnDestroy();\n        this._centeringSub.unsubscribe();\n        this._leavingSub.unsubscribe();\n    }\n}\nMatTabBodyPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBodyPortal, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: forwardRef(() => MatTabBody) }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabBodyPortal, selector: \"[matTabBodyHost]\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBodyPortal, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matTabBodyHost]',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: MatTabBody, decorators: [{\n                    type: Inject,\n                    args: [forwardRef(() => MatTabBody)]\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n/**\n * Base class with all of the `MatTabBody` functionality.\n * @docs-private\n */\nclass _MatTabBodyBase {\n    constructor(_elementRef, _dir, changeDetectorRef) {\n        this._elementRef = _elementRef;\n        this._dir = _dir;\n        /** Subscription to the directionality change observable. */\n        this._dirChangeSubscription = Subscription.EMPTY;\n        /** Emits when an animation on the tab is complete. */\n        this._translateTabComplete = new Subject();\n        /** Event emitted when the tab begins to animate towards the center as the active tab. */\n        this._onCentering = new EventEmitter();\n        /** Event emitted before the centering of the tab begins. */\n        this._beforeCentering = new EventEmitter();\n        /** Event emitted before the centering of the tab begins. */\n        this._afterLeavingCenter = new EventEmitter();\n        /** Event emitted when the tab completes its animation towards the center. */\n        this._onCentered = new EventEmitter(true);\n        // Note that the default value will always be overwritten by `MatTabBody`, but we need one\n        // anyway to prevent the animations module from throwing an error if the body is used on its own.\n        /** Duration for the tab's animation. */\n        this.animationDuration = '500ms';\n        /** Whether the tab's content should be kept in the DOM while it's off-screen. */\n        this.preserveContent = false;\n        if (_dir) {\n            this._dirChangeSubscription = _dir.change.subscribe((dir) => {\n                this._computePositionAnimationState(dir);\n                changeDetectorRef.markForCheck();\n            });\n        }\n        // Ensure that we get unique animation events, because the `.done` callback can get\n        // invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.\n        this._translateTabComplete\n            .pipe(distinctUntilChanged((x, y) => {\n            return x.fromState === y.fromState && x.toState === y.toState;\n        }))\n            .subscribe(event => {\n            // If the transition to the center is complete, emit an event.\n            if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {\n                this._onCentered.emit();\n            }\n            if (this._isCenterPosition(event.fromState) && !this._isCenterPosition(this._position)) {\n                this._afterLeavingCenter.emit();\n            }\n        });\n    }\n    /** The shifted index position of the tab body, where zero represents the active center tab. */\n    set position(position) {\n        this._positionIndex = position;\n        this._computePositionAnimationState();\n    }\n    /**\n     * After initialized, check if the content is centered and has an origin. If so, set the\n     * special position states that transition the tab from the left or right before centering.\n     */\n    ngOnInit() {\n        if (this._position == 'center' && this.origin != null) {\n            this._position = this._computePositionFromOrigin(this.origin);\n        }\n    }\n    ngOnDestroy() {\n        this._dirChangeSubscription.unsubscribe();\n        this._translateTabComplete.complete();\n    }\n    _onTranslateTabStarted(event) {\n        const isCentering = this._isCenterPosition(event.toState);\n        this._beforeCentering.emit(isCentering);\n        if (isCentering) {\n            this._onCentering.emit(this._elementRef.nativeElement.clientHeight);\n        }\n    }\n    /** The text direction of the containing app. */\n    _getLayoutDirection() {\n        return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n    }\n    /** Whether the provided position state is considered center, regardless of origin. */\n    _isCenterPosition(position) {\n        return (position == 'center' || position == 'left-origin-center' || position == 'right-origin-center');\n    }\n    /** Computes the position state that will be used for the tab-body animation trigger. */\n    _computePositionAnimationState(dir = this._getLayoutDirection()) {\n        if (this._positionIndex < 0) {\n            this._position = dir == 'ltr' ? 'left' : 'right';\n        }\n        else if (this._positionIndex > 0) {\n            this._position = dir == 'ltr' ? 'right' : 'left';\n        }\n        else {\n            this._position = 'center';\n        }\n    }\n    /**\n     * Computes the position state based on the specified origin position. This is used if the\n     * tab is becoming visible immediately after creation.\n     */\n    _computePositionFromOrigin(origin) {\n        const dir = this._getLayoutDirection();\n        if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {\n            return 'left-origin-center';\n        }\n        return 'right-origin-center';\n    }\n}\n_MatTabBodyBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabBodyBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabBodyBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabBodyBase, inputs: { _content: [\"content\", \"_content\"], origin: \"origin\", animationDuration: \"animationDuration\", preserveContent: \"preserveContent\", position: \"position\" }, outputs: { _onCentering: \"_onCentering\", _beforeCentering: \"_beforeCentering\", _afterLeavingCenter: \"_afterLeavingCenter\", _onCentered: \"_onCentered\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabBodyBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _onCentering: [{\n                type: Output\n            }], _beforeCentering: [{\n                type: Output\n            }], _afterLeavingCenter: [{\n                type: Output\n            }], _onCentered: [{\n                type: Output\n            }], _content: [{\n                type: Input,\n                args: ['content']\n            }], origin: [{\n                type: Input\n            }], animationDuration: [{\n                type: Input\n            }], preserveContent: [{\n                type: Input\n            }], position: [{\n                type: Input\n            }] } });\n/**\n * Wrapper for the contents of a tab.\n * @docs-private\n */\nclass MatTabBody extends _MatTabBodyBase {\n    constructor(elementRef, dir, changeDetectorRef) {\n        super(elementRef, dir, changeDetectorRef);\n    }\n}\nMatTabBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBody, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatTabBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabBody, selector: \"mat-tab-body\", host: { classAttribute: \"mat-tab-body\" }, viewQueries: [{ propertyName: \"_portalHost\", first: true, predicate: CdkPortalOutlet, descendants: true }], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-tab-body-content\\\" #content\\n     [@translateTab]=\\\"{\\n        value: _position,\\n        params: {animationDuration: animationDuration}\\n     }\\\"\\n     (@translateTab.start)=\\\"_onTranslateTabStarted($event)\\\"\\n     (@translateTab.done)=\\\"_translateTabComplete.next($event)\\\"\\n     cdkScrollable>\\n  <ng-template matTabBodyHost></ng-template>\\n</div>\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*=\\\"visibility: hidden\\\"]{display:none}\"], dependencies: [{ kind: \"directive\", type: MatTabBodyPortal, selector: \"[matTabBodyHost]\" }], animations: [matTabsAnimations.translateTab], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabBody, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-tab-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matTabsAnimations.translateTab], host: {\n                        'class': 'mat-tab-body',\n                    }, template: \"<div class=\\\"mat-tab-body-content\\\" #content\\n     [@translateTab]=\\\"{\\n        value: _position,\\n        params: {animationDuration: animationDuration}\\n     }\\\"\\n     (@translateTab.start)=\\\"_onTranslateTabStarted($event)\\\"\\n     (@translateTab.done)=\\\"_translateTabComplete.next($event)\\\"\\n     cdkScrollable>\\n  <ng-template matTabBodyHost></ng-template>\\n</div>\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*=\\\"visibility: hidden\\\"]{display:none}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _portalHost: [{\n                type: ViewChild,\n                args: [CdkPortalOutlet]\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.io/license\n */\n/** Injection token that can be used to provide the default options the tabs module. */\nconst MAT_TABS_CONFIG = new InjectionToken('MAT_TABS_CONFIG');\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.io/license\n */\n// Boilerplate for applying mixins to MatTabLabelWrapper.\n/** @docs-private */\nconst _MatTabLabelWrapperBase = mixinDisabled(class {\n});\n/**\n * Used in the `mat-tab-group` view to display tab labels.\n * @docs-private\n */\nclass MatTabLabelWrapper extends _MatTabLabelWrapperBase {\n    constructor(elementRef) {\n        super();\n        this.elementRef = elementRef;\n    }\n    /** Sets focus on the wrapper element */\n    focus() {\n        this.elementRef.nativeElement.focus();\n    }\n    getOffsetLeft() {\n        return this.elementRef.nativeElement.offsetLeft;\n    }\n    getOffsetWidth() {\n        return this.elementRef.nativeElement.offsetWidth;\n    }\n}\nMatTabLabelWrapper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabelWrapper, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabelWrapper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: { disabled: \"disabled\" }, host: { properties: { \"class.mat-tab-disabled\": \"disabled\", \"attr.aria-disabled\": \"!!disabled\" } }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLabelWrapper, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matTabLabelWrapper]',\n                    inputs: ['disabled'],\n                    host: {\n                        '[class.mat-tab-disabled]': 'disabled',\n                        '[attr.aria-disabled]': '!!disabled',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\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.io/license\n */\n/** Config used to bind passive event listeners */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({\n    passive: true,\n});\n/**\n * The distance in pixels that will be overshot when scrolling a tab label into view. This helps\n * provide a small affordance to the label next to it.\n */\nconst EXAGGERATED_OVERSCROLL = 60;\n/**\n * Amount of milliseconds to wait before starting to scroll the header automatically.\n * Set a little conservatively in order to handle fake events dispatched on touch devices.\n */\nconst HEADER_SCROLL_DELAY = 650;\n/**\n * Interval in milliseconds at which to scroll the header\n * while the user is holding their pointer.\n */\nconst HEADER_SCROLL_INTERVAL = 100;\n/**\n * Base class for a tab header that supported pagination.\n * @docs-private\n */\nclass MatPaginatedTabHeader {\n    constructor(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {\n        this._elementRef = _elementRef;\n        this._changeDetectorRef = _changeDetectorRef;\n        this._viewportRuler = _viewportRuler;\n        this._dir = _dir;\n        this._ngZone = _ngZone;\n        this._platform = _platform;\n        this._animationMode = _animationMode;\n        /** The distance in pixels that the tab labels should be translated to the left. */\n        this._scrollDistance = 0;\n        /** Whether the header should scroll to the selected index after the view has been checked. */\n        this._selectedIndexChanged = false;\n        /** Emits when the component is destroyed. */\n        this._destroyed = new Subject();\n        /** Whether the controls for pagination should be displayed */\n        this._showPaginationControls = false;\n        /** Whether the tab list can be scrolled more towards the end of the tab label list. */\n        this._disableScrollAfter = true;\n        /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */\n        this._disableScrollBefore = true;\n        /** Stream that will stop the automated scrolling. */\n        this._stopScrolling = new Subject();\n        this._disablePagination = false;\n        this._selectedIndex = 0;\n        /** Event emitted when the option is selected. */\n        this.selectFocusedIndex = new EventEmitter();\n        /** Event emitted when a label is focused. */\n        this.indexFocused = new EventEmitter();\n        // Bind the `mouseleave` event on the outside since it doesn't change anything in the view.\n        _ngZone.runOutsideAngular(() => {\n            fromEvent(_elementRef.nativeElement, 'mouseleave')\n                .pipe(takeUntil(this._destroyed))\n                .subscribe(() => {\n                this._stopInterval();\n            });\n        });\n    }\n    /**\n     * Whether pagination should be disabled. This can be used to avoid unnecessary\n     * layout recalculations if it's known that pagination won't be required.\n     */\n    get disablePagination() {\n        return this._disablePagination;\n    }\n    set disablePagination(value) {\n        this._disablePagination = coerceBooleanProperty(value);\n    }\n    /** The index of the active tab. */\n    get selectedIndex() {\n        return this._selectedIndex;\n    }\n    set selectedIndex(value) {\n        value = coerceNumberProperty(value);\n        if (this._selectedIndex != value) {\n            this._selectedIndexChanged = true;\n            this._selectedIndex = value;\n            if (this._keyManager) {\n                this._keyManager.updateActiveItem(value);\n            }\n        }\n    }\n    ngAfterViewInit() {\n        // We need to handle these events manually, because we want to bind passive event listeners.\n        fromEvent(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => {\n            this._handlePaginatorPress('before');\n        });\n        fromEvent(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => {\n            this._handlePaginatorPress('after');\n        });\n    }\n    ngAfterContentInit() {\n        const dirChange = this._dir ? this._dir.change : of('ltr');\n        const resize = this._viewportRuler.change(150);\n        const realign = () => {\n            this.updatePagination();\n            this._alignInkBarToSelectedTab();\n        };\n        this._keyManager = new FocusKeyManager(this._items)\n            .withHorizontalOrientation(this._getLayoutDirection())\n            .withHomeAndEnd()\n            .withWrap();\n        this._keyManager.updateActiveItem(this._selectedIndex);\n        // Defer the first call in order to allow for slower browsers to lay out the elements.\n        // This helps in cases where the user lands directly on a page with paginated tabs.\n        // Note that we use `onStable` instead of `requestAnimationFrame`, because the latter\n        // can hold up tests that are in a background tab.\n        this._ngZone.onStable.pipe(take(1)).subscribe(realign);\n        // On dir change or window resize, realign the ink bar and update the orientation of\n        // the key manager if the direction has changed.\n        merge(dirChange, resize, this._items.changes, this._itemsResized())\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => {\n            // We need to defer this to give the browser some time to recalculate\n            // the element dimensions. The call has to be wrapped in `NgZone.run`,\n            // because the viewport change handler runs outside of Angular.\n            this._ngZone.run(() => {\n                Promise.resolve().then(() => {\n                    // Clamp the scroll distance, because it can change with the number of tabs.\n                    this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), this._scrollDistance));\n                    realign();\n                });\n            });\n            this._keyManager.withHorizontalOrientation(this._getLayoutDirection());\n        });\n        // If there is a change in the focus key manager we need to emit the `indexFocused`\n        // event in order to provide a public event that notifies about focus changes. Also we realign\n        // the tabs container by scrolling the new focused tab into the visible section.\n        this._keyManager.change.pipe(takeUntil(this._destroyed)).subscribe(newFocusIndex => {\n            this.indexFocused.emit(newFocusIndex);\n            this._setTabFocus(newFocusIndex);\n        });\n    }\n    /** Sends any changes that could affect the layout of the items. */\n    _itemsResized() {\n        if (typeof ResizeObserver !== 'function') {\n            return EMPTY;\n        }\n        return this._items.changes.pipe(startWith(this._items), switchMap((tabItems) => new Observable((observer) => this._ngZone.runOutsideAngular(() => {\n            const resizeObserver = new ResizeObserver(entries => observer.next(entries));\n            tabItems.forEach(item => resizeObserver.observe(item.elementRef.nativeElement));\n            return () => {\n                resizeObserver.disconnect();\n            };\n        }))), \n        // Skip the first emit since the resize observer emits when an item\n        // is observed for new items when the tab is already inserted\n        skip(1), \n        // Skip emissions where all the elements are invisible since we don't want\n        // the header to try and re-render with invalid measurements. See #25574.\n        filter(entries => entries.some(e => e.contentRect.width > 0 && e.contentRect.height > 0)));\n    }\n    ngAfterContentChecked() {\n        // If the number of tab labels have changed, check if scrolling should be enabled\n        if (this._tabLabelCount != this._items.length) {\n            this.updatePagination();\n            this._tabLabelCount = this._items.length;\n            this._changeDetectorRef.markForCheck();\n        }\n        // If the selected index has changed, scroll to the label and check if the scrolling controls\n        // should be disabled.\n        if (this._selectedIndexChanged) {\n            this._scrollToLabel(this._selectedIndex);\n            this._checkScrollingControls();\n            this._alignInkBarToSelectedTab();\n            this._selectedIndexChanged = false;\n            this._changeDetectorRef.markForCheck();\n        }\n        // If the scroll distance has been changed (tab selected, focused, scroll controls activated),\n        // then translate the header to reflect this.\n        if (this._scrollDistanceChanged) {\n            this._updateTabScrollPosition();\n            this._scrollDistanceChanged = false;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    ngOnDestroy() {\n        this._destroyed.next();\n        this._destroyed.complete();\n        this._stopScrolling.complete();\n    }\n    /** Handles keyboard events on the header. */\n    _handleKeydown(event) {\n        // We don't handle any key bindings with a modifier key.\n        if (hasModifierKey(event)) {\n            return;\n        }\n        switch (event.keyCode) {\n            case ENTER:\n            case SPACE:\n                if (this.focusIndex !== this.selectedIndex) {\n                    this.selectFocusedIndex.emit(this.focusIndex);\n                    this._itemSelected(event);\n                }\n                break;\n            default:\n                this._keyManager.onKeydown(event);\n        }\n    }\n    /**\n     * Callback for when the MutationObserver detects that the content has changed.\n     */\n    _onContentChanges() {\n        const textContent = this._elementRef.nativeElement.textContent;\n        // We need to diff the text content of the header, because the MutationObserver callback\n        // will fire even if the text content didn't change which is inefficient and is prone\n        // to infinite loops if a poorly constructed expression is passed in (see #14249).\n        if (textContent !== this._currentTextContent) {\n            this._currentTextContent = textContent || '';\n            // The content observer runs outside the `NgZone` by default, which\n            // means that we need to bring the callback back in ourselves.\n            this._ngZone.run(() => {\n                this.updatePagination();\n                this._alignInkBarToSelectedTab();\n                this._changeDetectorRef.markForCheck();\n            });\n        }\n    }\n    /**\n     * Updates the view whether pagination should be enabled or not.\n     *\n     * WARNING: Calling this method can be very costly in terms of performance. It should be called\n     * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n     * page.\n     */\n    updatePagination() {\n        this._checkPaginationEnabled();\n        this._checkScrollingControls();\n        this._updateTabScrollPosition();\n    }\n    /** Tracks which element has focus; used for keyboard navigation */\n    get focusIndex() {\n        return this._keyManager ? this._keyManager.activeItemIndex : 0;\n    }\n    /** When the focus index is set, we must manually send focus to the correct label */\n    set focusIndex(value) {\n        if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {\n            return;\n        }\n        this._keyManager.setActiveItem(value);\n    }\n    /**\n     * Determines if an index is valid.  If the tabs are not ready yet, we assume that the user is\n     * providing a valid index and return true.\n     */\n    _isValidIndex(index) {\n        if (!this._items) {\n            return true;\n        }\n        const tab = this._items ? this._items.toArray()[index] : null;\n        return !!tab && !tab.disabled;\n    }\n    /**\n     * Sets focus on the HTML element for the label wrapper and scrolls it into the view if\n     * scrolling is enabled.\n     */\n    _setTabFocus(tabIndex) {\n        if (this._showPaginationControls) {\n            this._scrollToLabel(tabIndex);\n        }\n        if (this._items && this._items.length) {\n            this._items.toArray()[tabIndex].focus();\n            // Do not let the browser manage scrolling to focus the element, this will be handled\n            // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width\n            // should be the full width minus the offset width.\n            const containerEl = this._tabListContainer.nativeElement;\n            const dir = this._getLayoutDirection();\n            if (dir == 'ltr') {\n                containerEl.scrollLeft = 0;\n            }\n            else {\n                containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;\n            }\n        }\n    }\n    /** The layout direction of the containing app. */\n    _getLayoutDirection() {\n        return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n    }\n    /** Performs the CSS transformation on the tab list that will cause the list to scroll. */\n    _updateTabScrollPosition() {\n        if (this.disablePagination) {\n            return;\n        }\n        const scrollDistance = this.scrollDistance;\n        const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;\n        // Don't use `translate3d` here because we don't want to create a new layer. A new layer\n        // seems to cause flickering and overflow in Internet Explorer. For example, the ink bar\n        // and ripples will exceed the boundaries of the visible tab bar.\n        // See: https://github.com/angular/components/issues/10276\n        // We round the `transform` here, because transforms with sub-pixel precision cause some\n        // browsers to blur the content of the element.\n        this._tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;\n        // Setting the `transform` on IE will change the scroll offset of the parent, causing the\n        // position to be thrown off in some cases. We have to reset it ourselves to ensure that\n        // it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing\n        // with the scroll position throws off Chrome 71+ in RTL mode (see #14689).\n        if (this._platform.TRIDENT || this._platform.EDGE) {\n            this._tabListContainer.nativeElement.scrollLeft = 0;\n        }\n    }\n    /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */\n    get scrollDistance() {\n        return this._scrollDistance;\n    }\n    set scrollDistance(value) {\n        this._scrollTo(value);\n    }\n    /**\n     * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or\n     * the end of the list, respectively). The distance to scroll is computed to be a third of the\n     * length of the tab list view window.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    _scrollHeader(direction) {\n        const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        // Move the scroll distance one-third the length of the tab list's viewport.\n        const scrollAmount = ((direction == 'before' ? -1 : 1) * viewLength) / 3;\n        return this._scrollTo(this._scrollDistance + scrollAmount);\n    }\n    /** Handles click events on the pagination arrows. */\n    _handlePaginatorClick(direction) {\n        this._stopInterval();\n        this._scrollHeader(direction);\n    }\n    /**\n     * Moves the tab list such that the desired tab label (marked by index) is moved into view.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    _scrollToLabel(labelIndex) {\n        if (this.disablePagination) {\n            return;\n        }\n        const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;\n        if (!selectedLabel) {\n            return;\n        }\n        // The view length is the visible width of the tab labels.\n        const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        const { offsetLeft, offsetWidth } = selectedLabel.elementRef.nativeElement;\n        let labelBeforePos, labelAfterPos;\n        if (this._getLayoutDirection() == 'ltr') {\n            labelBeforePos = offsetLeft;\n            labelAfterPos = labelBeforePos + offsetWidth;\n        }\n        else {\n            labelAfterPos = this._tabListInner.nativeElement.offsetWidth - offsetLeft;\n            labelBeforePos = labelAfterPos - offsetWidth;\n        }\n        const beforeVisiblePos = this.scrollDistance;\n        const afterVisiblePos = this.scrollDistance + viewLength;\n        if (labelBeforePos < beforeVisiblePos) {\n            // Scroll header to move label to the before direction\n            this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;\n        }\n        else if (labelAfterPos > afterVisiblePos) {\n            // Scroll header to move label to the after direction\n            this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;\n        }\n    }\n    /**\n     * Evaluate whether the pagination controls should be displayed. If the scroll width of the\n     * tab list is wider than the size of the header container, then the pagination controls should\n     * be shown.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    _checkPaginationEnabled() {\n        if (this.disablePagination) {\n            this._showPaginationControls = false;\n        }\n        else {\n            const isEnabled = this._tabListInner.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;\n            if (!isEnabled) {\n                this.scrollDistance = 0;\n            }\n            if (isEnabled !== this._showPaginationControls) {\n                this._changeDetectorRef.markForCheck();\n            }\n            this._showPaginationControls = isEnabled;\n        }\n    }\n    /**\n     * Evaluate whether the before and after controls should be enabled or disabled.\n     * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the\n     * before button. If the header is at the end of the list (scroll distance is equal to the\n     * maximum distance we can scroll), then disable the after button.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    _checkScrollingControls() {\n        if (this.disablePagination) {\n            this._disableScrollAfter = this._disableScrollBefore = true;\n        }\n        else {\n            // Check if the pagination arrows should be activated.\n            this._disableScrollBefore = this.scrollDistance == 0;\n            this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /**\n     * Determines what is the maximum length in pixels that can be set for the scroll distance. This\n     * is equal to the difference in width between the tab list container and tab header container.\n     *\n     * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n     * should be called sparingly.\n     */\n    _getMaxScrollDistance() {\n        const lengthOfTabList = this._tabListInner.nativeElement.scrollWidth;\n        const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n        return lengthOfTabList - viewLength || 0;\n    }\n    /** Tells the ink-bar to align itself to the current label wrapper */\n    _alignInkBarToSelectedTab() {\n        const selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;\n        const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;\n        if (selectedLabelWrapper) {\n            this._inkBar.alignToElement(selectedLabelWrapper);\n        }\n        else {\n            this._inkBar.hide();\n        }\n    }\n    /** Stops the currently-running paginator interval.  */\n    _stopInterval() {\n        this._stopScrolling.next();\n    }\n    /**\n     * Handles the user pressing down on one of the paginators.\n     * Starts scrolling the header after a certain amount of time.\n     * @param direction In which direction the paginator should be scrolled.\n     */\n    _handlePaginatorPress(direction, mouseEvent) {\n        // Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to\n        // null check the `button`, but we do it so we don't break tests that use fake events.\n        if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {\n            return;\n        }\n        // Avoid overlapping timers.\n        this._stopInterval();\n        // Start a timer after the delay and keep firing based on the interval.\n        timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)\n            // Keep the timer going until something tells it to stop or the component is destroyed.\n            .pipe(takeUntil(merge(this._stopScrolling, this._destroyed)))\n            .subscribe(() => {\n            const { maxScrollDistance, distance } = this._scrollHeader(direction);\n            // Stop the timer if we've reached the start or the end.\n            if (distance === 0 || distance >= maxScrollDistance) {\n                this._stopInterval();\n            }\n        });\n    }\n    /**\n     * Scrolls the header to a given position.\n     * @param position Position to which to scroll.\n     * @returns Information on the current scroll distance and the maximum.\n     */\n    _scrollTo(position) {\n        if (this.disablePagination) {\n            return { maxScrollDistance: 0, distance: 0 };\n        }\n        const maxScrollDistance = this._getMaxScrollDistance();\n        this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));\n        // Mark that the scroll distance has changed so that after the view is checked, the CSS\n        // transformation can move the header.\n        this._scrollDistanceChanged = true;\n        this._checkScrollingControls();\n        return { maxScrollDistance, distance: this._scrollDistance };\n    }\n}\nMatPaginatedTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPaginatedTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatPaginatedTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatPaginatedTabHeader, inputs: { disablePagination: \"disablePagination\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatPaginatedTabHeader, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { disablePagination: [{\n                type: Input\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.io/license\n */\n/**\n * Base class with all of the `MatTabHeader` functionality.\n * @docs-private\n */\nclass _MatTabHeaderBase extends MatPaginatedTabHeader {\n    constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n        super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n        this._disableRipple = false;\n    }\n    /** Whether the ripple effect is disabled or not. */\n    get disableRipple() {\n        return this._disableRipple;\n    }\n    set disableRipple(value) {\n        this._disableRipple = coerceBooleanProperty(value);\n    }\n    _itemSelected(event) {\n        event.preventDefault();\n    }\n}\n_MatTabHeaderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabHeaderBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabHeaderBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabHeaderBase, inputs: { disableRipple: \"disableRipple\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabHeaderBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { disableRipple: [{\n                type: Input\n            }] } });\n/**\n * The header of the tab group which displays a list of all the tabs in the tab group. Includes\n * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the\n * width of the header container, then arrows will be displayed to allow the user to scroll\n * left and right across the header.\n * @docs-private\n */\nclass MatTabHeader extends _MatTabHeaderBase {\n    constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n        super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n    }\n}\nMatTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabHeader, selector: \"mat-tab-header\", inputs: { selectedIndex: \"selectedIndex\" }, outputs: { selectFocusedIndex: \"selectFocusedIndex\", indexFocused: \"indexFocused\" }, host: { properties: { \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\" }, classAttribute: \"mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: MatTabLabelWrapper }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], usesInheritance: true, ngImport: i0, template: \"<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n     #previousPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     tabindex=\\\"-1\\\"\\n     [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n     [disabled]=\\\"_disableScrollBefore || null\\\"\\n     (click)=\\\"_handlePaginatorClick('before')\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\\n<div class=\\\"mat-tab-label-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n  <div\\n    #tabList\\n    class=\\\"mat-tab-list\\\"\\n    [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n    role=\\\"tablist\\\"\\n    (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n    <div class=\\\"mat-tab-labels\\\" #tabListInner>\\n      <ng-content></ng-content>\\n    </div>\\n    <mat-ink-bar></mat-ink-bar>\\n  </div>\\n</div>\\n\\n<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n     #nextPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n     [disabled]=\\\"_disableScrollAfter || null\\\"\\n     tabindex=\\\"-1\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n     (click)=\\\"_handlePaginatorClick('after')\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\"], dependencies: [{ kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { kind: \"directive\", type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabHeader, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-tab-header', inputs: ['selectedIndex'], outputs: ['selectFocusedIndex', 'indexFocused'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {\n                        'class': 'mat-tab-header',\n                        '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n                        '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n                    }, template: \"<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n     #previousPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     tabindex=\\\"-1\\\"\\n     [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n     [disabled]=\\\"_disableScrollBefore || null\\\"\\n     (click)=\\\"_handlePaginatorClick('before')\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\\n<div class=\\\"mat-tab-label-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n  <div\\n    #tabList\\n    class=\\\"mat-tab-list\\\"\\n    [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n    role=\\\"tablist\\\"\\n    (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n    <div class=\\\"mat-tab-labels\\\" #tabListInner>\\n      <ng-content></ng-content>\\n    </div>\\n    <mat-ink-bar></mat-ink-bar>\\n  </div>\\n</div>\\n\\n<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n     #nextPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n     [disabled]=\\\"_disableScrollAfter || null\\\"\\n     tabindex=\\\"-1\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n     (click)=\\\"_handlePaginatorClick('after')\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { _items: [{\n                type: ContentChildren,\n                args: [MatTabLabelWrapper, { descendants: false }]\n            }], _inkBar: [{\n                type: ViewChild,\n                args: [MatInkBar, { static: true }]\n            }], _tabListContainer: [{\n                type: ViewChild,\n                args: ['tabListContainer', { static: true }]\n            }], _tabList: [{\n                type: ViewChild,\n                args: ['tabList', { static: true }]\n            }], _tabListInner: [{\n                type: ViewChild,\n                args: ['tabListInner', { static: true }]\n            }], _nextPaginator: [{\n                type: ViewChild,\n                args: ['nextPaginator']\n            }], _previousPaginator: [{\n                type: ViewChild,\n                args: ['previousPaginator']\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.io/license\n */\n/** Used to generate unique ID's for each tab component */\nlet nextId = 0;\n/** A simple change event emitted on focus or selection changes. */\nclass MatTabChangeEvent {\n}\n// Boilerplate for applying mixins to MatTabGroup.\n/** @docs-private */\nconst _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n}), 'primary');\n/**\n * Base class with all of the `MatTabGroupBase` functionality.\n * @docs-private\n */\nclass _MatTabGroupBase extends _MatTabGroupMixinBase {\n    constructor(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {\n        super(elementRef);\n        this._changeDetectorRef = _changeDetectorRef;\n        this._animationMode = _animationMode;\n        /** All of the tabs that belong to the group. */\n        this._tabs = new QueryList();\n        /** The tab index that should be selected after the content has been checked. */\n        this._indexToSelect = 0;\n        /** Index of the tab that was focused last. */\n        this._lastFocusedTabIndex = null;\n        /** Snapshot of the height of the tab body wrapper before another tab is activated. */\n        this._tabBodyWrapperHeight = 0;\n        /** Subscription to tabs being added/removed. */\n        this._tabsSubscription = Subscription.EMPTY;\n        /** Subscription to changes in the tab labels. */\n        this._tabLabelSubscription = Subscription.EMPTY;\n        this._dynamicHeight = false;\n        this._selectedIndex = null;\n        /** Position of the tab header. */\n        this.headerPosition = 'above';\n        this._disablePagination = false;\n        this._preserveContent = false;\n        /** Output to enable support for two-way binding on `[(selectedIndex)]` */\n        this.selectedIndexChange = new EventEmitter();\n        /** Event emitted when focus has changed within a tab group. */\n        this.focusChange = new EventEmitter();\n        /** Event emitted when the body animation has completed */\n        this.animationDone = new EventEmitter();\n        /** Event emitted when the tab selection has changed. */\n        this.selectedTabChange = new EventEmitter(true);\n        this._groupId = nextId++;\n        this.animationDuration =\n            defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : '500ms';\n        this.disablePagination =\n            defaultConfig && defaultConfig.disablePagination != null\n                ? defaultConfig.disablePagination\n                : false;\n        this.dynamicHeight =\n            defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;\n        this.contentTabIndex = defaultConfig?.contentTabIndex ?? null;\n        this.preserveContent = !!defaultConfig?.preserveContent;\n    }\n    /** Whether the tab group should grow to the size of the active tab. */\n    get dynamicHeight() {\n        return this._dynamicHeight;\n    }\n    set dynamicHeight(value) {\n        this._dynamicHeight = coerceBooleanProperty(value);\n    }\n    /** The index of the active tab. */\n    get selectedIndex() {\n        return this._selectedIndex;\n    }\n    set selectedIndex(value) {\n        this._indexToSelect = coerceNumberProperty(value, null);\n    }\n    /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */\n    get animationDuration() {\n        return this._animationDuration;\n    }\n    set animationDuration(value) {\n        this._animationDuration = /^\\d+$/.test(value + '') ? value + 'ms' : value;\n    }\n    /**\n     * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved\n     * accessibility when the tab does not have focusable elements or if it has scrollable content.\n     * The `tabindex` will be removed automatically for inactive tabs.\n     * Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html\n     */\n    get contentTabIndex() {\n        return this._contentTabIndex;\n    }\n    set contentTabIndex(value) {\n        this._contentTabIndex = coerceNumberProperty(value, null);\n    }\n    /**\n     * Whether pagination should be disabled. This can be used to avoid unnecessary\n     * layout recalculations if it's known that pagination won't be required.\n     */\n    get disablePagination() {\n        return this._disablePagination;\n    }\n    set disablePagination(value) {\n        this._disablePagination = coerceBooleanProperty(value);\n    }\n    /**\n     * By default tabs remove their content from the DOM while it's off-screen.\n     * Setting this to `true` will keep it in the DOM which will prevent elements\n     * like iframes and videos from reloading next time it comes back into the view.\n     */\n    get preserveContent() {\n        return this._preserveContent;\n    }\n    set preserveContent(value) {\n        this._preserveContent = coerceBooleanProperty(value);\n    }\n    /** Background color of the tab group. */\n    get backgroundColor() {\n        return this._backgroundColor;\n    }\n    set backgroundColor(value) {\n        const nativeElement = this._elementRef.nativeElement;\n        nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);\n        if (value) {\n            nativeElement.classList.add(`mat-background-${value}`);\n        }\n        this._backgroundColor = value;\n    }\n    /**\n     * After the content is checked, this component knows what tabs have been defined\n     * and what the selected index should be. This is where we can know exactly what position\n     * each tab should be in according to the new selected index, and additionally we know how\n     * a new selected tab should transition in (from the left or right).\n     */\n    ngAfterContentChecked() {\n        // Don't clamp the `indexToSelect` immediately in the setter because it can happen that\n        // the amount of tabs changes before the actual change detection runs.\n        const indexToSelect = (this._indexToSelect = this._clampTabIndex(this._indexToSelect));\n        // If there is a change in selected index, emit a change event. Should not trigger if\n        // the selected index has not yet been initialized.\n        if (this._selectedIndex != indexToSelect) {\n            const isFirstRun = this._selectedIndex == null;\n            if (!isFirstRun) {\n                this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));\n                // Preserve the height so page doesn't scroll up during tab change.\n                // Fixes https://stackblitz.com/edit/mat-tabs-scroll-page-top-on-tab-change\n                const wrapper = this._tabBodyWrapper.nativeElement;\n                wrapper.style.minHeight = wrapper.clientHeight + 'px';\n            }\n            // Changing these values after change detection has run\n            // since the checked content may contain references to them.\n            Promise.resolve().then(() => {\n                this._tabs.forEach((tab, index) => (tab.isActive = index === indexToSelect));\n                if (!isFirstRun) {\n                    this.selectedIndexChange.emit(indexToSelect);\n                    // Clear the min-height, this was needed during tab change to avoid\n                    // unnecessary scrolling.\n                    this._tabBodyWrapper.nativeElement.style.minHeight = '';\n                }\n            });\n        }\n        // Setup the position for each tab and optionally setup an origin on the next selected tab.\n        this._tabs.forEach((tab, index) => {\n            tab.position = index - indexToSelect;\n            // If there is already a selected tab, then set up an origin for the next selected tab\n            // if it doesn't have one already.\n            if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {\n                tab.origin = indexToSelect - this._selectedIndex;\n            }\n        });\n        if (this._selectedIndex !== indexToSelect) {\n            this._selectedIndex = indexToSelect;\n            this._lastFocusedTabIndex = null;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    ngAfterContentInit() {\n        this._subscribeToAllTabChanges();\n        this._subscribeToTabLabels();\n        // Subscribe to changes in the amount of tabs, in order to be\n        // able to re-render the content as new tabs are added or removed.\n        this._tabsSubscription = this._tabs.changes.subscribe(() => {\n            const indexToSelect = this._clampTabIndex(this._indexToSelect);\n            // Maintain the previously-selected tab if a new tab is added or removed and there is no\n            // explicit change that selects a different tab.\n            if (indexToSelect === this._selectedIndex) {\n                const tabs = this._tabs.toArray();\n                let selectedTab;\n                for (let i = 0; i < tabs.length; i++) {\n                    if (tabs[i].isActive) {\n                        // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed\n                        // event, otherwise the consumer may end up in an infinite loop in some edge cases like\n                        // adding a tab within the `selectedIndexChange` event.\n                        this._indexToSelect = this._selectedIndex = i;\n                        this._lastFocusedTabIndex = null;\n                        selectedTab = tabs[i];\n                        break;\n                    }\n                }\n                // If we haven't found an active tab and a tab exists at the selected index, it means\n                // that the active tab was swapped out. Since this won't be picked up by the rendering\n                // loop in `ngAfterContentChecked`, we need to sync it up manually.\n                if (!selectedTab && tabs[indexToSelect]) {\n                    Promise.resolve().then(() => {\n                        tabs[indexToSelect].isActive = true;\n                        this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));\n                    });\n                }\n            }\n            this._changeDetectorRef.markForCheck();\n        });\n    }\n    /** Listens to changes in all of the tabs. */\n    _subscribeToAllTabChanges() {\n        // Since we use a query with `descendants: true` to pick up the tabs, we may end up catching\n        // some that are inside of nested tab groups. We filter them out manually by checking that\n        // the closest group to the tab is the current one.\n        this._allTabs.changes.pipe(startWith(this._allTabs)).subscribe((tabs) => {\n            this._tabs.reset(tabs.filter(tab => {\n                return tab._closestTabGroup === this || !tab._closestTabGroup;\n            }));\n            this._tabs.notifyOnChanges();\n        });\n    }\n    ngOnDestroy() {\n        this._tabs.destroy();\n        this._tabsSubscription.unsubscribe();\n        this._tabLabelSubscription.unsubscribe();\n    }\n    /** Re-aligns the ink bar to the selected tab element. */\n    realignInkBar() {\n        if (this._tabHeader) {\n            this._tabHeader._alignInkBarToSelectedTab();\n        }\n    }\n    /**\n     * Recalculates the tab group's pagination dimensions.\n     *\n     * WARNING: Calling this method can be very costly in terms of performance. It should be called\n     * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n     * page.\n     */\n    updatePagination() {\n        if (this._tabHeader) {\n            this._tabHeader.updatePagination();\n        }\n    }\n    /**\n     * Sets focus to a particular tab.\n     * @param index Index of the tab to be focused.\n     */\n    focusTab(index) {\n        const header = this._tabHeader;\n        if (header) {\n            header.focusIndex = index;\n        }\n    }\n    _focusChanged(index) {\n        this._lastFocusedTabIndex = index;\n        this.focusChange.emit(this._createChangeEvent(index));\n    }\n    _createChangeEvent(index) {\n        const event = new MatTabChangeEvent();\n        event.index = index;\n        if (this._tabs && this._tabs.length) {\n            event.tab = this._tabs.toArray()[index];\n        }\n        return event;\n    }\n    /**\n     * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is\n     * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the\n     * binding to be updated, we need to subscribe to changes in it and trigger change detection\n     * manually.\n     */\n    _subscribeToTabLabels() {\n        if (this._tabLabelSubscription) {\n            this._tabLabelSubscription.unsubscribe();\n        }\n        this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges)).subscribe(() => this._changeDetectorRef.markForCheck());\n    }\n    /** Clamps the given index to the bounds of 0 and the tabs length. */\n    _clampTabIndex(index) {\n        // Note the `|| 0`, which ensures that values like NaN can't get through\n        // and which would otherwise throw the component into an infinite loop\n        // (since Math.max(NaN, 0) === NaN).\n        return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));\n    }\n    /** Returns a unique id for each tab label element */\n    _getTabLabelId(i) {\n        return `mat-tab-label-${this._groupId}-${i}`;\n    }\n    /** Returns a unique id for each tab content element */\n    _getTabContentId(i) {\n        return `mat-tab-content-${this._groupId}-${i}`;\n    }\n    /**\n     * Sets the height of the body wrapper to the height of the activating tab if dynamic\n     * height property is true.\n     */\n    _setTabBodyWrapperHeight(tabHeight) {\n        if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {\n            return;\n        }\n        const wrapper = this._tabBodyWrapper.nativeElement;\n        wrapper.style.height = this._tabBodyWrapperHeight + 'px';\n        // This conditional forces the browser to paint the height so that\n        // the animation to the new height can have an origin.\n        if (this._tabBodyWrapper.nativeElement.offsetHeight) {\n            wrapper.style.height = tabHeight + 'px';\n        }\n    }\n    /** Removes the height of the tab body wrapper. */\n    _removeTabBodyWrapperHeight() {\n        const wrapper = this._tabBodyWrapper.nativeElement;\n        this._tabBodyWrapperHeight = wrapper.clientHeight;\n        wrapper.style.height = '';\n        this.animationDone.emit();\n    }\n    /** Handle click events, setting new selected index if appropriate. */\n    _handleClick(tab, tabHeader, index) {\n        if (!tab.disabled) {\n            this.selectedIndex = tabHeader.focusIndex = index;\n        }\n    }\n    /** Retrieves the tabindex for the tab. */\n    _getTabIndex(tab, index) {\n        if (tab.disabled) {\n            return null;\n        }\n        const targetIndex = this._lastFocusedTabIndex ?? this.selectedIndex;\n        return index === targetIndex ? 0 : -1;\n    }\n    /** Callback for when the focused state of a tab has changed. */\n    _tabFocusChanged(focusOrigin, index) {\n        // Mouse/touch focus happens during the `mousedown`/`touchstart` phase which\n        // can cause the tab to be moved out from under the pointer, interrupting the\n        // click sequence (see #21898). We don't need to scroll the tab into view for\n        // such cases anyway, because it will be done when the tab becomes selected.\n        if (focusOrigin && focusOrigin !== 'mouse' && focusOrigin !== 'touch') {\n            this._tabHeader.focusIndex = index;\n        }\n    }\n}\n_MatTabGroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabGroupBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabGroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabGroupBase, inputs: { dynamicHeight: \"dynamicHeight\", selectedIndex: \"selectedIndex\", headerPosition: \"headerPosition\", animationDuration: \"animationDuration\", contentTabIndex: \"contentTabIndex\", disablePagination: \"disablePagination\", preserveContent: \"preserveContent\", backgroundColor: \"backgroundColor\" }, outputs: { selectedIndexChange: \"selectedIndexChange\", focusChange: \"focusChange\", animationDone: \"animationDone\", selectedTabChange: \"selectedTabChange\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabGroupBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_TABS_CONFIG]\n                }, {\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { dynamicHeight: [{\n                type: Input\n            }], selectedIndex: [{\n                type: Input\n            }], headerPosition: [{\n                type: Input\n            }], animationDuration: [{\n                type: Input\n            }], contentTabIndex: [{\n                type: Input\n            }], disablePagination: [{\n                type: Input\n            }], preserveContent: [{\n                type: Input\n            }], backgroundColor: [{\n                type: Input\n            }], selectedIndexChange: [{\n                type: Output\n            }], focusChange: [{\n                type: Output\n            }], animationDone: [{\n                type: Output\n            }], selectedTabChange: [{\n                type: Output\n            }] } });\n/**\n * Material design tab-group component. Supports basic tab pairs (label + content) and includes\n * animated ink-bar, keyboard navigation, and screen reader.\n * See: https://material.io/design/components/tabs.html\n */\nclass MatTabGroup extends _MatTabGroupBase {\n    constructor(elementRef, changeDetectorRef, defaultConfig, animationMode) {\n        super(elementRef, changeDetectorRef, defaultConfig, animationMode);\n    }\n}\nMatTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabGroup, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabGroup, selector: \"mat-tab-group\", inputs: { color: \"color\", disableRipple: \"disableRipple\" }, host: { properties: { \"class.mat-tab-group-dynamic-height\": \"dynamicHeight\", \"class.mat-tab-group-inverted-header\": \"headerPosition === \\\"below\\\"\" }, classAttribute: \"mat-tab-group\" }, providers: [\n        {\n            provide: MAT_TAB_GROUP,\n            useExisting: MatTabGroup,\n        },\n    ], queries: [{ propertyName: \"_allTabs\", predicate: MatTab, descendants: true }], viewQueries: [{ propertyName: \"_tabBodyWrapper\", first: true, predicate: [\"tabBodyWrapper\"], descendants: true }, { propertyName: \"_tabHeader\", first: true, predicate: [\"tabHeader\"], descendants: true }], exportAs: [\"matTabGroup\"], usesInheritance: true, ngImport: i0, template: \"<mat-tab-header #tabHeader\\n               [selectedIndex]=\\\"selectedIndex || 0\\\"\\n               [disableRipple]=\\\"disableRipple\\\"\\n               [disablePagination]=\\\"disablePagination\\\"\\n               (indexFocused)=\\\"_focusChanged($event)\\\"\\n               (selectFocusedIndex)=\\\"selectedIndex = $event\\\">\\n  <div class=\\\"mat-tab-label mat-focus-indicator\\\" role=\\\"tab\\\" matTabLabelWrapper mat-ripple\\n       cdkMonitorElementFocus\\n       *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n       [id]=\\\"_getTabLabelId(i)\\\"\\n       [attr.tabIndex]=\\\"_getTabIndex(tab, i)\\\"\\n       [attr.aria-posinset]=\\\"i + 1\\\"\\n       [attr.aria-setsize]=\\\"_tabs.length\\\"\\n       [attr.aria-controls]=\\\"_getTabContentId(i)\\\"\\n       [attr.aria-selected]=\\\"selectedIndex === i\\\"\\n       [attr.aria-label]=\\\"tab.ariaLabel || null\\\"\\n       [attr.aria-labelledby]=\\\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\\\"\\n       [class.mat-tab-label-active]=\\\"selectedIndex === i\\\"\\n       [ngClass]=\\\"tab.labelClass\\\"\\n       [disabled]=\\\"tab.disabled\\\"\\n       [matRippleDisabled]=\\\"tab.disabled || disableRipple\\\"\\n       (click)=\\\"_handleClick(tab, tabHeader, i)\\\"\\n       (cdkFocusChange)=\\\"_tabFocusChanged($event, i)\\\">\\n\\n\\n    <div class=\\\"mat-tab-label-content\\\">\\n      <!-- If there is a label template, use it. -->\\n      <ng-template [ngIf]=\\\"tab.templateLabel\\\" [ngIfElse]=\\\"tabTextLabel\\\">\\n        <ng-template [cdkPortalOutlet]=\\\"tab.templateLabel\\\"></ng-template>\\n      </ng-template>\\n\\n      <!-- If there is not a label template, fall back to the text label. -->\\n      <ng-template #tabTextLabel>{{tab.textLabel}}</ng-template>\\n    </div>\\n  </div>\\n</mat-tab-header>\\n\\n<div\\n  class=\\\"mat-tab-body-wrapper\\\"\\n  [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n  #tabBodyWrapper>\\n  <mat-tab-body role=\\\"tabpanel\\\"\\n               *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n               [id]=\\\"_getTabContentId(i)\\\"\\n               [attr.tabindex]=\\\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\\\"\\n               [attr.aria-labelledby]=\\\"_getTabLabelId(i)\\\"\\n               [class.mat-tab-body-active]=\\\"selectedIndex === i\\\"\\n               [ngClass]=\\\"tab.bodyClass\\\"\\n               [content]=\\\"tab.content!\\\"\\n               [position]=\\\"tab.position!\\\"\\n               [origin]=\\\"tab.origin\\\"\\n               [animationDuration]=\\\"animationDuration\\\"\\n               [preserveContent]=\\\"preserveContent\\\"\\n               (_onCentered)=\\\"_removeTabBodyWrapperHeight()\\\"\\n               (_onCentering)=\\\"_setTabBodyWrapperHeight($event)\\\">\\n  </mat-tab-body>\\n</div>\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\"], dependencies: [{ kind: \"directive\", type: i1$2.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$2.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }, { kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i7.CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: [\"cdkFocusChange\"], exportAs: [\"cdkMonitorFocus\"] }, { kind: \"directive\", type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: [\"disabled\"] }, { kind: \"component\", type: MatTabBody, selector: \"mat-tab-body\" }, { kind: \"component\", type: MatTabHeader, selector: \"mat-tab-header\", inputs: [\"selectedIndex\"], outputs: [\"selectFocusedIndex\", \"indexFocused\"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabGroup, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [\n                        {\n                            provide: MAT_TAB_GROUP,\n                            useExisting: MatTabGroup,\n                        },\n                    ], host: {\n                        'class': 'mat-tab-group',\n                        '[class.mat-tab-group-dynamic-height]': 'dynamicHeight',\n                        '[class.mat-tab-group-inverted-header]': 'headerPosition === \"below\"',\n                    }, template: \"<mat-tab-header #tabHeader\\n               [selectedIndex]=\\\"selectedIndex || 0\\\"\\n               [disableRipple]=\\\"disableRipple\\\"\\n               [disablePagination]=\\\"disablePagination\\\"\\n               (indexFocused)=\\\"_focusChanged($event)\\\"\\n               (selectFocusedIndex)=\\\"selectedIndex = $event\\\">\\n  <div class=\\\"mat-tab-label mat-focus-indicator\\\" role=\\\"tab\\\" matTabLabelWrapper mat-ripple\\n       cdkMonitorElementFocus\\n       *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n       [id]=\\\"_getTabLabelId(i)\\\"\\n       [attr.tabIndex]=\\\"_getTabIndex(tab, i)\\\"\\n       [attr.aria-posinset]=\\\"i + 1\\\"\\n       [attr.aria-setsize]=\\\"_tabs.length\\\"\\n       [attr.aria-controls]=\\\"_getTabContentId(i)\\\"\\n       [attr.aria-selected]=\\\"selectedIndex === i\\\"\\n       [attr.aria-label]=\\\"tab.ariaLabel || null\\\"\\n       [attr.aria-labelledby]=\\\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\\\"\\n       [class.mat-tab-label-active]=\\\"selectedIndex === i\\\"\\n       [ngClass]=\\\"tab.labelClass\\\"\\n       [disabled]=\\\"tab.disabled\\\"\\n       [matRippleDisabled]=\\\"tab.disabled || disableRipple\\\"\\n       (click)=\\\"_handleClick(tab, tabHeader, i)\\\"\\n       (cdkFocusChange)=\\\"_tabFocusChanged($event, i)\\\">\\n\\n\\n    <div class=\\\"mat-tab-label-content\\\">\\n      <!-- If there is a label template, use it. -->\\n      <ng-template [ngIf]=\\\"tab.templateLabel\\\" [ngIfElse]=\\\"tabTextLabel\\\">\\n        <ng-template [cdkPortalOutlet]=\\\"tab.templateLabel\\\"></ng-template>\\n      </ng-template>\\n\\n      <!-- If there is not a label template, fall back to the text label. -->\\n      <ng-template #tabTextLabel>{{tab.textLabel}}</ng-template>\\n    </div>\\n  </div>\\n</mat-tab-header>\\n\\n<div\\n  class=\\\"mat-tab-body-wrapper\\\"\\n  [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n  #tabBodyWrapper>\\n  <mat-tab-body role=\\\"tabpanel\\\"\\n               *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n               [id]=\\\"_getTabContentId(i)\\\"\\n               [attr.tabindex]=\\\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\\\"\\n               [attr.aria-labelledby]=\\\"_getTabLabelId(i)\\\"\\n               [class.mat-tab-body-active]=\\\"selectedIndex === i\\\"\\n               [ngClass]=\\\"tab.bodyClass\\\"\\n               [content]=\\\"tab.content!\\\"\\n               [position]=\\\"tab.position!\\\"\\n               [origin]=\\\"tab.origin\\\"\\n               [animationDuration]=\\\"animationDuration\\\"\\n               [preserveContent]=\\\"preserveContent\\\"\\n               (_onCentered)=\\\"_removeTabBodyWrapperHeight()\\\"\\n               (_onCentering)=\\\"_setTabBodyWrapperHeight($event)\\\">\\n  </mat-tab-body>\\n</div>\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_TABS_CONFIG]\n                }, {\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { _allTabs: [{\n                type: ContentChildren,\n                args: [MatTab, { descendants: true }]\n            }], _tabBodyWrapper: [{\n                type: ViewChild,\n                args: ['tabBodyWrapper']\n            }], _tabHeader: [{\n                type: ViewChild,\n                args: ['tabHeader']\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.io/license\n */\n// Increasing integer for generating unique ids for tab nav components.\nlet nextUniqueId = 0;\n/**\n * Base class with all of the `MatTabNav` functionality.\n * @docs-private\n */\nclass _MatTabNavBase extends MatPaginatedTabHeader {\n    constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n        super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n        this._disableRipple = false;\n        /** Theme color of the nav bar. */\n        this.color = 'primary';\n    }\n    /** Background color of the tab nav. */\n    get backgroundColor() {\n        return this._backgroundColor;\n    }\n    set backgroundColor(value) {\n        const classList = this._elementRef.nativeElement.classList;\n        classList.remove(`mat-background-${this.backgroundColor}`);\n        if (value) {\n            classList.add(`mat-background-${value}`);\n        }\n        this._backgroundColor = value;\n    }\n    /** Whether the ripple effect is disabled or not. */\n    get disableRipple() {\n        return this._disableRipple;\n    }\n    set disableRipple(value) {\n        this._disableRipple = coerceBooleanProperty(value);\n    }\n    _itemSelected() {\n        // noop\n    }\n    ngAfterContentInit() {\n        // We need this to run before the `changes` subscription in parent to ensure that the\n        // selectedIndex is up-to-date by the time the super class starts looking for it.\n        this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {\n            this.updateActiveLink();\n        });\n        super.ngAfterContentInit();\n    }\n    /** Notifies the component that the active link has been changed. */\n    updateActiveLink() {\n        if (!this._items) {\n            return;\n        }\n        const items = this._items.toArray();\n        for (let i = 0; i < items.length; i++) {\n            if (items[i].active) {\n                this.selectedIndex = i;\n                this._changeDetectorRef.markForCheck();\n                if (this.tabPanel) {\n                    this.tabPanel._activeTabId = items[i].id;\n                }\n                return;\n            }\n        }\n        // The ink bar should hide itself if no items are active.\n        this.selectedIndex = -1;\n        this._inkBar.hide();\n    }\n    _getRole() {\n        return this.tabPanel ? 'tablist' : this._elementRef.nativeElement.getAttribute('role');\n    }\n}\n_MatTabNavBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabNavBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabNavBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabNavBase, inputs: { backgroundColor: \"backgroundColor\", disableRipple: \"disableRipple\", color: \"color\", tabPanel: \"tabPanel\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabNavBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { backgroundColor: [{\n                type: Input\n            }], disableRipple: [{\n                type: Input\n            }], color: [{\n                type: Input\n            }], tabPanel: [{\n                type: Input\n            }] } });\n/**\n * Navigation component matching the styles of the tab group header.\n * Provides anchored navigation with animated ink bar.\n */\nclass MatTabNav extends _MatTabNavBase {\n    constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n        super(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);\n    }\n}\nMatTabNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNav, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabNav, selector: \"[mat-tab-nav-bar]\", inputs: { color: \"color\" }, host: { properties: { \"attr.role\": \"_getRole()\", \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\", \"class.mat-primary\": \"color !== \\\"warn\\\" && color !== \\\"accent\\\"\", \"class.mat-accent\": \"color === \\\"accent\\\"\", \"class.mat-warn\": \"color === \\\"warn\\\"\" }, classAttribute: \"mat-tab-nav-bar mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: i0.forwardRef(function () { return MatTabLink; }), descendants: true }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], exportAs: [\"matTabNavBar\", \"matTabNav\"], usesInheritance: true, ngImport: i0, template: \"<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n     #previousPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     tabindex=\\\"-1\\\"\\n     [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n     [disabled]=\\\"_disableScrollBefore || null\\\"\\n     (click)=\\\"_handlePaginatorClick('before')\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\\n<div class=\\\"mat-tab-link-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n  <div\\n    class=\\\"mat-tab-list\\\"\\n    [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n    #tabList\\n    (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n    <div class=\\\"mat-tab-links\\\" #tabListInner>\\n      <ng-content></ng-content>\\n    </div>\\n    <mat-ink-bar></mat-ink-bar>\\n  </div>\\n</div>\\n\\n<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n     #nextPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n     [disabled]=\\\"_disableScrollAfter || null\\\"\\n     tabindex=\\\"-1\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n     (click)=\\\"_handlePaginatorClick('after')\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\"], dependencies: [{ kind: \"directive\", type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { kind: \"directive\", type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNav, decorators: [{\n            type: Component,\n            args: [{ selector: '[mat-tab-nav-bar]', exportAs: 'matTabNavBar, matTabNav', inputs: ['color'], host: {\n                        '[attr.role]': '_getRole()',\n                        'class': 'mat-tab-nav-bar mat-tab-header',\n                        '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n                        '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n                        '[class.mat-primary]': 'color !== \"warn\" && color !== \"accent\"',\n                        '[class.mat-accent]': 'color === \"accent\"',\n                        '[class.mat-warn]': 'color === \"warn\"',\n                    }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: \"<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n     #previousPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     tabindex=\\\"-1\\\"\\n     [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n     [disabled]=\\\"_disableScrollBefore || null\\\"\\n     (click)=\\\"_handlePaginatorClick('before')\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\\n<div class=\\\"mat-tab-link-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n  <div\\n    class=\\\"mat-tab-list\\\"\\n    [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n    #tabList\\n    (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n    <div class=\\\"mat-tab-links\\\" #tabListInner>\\n      <ng-content></ng-content>\\n    </div>\\n    <mat-ink-bar></mat-ink-bar>\\n  </div>\\n</div>\\n\\n<button class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n     #nextPaginator\\n     aria-hidden=\\\"true\\\"\\n     type=\\\"button\\\"\\n     mat-ripple\\n     [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n     [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n     [disabled]=\\\"_disableScrollAfter || null\\\"\\n     tabindex=\\\"-1\\\"\\n     (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n     (click)=\\\"_handlePaginatorClick('after')\\\"\\n     (touchend)=\\\"_stopInterval()\\\">\\n  <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</button>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { _items: [{\n                type: ContentChildren,\n                args: [forwardRef(() => MatTabLink), { descendants: true }]\n            }], _inkBar: [{\n                type: ViewChild,\n                args: [MatInkBar, { static: true }]\n            }], _tabListContainer: [{\n                type: ViewChild,\n                args: ['tabListContainer', { static: true }]\n            }], _tabList: [{\n                type: ViewChild,\n                args: ['tabList', { static: true }]\n            }], _tabListInner: [{\n                type: ViewChild,\n                args: ['tabListInner', { static: true }]\n            }], _nextPaginator: [{\n                type: ViewChild,\n                args: ['nextPaginator']\n            }], _previousPaginator: [{\n                type: ViewChild,\n                args: ['previousPaginator']\n            }] } });\n// Boilerplate for applying mixins to MatTabLink.\nconst _MatTabLinkMixinBase = mixinTabIndex(mixinDisableRipple(mixinDisabled(class {\n})));\n/** Base class with all of the `MatTabLink` functionality. */\nclass _MatTabLinkBase extends _MatTabLinkMixinBase {\n    constructor(_tabNavBar, \n    /** @docs-private */ elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {\n        super();\n        this._tabNavBar = _tabNavBar;\n        this.elementRef = elementRef;\n        this._focusMonitor = _focusMonitor;\n        /** Whether the tab link is active or not. */\n        this._isActive = false;\n        /** Unique id for the tab. */\n        this.id = `mat-tab-link-${nextUniqueId++}`;\n        this.rippleConfig = globalRippleOptions || {};\n        this.tabIndex = parseInt(tabIndex) || 0;\n        if (animationMode === 'NoopAnimations') {\n            this.rippleConfig.animation = { enterDuration: 0, exitDuration: 0 };\n        }\n    }\n    /** Whether the link is active. */\n    get active() {\n        return this._isActive;\n    }\n    set active(value) {\n        const newValue = coerceBooleanProperty(value);\n        if (newValue !== this._isActive) {\n            this._isActive = newValue;\n            this._tabNavBar.updateActiveLink();\n        }\n    }\n    /**\n     * Whether ripples are disabled on interaction.\n     * @docs-private\n     */\n    get rippleDisabled() {\n        return (this.disabled ||\n            this.disableRipple ||\n            this._tabNavBar.disableRipple ||\n            !!this.rippleConfig.disabled);\n    }\n    /** Focuses the tab link. */\n    focus() {\n        this.elementRef.nativeElement.focus();\n    }\n    ngAfterViewInit() {\n        this._focusMonitor.monitor(this.elementRef);\n    }\n    ngOnDestroy() {\n        this._focusMonitor.stopMonitoring(this.elementRef);\n    }\n    _handleFocus() {\n        // Since we allow navigation through tabbing in the nav bar, we\n        // have to update the focused index whenever the link receives focus.\n        this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);\n    }\n    _handleKeydown(event) {\n        if (this._tabNavBar.tabPanel && event.keyCode === SPACE) {\n            this.elementRef.nativeElement.click();\n        }\n    }\n    _getAriaControls() {\n        return this._tabNavBar.tabPanel\n            ? this._tabNavBar.tabPanel?.id\n            : this.elementRef.nativeElement.getAttribute('aria-controls');\n    }\n    _getAriaSelected() {\n        if (this._tabNavBar.tabPanel) {\n            return this.active ? 'true' : 'false';\n        }\n        else {\n            return this.elementRef.nativeElement.getAttribute('aria-selected');\n        }\n    }\n    _getAriaCurrent() {\n        return this.active && !this._tabNavBar.tabPanel ? 'page' : null;\n    }\n    _getRole() {\n        return this._tabNavBar.tabPanel ? 'tab' : this.elementRef.nativeElement.getAttribute('role');\n    }\n    _getTabIndex() {\n        if (this._tabNavBar.tabPanel) {\n            return this._isActive && !this.disabled ? 0 : -1;\n        }\n        else {\n            return this.tabIndex;\n        }\n    }\n}\n_MatTabLinkBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabLinkBase, deps: [{ token: _MatTabNavBase }, { token: i0.ElementRef }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabLinkBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTabLinkBase, inputs: { active: \"active\", id: \"id\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTabLinkBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: _MatTabNavBase }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n                }] }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { active: [{\n                type: Input\n            }], id: [{\n                type: Input\n            }] } });\n/**\n * Link inside of a `mat-tab-nav-bar`.\n */\nclass MatTabLink extends _MatTabLinkBase {\n    constructor(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {\n        super(tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);\n        this._tabLinkRipple = new RippleRenderer(this, ngZone, elementRef, platform);\n        this._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);\n    }\n    ngOnDestroy() {\n        super.ngOnDestroy();\n        this._tabLinkRipple._removeTriggerEvents();\n    }\n}\nMatTabLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLink, deps: [{ token: MatTabNav }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabLink, selector: \"[mat-tab-link], [matTabLink]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { listeners: { \"focus\": \"_handleFocus()\", \"keydown\": \"_handleKeydown($event)\" }, properties: { \"attr.aria-controls\": \"_getAriaControls()\", \"attr.aria-current\": \"_getAriaCurrent()\", \"attr.aria-disabled\": \"disabled\", \"attr.aria-selected\": \"_getAriaSelected()\", \"attr.id\": \"id\", \"attr.tabIndex\": \"_getTabIndex()\", \"attr.role\": \"_getRole()\", \"class.mat-tab-disabled\": \"disabled\", \"class.mat-tab-label-active\": \"active\" }, classAttribute: \"mat-tab-link mat-focus-indicator\" }, exportAs: [\"matTabLink\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabLink, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[mat-tab-link], [matTabLink]',\n                    exportAs: 'matTabLink',\n                    inputs: ['disabled', 'disableRipple', 'tabIndex'],\n                    host: {\n                        'class': 'mat-tab-link mat-focus-indicator',\n                        '[attr.aria-controls]': '_getAriaControls()',\n                        '[attr.aria-current]': '_getAriaCurrent()',\n                        '[attr.aria-disabled]': 'disabled',\n                        '[attr.aria-selected]': '_getAriaSelected()',\n                        '[attr.id]': 'id',\n                        '[attr.tabIndex]': '_getTabIndex()',\n                        '[attr.role]': '_getRole()',\n                        '[class.mat-tab-disabled]': 'disabled',\n                        '[class.mat-tab-label-active]': 'active',\n                        '(focus)': '_handleFocus()',\n                        '(keydown)': '_handleKeydown($event)',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: MatTabNav }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n                }] }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; } });\n/**\n * Tab panel component associated with MatTabNav.\n */\nclass MatTabNavPanel {\n    constructor() {\n        /** Unique id for the tab panel. */\n        this.id = `mat-tab-nav-panel-${nextUniqueId++}`;\n    }\n}\nMatTabNavPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNavPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });\nMatTabNavPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTabNavPanel, selector: \"mat-tab-nav-panel\", inputs: { id: \"id\" }, host: { attributes: { \"role\": \"tabpanel\" }, properties: { \"attr.aria-labelledby\": \"_activeTabId\", \"attr.id\": \"id\" }, classAttribute: \"mat-tab-nav-panel\" }, exportAs: [\"matTabNavPanel\"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabNavPanel, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'mat-tab-nav-panel',\n                    exportAs: 'matTabNavPanel',\n                    template: '<ng-content></ng-content>',\n                    host: {\n                        '[attr.aria-labelledby]': '_activeTabId',\n                        '[attr.id]': 'id',\n                        'class': 'mat-tab-nav-panel',\n                        'role': 'tabpanel',\n                    },\n                    encapsulation: ViewEncapsulation.None,\n                    changeDetection: ChangeDetectionStrategy.OnPush,\n                }]\n        }], propDecorators: { id: [{\n                type: Input\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.io/license\n */\nclass MatTabsModule {\n}\nMatTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, declarations: [MatTabGroup,\n        MatTabLabel,\n        MatTab,\n        MatInkBar,\n        MatTabLabelWrapper,\n        MatTabNav,\n        MatTabNavPanel,\n        MatTabLink,\n        MatTabBody,\n        MatTabBodyPortal,\n        MatTabHeader,\n        MatTabContent], imports: [CommonModule,\n        MatCommonModule,\n        PortalModule,\n        MatRippleModule,\n        ObserversModule,\n        A11yModule], exports: [MatCommonModule,\n        MatTabGroup,\n        MatTabLabel,\n        MatTab,\n        MatTabNav,\n        MatTabNavPanel,\n        MatTabLink,\n        MatTabContent] });\nMatTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, imports: [CommonModule,\n        MatCommonModule,\n        PortalModule,\n        MatRippleModule,\n        ObserversModule,\n        A11yModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTabsModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [\n                        CommonModule,\n                        MatCommonModule,\n                        PortalModule,\n                        MatRippleModule,\n                        ObserversModule,\n                        A11yModule,\n                    ],\n                    // Don't export all components because some are only to be used internally.\n                    exports: [\n                        MatCommonModule,\n                        MatTabGroup,\n                        MatTabLabel,\n                        MatTab,\n                        MatTabNav,\n                        MatTabNavPanel,\n                        MatTabLink,\n                        MatTabContent,\n                    ],\n                    declarations: [\n                        MatTabGroup,\n                        MatTabLabel,\n                        MatTab,\n                        MatInkBar,\n                        MatTabLabelWrapper,\n                        MatTabNav,\n                        MatTabNavPanel,\n                        MatTabLink,\n                        MatTabBody,\n                        MatTabBodyPortal,\n                        MatTabHeader,\n                        MatTabContent,\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.io/license\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_GROUP, MatInkBar, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MatTabBodyBase, _MatTabGroupBase, _MatTabHeaderBase, _MatTabLinkBase, _MatTabNavBase, matTabsAnimations };\n","import * as i1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayModule } from '@angular/cdk/overlay';\nimport * as i4 from '@angular/cdk/a11y';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport * as i7 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Input, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport * as i2 from '@angular/cdk/scrolling';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i5 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport * as i6 from '@angular/cdk/layout';\nimport { Breakpoints } from '@angular/cdk/layout';\nimport * as i3 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { Subject } from 'rxjs';\nimport { takeUntil, take } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate, keyframes } from '@angular/animations';\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.io/license\n */\n/** Time in ms to throttle repositioning after scroll events. */\nconst SCROLL_THROTTLE_MS = 20;\n/**\n * CSS class that will be attached to the overlay panel.\n * @deprecated\n * @breaking-change 13.0.0 remove this variable\n */\nconst TOOLTIP_PANEL_CLASS = 'mat-tooltip-panel';\nconst PANEL_CLASS = 'tooltip-panel';\n/** Options used to bind passive event listeners. */\nconst passiveListenerOptions = normalizePassiveListenerOptions({ passive: true });\n/**\n * Time between the user putting the pointer on a tooltip\n * trigger and the long press event being fired.\n */\nconst LONGPRESS_DELAY = 500;\n/**\n * Creates an error to be thrown if the user supplied an invalid tooltip position.\n * @docs-private\n */\nfunction getMatTooltipInvalidPositionError(position) {\n    return Error(`Tooltip position \"${position}\" is invalid.`);\n}\n/** Injection token that determines the scroll handling while a tooltip is visible. */\nconst MAT_TOOLTIP_SCROLL_STRATEGY = new InjectionToken('mat-tooltip-scroll-strategy');\n/** @docs-private */\nfunction MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay) {\n    return () => overlay.scrollStrategies.reposition({ scrollThrottle: SCROLL_THROTTLE_MS });\n}\n/** @docs-private */\nconst MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n    provide: MAT_TOOLTIP_SCROLL_STRATEGY,\n    deps: [Overlay],\n    useFactory: MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY,\n};\n/** Injection token to be used to override the default options for `matTooltip`. */\nconst MAT_TOOLTIP_DEFAULT_OPTIONS = new InjectionToken('mat-tooltip-default-options', {\n    providedIn: 'root',\n    factory: MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY() {\n    return {\n        showDelay: 0,\n        hideDelay: 0,\n        touchendHideDelay: 1500,\n    };\n}\nclass _MatTooltipBase {\n    constructor(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, scrollStrategy, _dir, _defaultOptions, _document) {\n        this._overlay = _overlay;\n        this._elementRef = _elementRef;\n        this._scrollDispatcher = _scrollDispatcher;\n        this._viewContainerRef = _viewContainerRef;\n        this._ngZone = _ngZone;\n        this._platform = _platform;\n        this._ariaDescriber = _ariaDescriber;\n        this._focusMonitor = _focusMonitor;\n        this._dir = _dir;\n        this._defaultOptions = _defaultOptions;\n        this._position = 'below';\n        this._disabled = false;\n        this._viewInitialized = false;\n        this._pointerExitEventsInitialized = false;\n        this._viewportMargin = 8;\n        this._cssClassPrefix = 'mat';\n        this._showDelay = this._defaultOptions.showDelay;\n        this._hideDelay = this._defaultOptions.hideDelay;\n        /**\n         * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive\n         * uses a long press gesture to show and hide, however it can conflict with the native browser\n         * gestures. To work around the conflict, Angular Material disables native gestures on the\n         * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable\n         * elements). The different values for this option configure the touch event handling as follows:\n         * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native\n         *   browser gestures on particular elements. In particular, it allows text selection on inputs\n         *   and textareas, and preserves the native browser dragging on elements marked as `draggable`.\n         * - `on` - Enables touch gestures for all elements and disables native\n         *   browser gestures with no exceptions.\n         * - `off` - Disables touch gestures. Note that this will prevent the tooltip from\n         *   showing on touch devices.\n         */\n        this.touchGestures = 'auto';\n        this._message = '';\n        /** Manually-bound passive event listeners. */\n        this._passiveListeners = [];\n        /** Emits when the component is destroyed. */\n        this._destroyed = new Subject();\n        this._scrollStrategy = scrollStrategy;\n        this._document = _document;\n        if (_defaultOptions) {\n            if (_defaultOptions.position) {\n                this.position = _defaultOptions.position;\n            }\n            if (_defaultOptions.touchGestures) {\n                this.touchGestures = _defaultOptions.touchGestures;\n            }\n        }\n        _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n            if (this._overlayRef) {\n                this._updatePosition(this._overlayRef);\n            }\n        });\n    }\n    /** Allows the user to define the position of the tooltip relative to the parent element */\n    get position() {\n        return this._position;\n    }\n    set position(value) {\n        if (value !== this._position) {\n            this._position = value;\n            if (this._overlayRef) {\n                this._updatePosition(this._overlayRef);\n                this._tooltipInstance?.show(0);\n                this._overlayRef.updatePosition();\n            }\n        }\n    }\n    /** Disables the display of the tooltip. */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        this._disabled = coerceBooleanProperty(value);\n        // If tooltip is disabled, hide immediately.\n        if (this._disabled) {\n            this.hide(0);\n        }\n        else {\n            this._setupPointerEnterEventsIfNeeded();\n        }\n    }\n    /** The default delay in ms before showing the tooltip after show is called */\n    get showDelay() {\n        return this._showDelay;\n    }\n    set showDelay(value) {\n        this._showDelay = coerceNumberProperty(value);\n    }\n    /** The default delay in ms before hiding the tooltip after hide is called */\n    get hideDelay() {\n        return this._hideDelay;\n    }\n    set hideDelay(value) {\n        this._hideDelay = coerceNumberProperty(value);\n        if (this._tooltipInstance) {\n            this._tooltipInstance._mouseLeaveHideDelay = this._hideDelay;\n        }\n    }\n    /** The message to be displayed in the tooltip */\n    get message() {\n        return this._message;\n    }\n    set message(value) {\n        this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message, 'tooltip');\n        // If the message is not a string (e.g. number), convert it to a string and trim it.\n        // Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises\n        // away the string-conversion: https://github.com/angular/components/issues/20684\n        this._message = value != null ? String(value).trim() : '';\n        if (!this._message && this._isTooltipVisible()) {\n            this.hide(0);\n        }\n        else {\n            this._setupPointerEnterEventsIfNeeded();\n            this._updateTooltipMessage();\n            this._ngZone.runOutsideAngular(() => {\n                // The `AriaDescriber` has some functionality that avoids adding a description if it's the\n                // same as the `aria-label` of an element, however we can't know whether the tooltip trigger\n                // has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the\n                // issue by deferring the description by a tick so Angular has time to set the `aria-label`.\n                Promise.resolve().then(() => {\n                    this._ariaDescriber.describe(this._elementRef.nativeElement, this.message, 'tooltip');\n                });\n            });\n        }\n    }\n    /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */\n    get tooltipClass() {\n        return this._tooltipClass;\n    }\n    set tooltipClass(value) {\n        this._tooltipClass = value;\n        if (this._tooltipInstance) {\n            this._setTooltipClass(this._tooltipClass);\n        }\n    }\n    ngAfterViewInit() {\n        // This needs to happen after view init so the initial values for all inputs have been set.\n        this._viewInitialized = true;\n        this._setupPointerEnterEventsIfNeeded();\n        this._focusMonitor\n            .monitor(this._elementRef)\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(origin => {\n            // Note that the focus monitor runs outside the Angular zone.\n            if (!origin) {\n                this._ngZone.run(() => this.hide(0));\n            }\n            else if (origin === 'keyboard') {\n                this._ngZone.run(() => this.show());\n            }\n        });\n    }\n    /**\n     * Dispose the tooltip when destroyed.\n     */\n    ngOnDestroy() {\n        const nativeElement = this._elementRef.nativeElement;\n        clearTimeout(this._touchstartTimeout);\n        if (this._overlayRef) {\n            this._overlayRef.dispose();\n            this._tooltipInstance = null;\n        }\n        // Clean up the event listeners set in the constructor\n        this._passiveListeners.forEach(([event, listener]) => {\n            nativeElement.removeEventListener(event, listener, passiveListenerOptions);\n        });\n        this._passiveListeners.length = 0;\n        this._destroyed.next();\n        this._destroyed.complete();\n        this._ariaDescriber.removeDescription(nativeElement, this.message, 'tooltip');\n        this._focusMonitor.stopMonitoring(nativeElement);\n    }\n    /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n    show(delay = this.showDelay) {\n        if (this.disabled || !this.message || this._isTooltipVisible()) {\n            this._tooltipInstance?._cancelPendingAnimations();\n            return;\n        }\n        const overlayRef = this._createOverlay();\n        this._detach();\n        this._portal =\n            this._portal || new ComponentPortal(this._tooltipComponent, this._viewContainerRef);\n        const instance = (this._tooltipInstance = overlayRef.attach(this._portal).instance);\n        instance._triggerElement = this._elementRef.nativeElement;\n        instance._mouseLeaveHideDelay = this._hideDelay;\n        instance\n            .afterHidden()\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => this._detach());\n        this._setTooltipClass(this._tooltipClass);\n        this._updateTooltipMessage();\n        instance.show(delay);\n    }\n    /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */\n    hide(delay = this.hideDelay) {\n        const instance = this._tooltipInstance;\n        if (instance) {\n            if (instance.isVisible()) {\n                instance.hide(delay);\n            }\n            else {\n                instance._cancelPendingAnimations();\n                this._detach();\n            }\n        }\n    }\n    /** Shows/hides the tooltip */\n    toggle() {\n        this._isTooltipVisible() ? this.hide() : this.show();\n    }\n    /** Returns true if the tooltip is currently visible to the user */\n    _isTooltipVisible() {\n        return !!this._tooltipInstance && this._tooltipInstance.isVisible();\n    }\n    /** Create the overlay config and position strategy */\n    _createOverlay() {\n        if (this._overlayRef) {\n            return this._overlayRef;\n        }\n        const scrollableAncestors = this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);\n        // Create connected position strategy that listens for scroll events to reposition.\n        const strategy = this._overlay\n            .position()\n            .flexibleConnectedTo(this._elementRef)\n            .withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`)\n            .withFlexibleDimensions(false)\n            .withViewportMargin(this._viewportMargin)\n            .withScrollableContainers(scrollableAncestors);\n        strategy.positionChanges.pipe(takeUntil(this._destroyed)).subscribe(change => {\n            this._updateCurrentPositionClass(change.connectionPair);\n            if (this._tooltipInstance) {\n                if (change.scrollableViewProperties.isOverlayClipped && this._tooltipInstance.isVisible()) {\n                    // After position changes occur and the overlay is clipped by\n                    // a parent scrollable then close the tooltip.\n                    this._ngZone.run(() => this.hide(0));\n                }\n            }\n        });\n        this._overlayRef = this._overlay.create({\n            direction: this._dir,\n            positionStrategy: strategy,\n            panelClass: `${this._cssClassPrefix}-${PANEL_CLASS}`,\n            scrollStrategy: this._scrollStrategy(),\n        });\n        this._updatePosition(this._overlayRef);\n        this._overlayRef\n            .detachments()\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => this._detach());\n        this._overlayRef\n            .outsidePointerEvents()\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(() => this._tooltipInstance?._handleBodyInteraction());\n        this._overlayRef\n            .keydownEvents()\n            .pipe(takeUntil(this._destroyed))\n            .subscribe(event => {\n            if (this._isTooltipVisible() && event.keyCode === ESCAPE && !hasModifierKey(event)) {\n                event.preventDefault();\n                event.stopPropagation();\n                this._ngZone.run(() => this.hide(0));\n            }\n        });\n        if (this._defaultOptions?.disableTooltipInteractivity) {\n            this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`);\n        }\n        return this._overlayRef;\n    }\n    /** Detaches the currently-attached tooltip. */\n    _detach() {\n        if (this._overlayRef && this._overlayRef.hasAttached()) {\n            this._overlayRef.detach();\n        }\n        this._tooltipInstance = null;\n    }\n    /** Updates the position of the current tooltip. */\n    _updatePosition(overlayRef) {\n        const position = overlayRef.getConfig().positionStrategy;\n        const origin = this._getOrigin();\n        const overlay = this._getOverlayPosition();\n        position.withPositions([\n            this._addOffset({ ...origin.main, ...overlay.main }),\n            this._addOffset({ ...origin.fallback, ...overlay.fallback }),\n        ]);\n    }\n    /** Adds the configured offset to a position. Used as a hook for child classes. */\n    _addOffset(position) {\n        return position;\n    }\n    /**\n     * Returns the origin position and a fallback position based on the user's position preference.\n     * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).\n     */\n    _getOrigin() {\n        const isLtr = !this._dir || this._dir.value == 'ltr';\n        const position = this.position;\n        let originPosition;\n        if (position == 'above' || position == 'below') {\n            originPosition = { originX: 'center', originY: position == 'above' ? 'top' : 'bottom' };\n        }\n        else if (position == 'before' ||\n            (position == 'left' && isLtr) ||\n            (position == 'right' && !isLtr)) {\n            originPosition = { originX: 'start', originY: 'center' };\n        }\n        else if (position == 'after' ||\n            (position == 'right' && isLtr) ||\n            (position == 'left' && !isLtr)) {\n            originPosition = { originX: 'end', originY: 'center' };\n        }\n        else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throw getMatTooltipInvalidPositionError(position);\n        }\n        const { x, y } = this._invertPosition(originPosition.originX, originPosition.originY);\n        return {\n            main: originPosition,\n            fallback: { originX: x, originY: y },\n        };\n    }\n    /** Returns the overlay position and a fallback position based on the user's preference */\n    _getOverlayPosition() {\n        const isLtr = !this._dir || this._dir.value == 'ltr';\n        const position = this.position;\n        let overlayPosition;\n        if (position == 'above') {\n            overlayPosition = { overlayX: 'center', overlayY: 'bottom' };\n        }\n        else if (position == 'below') {\n            overlayPosition = { overlayX: 'center', overlayY: 'top' };\n        }\n        else if (position == 'before' ||\n            (position == 'left' && isLtr) ||\n            (position == 'right' && !isLtr)) {\n            overlayPosition = { overlayX: 'end', overlayY: 'center' };\n        }\n        else if (position == 'after' ||\n            (position == 'right' && isLtr) ||\n            (position == 'left' && !isLtr)) {\n            overlayPosition = { overlayX: 'start', overlayY: 'center' };\n        }\n        else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            throw getMatTooltipInvalidPositionError(position);\n        }\n        const { x, y } = this._invertPosition(overlayPosition.overlayX, overlayPosition.overlayY);\n        return {\n            main: overlayPosition,\n            fallback: { overlayX: x, overlayY: y },\n        };\n    }\n    /** Updates the tooltip message and repositions the overlay according to the new message length */\n    _updateTooltipMessage() {\n        // Must wait for the message to be painted to the tooltip so that the overlay can properly\n        // calculate the correct positioning based on the size of the text.\n        if (this._tooltipInstance) {\n            this._tooltipInstance.message = this.message;\n            this._tooltipInstance._markForCheck();\n            this._ngZone.onMicrotaskEmpty.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {\n                if (this._tooltipInstance) {\n                    this._overlayRef.updatePosition();\n                }\n            });\n        }\n    }\n    /** Updates the tooltip class */\n    _setTooltipClass(tooltipClass) {\n        if (this._tooltipInstance) {\n            this._tooltipInstance.tooltipClass = tooltipClass;\n            this._tooltipInstance._markForCheck();\n        }\n    }\n    /** Inverts an overlay position. */\n    _invertPosition(x, y) {\n        if (this.position === 'above' || this.position === 'below') {\n            if (y === 'top') {\n                y = 'bottom';\n            }\n            else if (y === 'bottom') {\n                y = 'top';\n            }\n        }\n        else {\n            if (x === 'end') {\n                x = 'start';\n            }\n            else if (x === 'start') {\n                x = 'end';\n            }\n        }\n        return { x, y };\n    }\n    /** Updates the class on the overlay panel based on the current position of the tooltip. */\n    _updateCurrentPositionClass(connectionPair) {\n        const { overlayY, originX, originY } = connectionPair;\n        let newPosition;\n        // If the overlay is in the middle along the Y axis,\n        // it means that it's either before or after.\n        if (overlayY === 'center') {\n            // Note that since this information is used for styling, we want to\n            // resolve `start` and `end` to their real values, otherwise consumers\n            // would have to remember to do it themselves on each consumption.\n            if (this._dir && this._dir.value === 'rtl') {\n                newPosition = originX === 'end' ? 'left' : 'right';\n            }\n            else {\n                newPosition = originX === 'start' ? 'left' : 'right';\n            }\n        }\n        else {\n            newPosition = overlayY === 'bottom' && originY === 'top' ? 'above' : 'below';\n        }\n        if (newPosition !== this._currentPosition) {\n            const overlayRef = this._overlayRef;\n            if (overlayRef) {\n                const classPrefix = `${this._cssClassPrefix}-${PANEL_CLASS}-`;\n                overlayRef.removePanelClass(classPrefix + this._currentPosition);\n                overlayRef.addPanelClass(classPrefix + newPosition);\n            }\n            this._currentPosition = newPosition;\n        }\n    }\n    /** Binds the pointer events to the tooltip trigger. */\n    _setupPointerEnterEventsIfNeeded() {\n        // Optimization: Defer hooking up events if there's no message or the tooltip is disabled.\n        if (this._disabled ||\n            !this.message ||\n            !this._viewInitialized ||\n            this._passiveListeners.length) {\n            return;\n        }\n        // The mouse events shouldn't be bound on mobile devices, because they can prevent the\n        // first tap from firing its click event or can cause the tooltip to open for clicks.\n        if (this._platformSupportsMouseEvents()) {\n            this._passiveListeners.push([\n                'mouseenter',\n                () => {\n                    this._setupPointerExitEventsIfNeeded();\n                    this.show();\n                },\n            ]);\n        }\n        else if (this.touchGestures !== 'off') {\n            this._disableNativeGesturesIfNecessary();\n            this._passiveListeners.push([\n                'touchstart',\n                () => {\n                    // Note that it's important that we don't `preventDefault` here,\n                    // because it can prevent click events from firing on the element.\n                    this._setupPointerExitEventsIfNeeded();\n                    clearTimeout(this._touchstartTimeout);\n                    this._touchstartTimeout = setTimeout(() => this.show(), LONGPRESS_DELAY);\n                },\n            ]);\n        }\n        this._addListeners(this._passiveListeners);\n    }\n    _setupPointerExitEventsIfNeeded() {\n        if (this._pointerExitEventsInitialized) {\n            return;\n        }\n        this._pointerExitEventsInitialized = true;\n        const exitListeners = [];\n        if (this._platformSupportsMouseEvents()) {\n            exitListeners.push([\n                'mouseleave',\n                event => {\n                    const newTarget = event.relatedTarget;\n                    if (!newTarget || !this._overlayRef?.overlayElement.contains(newTarget)) {\n                        this.hide();\n                    }\n                },\n            ], ['wheel', event => this._wheelListener(event)]);\n        }\n        else if (this.touchGestures !== 'off') {\n            this._disableNativeGesturesIfNecessary();\n            const touchendListener = () => {\n                clearTimeout(this._touchstartTimeout);\n                this.hide(this._defaultOptions.touchendHideDelay);\n            };\n            exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);\n        }\n        this._addListeners(exitListeners);\n        this._passiveListeners.push(...exitListeners);\n    }\n    _addListeners(listeners) {\n        listeners.forEach(([event, listener]) => {\n            this._elementRef.nativeElement.addEventListener(event, listener, passiveListenerOptions);\n        });\n    }\n    _platformSupportsMouseEvents() {\n        return !this._platform.IOS && !this._platform.ANDROID;\n    }\n    /** Listener for the `wheel` event on the element. */\n    _wheelListener(event) {\n        if (this._isTooltipVisible()) {\n            const elementUnderPointer = this._document.elementFromPoint(event.clientX, event.clientY);\n            const element = this._elementRef.nativeElement;\n            // On non-touch devices we depend on the `mouseleave` event to close the tooltip, but it\n            // won't fire if the user scrolls away using the wheel without moving their cursor. We\n            // work around it by finding the element under the user's cursor and closing the tooltip\n            // if it's not the trigger.\n            if (elementUnderPointer !== element && !element.contains(elementUnderPointer)) {\n                this.hide();\n            }\n        }\n    }\n    /** Disables the native browser gestures, based on how the tooltip has been configured. */\n    _disableNativeGesturesIfNecessary() {\n        const gestures = this.touchGestures;\n        if (gestures !== 'off') {\n            const element = this._elementRef.nativeElement;\n            const style = element.style;\n            // If gestures are set to `auto`, we don't disable text selection on inputs and\n            // textareas, because it prevents the user from typing into them on iOS Safari.\n            if (gestures === 'on' || (element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA')) {\n                style.userSelect =\n                    style.msUserSelect =\n                        style.webkitUserSelect =\n                            style.MozUserSelect =\n                                'none';\n            }\n            // If we have `auto` gestures and the element uses native HTML dragging,\n            // we don't set `-webkit-user-drag` because it prevents the native behavior.\n            if (gestures === 'on' || !element.draggable) {\n                style.webkitUserDrag = 'none';\n            }\n            style.touchAction = 'none';\n            style.webkitTapHighlightColor = 'transparent';\n        }\n    }\n}\n_MatTooltipBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTooltipBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatTooltipBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatTooltipBase, inputs: { position: [\"matTooltipPosition\", \"position\"], disabled: [\"matTooltipDisabled\", \"disabled\"], showDelay: [\"matTooltipShowDelay\", \"showDelay\"], hideDelay: [\"matTooltipHideDelay\", \"hideDelay\"], touchGestures: [\"matTooltipTouchGestures\", \"touchGestures\"], message: [\"matTooltip\", \"message\"], tooltipClass: [\"matTooltipClass\", \"tooltipClass\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatTooltipBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: i4.AriaDescriber }, { type: i4.FocusMonitor }, { type: undefined }, { type: i5.Directionality }, { type: undefined }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; }, propDecorators: { position: [{\n                type: Input,\n                args: ['matTooltipPosition']\n            }], disabled: [{\n                type: Input,\n                args: ['matTooltipDisabled']\n            }], showDelay: [{\n                type: Input,\n                args: ['matTooltipShowDelay']\n            }], hideDelay: [{\n                type: Input,\n                args: ['matTooltipHideDelay']\n            }], touchGestures: [{\n                type: Input,\n                args: ['matTooltipTouchGestures']\n            }], message: [{\n                type: Input,\n                args: ['matTooltip']\n            }], tooltipClass: [{\n                type: Input,\n                args: ['matTooltipClass']\n            }] } });\n/**\n * Directive that attaches a material design tooltip to the host element. Animates the showing and\n * hiding of a tooltip provided position (defaults to below the element).\n *\n * https://material.io/design/components/tooltips.html\n */\nclass MatTooltip extends _MatTooltipBase {\n    constructor(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) {\n        super(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document);\n        this._tooltipComponent = TooltipComponent;\n    }\n}\nMatTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltip, deps: [{ token: i1.Overlay }, { token: i0.ElementRef }, { token: i2.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: i4.AriaDescriber }, { token: i4.FocusMonitor }, { token: MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }, { token: MAT_TOOLTIP_DEFAULT_OPTIONS, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nMatTooltip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatTooltip, selector: \"[matTooltip]\", host: { classAttribute: \"mat-tooltip-trigger\" }, exportAs: [\"matTooltip\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltip, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[matTooltip]',\n                    exportAs: 'matTooltip',\n                    host: {\n                        'class': 'mat-tooltip-trigger',\n                    },\n                }]\n        }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: i4.AriaDescriber }, { type: i4.FocusMonitor }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [MAT_TOOLTIP_SCROLL_STRATEGY]\n                }] }, { type: i5.Directionality, decorators: [{\n                    type: Optional\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_TOOLTIP_DEFAULT_OPTIONS]\n                }] }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\nclass _TooltipComponentBase {\n    constructor(_changeDetectorRef, animationMode) {\n        this._changeDetectorRef = _changeDetectorRef;\n        /** Whether interactions on the page should close the tooltip */\n        this._closeOnInteraction = false;\n        /** Whether the tooltip is currently visible. */\n        this._isVisible = false;\n        /** Subject for notifying that the tooltip has been hidden from the view */\n        this._onHide = new Subject();\n        this._animationsDisabled = animationMode === 'NoopAnimations';\n    }\n    /**\n     * Shows the tooltip with an animation originating from the provided origin\n     * @param delay Amount of milliseconds to the delay showing the tooltip.\n     */\n    show(delay) {\n        // Cancel the delayed hide if it is scheduled\n        clearTimeout(this._hideTimeoutId);\n        this._showTimeoutId = setTimeout(() => {\n            this._toggleVisibility(true);\n            this._showTimeoutId = undefined;\n        }, delay);\n    }\n    /**\n     * Begins the animation to hide the tooltip after the provided delay in ms.\n     * @param delay Amount of milliseconds to delay showing the tooltip.\n     */\n    hide(delay) {\n        // Cancel the delayed show if it is scheduled\n        clearTimeout(this._showTimeoutId);\n        this._hideTimeoutId = setTimeout(() => {\n            this._toggleVisibility(false);\n            this._hideTimeoutId = undefined;\n        }, delay);\n    }\n    /** Returns an observable that notifies when the tooltip has been hidden from view. */\n    afterHidden() {\n        return this._onHide;\n    }\n    /** Whether the tooltip is being displayed. */\n    isVisible() {\n        return this._isVisible;\n    }\n    ngOnDestroy() {\n        this._cancelPendingAnimations();\n        this._onHide.complete();\n        this._triggerElement = null;\n    }\n    /**\n     * Interactions on the HTML body should close the tooltip immediately as defined in the\n     * material design spec.\n     * https://material.io/design/components/tooltips.html#behavior\n     */\n    _handleBodyInteraction() {\n        if (this._closeOnInteraction) {\n            this.hide(0);\n        }\n    }\n    /**\n     * Marks that the tooltip needs to be checked in the next change detection run.\n     * Mainly used for rendering the initial text before positioning a tooltip, which\n     * can be problematic in components with OnPush change detection.\n     */\n    _markForCheck() {\n        this._changeDetectorRef.markForCheck();\n    }\n    _handleMouseLeave({ relatedTarget }) {\n        if (!relatedTarget || !this._triggerElement.contains(relatedTarget)) {\n            if (this.isVisible()) {\n                this.hide(this._mouseLeaveHideDelay);\n            }\n            else {\n                this._finalizeAnimation(false);\n            }\n        }\n    }\n    /**\n     * Callback for when the timeout in this.show() gets completed.\n     * This method is only needed by the mdc-tooltip, and so it is only implemented\n     * in the mdc-tooltip, not here.\n     */\n    _onShow() { }\n    /** Event listener dispatched when an animation on the tooltip finishes. */\n    _handleAnimationEnd({ animationName }) {\n        if (animationName === this._showAnimation || animationName === this._hideAnimation) {\n            this._finalizeAnimation(animationName === this._showAnimation);\n        }\n    }\n    /** Cancels any pending animation sequences. */\n    _cancelPendingAnimations() {\n        clearTimeout(this._showTimeoutId);\n        clearTimeout(this._hideTimeoutId);\n        this._showTimeoutId = this._hideTimeoutId = undefined;\n    }\n    /** Handles the cleanup after an animation has finished. */\n    _finalizeAnimation(toVisible) {\n        if (toVisible) {\n            this._closeOnInteraction = true;\n        }\n        else if (!this.isVisible()) {\n            this._onHide.next();\n        }\n    }\n    /** Toggles the visibility of the tooltip element. */\n    _toggleVisibility(isVisible) {\n        // We set the classes directly here ourselves so that toggling the tooltip state\n        // isn't bound by change detection. This allows us to hide it even if the\n        // view ref has been detached from the CD tree.\n        const tooltip = this._tooltip.nativeElement;\n        const showClass = this._showAnimation;\n        const hideClass = this._hideAnimation;\n        tooltip.classList.remove(isVisible ? hideClass : showClass);\n        tooltip.classList.add(isVisible ? showClass : hideClass);\n        this._isVisible = isVisible;\n        // It's common for internal apps to disable animations using `* { animation: none !important }`\n        // which can break the opening sequence. Try to detect such cases and work around them.\n        if (isVisible && !this._animationsDisabled && typeof getComputedStyle === 'function') {\n            const styles = getComputedStyle(tooltip);\n            // Use `getPropertyValue` to avoid issues with property renaming.\n            if (styles.getPropertyValue('animation-duration') === '0s' ||\n                styles.getPropertyValue('animation-name') === 'none') {\n                this._animationsDisabled = true;\n            }\n        }\n        if (isVisible) {\n            this._onShow();\n        }\n        if (this._animationsDisabled) {\n            tooltip.classList.add('_mat-animation-noopable');\n            this._finalizeAnimation(isVisible);\n        }\n    }\n}\n_TooltipComponentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _TooltipComponentBase, deps: [{ token: i0.ChangeDetectorRef }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_TooltipComponentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _TooltipComponentBase, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _TooltipComponentBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; } });\n/**\n * Internal component that wraps the tooltip's content.\n * @docs-private\n */\nclass TooltipComponent extends _TooltipComponentBase {\n    constructor(changeDetectorRef, _breakpointObserver, animationMode) {\n        super(changeDetectorRef, animationMode);\n        this._breakpointObserver = _breakpointObserver;\n        /** Stream that emits whether the user has a handset-sized display.  */\n        this._isHandset = this._breakpointObserver.observe(Breakpoints.Handset);\n        this._showAnimation = 'mat-tooltip-show';\n        this._hideAnimation = 'mat-tooltip-hide';\n    }\n}\nTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i6.BreakpointObserver }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: TooltipComponent, selector: \"mat-tooltip-component\", host: { attributes: { \"aria-hidden\": \"true\" }, listeners: { \"mouseleave\": \"_handleMouseLeave($event)\" }, properties: { \"style.zoom\": \"isVisible() ? 1 : null\" } }, viewQueries: [{ propertyName: \"_tooltip\", first: true, predicate: [\"tooltip\"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: \"<div #tooltip\\n     class=\\\"mat-tooltip\\\"\\n     (animationend)=\\\"_handleAnimationEnd($event)\\\"\\n     [ngClass]=\\\"tooltipClass\\\"\\n     [class.mat-tooltip-handset]=\\\"(_isHandset | async)?.matches\\\">{{message}}</div>\\n\", styles: [\".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\"], dependencies: [{ kind: \"directive\", type: i7.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"pipe\", type: i7.AsyncPipe, name: \"async\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: TooltipComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {\n                        // Forces the element to have a layout in IE and Edge. This fixes issues where the element\n                        // won't be rendered if the animations are disabled or there is no web animations polyfill.\n                        '[style.zoom]': 'isVisible() ? 1 : null',\n                        '(mouseleave)': '_handleMouseLeave($event)',\n                        'aria-hidden': 'true',\n                    }, template: \"<div #tooltip\\n     class=\\\"mat-tooltip\\\"\\n     (animationend)=\\\"_handleAnimationEnd($event)\\\"\\n     [ngClass]=\\\"tooltipClass\\\"\\n     [class.mat-tooltip-handset]=\\\"(_isHandset | async)?.matches\\\">{{message}}</div>\\n\", styles: [\".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i6.BreakpointObserver }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }]; }, propDecorators: { _tooltip: [{\n                type: ViewChild,\n                args: ['tooltip', {\n                        // Use a static query here since we interact directly with\n                        // the DOM which can happen before `ngAfterViewInit`.\n                        static: true,\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.io/license\n */\nclass MatTooltipModule {\n}\nMatTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltipModule, declarations: [MatTooltip, TooltipComponent], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule], exports: [MatTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule] });\nMatTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltipModule, providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule, MatCommonModule, CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatTooltipModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],\n                    exports: [MatTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule],\n                    declarations: [MatTooltip, TooltipComponent],\n                    providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],\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.io/license\n */\n/**\n * Animations used by MatTooltip.\n * @docs-private\n */\nconst matTooltipAnimations = {\n    /** Animation that transitions a tooltip in and out. */\n    tooltipState: trigger('state', [\n        state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })),\n        state('visible', style({ transform: 'scale(1)' })),\n        transition('* => visible', animate('200ms cubic-bezier(0, 0, 0.2, 1)', keyframes([\n            style({ opacity: 0, transform: 'scale(0)', offset: 0 }),\n            style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),\n            style({ opacity: 1, transform: 'scale(1)', offset: 1 }),\n        ]))),\n        transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))),\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER, MatTooltip, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, _MatTooltipBase, _TooltipComponentBase, getMatTooltipInvalidPositionError, matTooltipAnimations };\n","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';\nexport { ɵgetDOM } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, inject, ɵConsole, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';\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.io/license\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    constructor() {\n        super(...arguments);\n        this.supportsDOMEvents = true;\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.io/license\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 */\n/* tslint:disable:requireParameterType no-console */\nclass BrowserDomAdapter extends GenericBrowserDomAdapter {\n    static makeCurrent() {\n        ɵsetRootDomAdapter(new BrowserDomAdapter());\n    }\n    onAndCancel(el, evt, listener) {\n        el.addEventListener(evt, listener, false);\n        // Needed to follow Dart's subscription semantic, until fix of\n        // https://code.google.com/p/dart/issues/detail?id=17406\n        return () => {\n            el.removeEventListener(evt, listener, false);\n        };\n    }\n    dispatchEvent(el, evt) {\n        el.dispatchEvent(evt);\n    }\n    remove(node) {\n        if (node.parentNode) {\n            node.parentNode.removeChild(node);\n        }\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}\n// based on urlUtils.js in AngularJS 1\nlet urlParsingNode;\nfunction relativePath(url) {\n    urlParsingNode = urlParsingNode || document.createElement('a');\n    urlParsingNode.setAttribute('href', url);\n    const pathName = urlParsingNode.pathname;\n    return pathName.charAt(0) === '/' ? pathName : `/${pathName}`;\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.io/license\n */\n/**\n * An id that identifies a particular application being bootstrapped, that should\n * match across the client/server boundary.\n */\nconst TRANSITION_ID = new InjectionToken('TRANSITION_ID');\nfunction appInitializerFactory(transitionId, document, injector) {\n    return () => {\n        // Wait for all application initializers to be completed before removing the styles set by\n        // the server.\n        injector.get(ApplicationInitStatus).donePromise.then(() => {\n            const dom = ɵgetDOM();\n            const styles = document.querySelectorAll(`style[ng-transition=\"${transitionId}\"]`);\n            for (let i = 0; i < styles.length; i++) {\n                dom.remove(styles[i]);\n            }\n        });\n    };\n}\nconst SERVER_TRANSITION_PROVIDERS = [\n    {\n        provide: APP_INITIALIZER,\n        useFactory: appInitializerFactory,\n        deps: [TRANSITION_ID, DOCUMENT, Injector],\n        multi: true\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.io/license\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 Error('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 /** TODO #9100 */) => {\n            const testabilities = ɵglobal['getAllAngularTestabilities']();\n            let count = testabilities.length;\n            let didWork = false;\n            const decrement = function (didWork_ /** TODO #9100 */) {\n                didWork = didWork || didWork_;\n                count--;\n                if (count == 0) {\n                    callback(didWork);\n                }\n            };\n            testabilities.forEach(function (testability /** TODO #9100 */) {\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}\nBrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserXhr });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserXhr, decorators: [{\n            type: Injectable\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.io/license\n */\n/**\n * The injection token for the event-manager plug-in service.\n *\n * @publicApi\n */\nconst EVENT_MANAGER_PLUGINS = new InjectionToken('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    /**\n     * Initializes an instance of the event-manager service.\n     */\n    constructor(plugins, _zone) {\n        this._zone = _zone;\n        this._eventNameToPlugin = new Map();\n        plugins.forEach(p => p.manager = this);\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     * @returns  A callback function that can be used to remove the handler.\n     */\n    addEventListener(element, eventName, handler) {\n        const plugin = this._findPluginFor(eventName);\n        return plugin.addEventListener(element, eventName, handler);\n    }\n    /**\n     * Registers a global handler for an event in a target view.\n     *\n     * @param target A target for global event notifications. One of \"window\", \"document\", or \"body\".\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     * @returns A callback function that can be used to remove the handler.\n     * @deprecated No longer being used in Ivy code. To be removed in version 14.\n     */\n    addGlobalEventListener(target, eventName, handler) {\n        const plugin = this._findPluginFor(eventName);\n        return plugin.addGlobalEventListener(target, eventName, handler);\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        const plugin = this._eventNameToPlugin.get(eventName);\n        if (plugin) {\n            return plugin;\n        }\n        const plugins = this._plugins;\n        for (let i = 0; i < plugins.length; i++) {\n            const plugin = plugins[i];\n            if (plugin.supports(eventName)) {\n                this._eventNameToPlugin.set(eventName, plugin);\n                return plugin;\n            }\n        }\n        throw new Error(`No event manager plugin found for event ${eventName}`);\n    }\n}\nEventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nEventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventManager });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventManager, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [EVENT_MANAGER_PLUGINS]\n                }] }, { type: i0.NgZone }]; } });\nclass EventManagerPlugin {\n    constructor(_doc) {\n        this._doc = _doc;\n    }\n    addGlobalEventListener(element, eventName, handler) {\n        const target = ɵgetDOM().getGlobalEventTarget(this._doc, element);\n        if (!target) {\n            throw new Error(`Unsupported event target ${target} for event ${eventName}`);\n        }\n        return this.addEventListener(target, eventName, handler);\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.io/license\n */\nclass SharedStylesHost {\n    constructor() {\n        /** @internal */\n        this._stylesSet = new Set();\n    }\n    addStyles(styles) {\n        const additions = new Set();\n        styles.forEach(style => {\n            if (!this._stylesSet.has(style)) {\n                this._stylesSet.add(style);\n                additions.add(style);\n            }\n        });\n        this.onStylesAdded(additions);\n    }\n    onStylesAdded(additions) { }\n    getAllStyles() {\n        return Array.from(this._stylesSet);\n    }\n}\nSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SharedStylesHost });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SharedStylesHost, decorators: [{\n            type: Injectable\n        }] });\nclass DomSharedStylesHost extends SharedStylesHost {\n    constructor(_doc) {\n        super();\n        this._doc = _doc;\n        // Maps all registered host nodes to a list of style nodes that have been added to the host node.\n        this._hostNodes = new Map();\n        this._hostNodes.set(_doc.head, []);\n    }\n    _addStylesToHost(styles, host, styleNodes) {\n        styles.forEach((style) => {\n            const styleEl = this._doc.createElement('style');\n            styleEl.textContent = style;\n            styleNodes.push(host.appendChild(styleEl));\n        });\n    }\n    addHost(hostNode) {\n        const styleNodes = [];\n        this._addStylesToHost(this._stylesSet, hostNode, styleNodes);\n        this._hostNodes.set(hostNode, styleNodes);\n    }\n    removeHost(hostNode) {\n        const styleNodes = this._hostNodes.get(hostNode);\n        if (styleNodes) {\n            styleNodes.forEach(removeStyle);\n        }\n        this._hostNodes.delete(hostNode);\n    }\n    onStylesAdded(additions) {\n        this._hostNodes.forEach((styleNodes, hostNode) => {\n            this._addStylesToHost(additions, hostNode, styleNodes);\n        });\n    }\n    ngOnDestroy() {\n        this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));\n    }\n}\nDomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSharedStylesHost });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSharedStylesHost, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\nfunction removeStyle(styleNode) {\n    ɵgetDOM().remove(styleNode);\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.io/license\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/MathML/',\n};\nconst COMPONENT_REGEX = /%COMP%/g;\nconst NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\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 flattenStyles(compId, styles, target) {\n    for (let i = 0; i < styles.length; i++) {\n        let style = styles[i];\n        if (Array.isArray(style)) {\n            flattenStyles(compId, style, target);\n        }\n        else {\n            style = style.replace(COMPONENT_REGEX, compId);\n            target.push(style);\n        }\n    }\n    return target;\n}\nfunction 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 the\n    // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap\n    // 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 debug_node\n        // can inspect the listener toString contents for the existence of this special token. Because\n        // the token is a string literal, it is ensured to not be modified by compiled code.\n        if (event === '__ngUnwrap__') {\n            return eventHandler;\n        }\n        const allowDefaultBehavior = eventHandler(event);\n        if (allowDefaultBehavior === false) {\n            // TODO(tbosch): move preventDefault into event plugins...\n            event.preventDefault();\n            event.returnValue = false;\n        }\n        return undefined;\n    };\n}\nlet hasLoggedNativeEncapsulationWarning = false;\nclass DomRendererFactory2 {\n    constructor(eventManager, sharedStylesHost, appId) {\n        this.eventManager = eventManager;\n        this.sharedStylesHost = sharedStylesHost;\n        this.appId = appId;\n        this.rendererByCompId = new Map();\n        this.defaultRenderer = new DefaultDomRenderer2(eventManager);\n    }\n    createRenderer(element, type) {\n        if (!element || !type) {\n            return this.defaultRenderer;\n        }\n        switch (type.encapsulation) {\n            case ViewEncapsulation.Emulated: {\n                let renderer = this.rendererByCompId.get(type.id);\n                if (!renderer) {\n                    renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);\n                    this.rendererByCompId.set(type.id, renderer);\n                }\n                renderer.applyToHost(element);\n                return renderer;\n            }\n            // @ts-ignore TODO: Remove as part of FW-2290. TS complains about us dealing with an enum\n            // value that is not known (but previously was the value for ViewEncapsulation.Native)\n            case 1:\n            case ViewEncapsulation.ShadowDom:\n                // TODO(FW-2290): remove the `case 1:` fallback logic and the warning in v12.\n                if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n                    // @ts-ignore TODO: Remove as part of FW-2290. TS complains about us dealing with an\n                    // enum value that is not known (but previously was the value for\n                    // ViewEncapsulation.Native)\n                    !hasLoggedNativeEncapsulationWarning && type.encapsulation === 1) {\n                    hasLoggedNativeEncapsulationWarning = true;\n                    console.warn('ViewEncapsulation.Native is no longer supported. Falling back to ViewEncapsulation.ShadowDom. The fallback will be removed in v12.');\n                }\n                return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);\n            default: {\n                if (!this.rendererByCompId.has(type.id)) {\n                    const styles = flattenStyles(type.id, type.styles, []);\n                    this.sharedStylesHost.addStyles(styles);\n                    this.rendererByCompId.set(type.id, this.defaultRenderer);\n                }\n                return this.defaultRenderer;\n            }\n        }\n    }\n    begin() { }\n    end() { }\n}\nDomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nDomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomRendererFactory2 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomRendererFactory2, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [APP_ID]\n                }] }]; } });\nclass DefaultDomRenderer2 {\n    constructor(eventManager) {\n        this.eventManager = eventManager;\n        this.data = Object.create(null);\n        this.destroyNode = null;\n    }\n    destroy() { }\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 document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);\n        }\n        return document.createElement(name);\n    }\n    createComment(value) {\n        return document.createComment(value);\n    }\n    createText(value) {\n        return document.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        if (parent) {\n            parent.removeChild(oldChild);\n        }\n    }\n    selectRootElement(selectorOrNode, preserveContent) {\n        let el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :\n            selectorOrNode;\n        if (!el) {\n            throw new Error(`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            el.style.removeProperty(style);\n        }\n        else {\n            // IE requires '' instead of null\n            // see https://github.com/angular/angular/issues/7916\n            el.style[style] = '';\n        }\n    }\n    setProperty(el, name, value) {\n        NG_DEV_MODE$1 && checkNoSyntheticProp(name, 'property');\n        el[name] = value;\n    }\n    setValue(node, value) {\n        node.nodeValue = value;\n    }\n    listen(target, event, callback) {\n        NG_DEV_MODE$1 && checkNoSyntheticProp(event, 'listener');\n        if (typeof target === 'string') {\n            return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));\n        }\n        return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));\n    }\n}\nconst AT_CHARCODE = (() => '@'.charCodeAt(0))();\nfunction checkNoSyntheticProp(name, nameKind) {\n    if (name.charCodeAt(0) === AT_CHARCODE) {\n        throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:\n  - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.\n  - There is corresponding configuration for the animation named \\`${name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);\n    }\n}\nfunction isTemplateNode(node) {\n    return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\nclass EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {\n    constructor(eventManager, sharedStylesHost, component, appId) {\n        super(eventManager);\n        this.component = component;\n        const styles = flattenStyles(appId + '-' + component.id, component.styles, []);\n        sharedStylesHost.addStyles(styles);\n        this.contentAttr = shimContentAttribute(appId + '-' + component.id);\n        this.hostAttr = shimHostAttribute(appId + '-' + component.id);\n    }\n    applyToHost(element) {\n        super.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}\nclass ShadowDomRenderer extends DefaultDomRenderer2 {\n    constructor(eventManager, sharedStylesHost, hostEl, component) {\n        super(eventManager);\n        this.sharedStylesHost = sharedStylesHost;\n        this.hostEl = hostEl;\n        this.shadowRoot = hostEl.attachShadow({ mode: 'open' });\n        this.sharedStylesHost.addHost(this.shadowRoot);\n        const styles = flattenStyles(component.id, component.styles, []);\n        for (let i = 0; i < styles.length; i++) {\n            const styleEl = document.createElement('style');\n            styleEl.textContent = styles[i];\n            this.shadowRoot.appendChild(styleEl);\n        }\n    }\n    nodeOrShadowRoot(node) {\n        return node === this.hostEl ? this.shadowRoot : node;\n    }\n    destroy() {\n        this.sharedStylesHost.removeHost(this.shadowRoot);\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(this.nodeOrShadowRoot(parent), oldChild);\n    }\n    parentNode(node) {\n        return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));\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.io/license\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) {\n        element.addEventListener(eventName, handler, false);\n        return () => this.removeEventListener(element, eventName, handler);\n    }\n    removeEventListener(target, eventName, callback) {\n        return target.removeEventListener(eventName, callback);\n    }\n}\nDomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomEventsPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomEventsPlugin, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\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 * @publicApi\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) {\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);\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        // TODO: switch to a Map if the mapping grows too much\n        switch (keyName) {\n            case 'esc':\n                return 'escape';\n            default:\n                return keyName;\n        }\n    }\n}\nKeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nKeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyEventsPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: KeyEventsPlugin, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;\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/standalone-components).\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 * ```typescript\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 * ```typescript\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 * ```typescript\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 * ```typescript\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 * @developerPreview\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 * @developerPreview\n */\nfunction createApplication(options) {\n    return ɵinternalCreateApplication(createProvidersConfig(options));\n}\nfunction createProvidersConfig(options) {\n    return {\n        appProviders: [\n            ...BROWSER_MODULE_PROVIDERS,\n            ...(options?.providers ?? []),\n        ],\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 * @developerPreview\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 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(NG_DEV_MODE ? '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,\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        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        provide: DomRendererFactory2,\n        useClass: DomRendererFactory2,\n        deps: [EventManager, DomSharedStylesHost, APP_ID]\n    },\n    { provide: RendererFactory2, useExisting: DomRendererFactory2 },\n    { provide: SharedStylesHost, useExisting: DomSharedStylesHost },\n    { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },\n    { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },\n    { provide: XhrFactory, useClass: BrowserXhr, deps: [] },\n    NG_DEV_MODE ? { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } : []\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(providersAlreadyPresent) {\n        if (NG_DEV_MODE && providersAlreadyPresent) {\n            throw new Error(`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     * Configures a browser-based app to transition from a server-rendered app, if\n     * one is present on the page.\n     *\n     * @param params An object containing an identifier for the app to transition.\n     * The ID must match between the client and server versions of the app.\n     * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.\n     */\n    static withServerTransition(params) {\n        return {\n            ngModule: BrowserModule,\n            providers: [\n                { provide: APP_ID, useValue: params.appId },\n                { provide: TRANSITION_ID, useExisting: APP_ID },\n                SERVER_TRANSITION_PROVIDERS,\n            ],\n        };\n    }\n}\nBrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });\nBrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserModule, providers: [\n        ...BROWSER_MODULE_PROVIDERS,\n        ...TESTABILITY_PROVIDERS\n    ], imports: [CommonModule, ApplicationModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    providers: [\n                        ...BROWSER_MODULE_PROVIDERS,\n                        ...TESTABILITY_PROVIDERS\n                    ],\n                    exports: [CommonModule, ApplicationModule],\n                }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: SkipSelf\n                }, {\n                    type: Inject,\n                    args: [BROWSER_MODULE_PROVIDERS_MARKER]\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.io/license\n */\n/**\n * Factory to create a `Meta` service instance for the current DOM document.\n */\nfunction createMeta() {\n    return new Meta(ɵɵinject(DOCUMENT));\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    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}\nMeta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nMeta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Meta, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]\n        }], ctorParameters: function () { return [{ 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 * @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.io/license\n */\n/**\n * Factory to create Title service.\n */\nfunction createTitle() {\n    return new Title(ɵɵinject(DOCUMENT));\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    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}\nTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nTitle.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Title, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\n */\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nconst DASH_CASE_REGEXP = /-([a-z])/g;\nfunction camelCaseToDashCase(input) {\n    return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction dashCaseToCamelCase(input) {\n    return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\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\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.io/license\n */\nconst win = typeof window !== 'undefined' && window || {};\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.io/license\n */\nclass ChangeDetectionPerfRecord {\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    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     * ```\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        const isProfilerAvailable = win.console.profile != null;\n        if (record && isProfilerAvailable) {\n            win.console.profile(profileName);\n        }\n        const start = performanceNow();\n        let numTicks = 0;\n        while (numTicks < 5 || (performanceNow() - start) < 500) {\n            this.appRef.tick();\n            numTicks++;\n        }\n        const end = performanceNow();\n        if (record && isProfilerAvailable) {\n            win.console.profileEnd(profileName);\n        }\n        const msPerTick = (end - start) / numTicks;\n        win.console.log(`ran ${numTicks} change detection cycles`);\n        win.console.log(`${msPerTick.toFixed(2)} ms per check`);\n        return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n    }\n}\nfunction performanceNow() {\n    return win.performance && win.performance.now ? win.performance.now() :\n        new Date().getTime();\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.io/license\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 * @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.io/license\n */\nfunction escapeHtml(text) {\n    const escapedText = {\n        '&': '&a;',\n        '\"': '&q;',\n        '\\'': '&s;',\n        '<': '&l;',\n        '>': '&g;',\n    };\n    return text.replace(/[&\"'<>]/g, s => escapedText[s]);\n}\nfunction unescapeHtml(text) {\n    const unescapedText = {\n        '&a;': '&',\n        '&q;': '\"',\n        '&s;': '\\'',\n        '&l;': '<',\n        '&g;': '>',\n    };\n    return text.replace(/&[^;]+;/g, s => unescapedText[s]);\n}\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\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}\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    constructor() {\n        this.store = {};\n        this.onSerializeCallbacks = {};\n    }\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        return JSON.stringify(this.store);\n    }\n}\nTransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nTransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TransferState, providedIn: 'root', useFactory: () => {\n        const doc = inject(DOCUMENT);\n        const appId = inject(APP_ID);\n        const state = new TransferState();\n        state.store = retrieveTransferredState(doc, appId);\n        return state;\n    } });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TransferState, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'root',\n                    useFactory: () => {\n                        const doc = inject(DOCUMENT);\n                        const appId = inject(APP_ID);\n                        const state = new TransferState();\n                        state.store = retrieveTransferredState(doc, appId);\n                        return state;\n                    }\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    let initialState = {};\n    if (script && script.textContent) {\n        try {\n            // Avoid using any here as it triggers lint errors in google3 (any is not allowed).\n            initialState = JSON.parse(unescapeHtml(script.textContent));\n        }\n        catch (e) {\n            console.warn('Exception while restoring TransferState for app ' + appId, e);\n        }\n    }\n    return initialState;\n}\n/**\n * NgModule to install on the client side while using the `TransferState` to transfer state from\n * server to client.\n *\n * @publicApi\n * @deprecated no longer needed, you can inject the `TransferState` in an app without providing\n *     this module.\n */\nclass BrowserTransferStateModule {\n}\nBrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserTransferStateModule });\nBrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserTransferStateModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BrowserTransferStateModule, decorators: [{\n            type: NgModule,\n            args: [{}]\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.io/license\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 * @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.io/license\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 `HammerGestureConfig`\n *\n * @ngModule HammerModule\n * @publicApi\n */\nconst HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');\n/**\n * Injection token used to provide a {@link HammerLoader} to Angular.\n *\n * @publicApi\n */\nconst HAMMER_LOADER = new InjectionToken('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    constructor() {\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        this.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        this.overrides = {};\n    }\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}\nHammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nHammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerGestureConfig });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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    constructor(doc, _config, console, loader) {\n        super(doc);\n        this._config = _config;\n        this.console = console;\n        this.loader = loader;\n        this._loaderPromise = null;\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                this.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\n                .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                        this.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            })\n                .catch(() => {\n                if (typeof ngDevMode === 'undefined' || ngDevMode) {\n                    this.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}\nHammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nHammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerGesturesPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerGesturesPlugin, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }, { type: HammerGestureConfig, decorators: [{\n                    type: Inject,\n                    args: [HAMMER_GESTURE_CONFIG]\n                }] }, { type: i0.ɵConsole }, { 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}\nHammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerModule });\nHammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HammerModule, providers: [\n        {\n            provide: EVENT_MANAGER_PLUGINS,\n            useClass: HammerGesturesPlugin,\n            multi: true,\n            deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n        },\n        { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n    ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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, ɵConsole, [new Optional(), HAMMER_LOADER]]\n                        },\n                        { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\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.io/license\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}\nDomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nDomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizer, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]\n        }] });\nfunction domSanitizerImplFactory(injector) {\n    return new DomSanitizerImpl(injector.get(DOCUMENT));\n}\nclass DomSanitizerImpl extends DomSanitizer {\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 Error('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 Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');\n            default:\n                throw new Error(`Unexpected SecurityContext ${ctx} (see https://g.co/ng/security#xss)`);\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}\nDomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomSanitizerImpl, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\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.io/license\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.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('14.3.0');\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.io/license\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.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };\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","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","/**\n * @license Angular v14.3.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵisObservable, ɵisPromise, Injectable, ɵRuntimeError, EventEmitter, Directive, Attribute, Output, Component, createEnvironmentInjector, ɵisStandalone, ComponentFactoryResolver, ɵisInjectable, inject, InjectionToken, InjectFlags, NgModuleFactory, Injector, Compiler, NgModuleRef, ɵConsole, NgZone, ɵcoerceToBoolean, Input, HostListener, HostBinding, Optional, ContentChildren, APP_BOOTSTRAP_LISTENER, ApplicationRef, APP_INITIALIZER, ENVIRONMENT_INITIALIZER, NgProbeToken, SkipSelf, NgModule, Inject, Version } from '@angular/core';\nimport { from, of, BehaviorSubject, EmptyError, combineLatest, concat, defer, pipe, throwError, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';\nimport * as i3 from '@angular/common';\nimport { Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { map, switchMap, take, startWith, filter, mergeMap, first, concatMap, tap, catchError, scan, last as last$1, takeWhile, defaultIfEmpty, takeLast, mapTo, finalize, refCount, mergeAll } from 'rxjs/operators';\nimport * as i1 from '@angular/platform-browser';\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.io/license\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 = Symbol('RouteTitle');\nclass ParamsAsMap {\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 UrlMatchResult\n * @see 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.startsWith(':');\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\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.io/license\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 ? Object.keys(a) : undefined;\n    const k2 = b ? Object.keys(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 * 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 * Flattens single-level nested arrays.\n */\nfunction flatten(arr) {\n    return Array.prototype.concat.apply([], arr);\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}\n/**\n * Verifys all booleans in an array are `true`.\n */\nfunction and(bools) {\n    return !bools.some(v => !v);\n}\nfunction forEach(map, callback) {\n    for (const prop in map) {\n        if (map.hasOwnProperty(prop)) {\n            callback(map[prop], prop);\n        }\n    }\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\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.io/license\n */\nconst NG_DEV_MODE$9 = typeof ngDevMode === 'undefined' || ngDevMode;\nfunction createEmptyUrlTree() {\n    return new UrlTree(new UrlSegmentGroup([], {}), {}, null);\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 * ```\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    /** @internal */\n    constructor(\n    /** The root segment group of the URL tree */\n    root, \n    /** The query params of the URL */\n    queryParams, \n    /** The fragment of the URL */\n    fragment) {\n        this.root = root;\n        this.queryParams = queryParams;\n        this.fragment = fragment;\n    }\n    get queryParamMap() {\n        if (!this._queryParamMap) {\n            this._queryParamMap = convertToParamMap(this.queryParams);\n        }\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    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        /** The parent node in the url tree */\n        this.parent = null;\n        forEach(children, (v, k) => 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 * ```\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    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        if (!this._parameterMap) {\n            this._parameterMap = convertToParamMap(this.parameters);\n        }\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    forEach(segment.children, (child, childOutlet) => {\n        if (childOutlet === PRIMARY_OUTLET) {\n            res = res.concat(fn(child, childOutlet));\n        }\n    });\n    forEach(segment.children, (child, childOutlet) => {\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}\nUrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nUrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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        forEach(segment.children, (v, k) => {\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.keys(params)\n        .map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`)\n        .join('');\n}\nfunction serializeQueryParams(params) {\n    const strParams = Object.keys(params)\n        .map((name) => {\n        const value = params[name];\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 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    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 */, NG_DEV_MODE$9 && `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 = matchSegments(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 */, NG_DEV_MODE$9 && `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] = Object.keys(children).length === 1 ? 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 */, NG_DEV_MODE$9 && `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 merges primary segment children into their parents and also drops empty children\n * (those which have no segments and no children themselves). The latter prevents serializing a\n * group into something like `/a(aux:)`, where `aux` is an empty child segment.\n */\nfunction squashSegmentGroup(segmentGroup) {\n    const newChildren = {};\n    for (const childOutlet of Object.keys(segmentGroup.children)) {\n        const child = segmentGroup.children[childOutlet];\n        const childCandidate = squashSegmentGroup(child);\n        // don't add empty children\n        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 * @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.io/license\n */\nconst NG_DEV_MODE$8 = typeof ngDevMode === 'undefined' || ngDevMode;\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 * ```\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 createUrlTree(route, urlTree, commands, queryParams, fragment) {\n    if (commands.length === 0) {\n        return tree(urlTree.root, urlTree.root, urlTree.root, queryParams, fragment);\n    }\n    const nav = computeNavigation(commands);\n    if (nav.toRoot()) {\n        return tree(urlTree.root, urlTree.root, new UrlSegmentGroup([], {}), queryParams, fragment);\n    }\n    function createTreeUsingPathIndex(lastPathIndex) {\n        const startingPosition = findStartingPosition(nav, urlTree, route.snapshot?._urlSegment, lastPathIndex);\n        const segmentGroup = startingPosition.processChildren ?\n            updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) :\n            updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);\n        return tree(urlTree.root, startingPosition.segmentGroup, segmentGroup, queryParams, fragment);\n    }\n    // Note: The types should disallow `snapshot` from being `undefined` but due to test mocks, this\n    // may be the case. Since we try to access it at an earlier point before the refactor to add the\n    // warning for `relativeLinkResolution: 'legacy'`, this may cause failures in tests where it\n    // didn't before.\n    const result = createTreeUsingPathIndex(route.snapshot?._lastPathIndex);\n    // Check if application is relying on `relativeLinkResolution: 'legacy'`\n    if (typeof ngDevMode === 'undefined' || !!ngDevMode) {\n        const correctedResult = createTreeUsingPathIndex(route.snapshot?._correctedLastPathIndex);\n        if (correctedResult.toString() !== result.toString()) {\n            console.warn(`relativeLinkResolution: 'legacy' is deprecated and will be removed in a future version of Angular. The link to ${result.toString()} will change to ${correctedResult.toString()} if the code is not updated before then.`);\n        }\n    }\n    return result;\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        forEach(queryParams, (value, name) => {\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    forEach(current.children, (c, outletName) => {\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    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 */, NG_DEV_MODE$8 && '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 */, NG_DEV_MODE$8 && '{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                forEach(cmd.outlets, (commands, name) => {\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 === '') { //  '/a'\n                    isAbsolute = true;\n                }\n                else if (urlPart === '..') { //  '../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    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 findStartingPosition(nav, tree, segmentGroup, lastPathIndex) {\n    if (nav.isAbsolute) {\n        return new Position(tree.root, true, 0);\n    }\n    if (lastPathIndex === -1) {\n        // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children\n        // see issue #26224, #13011, #35687\n        // However, if the ActivatedRoute is the root we should process children like above.\n        const processChildren = segmentGroup === tree.root;\n        return new Position(segmentGroup, processChildren, 0);\n    }\n    const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\n    const index = lastPathIndex + modifier;\n    return createPositionApplyingDoubleDots(segmentGroup, 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 */, NG_DEV_MODE$8 && '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    if (!segmentGroup) {\n        segmentGroup = new UrlSegmentGroup([], {});\n    }\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] =\n            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        forEach(outlets, (commands, outlet) => {\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        forEach(segmentGroup.children, (child, childOutlet) => {\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    forEach(outlets, (commands, outlet) => {\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    forEach(params, (v, k) => res[k] = `${v}`);\n    return res;\n}\nfunction compare(path, params, segment) {\n    return path == segment.path && shallowEqual(params, segment.parameters);\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.io/license\n */\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): e is RouterEvent => e instanceof RouterEvent)\n *     ).subscribe((e: RouterEvent) => {\n *       // Do something\n *     });\n *   }\n * }\n * ```\n *\n * @see `Event`\n * @see [Router events summary](guide/router-reference#router-events)\n * @publicApi\n */\nclass RouterEvent {\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    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.type = 0 /* EventType.NavigationStart */;\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 `NavigationStart`\n * @see `NavigationCancel`\n * @see `NavigationError`\n *\n * @publicApi\n */\nclass NavigationEnd extends RouterEvent {\n    constructor(\n    /** @docsNotRequired */\n    id, \n    /** @docsNotRequired */\n    url, \n    /** @docsNotRequired */\n    urlAfterRedirects) {\n        super(id, url);\n        this.urlAfterRedirects = urlAfterRedirects;\n        this.type = 1 /* EventType.NavigationEnd */;\n    }\n    /** @docsNotRequired */\n    toString() {\n        return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;\n    }\n}\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 `NavigationStart`\n * @see `NavigationEnd`\n * @see `NavigationError`\n *\n * @publicApi\n */\nclass NavigationCancel extends RouterEvent {\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        this.type = 2 /* EventType.NavigationCancel */;\n    }\n    /** @docsNotRequired */\n    toString() {\n        return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;\n    }\n}\n/**\n * An event triggered when a navigation fails due to an unexpected error.\n *\n * @see `NavigationStart`\n * @see `NavigationEnd`\n * @see `NavigationCancel`\n *\n * @publicApi\n */\nclass NavigationError extends RouterEvent {\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        this.type = 3 /* EventType.NavigationError */;\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    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        this.type = 4 /* EventType.RoutesRecognized */;\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 `GuardsCheckEnd`\n *\n * @publicApi\n */\nclass GuardsCheckStart extends RouterEvent {\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        this.type = 7 /* EventType.GuardsCheckStart */;\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 `GuardsCheckStart`\n *\n * @publicApi\n */\nclass GuardsCheckEnd extends RouterEvent {\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        this.type = 8 /* EventType.GuardsCheckEnd */;\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 `ResolveEnd`\n *\n * @publicApi\n */\nclass ResolveStart extends RouterEvent {\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        this.type = 5 /* EventType.ResolveStart */;\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 `ResolveStart`.\n *\n * @publicApi\n */\nclass ResolveEnd extends RouterEvent {\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        this.type = 6 /* EventType.ResolveEnd */;\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 `RouteConfigLoadEnd`\n *\n * @publicApi\n */\nclass RouteConfigLoadStart {\n    constructor(\n    /** @docsNotRequired */\n    route) {\n        this.route = route;\n        this.type = 9 /* EventType.RouteConfigLoadStart */;\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 `RouteConfigLoadStart`\n *\n * @publicApi\n */\nclass RouteConfigLoadEnd {\n    constructor(\n    /** @docsNotRequired */\n    route) {\n        this.route = route;\n        this.type = 10 /* EventType.RouteConfigLoadEnd */;\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  `ChildActivationEnd`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ChildActivationStart {\n    constructor(\n    /** @docsNotRequired */\n    snapshot) {\n        this.snapshot = snapshot;\n        this.type = 11 /* EventType.ChildActivationStart */;\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 `ChildActivationStart`\n * @see `ResolveStart`\n * @publicApi\n */\nclass ChildActivationEnd {\n    constructor(\n    /** @docsNotRequired */\n    snapshot) {\n        this.snapshot = snapshot;\n        this.type = 12 /* EventType.ChildActivationEnd */;\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 `ActivationEnd`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ActivationStart {\n    constructor(\n    /** @docsNotRequired */\n    snapshot) {\n        this.snapshot = snapshot;\n        this.type = 13 /* EventType.ActivationStart */;\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 `ActivationStart`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ActivationEnd {\n    constructor(\n    /** @docsNotRequired */\n    snapshot) {\n        this.snapshot = snapshot;\n        this.type = 14 /* EventType.ActivationEnd */;\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    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        this.type = 15 /* EventType.Scroll */;\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}\nfunction stringifyEvent(routerEvent) {\n    if (!('type' in routerEvent)) {\n        return `Unknown Router Event: ${routerEvent.constructor.name}`;\n    }\n    switch (routerEvent.type) {\n        case 14 /* EventType.ActivationEnd */:\n            return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n        case 13 /* EventType.ActivationStart */:\n            return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n        case 12 /* EventType.ChildActivationEnd */:\n            return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n        case 11 /* EventType.ChildActivationStart */:\n            return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n        case 8 /* EventType.GuardsCheckEnd */:\n            return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;\n        case 7 /* EventType.GuardsCheckStart */:\n            return `GuardsCheckStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n        case 2 /* EventType.NavigationCancel */:\n            return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n        case 1 /* EventType.NavigationEnd */:\n            return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}')`;\n        case 3 /* EventType.NavigationError */:\n            return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${routerEvent.error})`;\n        case 0 /* EventType.NavigationStart */:\n            return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n        case 6 /* EventType.ResolveEnd */:\n            return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n        case 5 /* EventType.ResolveStart */:\n            return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n        case 10 /* EventType.RouteConfigLoadEnd */:\n            return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;\n        case 9 /* EventType.RouteConfigLoadStart */:\n            return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;\n        case 4 /* EventType.RoutesRecognized */:\n            return `RoutesRecognized(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n        case 15 /* EventType.Scroll */:\n            const pos = routerEvent.position ? `${routerEvent.position[0]}, ${routerEvent.position[1]}` : null;\n            return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;\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.io/license\n */\nclass Tree {\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    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 * @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.io/license\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 * ```\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 `ActivatedRoute`\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass RouterState extends Tree {\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(urlTree, rootComponent) {\n    const snapshot = createEmptyStateSnapshot(urlTree, 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(urlTree, 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, urlTree.root, -1, {});\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/router#getting-route-information)\n *\n * @publicApi\n */\nclass ActivatedRoute {\n    /** @internal */\n    constructor(\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    /** The outlet name of the route, a constant. */\n    outlet, \n    /** The component of the route, a constant. */\n    component, futureSnapshot) {\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        /** An Observable of the resolved route title */\n        this.title = this.data?.pipe(map((d) => d[RouteTitleKey])) ?? of(undefined);\n        this._futureSnapshot = futureSnapshot;\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        if (!this._paramMap) {\n            this._paramMap = this.params.pipe(map((p) => convertToParamMap(p)));\n        }\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        if (!this._queryParamMap) {\n            this._queryParamMap =\n                this.queryParams.pipe(map((p) => convertToParamMap(p)));\n        }\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 * By default, this only inherits values up to the nearest path-less or component-less route.\n * @internal\n */\nfunction inheritedParamsDataResolve(route, paramsInheritanceStrategy = 'emptyOnly') {\n    const pathFromRoot = route.pathFromRoot;\n    let inheritingStartingFrom = 0;\n    if (paramsInheritanceStrategy !== 'always') {\n        inheritingStartingFrom = pathFromRoot.length - 1;\n        while (inheritingStartingFrom >= 1) {\n            const current = pathFromRoot[inheritingStartingFrom];\n            const parent = pathFromRoot[inheritingStartingFrom - 1];\n            // current route is an empty path => inherits its parent's params and data\n            if (current.routeConfig && current.routeConfig.path === '') {\n                inheritingStartingFrom--;\n                // parent is componentless => current route should inherit its params and data\n            }\n            else if (!parent.component) {\n                inheritingStartingFrom--;\n            }\n            else {\n                break;\n            }\n        }\n    }\n    return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));\n}\n/** @internal */\nfunction flattenInherited(pathFromRoot) {\n    return pathFromRoot.reduce((res, curr) => {\n        const params = { ...res.params, ...curr.params };\n        const data = { ...res.data, ...curr.data };\n        const resolve = { ...curr.data, ...res.resolve, ...curr.routeConfig?.data, ...curr._resolvedData };\n        return { params, data, resolve };\n    }, { params: {}, data: {}, resolve: {} });\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 * ```\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    /** @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     *  ```\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, urlSegment, lastPathIndex, resolve, correctedLastPathIndex) {\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        /** The resolved route title */\n        this.title = this.data?.[RouteTitleKey];\n        this.routeConfig = routeConfig;\n        this._urlSegment = urlSegment;\n        this._lastPathIndex = lastPathIndex;\n        this._correctedLastPathIndex = correctedLastPathIndex ?? lastPathIndex;\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        if (!this._paramMap) {\n            this._paramMap = convertToParamMap(this.params);\n        }\n        return this._paramMap;\n    }\n    get queryParamMap() {\n        if (!this._queryParamMap) {\n            this._queryParamMap = convertToParamMap(this.queryParams);\n        }\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 * ```\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    /** @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.queryParams.next(nextSnapshot.queryParams);\n        }\n        if (currentSnapshot.fragment !== nextSnapshot.fragment) {\n            route.fragment.next(nextSnapshot.fragment);\n        }\n        if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {\n            route.params.next(nextSnapshot.params);\n        }\n        if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {\n            route.url.next(nextSnapshot.url);\n        }\n        if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {\n            route.data.next(nextSnapshot.data);\n        }\n    }\n    else {\n        route.snapshot = route._futureSnapshot;\n        // this is for resolved data\n        route.data.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 && !parentsMismatch &&\n        (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));\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.io/license\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 * @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.io/license\n */\nconst NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\nfunction redirectingNavigationError(urlSerializer, redirect) {\n    const { redirectTo, navigationBehaviorOptions } = isUrlTree(redirect) ? { redirectTo: redirect, navigationBehaviorOptions: undefined } : redirect;\n    const error = navigationCancelingError(ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`, 0 /* NavigationCancellationCode.Redirect */, redirect);\n    error.url = redirectTo;\n    error.navigationBehaviorOptions = navigationBehaviorOptions;\n    return error;\n}\nfunction navigationCancelingError(message, code, redirectUrl) {\n    const error = new Error('NavigationCancelingError: ' + (message || ''));\n    error[NAVIGATION_CANCELING_ERROR] = true;\n    error.cancellationCode = code;\n    if (redirectUrl) {\n        error.url = redirectUrl;\n    }\n    return error;\n}\nfunction isRedirectingNavigationCancelingError$1(error) {\n    return isNavigationCancelingError$1(error) && isUrlTree(error.url);\n}\nfunction isNavigationCancelingError$1(error) {\n    return error && error[NAVIGATION_CANCELING_ERROR];\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.io/license\n */\n/**\n * Store contextual information about a `RouterOutlet`\n *\n * @publicApi\n */\nclass OutletContext {\n    constructor() {\n        this.outlet = null;\n        this.route = null;\n        /**\n         * @deprecated Passing a resolver to retrieve a component factory is not required and is\n         *     deprecated since v14.\n         */\n        this.resolver = null;\n        this.injector = null;\n        this.children = new ChildrenOutletContexts();\n        this.attachRef = null;\n    }\n}\n/**\n * Store contextual information about the children (= nested) `RouterOutlet`\n *\n * @publicApi\n */\nclass ChildrenOutletContexts {\n    constructor() {\n        // contexts for child outlets, by name.\n        this.contexts = new Map();\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();\n            this.contexts.set(childName, context);\n        }\n        return context;\n    }\n    getContext(childName) {\n        return this.contexts.get(childName) || null;\n    }\n}\nChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ChildrenOutletContexts, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\n */\nconst NG_DEV_MODE$7 = typeof ngDevMode === 'undefined' || ngDevMode;\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 * ```\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 * ```\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 [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named\n * outlet and secondary route configuration\").\n * @see `RouterLink`\n * @see `Route`\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterOutlet {\n    constructor(parentContexts, location, name, changeDetector, environmentInjector) {\n        this.parentContexts = parentContexts;\n        this.location = location;\n        this.changeDetector = changeDetector;\n        this.environmentInjector = environmentInjector;\n        this.activated = null;\n        this._activatedRoute = null;\n        this.activateEvents = new EventEmitter();\n        this.deactivateEvents = new EventEmitter();\n        /**\n         * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a\n         * previously detached subtree.\n         **/\n        this.attachEvents = new EventEmitter();\n        /**\n         * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the\n         * subtree.\n         */\n        this.detachEvents = new EventEmitter();\n        this.name = name || PRIMARY_OUTLET;\n        parentContexts.onChildOutletCreated(this.name, this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        // Ensure that the registered outlet is this one before removing it on the context.\n        if (this.parentContexts.getContext(this.name)?.outlet === this) {\n            this.parentContexts.onChildOutletDestroyed(this.name);\n        }\n    }\n    /** @nodoc */\n    ngOnInit() {\n        if (!this.activated) {\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 && 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    }\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 */, NG_DEV_MODE$7 && '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 */, NG_DEV_MODE$7 && '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 */, NG_DEV_MODE$7 && '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.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, resolverOrInjector) {\n        if (this.isActivated) {\n            throw new ɵRuntimeError(4013 /* RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED */, NG_DEV_MODE$7 && 'Cannot activate an already activated outlet');\n        }\n        this._activatedRoute = activatedRoute;\n        const location = this.location;\n        const snapshot = activatedRoute._futureSnapshot;\n        const component = snapshot.component;\n        const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n        const injector = new OutletInjector(activatedRoute, childContexts, location.injector);\n        if (resolverOrInjector && isComponentFactoryResolver(resolverOrInjector)) {\n            const factory = resolverOrInjector.resolveComponentFactory(component);\n            this.activated = location.createComponent(factory, location.length, injector);\n        }\n        else {\n            const environmentInjector = resolverOrInjector ?? this.environmentInjector;\n            this.activated = location.createComponent(component, { index: location.length, injector, 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.activateEvents.emit(this.activated.instance);\n    }\n}\nRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterOutlet, deps: [{ token: ChildrenOutletContexts }, { token: i0.ViewContainerRef }, { token: 'name', attribute: true }, { token: i0.ChangeDetectorRef }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Directive });\nRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RouterOutlet, isStandalone: true, selector: \"router-outlet\", outputs: { activateEvents: \"activate\", deactivateEvents: \"deactivate\", attachEvents: \"attach\", detachEvents: \"detach\" }, exportAs: [\"outlet\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterOutlet, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: 'router-outlet',\n                    exportAs: 'outlet',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: ChildrenOutletContexts }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['name']\n                }] }, { type: i0.ChangeDetectorRef }, { type: i0.EnvironmentInjector }]; }, propDecorators: { 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    constructor(route, childContexts, parent) {\n        this.route = route;\n        this.childContexts = childContexts;\n        this.parent = parent;\n    }\n    get(token, notFoundValue) {\n        if (token === ActivatedRoute) {\n            return this.route;\n        }\n        if (token === ChildrenOutletContexts) {\n            return this.childContexts;\n        }\n        return this.parent.get(token, notFoundValue);\n    }\n}\nfunction isComponentFactoryResolver(item) {\n    return !!item.resolveComponentFactory;\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.io/license\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}\nɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ɵEmptyOutletComponent, isStandalone: true, selector: \"ng-component\", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, dependencies: [{ kind: \"directive\", type: RouterOutlet, selector: \"router-outlet\", outputs: [\"activate\", \"deactivate\", \"attach\", \"detach\"], exportAs: [\"outlet\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{\n            type: Component,\n            args: [{\n                    template: `<router-outlet></router-outlet>`,\n                    imports: [RouterOutlet],\n                    standalone: true,\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.io/license\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 =\n            createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);\n    }\n    return route._injector ?? currentInjector;\n}\nfunction getLoadedRoutes(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 && !ɵ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 && !route.component && !route.loadComponent && !route.children &&\n            !route.loadChildren && (route.outlet && 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 && !route.component && !route.loadComponent &&\n            !route.children && !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/**\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 && !c.loadComponent) && (children || c.loadChildren) &&\n        (c.outlet && c.outlet !== PRIMARY_OUTLET)) {\n        c.component = ɵEmptyOutletComponent;\n    }\n    return c;\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 * @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.io/license\n */\nconst activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent) => map(t => {\n    new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent)\n        .activate(rootContexts);\n    return t;\n});\nclass ActivateRoutes {\n    constructor(routeReuseStrategy, futureState, currState, forwardEvent) {\n        this.routeReuseStrategy = routeReuseStrategy;\n        this.futureState = futureState;\n        this.currState = currState;\n        this.forwardEvent = forwardEvent;\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        forEach(children, (v, childName) => {\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 childOutlet of Object.keys(children)) {\n            this.deactivateRouteAndItsChildren(children[childOutlet], 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 childOutlet of Object.keys(children)) {\n            this.deactivateRouteAndItsChildren(children[childOutlet], contexts);\n        }\n        if (context && 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            // Clear the information about the attached component on the context but keep the reference to\n            // the outlet.\n            context.attachRef = null;\n            context.resolver = 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                    const injector = getClosestRouteInjector(future.snapshot);\n                    const cmpFactoryResolver = injector?.get(ComponentFactoryResolver) ?? null;\n                    context.attachRef = null;\n                    context.route = future;\n                    context.resolver = cmpFactoryResolver;\n                    context.injector = injector;\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    }\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.io/license\n */\nclass CanActivate {\n    constructor(path) {\n        this.path = path;\n        this.route = this.path[this.path.length - 1];\n    }\n}\nclass CanDeactivate {\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    forEach(prevChildren, (v, k) => 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) ||\n                !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    forEach(children, (node, childName) => {\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 * @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.io/license\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 isRedirectingNavigationCancelingError(error) {\n    return isNavigationCancelingError(error) && isUrlTree(error.url);\n}\nfunction isNavigationCancelingError(error) {\n    return error && error[NAVIGATION_CANCELING_ERROR];\n}\nfunction isEmptyError(e) {\n    return e instanceof EmptyError || e?.name === 'EmptyError';\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.io/license\n */\nconst INITIAL_VALUE = Symbol('INITIAL_VALUE');\nfunction prioritizedGuardValue() {\n    return switchMap(obs => {\n        return combineLatest(obs.map(o => o.pipe(take(1), startWith(INITIAL_VALUE))))\n            .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 || result instanceof UrlTree) {\n                    // Result finished and was not true. Return the result.\n                    // Note that we only allow false/UrlTree. 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}\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.io/license\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)\n            .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                closestInjector.runInContext(() => 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.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                    closestInjector.runInContext(() => 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            closestInjector.runInContext(() => 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            injector.runInContext(() => guard(route, segments));\n        return wrapIntoObservable(guardVal);\n    });\n    return of(canLoadObservables)\n        .pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\nfunction redirectIfUrlTree(urlSerializer) {\n    return pipe(tap((result) => {\n        if (!isUrlTree(result))\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            injector.runInContext(() => guard(route, segments));\n        return wrapIntoObservable(guardVal);\n    });\n    return of(canMatchObservables)\n        .pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\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.io/license\n */\nconst noMatch$1 = {\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)\n        .pipe(map((v) => v === true ? result : { ...noMatch$1 }));\n}\nfunction match(segmentGroup, route, segments) {\n    if (route.path === '') {\n        if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n            return { ...noMatch$1 };\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$1 };\n    const posParams = {};\n    forEach(res.posParams, (v, k) => {\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 split(segmentGroup, consumedSegments, slicedSegments, config, relativeLinkResolution = 'corrected') {\n    if (slicedSegments.length > 0 &&\n        containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n        const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n        s._sourceSegment = segmentGroup;\n        s._segmentIndexShift = consumedSegments.length;\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, consumedSegments, slicedSegments, config, segmentGroup.children, relativeLinkResolution));\n        s._sourceSegment = segmentGroup;\n        s._segmentIndexShift = consumedSegments.length;\n        return { segmentGroup: s, slicedSegments };\n    }\n    const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n    s._sourceSegment = segmentGroup;\n    s._segmentIndexShift = consumedSegments.length;\n    return { segmentGroup: s, slicedSegments };\n}\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, routes, children, relativeLinkResolution) {\n    const res = {};\n    for (const r of routes) {\n        if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {\n            const s = new UrlSegmentGroup([], {});\n            s._sourceSegment = segmentGroup;\n            if (relativeLinkResolution === 'legacy') {\n                s._segmentIndexShift = segmentGroup.segments.length;\n                if (typeof ngDevMode === 'undefined' || !!ngDevMode) {\n                    s._segmentIndexShiftCorrected = consumedSegments.length;\n                }\n            }\n            else {\n                s._segmentIndexShift = consumedSegments.length;\n            }\n            res[getOutlet(r)] = s;\n        }\n    }\n    return { ...children, ...res };\n}\nfunction createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {\n    const res = {};\n    res[PRIMARY_OUTLET] = primarySegment;\n    primarySegment._sourceSegment = segmentGroup;\n    primarySegment._segmentIndexShift = consumedSegments.length;\n    for (const r of routes) {\n        if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {\n            const s = new UrlSegmentGroup([], {});\n            s._sourceSegment = segmentGroup;\n            s._segmentIndexShift = consumedSegments.length;\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}\n/**\n * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without\n * verifying that its children are a full match for the remainder of the `rawSegment` children as\n * well.\n */\nfunction isImmediateMatch(route, rawSegment, segments, outlet) {\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 false;\n    }\n    if (route.path === '**') {\n        return true;\n    }\n    return match(rawSegment, route, segments).matched;\n}\nfunction noLeftoversInUrl(segmentGroup, segments, outlet) {\n    return segments.length === 0 && !segmentGroup.children[outlet];\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.io/license\n */\nconst NG_DEV_MODE$6 = typeof ngDevMode === 'undefined' || ngDevMode;\nclass NoMatch$1 {\n    constructor(segmentGroup) {\n        this.segmentGroup = segmentGroup || null;\n    }\n}\nclass AbsoluteRedirect {\n    constructor(urlTree) {\n        this.urlTree = urlTree;\n    }\n}\nfunction noMatch(segmentGroup) {\n    return throwError(new NoMatch$1(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 */, NG_DEV_MODE$6 &&\n        `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));\n}\nfunction canLoadFails(route) {\n    return throwError(navigationCancelingError(NG_DEV_MODE$6 &&\n        `Cannot load children because the guard of the route \"path: '${route.path}'\" returned false`, 3 /* NavigationCancellationCode.GuardRejected */));\n}\n/**\n * Returns the `UrlTree` with the redirection applied.\n *\n * Lazy modules are loaded along the way.\n */\nfunction applyRedirects$1(injector, configLoader, urlSerializer, urlTree, config) {\n    return new ApplyRedirects(injector, configLoader, urlSerializer, urlTree, config).apply();\n}\nclass ApplyRedirects {\n    constructor(injector, configLoader, urlSerializer, urlTree, config) {\n        this.injector = injector;\n        this.configLoader = configLoader;\n        this.urlSerializer = urlSerializer;\n        this.urlTree = urlTree;\n        this.config = config;\n        this.allowRedirects = true;\n    }\n    apply() {\n        const splitGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;\n        // TODO(atscott): creating a new segment removes the _sourceSegment _segmentIndexShift, which is\n        // only necessary to prevent failures in tests which assert exact object matches. The `split` is\n        // now shared between `applyRedirects` and `recognize` but only the `recognize` step needs these\n        // properties. Before the implementations were merged, the `applyRedirects` would not assign\n        // them. We should be able to remove this logic as a \"breaking change\" but should do some more\n        // investigation into the failures first.\n        const rootSegmentGroup = new UrlSegmentGroup(splitGroup.segments, splitGroup.children);\n        const expanded$ = this.expandSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET);\n        const urlTrees$ = expanded$.pipe(map((rootSegmentGroup) => {\n            return this.createUrlTree(squashSegmentGroup(rootSegmentGroup), this.urlTree.queryParams, this.urlTree.fragment);\n        }));\n        return urlTrees$.pipe(catchError((e) => {\n            if (e instanceof AbsoluteRedirect) {\n                // After an absolute redirect we do not apply any more redirects!\n                // If this implementation changes, update the documentation note in `redirectTo`.\n                this.allowRedirects = false;\n                // we need to run matching, so we can fetch all lazy-loaded modules\n                return this.match(e.urlTree);\n            }\n            if (e instanceof NoMatch$1) {\n                throw this.noMatchError(e);\n            }\n            throw e;\n        }));\n    }\n    match(tree) {\n        const expanded$ = this.expandSegmentGroup(this.injector, this.config, tree.root, PRIMARY_OUTLET);\n        const mapped$ = expanded$.pipe(map((rootSegmentGroup) => {\n            return this.createUrlTree(squashSegmentGroup(rootSegmentGroup), tree.queryParams, tree.fragment);\n        }));\n        return mapped$.pipe(catchError((e) => {\n            if (e instanceof NoMatch$1) {\n                throw this.noMatchError(e);\n            }\n            throw e;\n        }));\n    }\n    noMatchError(e) {\n        return new ɵRuntimeError(4002 /* RuntimeErrorCode.NO_MATCH */, NG_DEV_MODE$6 && `Cannot match any routes. URL Segment: '${e.segmentGroup}'`);\n    }\n    createUrlTree(rootCandidate, queryParams, fragment) {\n        const root = createRoot(rootCandidate);\n        return new UrlTree(root, queryParams, fragment);\n    }\n    expandSegmentGroup(injector, routes, segmentGroup, outlet) {\n        if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n            return this.expandChildren(injector, routes, segmentGroup)\n                .pipe(map((children) => new UrlSegmentGroup([], children)));\n        }\n        return this.expandSegment(injector, segmentGroup, routes, segmentGroup.segments, outlet, true);\n    }\n    // Recursively expand segment groups for all the child outlets\n    expandChildren(injector, routes, segmentGroup) {\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)\n            .pipe(concatMap(childOutlet => {\n            const child = segmentGroup.children[childOutlet];\n            // Sort the routes so routes with outlets that match the segment appear\n            // first, followed by routes for other outlets, which might match if they have an\n            // empty path.\n            const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);\n            return this.expandSegmentGroup(injector, sortedRoutes, child, childOutlet)\n                .pipe(map(s => ({ segment: s, outlet: childOutlet })));\n        }), scan((children, expandedChild) => {\n            children[expandedChild.outlet] = expandedChild.segment;\n            return children;\n        }, {}), last$1());\n    }\n    expandSegment(injector, segmentGroup, routes, segments, outlet, allowRedirects) {\n        return from(routes).pipe(concatMap(r => {\n            const expanded$ = this.expandSegmentAgainstRoute(injector, segmentGroup, routes, r, segments, outlet, allowRedirects);\n            return expanded$.pipe(catchError((e) => {\n                if (e instanceof NoMatch$1) {\n                    return of(null);\n                }\n                throw e;\n            }));\n        }), first((s) => !!s), catchError((e, _) => {\n            if (isEmptyError(e)) {\n                if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n                    return of(new UrlSegmentGroup([], {}));\n                }\n                return noMatch(segmentGroup);\n            }\n            throw e;\n        }));\n    }\n    expandSegmentAgainstRoute(injector, segmentGroup, routes, route, paths, outlet, allowRedirects) {\n        if (!isImmediateMatch(route, segmentGroup, paths, outlet)) {\n            return noMatch(segmentGroup);\n        }\n        if (route.redirectTo === undefined) {\n            return this.matchSegmentAgainstRoute(injector, segmentGroup, route, paths, outlet);\n        }\n        if (allowRedirects && this.allowRedirects) {\n            return this.expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, paths, outlet);\n        }\n        return noMatch(segmentGroup);\n    }\n    expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {\n        if (route.path === '**') {\n            return this.expandWildCardWithParamsAgainstRouteUsingRedirect(injector, routes, route, outlet);\n        }\n        return this.expandRegularSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet);\n    }\n    expandWildCardWithParamsAgainstRouteUsingRedirect(injector, routes, route, outlet) {\n        const newTree = this.applyRedirectCommands([], route.redirectTo, {});\n        if (route.redirectTo.startsWith('/')) {\n            return absoluteRedirect(newTree);\n        }\n        return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n            const group = new UrlSegmentGroup(newSegments, {});\n            return this.expandSegment(injector, group, routes, newSegments, outlet, false);\n        }));\n    }\n    expandRegularSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {\n        const { matched, consumedSegments, remainingSegments, positionalParamSegments } = match(segmentGroup, route, segments);\n        if (!matched)\n            return noMatch(segmentGroup);\n        const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);\n        if (route.redirectTo.startsWith('/')) {\n            return absoluteRedirect(newTree);\n        }\n        return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n            return this.expandSegment(injector, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);\n        }));\n    }\n    matchSegmentAgainstRoute(injector, rawSegmentGroup, route, segments, outlet) {\n        if (route.path === '**') {\n            // Only create the Route's `EnvironmentInjector` if it matches the attempted navigation\n            injector = getOrCreateRouteInjectorIfNeeded(route, injector);\n            if (route.loadChildren) {\n                const loaded$ = route._loadedRoutes ?\n                    of({ routes: route._loadedRoutes, injector: route._loadedInjector }) :\n                    this.configLoader.loadChildren(injector, route);\n                return loaded$.pipe(map((cfg) => {\n                    route._loadedRoutes = cfg.routes;\n                    route._loadedInjector = cfg.injector;\n                    return new UrlSegmentGroup(segments, {});\n                }));\n            }\n            return of(new UrlSegmentGroup(segments, {}));\n        }\n        return matchWithChecks(rawSegmentGroup, route, segments, injector, this.urlSerializer)\n            .pipe(switchMap(({ matched, consumedSegments, remainingSegments }) => {\n            if (!matched)\n                return noMatch(rawSegmentGroup);\n            // If the route has an injector created from providers, we should start using that.\n            injector = route._injector ?? injector;\n            const childConfig$ = this.getChildConfig(injector, route, segments);\n            return childConfig$.pipe(mergeMap((routerConfig) => {\n                const childInjector = routerConfig.injector ?? injector;\n                const childConfig = routerConfig.routes;\n                const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);\n                // See comment on the other call to `split` about why this is necessary.\n                const segmentGroup = new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);\n                if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n                    const expanded$ = this.expandChildren(childInjector, childConfig, segmentGroup);\n                    return expanded$.pipe(map((children) => new UrlSegmentGroup(consumedSegments, children)));\n                }\n                if (childConfig.length === 0 && slicedSegments.length === 0) {\n                    return of(new UrlSegmentGroup(consumedSegments, {}));\n                }\n                const matchedOnOutlet = getOutlet(route) === outlet;\n                const expanded$ = this.expandSegment(childInjector, segmentGroup, childConfig, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true);\n                return expanded$.pipe(map((cs) => new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children)));\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)\n                .pipe(mergeMap((shouldLoadResult) => {\n                if (shouldLoadResult) {\n                    return this.configLoader.loadChildren(injector, route)\n                        .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    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) {\n        return this.applyRedirectCreateUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\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        forEach(redirectToParams, (v, k) => {\n            const copySourceValue = typeof v === 'string' && v.startsWith(':');\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        forEach(group.children, (child, name) => {\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.startsWith(':') ? 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 */, NG_DEV_MODE$6 &&\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\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.io/license\n */\nfunction applyRedirects(environmentInjector, configLoader, urlSerializer, config) {\n    return switchMap(t => applyRedirects$1(environmentInjector, configLoader, urlSerializer, t.extractedUrl, config)\n        .pipe(map(urlAfterRedirects => ({ ...t, urlAfterRedirects }))));\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.io/license\n */\nconst NG_DEV_MODE$5 = typeof ngDevMode === 'undefined' || !!ngDevMode;\nclass NoMatch {\n}\nfunction newObservableError(e) {\n    // TODO(atscott): This pattern is used throughout the router code and can be `throwError` instead.\n    return new Observable((obs) => obs.error(e));\n}\nfunction recognize$1(injector, rootComponentType, config, urlTree, url, urlSerializer, paramsInheritanceStrategy = 'emptyOnly', relativeLinkResolution = 'legacy') {\n    return new Recognizer(injector, rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution, urlSerializer)\n        .recognize()\n        .pipe(switchMap(result => {\n        if (result === null) {\n            return newObservableError(new NoMatch());\n        }\n        else {\n            return of(result);\n        }\n    }));\n}\nclass Recognizer {\n    constructor(injector, rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution, urlSerializer) {\n        this.injector = injector;\n        this.rootComponentType = rootComponentType;\n        this.config = config;\n        this.urlTree = urlTree;\n        this.url = url;\n        this.paramsInheritanceStrategy = paramsInheritanceStrategy;\n        this.relativeLinkResolution = relativeLinkResolution;\n        this.urlSerializer = urlSerializer;\n    }\n    recognize() {\n        const rootSegmentGroup = split(this.urlTree.root, [], [], this.config.filter(c => c.redirectTo === undefined), this.relativeLinkResolution)\n            .segmentGroup;\n        return this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET)\n            .pipe(map(children => {\n            if (children === null) {\n                return null;\n            }\n            // Use Object.freeze to prevent readers of the Router state from modifying it outside of a\n            // navigation, resulting in the router being out of sync with the browser.\n            const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});\n            const rootNode = new TreeNode(root, children);\n            const routeState = new RouterStateSnapshot(this.url, rootNode);\n            this.inheritParamsAndData(routeState._root);\n            return routeState;\n        }));\n    }\n    inheritParamsAndData(routeNode) {\n        const route = routeNode.value;\n        const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);\n        route.params = Object.freeze(i.params);\n        route.data = Object.freeze(i.data);\n        routeNode.children.forEach(n => this.inheritParamsAndData(n));\n    }\n    processSegmentGroup(injector, config, segmentGroup, outlet) {\n        if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n            return this.processChildren(injector, config, segmentGroup);\n        }\n        return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet);\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) {\n        return from(Object.keys(segmentGroup.children))\n            .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);\n        }), scan((children, outletChildren) => {\n            if (!children || !outletChildren)\n                return null;\n            children.push(...outletChildren);\n            return children;\n        }), takeWhile(children => children !== null), defaultIfEmpty(null), last$1(), map(children => {\n            if (children === null)\n                return null;\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 (NG_DEV_MODE$5) {\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 mergedChildren;\n        }));\n    }\n    processSegment(injector, routes, segmentGroup, segments, outlet) {\n        return from(routes).pipe(concatMap(r => {\n            return this.processSegmentAgainstRoute(r._injector ?? injector, r, segmentGroup, segments, outlet);\n        }), first((x) => !!x), catchError(e => {\n            if (isEmptyError(e)) {\n                if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n                    return of([]);\n                }\n                return of(null);\n            }\n            throw e;\n        }));\n    }\n    processSegmentAgainstRoute(injector, route, rawSegment, segments, outlet) {\n        if (route.redirectTo || !isImmediateMatch(route, rawSegment, segments, outlet))\n            return of(null);\n        let matchResult;\n        if (route.path === '**') {\n            const params = segments.length > 0 ? last(segments).parameters : {};\n            const pathIndexShift = getPathIndexShift(rawSegment) + segments.length;\n            const snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route), \n            // NG_DEV_MODE is used to prevent the getCorrectedPathIndexShift function from affecting\n            // production bundle size. This value is intended only to surface a warning to users\n            // depending on `relativeLinkResolution: 'legacy'` in dev mode.\n            (NG_DEV_MODE$5 ? getCorrectedPathIndexShift(rawSegment) + segments.length :\n                pathIndexShift));\n            matchResult = of({\n                snapshot,\n                consumedSegments: [],\n                remainingSegments: [],\n            });\n        }\n        else {\n            matchResult =\n                matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer)\n                    .pipe(map(({ matched, consumedSegments, remainingSegments, parameters }) => {\n                    if (!matched) {\n                        return null;\n                    }\n                    const pathIndexShift = getPathIndexShift(rawSegment) + consumedSegments.length;\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, getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route), (NG_DEV_MODE$5 ?\n                        getCorrectedPathIndexShift(rawSegment) + consumedSegments.length :\n                        pathIndexShift));\n                    return { snapshot, consumedSegments, remainingSegments };\n                }));\n        }\n        return matchResult.pipe(switchMap((result) => {\n            if (result === null) {\n                return of(null);\n            }\n            const { snapshot, consumedSegments, remainingSegments } = result;\n            // If the route has an injector created from providers, we should start using that.\n            injector = route._injector ?? injector;\n            const childInjector = route._loadedInjector ?? injector;\n            const childConfig = getChildConfig(route);\n            const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments, \n            // Filter out routes with redirectTo because we are trying to create activated route\n            // snapshots and don't handle redirects here. That should have been done in\n            // `applyRedirects`.\n            childConfig.filter(c => c.redirectTo === undefined), this.relativeLinkResolution);\n            if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n                return this.processChildren(childInjector, childConfig, segmentGroup).pipe(map(children => {\n                    if (children === null) {\n                        return null;\n                    }\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\n                .processSegment(childInjector, childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet)\n                .pipe(map(children => {\n                if (children === null) {\n                    return null;\n                }\n                return [new TreeNode(snapshot, children)];\n            }));\n        }));\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 getChildConfig(route) {\n    if (route.children) {\n        return route.children;\n    }\n    if (route.loadChildren) {\n        return route._loadedRoutes;\n    }\n    return [];\n}\nfunction hasEmptyPathConfig(node) {\n    const config = node.value.routeConfig;\n    return config && config.path === '' && config.redirectTo === undefined;\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 */, NG_DEV_MODE$5 && `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);\n        }\n        names[n.value.outlet] = n.value;\n    });\n}\nfunction getSourceSegmentGroup(segmentGroup) {\n    let s = segmentGroup;\n    while (s._sourceSegment) {\n        s = s._sourceSegment;\n    }\n    return s;\n}\nfunction getPathIndexShift(segmentGroup) {\n    let s = segmentGroup;\n    let res = s._segmentIndexShift ?? 0;\n    while (s._sourceSegment) {\n        s = s._sourceSegment;\n        res += s._segmentIndexShift ?? 0;\n    }\n    return res - 1;\n}\nfunction getCorrectedPathIndexShift(segmentGroup) {\n    let s = segmentGroup;\n    let res = s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;\n    while (s._sourceSegment) {\n        s = s._sourceSegment;\n        res += s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;\n    }\n    return res - 1;\n}\nfunction getData(route) {\n    return route.data || {};\n}\nfunction getResolve(route) {\n    return route.resolve || {};\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.io/license\n */\nfunction recognize(injector, rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {\n    return mergeMap(t => recognize$1(injector, rootComponentType, config, t.urlAfterRedirects, serializer.serialize(t.urlAfterRedirects), serializer, paramsInheritanceStrategy, relativeLinkResolution)\n        .pipe(map(targetSnapshot => ({ ...t, targetSnapshot }))));\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.io/license\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        let canActivateChecksResolved = 0;\n        return from(canActivateChecks)\n            .pipe(concatMap(check => runResolve(check.route, targetSnapshot, paramsInheritanceStrategy, injector)), tap(() => canActivateChecksResolved++), takeLast(1), mergeMap(_ => canActivateChecksResolved === canActivateChecks.length ? of(t) : EMPTY));\n    });\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 = inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve;\n        if (config && hasStaticTitle(config)) {\n            futureARS.data[RouteTitleKey] = config.title;\n        }\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)\n        .pipe(first(), tap((value) => {\n        data[key] = value;\n    }))), takeLast(1), mapTo(data), catchError((e) => isEmptyError(e) ? EMPTY : throwError(e)));\n}\nfunction getDataKeys(obj) {\n    return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)];\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        closestInjector.runInContext(() => resolver(futureARS, futureRSS));\n    return wrapIntoObservable(resolverValue);\n}\nfunction hasStaticTitle(config) {\n    return typeof config.title === 'string' || config.title === 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.io/license\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 * @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.io/license\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 * ```\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/router#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}\nTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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    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}\nDefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });\nDefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DefaultTitleStrategy, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i1.Title }]; } });\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.io/license\n */\n/**\n * Exists to aid internal migration off of the deprecated relativeLinkResolution option.\n */\nfunction assignRelativeLinkResolution(router) { }\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.io/license\n */\n/**\n * @description\n *\n * Provides a way to customize when activated routes get reused.\n *\n * @publicApi\n */\nclass RouteReuseStrategy {\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}\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.io/license\n */\nconst NG_DEV_MODE$4 = typeof ngDevMode === 'undefined' || !!ngDevMode;\n/**\n * A [DI token](guide/glossary/#di-token) for the router service.\n *\n * @publicApi\n */\nconst ROUTER_CONFIGURATION = new InjectionToken(NG_DEV_MODE$4 ? 'router config' : '', {\n    providedIn: 'root',\n    factory: () => ({}),\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.io/license\n */\nconst NG_DEV_MODE$3 = typeof ngDevMode === 'undefined' || !!ngDevMode;\n/**\n * The [DI token](guide/glossary/#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 * `RouterModule.forChild()`, `provideRoutes`, or `Router.resetConfig()`.\n *\n * @publicApi\n */\nconst ROUTES = new InjectionToken('ROUTES');\nclass RouterConfigLoader {\n    constructor(injector, compiler) {\n        this.injector = injector;\n        this.compiler = compiler;\n        this.componentLoaders = new WeakMap();\n        this.childrenLoaders = new WeakMap();\n    }\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())\n            .pipe(tap(component => {\n            if (this.onLoadEndListener) {\n                this.onLoadEndListener(route);\n            }\n            NG_DEV_MODE$3 && 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$ = this.loadModuleFactoryOrRoutes(route.loadChildren);\n        const loadRunner = moduleFactoryOrRoutes$.pipe(map((factoryOrRoutes) => {\n            if (this.onLoadEndListener) {\n                this.onLoadEndListener(route);\n            }\n            // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is no\n            // 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 = flatten(injector.get(ROUTES, [], InjectFlags.Self | InjectFlags.Optional));\n            }\n            const routes = rawRoutes.map(standardizeConfig);\n            NG_DEV_MODE$3 && validateConfig(routes, route.path, requireStandaloneComponents);\n            return { routes, injector };\n        }), 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())\n            .pipe(refCount());\n        this.childrenLoaders.set(route, loader);\n        return loader;\n    }\n    loadModuleFactoryOrRoutes(loadChildren) {\n        return wrapIntoObservable(loadChildren()).pipe(mergeMap((t) => {\n            if (t instanceof NgModuleFactory || Array.isArray(t)) {\n                return of(t);\n            }\n            else {\n                return from(this.compiler.compileModuleAsync(t));\n            }\n        }));\n    }\n}\nRouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterConfigLoader, deps: [{ token: i0.Injector }, { token: i0.Compiler }], target: i0.ɵɵFactoryTarget.Injectable });\nRouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterConfigLoader, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }]; } });\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.io/license\n */\n/**\n * @description\n *\n * Provides a way to migrate AngularJS applications to Angular.\n *\n * @publicApi\n */\nclass UrlHandlingStrategy {\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}\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.io/license\n */\nconst NG_DEV_MODE$2 = typeof ngDevMode === 'undefined' || !!ngDevMode;\nfunction defaultErrorHandler(error) {\n    throw error;\n}\nfunction defaultMalformedUriErrorHandler(error, urlSerializer, url) {\n    return urlSerializer.parse('/');\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};\nfunction assignExtraOptionsToRouter(opts, router) {\n    if (opts.errorHandler) {\n        router.errorHandler = opts.errorHandler;\n    }\n    if (opts.malformedUriErrorHandler) {\n        router.malformedUriErrorHandler = opts.malformedUriErrorHandler;\n    }\n    if (opts.onSameUrlNavigation) {\n        router.onSameUrlNavigation = opts.onSameUrlNavigation;\n    }\n    if (opts.paramsInheritanceStrategy) {\n        router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;\n    }\n    if (opts.relativeLinkResolution) {\n        router.relativeLinkResolution = opts.relativeLinkResolution;\n    }\n    if (opts.urlUpdateStrategy) {\n        router.urlUpdateStrategy = opts.urlUpdateStrategy;\n    }\n    if (opts.canceledNavigationResolution) {\n        router.canceledNavigationResolution = opts.canceledNavigationResolution;\n    }\n}\nfunction setupRouter() {\n    const urlSerializer = inject(UrlSerializer);\n    const contexts = inject(ChildrenOutletContexts);\n    const location = inject(Location);\n    const injector = inject(Injector);\n    const compiler = inject(Compiler);\n    const config = inject(ROUTES, { optional: true }) ?? [];\n    const opts = inject(ROUTER_CONFIGURATION, { optional: true }) ?? {};\n    const defaultTitleStrategy = inject(DefaultTitleStrategy);\n    const titleStrategy = inject(TitleStrategy, { optional: true });\n    const urlHandlingStrategy = inject(UrlHandlingStrategy, { optional: true });\n    const routeReuseStrategy = inject(RouteReuseStrategy, { optional: true });\n    const router = new Router(null, urlSerializer, contexts, location, injector, compiler, flatten(config));\n    if (urlHandlingStrategy) {\n        router.urlHandlingStrategy = urlHandlingStrategy;\n    }\n    if (routeReuseStrategy) {\n        router.routeReuseStrategy = routeReuseStrategy;\n    }\n    router.titleStrategy = titleStrategy ?? defaultTitleStrategy;\n    assignExtraOptionsToRouter(opts, router);\n    assignRelativeLinkResolution(router);\n    return router;\n}\n/**\n * @description\n *\n * A service that provides navigation among views and URL manipulation capabilities.\n *\n * @see `Route`.\n * @see [Routing and Navigation Guide](guide/router).\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass Router {\n    /**\n     * Creates the router service.\n     */\n    // TODO: vsavkin make internal after the final is out.\n    constructor(rootComponentType, urlSerializer, rootContexts, location, injector, compiler, config) {\n        this.rootComponentType = rootComponentType;\n        this.urlSerializer = urlSerializer;\n        this.rootContexts = rootContexts;\n        this.location = location;\n        this.config = config;\n        this.lastSuccessfulNavigation = null;\n        this.currentNavigation = null;\n        this.disposed = false;\n        this.navigationId = 0;\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        this.currentPageId = 0;\n        this.isNgZoneEnabled = false;\n        /**\n         * An event stream for routing events in this NgModule.\n         */\n        this.events = new Subject();\n        /**\n         * A handler for navigation errors in this NgModule.\n         */\n        this.errorHandler = defaultErrorHandler;\n        /**\n         * A handler for errors thrown by `Router.parseUrl(url)`\n         * when `url` contains an invalid character.\n         * The most common case is a `%` sign\n         * that's not encoded and is not part of a percent encoded sequence.\n         */\n        this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;\n        /**\n         * True if at least one navigation event has occurred,\n         * false otherwise.\n         */\n        this.navigated = false;\n        this.lastSuccessfulId = -1;\n        /**\n         * Hook that enables you to pause navigation after the preactivation phase.\n         * Used by `RouterModule`.\n         *\n         * @internal\n         */\n        this.afterPreactivation = () => of(void 0);\n        /**\n         * A strategy for extracting and merging URLs.\n         * Used for AngularJS to Angular migrations.\n         */\n        this.urlHandlingStrategy = new DefaultUrlHandlingStrategy();\n        /**\n         * A strategy for re-using routes.\n         */\n        this.routeReuseStrategy = new DefaultRouteReuseStrategy();\n        /**\n         * How to handle a navigation request to the current URL. One of:\n         *\n         * - `'ignore'` :  The router ignores the request.\n         * - `'reload'` : The router reloads the URL. Use to implement a \"refresh\" feature.\n         *\n         * Note that this only configures whether the Route reprocesses the URL and triggers related\n         * action and events like redirects, guards, and resolvers. By default, the router re-uses a\n         * component instance when it re-navigates to the same component type without visiting a different\n         * component first. This behavior is configured by the `RouteReuseStrategy`. In order to reload\n         * routed components on same url navigation, you need to set `onSameUrlNavigation` to `'reload'`\n         * _and_ provide a `RouteReuseStrategy` which returns `false` for `shouldReuseRoute`.\n         */\n        this.onSameUrlNavigation = 'ignore';\n        /**\n         * How to merge parameters, data, resolved data, and title from parent to child\n         * routes. One of:\n         *\n         * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data\n         * for path-less or component-less routes.\n         * - `'always'` : Inherit parent parameters, data, and resolved data\n         * for all child routes.\n         */\n        this.paramsInheritanceStrategy = 'emptyOnly';\n        /**\n         * Determines when the router updates the browser URL.\n         * By default (`\"deferred\"`), updates the browser URL after navigation has finished.\n         * Set to `'eager'` to update the browser URL at the beginning of navigation.\n         * You can choose to update early so that, if navigation fails,\n         * you can show an error message with the URL that failed.\n         */\n        this.urlUpdateStrategy = 'deferred';\n        /**\n         * Enables a bug fix that corrects relative link resolution in components with empty paths.\n         * @see `RouterModule`\n         *\n         * @deprecated\n         */\n        this.relativeLinkResolution = 'corrected';\n        /**\n         * Configures how the Router attempts to restore state when a navigation is cancelled.\n         *\n         * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the\n         * router before the navigation started. This means that if the URL of the browser is updated\n         * _before_ the navigation is canceled, the Router will simply replace the item in history rather\n         * than trying to restore to the previous location in the session history. This happens most\n         * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward\n         * buttons.\n         *\n         * 'computed' - Will attempt to return to the same index in the session history that corresponds\n         * to the Angular route when the navigation gets cancelled. For example, if the browser back\n         * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation\n         * and vice versa.\n         *\n         * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only\n         * handles a portion of the URL because the history restoration navigates to the previous place in\n         * the browser history rather than simply resetting a portion of the URL.\n         *\n         * The default value is `replace`.\n         *\n         */\n        this.canceledNavigationResolution = 'replace';\n        const onLoadStart = (r) => this.triggerEvent(new RouteConfigLoadStart(r));\n        const onLoadEnd = (r) => this.triggerEvent(new RouteConfigLoadEnd(r));\n        this.configLoader = injector.get(RouterConfigLoader);\n        this.configLoader.onLoadEndListener = onLoadEnd;\n        this.configLoader.onLoadStartListener = onLoadStart;\n        this.ngModule = injector.get(NgModuleRef);\n        this.console = injector.get(ɵConsole);\n        const ngZone = injector.get(NgZone);\n        this.isNgZoneEnabled = ngZone instanceof NgZone && NgZone.isInAngularZone();\n        this.resetConfig(config);\n        this.currentUrlTree = createEmptyUrlTree();\n        this.rawUrlTree = this.currentUrlTree;\n        this.browserUrlTree = this.currentUrlTree;\n        this.routerState = createEmptyState(this.currentUrlTree, this.rootComponentType);\n        this.transitions = new BehaviorSubject({\n            id: 0,\n            targetPageId: 0,\n            currentUrlTree: this.currentUrlTree,\n            currentRawUrl: this.currentUrlTree,\n            extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree),\n            urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree),\n            rawUrl: this.currentUrlTree,\n            extras: {},\n            resolve: null,\n            reject: null,\n            promise: Promise.resolve(true),\n            source: 'imperative',\n            restoredState: null,\n            currentSnapshot: this.routerState.snapshot,\n            targetSnapshot: null,\n            currentRouterState: this.routerState,\n            targetRouterState: null,\n            guards: { canActivateChecks: [], canDeactivateChecks: [] },\n            guardsResult: null,\n        });\n        this.navigations = this.setupNavigations(this.transitions);\n        this.processNavigations();\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        return this.location.getState()?.ɵrouterPageId;\n    }\n    setupNavigations(transitions) {\n        const eventsSubject = this.events;\n        return transitions.pipe(filter(t => t.id !== 0), \n        // Extract URL\n        map(t => ({ ...t, extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl) })), \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)\n                .pipe(\n            // Store the Navigation object\n            tap(t => {\n                this.currentNavigation = {\n                    id: t.id,\n                    initialUrl: t.rawUrl,\n                    extractedUrl: t.extractedUrl,\n                    trigger: t.source,\n                    extras: t.extras,\n                    previousNavigation: this.lastSuccessfulNavigation ?\n                        { ...this.lastSuccessfulNavigation, previousNavigation: null } :\n                        null\n                };\n            }), switchMap(t => {\n                const browserUrlTree = this.browserUrlTree.toString();\n                const urlTransition = !this.navigated ||\n                    t.extractedUrl.toString() !== browserUrlTree ||\n                    // Navigations which succeed or ones which fail and are cleaned up\n                    // correctly should result in `browserUrlTree` and `currentUrlTree`\n                    // matching. If this is not the case, assume something went wrong and\n                    // try processing the URL again.\n                    browserUrlTree !== this.currentUrlTree.toString();\n                const processCurrentUrl = (this.onSameUrlNavigation === 'reload' ? true : urlTransition) &&\n                    this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);\n                if (processCurrentUrl) {\n                    // If the source of the navigation is from a browser event, the URL is\n                    // already updated. We already need to sync the internal state.\n                    if (isBrowserTriggeredNavigation(t.source)) {\n                        this.browserUrlTree = t.extractedUrl;\n                    }\n                    return of(t).pipe(\n                    // Fire NavigationStart event\n                    switchMap(t => {\n                        const transition = this.transitions.getValue();\n                        eventsSubject.next(new NavigationStart(t.id, this.serializeUrl(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                    // ApplyRedirects\n                    applyRedirects(this.ngModule.injector, this.configLoader, this.urlSerializer, this.config), \n                    // Update the currentNavigation\n                    // `urlAfterRedirects` is guaranteed to be set after this point\n                    tap(t => {\n                        this.currentNavigation = {\n                            ...this.currentNavigation,\n                            finalUrl: t.urlAfterRedirects\n                        };\n                        overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;\n                    }), \n                    // Recognize\n                    recognize(this.ngModule.injector, this.rootComponentType, this.config, this.urlSerializer, this.paramsInheritanceStrategy, this.relativeLinkResolution), \n                    // Update URL if in `eager` update mode\n                    tap(t => {\n                        overallTransitionState.targetSnapshot = t.targetSnapshot;\n                        if (this.urlUpdateStrategy === 'eager') {\n                            if (!t.extras.skipLocationChange) {\n                                const rawUrl = this.urlHandlingStrategy.merge(t.urlAfterRedirects, t.rawUrl);\n                                this.setBrowserUrl(rawUrl, t);\n                            }\n                            this.browserUrlTree = t.urlAfterRedirects;\n                        }\n                        // Fire RoutesRecognized\n                        const routesRecognized = new RoutesRecognized(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n                        eventsSubject.next(routesRecognized);\n                    }));\n                }\n                else {\n                    const processPreviousUrl = urlTransition && this.rawUrlTree &&\n                        this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree);\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                    if (processPreviousUrl) {\n                        const { id, extractedUrl, source, restoredState, extras } = t;\n                        const navStart = new NavigationStart(id, this.serializeUrl(extractedUrl), source, restoredState);\n                        eventsSubject.next(navStart);\n                        const targetSnapshot = createEmptyState(extractedUrl, this.rootComponentType).snapshot;\n                        overallTransitionState = {\n                            ...t,\n                            targetSnapshot,\n                            urlAfterRedirects: extractedUrl,\n                            extras: { ...extras, skipLocationChange: false, replaceUrl: false },\n                        };\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                        this.rawUrlTree = t.rawUrl;\n                        t.resolve(null);\n                        return EMPTY;\n                    }\n                }\n            }), \n            // --- GUARDS ---\n            tap(t => {\n                const guardsStart = new GuardsCheckStart(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n                this.triggerEvent(guardsStart);\n            }), map(t => {\n                overallTransitionState = {\n                    ...t,\n                    guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts)\n                };\n                return overallTransitionState;\n            }), checkGuards(this.ngModule.injector, (evt) => this.triggerEvent(evt)), tap(t => {\n                overallTransitionState.guardsResult = t.guardsResult;\n                if (isUrlTree(t.guardsResult)) {\n                    throw redirectingNavigationError(this.urlSerializer, t.guardsResult);\n                }\n                const guardsEnd = new GuardsCheckEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);\n                this.triggerEvent(guardsEnd);\n            }), filter(t => {\n                if (!t.guardsResult) {\n                    this.restoreHistory(t);\n                    this.cancelNavigationTransition(t, '', 3 /* 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.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n                        this.triggerEvent(resolveStart);\n                    }), switchMap(t => {\n                        let dataResolved = false;\n                        return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.ngModule.injector), tap({\n                            next: () => dataResolved = true,\n                            complete: () => {\n                                if (!dataResolved) {\n                                    this.restoreHistory(t);\n                                    this.cancelNavigationTransition(t, NG_DEV_MODE$2 ?\n                                        `At least one route resolver didn't emit any value.` :\n                                        '', 2 /* NavigationCancellationCode.NoDataFromResolver */);\n                                }\n                            }\n                        }));\n                    }), tap(t => {\n                        const resolveEnd = new ResolveEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n                        this.triggerEvent(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 &&\n                        !route.routeConfig._loadedComponent) {\n                        loaders.push(this.configLoader.loadComponent(route.routeConfig)\n                            .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))\n                    .pipe(defaultIfEmpty(), take(1));\n            }), switchTap(() => this.afterPreactivation()), map((t) => {\n                const targetRouterState = createRouterState(this.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);\n                overallTransitionState = { ...t, targetRouterState };\n                return (overallTransitionState);\n            }), \n            /* Once here, we are about to activate synchronously. The assumption is\n               this will succeed, and user code may read from the Router service.\n               Therefore before activation, we need to update router properties storing\n               the current URL and the RouterState, as well as updated the browser URL.\n               All this should happen *before* activating. */\n            tap((t) => {\n                this.currentUrlTree = t.urlAfterRedirects;\n                this.rawUrlTree =\n                    this.urlHandlingStrategy.merge(t.urlAfterRedirects, t.rawUrl);\n                this.routerState = t.targetRouterState;\n                if (this.urlUpdateStrategy === 'deferred') {\n                    if (!t.extras.skipLocationChange) {\n                        this.setBrowserUrl(this.rawUrlTree, t);\n                    }\n                    this.browserUrlTree = t.urlAfterRedirects;\n                }\n            }), activateRoutes(this.rootContexts, this.routeReuseStrategy, (evt) => this.triggerEvent(evt)), tap({\n                next() {\n                    completed = true;\n                },\n                complete() {\n                    completed = true;\n                }\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 = NG_DEV_MODE$2 ?\n                        `Navigation ID ${overallTransitionState\n                            .id} is not equal to the current navigation id ${this.navigationId}` :\n                        '';\n                    this.cancelNavigationTransition(overallTransitionState, cancelationReason, 1 /* NavigationCancellationCode.SupersededByNewNavigation */);\n                }\n                // Only clear current navigation if it is still set to the one that\n                // finalized.\n                if (this.currentNavigation?.id === overallTransitionState.id) {\n                    this.currentNavigation = null;\n                }\n            }), catchError((e) => {\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$1(e)) {\n                    if (!isRedirectingNavigationCancelingError$1(e)) {\n                        // Set property only if we're not redirecting. If we landed on a page\n                        // and redirect to `/` route, the new navigation is going to see the\n                        // `/` isn't a change from the default currentUrlTree and won't\n                        // navigate. This is only applicable with initial navigation, so\n                        // setting `navigated` only when not redirecting resolves this\n                        // scenario.\n                        this.navigated = true;\n                        this.restoreHistory(overallTransitionState, true);\n                    }\n                    const navCancel = new NavigationCancel(overallTransitionState.id, this.serializeUrl(overallTransitionState.extractedUrl), e.message, e.cancellationCode);\n                    eventsSubject.next(navCancel);\n                    // When redirecting, we need to delay resolving the navigation\n                    // promise and push it to the redirect navigation\n                    if (!isRedirectingNavigationCancelingError$1(e)) {\n                        overallTransitionState.resolve(false);\n                    }\n                    else {\n                        const mergedTree = this.urlHandlingStrategy.merge(e.url, this.rawUrlTree);\n                        const extras = {\n                            skipLocationChange: overallTransitionState.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: this.urlUpdateStrategy === 'eager' ||\n                                isBrowserTriggeredNavigation(overallTransitionState.source)\n                        };\n                        this.scheduleNavigation(mergedTree, 'imperative', null, extras, {\n                            resolve: overallTransitionState.resolve,\n                            reject: overallTransitionState.reject,\n                            promise: overallTransitionState.promise\n                        });\n                    }\n                    /* All other errors should reset to the router's internal URL reference\n                     * to the pre-error state. */\n                }\n                else {\n                    this.restoreHistory(overallTransitionState, true);\n                    const navError = new NavigationError(overallTransitionState.id, this.serializeUrl(overallTransitionState.extractedUrl), e, overallTransitionState.targetSnapshot ?? undefined);\n                    eventsSubject.next(navError);\n                    try {\n                        overallTransitionState.resolve(this.errorHandler(e));\n                    }\n                    catch (ee) {\n                        overallTransitionState.reject(ee);\n                    }\n                }\n                return EMPTY;\n            }));\n            // TODO(jasonaden): remove cast once g3 is on updated TypeScript\n        }));\n    }\n    /**\n     * @internal\n     * TODO: this should be removed once the constructor of the router made internal\n     */\n    resetRootComponentType(rootComponentType) {\n        this.rootComponentType = 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 = this.rootComponentType;\n    }\n    setTransition(t) {\n        this.transitions.next({ ...this.transitions.value, ...t });\n    }\n    /**\n     * Sets up the location change listener and performs the initial navigation.\n     */\n    initialNavigation() {\n        this.setUpLocationChangeListener();\n        if (this.navigationId === 0) {\n            this.navigateByUrl(this.location.path(true), { replaceUrl: true });\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        if (!this.locationSubscription) {\n            this.locationSubscription = this.location.subscribe(event => {\n                const source = event['type'] === 'popstate' ? 'popstate' : 'hashchange';\n                if (source === 'popstate') {\n                    // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS\n                    // hybrid apps.\n                    setTimeout(() => {\n                        const extras = { replaceUrl: true };\n                        // Navigations coming from Angular router have a navigationId state\n                        // property. When this exists, restore the state.\n                        const state = event.state?.navigationId ? event.state : null;\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(event['url']);\n                        this.scheduleNavigation(urlTree, source, state, extras);\n                    }, 0);\n                }\n            });\n        }\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.currentNavigation;\n    }\n    /** @internal */\n    triggerEvent(event) {\n        this.events.next(event);\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     * ```\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        NG_DEV_MODE$2 && validateConfig(config);\n        this.config = config.map(standardizeConfig);\n        this.navigated = false;\n        this.lastSuccessfulId = -1;\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        this.dispose();\n    }\n    /** Disposes of the router. */\n    dispose() {\n        this.transitions.complete();\n        if (this.locationSubscription) {\n            this.locationSubscription.unsubscribe();\n            this.locationSubscription = undefined;\n        }\n        this.disposed = true;\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 a = relativeTo || this.routerState.root;\n        const f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n        let q = null;\n        switch (queryParamsHandling) {\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        return createUrlTree(a, this.currentUrlTree, 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     * ```\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/router)\n     *\n     */\n    navigateByUrl(url, extras = {\n        skipLocationChange: false\n    }) {\n        if (typeof ngDevMode === 'undefined' ||\n            ngDevMode && this.isNgZoneEnabled && !NgZone.isInAngularZone()) {\n            this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);\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', 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, to `false` when navigation\n     *     fails,\n     * or is rejected on error.\n     *\n     * @usageNotes\n     *\n     * The following calls request navigation to a dynamic route path relative to the current URL.\n     *\n     * ```\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/router)\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        let urlTree;\n        try {\n            urlTree = this.urlSerializer.parse(url);\n        }\n        catch (e) {\n            urlTree = this.malformedUriErrorHandler(e, this.urlSerializer, url);\n        }\n        return urlTree;\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.keys(params).reduce((result, key) => {\n            const value = params[key];\n            if (value !== null && value !== undefined) {\n                result[key] = value;\n            }\n            return result;\n        }, {});\n    }\n    processNavigations() {\n        this.navigations.subscribe(t => {\n            this.navigated = true;\n            this.lastSuccessfulId = t.id;\n            this.currentPageId = t.targetPageId;\n            this.events\n                .next(new NavigationEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(this.currentUrlTree)));\n            this.lastSuccessfulNavigation = this.currentNavigation;\n            this.titleStrategy?.updateTitle(this.routerState.snapshot);\n            t.resolve(true);\n        }, e => {\n            this.console.warn(`Unhandled Navigation Error: ${e}`);\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        const id = ++this.navigationId;\n        let targetPageId;\n        if (this.canceledNavigationResolution === 'computed') {\n            const isInitialPage = this.currentPageId === 0;\n            if (isInitialPage) {\n                restoredState = this.location.getState();\n            }\n            // If the `ɵrouterPageId` exist in the state then `targetpageId` should have the value of\n            // `ɵrouterPageId`. This is the case for something like a page refresh where we assign the\n            // target id to the previously set value for that page.\n            if (restoredState && restoredState.ɵrouterPageId) {\n                targetPageId = restoredState.ɵrouterPageId;\n            }\n            else {\n                // If we're replacing the URL or doing a silent navigation, we do not want to increment the\n                // page id because we aren't pushing a new entry to history.\n                if (extras.replaceUrl || extras.skipLocationChange) {\n                    targetPageId = this.browserPageId ?? 0;\n                }\n                else {\n                    targetPageId = (this.browserPageId ?? 0) + 1;\n                }\n            }\n        }\n        else {\n            // This is unused when `canceledNavigationResolution` is not computed.\n            targetPageId = 0;\n        }\n        this.setTransition({\n            id,\n            targetPageId,\n            source,\n            restoredState,\n            currentUrlTree: this.currentUrlTree,\n            currentRawUrl: this.rawUrlTree,\n            rawUrl,\n            extras,\n            resolve,\n            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    setBrowserUrl(url, t) {\n        const path = this.urlSerializer.serialize(url);\n        const state = { ...t.extras.state, ...this.generateNgRouterState(t.id, t.targetPageId) };\n        if (this.location.isCurrentPathEqualTo(path) || !!t.extras.replaceUrl) {\n            this.location.replaceState(path, '', state);\n        }\n        else {\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(t, restoringFromCaughtError = false) {\n        if (this.canceledNavigationResolution === 'computed') {\n            const targetPagePosition = this.currentPageId - t.targetPageId;\n            // The navigator change the location before triggered the browser event,\n            // so we need to go back to the current url if the navigation is canceled.\n            // Also, when navigation gets cancelled while using url update strategy eager, then we need to\n            // go back. Because, when `urlUpdateStrategy` is `eager`; `setBrowserUrl` method is called\n            // before any verification.\n            const browserUrlUpdateOccurred = (t.source === 'popstate' || this.urlUpdateStrategy === 'eager' ||\n                this.currentUrlTree === this.currentNavigation?.finalUrl);\n            if (browserUrlUpdateOccurred && targetPagePosition !== 0) {\n                this.location.historyGo(targetPagePosition);\n            }\n            else if (this.currentUrlTree === this.currentNavigation?.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(t);\n                // TODO(atscott): resetting the `browserUrlTree` should really be done in `resetState`.\n                // Investigate if this can be done by running TGP.\n                this.browserUrlTree = t.currentUrlTree;\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(t);\n            }\n            this.resetUrlToCurrentUrlTree();\n        }\n    }\n    resetState(t) {\n        this.routerState = t.currentRouterState;\n        this.currentUrlTree = t.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, t.rawUrl);\n    }\n    resetUrlToCurrentUrlTree() {\n        this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));\n    }\n    cancelNavigationTransition(t, reason, code) {\n        const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), reason, code);\n        this.triggerEvent(navCancel);\n        t.resolve(false);\n    }\n    generateNgRouterState(navigationId, routerPageId) {\n        if (this.canceledNavigationResolution === 'computed') {\n            return { navigationId, ɵrouterPageId: routerPageId };\n        }\n        return { navigationId };\n    }\n}\nRouter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Router, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\nRouter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Router, providedIn: 'root', useFactory: setupRouter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: Router, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'root',\n                    useFactory: setupRouter,\n                }]\n        }], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });\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 */, NG_DEV_MODE$2 && `The requested path contains ${cmd} segment at index ${i}`);\n        }\n    }\n}\nfunction isBrowserTriggeredNavigation(source) {\n    return source !== 'imperative';\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.io/license\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 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 * ```\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 * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\n *   link to user component\n * </a>\n * ```\n *\n * See {@link UrlCreationOptions.queryParamsHandling 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 * ```\n * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">\n *   link to user component\n * </a>\n * ```\n *\n * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved\n * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`\n * event:\n *\n * ```\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    constructor(router, route, tabIndexAttribute, renderer, el) {\n        this.router = router;\n        this.route = route;\n        this.tabIndexAttribute = tabIndexAttribute;\n        this.renderer = renderer;\n        this.el = el;\n        this._preserveFragment = false;\n        this._skipLocationChange = false;\n        this._replaceUrl = false;\n        this.commands = null;\n        /** @internal */\n        this.onChanges = new Subject();\n        this.setTabIndexIfNotOnNativeEl('0');\n    }\n    /**\n     * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the\n     * `UrlCreationOptions`.\n     * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment}\n     * @see {@link Router#createUrlTree Router#createUrlTree}\n     */\n    set preserveFragment(preserveFragment) {\n        this._preserveFragment = ɵcoerceToBoolean(preserveFragment);\n    }\n    get preserveFragment() {\n        return this._preserveFragment;\n    }\n    /**\n     * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the\n     * `NavigationBehaviorOptions`.\n     * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange}\n     * @see {@link Router#navigateByUrl Router#navigateByUrl}\n     */\n    set skipLocationChange(skipLocationChange) {\n        this._skipLocationChange = ɵcoerceToBoolean(skipLocationChange);\n    }\n    get skipLocationChange() {\n        return this._skipLocationChange;\n    }\n    /**\n     * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the\n     * `NavigationBehaviorOptions`.\n     * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl}\n     * @see {@link Router#navigateByUrl Router#navigateByUrl}\n     */\n    set replaceUrl(replaceUrl) {\n        this._replaceUrl = ɵcoerceToBoolean(replaceUrl);\n    }\n    get replaceUrl() {\n        return this._replaceUrl;\n    }\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` */) {\n            return;\n        }\n        const renderer = this.renderer;\n        const nativeElement = this.el.nativeElement;\n        if (newTabIndex !== null) {\n            renderer.setAttribute(nativeElement, 'tabindex', newTabIndex);\n        }\n        else {\n            renderer.removeAttribute(nativeElement, 'tabindex');\n        }\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\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    /**\n     * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n     *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n     *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n     *   - **null|undefined**: effectively disables the `routerLink`\n     * @see {@link Router#createUrlTree Router#createUrlTree}\n     */\n    set routerLink(commands) {\n        if (commands != null) {\n            this.commands = Array.isArray(commands) ? commands : [commands];\n            this.setTabIndexIfNotOnNativeEl('0');\n        }\n        else {\n            this.commands = null;\n            this.setTabIndexIfNotOnNativeEl(null);\n        }\n    }\n    /** @nodoc */\n    onClick() {\n        if (this.urlTree === null) {\n            return true;\n        }\n        const extras = {\n            skipLocationChange: this.skipLocationChange,\n            replaceUrl: this.replaceUrl,\n            state: this.state,\n        };\n        this.router.navigateByUrl(this.urlTree, extras);\n        return true;\n    }\n    get urlTree() {\n        if (this.commands === null) {\n            return null;\n        }\n        return this.router.createUrlTree(this.commands, {\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}\nRouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RouterLink, isStandalone: true, selector: \":not(a):not(area)[routerLink]\", inputs: { queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", state: \"state\", relativeTo: \"relativeTo\", preserveFragment: \"preserveFragment\", skipLocationChange: \"skipLocationChange\", replaceUrl: \"replaceUrl\", routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick()\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLink, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: ':not(a):not(area)[routerLink]',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { queryParams: [{\n                type: Input\n            }], fragment: [{\n                type: Input\n            }], queryParamsHandling: [{\n                type: Input\n            }], state: [{\n                type: Input\n            }], relativeTo: [{\n                type: Input\n            }], preserveFragment: [{\n                type: Input\n            }], skipLocationChange: [{\n                type: Input\n            }], replaceUrl: [{\n                type: Input\n            }], routerLink: [{\n                type: Input\n            }], onClick: [{\n                type: HostListener,\n                args: ['click']\n            }] } });\n/**\n * @description\n *\n * Lets you link to specific routes in your app.\n *\n * See `RouterLink` for more information.\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkWithHref {\n    constructor(router, route, locationStrategy) {\n        this.router = router;\n        this.route = route;\n        this.locationStrategy = locationStrategy;\n        this._preserveFragment = false;\n        this._skipLocationChange = false;\n        this._replaceUrl = false;\n        this.commands = null;\n        // the url displayed on the anchor element.\n        // @HostBinding('attr.href') is used rather than @HostBinding() because it removes the\n        // href attribute when it becomes `null`.\n        this.href = null;\n        /** @internal */\n        this.onChanges = new Subject();\n        this.subscription = router.events.subscribe((s) => {\n            if (s instanceof NavigationEnd) {\n                this.updateTargetUrlAndHref();\n            }\n        });\n    }\n    /**\n     * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the\n     * `UrlCreationOptions`.\n     * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment}\n     * @see {@link Router#createUrlTree Router#createUrlTree}\n     */\n    set preserveFragment(preserveFragment) {\n        this._preserveFragment = ɵcoerceToBoolean(preserveFragment);\n    }\n    get preserveFragment() {\n        return this._preserveFragment;\n    }\n    /**\n     * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the\n     * `NavigationBehaviorOptions`.\n     * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange}\n     * @see {@link Router#navigateByUrl Router#navigateByUrl}\n     */\n    set skipLocationChange(skipLocationChange) {\n        this._skipLocationChange = ɵcoerceToBoolean(skipLocationChange);\n    }\n    get skipLocationChange() {\n        return this._skipLocationChange;\n    }\n    /**\n     * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the\n     * `NavigationBehaviorOptions`.\n     * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl}\n     * @see {@link Router#navigateByUrl Router#navigateByUrl}\n     */\n    set replaceUrl(replaceUrl) {\n        this._replaceUrl = ɵcoerceToBoolean(replaceUrl);\n    }\n    get replaceUrl() {\n        return this._replaceUrl;\n    }\n    /**\n     * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n     *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n     *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n     *   - **null|undefined**: Disables the link by removing the `href`\n     * @see {@link Router#createUrlTree Router#createUrlTree}\n     */\n    set routerLink(commands) {\n        if (commands != null) {\n            this.commands = Array.isArray(commands) ? commands : [commands];\n        }\n        else {\n            this.commands = null;\n        }\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n        this.updateTargetUrlAndHref();\n        this.onChanges.next(this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        this.subscription.unsubscribe();\n    }\n    /** @nodoc */\n    onClick(button, ctrlKey, shiftKey, altKey, metaKey) {\n        if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {\n            return true;\n        }\n        if (typeof this.target === 'string' && this.target != '_self' || this.urlTree === null) {\n            return true;\n        }\n        const extras = {\n            skipLocationChange: this.skipLocationChange,\n            replaceUrl: this.replaceUrl,\n            state: this.state\n        };\n        this.router.navigateByUrl(this.urlTree, extras);\n        return false;\n    }\n    updateTargetUrlAndHref() {\n        this.href = this.urlTree !== null ?\n            this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)) :\n            null;\n    }\n    get urlTree() {\n        if (this.commands === null) {\n            return null;\n        }\n        return this.router.createUrlTree(this.commands, {\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}\nRouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLinkWithHref, deps: [{ token: Router }, { token: ActivatedRoute }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RouterLinkWithHref, isStandalone: true, selector: \"a[routerLink],area[routerLink]\", inputs: { target: \"target\", queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", state: \"state\", relativeTo: \"relativeTo\", preserveFragment: \"preserveFragment\", skipLocationChange: \"skipLocationChange\", replaceUrl: \"replaceUrl\", routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)\" }, properties: { \"attr.target\": \"this.target\", \"attr.href\": \"this.href\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLinkWithHref, decorators: [{\n            type: Directive,\n            args: [{ selector: 'a[routerLink],area[routerLink]', standalone: true }]\n        }], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { 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            }], relativeTo: [{\n                type: Input\n            }], href: [{\n                type: HostBinding,\n                args: ['attr.href']\n            }], preserveFragment: [{\n                type: Input\n            }], skipLocationChange: [{\n                type: Input\n            }], replaceUrl: [{\n                type: Input\n            }], routerLink: [{\n                type: Input\n            }], onClick: [{\n                type: HostListener,\n                args: ['click',\n                    ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]\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.io/license\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 * ```\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 * ```\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 * ```\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 * ```\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 * ```\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 * ```\n * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkActive {\n    constructor(router, element, renderer, cdr, link, linkWithHref) {\n        this.router = router;\n        this.element = element;\n        this.renderer = renderer;\n        this.cdr = cdr;\n        this.link = link;\n        this.linkWithHref = linkWithHref;\n        this.classes = [];\n        this.isActive = false;\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 Router.isActive\n         */\n        this.routerLinkActiveOptions = { exact: false };\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         * ```\n         * <a\n         *  routerLink=\"/user/bob\"\n         *  routerLinkActive=\"active-link\"\n         *  (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>\n         * ```\n         */\n        this.isActiveChange = new EventEmitter();\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, this.linksWithHrefs.changes, of(null)).pipe(mergeAll()).subscribe(_ => {\n            this.update();\n            this.subscribeToEachLinkOnChanges();\n        });\n    }\n    subscribeToEachLinkOnChanges() {\n        this.linkInputChangesSubscription?.unsubscribe();\n        const allLinkChanges = [...this.links.toArray(), ...this.linksWithHrefs.toArray(), this.link, this.linkWithHref]\n            .filter((link) => !!link)\n            .map(link => link.onChanges);\n        this.linkInputChangesSubscription = from(allLinkChanges).pipe(mergeAll()).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.linksWithHrefs || !this.router.navigated)\n            return;\n        Promise.resolve().then(() => {\n            const hasActiveLinks = this.hasActiveLinks();\n            if (this.isActive !== hasActiveLinks) {\n                this.isActive = hasActiveLinks;\n                this.cdr.markForCheck();\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                // 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) => link.urlTree ? router.isActive(link.urlTree, options) : false;\n    }\n    hasActiveLinks() {\n        const isActiveCheckFn = this.isLinkActive(this.router);\n        return this.link && isActiveCheckFn(this.link) ||\n            this.linkWithHref && isActiveCheckFn(this.linkWithHref) ||\n            this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);\n    }\n}\nRouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }, { token: RouterLinkWithHref, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RouterLinkActive, isStandalone: true, selector: \"[routerLinkActive]\", inputs: { routerLinkActiveOptions: \"routerLinkActiveOptions\", ariaCurrentWhenActive: \"ariaCurrentWhenActive\", routerLinkActive: \"routerLinkActive\" }, outputs: { isActiveChange: \"isActiveChange\" }, queries: [{ propertyName: \"links\", predicate: RouterLink, descendants: true }, { propertyName: \"linksWithHrefs\", predicate: RouterLinkWithHref, descendants: true }], exportAs: [\"routerLinkActive\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterLinkActive, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[routerLinkActive]',\n                    exportAs: 'routerLinkActive',\n                    standalone: true,\n                }]\n        }], ctorParameters: function () { return [{ type: Router }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: RouterLink, decorators: [{\n                    type: Optional\n                }] }, { type: RouterLinkWithHref, decorators: [{\n                    type: Optional\n                }] }]; }, propDecorators: { links: [{\n                type: ContentChildren,\n                args: [RouterLink, { descendants: true }]\n            }], linksWithHrefs: [{\n                type: ContentChildren,\n                args: [RouterLinkWithHref, { 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 * @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.io/license\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 * ```\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}\nPreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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}\nNoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: NoPreloading, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", 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    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 =\n            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 =\n                    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            else 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}\nRouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });\nRouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterPreloader, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterPreloader, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });\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.io/license\n */\nconst ROUTER_SCROLLER = new InjectionToken('');\nclass RouterScroller {\n    constructor(router, \n    /** @docsNotRequired */ viewportScroller, options = {}) {\n        this.router = router;\n        this.viewportScroller = viewportScroller;\n        this.options = options;\n        this.lastId = 0;\n        this.lastSource = 'imperative';\n        this.restoredId = 0;\n        this.store = {};\n        // Default both options to 'disabled'\n        options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';\n        options.anchorScrolling = 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.router.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.router.parseUrl(e.urlAfterRedirects).fragment);\n            }\n        });\n    }\n    consumeScrollEvents() {\n        return this.router.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.router.triggerEvent(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n        if (this.routerEventsSubscription) {\n            this.routerEventsSubscription.unsubscribe();\n        }\n        if (this.scrollEventsSubscription) {\n            this.scrollEventsSubscription.unsubscribe();\n        }\n    }\n}\nRouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterScroller, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\nRouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterScroller });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterScroller, decorators: [{\n            type: Injectable\n        }], ctorParameters: function () { return [{ type: Router }, { type: i3.ViewportScroller }, { type: undefined }]; } });\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.io/license\n */\nconst NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || ngDevMode;\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 * ```\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 * ```\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 `RouterFeatures`\n *\n * @publicApi\n * @developerPreview\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 [\n        provideRoutes(routes), { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n        { provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener },\n        features.map(feature => feature.ɵproviders),\n        // TODO: All options used by the `assignExtraOptionsToRouter` factory need to be reviewed for\n        // how we want them to be configured. This API doesn't currently have a way to configure them\n        // and we should decide what the _best_ way to do that is rather than just sticking with the\n        // status quo of how it's done today.\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 * Registers a [DI provider](guide/glossary#provider) for a set of routes.\n * @param routes The route configuration to provide.\n *\n * @usageNotes\n *\n * ```\n * @NgModule({\n *   providers: [provideRoutes(ROUTES)]\n * })\n * class LazyLoadedChildModule {}\n * ```\n *\n * @publicApi\n */\nfunction provideRoutes(routes) {\n    return [\n        { provide: ROUTES, multi: true, useValue: routes },\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 * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withInMemoryScrolling())\n *     ]\n *   }\n * );\n * ```\n *\n * @see `provideRouter`\n * @see `ViewportScroller`\n *\n * @publicApi\n * @developerPreview\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            provide: ROUTER_SCROLLER,\n            useFactory: () => {\n                const router = inject(Router);\n                const viewportScroller = inject(ViewportScroller);\n                return new RouterScroller(router, viewportScroller, options);\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.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(NG_DEV_MODE$1 ? 'bootstrap done indicator' : '', {\n    factory: () => {\n        return new Subject();\n    }\n});\nconst INITIAL_NAVIGATION = new InjectionToken(NG_DEV_MODE$1 ? '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 value is required for\n * [server-side rendering](guide/universal) to work.\n *\n * @usageNotes\n *\n * Basic example of how you can enable this navigation behavior:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withEnabledBlockingInitialNavigation())\n *     ]\n *   }\n * );\n * ```\n *\n * @see `provideRouter`\n *\n * @publicApi\n * @developerPreview\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                let initNavigation = false;\n                /**\n                 * Performs the given action once the router finishes its next/current navigation.\n                 *\n                 * If the navigation is canceled or errors without a redirect, the navigation is considered\n                 * complete. If the `NavigationEnd` event emits, the navigation is also considered complete.\n                 */\n                function afterNextNavigation(action) {\n                    const router = injector.get(Router);\n                    router.events\n                        .pipe(filter((e) => e instanceof NavigationEnd || e instanceof NavigationCancel ||\n                        e instanceof NavigationError), map(e => {\n                        if (e instanceof NavigationEnd) {\n                            // Navigation assumed to succeed if we get `ActivationStart`\n                            return true;\n                        }\n                        const redirecting = e instanceof NavigationCancel ?\n                            (e.code === 0 /* NavigationCancellationCode.Redirect */ ||\n                                e.code === 1 /* NavigationCancellationCode.SupersededByNewNavigation */) :\n                            false;\n                        return redirecting ? null : false;\n                    }), filter((result) => result !== null), take(1))\n                        .subscribe(() => {\n                        action();\n                    });\n                }\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(() => {\n                                // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored\n                                // without a redirect.\n                                resolve(true);\n                                initNavigation = true;\n                            });\n                            router.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                                // only the initial navigation should be delayed until bootstrapping is done.\n                                if (!initNavigation) {\n                                    return bootstrapDone.closed ? of(void 0) : bootstrapDone;\n                                    // subsequent navigations should not be delayed\n                                }\n                                else {\n                                    return of(void 0);\n                                }\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 * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withDisabledInitialNavigation())\n *     ]\n *   }\n * );\n * ```\n *\n * @see `provideRouter`\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n * @developerPreview\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 * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withDebugTracing())\n *     ]\n *   }\n * );\n * ```\n *\n * @see `provideRouter`\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n * @developerPreview\n */\nfunction withDebugTracing() {\n    let providers = [];\n    if (NG_DEV_MODE$1) {\n        providers = [{\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    else {\n        providers = [];\n    }\n    return routerFeature(1 /* RouterFeatureKind.DebugTracingFeature */, providers);\n}\nconst ROUTER_PRELOADER = new InjectionToken(NG_DEV_MODE$1 ? '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 * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withPreloading(PreloadAllModules))\n *     ]\n *   }\n * );\n * ```\n *\n * @see `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 * @developerPreview\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 * ```\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 `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 * @developerPreview\n */\nfunction withRouterConfig(options) {\n    const providers = [\n        { provide: ROUTER_CONFIGURATION, useValue: options },\n    ];\n    return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);\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.io/license\n */\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;\n/**\n * The directives defined in the `RouterModule`.\n */\nconst ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent];\n/**\n * @docsNotRequired\n */\nconst ROUTER_FORROOT_GUARD = new InjectionToken(NG_DEV_MODE ? 'router duplicate forRoot guard' : 'ROUTER_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    { provide: Router, useFactory: setupRouter },\n    ChildrenOutletContexts,\n    { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n    RouterConfigLoader,\n];\nfunction routerNgProbeToken() {\n    return new NgProbeToken('Router', Router);\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/router) for an\n * overview of how the `Router` service should be used.\n *\n * @publicApi\n */\nclass RouterModule {\n    constructor(guard) { }\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     * ```\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                NG_DEV_MODE ? (config?.enableTracing ? withDebugTracing().ɵproviders : []) : [],\n                provideRoutes(routes),\n                {\n                    provide: ROUTER_FORROOT_GUARD,\n                    useFactory: provideForRootGuard,\n                    deps: [[Router, new Optional(), new SkipSelf()]]\n                },\n                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },\n                config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),\n                provideRouterScroller(),\n                config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],\n                { provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken },\n                config?.initialNavigation ? provideInitialNavigation(config) : [],\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     * ```\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 { ngModule: RouterModule, providers: [provideRoutes(routes)] };\n    }\n}\nRouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });\nRouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] });\nRouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterModule, imports: [ɵEmptyOutletComponent] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouterModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: ROUTER_DIRECTIVES,\n                    exports: ROUTER_DIRECTIVES,\n                }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ROUTER_FORROOT_GUARD]\n                }] }]; } });\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 router = inject(Router);\n            const viewportScroller = inject(ViewportScroller);\n            const config = inject(ROUTER_CONFIGURATION);\n            if (config.scrollOffset) {\n                viewportScroller.setOffset(config.scrollOffset);\n            }\n            return new RouterScroller(router, viewportScroller, 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 (NG_DEV_MODE && 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](guide/glossary/#di-token) for the router initializer that\n * is called after the app is bootstrapped.\n *\n * @publicApi\n */\nconst ROUTER_INITIALIZER = new InjectionToken(NG_DEV_MODE ? '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 * @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.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('14.3.0');\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.io/license\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.io/license\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.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, provideRouter, provideRoutes, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withInMemoryScrolling, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, assignExtraOptionsToRouter as ɵassignExtraOptionsToRouter, flatten as ɵflatten, withPreloading as ɵwithPreloading };\n","import * as i4 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Component, ViewEncapsulation, HostListener, NgModule } from '@angular/core';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport * as i2 from '@primavera/services';\nimport * as i3 from 'ngx-bootstrap/modal';\n\nclass RightPanelService {\r\n    constructor() {\r\n        this.title$ = new BehaviorSubject('');\r\n        this.openRightPanel$ = new Subject();\r\n        this.closeRightPanel$ = new Subject();\r\n    }\r\n}\r\nRightPanelService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nRightPanelService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return []; } });\n\nclass RightPanelComponent {\r\n    constructor(rightPanelService, broadcastService, deviceService, elementRef, modalService, appContextService, changeDetectorRef) {\r\n        this.rightPanelService = rightPanelService;\r\n        this.broadcastService = broadcastService;\r\n        this.deviceService = deviceService;\r\n        this.elementRef = elementRef;\r\n        this.modalService = modalService;\r\n        this.appContextService = appContextService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.closeFinish = new EventEmitter();\r\n        this.destroy$ = new Subject();\r\n    }\r\n    get config() {\r\n        return this._config;\r\n    }\r\n    set config(value) {\r\n        this._config = value;\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    clickout(event) {\r\n        if (this.panelIsOpened &&\r\n            this.config.closeOnOutsideClick &&\r\n            this.modalService.getModalsCount() === 0 &&\r\n            this.elementRef.nativeElement &&\r\n            !this.elementRef.nativeElement.contains(event.target) &&\r\n            ((this.config.parent && !this.config.parent.nativeElement.contains(event.target)) || !this.config.parent)) {\r\n            this.onClose();\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    onClose() {\r\n        this.rightPanelService.closeRightPanel$.next({ componentRef: this.rightPanelService.currentOpenComponentRef });\r\n    }\r\n    onOpenSettingsClick() {\r\n        this.config.openSettings();\r\n    }\r\n    open() {\r\n        this.hasAlerts = this.appContextService.hasAlerts();\r\n        this.panelIsOpened = true;\r\n        const devicesEnum = this.deviceService.getDevice();\r\n        if (this.deviceService.isMobileDevice()) {\r\n            this.broadcastService.emit('onCloseMenuState');\r\n        }\r\n        this.broadcastService.emit('contextBarOnlyClose');\r\n    }\r\n}\r\nRightPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelComponent, deps: [{ token: RightPanelService }, { token: i2.BroadcastService }, { token: i2.DeviceService }, { token: i0.ElementRef }, { token: i3.BsModalService }, { token: i2.AppContextService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nRightPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RightPanelComponent, selector: \"pri-right-panel-component\", host: { listeners: { \"document:click\": \"clickout($event)\" } }, ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"right-panel-container\\\"\\r\\n\\t[ngClass]=\\\"[\\r\\n\\t\\tconfig && config.class ? config.class : '',\\r\\n\\t\\thasAlerts ? 'showing-alerts' : '',\\r\\n\\t\\tpanelIsOpened ? 'open' : ''\\r\\n\\t]\\\">\\r\\n\\t<div class=\\\"header-container\\\" *ngIf=\\\"rightPanelService.title$ | async\\\">\\r\\n\\t\\t<div class=\\\"title\\\">{{ rightPanelService.title$ | async }}</div>\\r\\n\\t\\t<div class=\\\"header-buttons-container\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.config.openSettings\\\"\\r\\n\\t\\t\\t\\tclass=\\\"header-icon header-settings-icon ti-ux-system-outline\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"onOpenSettingsClick()\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"header-icon header-close-icon ti-ux-close\\\" (click)=\\\"onClose()\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"body-container\\\" *ngIf=\\\"config && config.body\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"config.body\\\"></ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-right-panel-component{display:flex}pri-right-panel-component .right-panel-container{display:flex;flex-direction:column;position:fixed;top:3.5714285714rem;bottom:0;right:-320px;width:320px;background-color:var(--grey-1);z-index:1043;overflow:hidden;transition:all .35s;box-shadow:none}pri-right-panel-component .right-panel-container.open{right:0;box-shadow:-.2857142857rem 0 1.0714285714rem var(--shadow-4)}pri-right-panel-component .right-panel-container.under-modal{z-index:1040}pri-right-panel-component .right-panel-container.showing-alerts{top:calc(3.5714285714rem + 2.2857142857rem)}pri-right-panel-component .right-panel-container .header-container{position:relative;display:flex;flex-shrink:0;align-items:center;width:100%;padding:24px}pri-right-panel-component .right-panel-container .header-container .title{width:100%;color:var(--grey-8);font-weight:600;font-size:18px;margin-right:15px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-right-panel-component .right-panel-container .header-container .header-buttons-container{display:flex}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon{color:var(--grey-8);margin-right:15px;cursor:pointer}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon:hover{color:var(--grey-7)}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon.header-close-icon{font-size:18px;margin-right:0}pri-right-panel-component .right-panel-container .body-container{display:flex;width:100%;height:100%;overflow:hidden}@media only screen and (max-width: 767px){pri-right-panel-component .right-panel-container{right:-100%;width:100%}}\\n\"], dependencies: [{ kind: \"directive\", type: i4.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i4.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i4.AsyncPipe, name: \"async\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-right-panel-component', encapsulation: ViewEncapsulation.None, template: \"<div\\r\\n\\tclass=\\\"right-panel-container\\\"\\r\\n\\t[ngClass]=\\\"[\\r\\n\\t\\tconfig && config.class ? config.class : '',\\r\\n\\t\\thasAlerts ? 'showing-alerts' : '',\\r\\n\\t\\tpanelIsOpened ? 'open' : ''\\r\\n\\t]\\\">\\r\\n\\t<div class=\\\"header-container\\\" *ngIf=\\\"rightPanelService.title$ | async\\\">\\r\\n\\t\\t<div class=\\\"title\\\">{{ rightPanelService.title$ | async }}</div>\\r\\n\\t\\t<div class=\\\"header-buttons-container\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.config.openSettings\\\"\\r\\n\\t\\t\\t\\tclass=\\\"header-icon header-settings-icon ti-ux-system-outline\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"onOpenSettingsClick()\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"header-icon header-close-icon ti-ux-close\\\" (click)=\\\"onClose()\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"body-container\\\" *ngIf=\\\"config && config.body\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"config.body\\\"></ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-right-panel-component{display:flex}pri-right-panel-component .right-panel-container{display:flex;flex-direction:column;position:fixed;top:3.5714285714rem;bottom:0;right:-320px;width:320px;background-color:var(--grey-1);z-index:1043;overflow:hidden;transition:all .35s;box-shadow:none}pri-right-panel-component .right-panel-container.open{right:0;box-shadow:-.2857142857rem 0 1.0714285714rem var(--shadow-4)}pri-right-panel-component .right-panel-container.under-modal{z-index:1040}pri-right-panel-component .right-panel-container.showing-alerts{top:calc(3.5714285714rem + 2.2857142857rem)}pri-right-panel-component .right-panel-container .header-container{position:relative;display:flex;flex-shrink:0;align-items:center;width:100%;padding:24px}pri-right-panel-component .right-panel-container .header-container .title{width:100%;color:var(--grey-8);font-weight:600;font-size:18px;margin-right:15px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-right-panel-component .right-panel-container .header-container .header-buttons-container{display:flex}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon{color:var(--grey-8);margin-right:15px;cursor:pointer}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon:hover{color:var(--grey-7)}pri-right-panel-component .right-panel-container .header-container .header-buttons-container .header-icon.header-close-icon{font-size:18px;margin-right:0}pri-right-panel-component .right-panel-container .body-container{display:flex;width:100%;height:100%;overflow:hidden}@media only screen and (max-width: 767px){pri-right-panel-component .right-panel-container{right:-100%;width:100%}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: RightPanelService }, { type: i2.BroadcastService }, { type: i2.DeviceService }, { type: i0.ElementRef }, { type: i3.BsModalService }, { type: i2.AppContextService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { clickout: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass RightPanelModule {\r\n}\r\nRightPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nRightPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelModule, declarations: [RightPanelComponent], imports: [CommonModule, PrimaveraI18nModule], exports: [RightPanelComponent] });\r\nRightPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelModule, imports: [CommonModule, PrimaveraI18nModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RightPanelModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [CommonModule, PrimaveraI18nModule],\r\n                    declarations: [RightPanelComponent],\r\n                    exports: [RightPanelComponent]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { RightPanelComponent, RightPanelModule, RightPanelService };\n","import * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Component, ViewEncapsulation, ViewChild, Input, Output, TemplateRef, NgModule } from '@angular/core';\nimport * as i4 from '@primavera/localization';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport * as i1 from '@angular/router';\nimport * as i2 from '@primavera/services';\nimport { Subject, takeUntil, filter } from 'rxjs';\nimport * as i3$1 from '@primavera/components/features/right-panel';\nimport { RightPanelModule } from '@primavera/components/features/right-panel';\n\n/**\r\n *  Responsible to create the modal styling.\r\n */\r\nclass ModalWrapperComponent {\r\n    constructor(domService, routeHelperService, activatedRoute) {\r\n        this.domService = domService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.activatedRoute = activatedRoute;\r\n        /** Modal title. */\r\n        this.title = '';\r\n        /** Whether the close button should be shown. */\r\n        this.showCloseButton = false;\r\n        /** Modal background color. */\r\n        this.backgroundColor = 0 /* ModalWrapperBackgroundColorEnum.White */;\r\n        /** Modal size. */\r\n        this.modalSize = 4 /* ModalSize.AdjustToContent */;\r\n        /** Event which is emitted each time the user closes the modal. */\r\n        this.closeEvent = new EventEmitter();\r\n        this.hasActions = false;\r\n    }\r\n    /** Gets the background color css class name. */\r\n    get backgroundColorClass() {\r\n        switch (this.backgroundColor) {\r\n            case 1 /* ModalWrapperBackgroundColorEnum.Gray */:\r\n                return 'modal-background-color-gray';\r\n            default:\r\n                return 'modal-background-color-white';\r\n        }\r\n    }\r\n    /** Gets the size css class name. */\r\n    get sizeClass() {\r\n        switch (this.modalSize) {\r\n            case 0 /* ModalSize.Small */:\r\n                return 'modal-size-small';\r\n            case 1 /* ModalSize.Medium */:\r\n                return 'modal-size-medium';\r\n            case 2 /* ModalSize.Large */:\r\n                return 'modal-size-large';\r\n            case 3 /* ModalSize.Fullscreen */:\r\n                return 'modal-size-fullscreen';\r\n            case 4 /* ModalSize.AdjustToContent */:\r\n                return 'modal-size-adjust-to-content';\r\n        }\r\n    }\r\n    ngAfterViewInit() {\r\n        this.popupVisibilityEventSubscription = this.routeHelperService\r\n            .popupVisibilityChangedEvent(this.activatedRoute)\r\n            .subscribe((state) => {\r\n            this.changeAllowFocusOnlyOnPopup(state);\r\n        });\r\n    }\r\n    ngAfterContentChecked() {\r\n        this.hasActions = this.wrapper?.nativeElement?.querySelector('.actions-wrapper') ? true : false;\r\n        if (this.hasActions) {\r\n            this.actionsHeight = this.wrapper?.nativeElement?.querySelector('.actions-wrapper')?.offsetHeight;\r\n        }\r\n        else {\r\n            this.actionsHeight = 0;\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.popupVisibilityEventSubscription) {\r\n            this.popupVisibilityEventSubscription.unsubscribe();\r\n        }\r\n        this.unsubscribeFocusEvents();\r\n    }\r\n    /** Handles each time a click on the close button is performed. */\r\n    close() {\r\n        this.closeEvent.emit();\r\n    }\r\n    /**\r\n     * Changes the focus allowance only on popup state.\r\n     *\r\n     * @param state new focus allowance state.\r\n     */\r\n    changeAllowFocusOnlyOnPopup(state) {\r\n        if (state) {\r\n            this.keyDownSubscriptionEvent = (event) => {\r\n                if (event.keyCode === 9) {\r\n                    setTimeout(() => {\r\n                        this.unFocusElementNotInsideModal();\r\n                    });\r\n                }\r\n            };\r\n            document.addEventListener('keydown', this.keyDownSubscriptionEvent);\r\n            this.focusSubscriptionEvent = () => {\r\n                setTimeout(() => {\r\n                    this.unFocusElementNotInsideModal();\r\n                });\r\n            };\r\n            window.addEventListener('focus', this.focusSubscriptionEvent);\r\n        }\r\n        else {\r\n            document.removeEventListener('keydown', this.keyDownSubscriptionEvent);\r\n            window.removeEventListener('focus', this.focusSubscriptionEvent);\r\n        }\r\n    }\r\n    /**\r\n     * Unfocused a dom element if it is not a child of the the ModalWrapperComponent component.\r\n     */\r\n    unFocusElementNotInsideModal() {\r\n        const focusedElement = document.activeElement;\r\n        if (focusedElement) {\r\n            if (!this.isElementInsideModal(focusedElement)) {\r\n                this.unfocusedElement(focusedElement);\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Determines whether element is inside of the ModalWrapperComponent component.\r\n     *\r\n     * @param element Dom element.\r\n     * @returns Whether element is inside of the ModalWrapperComponent component.\r\n     */\r\n    isElementInsideModal(element) {\r\n        return this.domService.findAncestorByDomElementName(element, 'pri-modal-wrapper') ? true : false;\r\n    }\r\n    /**\r\n     * Unfocused a given element.\r\n     *\r\n     * @param element Element to be unfocused.\r\n     */\r\n    unfocusedElement(element) {\r\n        element.focus();\r\n        setTimeout(() => {\r\n            element.blur();\r\n        });\r\n    }\r\n    /**\r\n     * Unsubscribes all focus event listener.\r\n     */\r\n    unsubscribeFocusEvents() {\r\n        document.removeEventListener('keydown', this.keyDownSubscriptionEvent);\r\n        window.removeEventListener('focus', this.focusSubscriptionEvent);\r\n    }\r\n}\r\nModalWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalWrapperComponent, deps: [{ token: i2.DomService }, { token: i2.RouteHelperService }, { token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });\r\nModalWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ModalWrapperComponent, selector: \"pri-modal-wrapper\", inputs: { title: \"title\", showCloseButton: \"showCloseButton\", backgroundColor: \"backgroundColor\", modalSize: \"modalSize\" }, outputs: { closeEvent: \"closeEvent\" }, viewQueries: [{ propertyName: \"wrapper\", first: true, predicate: [\"wrapper\"], descendants: true }], ngImport: i0, template: \"<div class=\\\"pri-modal-wrapper\\\">\\r\\n\\t<div class=\\\"pri-modal-wrapper-card\\\" [ngClass]=\\\"[backgroundColorClass, sizeClass]\\\">\\r\\n\\t\\t<div class=\\\"pri-modal-wrapper-title\\\" *ngIf=\\\"title || showCloseButton\\\">\\r\\n\\t\\t\\t<div>{{ title | priI18n }}</div>\\r\\n\\t\\t\\t<div class=\\\"ti-ux-close close-button\\\" (click)=\\\"close()\\\" *ngIf=\\\"showCloseButton\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t#wrapper\\r\\n\\t\\t\\tclass=\\\"pri-modal-wrapper-content pri-editor-view\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{ 'has-footer': hasActions }\\\"\\r\\n\\t\\t\\t[style.marginBottom.px]=\\\"actionsHeight\\\">\\r\\n\\t\\t\\t<ng-content></ng-content>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".pri-modal-router-container .actions-wrapper{position:absolute;background-color:var(--grey-3);margin:0 20px;left:0;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);padding:4px 0}pri-modal-wrapper .pri-modal-wrapper{position:fixed;background-color:#00000061;width:100%;height:100%;top:0;left:0;z-index:1043;display:flex;align-items:center;justify-content:center}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card{box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);display:flex;flex-direction:column;position:relative}@media only screen and (max-width: 767px){pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card{width:100%!important;height:100%!important;border-radius:0}}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-small{width:40%;height:40%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-medium{width:60%;height:60%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-large{width:80%;height:80%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-fullscreen{width:100%;height:100%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-adjust-to-content{width:auto!important;height:auto!important}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-background-color-white,pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-background-color-gray{background-color:var(--grey-3)}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-title{height:44px;background-color:var(--theme-100);font-size:20px;color:#fff;display:flex;align-items:center;padding-left:30px;flex-shrink:0;font-size:18px;justify-content:space-between;padding-right:30px}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-title .close-button{cursor:pointer}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-content{padding:20px 20px 0;overflow-y:auto;height:100%;margin:0}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-content.has-footer{padding-bottom:8px}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .close-button-without-title{position:absolute;font-size:18px;display:flex;align-items:center;justify-content:center;right:15px;font-size:32px;top:15px;cursor:pointer}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalWrapperComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-modal-wrapper', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-modal-wrapper\\\">\\r\\n\\t<div class=\\\"pri-modal-wrapper-card\\\" [ngClass]=\\\"[backgroundColorClass, sizeClass]\\\">\\r\\n\\t\\t<div class=\\\"pri-modal-wrapper-title\\\" *ngIf=\\\"title || showCloseButton\\\">\\r\\n\\t\\t\\t<div>{{ title | priI18n }}</div>\\r\\n\\t\\t\\t<div class=\\\"ti-ux-close close-button\\\" (click)=\\\"close()\\\" *ngIf=\\\"showCloseButton\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t#wrapper\\r\\n\\t\\t\\tclass=\\\"pri-modal-wrapper-content pri-editor-view\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{ 'has-footer': hasActions }\\\"\\r\\n\\t\\t\\t[style.marginBottom.px]=\\\"actionsHeight\\\">\\r\\n\\t\\t\\t<ng-content></ng-content>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".pri-modal-router-container .actions-wrapper{position:absolute;background-color:var(--grey-3);margin:0 20px;left:0;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);padding:4px 0}pri-modal-wrapper .pri-modal-wrapper{position:fixed;background-color:#00000061;width:100%;height:100%;top:0;left:0;z-index:1043;display:flex;align-items:center;justify-content:center}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card{box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);display:flex;flex-direction:column;position:relative}@media only screen and (max-width: 767px){pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card{width:100%!important;height:100%!important;border-radius:0}}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-small{width:40%;height:40%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-medium{width:60%;height:60%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-large{width:80%;height:80%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-fullscreen{width:100%;height:100%}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-size-adjust-to-content{width:auto!important;height:auto!important}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-background-color-white,pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card.modal-background-color-gray{background-color:var(--grey-3)}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-title{height:44px;background-color:var(--theme-100);font-size:20px;color:#fff;display:flex;align-items:center;padding-left:30px;flex-shrink:0;font-size:18px;justify-content:space-between;padding-right:30px}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-title .close-button{cursor:pointer}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-content{padding:20px 20px 0;overflow-y:auto;height:100%;margin:0}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .pri-modal-wrapper-content.has-footer{padding-bottom:8px}pri-modal-wrapper .pri-modal-wrapper .pri-modal-wrapper-card .close-button-without-title{position:absolute;font-size:18px;display:flex;align-items:center;justify-content:center;right:15px;font-size:32px;top:15px;cursor:pointer}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i2.DomService }, { type: i2.RouteHelperService }, { type: i1.ActivatedRoute }]; }, propDecorators: { wrapper: [{\r\n                type: ViewChild,\r\n                args: ['wrapper', { static: false }]\r\n            }], title: [{\r\n                type: Input\r\n            }], showCloseButton: [{\r\n                type: Input\r\n            }], backgroundColor: [{\r\n                type: Input\r\n            }], modalSize: [{\r\n                type: Input\r\n            }], closeEvent: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Responsible to inject components associated with a specific uri\r\n */\r\nclass ModalRouterInjectorComponent {\r\n    /**\r\n     * ModalRouterInjectorComponent constructor.\r\n     */\r\n    constructor(activatedRoute, changeDetector, domService, broadcastService, routerHelperService) {\r\n        this.activatedRoute = activatedRoute;\r\n        this.changeDetector = changeDetector;\r\n        this.domService = domService;\r\n        this.broadcastService = broadcastService;\r\n        this.routerHelperService = routerHelperService;\r\n        /** Modal background color. */\r\n        this.modalBackgroundColor = 1 /* ModalWrapperBackgroundColorEnum.Gray */;\r\n        /** Modal title. */\r\n        this.viewTitle = '';\r\n        /** Modal size. */\r\n        this.modalSize = 2 /* ModalSize.Large */;\r\n        /** Wether is to show or hide the modal close button. */\r\n        this.showCloseButton = false;\r\n        this.broadcastService.subscribe('eventTitleChanged', (changes) => {\r\n            if (changes.outlet && changes.outlet === \"popup\" /* OutletEnum.Popup */) {\r\n                this.viewTitle = changes.value;\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('view_title', (definition) => {\r\n            if (definition.outlet === \"popup\" /* OutletEnum.Popup */) {\r\n                this.viewTitle = definition.title;\r\n            }\r\n        });\r\n        this.navigationSubscription = this.routerHelperService.navigationEndEvent().subscribe(() => {\r\n            if (this.popupId) {\r\n                this.create();\r\n            }\r\n            this.popupId = this.activatedRoute.snapshot.queryParams['popupid'];\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.destroyInjectedComponent) {\r\n            this.destroyInjectedComponent();\r\n        }\r\n        if (this.navigationSubscription) {\r\n            this.navigationSubscription.unsubscribe();\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.create();\r\n    }\r\n    create() {\r\n        if (this.destroyInjectedComponent) {\r\n            this.destroyInjectedComponent();\r\n        }\r\n        // first activatedRoute is from the main.routes.ts (1st lazy load)\r\n        // in this case we want the last children route\r\n        let currentRoute = this.activatedRoute;\r\n        while (currentRoute.children.length > 0) {\r\n            currentRoute = currentRoute.children[0];\r\n        }\r\n        if (!currentRoute.snapshot.data) {\r\n            console.error('No data available in the route.');\r\n        }\r\n        const outletActivatedRouteData = currentRoute.snapshot.data;\r\n        const injectableComponent = currentRoute.component ?\r\n            currentRoute.component :\r\n            outletActivatedRouteData['components'][0];\r\n        const routeModalSize = outletActivatedRouteData['popupSize'];\r\n        this.showCloseButton = outletActivatedRouteData['showCloseButton'] ? true : false;\r\n        if (routeModalSize) {\r\n            this.modalSize = routeModalSize;\r\n        }\r\n        const injectableComponentProperties = {\r\n            outlet: \"popup\" /* OutletEnum.Popup */\r\n        };\r\n        this.destroyInjectedComponent = this.domService.appendComponentToBody(injectableComponent, injectableComponentProperties, null, this.container.nativeElement);\r\n    }\r\n    /** Handles a close modal event. */\r\n    close() {\r\n        this.routerHelperService.closeOutlet(\"popup\" /* OutletEnum.Popup */);\r\n    }\r\n}\r\nModalRouterInjectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalRouterInjectorComponent, deps: [{ token: i1.ActivatedRoute }, { token: i0.ChangeDetectorRef }, { token: i2.DomService }, { token: i2.BroadcastService }, { token: i2.RouteHelperService }], target: i0.ɵɵFactoryTarget.Component });\r\nModalRouterInjectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ModalRouterInjectorComponent, selector: \"pri-modal-router-injector\", viewQueries: [{ propertyName: \"container\", first: true, predicate: [\"container\"], descendants: true, static: true }], ngImport: i0, template: \"<pri-modal-wrapper [backgroundColor]=\\\"modalBackgroundColor\\\" [title]=\\\"viewTitle\\\" \\r\\n    [modalSize]=\\\"modalSize\\\" [showCloseButton]=\\\"showCloseButton\\\"\\r\\n    (closeEvent)=\\\"close()\\\">\\r\\n    <div #container class=\\\"pri-modal-router-container\\\"></div>\\r\\n</pri-modal-wrapper>\", dependencies: [{ kind: \"component\", type: ModalWrapperComponent, selector: \"pri-modal-wrapper\", inputs: [\"title\", \"showCloseButton\", \"backgroundColor\", \"modalSize\"], outputs: [\"closeEvent\"] }] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalRouterInjectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-modal-router-injector', template: \"<pri-modal-wrapper [backgroundColor]=\\\"modalBackgroundColor\\\" [title]=\\\"viewTitle\\\" \\r\\n    [modalSize]=\\\"modalSize\\\" [showCloseButton]=\\\"showCloseButton\\\"\\r\\n    (closeEvent)=\\\"close()\\\">\\r\\n    <div #container class=\\\"pri-modal-router-container\\\"></div>\\r\\n</pri-modal-wrapper>\" }]\r\n        }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: i2.DomService }, { type: i2.BroadcastService }, { type: i2.RouteHelperService }]; }, propDecorators: { container: [{\r\n                type: ViewChild,\r\n                args: ['container', { static: true }]\r\n            }] } });\n\n/**\r\n * Responsible to inject components associated with a specific uri\r\n */\r\nclass PanelRouterWrapperComponent {\r\n    /**\r\n     * ModalRouterInjectorComponent constructor.\r\n     */\r\n    constructor(activatedRoute, domService) {\r\n        this.activatedRoute = activatedRoute;\r\n        this.domService = domService;\r\n        this.hasActions = false;\r\n        this.destroy$ = new Subject();\r\n    }\r\n    ngOnInit() {\r\n        if (this.injectableComponent) {\r\n            const injectableComponentProperties = {\r\n                outlet: \"panel\" /* OutletEnum.Panel */\r\n            };\r\n            this.destroyInjectedComponent = this.domService.appendComponentToBody(this.injectableComponent, injectableComponentProperties, null, this.container.nativeElement);\r\n        }\r\n        // subscribe to route change detection to check if component is the same.\r\n        this.activatedRoute.url.pipe(takeUntil(this.destroy$)).subscribe((segments) => {\r\n            let currentRoute = this.activatedRoute;\r\n            while (currentRoute.children.length > 0) {\r\n                currentRoute = currentRoute.children[0];\r\n            }\r\n            const outletActivatedRouteData = currentRoute.snapshot?.data || currentRoute.data;\r\n            if (!outletActivatedRouteData) {\r\n                console.error('No data available in the route.');\r\n            }\r\n            const routeComponent = currentRoute.component\r\n                ? currentRoute.component\r\n                : outletActivatedRouteData['components'][0];\r\n            if (this.injectableComponent !== routeComponent) {\r\n                this.injectableComponent = routeComponent;\r\n                // destroy previous component\r\n                if (this.destroyInjectedComponent) {\r\n                    this.destroyInjectedComponent();\r\n                }\r\n                // append new component\r\n                const injectableComponentProperties = {\r\n                    outlet: \"panel\" /* OutletEnum.Panel */\r\n                };\r\n                this.destroyInjectedComponent = this.domService.appendComponentToBody(this.injectableComponent, injectableComponentProperties, null, this.container.nativeElement);\r\n            }\r\n        });\r\n    }\r\n    ngAfterContentChecked() {\r\n        this.hasActions = this.container?.nativeElement?.querySelector('.actions-wrapper') ? true : false;\r\n        if (this.hasActions) {\r\n            this.actionsHeight = this.container?.nativeElement?.querySelector('.actions-wrapper')?.offsetHeight;\r\n        }\r\n        else {\r\n            this.actionsHeight = 0;\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n        if (this.destroyInjectedComponent) {\r\n            this.destroyInjectedComponent();\r\n        }\r\n    }\r\n}\r\nPanelRouterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelRouterWrapperComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.DomService }], target: i0.ɵɵFactoryTarget.Component });\r\nPanelRouterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PanelRouterWrapperComponent, selector: \"pri-panel-router-wrapper\", inputs: { injectableComponent: \"injectableComponent\" }, viewQueries: [{ propertyName: \"container\", first: true, predicate: [\"container\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"panel-router-wrapper pri-editor-view\\\" #container\\r\\n    [ngClass]=\\\"{'has-footer' : hasActions}\\\" [style.marginBottom.px]=\\\"actionsHeight\\\"></div>\", styles: [\".panel-router-wrapper .actions-wrapper{position:absolute;background-color:var(--grey-1);margin:0 12px;left:0;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);padding:4px 0}.panel-router-wrapper.pri-editor-view>*{width:100%}.panel-router-wrapper.pri-editor-view .pri-field-container{padding-right:0}pri-panel-router-wrapper{display:flex;width:100%;height:100%}pri-panel-router-wrapper .panel-router-wrapper{width:100%;max-height:100%;padding:0 12px;overflow-y:auto}pri-panel-router-wrapper .panel-router-wrapper.has-footer{padding-bottom:8px}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelRouterWrapperComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-panel-router-wrapper', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"panel-router-wrapper pri-editor-view\\\" #container\\r\\n    [ngClass]=\\\"{'has-footer' : hasActions}\\\" [style.marginBottom.px]=\\\"actionsHeight\\\"></div>\", styles: [\".panel-router-wrapper .actions-wrapper{position:absolute;background-color:var(--grey-1);margin:0 12px;left:0;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);padding:4px 0}.panel-router-wrapper.pri-editor-view>*{width:100%}.panel-router-wrapper.pri-editor-view .pri-field-container{padding-right:0}pri-panel-router-wrapper{display:flex;width:100%;height:100%}pri-panel-router-wrapper .panel-router-wrapper{width:100%;max-height:100%;padding:0 12px;overflow-y:auto}pri-panel-router-wrapper .panel-router-wrapper.has-footer{padding-bottom:8px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.DomService }]; }, propDecorators: { container: [{\r\n                type: ViewChild,\r\n                args: ['container', { static: true }]\r\n            }], injectableComponent: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Responsible to inject components associated with a specific uri\r\n */\r\nclass PanelRouterInjectorComponent {\r\n    /**\r\n     * PanelRouterInjectorComponent constructor.\r\n     */\r\n    constructor(activatedRoute, broadcastService, routeHelperService, rightPanelService) {\r\n        this.activatedRoute = activatedRoute;\r\n        this.broadcastService = broadcastService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.rightPanelService = rightPanelService;\r\n        this.destroy$ = new Subject();\r\n        this.onOutletClose = false;\r\n    }\r\n    ngOnInit() {\r\n        // Gets the injector component form the route data definition.\r\n        let currentRoute = this.activatedRoute;\r\n        while (currentRoute.children.length > 0) {\r\n            currentRoute = currentRoute.children[0];\r\n        }\r\n        this.injectableComponent = currentRoute.component;\r\n        if (this.injectableComponent) {\r\n            this.openRightPanel();\r\n            this.listenRightPanelClose();\r\n            this.listenEventTitleChanges();\r\n            this.listenViewTitleChanges();\r\n        }\r\n        // Listen to outlet event close of type Panel ensure the closure of the right panel.\r\n        // The right panel is closed when the outlet is closed.\r\n        this.routeHelperService\r\n            .onOutletClose(\"panel\" /* OutletEnum.Panel */)\r\n            .pipe(takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            // Avoid satck overflow\r\n            // This component handles the outlet close event and also the listenRightPanelClose\r\n            // event. When the outlet is closed, the listenRightPanelClose event is triggered\r\n            // and the outlet is closed again. This is a workaround to avoid this behavior.\r\n            this.onOutletClose = true;\r\n            // The right panel is closed when the outlet is closed.\r\n            this.rightPanelService?.closeRightPanel$?.next({\r\n                componentRef: null\r\n            });\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n        if (this.eventTitleChangedSubscription) {\r\n            this.eventTitleChangedSubscription();\r\n            this.eventTitleChangedSubscription = undefined;\r\n        }\r\n        if (this.viewTitleSubscription) {\r\n            this.viewTitleSubscription();\r\n            this.viewTitleSubscription = undefined;\r\n        }\r\n    }\r\n    openRightPanel() {\r\n        this.rightPanelService.openRightPanel$.next({\r\n            body: this.body,\r\n            bodyID: 'panel-router',\r\n            closeOnOutsideClick: false\r\n        });\r\n    }\r\n    /**\r\n     * Subscribes to the close right panel event to close outlet when it's active.\r\n     */\r\n    listenRightPanelClose() {\r\n        this.rightPanelService.closeRightPanel$\r\n            .pipe(filter(({ componentRef }) => {\r\n            if (this.onOutletClose) {\r\n                this.onOutletClose = false;\r\n                return false;\r\n            }\r\n            if (!componentRef) {\r\n                componentRef = this.rightPanelService.currentOpenComponentRef;\r\n            }\r\n            return componentRef?.instance?.config?.bodyID === 'panel-router';\r\n        }), takeUntil(this.destroy$))\r\n            .subscribe(({ data }) => {\r\n            if (this.routeHelperService.isOutletActive(this.activatedRoute, \"panel\" /* OutletEnum.Panel */)) {\r\n                this.routeHelperService.closeOutlet(\"panel\" /* OutletEnum.Panel */, false, data);\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Subscribes to title event in order to defined the right bar title.\r\n     */\r\n    listenEventTitleChanges() {\r\n        this.eventTitleChangedSubscription = this.broadcastService.subscribe('eventTitleChanged', (changes) => {\r\n            if (changes?.outlet === \"popup\" /* OutletEnum.Popup */) {\r\n                this.rightPanelService.title$.next(changes.value);\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Subscribes to the close right panel event in order no close the panel outlet.\r\n     */\r\n    listenViewTitleChanges() {\r\n        this.viewTitleSubscription = this.broadcastService.subscribe('view_title', (definition) => {\r\n            if (definition?.outlet === \"panel\" /* OutletEnum.Panel */) {\r\n                this.rightPanelService.title$.next(definition.title);\r\n            }\r\n        });\r\n    }\r\n}\r\nPanelRouterInjectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelRouterInjectorComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.BroadcastService }, { token: i2.RouteHelperService }, { token: i3$1.RightPanelService }], target: i0.ɵɵFactoryTarget.Component });\r\nPanelRouterInjectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PanelRouterInjectorComponent, selector: \"pri-panel-router-injector\", inputs: { injectableComponent: \"injectableComponent\" }, viewQueries: [{ propertyName: \"body\", first: true, predicate: [\"body\"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: \"<ng-template #body>\\r\\n    <pri-panel-router-wrapper [injectableComponent]=\\\"injectableComponent\\\"></pri-panel-router-wrapper>\\r\\n</ng-template>\\r\\n\", dependencies: [{ kind: \"component\", type: PanelRouterWrapperComponent, selector: \"pri-panel-router-wrapper\", inputs: [\"injectableComponent\"] }] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelRouterInjectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-panel-router-injector', template: \"<ng-template #body>\\r\\n    <pri-panel-router-wrapper [injectableComponent]=\\\"injectableComponent\\\"></pri-panel-router-wrapper>\\r\\n</ng-template>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.BroadcastService }, { type: i2.RouteHelperService }, { type: i3$1.RightPanelService }]; }, propDecorators: { body: [{\r\n                type: ViewChild,\r\n                args: ['body', { static: true, read: TemplateRef }]\r\n            }], injectableComponent: [{\r\n                type: Input\r\n            }] } });\n\nclass InjectorComponentsModule {\r\n}\r\nInjectorComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectorComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nInjectorComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectorComponentsModule, declarations: [ModalWrapperComponent,\r\n        ModalRouterInjectorComponent,\r\n        PanelRouterWrapperComponent,\r\n        PanelRouterInjectorComponent], imports: [CommonModule, PrimaveraI18nModule, RightPanelModule], exports: [ModalWrapperComponent, ModalRouterInjectorComponent, PanelRouterInjectorComponent] });\r\nInjectorComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectorComponentsModule, imports: [CommonModule, PrimaveraI18nModule, RightPanelModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InjectorComponentsModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [CommonModule, PrimaveraI18nModule, RightPanelModule],\r\n                    declarations: [\r\n                        ModalWrapperComponent,\r\n                        ModalRouterInjectorComponent,\r\n                        PanelRouterWrapperComponent,\r\n                        PanelRouterInjectorComponent\r\n                    ],\r\n                    exports: [ModalWrapperComponent, ModalRouterInjectorComponent, PanelRouterInjectorComponent]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { InjectorComponentsModule, ModalRouterInjectorComponent, ModalWrapperComponent, PanelRouterInjectorComponent, PanelRouterWrapperComponent };\n","import * as i1 from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Directive, Input, Output, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Optional, Inject, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxRequiredValidator } from '@angular/forms';\nimport * as i2 from '@angular/material/core';\nimport { mixinTabIndex, mixinColor, mixinDisableRipple, mixinDisabled, MatRipple, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i3 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\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.io/license\n */\n/** Injection token to be used to override the default options for `mat-checkbox`. */\nconst MAT_CHECKBOX_DEFAULT_OPTIONS = new InjectionToken('mat-checkbox-default-options', {\n    providedIn: 'root',\n    factory: MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY() {\n    return {\n        color: 'accent',\n        clickAction: 'check-indeterminate',\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.io/license\n */\n// Increasing integer for generating unique ids for checkbox components.\nlet nextUniqueId = 0;\n// Default checkbox configuration.\nconst defaults = MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY();\n/**\n * Provider Expression that allows mat-checkbox to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)].\n * @docs-private\n */\nconst MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR = {\n    provide: NG_VALUE_ACCESSOR,\n    useExisting: forwardRef(() => MatCheckbox),\n    multi: true,\n};\n/** Change event object emitted by MatCheckbox. */\nclass MatCheckboxChange {\n}\n// Boilerplate for applying mixins to MatCheckbox.\n/** @docs-private */\nconst _MatCheckboxMixinBase = mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(class {\n    constructor(_elementRef) {\n        this._elementRef = _elementRef;\n    }\n}))));\nclass _MatCheckboxBase extends _MatCheckboxMixinBase {\n    constructor(idPrefix, elementRef, _changeDetectorRef, _ngZone, tabIndex, _animationMode, _options) {\n        super(elementRef);\n        this._changeDetectorRef = _changeDetectorRef;\n        this._ngZone = _ngZone;\n        this._animationMode = _animationMode;\n        this._options = _options;\n        /**\n         * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will\n         * take precedence so this may be omitted.\n         */\n        this.ariaLabel = '';\n        /**\n         * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element\n         */\n        this.ariaLabelledby = null;\n        /** Whether the label should appear after or before the checkbox. Defaults to 'after' */\n        this.labelPosition = 'after';\n        /** Name value will be applied to the input element if present */\n        this.name = null;\n        /** Event emitted when the checkbox's `checked` value changes. */\n        this.change = new EventEmitter();\n        /** Event emitted when the checkbox's `indeterminate` value changes. */\n        this.indeterminateChange = new EventEmitter();\n        /**\n         * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.\n         * @docs-private\n         */\n        this._onTouched = () => { };\n        this._currentAnimationClass = '';\n        this._currentCheckState = 0 /* TransitionCheckState.Init */;\n        this._controlValueAccessorChangeFn = () => { };\n        this._checked = false;\n        this._disabled = false;\n        this._indeterminate = false;\n        this._options = this._options || defaults;\n        this.color = this.defaultColor = this._options.color || defaults.color;\n        this.tabIndex = parseInt(tabIndex) || 0;\n        this.id = this._uniqueId = `${idPrefix}${++nextUniqueId}`;\n    }\n    /** Returns the unique id for the visual hidden input. */\n    get inputId() {\n        return `${this.id || this._uniqueId}-input`;\n    }\n    /** Whether the checkbox is required. */\n    get required() {\n        return this._required;\n    }\n    set required(value) {\n        this._required = coerceBooleanProperty(value);\n    }\n    ngAfterViewInit() {\n        this._syncIndeterminate(this._indeterminate);\n    }\n    /** Whether the checkbox is checked. */\n    get checked() {\n        return this._checked;\n    }\n    set checked(value) {\n        const checked = coerceBooleanProperty(value);\n        if (checked != this.checked) {\n            this._checked = checked;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /**\n     * Whether the checkbox is disabled. This fully overrides the implementation provided by\n     * mixinDisabled, but the mixin is still required because mixinTabIndex requires it.\n     */\n    get disabled() {\n        return this._disabled;\n    }\n    set disabled(value) {\n        const newValue = coerceBooleanProperty(value);\n        if (newValue !== this.disabled) {\n            this._disabled = newValue;\n            this._changeDetectorRef.markForCheck();\n        }\n    }\n    /**\n     * Whether the checkbox is indeterminate. This is also known as \"mixed\" mode and can be used to\n     * represent a checkbox with three states, e.g. a checkbox that represents a nested list of\n     * checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately\n     * set to false.\n     */\n    get indeterminate() {\n        return this._indeterminate;\n    }\n    set indeterminate(value) {\n        const changed = value != this._indeterminate;\n        this._indeterminate = coerceBooleanProperty(value);\n        if (changed) {\n            if (this._indeterminate) {\n                this._transitionCheckState(3 /* TransitionCheckState.Indeterminate */);\n            }\n            else {\n                this._transitionCheckState(this.checked ? 1 /* TransitionCheckState.Checked */ : 2 /* TransitionCheckState.Unchecked */);\n            }\n            this.indeterminateChange.emit(this._indeterminate);\n        }\n        this._syncIndeterminate(this._indeterminate);\n    }\n    _isRippleDisabled() {\n        return this.disableRipple || this.disabled;\n    }\n    /** Method being called whenever the label text changes. */\n    _onLabelTextChange() {\n        // Since the event of the `cdkObserveContent` directive runs outside of the zone, the checkbox\n        // component will be only marked for check, but no actual change detection runs automatically.\n        // Instead of going back into the zone in order to trigger a change detection which causes\n        // *all* components to be checked (if explicitly marked or not using OnPush), we only trigger\n        // an explicit change detection for the checkbox view and its children.\n        this._changeDetectorRef.detectChanges();\n    }\n    // Implemented as part of ControlValueAccessor.\n    writeValue(value) {\n        this.checked = !!value;\n    }\n    // Implemented as part of ControlValueAccessor.\n    registerOnChange(fn) {\n        this._controlValueAccessorChangeFn = fn;\n    }\n    // Implemented as part of ControlValueAccessor.\n    registerOnTouched(fn) {\n        this._onTouched = fn;\n    }\n    // Implemented as part of ControlValueAccessor.\n    setDisabledState(isDisabled) {\n        this.disabled = isDisabled;\n    }\n    _getAriaChecked() {\n        if (this.checked) {\n            return 'true';\n        }\n        return this.indeterminate ? 'mixed' : 'false';\n    }\n    _transitionCheckState(newState) {\n        let oldState = this._currentCheckState;\n        let element = this._getAnimationTargetElement();\n        if (oldState === newState || !element) {\n            return;\n        }\n        if (this._currentAnimationClass) {\n            element.classList.remove(this._currentAnimationClass);\n        }\n        this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);\n        this._currentCheckState = newState;\n        if (this._currentAnimationClass.length > 0) {\n            element.classList.add(this._currentAnimationClass);\n            // Remove the animation class to avoid animation when the checkbox is moved between containers\n            const animationClass = this._currentAnimationClass;\n            this._ngZone.runOutsideAngular(() => {\n                setTimeout(() => {\n                    element.classList.remove(animationClass);\n                }, 1000);\n            });\n        }\n    }\n    _emitChangeEvent() {\n        this._controlValueAccessorChangeFn(this.checked);\n        this.change.emit(this._createChangeEvent(this.checked));\n        // Assigning the value again here is redundant, but we have to do it in case it was\n        // changed inside the `change` listener which will cause the input to be out of sync.\n        if (this._inputElement) {\n            this._inputElement.nativeElement.checked = this.checked;\n        }\n    }\n    /** Toggles the `checked` state of the checkbox. */\n    toggle() {\n        this.checked = !this.checked;\n        this._controlValueAccessorChangeFn(this.checked);\n    }\n    _handleInputClick() {\n        const clickAction = this._options?.clickAction;\n        // If resetIndeterminate is false, and the current state is indeterminate, do nothing on click\n        if (!this.disabled && clickAction !== 'noop') {\n            // When user manually click on the checkbox, `indeterminate` is set to false.\n            if (this.indeterminate && clickAction !== 'check') {\n                Promise.resolve().then(() => {\n                    this._indeterminate = false;\n                    this.indeterminateChange.emit(this._indeterminate);\n                });\n            }\n            this._checked = !this._checked;\n            this._transitionCheckState(this._checked ? 1 /* TransitionCheckState.Checked */ : 2 /* TransitionCheckState.Unchecked */);\n            // Emit our custom change event if the native input emitted one.\n            // It is important to only emit it, if the native input triggered one, because\n            // we don't want to trigger a change event, when the `checked` variable changes for example.\n            this._emitChangeEvent();\n        }\n        else if (!this.disabled && clickAction === 'noop') {\n            // Reset native input when clicked with noop. The native checkbox becomes checked after\n            // click, reset it to be align with `checked` value of `mat-checkbox`.\n            this._inputElement.nativeElement.checked = this.checked;\n            this._inputElement.nativeElement.indeterminate = this.indeterminate;\n        }\n    }\n    _onInteractionEvent(event) {\n        // We always have to stop propagation on the change event.\n        // Otherwise the change event, from the input element, will bubble up and\n        // emit its event object to the `change` output.\n        event.stopPropagation();\n    }\n    _onBlur() {\n        // When a focused element becomes disabled, the browser *immediately* fires a blur event.\n        // Angular does not expect events to be raised during change detection, so any state change\n        // (such as a form control's 'ng-touched') will cause a changed-after-checked error.\n        // See https://github.com/angular/angular/issues/17793. To work around this, we defer\n        // telling the form control it has been touched until the next tick.\n        Promise.resolve().then(() => {\n            this._onTouched();\n            this._changeDetectorRef.markForCheck();\n        });\n    }\n    _getAnimationClassForCheckStateTransition(oldState, newState) {\n        // Don't transition if animations are disabled.\n        if (this._animationMode === 'NoopAnimations') {\n            return '';\n        }\n        switch (oldState) {\n            case 0 /* TransitionCheckState.Init */:\n                // Handle edge case where user interacts with checkbox that does not have [(ngModel)] or\n                // [checked] bound to it.\n                if (newState === 1 /* TransitionCheckState.Checked */) {\n                    return this._animationClasses.uncheckedToChecked;\n                }\n                else if (newState == 3 /* TransitionCheckState.Indeterminate */) {\n                    return this._checked\n                        ? this._animationClasses.checkedToIndeterminate\n                        : this._animationClasses.uncheckedToIndeterminate;\n                }\n                break;\n            case 2 /* TransitionCheckState.Unchecked */:\n                return newState === 1 /* TransitionCheckState.Checked */\n                    ? this._animationClasses.uncheckedToChecked\n                    : this._animationClasses.uncheckedToIndeterminate;\n            case 1 /* TransitionCheckState.Checked */:\n                return newState === 2 /* TransitionCheckState.Unchecked */\n                    ? this._animationClasses.checkedToUnchecked\n                    : this._animationClasses.checkedToIndeterminate;\n            case 3 /* TransitionCheckState.Indeterminate */:\n                return newState === 1 /* TransitionCheckState.Checked */\n                    ? this._animationClasses.indeterminateToChecked\n                    : this._animationClasses.indeterminateToUnchecked;\n        }\n        return '';\n    }\n    /**\n     * Syncs the indeterminate value with the checkbox DOM node.\n     *\n     * We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a\n     * property is supported on an element boils down to `if (propName in element)`. Domino's\n     * HTMLInputElement doesn't have an `indeterminate` property so Ivy will warn during\n     * server-side rendering.\n     */\n    _syncIndeterminate(value) {\n        const nativeCheckbox = this._inputElement;\n        if (nativeCheckbox) {\n            nativeCheckbox.nativeElement.indeterminate = value;\n        }\n    }\n}\n_MatCheckboxBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatCheckboxBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: _MatCheckboxBase, inputs: { ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], id: \"id\", required: \"required\", labelPosition: \"labelPosition\", name: \"name\", value: \"value\", checked: \"checked\", disabled: \"disabled\", indeterminate: \"indeterminate\" }, outputs: { change: \"change\", indeterminateChange: \"indeterminateChange\" }, viewQueries: [{ propertyName: \"_inputElement\", first: true, predicate: [\"input\"], descendants: true }, { propertyName: \"_labelElement\", first: true, predicate: [\"label\"], descendants: true }, { propertyName: \"ripple\", first: true, predicate: MatRipple, descendants: true }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxBase, decorators: [{\n            type: Directive\n        }], ctorParameters: function () { return [{ type: undefined }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined }, { type: undefined }, { type: undefined }]; }, propDecorators: { ariaLabel: [{\n                type: Input,\n                args: ['aria-label']\n            }], ariaLabelledby: [{\n                type: Input,\n                args: ['aria-labelledby']\n            }], ariaDescribedby: [{\n                type: Input,\n                args: ['aria-describedby']\n            }], id: [{\n                type: Input\n            }], required: [{\n                type: Input\n            }], labelPosition: [{\n                type: Input\n            }], name: [{\n                type: Input\n            }], change: [{\n                type: Output\n            }], indeterminateChange: [{\n                type: Output\n            }], value: [{\n                type: Input\n            }], _inputElement: [{\n                type: ViewChild,\n                args: ['input']\n            }], _labelElement: [{\n                type: ViewChild,\n                args: ['label']\n            }], ripple: [{\n                type: ViewChild,\n                args: [MatRipple]\n            }], checked: [{\n                type: Input\n            }], disabled: [{\n                type: Input\n            }], indeterminate: [{\n                type: Input\n            }] } });\n/**\n * A material design checkbox component. Supports all of the functionality of an HTML5 checkbox,\n * and exposes a similar API. A MatCheckbox can be either checked, unchecked, indeterminate, or\n * disabled. Note that all additional accessibility attributes are taken care of by the component,\n * so there is no need to provide them yourself. However, if you want to omit a label and still\n * have the checkbox be accessible, you may supply an [aria-label] input.\n * See: https://material.io/design/components/selection-controls.html\n */\nclass MatCheckbox extends _MatCheckboxBase {\n    constructor(elementRef, changeDetectorRef, _focusMonitor, ngZone, tabIndex, animationMode, options) {\n        super('mat-checkbox-', elementRef, changeDetectorRef, ngZone, tabIndex, animationMode, options);\n        this._focusMonitor = _focusMonitor;\n        this._animationClasses = {\n            uncheckedToChecked: 'mat-checkbox-anim-unchecked-checked',\n            uncheckedToIndeterminate: 'mat-checkbox-anim-unchecked-indeterminate',\n            checkedToUnchecked: 'mat-checkbox-anim-checked-unchecked',\n            checkedToIndeterminate: 'mat-checkbox-anim-checked-indeterminate',\n            indeterminateToChecked: 'mat-checkbox-anim-indeterminate-checked',\n            indeterminateToUnchecked: 'mat-checkbox-anim-indeterminate-unchecked',\n        };\n    }\n    _createChangeEvent(isChecked) {\n        const event = new MatCheckboxChange();\n        event.source = this;\n        event.checked = isChecked;\n        return event;\n    }\n    _getAnimationTargetElement() {\n        return this._elementRef.nativeElement;\n    }\n    ngAfterViewInit() {\n        super.ngAfterViewInit();\n        this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {\n            if (!focusOrigin) {\n                this._onBlur();\n            }\n        });\n    }\n    ngOnDestroy() {\n        this._focusMonitor.stopMonitoring(this._elementRef);\n    }\n    /**\n     * Event handler for checkbox input element.\n     * Toggles checked state if element is not disabled.\n     * Do not toggle on (change) event since IE doesn't fire change event when\n     *   indeterminate checkbox is clicked.\n     * @param event\n     */\n    _onInputClick(event) {\n        // We have to stop propagation for click events on the visual hidden input element.\n        // By default, when a user clicks on a label element, a generated click event will be\n        // dispatched on the associated input element. Since we are using a label element as our\n        // root container, the click event on the `checkbox` will be executed twice.\n        // The real click event will bubble up, and the generated click event also tries to bubble up.\n        // This will lead to multiple click events.\n        // Preventing bubbling for the second event will solve that issue.\n        event.stopPropagation();\n        super._handleInputClick();\n    }\n    /** Focuses the checkbox. */\n    focus(origin, options) {\n        if (origin) {\n            this._focusMonitor.focusVia(this._inputElement, origin, options);\n        }\n        else {\n            this._inputElement.nativeElement.focus(options);\n        }\n    }\n}\nMatCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckbox, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.NgZone }, { token: 'tabindex', attribute: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_CHECKBOX_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatCheckbox, selector: \"mat-checkbox\", inputs: { disableRipple: \"disableRipple\", color: \"color\", tabIndex: \"tabIndex\" }, host: { properties: { \"id\": \"id\", \"attr.tabindex\": \"null\", \"attr.aria-label\": \"null\", \"attr.aria-labelledby\": \"null\", \"class.mat-checkbox-indeterminate\": \"indeterminate\", \"class.mat-checkbox-checked\": \"checked\", \"class.mat-checkbox-disabled\": \"disabled\", \"class.mat-checkbox-label-before\": \"labelPosition == \\\"before\\\"\", \"class._mat-animation-noopable\": \"_animationMode === 'NoopAnimations'\" }, classAttribute: \"mat-checkbox\" }, providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR], exportAs: [\"matCheckbox\"], usesInheritance: true, ngImport: i0, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-checkbox-layout\\\" #label>\\n  <span class=\\\"mat-checkbox-inner-container\\\"\\n       [class.mat-checkbox-inner-container-no-side-margin]=\\\"!checkboxLabel.textContent || !checkboxLabel.textContent.trim()\\\">\\n    <input #input\\n           class=\\\"mat-checkbox-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n           [id]=\\\"inputId\\\"\\n           [required]=\\\"required\\\"\\n           [checked]=\\\"checked\\\"\\n           [attr.value]=\\\"value\\\"\\n           [disabled]=\\\"disabled\\\"\\n           [attr.name]=\\\"name\\\"\\n           [tabIndex]=\\\"tabIndex\\\"\\n           [attr.aria-label]=\\\"ariaLabel || null\\\"\\n           [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n           [attr.aria-checked]=\\\"_getAriaChecked()\\\"\\n           [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n           (change)=\\\"_onInteractionEvent($event)\\\"\\n           (click)=\\\"_onInputClick($event)\\\">\\n    <span matRipple class=\\\"mat-checkbox-ripple mat-focus-indicator\\\"\\n         [matRippleTrigger]=\\\"label\\\"\\n         [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n         [matRippleRadius]=\\\"20\\\"\\n         [matRippleCentered]=\\\"true\\\"\\n         [matRippleAnimation]=\\\"{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}\\\">\\n      <span class=\\\"mat-ripple-element mat-checkbox-persistent-ripple\\\"></span>\\n    </span>\\n    <span class=\\\"mat-checkbox-frame\\\"></span>\\n    <span class=\\\"mat-checkbox-background\\\">\\n      <svg version=\\\"1.1\\\"\\n           focusable=\\\"false\\\"\\n           class=\\\"mat-checkbox-checkmark\\\"\\n           viewBox=\\\"0 0 24 24\\\"\\n           aria-hidden=\\\"true\\\">\\n        <path class=\\\"mat-checkbox-checkmark-path\\\"\\n              fill=\\\"none\\\"\\n              stroke=\\\"white\\\"\\n              d=\\\"M4.1,12.7 9,17.6 20.3,6.3\\\"/>\\n      </svg>\\n      <!-- Element for rendering the indeterminate state checkbox. -->\\n      <span class=\\\"mat-checkbox-mixedmark\\\"></span>\\n    </span>\\n  </span>\\n  <span class=\\\"mat-checkbox-label\\\" #checkboxLabel (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n    <!-- Add an invisible span so JAWS can read the label -->\\n    <span style=\\\"display:none\\\">&nbsp;</span>\\n    <ng-content></ng-content>\\n  </span>\\n</label>\\n\", styles: [\"@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:\\\"\\\"}\"], dependencies: [{ kind: \"directive\", type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { kind: \"directive\", type: i3.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckbox, decorators: [{\n            type: Component,\n            args: [{ selector: 'mat-checkbox', exportAs: 'matCheckbox', host: {\n                        'class': 'mat-checkbox',\n                        '[id]': 'id',\n                        '[attr.tabindex]': 'null',\n                        '[attr.aria-label]': 'null',\n                        '[attr.aria-labelledby]': 'null',\n                        '[class.mat-checkbox-indeterminate]': 'indeterminate',\n                        '[class.mat-checkbox-checked]': 'checked',\n                        '[class.mat-checkbox-disabled]': 'disabled',\n                        '[class.mat-checkbox-label-before]': 'labelPosition == \"before\"',\n                        '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n                    }, providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR], inputs: ['disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-checkbox-layout\\\" #label>\\n  <span class=\\\"mat-checkbox-inner-container\\\"\\n       [class.mat-checkbox-inner-container-no-side-margin]=\\\"!checkboxLabel.textContent || !checkboxLabel.textContent.trim()\\\">\\n    <input #input\\n           class=\\\"mat-checkbox-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n           [id]=\\\"inputId\\\"\\n           [required]=\\\"required\\\"\\n           [checked]=\\\"checked\\\"\\n           [attr.value]=\\\"value\\\"\\n           [disabled]=\\\"disabled\\\"\\n           [attr.name]=\\\"name\\\"\\n           [tabIndex]=\\\"tabIndex\\\"\\n           [attr.aria-label]=\\\"ariaLabel || null\\\"\\n           [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n           [attr.aria-checked]=\\\"_getAriaChecked()\\\"\\n           [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n           (change)=\\\"_onInteractionEvent($event)\\\"\\n           (click)=\\\"_onInputClick($event)\\\">\\n    <span matRipple class=\\\"mat-checkbox-ripple mat-focus-indicator\\\"\\n         [matRippleTrigger]=\\\"label\\\"\\n         [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n         [matRippleRadius]=\\\"20\\\"\\n         [matRippleCentered]=\\\"true\\\"\\n         [matRippleAnimation]=\\\"{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}\\\">\\n      <span class=\\\"mat-ripple-element mat-checkbox-persistent-ripple\\\"></span>\\n    </span>\\n    <span class=\\\"mat-checkbox-frame\\\"></span>\\n    <span class=\\\"mat-checkbox-background\\\">\\n      <svg version=\\\"1.1\\\"\\n           focusable=\\\"false\\\"\\n           class=\\\"mat-checkbox-checkmark\\\"\\n           viewBox=\\\"0 0 24 24\\\"\\n           aria-hidden=\\\"true\\\">\\n        <path class=\\\"mat-checkbox-checkmark-path\\\"\\n              fill=\\\"none\\\"\\n              stroke=\\\"white\\\"\\n              d=\\\"M4.1,12.7 9,17.6 20.3,6.3\\\"/>\\n      </svg>\\n      <!-- Element for rendering the indeterminate state checkbox. -->\\n      <span class=\\\"mat-checkbox-mixedmark\\\"></span>\\n    </span>\\n  </span>\\n  <span class=\\\"mat-checkbox-label\\\" #checkboxLabel (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n    <!-- Add an invisible span so JAWS can read the label -->\\n    <span style=\\\"display:none\\\">&nbsp;</span>\\n    <ng-content></ng-content>\\n  </span>\\n</label>\\n\", styles: [\"@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:\\\"\\\"}\"] }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Attribute,\n                    args: ['tabindex']\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [ANIMATION_MODULE_TYPE]\n                }] }, { type: undefined, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MAT_CHECKBOX_DEFAULT_OPTIONS]\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.io/license\n */\nconst MAT_CHECKBOX_REQUIRED_VALIDATOR = {\n    provide: NG_VALIDATORS,\n    useExisting: forwardRef(() => MatCheckboxRequiredValidator),\n    multi: true,\n};\n/**\n * Validator for Material checkbox's required attribute in template-driven checkbox.\n * Current CheckboxRequiredValidator only work with `input type=checkbox` and does not\n * work with `mat-checkbox`.\n */\nclass MatCheckboxRequiredValidator extends CheckboxRequiredValidator {\n}\nMatCheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.2.0\", type: MatCheckboxRequiredValidator, selector: \"mat-checkbox[required][formControlName],\\n             mat-checkbox[required][formControl], mat-checkbox[required][ngModel]\", providers: [MAT_CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxRequiredValidator, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: `mat-checkbox[required][formControlName],\n             mat-checkbox[required][formControl], mat-checkbox[required][ngModel]`,\n                    providers: [MAT_CHECKBOX_REQUIRED_VALIDATOR],\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.io/license\n */\n/** This module is used by both original and MDC-based checkbox implementations. */\nclass _MatCheckboxRequiredValidatorModule {\n}\n_MatCheckboxRequiredValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n_MatCheckboxRequiredValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, declarations: [MatCheckboxRequiredValidator], exports: [MatCheckboxRequiredValidator] });\n_MatCheckboxRequiredValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    exports: [MatCheckboxRequiredValidator],\n                    declarations: [MatCheckboxRequiredValidator],\n                }]\n        }] });\nclass MatCheckboxModule {\n}\nMatCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxModule, declarations: [MatCheckbox], imports: [MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule], exports: [MatCheckbox, MatCommonModule, _MatCheckboxRequiredValidatorModule] });\nMatCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxModule, imports: [MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule, MatCommonModule, _MatCheckboxRequiredValidatorModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.2.0\", ngImport: i0, type: MatCheckboxModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule],\n                    exports: [MatCheckbox, MatCommonModule, _MatCheckboxRequiredValidatorModule],\n                    declarations: [MatCheckbox],\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.io/license\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.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR, MAT_CHECKBOX_DEFAULT_OPTIONS, MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY, MAT_CHECKBOX_REQUIRED_VALIDATOR, MatCheckbox, MatCheckboxChange, MatCheckboxModule, MatCheckboxRequiredValidator, _MatCheckboxBase, _MatCheckboxRequiredValidatorModule };\n","/**\n * Take input from [0, n] and return it as [0, 1]\n * @hidden\n */\nexport function bound01(n, max) {\n    if (isOnePointZero(n)) {\n        n = '100%';\n    }\n    var isPercent = isPercentage(n);\n    n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));\n    // Automatically convert percentage into number\n    if (isPercent) {\n        n = parseInt(String(n * max), 10) / 100;\n    }\n    // Handle floating point rounding errors\n    if (Math.abs(n - max) < 0.000001) {\n        return 1;\n    }\n    // Convert into [0, 1] range if it isn't already\n    if (max === 360) {\n        // If n is a hue given in degrees,\n        // wrap around out-of-range values into [0, 360] range\n        // then convert into [0, 1].\n        n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));\n    }\n    else {\n        // If n not a hue given in degrees\n        // Convert into [0, 1] range if it isn't already.\n        n = (n % max) / parseFloat(String(max));\n    }\n    return n;\n}\n/**\n * Force a number between 0 and 1\n * @hidden\n */\nexport function clamp01(val) {\n    return Math.min(1, Math.max(0, val));\n}\n/**\n * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>\n * @hidden\n */\nexport function isOnePointZero(n) {\n    return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;\n}\n/**\n * Check to see if string passed in is a percentage\n * @hidden\n */\nexport function isPercentage(n) {\n    return typeof n === 'string' && n.indexOf('%') !== -1;\n}\n/**\n * Return a valid alpha value [0,1] with all invalid values being set to 1\n * @hidden\n */\nexport function boundAlpha(a) {\n    a = parseFloat(a);\n    if (isNaN(a) || a < 0 || a > 1) {\n        a = 1;\n    }\n    return a;\n}\n/**\n * Replace a decimal with it's percentage value\n * @hidden\n */\nexport function convertToPercentage(n) {\n    if (n <= 1) {\n        return \"\".concat(Number(n) * 100, \"%\");\n    }\n    return n;\n}\n/**\n * Force a hex value to have 2 characters\n * @hidden\n */\nexport function pad2(c) {\n    return c.length === 1 ? '0' + c : String(c);\n}\n","import { bound01, pad2 } from './util.js';\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>\n/**\n * Handle bounds / percentage checking to conform to CSS color spec\n * <http://www.w3.org/TR/css3-color/>\n * *Assumes:* r, g, b in [0, 255] or [0, 1]\n * *Returns:* { r, g, b } in [0, 255]\n */\nexport function rgbToRgb(r, g, b) {\n    return {\n        r: bound01(r, 255) * 255,\n        g: bound01(g, 255) * 255,\n        b: bound01(b, 255) * 255,\n    };\n}\n/**\n * Converts an RGB color value to HSL.\n * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n * *Returns:* { h, s, l } in [0,1]\n */\nexport function rgbToHsl(r, g, b) {\n    r = bound01(r, 255);\n    g = bound01(g, 255);\n    b = bound01(b, 255);\n    var max = Math.max(r, g, b);\n    var min = Math.min(r, g, b);\n    var h = 0;\n    var s = 0;\n    var l = (max + min) / 2;\n    if (max === min) {\n        s = 0;\n        h = 0; // achromatic\n    }\n    else {\n        var d = max - min;\n        s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n        switch (max) {\n            case r:\n                h = (g - b) / d + (g < b ? 6 : 0);\n                break;\n            case g:\n                h = (b - r) / d + 2;\n                break;\n            case b:\n                h = (r - g) / d + 4;\n                break;\n            default:\n                break;\n        }\n        h /= 6;\n    }\n    return { h: h, s: s, l: l };\n}\nfunction hue2rgb(p, q, t) {\n    if (t < 0) {\n        t += 1;\n    }\n    if (t > 1) {\n        t -= 1;\n    }\n    if (t < 1 / 6) {\n        return p + (q - p) * (6 * t);\n    }\n    if (t < 1 / 2) {\n        return q;\n    }\n    if (t < 2 / 3) {\n        return p + (q - p) * (2 / 3 - t) * 6;\n    }\n    return p;\n}\n/**\n * Converts an HSL color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hslToRgb(h, s, l) {\n    var r;\n    var g;\n    var b;\n    h = bound01(h, 360);\n    s = bound01(s, 100);\n    l = bound01(l, 100);\n    if (s === 0) {\n        // achromatic\n        g = l;\n        b = l;\n        r = l;\n    }\n    else {\n        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n        var p = 2 * l - q;\n        r = hue2rgb(p, q, h + 1 / 3);\n        g = hue2rgb(p, q, h);\n        b = hue2rgb(p, q, h - 1 / 3);\n    }\n    return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color value to HSV\n *\n * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n * *Returns:* { h, s, v } in [0,1]\n */\nexport function rgbToHsv(r, g, b) {\n    r = bound01(r, 255);\n    g = bound01(g, 255);\n    b = bound01(b, 255);\n    var max = Math.max(r, g, b);\n    var min = Math.min(r, g, b);\n    var h = 0;\n    var v = max;\n    var d = max - min;\n    var s = max === 0 ? 0 : d / max;\n    if (max === min) {\n        h = 0; // achromatic\n    }\n    else {\n        switch (max) {\n            case r:\n                h = (g - b) / d + (g < b ? 6 : 0);\n                break;\n            case g:\n                h = (b - r) / d + 2;\n                break;\n            case b:\n                h = (r - g) / d + 4;\n                break;\n            default:\n                break;\n        }\n        h /= 6;\n    }\n    return { h: h, s: s, v: v };\n}\n/**\n * Converts an HSV color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hsvToRgb(h, s, v) {\n    h = bound01(h, 360) * 6;\n    s = bound01(s, 100);\n    v = bound01(v, 100);\n    var i = Math.floor(h);\n    var f = h - i;\n    var p = v * (1 - s);\n    var q = v * (1 - f * s);\n    var t = v * (1 - (1 - f) * s);\n    var mod = i % 6;\n    var r = [v, q, p, p, t, v][mod];\n    var g = [t, v, v, q, p, p][mod];\n    var b = [p, p, t, v, v, q][mod];\n    return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color to hex\n *\n * Assumes r, g, and b are contained in the set [0, 255]\n * Returns a 3 or 6 character hex\n */\nexport function rgbToHex(r, g, b, allow3Char) {\n    var hex = [\n        pad2(Math.round(r).toString(16)),\n        pad2(Math.round(g).toString(16)),\n        pad2(Math.round(b).toString(16)),\n    ];\n    // Return a 3 character hex if possible\n    if (allow3Char &&\n        hex[0].startsWith(hex[0].charAt(1)) &&\n        hex[1].startsWith(hex[1].charAt(1)) &&\n        hex[2].startsWith(hex[2].charAt(1))) {\n        return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n    }\n    return hex.join('');\n}\n/**\n * Converts an RGBA color plus alpha transparency to hex\n *\n * Assumes r, g, b are contained in the set [0, 255] and\n * a in [0, 1]. Returns a 4 or 8 character rgba hex\n */\n// eslint-disable-next-line max-params\nexport function rgbaToHex(r, g, b, a, allow4Char) {\n    var hex = [\n        pad2(Math.round(r).toString(16)),\n        pad2(Math.round(g).toString(16)),\n        pad2(Math.round(b).toString(16)),\n        pad2(convertDecimalToHex(a)),\n    ];\n    // Return a 4 character hex if possible\n    if (allow4Char &&\n        hex[0].startsWith(hex[0].charAt(1)) &&\n        hex[1].startsWith(hex[1].charAt(1)) &&\n        hex[2].startsWith(hex[2].charAt(1)) &&\n        hex[3].startsWith(hex[3].charAt(1))) {\n        return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);\n    }\n    return hex.join('');\n}\n/**\n * Converts an RGBA color to an ARGB Hex8 string\n * Rarely used, but required for \"toFilter()\"\n */\nexport function rgbaToArgbHex(r, g, b, a) {\n    var hex = [\n        pad2(convertDecimalToHex(a)),\n        pad2(Math.round(r).toString(16)),\n        pad2(Math.round(g).toString(16)),\n        pad2(Math.round(b).toString(16)),\n    ];\n    return hex.join('');\n}\n/** Converts a decimal to a hex value */\nexport function convertDecimalToHex(d) {\n    return Math.round(parseFloat(d) * 255).toString(16);\n}\n/** Converts a hex value to a decimal */\nexport function convertHexToDecimal(h) {\n    return parseIntFromHex(h) / 255;\n}\n/** Parse a base-16 hex value into a base-10 integer */\nexport function parseIntFromHex(val) {\n    return parseInt(val, 16);\n}\nexport function numberInputToObject(color) {\n    return {\n        r: color >> 16,\n        g: (color & 0xff00) >> 8,\n        b: color & 0xff,\n    };\n}\n","// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json\n/**\n * @hidden\n */\nexport var names = {\n    aliceblue: '#f0f8ff',\n    antiquewhite: '#faebd7',\n    aqua: '#00ffff',\n    aquamarine: '#7fffd4',\n    azure: '#f0ffff',\n    beige: '#f5f5dc',\n    bisque: '#ffe4c4',\n    black: '#000000',\n    blanchedalmond: '#ffebcd',\n    blue: '#0000ff',\n    blueviolet: '#8a2be2',\n    brown: '#a52a2a',\n    burlywood: '#deb887',\n    cadetblue: '#5f9ea0',\n    chartreuse: '#7fff00',\n    chocolate: '#d2691e',\n    coral: '#ff7f50',\n    cornflowerblue: '#6495ed',\n    cornsilk: '#fff8dc',\n    crimson: '#dc143c',\n    cyan: '#00ffff',\n    darkblue: '#00008b',\n    darkcyan: '#008b8b',\n    darkgoldenrod: '#b8860b',\n    darkgray: '#a9a9a9',\n    darkgreen: '#006400',\n    darkgrey: '#a9a9a9',\n    darkkhaki: '#bdb76b',\n    darkmagenta: '#8b008b',\n    darkolivegreen: '#556b2f',\n    darkorange: '#ff8c00',\n    darkorchid: '#9932cc',\n    darkred: '#8b0000',\n    darksalmon: '#e9967a',\n    darkseagreen: '#8fbc8f',\n    darkslateblue: '#483d8b',\n    darkslategray: '#2f4f4f',\n    darkslategrey: '#2f4f4f',\n    darkturquoise: '#00ced1',\n    darkviolet: '#9400d3',\n    deeppink: '#ff1493',\n    deepskyblue: '#00bfff',\n    dimgray: '#696969',\n    dimgrey: '#696969',\n    dodgerblue: '#1e90ff',\n    firebrick: '#b22222',\n    floralwhite: '#fffaf0',\n    forestgreen: '#228b22',\n    fuchsia: '#ff00ff',\n    gainsboro: '#dcdcdc',\n    ghostwhite: '#f8f8ff',\n    goldenrod: '#daa520',\n    gold: '#ffd700',\n    gray: '#808080',\n    green: '#008000',\n    greenyellow: '#adff2f',\n    grey: '#808080',\n    honeydew: '#f0fff0',\n    hotpink: '#ff69b4',\n    indianred: '#cd5c5c',\n    indigo: '#4b0082',\n    ivory: '#fffff0',\n    khaki: '#f0e68c',\n    lavenderblush: '#fff0f5',\n    lavender: '#e6e6fa',\n    lawngreen: '#7cfc00',\n    lemonchiffon: '#fffacd',\n    lightblue: '#add8e6',\n    lightcoral: '#f08080',\n    lightcyan: '#e0ffff',\n    lightgoldenrodyellow: '#fafad2',\n    lightgray: '#d3d3d3',\n    lightgreen: '#90ee90',\n    lightgrey: '#d3d3d3',\n    lightpink: '#ffb6c1',\n    lightsalmon: '#ffa07a',\n    lightseagreen: '#20b2aa',\n    lightskyblue: '#87cefa',\n    lightslategray: '#778899',\n    lightslategrey: '#778899',\n    lightsteelblue: '#b0c4de',\n    lightyellow: '#ffffe0',\n    lime: '#00ff00',\n    limegreen: '#32cd32',\n    linen: '#faf0e6',\n    magenta: '#ff00ff',\n    maroon: '#800000',\n    mediumaquamarine: '#66cdaa',\n    mediumblue: '#0000cd',\n    mediumorchid: '#ba55d3',\n    mediumpurple: '#9370db',\n    mediumseagreen: '#3cb371',\n    mediumslateblue: '#7b68ee',\n    mediumspringgreen: '#00fa9a',\n    mediumturquoise: '#48d1cc',\n    mediumvioletred: '#c71585',\n    midnightblue: '#191970',\n    mintcream: '#f5fffa',\n    mistyrose: '#ffe4e1',\n    moccasin: '#ffe4b5',\n    navajowhite: '#ffdead',\n    navy: '#000080',\n    oldlace: '#fdf5e6',\n    olive: '#808000',\n    olivedrab: '#6b8e23',\n    orange: '#ffa500',\n    orangered: '#ff4500',\n    orchid: '#da70d6',\n    palegoldenrod: '#eee8aa',\n    palegreen: '#98fb98',\n    paleturquoise: '#afeeee',\n    palevioletred: '#db7093',\n    papayawhip: '#ffefd5',\n    peachpuff: '#ffdab9',\n    peru: '#cd853f',\n    pink: '#ffc0cb',\n    plum: '#dda0dd',\n    powderblue: '#b0e0e6',\n    purple: '#800080',\n    rebeccapurple: '#663399',\n    red: '#ff0000',\n    rosybrown: '#bc8f8f',\n    royalblue: '#4169e1',\n    saddlebrown: '#8b4513',\n    salmon: '#fa8072',\n    sandybrown: '#f4a460',\n    seagreen: '#2e8b57',\n    seashell: '#fff5ee',\n    sienna: '#a0522d',\n    silver: '#c0c0c0',\n    skyblue: '#87ceeb',\n    slateblue: '#6a5acd',\n    slategray: '#708090',\n    slategrey: '#708090',\n    snow: '#fffafa',\n    springgreen: '#00ff7f',\n    steelblue: '#4682b4',\n    tan: '#d2b48c',\n    teal: '#008080',\n    thistle: '#d8bfd8',\n    tomato: '#ff6347',\n    turquoise: '#40e0d0',\n    violet: '#ee82ee',\n    wheat: '#f5deb3',\n    white: '#ffffff',\n    whitesmoke: '#f5f5f5',\n    yellow: '#ffff00',\n    yellowgreen: '#9acd32',\n};\n","/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport { convertHexToDecimal, hslToRgb, hsvToRgb, parseIntFromHex, rgbToRgb, } from './conversion.js';\nimport { names } from './css-color-names.js';\nimport { boundAlpha, convertToPercentage } from './util.js';\n/**\n * Given a string or object, convert that input to RGB\n *\n * Possible string inputs:\n * ```\n * \"red\"\n * \"#f00\" or \"f00\"\n * \"#ff0000\" or \"ff0000\"\n * \"#ff000000\" or \"ff000000\"\n * \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n * \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n * \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n * \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n * \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n * \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n * \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n * ```\n */\nexport function inputToRGB(color) {\n    var rgb = { r: 0, g: 0, b: 0 };\n    var a = 1;\n    var s = null;\n    var v = null;\n    var l = null;\n    var ok = false;\n    var format = false;\n    if (typeof color === 'string') {\n        color = stringInputToObject(color);\n    }\n    if (typeof color === 'object') {\n        if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {\n            rgb = rgbToRgb(color.r, color.g, color.b);\n            ok = true;\n            format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';\n        }\n        else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {\n            s = convertToPercentage(color.s);\n            v = convertToPercentage(color.v);\n            rgb = hsvToRgb(color.h, s, v);\n            ok = true;\n            format = 'hsv';\n        }\n        else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {\n            s = convertToPercentage(color.s);\n            l = convertToPercentage(color.l);\n            rgb = hslToRgb(color.h, s, l);\n            ok = true;\n            format = 'hsl';\n        }\n        if (Object.prototype.hasOwnProperty.call(color, 'a')) {\n            a = color.a;\n        }\n    }\n    a = boundAlpha(a);\n    return {\n        ok: ok,\n        format: color.format || format,\n        r: Math.min(255, Math.max(rgb.r, 0)),\n        g: Math.min(255, Math.max(rgb.g, 0)),\n        b: Math.min(255, Math.max(rgb.b, 0)),\n        a: a,\n    };\n}\n// <http://www.w3.org/TR/css3-values/#integers>\nvar CSS_INTEGER = '[-\\\\+]?\\\\d+%?';\n// <http://www.w3.org/TR/css3-values/#number-value>\nvar CSS_NUMBER = '[-\\\\+]?\\\\d*\\\\.\\\\d+%?';\n// Allow positive/negative integer/number.  Don't capture the either/or, just the entire outcome.\nvar CSS_UNIT = \"(?:\".concat(CSS_NUMBER, \")|(?:\").concat(CSS_INTEGER, \")\");\n// Actual matching.\n// Parentheses and commas are optional, but not required.\n// Whitespace can take the place of commas or opening paren\nvar PERMISSIVE_MATCH3 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar PERMISSIVE_MATCH4 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar matchers = {\n    CSS_UNIT: new RegExp(CSS_UNIT),\n    rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),\n    rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),\n    hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),\n    hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),\n    hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),\n    hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),\n    hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n    hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n    hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n    hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n};\n/**\n * Permissive string parsing.  Take in a number of formats, and output an object\n * based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\n */\nexport function stringInputToObject(color) {\n    color = color.trim().toLowerCase();\n    if (color.length === 0) {\n        return false;\n    }\n    var named = false;\n    if (names[color]) {\n        color = names[color];\n        named = true;\n    }\n    else if (color === 'transparent') {\n        return { r: 0, g: 0, b: 0, a: 0, format: 'name' };\n    }\n    // Try to match string input using regular expressions.\n    // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n    // Just return an object and let the conversion functions handle that.\n    // This way the result will be the same whether the tinycolor is initialized with string or object.\n    var match = matchers.rgb.exec(color);\n    if (match) {\n        return { r: match[1], g: match[2], b: match[3] };\n    }\n    match = matchers.rgba.exec(color);\n    if (match) {\n        return { r: match[1], g: match[2], b: match[3], a: match[4] };\n    }\n    match = matchers.hsl.exec(color);\n    if (match) {\n        return { h: match[1], s: match[2], l: match[3] };\n    }\n    match = matchers.hsla.exec(color);\n    if (match) {\n        return { h: match[1], s: match[2], l: match[3], a: match[4] };\n    }\n    match = matchers.hsv.exec(color);\n    if (match) {\n        return { h: match[1], s: match[2], v: match[3] };\n    }\n    match = matchers.hsva.exec(color);\n    if (match) {\n        return { h: match[1], s: match[2], v: match[3], a: match[4] };\n    }\n    match = matchers.hex8.exec(color);\n    if (match) {\n        return {\n            r: parseIntFromHex(match[1]),\n            g: parseIntFromHex(match[2]),\n            b: parseIntFromHex(match[3]),\n            a: convertHexToDecimal(match[4]),\n            format: named ? 'name' : 'hex8',\n        };\n    }\n    match = matchers.hex6.exec(color);\n    if (match) {\n        return {\n            r: parseIntFromHex(match[1]),\n            g: parseIntFromHex(match[2]),\n            b: parseIntFromHex(match[3]),\n            format: named ? 'name' : 'hex',\n        };\n    }\n    match = matchers.hex4.exec(color);\n    if (match) {\n        return {\n            r: parseIntFromHex(match[1] + match[1]),\n            g: parseIntFromHex(match[2] + match[2]),\n            b: parseIntFromHex(match[3] + match[3]),\n            a: convertHexToDecimal(match[4] + match[4]),\n            format: named ? 'name' : 'hex8',\n        };\n    }\n    match = matchers.hex3.exec(color);\n    if (match) {\n        return {\n            r: parseIntFromHex(match[1] + match[1]),\n            g: parseIntFromHex(match[2] + match[2]),\n            b: parseIntFromHex(match[3] + match[3]),\n            format: named ? 'name' : 'hex',\n        };\n    }\n    return false;\n}\n/**\n * Check to see if it looks like a CSS unit\n * (see `matchers` above for definition).\n */\nexport function isValidCSSUnit(color) {\n    return Boolean(matchers.CSS_UNIT.exec(String(color)));\n}\n","import { numberInputToObject, rgbaToHex, rgbToHex, rgbToHsl, rgbToHsv } from './conversion.js';\nimport { names } from './css-color-names.js';\nimport { inputToRGB } from './format-input';\nimport { bound01, boundAlpha, clamp01 } from './util.js';\nvar TinyColor = /** @class */ (function () {\n    function TinyColor(color, opts) {\n        if (color === void 0) { color = ''; }\n        if (opts === void 0) { opts = {}; }\n        var _a;\n        // If input is already a tinycolor, return itself\n        if (color instanceof TinyColor) {\n            // eslint-disable-next-line no-constructor-return\n            return color;\n        }\n        if (typeof color === 'number') {\n            color = numberInputToObject(color);\n        }\n        this.originalInput = color;\n        var rgb = inputToRGB(color);\n        this.originalInput = color;\n        this.r = rgb.r;\n        this.g = rgb.g;\n        this.b = rgb.b;\n        this.a = rgb.a;\n        this.roundA = Math.round(100 * this.a) / 100;\n        this.format = (_a = opts.format) !== null && _a !== void 0 ? _a : rgb.format;\n        this.gradientType = opts.gradientType;\n        // Don't let the range of [0,255] come back in [0,1].\n        // Potentially lose a little bit of precision here, but will fix issues where\n        // .5 gets interpreted as half of the total, instead of half of 1\n        // If it was supposed to be 128, this was already taken care of by `inputToRgb`\n        if (this.r < 1) {\n            this.r = Math.round(this.r);\n        }\n        if (this.g < 1) {\n            this.g = Math.round(this.g);\n        }\n        if (this.b < 1) {\n            this.b = Math.round(this.b);\n        }\n        this.isValid = rgb.ok;\n    }\n    TinyColor.prototype.isDark = function () {\n        return this.getBrightness() < 128;\n    };\n    TinyColor.prototype.isLight = function () {\n        return !this.isDark();\n    };\n    /**\n     * Returns the perceived brightness of the color, from 0-255.\n     */\n    TinyColor.prototype.getBrightness = function () {\n        // http://www.w3.org/TR/AERT#color-contrast\n        var rgb = this.toRgb();\n        return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n    };\n    /**\n     * Returns the perceived luminance of a color, from 0-1.\n     */\n    TinyColor.prototype.getLuminance = function () {\n        // http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n        var rgb = this.toRgb();\n        var R;\n        var G;\n        var B;\n        var RsRGB = rgb.r / 255;\n        var GsRGB = rgb.g / 255;\n        var BsRGB = rgb.b / 255;\n        if (RsRGB <= 0.03928) {\n            R = RsRGB / 12.92;\n        }\n        else {\n            // eslint-disable-next-line prefer-exponentiation-operator\n            R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);\n        }\n        if (GsRGB <= 0.03928) {\n            G = GsRGB / 12.92;\n        }\n        else {\n            // eslint-disable-next-line prefer-exponentiation-operator\n            G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);\n        }\n        if (BsRGB <= 0.03928) {\n            B = BsRGB / 12.92;\n        }\n        else {\n            // eslint-disable-next-line prefer-exponentiation-operator\n            B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);\n        }\n        return 0.2126 * R + 0.7152 * G + 0.0722 * B;\n    };\n    /**\n     * Returns the alpha value of a color, from 0-1.\n     */\n    TinyColor.prototype.getAlpha = function () {\n        return this.a;\n    };\n    /**\n     * Sets the alpha value on the current color.\n     *\n     * @param alpha - The new alpha value. The accepted range is 0-1.\n     */\n    TinyColor.prototype.setAlpha = function (alpha) {\n        this.a = boundAlpha(alpha);\n        this.roundA = Math.round(100 * this.a) / 100;\n        return this;\n    };\n    /**\n     * Returns whether the color is monochrome.\n     */\n    TinyColor.prototype.isMonochrome = function () {\n        var s = this.toHsl().s;\n        return s === 0;\n    };\n    /**\n     * Returns the object as a HSVA object.\n     */\n    TinyColor.prototype.toHsv = function () {\n        var hsv = rgbToHsv(this.r, this.g, this.b);\n        return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };\n    };\n    /**\n     * Returns the hsva values interpolated into a string with the following format:\n     * \"hsva(xxx, xxx, xxx, xx)\".\n     */\n    TinyColor.prototype.toHsvString = function () {\n        var hsv = rgbToHsv(this.r, this.g, this.b);\n        var h = Math.round(hsv.h * 360);\n        var s = Math.round(hsv.s * 100);\n        var v = Math.round(hsv.v * 100);\n        return this.a === 1 ? \"hsv(\".concat(h, \", \").concat(s, \"%, \").concat(v, \"%)\") : \"hsva(\".concat(h, \", \").concat(s, \"%, \").concat(v, \"%, \").concat(this.roundA, \")\");\n    };\n    /**\n     * Returns the object as a HSLA object.\n     */\n    TinyColor.prototype.toHsl = function () {\n        var hsl = rgbToHsl(this.r, this.g, this.b);\n        return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };\n    };\n    /**\n     * Returns the hsla values interpolated into a string with the following format:\n     * \"hsla(xxx, xxx, xxx, xx)\".\n     */\n    TinyColor.prototype.toHslString = function () {\n        var hsl = rgbToHsl(this.r, this.g, this.b);\n        var h = Math.round(hsl.h * 360);\n        var s = Math.round(hsl.s * 100);\n        var l = Math.round(hsl.l * 100);\n        return this.a === 1 ? \"hsl(\".concat(h, \", \").concat(s, \"%, \").concat(l, \"%)\") : \"hsla(\".concat(h, \", \").concat(s, \"%, \").concat(l, \"%, \").concat(this.roundA, \")\");\n    };\n    /**\n     * Returns the hex value of the color.\n     * @param allow3Char will shorten hex value to 3 char if possible\n     */\n    TinyColor.prototype.toHex = function (allow3Char) {\n        if (allow3Char === void 0) { allow3Char = false; }\n        return rgbToHex(this.r, this.g, this.b, allow3Char);\n    };\n    /**\n     * Returns the hex value of the color -with a # prefixed.\n     * @param allow3Char will shorten hex value to 3 char if possible\n     */\n    TinyColor.prototype.toHexString = function (allow3Char) {\n        if (allow3Char === void 0) { allow3Char = false; }\n        return '#' + this.toHex(allow3Char);\n    };\n    /**\n     * Returns the hex 8 value of the color.\n     * @param allow4Char will shorten hex value to 4 char if possible\n     */\n    TinyColor.prototype.toHex8 = function (allow4Char) {\n        if (allow4Char === void 0) { allow4Char = false; }\n        return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char);\n    };\n    /**\n     * Returns the hex 8 value of the color -with a # prefixed.\n     * @param allow4Char will shorten hex value to 4 char if possible\n     */\n    TinyColor.prototype.toHex8String = function (allow4Char) {\n        if (allow4Char === void 0) { allow4Char = false; }\n        return '#' + this.toHex8(allow4Char);\n    };\n    /**\n     * Returns the shorter hex value of the color depends on its alpha -with a # prefixed.\n     * @param allowShortChar will shorten hex value to 3 or 4 char if possible\n     */\n    TinyColor.prototype.toHexShortString = function (allowShortChar) {\n        if (allowShortChar === void 0) { allowShortChar = false; }\n        return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);\n    };\n    /**\n     * Returns the object as a RGBA object.\n     */\n    TinyColor.prototype.toRgb = function () {\n        return {\n            r: Math.round(this.r),\n            g: Math.round(this.g),\n            b: Math.round(this.b),\n            a: this.a,\n        };\n    };\n    /**\n     * Returns the RGBA values interpolated into a string with the following format:\n     * \"RGBA(xxx, xxx, xxx, xx)\".\n     */\n    TinyColor.prototype.toRgbString = function () {\n        var r = Math.round(this.r);\n        var g = Math.round(this.g);\n        var b = Math.round(this.b);\n        return this.a === 1 ? \"rgb(\".concat(r, \", \").concat(g, \", \").concat(b, \")\") : \"rgba(\".concat(r, \", \").concat(g, \", \").concat(b, \", \").concat(this.roundA, \")\");\n    };\n    /**\n     * Returns the object as a RGBA object.\n     */\n    TinyColor.prototype.toPercentageRgb = function () {\n        var fmt = function (x) { return \"\".concat(Math.round(bound01(x, 255) * 100), \"%\"); };\n        return {\n            r: fmt(this.r),\n            g: fmt(this.g),\n            b: fmt(this.b),\n            a: this.a,\n        };\n    };\n    /**\n     * Returns the RGBA relative values interpolated into a string\n     */\n    TinyColor.prototype.toPercentageRgbString = function () {\n        var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };\n        return this.a === 1\n            ? \"rgb(\".concat(rnd(this.r), \"%, \").concat(rnd(this.g), \"%, \").concat(rnd(this.b), \"%)\")\n            : \"rgba(\".concat(rnd(this.r), \"%, \").concat(rnd(this.g), \"%, \").concat(rnd(this.b), \"%, \").concat(this.roundA, \")\");\n    };\n    /**\n     * The 'real' name of the color -if there is one.\n     */\n    TinyColor.prototype.toName = function () {\n        if (this.a === 0) {\n            return 'transparent';\n        }\n        if (this.a < 1) {\n            return false;\n        }\n        var hex = '#' + rgbToHex(this.r, this.g, this.b, false);\n        for (var _i = 0, _a = Object.entries(names); _i < _a.length; _i++) {\n            var _b = _a[_i], key = _b[0], value = _b[1];\n            if (hex === value) {\n                return key;\n            }\n        }\n        return false;\n    };\n    TinyColor.prototype.toString = function (format) {\n        var formatSet = Boolean(format);\n        format = format !== null && format !== void 0 ? format : this.format;\n        var formattedString = false;\n        var hasAlpha = this.a < 1 && this.a >= 0;\n        var needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith('hex') || format === 'name');\n        if (needsAlphaFormat) {\n            // Special case for \"transparent\", all other non-alpha formats\n            // will return rgba when there is transparency.\n            if (format === 'name' && this.a === 0) {\n                return this.toName();\n            }\n            return this.toRgbString();\n        }\n        if (format === 'rgb') {\n            formattedString = this.toRgbString();\n        }\n        if (format === 'prgb') {\n            formattedString = this.toPercentageRgbString();\n        }\n        if (format === 'hex' || format === 'hex6') {\n            formattedString = this.toHexString();\n        }\n        if (format === 'hex3') {\n            formattedString = this.toHexString(true);\n        }\n        if (format === 'hex4') {\n            formattedString = this.toHex8String(true);\n        }\n        if (format === 'hex8') {\n            formattedString = this.toHex8String();\n        }\n        if (format === 'name') {\n            formattedString = this.toName();\n        }\n        if (format === 'hsl') {\n            formattedString = this.toHslString();\n        }\n        if (format === 'hsv') {\n            formattedString = this.toHsvString();\n        }\n        return formattedString || this.toHexString();\n    };\n    TinyColor.prototype.toNumber = function () {\n        return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);\n    };\n    TinyColor.prototype.clone = function () {\n        return new TinyColor(this.toString());\n    };\n    /**\n     * Lighten the color a given amount. Providing 100 will always return white.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.lighten = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        var hsl = this.toHsl();\n        hsl.l += amount / 100;\n        hsl.l = clamp01(hsl.l);\n        return new TinyColor(hsl);\n    };\n    /**\n     * Brighten the color a given amount, from 0 to 100.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.brighten = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        var rgb = this.toRgb();\n        rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));\n        rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));\n        rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));\n        return new TinyColor(rgb);\n    };\n    /**\n     * Darken the color a given amount, from 0 to 100.\n     * Providing 100 will always return black.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.darken = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        var hsl = this.toHsl();\n        hsl.l -= amount / 100;\n        hsl.l = clamp01(hsl.l);\n        return new TinyColor(hsl);\n    };\n    /**\n     * Mix the color with pure white, from 0 to 100.\n     * Providing 0 will do nothing, providing 100 will always return white.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.tint = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        return this.mix('white', amount);\n    };\n    /**\n     * Mix the color with pure black, from 0 to 100.\n     * Providing 0 will do nothing, providing 100 will always return black.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.shade = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        return this.mix('black', amount);\n    };\n    /**\n     * Desaturate the color a given amount, from 0 to 100.\n     * Providing 100 will is the same as calling greyscale\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.desaturate = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        var hsl = this.toHsl();\n        hsl.s -= amount / 100;\n        hsl.s = clamp01(hsl.s);\n        return new TinyColor(hsl);\n    };\n    /**\n     * Saturate the color a given amount, from 0 to 100.\n     * @param amount - valid between 1-100\n     */\n    TinyColor.prototype.saturate = function (amount) {\n        if (amount === void 0) { amount = 10; }\n        var hsl = this.toHsl();\n        hsl.s += amount / 100;\n        hsl.s = clamp01(hsl.s);\n        return new TinyColor(hsl);\n    };\n    /**\n     * Completely desaturates a color into greyscale.\n     * Same as calling `desaturate(100)`\n     */\n    TinyColor.prototype.greyscale = function () {\n        return this.desaturate(100);\n    };\n    /**\n     * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.\n     * Values outside of this range will be wrapped into this range.\n     */\n    TinyColor.prototype.spin = function (amount) {\n        var hsl = this.toHsl();\n        var hue = (hsl.h + amount) % 360;\n        hsl.h = hue < 0 ? 360 + hue : hue;\n        return new TinyColor(hsl);\n    };\n    /**\n     * Mix the current color a given amount with another color, from 0 to 100.\n     * 0 means no mixing (return current color).\n     */\n    TinyColor.prototype.mix = function (color, amount) {\n        if (amount === void 0) { amount = 50; }\n        var rgb1 = this.toRgb();\n        var rgb2 = new TinyColor(color).toRgb();\n        var p = amount / 100;\n        var rgba = {\n            r: (rgb2.r - rgb1.r) * p + rgb1.r,\n            g: (rgb2.g - rgb1.g) * p + rgb1.g,\n            b: (rgb2.b - rgb1.b) * p + rgb1.b,\n            a: (rgb2.a - rgb1.a) * p + rgb1.a,\n        };\n        return new TinyColor(rgba);\n    };\n    TinyColor.prototype.analogous = function (results, slices) {\n        if (results === void 0) { results = 6; }\n        if (slices === void 0) { slices = 30; }\n        var hsl = this.toHsl();\n        var part = 360 / slices;\n        var ret = [this];\n        for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results;) {\n            hsl.h = (hsl.h + part) % 360;\n            ret.push(new TinyColor(hsl));\n        }\n        return ret;\n    };\n    /**\n     * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js\n     */\n    TinyColor.prototype.complement = function () {\n        var hsl = this.toHsl();\n        hsl.h = (hsl.h + 180) % 360;\n        return new TinyColor(hsl);\n    };\n    TinyColor.prototype.monochromatic = function (results) {\n        if (results === void 0) { results = 6; }\n        var hsv = this.toHsv();\n        var h = hsv.h;\n        var s = hsv.s;\n        var v = hsv.v;\n        var res = [];\n        var modification = 1 / results;\n        while (results--) {\n            res.push(new TinyColor({ h: h, s: s, v: v }));\n            v = (v + modification) % 1;\n        }\n        return res;\n    };\n    TinyColor.prototype.splitcomplement = function () {\n        var hsl = this.toHsl();\n        var h = hsl.h;\n        return [\n            this,\n            new TinyColor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),\n            new TinyColor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }),\n        ];\n    };\n    /**\n     * Compute how the color would appear on a background\n     */\n    TinyColor.prototype.onBackground = function (background) {\n        var fg = this.toRgb();\n        var bg = new TinyColor(background).toRgb();\n        var alpha = fg.a + bg.a * (1 - fg.a);\n        return new TinyColor({\n            r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,\n            g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,\n            b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,\n            a: alpha,\n        });\n    };\n    /**\n     * Alias for `polyad(3)`\n     */\n    TinyColor.prototype.triad = function () {\n        return this.polyad(3);\n    };\n    /**\n     * Alias for `polyad(4)`\n     */\n    TinyColor.prototype.tetrad = function () {\n        return this.polyad(4);\n    };\n    /**\n     * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)\n     * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...\n     */\n    TinyColor.prototype.polyad = function (n) {\n        var hsl = this.toHsl();\n        var h = hsl.h;\n        var result = [this];\n        var increment = 360 / n;\n        for (var i = 1; i < n; i++) {\n            result.push(new TinyColor({ h: (h + i * increment) % 360, s: hsl.s, l: hsl.l }));\n        }\n        return result;\n    };\n    /**\n     * compare color vs current color\n     */\n    TinyColor.prototype.equals = function (color) {\n        return this.toRgbString() === new TinyColor(color).toRgbString();\n    };\n    return TinyColor;\n}());\nexport { TinyColor };\n// kept for backwards compatability with v1\nexport function tinycolor(color, opts) {\n    if (color === void 0) { color = ''; }\n    if (opts === void 0) { opts = {}; }\n    return new TinyColor(color, opts);\n}\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, Input, NgModule, Directive, Output, HostListener, EventEmitter, isDevMode, forwardRef } from '@angular/core';\nimport { Subject, Subscription, fromEvent } from 'rxjs';\nimport { distinctUntilChanged, debounceTime, tap } from 'rxjs/operators';\nimport { TinyColor } from '@ctrl/tinycolor';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\nconst checkboardCache = {};\nfunction render(c1, c2, size) {\n    if (typeof document === 'undefined') {\n        return null;\n    }\n    const canvas = document.createElement('canvas');\n    canvas.width = size * 2;\n    canvas.height = size * 2;\n    const ctx = canvas.getContext('2d');\n    if (!ctx) {\n        return null;\n    } // If no context can be found, return early.\n    ctx.fillStyle = c1;\n    ctx.fillRect(0, 0, canvas.width, canvas.height);\n    ctx.fillStyle = c2;\n    ctx.fillRect(0, 0, size, size);\n    ctx.translate(size, size);\n    ctx.fillRect(0, 0, size, size);\n    return canvas.toDataURL();\n}\nfunction getCheckerboard(c1, c2, size) {\n    const key = `${c1}-${c2}-${size}`;\n    if (checkboardCache[key]) {\n        return checkboardCache[key];\n    }\n    const checkboard = render(c1, c2, size);\n    if (!checkboard) {\n        return null;\n    }\n    checkboardCache[key] = checkboard;\n    return checkboard;\n}\n\nclass CheckboardComponent {\n    constructor() {\n        this.white = 'transparent';\n        this.size = 8;\n        this.grey = 'rgba(0,0,0,.08)';\n    }\n    ngOnInit() {\n        const background = getCheckerboard(this.white, this.grey, this.size);\n        this.gridStyles = {\n            borderRadius: this.borderRadius,\n            boxShadow: this.boxShadow,\n            background: `url(${background}) center left`,\n        };\n    }\n}\nCheckboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCheckboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: CheckboardComponent, selector: \"color-checkboard\", inputs: { white: \"white\", size: \"size\", grey: \"grey\", boxShadow: \"boxShadow\", borderRadius: \"borderRadius\" }, ngImport: i0, template: `<div class=\"grid\" [ngStyle]=\"gridStyles\"></div>`, isInline: true, styles: [\".grid{top:0px;right:0px;bottom:0px;left:0px;position:absolute}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-checkboard', template: `<div class=\"grid\" [ngStyle]=\"gridStyles\"></div>`, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".grid{top:0px;right:0px;bottom:0px;left:0px;position:absolute}\\n\"] }]\n        }], propDecorators: { white: [{\n                type: Input\n            }], size: [{\n                type: Input\n            }], grey: [{\n                type: Input\n            }], boxShadow: [{\n                type: Input\n            }], borderRadius: [{\n                type: Input\n            }] } });\nclass CheckboardModule {\n}\nCheckboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCheckboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardModule, declarations: [CheckboardComponent], imports: [CommonModule], exports: [CheckboardComponent] });\nCheckboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CheckboardModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [CheckboardComponent],\n                    exports: [CheckboardComponent],\n                    imports: [CommonModule],\n                }]\n        }] });\n\nclass CoordinatesDirective {\n    constructor(el) {\n        this.el = el;\n        this.coordinatesChange = new Subject();\n        this.mousechange = new Subject();\n        this.mouseListening = false;\n    }\n    mousemove($event, x, y, isTouch = false) {\n        if (this.mouseListening) {\n            $event.preventDefault();\n            this.mousechange.next({ $event, x, y, isTouch });\n        }\n    }\n    mouseup() {\n        this.mouseListening = false;\n    }\n    mousedown($event, x, y, isTouch = false) {\n        $event.preventDefault();\n        this.mouseListening = true;\n        this.mousechange.next({ $event, x, y, isTouch });\n    }\n    ngOnInit() {\n        this.sub = this.mousechange\n            .pipe(\n        // limit times it is updated for the same area\n        distinctUntilChanged((p, q) => p.x === q.x && p.y === q.y))\n            .subscribe(n => this.handleChange(n.x, n.y, n.$event, n.isTouch));\n    }\n    ngOnDestroy() {\n        this.sub?.unsubscribe();\n    }\n    handleChange(x, y, $event, isTouch) {\n        const containerWidth = this.el.nativeElement.clientWidth;\n        const containerHeight = this.el.nativeElement.clientHeight;\n        const left = x -\n            (this.el.nativeElement.getBoundingClientRect().left + window.pageXOffset);\n        let top = y - this.el.nativeElement.getBoundingClientRect().top;\n        if (!isTouch) {\n            top = top - window.pageYOffset;\n        }\n        this.coordinatesChange.next({\n            x,\n            y,\n            top,\n            left,\n            containerWidth,\n            containerHeight,\n            $event,\n        });\n    }\n}\nCoordinatesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCoordinatesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.1.2\", type: CoordinatesDirective, selector: \"[ngx-color-coordinates]\", outputs: { coordinatesChange: \"coordinatesChange\" }, host: { listeners: { \"window:mousemove\": \"mousemove($event,$event.pageX,$event.pageY)\", \"window:touchmove\": \"mousemove($event,$event.touches[0].clientX,$event.touches[0].clientY,true)\", \"window:mouseup\": \"mouseup()\", \"window:touchend\": \"mouseup()\", \"mousedown\": \"mousedown($event,$event.pageX,$event.pageY)\", \"touchstart\": \"mousedown($event,$event.touches[0].clientX,$event.touches[0].clientY,true)\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesDirective, decorators: [{\n            type: Directive,\n            args: [{ selector: '[ngx-color-coordinates]' }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { coordinatesChange: [{\n                type: Output\n            }], mousemove: [{\n                type: HostListener,\n                args: ['window:mousemove', ['$event', '$event.pageX', '$event.pageY']]\n            }, {\n                type: HostListener,\n                args: ['window:touchmove', [\n                        '$event',\n                        '$event.touches[0].clientX',\n                        '$event.touches[0].clientY',\n                        'true',\n                    ]]\n            }], mouseup: [{\n                type: HostListener,\n                args: ['window:mouseup']\n            }, {\n                type: HostListener,\n                args: ['window:touchend']\n            }], mousedown: [{\n                type: HostListener,\n                args: ['mousedown', ['$event', '$event.pageX', '$event.pageY']]\n            }, {\n                type: HostListener,\n                args: ['touchstart', [\n                        '$event',\n                        '$event.touches[0].clientX',\n                        '$event.touches[0].clientY',\n                        'true',\n                    ]]\n            }] } });\nclass CoordinatesModule {\n}\nCoordinatesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCoordinatesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesModule, declarations: [CoordinatesDirective], exports: [CoordinatesDirective] });\nCoordinatesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: CoordinatesModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [CoordinatesDirective],\n                    exports: [CoordinatesDirective],\n                }]\n        }] });\n\nclass AlphaComponent {\n    constructor() {\n        this.direction = 'horizontal';\n        this.onChange = new EventEmitter();\n    }\n    ngOnChanges() {\n        if (this.direction === 'vertical') {\n            this.pointerLeft = 0;\n            this.pointerTop = this.rgb.a * 100;\n            this.gradient = {\n                background: `linear-gradient(to bottom, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%,\n          rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`,\n            };\n        }\n        else {\n            this.gradient = {\n                background: `linear-gradient(to right, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%,\n          rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`,\n            };\n            this.pointerLeft = this.rgb.a * 100;\n        }\n    }\n    handleChange({ top, left, containerHeight, containerWidth, $event }) {\n        let data;\n        if (this.direction === 'vertical') {\n            let a;\n            if (top < 0) {\n                a = 0;\n            }\n            else if (top > containerHeight) {\n                a = 1;\n            }\n            else {\n                a = Math.round(top * 100 / containerHeight) / 100;\n            }\n            if (this.hsl.a !== a) {\n                data = {\n                    h: this.hsl.h,\n                    s: this.hsl.s,\n                    l: this.hsl.l,\n                    a,\n                    source: 'rgb',\n                };\n            }\n        }\n        else {\n            let a;\n            if (left < 0) {\n                a = 0;\n            }\n            else if (left > containerWidth) {\n                a = 1;\n            }\n            else {\n                a = Math.round(left * 100 / containerWidth) / 100;\n            }\n            if (this.hsl.a !== a) {\n                data = {\n                    h: this.hsl.h,\n                    s: this.hsl.s,\n                    l: this.hsl.l,\n                    a,\n                    source: 'rgb',\n                };\n            }\n        }\n        if (!data) {\n            return;\n        }\n        this.onChange.emit({ data, $event });\n    }\n}\nAlphaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nAlphaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: AlphaComponent, selector: \"color-alpha\", inputs: { hsl: \"hsl\", rgb: \"rgb\", pointer: \"pointer\", shadow: \"shadow\", radius: \"radius\", direction: \"direction\" }, outputs: { onChange: \"onChange\" }, usesOnChanges: true, ngImport: i0, template: `\n  <div class=\"alpha\" [style.border-radius]=\"radius\">\n    <div class=\"alpha-checkboard\">\n      <color-checkboard></color-checkboard>\n    </div>\n    <div class=\"alpha-gradient\" [ngStyle]=\"gradient\" [style.box-shadow]=\"shadow\" [style.border-radius]=\"radius\"></div>\n    <div ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" class=\"alpha-container color-alpha-{{direction}}\">\n      <div class=\"alpha-pointer\" [style.left.%]=\"pointerLeft\" [style.top.%]=\"pointerTop\">\n        <div class=\"alpha-slider\" [ngStyle]=\"pointer\"></div>\n      </div>\n    </div>\n  </div>\n  `, isInline: true, styles: [\".alpha{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-checkboard{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.alpha-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-container{position:relative;height:100%;margin:0 3px}.alpha-pointer{position:absolute}.alpha-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"component\", type: CheckboardComponent, selector: \"color-checkboard\", inputs: [\"white\", \"size\", \"grey\", \"boxShadow\", \"borderRadius\"] }, { kind: \"directive\", type: CoordinatesDirective, selector: \"[ngx-color-coordinates]\", outputs: [\"coordinatesChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-alpha', template: `\n  <div class=\"alpha\" [style.border-radius]=\"radius\">\n    <div class=\"alpha-checkboard\">\n      <color-checkboard></color-checkboard>\n    </div>\n    <div class=\"alpha-gradient\" [ngStyle]=\"gradient\" [style.box-shadow]=\"shadow\" [style.border-radius]=\"radius\"></div>\n    <div ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" class=\"alpha-container color-alpha-{{direction}}\">\n      <div class=\"alpha-pointer\" [style.left.%]=\"pointerLeft\" [style.top.%]=\"pointerTop\">\n        <div class=\"alpha-slider\" [ngStyle]=\"pointer\"></div>\n      </div>\n    </div>\n  </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [\".alpha{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-checkboard{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.alpha-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.alpha-container{position:relative;height:100%;margin:0 3px}.alpha-pointer{position:absolute}.alpha-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\\n\"] }]\n        }], propDecorators: { hsl: [{\n                type: Input\n            }], rgb: [{\n                type: Input\n            }], pointer: [{\n                type: Input\n            }], shadow: [{\n                type: Input\n            }], radius: [{\n                type: Input\n            }], direction: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\nclass AlphaModule {\n}\nAlphaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nAlphaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaModule, declarations: [AlphaComponent], imports: [CommonModule, CheckboardModule, CoordinatesModule], exports: [AlphaComponent] });\nAlphaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaModule, imports: [CommonModule, CheckboardModule, CoordinatesModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: AlphaModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [AlphaComponent],\n                    exports: [AlphaComponent],\n                    imports: [CommonModule, CheckboardModule, CoordinatesModule],\n                }]\n        }] });\n\nfunction simpleCheckForValidColor(data) {\n    const keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];\n    let checked = 0;\n    let passed = 0;\n    keysToCheck.forEach(letter => {\n        if (!data[letter]) {\n            return;\n        }\n        checked += 1;\n        if (!isNaN(data[letter])) {\n            passed += 1;\n        }\n        if (letter === 's' || letter === 'l') {\n            const percentPatt = /^\\d+%$/;\n            if (percentPatt.test(data[letter])) {\n                passed += 1;\n            }\n        }\n    });\n    return checked === passed ? data : false;\n}\nfunction toState(data, oldHue, disableAlpha) {\n    const color = data.hex ? new TinyColor(data.hex) : new TinyColor(data);\n    if (disableAlpha) {\n        color.setAlpha(1);\n    }\n    const hsl = color.toHsl();\n    const hsv = color.toHsv();\n    const rgb = color.toRgb();\n    const hex = color.toHex();\n    if (hsl.s === 0) {\n        hsl.h = oldHue || 0;\n        hsv.h = oldHue || 0;\n    }\n    const transparent = hex === '000000' && rgb.a === 0;\n    return {\n        hsl,\n        hex: transparent ? 'transparent' : color.toHexString(),\n        rgb,\n        hsv,\n        oldHue: data.h || oldHue || hsl.h,\n        source: data.source,\n    };\n}\nfunction isValidHex(hex) {\n    return new TinyColor(hex).isValid;\n}\nfunction getContrastingColor(data) {\n    if (!data) {\n        return '#fff';\n    }\n    const col = toState(data);\n    if (col.hex === 'transparent') {\n        return 'rgba(0,0,0,0.4)';\n    }\n    const yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;\n    return yiq >= 128 ? '#000' : '#fff';\n}\n\nvar ColorMode;\n(function (ColorMode) {\n    ColorMode[\"HEX\"] = \"hex\";\n    ColorMode[\"HSL\"] = \"hsl\";\n    ColorMode[\"HSV\"] = \"hsv\";\n    ColorMode[\"RGB\"] = \"rgb\";\n})(ColorMode || (ColorMode = {}));\nclass ColorWrap {\n    constructor() {\n        /**\n         * Descriptors the return color format if the component is used with two-way binding\n         */\n        this.mode = ColorMode.HEX;\n        this.color = {\n            h: 250,\n            s: 0.5,\n            l: 0.2,\n            a: 1,\n        };\n        this.colorChange = new EventEmitter();\n        this.onChange = new EventEmitter();\n        this.onChangeComplete = new EventEmitter();\n        this.onSwatchHover = new EventEmitter();\n        this._onChangeCompleteSubscription = new Subscription();\n        this._onSwatchHoverSubscription = new Subscription();\n    }\n    ngOnInit() {\n        this.changes = this.onChange\n            .pipe(debounceTime(100), tap(event => {\n            this.onChangeComplete.emit(event);\n            switch (this.mode) {\n                case ColorMode.HEX:\n                    this.colorChange.emit(event.color.hex);\n                    break;\n                case ColorMode.HSL:\n                    this.colorChange.emit(event.color.hsl);\n                    break;\n                case ColorMode.HSV:\n                    this.colorChange.emit(event.color.hsv);\n                    break;\n                case ColorMode.RGB:\n                    this.colorChange.emit(event.color.rgb);\n                    break;\n                default:\n                    const msg = `The mode '${this.mode}' is not supported`;\n                    if (isDevMode()) {\n                        throw new Error(msg);\n                    }\n                    else {\n                        console.warn(msg);\n                    }\n                    break;\n            }\n        }))\n            .subscribe();\n        this.setState(toState(this.color, 0));\n        this.currentColor = this.hex;\n    }\n    ngOnChanges() {\n        this.setState(toState(this.color, this.oldHue));\n    }\n    ngOnDestroy() {\n        this.changes?.unsubscribe();\n        this._onChangeCompleteSubscription?.unsubscribe();\n        this._onSwatchHoverSubscription?.unsubscribe();\n    }\n    setState(data) {\n        this.oldHue = data.oldHue;\n        this.hsl = data.hsl;\n        this.hsv = data.hsv;\n        this.rgb = data.rgb;\n        this.hex = data.hex;\n        this.source = data.source;\n        this.afterValidChange();\n    }\n    handleChange(data, $event) {\n        const isValidColor = simpleCheckForValidColor(data);\n        if (isValidColor) {\n            const color = toState(data, data.h || this.oldHue, this.disableAlpha);\n            this.setState(color);\n            this.onChange.emit({ color, $event });\n            this.afterValidChange();\n        }\n    }\n    /** hook for components after a complete change */\n    afterValidChange() { }\n    handleSwatchHover(data, $event) {\n        const isValidColor = simpleCheckForValidColor(data);\n        if (isValidColor) {\n            const color = toState(data, data.h || this.oldHue);\n            this.setState(color);\n            this.onSwatchHover.emit({ color, $event });\n        }\n    }\n    registerOnChange(fn) {\n        this._onChangeCompleteSubscription.add(this.onChangeComplete.pipe(tap(event => fn(event.color.hex))).subscribe());\n    }\n    registerOnTouched(fn) {\n        this._onSwatchHoverSubscription.add(this.onSwatchHover.pipe(tap(() => fn())).subscribe());\n    }\n    setDisabledState(isDisabled) { }\n    writeValue(hex) {\n        this.color = hex;\n    }\n}\nColorWrap.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrap, deps: [], target: i0.ɵɵFactoryTarget.Component });\nColorWrap.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: ColorWrap, selector: \"color-wrap\", inputs: { className: \"className\", mode: \"mode\", color: \"color\" }, outputs: { colorChange: \"colorChange\", onChange: \"onChange\", onChangeComplete: \"onChangeComplete\", onSwatchHover: \"onSwatchHover\" }, providers: [\n        {\n            provide: NG_VALUE_ACCESSOR,\n            useExisting: forwardRef(() => ColorWrap),\n            multi: true,\n        }\n    ], usesOnChanges: true, ngImport: i0, template: ``, isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrap, decorators: [{\n            type: Component,\n            args: [{\n                    // create seletor base for test override property\n                    selector: 'color-wrap',\n                    template: ``,\n                    providers: [\n                        {\n                            provide: NG_VALUE_ACCESSOR,\n                            useExisting: forwardRef(() => ColorWrap),\n                            multi: true,\n                        }\n                    ]\n                }]\n        }], propDecorators: { className: [{\n                type: Input\n            }], mode: [{\n                type: Input\n            }], color: [{\n                type: Input\n            }], colorChange: [{\n                type: Output\n            }], onChange: [{\n                type: Output\n            }], onChangeComplete: [{\n                type: Output\n            }], onSwatchHover: [{\n                type: Output\n            }] } });\nclass ColorWrapModule {\n}\nColorWrapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nColorWrapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrapModule, declarations: [ColorWrap], imports: [CommonModule], exports: [ColorWrap] });\nColorWrapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrapModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorWrapModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [ColorWrap],\n                    exports: [ColorWrap],\n                    imports: [CommonModule],\n                }]\n        }] });\n\nlet nextUniqueId = 0;\nclass EditableInputComponent {\n    constructor() {\n        this.placeholder = '';\n        this.onChange = new EventEmitter();\n        this.focus = false;\n        this.uniqueId = `editableInput-${++nextUniqueId}`;\n    }\n    ngOnInit() {\n        this.wrapStyle = this.style && this.style.wrap ? this.style.wrap : {};\n        this.inputStyle = this.style && this.style.input ? this.style.input : {};\n        this.labelStyle = this.style && this.style.label ? this.style.label : {};\n        if (this.dragLabel) {\n            this.labelStyle.cursor = 'ew-resize';\n        }\n    }\n    handleFocus($event) {\n        this.focus = true;\n    }\n    handleFocusOut($event) {\n        this.focus = false;\n        this.currentValue = this.blurValue;\n    }\n    handleKeydown($event) {\n        // In case `e.target.value` is a percentage remove the `%` character\n        // and update accordingly with a percentage\n        // https://github.com/casesandberg/react-color/issues/383\n        const stringValue = String($event.target.value);\n        const isPercentage = stringValue.indexOf('%') > -1;\n        const num = Number(stringValue.replace(/%/g, ''));\n        if (isNaN(num)) {\n            return;\n        }\n        const amount = this.arrowOffset || 1;\n        // Up\n        if ($event.keyCode === 38) {\n            if (this.label) {\n                this.onChange.emit({\n                    data: { [this.label]: num + amount },\n                    $event,\n                });\n            }\n            else {\n                this.onChange.emit({ data: num + amount, $event });\n            }\n            if (isPercentage) {\n                this.currentValue = `${num + amount}%`;\n            }\n            else {\n                this.currentValue = num + amount;\n            }\n        }\n        // Down\n        if ($event.keyCode === 40) {\n            if (this.label) {\n                this.onChange.emit({\n                    data: { [this.label]: num - amount },\n                    $event,\n                });\n            }\n            else {\n                this.onChange.emit({ data: num - amount, $event });\n            }\n            if (isPercentage) {\n                this.currentValue = `${num - amount}%`;\n            }\n            else {\n                this.currentValue = num - amount;\n            }\n        }\n    }\n    handleKeyup($event) {\n        if ($event.keyCode === 40 || $event.keyCode === 38) {\n            return;\n        }\n        if (`${this.currentValue}` === $event.target.value) {\n            return;\n        }\n        if (this.label) {\n            this.onChange.emit({\n                data: { [this.label]: $event.target.value },\n                $event,\n            });\n        }\n        else {\n            this.onChange.emit({ data: $event.target.value, $event });\n        }\n    }\n    ngOnChanges() {\n        if (!this.focus) {\n            this.currentValue = String(this.value).toUpperCase();\n            this.blurValue = String(this.value).toUpperCase();\n        }\n        else {\n            this.blurValue = String(this.value).toUpperCase();\n        }\n    }\n    ngOnDestroy() {\n        this.unsubscribe();\n    }\n    subscribe() {\n        this.mousemove = fromEvent(document, 'mousemove').subscribe((ev) => this.handleDrag(ev));\n        this.mouseup = fromEvent(document, 'mouseup').subscribe(() => this.unsubscribe());\n    }\n    unsubscribe() {\n        this.mousemove?.unsubscribe();\n        this.mouseup?.unsubscribe();\n    }\n    handleMousedown($event) {\n        if (this.dragLabel) {\n            $event.preventDefault();\n            this.handleDrag($event);\n            this.subscribe();\n        }\n    }\n    handleDrag($event) {\n        if (this.dragLabel) {\n            const newValue = Math.round(this.value + $event.movementX);\n            if (newValue >= 0 && newValue <= this.dragMax) {\n                this.onChange.emit({ data: { [this.label]: newValue }, $event });\n            }\n        }\n    }\n}\nEditableInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nEditableInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: EditableInputComponent, selector: \"color-editable-input\", inputs: { style: \"style\", label: \"label\", value: \"value\", arrowOffset: \"arrowOffset\", dragLabel: \"dragLabel\", dragMax: \"dragMax\", placeholder: \"placeholder\" }, outputs: { onChange: \"onChange\" }, usesOnChanges: true, ngImport: i0, template: `\n    <div class=\"wrap\" [ngStyle]=\"wrapStyle\">\n      <input\n        [ngStyle]=\"inputStyle\"\n        spellCheck=\"false\"\n        [value]=\"currentValue\"\n        [placeholder]=\"placeholder\"\n        (keydown)=\"handleKeydown($event)\"\n        (keyup)=\"handleKeyup($event)\"\n        (focus)=\"handleFocus($event)\"\n        (focusout)=\"handleFocusOut($event)\"\n        [attr.aria-labelledby]=\"uniqueId\"\n      />\n      <span [id]=\"uniqueId\" *ngIf=\"label\" [ngStyle]=\"labelStyle\" (mousedown)=\"handleMousedown($event)\">\n        {{ label }}\n      </span>\n    </div>\n  `, isInline: true, styles: [\":host{display:flex}.wrap{position:relative}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-editable-input', template: `\n    <div class=\"wrap\" [ngStyle]=\"wrapStyle\">\n      <input\n        [ngStyle]=\"inputStyle\"\n        spellCheck=\"false\"\n        [value]=\"currentValue\"\n        [placeholder]=\"placeholder\"\n        (keydown)=\"handleKeydown($event)\"\n        (keyup)=\"handleKeyup($event)\"\n        (focus)=\"handleFocus($event)\"\n        (focusout)=\"handleFocusOut($event)\"\n        [attr.aria-labelledby]=\"uniqueId\"\n      />\n      <span [id]=\"uniqueId\" *ngIf=\"label\" [ngStyle]=\"labelStyle\" (mousedown)=\"handleMousedown($event)\">\n        {{ label }}\n      </span>\n    </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\":host{display:flex}.wrap{position:relative}\\n\"] }]\n        }], propDecorators: { style: [{\n                type: Input\n            }], label: [{\n                type: Input\n            }], value: [{\n                type: Input\n            }], arrowOffset: [{\n                type: Input\n            }], dragLabel: [{\n                type: Input\n            }], dragMax: [{\n                type: Input\n            }], placeholder: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\nclass EditableInputModule {\n}\nEditableInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nEditableInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputModule, declarations: [EditableInputComponent], imports: [CommonModule], exports: [EditableInputComponent] });\nEditableInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: EditableInputModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [EditableInputComponent],\n                    exports: [EditableInputComponent],\n                    imports: [CommonModule],\n                }]\n        }] });\n\nclass HueComponent {\n    constructor() {\n        this.hidePointer = false;\n        this.direction = 'horizontal';\n        this.onChange = new EventEmitter();\n        this.left = '0px';\n        this.top = '';\n    }\n    ngOnChanges() {\n        if (this.direction === 'horizontal') {\n            this.left = `${this.hsl.h * 100 / 360}%`;\n        }\n        else {\n            this.top = `${-(this.hsl.h * 100 / 360) + 100}%`;\n        }\n    }\n    handleChange({ top, left, containerHeight, containerWidth, $event }) {\n        let data;\n        if (this.direction === 'vertical') {\n            let h;\n            if (top < 0) {\n                h = 359;\n            }\n            else if (top > containerHeight) {\n                h = 0;\n            }\n            else {\n                const percent = -(top * 100 / containerHeight) + 100;\n                h = 360 * percent / 100;\n            }\n            if (this.hsl.h !== h) {\n                data = {\n                    h,\n                    s: this.hsl.s,\n                    l: this.hsl.l,\n                    a: this.hsl.a,\n                    source: 'rgb',\n                };\n            }\n        }\n        else {\n            let h;\n            if (left < 0) {\n                h = 0;\n            }\n            else if (left > containerWidth) {\n                h = 359;\n            }\n            else {\n                const percent = left * 100 / containerWidth;\n                h = 360 * percent / 100;\n            }\n            if (this.hsl.h !== h) {\n                data = {\n                    h,\n                    s: this.hsl.s,\n                    l: this.hsl.l,\n                    a: this.hsl.a,\n                    source: 'rgb',\n                };\n            }\n        }\n        if (!data) {\n            return;\n        }\n        this.onChange.emit({ data, $event });\n    }\n}\nHueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: HueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nHueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: HueComponent, selector: \"color-hue\", inputs: { hsl: \"hsl\", pointer: \"pointer\", radius: \"radius\", shadow: \"shadow\", hidePointer: \"hidePointer\", direction: \"direction\" }, outputs: { onChange: \"onChange\" }, usesOnChanges: true, ngImport: i0, template: `\n  <div class=\"color-hue color-hue-{{direction}}\" [style.border-radius.px]=\"radius\" [style.box-shadow]=\"shadow\">\n    <div ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" class=\"color-hue-container\">\n      <div class=\"color-hue-pointer\" [style.left]=\"left\" [style.top]=\"top\" *ngIf=\"!hidePointer\">\n        <div class=\"color-hue-slider\" [ngStyle]=\"pointer\"></div>\n      </div>\n    </div>\n  </div>\n  `, isInline: true, styles: [\".color-hue{position:absolute;top:0;bottom:0;left:0;right:0}.color-hue-container{margin:0 2px;position:relative;height:100%}.color-hue-pointer{position:absolute}.color-hue-slider{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: CoordinatesDirective, selector: \"[ngx-color-coordinates]\", outputs: [\"coordinatesChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: HueComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-hue', template: `\n  <div class=\"color-hue color-hue-{{direction}}\" [style.border-radius.px]=\"radius\" [style.box-shadow]=\"shadow\">\n    <div ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" class=\"color-hue-container\">\n      <div class=\"color-hue-pointer\" [style.left]=\"left\" [style.top]=\"top\" *ngIf=\"!hidePointer\">\n        <div class=\"color-hue-slider\" [ngStyle]=\"pointer\"></div>\n      </div>\n    </div>\n  </div>\n  `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".color-hue{position:absolute;top:0;bottom:0;left:0;right:0}.color-hue-container{margin:0 2px;position:relative;height:100%}.color-hue-pointer{position:absolute}.color-hue-slider{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}\\n\"] }]\n        }], propDecorators: { hsl: [{\n                type: Input\n            }], pointer: [{\n                type: Input\n            }], radius: [{\n                type: Input\n            }], shadow: [{\n                type: Input\n            }], hidePointer: [{\n                type: Input\n            }], direction: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\nclass HueModule {\n}\nHueModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: HueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHueModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: HueModule, declarations: [HueComponent], imports: [CommonModule, CoordinatesModule], exports: [HueComponent] });\nHueModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: HueModule, imports: [CommonModule, CoordinatesModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: HueModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [HueComponent],\n                    exports: [HueComponent],\n                    imports: [CommonModule, CoordinatesModule],\n                }]\n        }] });\n\nclass RaisedComponent {\n    constructor() {\n        this.zDepth = 1;\n        this.radius = 1;\n        this.background = '#fff';\n    }\n}\nRaisedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nRaisedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: RaisedComponent, selector: \"color-raised\", inputs: { zDepth: \"zDepth\", radius: \"radius\", background: \"background\" }, ngImport: i0, template: `\n  <div class=\"raised-wrap\">\n    <div class=\"raised-bg zDepth-{{zDepth}}\" [style.background]=\"background\"></div>\n    <div class=\"raised-content\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n  `, isInline: true, styles: [\".raised-wrap{position:relative;display:inline-block}.raised-bg{position:absolute;top:0px;right:0px;bottom:0px;left:0px}.raised-content{position:relative}.zDepth-0{box-shadow:none}.zDepth-1{box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029}.zDepth-2{box-shadow:0 6px 20px #00000030,0 8px 17px #0003}.zDepth-3{box-shadow:0 17px 50px #00000030,0 12px 15px #0000003d}.zDepth-4{box-shadow:0 25px 55px #00000036,0 16px 28px #00000038}.zDepth-5{box-shadow:0 40px 77px #00000038,0 27px 24px #0003}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-raised', template: `\n  <div class=\"raised-wrap\">\n    <div class=\"raised-bg zDepth-{{zDepth}}\" [style.background]=\"background\"></div>\n    <div class=\"raised-content\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n  `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".raised-wrap{position:relative;display:inline-block}.raised-bg{position:absolute;top:0px;right:0px;bottom:0px;left:0px}.raised-content{position:relative}.zDepth-0{box-shadow:none}.zDepth-1{box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029}.zDepth-2{box-shadow:0 6px 20px #00000030,0 8px 17px #0003}.zDepth-3{box-shadow:0 17px 50px #00000030,0 12px 15px #0000003d}.zDepth-4{box-shadow:0 25px 55px #00000036,0 16px 28px #00000038}.zDepth-5{box-shadow:0 40px 77px #00000038,0 27px 24px #0003}\\n\"] }]\n        }], propDecorators: { zDepth: [{\n                type: Input\n            }], radius: [{\n                type: Input\n            }], background: [{\n                type: Input\n            }] } });\nclass RaisedModule {\n}\nRaisedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nRaisedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedModule, declarations: [RaisedComponent], imports: [CommonModule], exports: [RaisedComponent] });\nRaisedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: RaisedModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [RaisedComponent],\n                    exports: [RaisedComponent],\n                    imports: [CommonModule],\n                }]\n        }] });\n\nclass SaturationComponent {\n    constructor() {\n        this.onChange = new EventEmitter();\n    }\n    ngOnChanges() {\n        this.background = `hsl(${this.hsl.h}, 100%, 50%)`;\n        this.pointerTop = -(this.hsv.v * 100) + 1 + 100 + '%';\n        this.pointerLeft = this.hsv.s * 100 + '%';\n    }\n    handleChange({ top, left, containerHeight, containerWidth, $event }) {\n        if (left < 0) {\n            left = 0;\n        }\n        else if (left > containerWidth) {\n            left = containerWidth;\n        }\n        else if (top < 0) {\n            top = 0;\n        }\n        else if (top > containerHeight) {\n            top = containerHeight;\n        }\n        const saturation = left / containerWidth;\n        let bright = -(top / containerHeight) + 1;\n        bright = bright > 0 ? bright : 0;\n        bright = bright > 1 ? 1 : bright;\n        const data = {\n            h: this.hsl.h,\n            s: saturation,\n            v: bright,\n            a: this.hsl.a,\n            source: 'hsva',\n        };\n        this.onChange.emit({ data, $event });\n    }\n}\nSaturationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nSaturationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: SaturationComponent, selector: \"color-saturation\", inputs: { hsl: \"hsl\", hsv: \"hsv\", radius: \"radius\", pointer: \"pointer\", circle: \"circle\" }, outputs: { onChange: \"onChange\" }, usesOnChanges: true, ngImport: i0, template: `\n  <div class=\"color-saturation\" ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" [style.background]=\"background\">\n    <div class=\"saturation-white\">\n      <div class=\"saturation-black\"></div>\n      <div class=\"saturation-pointer\" [ngStyle]=\"pointer\" [style.top]=\"pointerTop\" [style.left]=\"pointerLeft\">\n        <div class=\"saturation-circle\" [ngStyle]=\"circle\"></div>\n      </div>\n    </div>\n  </div>\n  `, isInline: true, styles: [\".saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0;right:0}.saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;top:0;bottom:0;left:0;right:0}.color-saturation{position:absolute;top:0;bottom:0;left:0;right:0}.saturation-pointer{position:absolute;cursor:default}.saturation-circle{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: CoordinatesDirective, selector: \"[ngx-color-coordinates]\", outputs: [\"coordinatesChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-saturation', template: `\n  <div class=\"color-saturation\" ngx-color-coordinates (coordinatesChange)=\"handleChange($event)\" [style.background]=\"background\">\n    <div class=\"saturation-white\">\n      <div class=\"saturation-black\"></div>\n      <div class=\"saturation-pointer\" [ngStyle]=\"pointer\" [style.top]=\"pointerTop\" [style.left]=\"pointerLeft\">\n        <div class=\"saturation-circle\" [ngStyle]=\"circle\"></div>\n      </div>\n    </div>\n  </div>\n  `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".saturation-white{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0;right:0}.saturation-black{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;top:0;bottom:0;left:0;right:0}.color-saturation{position:absolute;top:0;bottom:0;left:0;right:0}.saturation-pointer{position:absolute;cursor:default}.saturation-circle{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}\\n\"] }]\n        }], propDecorators: { hsl: [{\n                type: Input\n            }], hsv: [{\n                type: Input\n            }], radius: [{\n                type: Input\n            }], pointer: [{\n                type: Input\n            }], circle: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\nclass SaturationModule {\n}\nSaturationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nSaturationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationModule, declarations: [SaturationComponent], imports: [CommonModule, CoordinatesModule], exports: [SaturationComponent] });\nSaturationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationModule, imports: [CommonModule, CoordinatesModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SaturationModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [SaturationComponent],\n                    exports: [SaturationComponent],\n                    imports: [CommonModule, CoordinatesModule],\n                }]\n        }] });\n\nclass SwatchComponent {\n    constructor() {\n        this.style = {};\n        this.focusStyle = {};\n        this.onClick = new EventEmitter();\n        this.onHover = new EventEmitter();\n        this.divStyles = {};\n        this.focusStyles = {};\n        this.inFocus = false;\n    }\n    ngOnInit() {\n        this.divStyles = {\n            background: this.color,\n            ...this.style,\n        };\n    }\n    currentStyles() {\n        this.focusStyles = {\n            ...this.divStyles,\n            ...this.focusStyle,\n        };\n        return this.focus || this.inFocus ? this.focusStyles : this.divStyles;\n    }\n    handleFocusOut() {\n        this.inFocus = false;\n    }\n    handleFocus() {\n        this.inFocus = true;\n    }\n    handleHover(hex, $event) {\n        this.onHover.emit({ hex, $event });\n    }\n    handleClick(hex, $event) {\n        this.onClick.emit({ hex, $event });\n    }\n}\nSwatchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nSwatchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: SwatchComponent, selector: \"color-swatch\", inputs: { color: \"color\", style: \"style\", focusStyle: \"focusStyle\", focus: \"focus\" }, outputs: { onClick: \"onClick\", onHover: \"onHover\" }, ngImport: i0, template: `\n    <div\n      class=\"swatch\"\n      [ngStyle]=\"currentStyles()\"\n      [attr.title]=\"color\"\n      (click)=\"handleClick(color, $event)\"\n      (keydown.enter)=\"handleClick(color, $event)\"\n      (focus)=\"handleFocus()\"\n      (blur)=\"handleFocusOut()\"\n      (mouseover)=\"handleHover(color, $event)\"\n      tabindex=\"0\"\n    >\n      <ng-content></ng-content>\n      <color-checkboard\n        *ngIf=\"color === 'transparent'\"\n        boxShadow=\"inset 0 0 0 1px rgba(0,0,0,0.1)\"\n      ></color-checkboard>\n    </div>\n  `, isInline: true, styles: [\".swatch{outline:none;height:100%;width:100%;cursor:pointer;position:relative}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"component\", type: CheckboardComponent, selector: \"color-checkboard\", inputs: [\"white\", \"size\", \"grey\", \"boxShadow\", \"borderRadius\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-swatch', template: `\n    <div\n      class=\"swatch\"\n      [ngStyle]=\"currentStyles()\"\n      [attr.title]=\"color\"\n      (click)=\"handleClick(color, $event)\"\n      (keydown.enter)=\"handleClick(color, $event)\"\n      (focus)=\"handleFocus()\"\n      (blur)=\"handleFocusOut()\"\n      (mouseover)=\"handleHover(color, $event)\"\n      tabindex=\"0\"\n    >\n      <ng-content></ng-content>\n      <color-checkboard\n        *ngIf=\"color === 'transparent'\"\n        boxShadow=\"inset 0 0 0 1px rgba(0,0,0,0.1)\"\n      ></color-checkboard>\n    </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".swatch{outline:none;height:100%;width:100%;cursor:pointer;position:relative}\\n\"] }]\n        }], propDecorators: { color: [{\n                type: Input\n            }], style: [{\n                type: Input\n            }], focusStyle: [{\n                type: Input\n            }], focus: [{\n                type: Input\n            }], onClick: [{\n                type: Output\n            }], onHover: [{\n                type: Output\n            }] } });\nclass SwatchModule {\n}\nSwatchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nSwatchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchModule, declarations: [SwatchComponent], imports: [CommonModule, CheckboardModule], exports: [SwatchComponent] });\nSwatchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchModule, imports: [CommonModule, CheckboardModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: SwatchModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [SwatchComponent],\n                    exports: [SwatchComponent],\n                    imports: [CommonModule, CheckboardModule],\n                }]\n        }] });\n\nclass ShadeComponent {\n    constructor() {\n        this.onChange = new EventEmitter();\n    }\n    ngOnChanges() {\n        this.gradient = {\n            background: `linear-gradient(to right,\n          hsl(${this.hsl.h}, 90%, 55%),\n          #000)`,\n        };\n        const hsv = new TinyColor(this.hsl).toHsv();\n        this.pointerLeft = 100 - (hsv.v * 100);\n    }\n    handleChange({ left, containerWidth, $event }) {\n        let data;\n        let v;\n        if (left < 0) {\n            v = 0;\n        }\n        else if (left > containerWidth) {\n            v = 1;\n        }\n        else {\n            v = Math.round((left * 100) / containerWidth) / 100;\n        }\n        const hsv = new TinyColor(this.hsl).toHsv();\n        if (hsv.v !== v) {\n            data = {\n                h: this.hsl.h,\n                s: 100,\n                v: 1 - v,\n                l: this.hsl.l,\n                a: this.hsl.a,\n                source: 'rgb',\n            };\n        }\n        if (!data) {\n            return;\n        }\n        this.onChange.emit({ data, $event });\n    }\n}\nShadeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nShadeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: ShadeComponent, selector: \"color-shade\", inputs: { hsl: \"hsl\", rgb: \"rgb\", pointer: \"pointer\", shadow: \"shadow\", radius: \"radius\" }, outputs: { onChange: \"onChange\" }, usesOnChanges: true, ngImport: i0, template: `\n    <div class=\"shade\" [style.border-radius]=\"radius\">\n      <div\n        class=\"shade-gradient\"\n        [ngStyle]=\"gradient\"\n        [style.box-shadow]=\"shadow\"\n        [style.border-radius]=\"radius\"\n      ></div>\n      <div\n        ngx-color-coordinates\n        (coordinatesChange)=\"handleChange($event)\"\n        class=\"shade-container\"\n      >\n        <div\n          class=\"shade-pointer\"\n          [style.left.%]=\"pointerLeft\"\n          [style.top.%]=\"pointerTop\"\n        >\n          <div class=\"shade-slider\" [ngStyle]=\"pointer\"></div>\n        </div>\n      </div>\n    </div>\n  `, isInline: true, styles: [\".shade,.shade-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.shade-container{position:relative;height:100%;margin:0 3px}.shade-pointer{position:absolute}.shade-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: CoordinatesDirective, selector: \"[ngx-color-coordinates]\", outputs: [\"coordinatesChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-shade', template: `\n    <div class=\"shade\" [style.border-radius]=\"radius\">\n      <div\n        class=\"shade-gradient\"\n        [ngStyle]=\"gradient\"\n        [style.box-shadow]=\"shadow\"\n        [style.border-radius]=\"radius\"\n      ></div>\n      <div\n        ngx-color-coordinates\n        (coordinatesChange)=\"handleChange($event)\"\n        class=\"shade-container\"\n      >\n        <div\n          class=\"shade-pointer\"\n          [style.left.%]=\"pointerLeft\"\n          [style.top.%]=\"pointerTop\"\n        >\n          <div class=\"shade-slider\" [ngStyle]=\"pointer\"></div>\n        </div>\n      </div>\n    </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [\".shade,.shade-gradient{position:absolute;top:0;bottom:0;left:0;right:0}.shade-container{position:relative;height:100%;margin:0 3px}.shade-pointer{position:absolute}.shade-slider{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}\\n\"] }]\n        }], propDecorators: { hsl: [{\n                type: Input\n            }], rgb: [{\n                type: Input\n            }], pointer: [{\n                type: Input\n            }], shadow: [{\n                type: Input\n            }], radius: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\nclass ShadeModule {\n}\nShadeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nShadeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeModule, declarations: [ShadeComponent], imports: [CommonModule, CoordinatesModule], exports: [ShadeComponent] });\nShadeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeModule, imports: [CommonModule, CoordinatesModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ShadeModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [ShadeComponent],\n                    exports: [ShadeComponent],\n                    imports: [CommonModule, CoordinatesModule],\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AlphaComponent, AlphaModule, CheckboardComponent, CheckboardModule, ColorMode, ColorWrap, ColorWrapModule, CoordinatesDirective, CoordinatesModule, EditableInputComponent, EditableInputModule, HueComponent, HueModule, RaisedComponent, RaisedModule, SaturationComponent, SaturationModule, ShadeComponent, ShadeModule, SwatchComponent, SwatchModule, getCheckerboard, getContrastingColor, isValidHex, render, simpleCheckForValidColor, toState };\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, forwardRef, NgModule } from '@angular/core';\nimport * as i2 from 'ngx-color';\nimport { isValidHex, ColorWrap, AlphaModule, CheckboardModule, EditableInputModule, HueModule, SaturationModule } from 'ngx-color';\nimport { TinyColor } from '@ctrl/tinycolor';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\nclass ChromeFieldsComponent {\n    constructor() {\n        this.onChange = new EventEmitter();\n        this.view = '';\n        this.input = {\n            fontSize: '11px',\n            color: '#333',\n            width: '100%',\n            borderRadius: '2px',\n            border: 'none',\n            boxShadow: 'inset 0 0 0 1px #dadada',\n            height: '21px',\n            'text-align': 'center',\n        };\n        this.label = {\n            'text-transform': 'uppercase',\n            fontSize: '11px',\n            'line-height': '11px',\n            color: '#969696',\n            'text-align': 'center',\n            display: 'block',\n            marginTop: '12px',\n        };\n    }\n    ngOnInit() {\n        if (this.hsl.a === 1 && this.view !== 'hex') {\n            this.view = 'hex';\n        }\n        else if (this.view !== 'rgb' && this.view !== 'hsl') {\n            this.view = 'rgb';\n        }\n    }\n    toggleViews() {\n        if (this.view === 'hex') {\n            this.view = 'rgb';\n        }\n        else if (this.view === 'rgb') {\n            this.view = 'hsl';\n        }\n        else if (this.view === 'hsl') {\n            if (this.hsl.a === 1) {\n                this.view = 'hex';\n            }\n            else {\n                this.view = 'rgb';\n            }\n        }\n    }\n    round(value) {\n        return Math.round(value);\n    }\n    handleChange({ data, $event }) {\n        if (data.hex) {\n            if (isValidHex(data.hex)) {\n                const color = new TinyColor(data.hex);\n                this.onChange.emit({\n                    data: {\n                        hex: this.disableAlpha ? color.toHex() : color.toHex8(),\n                        source: 'hex',\n                    },\n                    $event,\n                });\n            }\n        }\n        else if (data.r || data.g || data.b) {\n            this.onChange.emit({\n                data: {\n                    r: data.r || this.rgb.r,\n                    g: data.g || this.rgb.g,\n                    b: data.b || this.rgb.b,\n                    source: 'rgb',\n                },\n                $event,\n            });\n        }\n        else if (data.a) {\n            if (data.a < 0) {\n                data.a = 0;\n            }\n            else if (data.a > 1) {\n                data.a = 1;\n            }\n            if (this.disableAlpha) {\n                data.a = 1;\n            }\n            this.onChange.emit({\n                data: {\n                    h: this.hsl.h,\n                    s: this.hsl.s,\n                    l: this.hsl.l,\n                    a: Math.round(data.a * 100) / 100,\n                    source: 'rgb',\n                },\n                $event,\n            });\n        }\n        else if (data.h || data.s || data.l) {\n            const s = data.s && data.s.replace('%', '');\n            const l = data.l && data.l.replace('%', '');\n            this.onChange.emit({\n                data: {\n                    h: data.h || this.hsl.h,\n                    s: Number(s || this.hsl.s),\n                    l: Number(l || this.hsl.l),\n                    source: 'hsl',\n                },\n                $event,\n            });\n        }\n    }\n}\nChromeFieldsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ChromeFieldsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nChromeFieldsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: ChromeFieldsComponent, selector: \"color-chrome-fields\", inputs: { disableAlpha: \"disableAlpha\", hsl: \"hsl\", rgb: \"rgb\", hex: \"hex\" }, outputs: { onChange: \"onChange\" }, ngImport: i0, template: `\n    <div class=\"chrome-wrap\">\n      <div class=\"chrome-fields\">\n        <ng-template [ngIf]=\"view === 'hex'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"hex\" [value]=\"hex\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n        <ng-template [ngIf]=\"view === 'rgb'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"r\" [value]=\"rgb.r\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"g\" [value]=\"rgb.g\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"b\" [value]=\"rgb.b\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input *ngIf=\"!disableAlpha\"\n              [style]=\"{ input: input, label: label }\"\n              label=\"a\" [value]=\"rgb.a\"\n              [arrowOffset]=\"0.01\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n        <ng-template [ngIf]=\"view === 'hsl'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"h\"\n              [value]=\"round(hsl.h)\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"s\" [value]=\"round(hsl.s * 100) + '%'\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"l\" [value]=\"round(hsl.l * 100) + '%'\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input *ngIf=\"!disableAlpha\"\n              [style]=\"{ input: input, label: label }\"\n              label=\"a\" [value]=\"hsl.a\"\n              [arrowOffset]=\"0.01\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n      </div>\n\n      <div class=\"chrome-toggle\">\n        <div class=\"chrome-icon\" (click)=\"toggleViews()\" #icon>\n          <svg class=\"chrome-toggle-svg\" viewBox=\"0 0 24 24\">\n            <path #iconUp fill=\"#333\"\n              d=\"M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z\"\n            />\n            <path #iconDown fill=\"#333\"\n              d=\"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z\"\n            />\n          </svg>\n        </div>\n      </div>\n    </div>\n  `, isInline: true, styles: [\".chrome-wrap{padding-top:16px;display:flex}.chrome-fields{flex:1;display:flex;margin-left:-6px}.chrome-field{padding-left:6px;width:100%}.chrome-toggle{width:32px;text-align:right;position:relative}.chrome-icon{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative}.chrome-toggle-svg{width:24px;height:24px;border:1px transparent solid;border-radius:5px}.chrome-toggle-svg:hover{background:#eee}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.EditableInputComponent, selector: \"color-editable-input\", inputs: [\"style\", \"label\", \"value\", \"arrowOffset\", \"dragLabel\", \"dragMax\", \"placeholder\"], outputs: [\"onChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ChromeFieldsComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-chrome-fields', template: `\n    <div class=\"chrome-wrap\">\n      <div class=\"chrome-fields\">\n        <ng-template [ngIf]=\"view === 'hex'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"hex\" [value]=\"hex\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n        <ng-template [ngIf]=\"view === 'rgb'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"r\" [value]=\"rgb.r\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"g\" [value]=\"rgb.g\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"b\" [value]=\"rgb.b\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input *ngIf=\"!disableAlpha\"\n              [style]=\"{ input: input, label: label }\"\n              label=\"a\" [value]=\"rgb.a\"\n              [arrowOffset]=\"0.01\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n        <ng-template [ngIf]=\"view === 'hsl'\">\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"h\"\n              [value]=\"round(hsl.h)\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"s\" [value]=\"round(hsl.s * 100) + '%'\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input\n              [style]=\"{ input: input, label: label }\"\n              label=\"l\" [value]=\"round(hsl.l * 100) + '%'\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n          <div class=\"chrome-field\">\n            <color-editable-input *ngIf=\"!disableAlpha\"\n              [style]=\"{ input: input, label: label }\"\n              label=\"a\" [value]=\"hsl.a\"\n              [arrowOffset]=\"0.01\"\n              (onChange)=\"handleChange($event)\"\n            ></color-editable-input>\n          </div>\n        </ng-template>\n      </div>\n\n      <div class=\"chrome-toggle\">\n        <div class=\"chrome-icon\" (click)=\"toggleViews()\" #icon>\n          <svg class=\"chrome-toggle-svg\" viewBox=\"0 0 24 24\">\n            <path #iconUp fill=\"#333\"\n              d=\"M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z\"\n            />\n            <path #iconDown fill=\"#333\"\n              d=\"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z\"\n            />\n          </svg>\n        </div>\n      </div>\n    </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, styles: [\".chrome-wrap{padding-top:16px;display:flex}.chrome-fields{flex:1;display:flex;margin-left:-6px}.chrome-field{padding-left:6px;width:100%}.chrome-toggle{width:32px;text-align:right;position:relative}.chrome-icon{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative}.chrome-toggle-svg{width:24px;height:24px;border:1px transparent solid;border-radius:5px}.chrome-toggle-svg:hover{background:#eee}\\n\"] }]\n        }], propDecorators: { disableAlpha: [{\n                type: Input\n            }], hsl: [{\n                type: Input\n            }], rgb: [{\n                type: Input\n            }], hex: [{\n                type: Input\n            }], onChange: [{\n                type: Output\n            }] } });\n\nclass ChromeComponent extends ColorWrap {\n    constructor() {\n        super();\n        /** Remove alpha slider and options from picker */\n        this.disableAlpha = false;\n        this.circle = {\n            width: '12px',\n            height: '12px',\n            borderRadius: '6px',\n            boxShadow: 'rgb(255, 255, 255) 0px 0px 0px 1px inset',\n            transform: 'translate(-6px, -8px)',\n        };\n        this.pointer = {\n            width: '12px',\n            height: '12px',\n            borderRadius: '6px',\n            transform: 'translate(-6px, -2px)',\n            backgroundColor: 'rgb(248, 248, 248)',\n            boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',\n        };\n    }\n    afterValidChange() {\n        const alpha = this.disableAlpha ? 1 : this.rgb.a;\n        this.activeBackground = `rgba(${this.rgb.r}, ${this.rgb.g}, ${this.rgb.b}, ${alpha})`;\n    }\n    handleValueChange({ data, $event }) {\n        this.handleChange(data, $event);\n    }\n}\nChromeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ChromeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nChromeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.1.2\", type: ChromeComponent, selector: \"color-chrome\", inputs: { disableAlpha: \"disableAlpha\" }, providers: [\n        {\n            provide: NG_VALUE_ACCESSOR,\n            useExisting: forwardRef(() => ChromeComponent),\n            multi: true,\n        },\n        {\n            provide: ColorWrap,\n            useExisting: forwardRef(() => ChromeComponent),\n        },\n    ], usesInheritance: true, ngImport: i0, template: `\n  <div class=\"chrome-picker {{ className }}\">\n    <div class=\"saturation\">\n      <color-saturation\n        [hsl]=\"hsl\"\n        [hsv]=\"hsv\"\n        [circle]=\"circle\"\n        (onChange)=\"handleValueChange($event)\"\n      ></color-saturation>\n    </div>\n    <div class=\"chrome-body\">\n      <div class=\"chrome-controls\">\n        <div class=\"chrome-color\">\n          <div class=\"chrome-swatch\">\n            <div class=\"chrome-active\"\n              [style.background]=\"activeBackground\"\n            ></div>\n            <color-checkboard></color-checkboard>\n          </div>\n        </div>\n        <div class=\"chrome-toggles\">\n          <div class=\"chrome-hue\">\n            <color-hue\n              [radius]=\"2\"\n              [hsl]=\"hsl\"\n              [pointer]=\"pointer\"\n              (onChange)=\"handleValueChange($event)\"\n            ></color-hue>\n          </div>\n          <div class=\"chrome-alpha\" *ngIf=\"!disableAlpha\">\n            <color-alpha\n              [radius]=\"2\" [rgb]=\"rgb\" [hsl]=\"hsl\"\n              [pointer]=\"pointer\" (onChange)=\"handleValueChange($event)\"\n            ></color-alpha>\n          </div>\n        </div>\n      </div>\n      <color-chrome-fields\n        [rgb]=\"rgb\" [hsl]=\"hsl\" [hex]=\"hex\"\n        [disableAlpha]=\"disableAlpha\"\n        (onChange)=\"handleValueChange($event)\"\n      ></color-chrome-fields>\n    </div>\n  </div>\n  `, isInline: true, styles: [\".chrome-picker{background:#fff;border-radius:2px;box-shadow:0 0 2px #0000004d,0 4px 8px #0000004d;box-sizing:initial;width:225px;font-family:Menlo}.chrome-controls{display:flex}.chrome-color{width:42px}.chrome-body{padding:14px 14px 12px}.chrome-active{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:20px;box-shadow:inset 0 0 0 1px #0000001a;z-index:2}.chrome-swatch{width:28px;height:28px;border-radius:15px;position:relative;overflow:hidden}.saturation{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.chrome-toggles{flex:1}.chrome-hue{height:10px;position:relative;margin-bottom:8px}.chrome-alpha{height:10px;position:relative}\\n\"], dependencies: [{ kind: \"directive\", type: i0.forwardRef(function () { return i1.NgIf; }), selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i0.forwardRef(function () { return i2.AlphaComponent; }), selector: \"color-alpha\", inputs: [\"hsl\", \"rgb\", \"pointer\", \"shadow\", \"radius\", \"direction\"], outputs: [\"onChange\"] }, { kind: \"component\", type: i0.forwardRef(function () { return i2.CheckboardComponent; }), selector: \"color-checkboard\", inputs: [\"white\", \"size\", \"grey\", \"boxShadow\", \"borderRadius\"] }, { kind: \"component\", type: i0.forwardRef(function () { return i2.HueComponent; }), selector: \"color-hue\", inputs: [\"hsl\", \"pointer\", \"radius\", \"shadow\", \"hidePointer\", \"direction\"], outputs: [\"onChange\"] }, { kind: \"component\", type: i0.forwardRef(function () { return i2.SaturationComponent; }), selector: \"color-saturation\", inputs: [\"hsl\", \"hsv\", \"radius\", \"pointer\", \"circle\"], outputs: [\"onChange\"] }, { kind: \"component\", type: i0.forwardRef(function () { return ChromeFieldsComponent; }), selector: \"color-chrome-fields\", inputs: [\"disableAlpha\", \"hsl\", \"rgb\", \"hex\"], outputs: [\"onChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ChromeComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'color-chrome', template: `\n  <div class=\"chrome-picker {{ className }}\">\n    <div class=\"saturation\">\n      <color-saturation\n        [hsl]=\"hsl\"\n        [hsv]=\"hsv\"\n        [circle]=\"circle\"\n        (onChange)=\"handleValueChange($event)\"\n      ></color-saturation>\n    </div>\n    <div class=\"chrome-body\">\n      <div class=\"chrome-controls\">\n        <div class=\"chrome-color\">\n          <div class=\"chrome-swatch\">\n            <div class=\"chrome-active\"\n              [style.background]=\"activeBackground\"\n            ></div>\n            <color-checkboard></color-checkboard>\n          </div>\n        </div>\n        <div class=\"chrome-toggles\">\n          <div class=\"chrome-hue\">\n            <color-hue\n              [radius]=\"2\"\n              [hsl]=\"hsl\"\n              [pointer]=\"pointer\"\n              (onChange)=\"handleValueChange($event)\"\n            ></color-hue>\n          </div>\n          <div class=\"chrome-alpha\" *ngIf=\"!disableAlpha\">\n            <color-alpha\n              [radius]=\"2\" [rgb]=\"rgb\" [hsl]=\"hsl\"\n              [pointer]=\"pointer\" (onChange)=\"handleValueChange($event)\"\n            ></color-alpha>\n          </div>\n        </div>\n      </div>\n      <color-chrome-fields\n        [rgb]=\"rgb\" [hsl]=\"hsl\" [hex]=\"hex\"\n        [disableAlpha]=\"disableAlpha\"\n        (onChange)=\"handleValueChange($event)\"\n      ></color-chrome-fields>\n    </div>\n  </div>\n  `, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, providers: [\n                        {\n                            provide: NG_VALUE_ACCESSOR,\n                            useExisting: forwardRef(() => ChromeComponent),\n                            multi: true,\n                        },\n                        {\n                            provide: ColorWrap,\n                            useExisting: forwardRef(() => ChromeComponent),\n                        },\n                    ], styles: [\".chrome-picker{background:#fff;border-radius:2px;box-shadow:0 0 2px #0000004d,0 4px 8px #0000004d;box-sizing:initial;width:225px;font-family:Menlo}.chrome-controls{display:flex}.chrome-color{width:42px}.chrome-body{padding:14px 14px 12px}.chrome-active{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:20px;box-shadow:inset 0 0 0 1px #0000001a;z-index:2}.chrome-swatch{width:28px;height:28px;border-radius:15px;position:relative;overflow:hidden}.saturation{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.chrome-toggles{flex:1}.chrome-hue{height:10px;position:relative;margin-bottom:8px}.chrome-alpha{height:10px;position:relative}\\n\"] }]\n        }], ctorParameters: function () { return []; }, propDecorators: { disableAlpha: [{\n                type: Input\n            }] } });\nclass ColorChromeModule {\n}\nColorChromeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorChromeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nColorChromeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorChromeModule, declarations: [ChromeComponent, ChromeFieldsComponent], imports: [CommonModule,\n        AlphaModule,\n        CheckboardModule,\n        EditableInputModule,\n        HueModule,\n        SaturationModule], exports: [ChromeComponent, ChromeFieldsComponent] });\nColorChromeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorChromeModule, imports: [CommonModule,\n        AlphaModule,\n        CheckboardModule,\n        EditableInputModule,\n        HueModule,\n        SaturationModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.1.2\", ngImport: i0, type: ColorChromeModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [ChromeComponent, ChromeFieldsComponent],\n                    exports: [ChromeComponent, ChromeFieldsComponent],\n                    imports: [\n                        CommonModule,\n                        AlphaModule,\n                        CheckboardModule,\n                        EditableInputModule,\n                        HueModule,\n                        SaturationModule,\n                    ],\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChromeComponent, ChromeFieldsComponent, ColorChromeModule };\n","import * as i0 from '@angular/core';\nimport { Directive, NgModule, InjectionToken, Injectable, Inject, SecurityContext, Injector, Component, HostBinding, HostListener } from '@angular/core';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { Subject } from 'rxjs';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i2 from '@angular/platform-browser';\n\nclass ToastContainerDirective {\n    constructor(el) {\n        this.el = el;\n    }\n    getContainerElement() {\n        return this.el.nativeElement;\n    }\n}\nToastContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nToastContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.2\", type: ToastContainerDirective, selector: \"[toastContainer]\", exportAs: [\"toastContainer\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[toastContainer]',\n                    exportAs: 'toastContainer',\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\nclass ToastContainerModule {\n}\nToastContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nToastContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerModule, declarations: [ToastContainerDirective], exports: [ToastContainerDirective] });\nToastContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastContainerModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    declarations: [ToastContainerDirective],\n                    exports: [ToastContainerDirective],\n                }]\n        }] });\n\n/**\n * A `ComponentPortal` is a portal that instantiates some Component upon attachment.\n */\nclass ComponentPortal {\n    constructor(component, injector) {\n        this.component = component;\n        this.injector = injector;\n    }\n    /** Attach this portal to a host. */\n    attach(host, newestOnTop) {\n        this._attachedHost = host;\n        return host.attach(this, newestOnTop);\n    }\n    /** Detach this portal from its host */\n    detach() {\n        const host = this._attachedHost;\n        if (host) {\n            this._attachedHost = undefined;\n            return host.detach();\n        }\n    }\n    /** Whether this portal is attached to a host. */\n    get isAttached() {\n        return this._attachedHost != null;\n    }\n    /**\n     * Sets the PortalHost reference without performing `attach()`. This is used directly by\n     * the PortalHost when it is performing an `attach()` or `detach()`.\n     */\n    setAttachedHost(host) {\n        this._attachedHost = host;\n    }\n}\n/**\n * Partial implementation of PortalHost that only deals with attaching a\n * ComponentPortal\n */\nclass BasePortalHost {\n    attach(portal, newestOnTop) {\n        this._attachedPortal = portal;\n        return this.attachComponentPortal(portal, newestOnTop);\n    }\n    detach() {\n        if (this._attachedPortal) {\n            this._attachedPortal.setAttachedHost();\n        }\n        this._attachedPortal = undefined;\n        if (this._disposeFn) {\n            this._disposeFn();\n            this._disposeFn = undefined;\n        }\n    }\n    setDisposeFn(fn) {\n        this._disposeFn = fn;\n    }\n}\n\n/**\n * Reference to a toast opened via the Toastr service.\n */\nclass ToastRef {\n    constructor(_overlayRef) {\n        this._overlayRef = _overlayRef;\n        /** Count of duplicates of this toast */\n        this.duplicatesCount = 0;\n        /** Subject for notifying the user that the toast has finished closing. */\n        this._afterClosed = new Subject();\n        /** triggered when toast is activated */\n        this._activate = new Subject();\n        /** notifies the toast that it should close before the timeout */\n        this._manualClose = new Subject();\n        /** notifies the toast that it should reset the timeouts */\n        this._resetTimeout = new Subject();\n        /** notifies the toast that it should count a duplicate toast */\n        this._countDuplicate = new Subject();\n    }\n    manualClose() {\n        this._manualClose.next();\n        this._manualClose.complete();\n    }\n    manualClosed() {\n        return this._manualClose.asObservable();\n    }\n    timeoutReset() {\n        return this._resetTimeout.asObservable();\n    }\n    countDuplicate() {\n        return this._countDuplicate.asObservable();\n    }\n    /**\n     * Close the toast.\n     */\n    close() {\n        this._overlayRef.detach();\n        this._afterClosed.next();\n        this._manualClose.next();\n        this._afterClosed.complete();\n        this._manualClose.complete();\n        this._activate.complete();\n        this._resetTimeout.complete();\n        this._countDuplicate.complete();\n    }\n    /** Gets an observable that is notified when the toast is finished closing. */\n    afterClosed() {\n        return this._afterClosed.asObservable();\n    }\n    isInactive() {\n        return this._activate.isStopped;\n    }\n    activate() {\n        this._activate.next();\n        this._activate.complete();\n    }\n    /** Gets an observable that is notified when the toast has started opening. */\n    afterActivate() {\n        return this._activate.asObservable();\n    }\n    /** Reset the toast timouts and count duplicates */\n    onDuplicate(resetTimeout, countDuplicate) {\n        if (resetTimeout) {\n            this._resetTimeout.next();\n        }\n        if (countDuplicate) {\n            this._countDuplicate.next(++this.duplicatesCount);\n        }\n    }\n}\n\n/**\n * Everything a toast needs to launch\n */\nclass ToastPackage {\n    constructor(toastId, config, message, title, toastType, toastRef) {\n        this.toastId = toastId;\n        this.config = config;\n        this.message = message;\n        this.title = title;\n        this.toastType = toastType;\n        this.toastRef = toastRef;\n        this._onTap = new Subject();\n        this._onAction = new Subject();\n        this.toastRef.afterClosed().subscribe(() => {\n            this._onAction.complete();\n            this._onTap.complete();\n        });\n    }\n    /** Fired on click */\n    triggerTap() {\n        this._onTap.next();\n        if (this.config.tapToDismiss) {\n            this._onTap.complete();\n        }\n    }\n    onTap() {\n        return this._onTap.asObservable();\n    }\n    /** available for use in custom toast */\n    triggerAction(action) {\n        this._onAction.next(action);\n    }\n    onAction() {\n        return this._onAction.asObservable();\n    }\n}\nconst DefaultNoComponentGlobalConfig = {\n    maxOpened: 0,\n    autoDismiss: false,\n    newestOnTop: true,\n    preventDuplicates: false,\n    countDuplicates: false,\n    resetTimeoutOnDuplicate: false,\n    includeTitleDuplicates: false,\n    iconClasses: {\n        error: 'toast-error',\n        info: 'toast-info',\n        success: 'toast-success',\n        warning: 'toast-warning',\n    },\n    // Individual\n    closeButton: false,\n    disableTimeOut: false,\n    timeOut: 5000,\n    extendedTimeOut: 1000,\n    enableHtml: false,\n    progressBar: false,\n    toastClass: 'ngx-toastr',\n    positionClass: 'toast-top-right',\n    titleClass: 'toast-title',\n    messageClass: 'toast-message',\n    easing: 'ease-in',\n    easeTime: 300,\n    tapToDismiss: true,\n    onActivateTick: false,\n    progressAnimation: 'decreasing',\n    payload: null\n};\nconst TOAST_CONFIG = new InjectionToken('ToastConfig');\n\n/**\n * A PortalHost for attaching portals to an arbitrary DOM element outside of the Angular\n * application context.\n *\n * This is the only part of the portal core that directly touches the DOM.\n */\nclass DomPortalHost extends BasePortalHost {\n    constructor(_hostDomElement, _componentFactoryResolver, _appRef) {\n        super();\n        this._hostDomElement = _hostDomElement;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._appRef = _appRef;\n    }\n    /**\n     * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.\n     * @param portal Portal to be attached\n     */\n    attachComponentPortal(portal, newestOnTop) {\n        const componentFactory = this._componentFactoryResolver.resolveComponentFactory(portal.component);\n        let componentRef;\n        // If the portal specifies a ViewContainerRef, we will use that as the attachment point\n        // for the component (in terms of Angular's component tree, not rendering).\n        // When the ViewContainerRef is missing, we use the factory to create the component directly\n        // and then manually attach the ChangeDetector for that component to the application (which\n        // happens automatically when using a ViewContainer).\n        componentRef = componentFactory.create(portal.injector);\n        // When creating a component outside of a ViewContainer, we need to manually register\n        // its ChangeDetector with the application. This API is unfortunately not yet published\n        // in Angular core. The change detector must also be deregistered when the component\n        // is destroyed to prevent memory leaks.\n        this._appRef.attachView(componentRef.hostView);\n        this.setDisposeFn(() => {\n            this._appRef.detachView(componentRef.hostView);\n            componentRef.destroy();\n        });\n        // At this point the component has been instantiated, so we move it to the location in the DOM\n        // where we want it to be rendered.\n        if (newestOnTop) {\n            this._hostDomElement.insertBefore(this._getComponentRootNode(componentRef), this._hostDomElement.firstChild);\n        }\n        else {\n            this._hostDomElement.appendChild(this._getComponentRootNode(componentRef));\n        }\n        return componentRef;\n    }\n    /** Gets the root HTMLElement for an instantiated component. */\n    _getComponentRootNode(componentRef) {\n        return componentRef.hostView.rootNodes[0];\n    }\n}\n\n/**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\nclass OverlayRef {\n    constructor(_portalHost) {\n        this._portalHost = _portalHost;\n    }\n    attach(portal, newestOnTop = true) {\n        return this._portalHost.attach(portal, newestOnTop);\n    }\n    /**\n     * Detaches an overlay from a portal.\n     * @returns Resolves when the overlay has been detached.\n     */\n    detach() {\n        return this._portalHost.detach();\n    }\n}\n\n/** Container inside which all toasts will render. */\nclass OverlayContainer {\n    constructor(_document) {\n        this._document = _document;\n    }\n    ngOnDestroy() {\n        if (this._containerElement && this._containerElement.parentNode) {\n            this._containerElement.parentNode.removeChild(this._containerElement);\n        }\n    }\n    /**\n     * This method returns the overlay container element. It will lazily\n     * create the element the first time  it is called to facilitate using\n     * the container in non-browser environments.\n     * @returns the container element\n     */\n    getContainerElement() {\n        if (!this._containerElement) {\n            this._createContainer();\n        }\n        return this._containerElement;\n    }\n    /**\n     * Create the overlay container element, which is simply a div\n     * with the 'cdk-overlay-container' class on the document body\n     * and 'aria-live=\"polite\"'\n     */\n    _createContainer() {\n        const container = this._document.createElement('div');\n        container.classList.add('overlay-container');\n        container.setAttribute('aria-live', 'polite');\n        this._document.body.appendChild(container);\n        this._containerElement = container;\n    }\n}\nOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: OverlayContainer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: OverlayContainer, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n\n/* eslint-disable @typescript-eslint/no-non-null-assertion */\n/**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalHost, so any kind of Portal can be loaded into one.\n */\nclass Overlay {\n    constructor(_overlayContainer, _componentFactoryResolver, _appRef, _document) {\n        this._overlayContainer = _overlayContainer;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._appRef = _appRef;\n        this._document = _document;\n        // Namespace panes by overlay container\n        this._paneElements = new Map();\n    }\n    /**\n     * Creates an overlay.\n     * @returns A reference to the created overlay.\n     */\n    create(positionClass, overlayContainer) {\n        // get existing pane if possible\n        return this._createOverlayRef(this.getPaneElement(positionClass, overlayContainer));\n    }\n    getPaneElement(positionClass = '', overlayContainer) {\n        if (!this._paneElements.get(overlayContainer)) {\n            this._paneElements.set(overlayContainer, {});\n        }\n        if (!this._paneElements.get(overlayContainer)[positionClass]) {\n            this._paneElements.get(overlayContainer)[positionClass] = this._createPaneElement(positionClass, overlayContainer);\n        }\n        return this._paneElements.get(overlayContainer)[positionClass];\n    }\n    /**\n     * Creates the DOM element for an overlay and appends it to the overlay container.\n     * @returns Newly-created pane element\n     */\n    _createPaneElement(positionClass, overlayContainer) {\n        const pane = this._document.createElement('div');\n        pane.id = 'toast-container';\n        pane.classList.add(positionClass);\n        pane.classList.add('toast-container');\n        if (!overlayContainer) {\n            this._overlayContainer.getContainerElement().appendChild(pane);\n        }\n        else {\n            overlayContainer.getContainerElement().appendChild(pane);\n        }\n        return pane;\n    }\n    /**\n     * Create a DomPortalHost into which the overlay content can be loaded.\n     * @param pane The DOM element to turn into a portal host.\n     * @returns A portal host for the given DOM element.\n     */\n    _createPortalHost(pane) {\n        return new DomPortalHost(pane, this._componentFactoryResolver, this._appRef);\n    }\n    /**\n     * Creates an OverlayRef for an overlay in the given DOM element.\n     * @param pane DOM element for the overlay\n     */\n    _createOverlayRef(pane) {\n        return new OverlayRef(this._createPortalHost(pane));\n    }\n}\nOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: Overlay, deps: [{ token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: Overlay, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: Overlay, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n\nclass ToastrService {\n    constructor(token, overlay, _injector, sanitizer, ngZone) {\n        this.overlay = overlay;\n        this._injector = _injector;\n        this.sanitizer = sanitizer;\n        this.ngZone = ngZone;\n        this.currentlyActive = 0;\n        this.toasts = [];\n        this.index = 0;\n        this.toastrConfig = {\n            ...token.default,\n            ...token.config,\n        };\n        if (token.config.iconClasses) {\n            this.toastrConfig.iconClasses = {\n                ...token.default.iconClasses,\n                ...token.config.iconClasses,\n            };\n        }\n    }\n    /** show toast */\n    show(message, title, override = {}, type = '') {\n        return this._preBuildNotification(type, message, title, this.applyConfig(override));\n    }\n    /** show successful toast */\n    success(message, title, override = {}) {\n        const type = this.toastrConfig.iconClasses.success || '';\n        return this._preBuildNotification(type, message, title, this.applyConfig(override));\n    }\n    /** show error toast */\n    error(message, title, override = {}) {\n        const type = this.toastrConfig.iconClasses.error || '';\n        return this._preBuildNotification(type, message, title, this.applyConfig(override));\n    }\n    /** show info toast */\n    info(message, title, override = {}) {\n        const type = this.toastrConfig.iconClasses.info || '';\n        return this._preBuildNotification(type, message, title, this.applyConfig(override));\n    }\n    /** show warning toast */\n    warning(message, title, override = {}) {\n        const type = this.toastrConfig.iconClasses.warning || '';\n        return this._preBuildNotification(type, message, title, this.applyConfig(override));\n    }\n    /**\n     * Remove all or a single toast by id\n     */\n    clear(toastId) {\n        // Call every toastRef manualClose function\n        for (const toast of this.toasts) {\n            if (toastId !== undefined) {\n                if (toast.toastId === toastId) {\n                    toast.toastRef.manualClose();\n                    return;\n                }\n            }\n            else {\n                toast.toastRef.manualClose();\n            }\n        }\n    }\n    /**\n     * Remove and destroy a single toast by id\n     */\n    remove(toastId) {\n        const found = this._findToast(toastId);\n        if (!found) {\n            return false;\n        }\n        found.activeToast.toastRef.close();\n        this.toasts.splice(found.index, 1);\n        this.currentlyActive = this.currentlyActive - 1;\n        if (!this.toastrConfig.maxOpened || !this.toasts.length) {\n            return false;\n        }\n        if (this.currentlyActive < this.toastrConfig.maxOpened && this.toasts[this.currentlyActive]) {\n            const p = this.toasts[this.currentlyActive].toastRef;\n            if (!p.isInactive()) {\n                this.currentlyActive = this.currentlyActive + 1;\n                p.activate();\n            }\n        }\n        return true;\n    }\n    /**\n     * Determines if toast message is already shown\n     */\n    findDuplicate(title = '', message = '', resetOnDuplicate, countDuplicates) {\n        const { includeTitleDuplicates } = this.toastrConfig;\n        for (const toast of this.toasts) {\n            const hasDuplicateTitle = includeTitleDuplicates && toast.title === title;\n            if ((!includeTitleDuplicates || hasDuplicateTitle) && toast.message === message) {\n                toast.toastRef.onDuplicate(resetOnDuplicate, countDuplicates);\n                return toast;\n            }\n        }\n        return null;\n    }\n    /** create a clone of global config and apply individual settings */\n    applyConfig(override = {}) {\n        return { ...this.toastrConfig, ...override };\n    }\n    /**\n     * Find toast object by id\n     */\n    _findToast(toastId) {\n        for (let i = 0; i < this.toasts.length; i++) {\n            if (this.toasts[i].toastId === toastId) {\n                return { index: i, activeToast: this.toasts[i] };\n            }\n        }\n        return null;\n    }\n    /**\n     * Determines the need to run inside angular's zone then builds the toast\n     */\n    _preBuildNotification(toastType, message, title, config) {\n        if (config.onActivateTick) {\n            return this.ngZone.run(() => this._buildNotification(toastType, message, title, config));\n        }\n        return this._buildNotification(toastType, message, title, config);\n    }\n    /**\n     * Creates and attaches toast data to component\n     * returns the active toast, or in case preventDuplicates is enabled the original/non-duplicate active toast.\n     */\n    _buildNotification(toastType, message, title, config) {\n        if (!config.toastComponent) {\n            throw new Error('toastComponent required');\n        }\n        // max opened and auto dismiss = true\n        // if timeout = 0 resetting it would result in setting this.hideTime = Date.now(). Hence, we only want to reset timeout if there is\n        // a timeout at all\n        const duplicate = this.findDuplicate(title, message, this.toastrConfig.resetTimeoutOnDuplicate && config.timeOut > 0, this.toastrConfig.countDuplicates);\n        if (((this.toastrConfig.includeTitleDuplicates && title) || message) &&\n            this.toastrConfig.preventDuplicates &&\n            duplicate !== null) {\n            return duplicate;\n        }\n        this.previousToastMessage = message;\n        let keepInactive = false;\n        if (this.toastrConfig.maxOpened && this.currentlyActive >= this.toastrConfig.maxOpened) {\n            keepInactive = true;\n            if (this.toastrConfig.autoDismiss) {\n                this.clear(this.toasts[0].toastId);\n            }\n        }\n        const overlayRef = this.overlay.create(config.positionClass, this.overlayContainer);\n        this.index = this.index + 1;\n        let sanitizedMessage = message;\n        if (message && config.enableHtml) {\n            sanitizedMessage = this.sanitizer.sanitize(SecurityContext.HTML, message);\n        }\n        const toastRef = new ToastRef(overlayRef);\n        const toastPackage = new ToastPackage(this.index, config, sanitizedMessage, title, toastType, toastRef);\n        /** New injector that contains an instance of `ToastPackage`. */\n        const providers = [{ provide: ToastPackage, useValue: toastPackage }];\n        const toastInjector = Injector.create({ providers, parent: this._injector });\n        const component = new ComponentPortal(config.toastComponent, toastInjector);\n        const portal = overlayRef.attach(component, config.newestOnTop);\n        toastRef.componentInstance = portal.instance;\n        const ins = {\n            toastId: this.index,\n            title: title || '',\n            message: message || '',\n            toastRef,\n            onShown: toastRef.afterActivate(),\n            onHidden: toastRef.afterClosed(),\n            onTap: toastPackage.onTap(),\n            onAction: toastPackage.onAction(),\n            portal,\n        };\n        if (!keepInactive) {\n            this.currentlyActive = this.currentlyActive + 1;\n            setTimeout(() => {\n                ins.toastRef.activate();\n            });\n        }\n        this.toasts.push(ins);\n        return ins;\n    }\n}\nToastrService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrService, deps: [{ token: TOAST_CONFIG }, { token: Overlay }, { token: i0.Injector }, { token: i2.DomSanitizer }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nToastrService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrService, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrService, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n                    type: Inject,\n                    args: [TOAST_CONFIG]\n                }] }, { type: Overlay }, { type: i0.Injector }, { type: i2.DomSanitizer }, { type: i0.NgZone }]; } });\n\nclass Toast {\n    constructor(toastrService, toastPackage, ngZone) {\n        this.toastrService = toastrService;\n        this.toastPackage = toastPackage;\n        this.ngZone = ngZone;\n        /** width of progress bar */\n        this.width = -1;\n        /** a combination of toast type and options.toastClass */\n        this.toastClasses = '';\n        /** controls animation */\n        this.state = {\n            value: 'inactive',\n            params: {\n                easeTime: this.toastPackage.config.easeTime,\n                easing: 'ease-in'\n            }\n        };\n        this.message = toastPackage.message;\n        this.title = toastPackage.title;\n        this.options = toastPackage.config;\n        this.originalTimeout = toastPackage.config.timeOut;\n        this.toastClasses = `${toastPackage.toastType} ${toastPackage.config.toastClass}`;\n        this.sub = toastPackage.toastRef.afterActivate().subscribe(() => {\n            this.activateToast();\n        });\n        this.sub1 = toastPackage.toastRef.manualClosed().subscribe(() => {\n            this.remove();\n        });\n        this.sub2 = toastPackage.toastRef.timeoutReset().subscribe(() => {\n            this.resetTimeout();\n        });\n        this.sub3 = toastPackage.toastRef.countDuplicate().subscribe(count => {\n            this.duplicatesCount = count;\n        });\n    }\n    /** hides component when waiting to be displayed */\n    get displayStyle() {\n        if (this.state.value === 'inactive') {\n            return 'none';\n        }\n        return;\n    }\n    ngOnDestroy() {\n        this.sub.unsubscribe();\n        this.sub1.unsubscribe();\n        this.sub2.unsubscribe();\n        this.sub3.unsubscribe();\n        clearInterval(this.intervalId);\n        clearTimeout(this.timeout);\n    }\n    /**\n     * activates toast and sets timeout\n     */\n    activateToast() {\n        this.state = { ...this.state, value: 'active' };\n        if (!(this.options.disableTimeOut === true || this.options.disableTimeOut === 'timeOut') && this.options.timeOut) {\n            this.outsideTimeout(() => this.remove(), this.options.timeOut);\n            this.hideTime = new Date().getTime() + this.options.timeOut;\n            if (this.options.progressBar) {\n                this.outsideInterval(() => this.updateProgress(), 10);\n            }\n        }\n    }\n    /**\n     * updates progress bar width\n     */\n    updateProgress() {\n        if (this.width === 0 || this.width === 100 || !this.options.timeOut) {\n            return;\n        }\n        const now = new Date().getTime();\n        const remaining = this.hideTime - now;\n        this.width = (remaining / this.options.timeOut) * 100;\n        if (this.options.progressAnimation === 'increasing') {\n            this.width = 100 - this.width;\n        }\n        if (this.width <= 0) {\n            this.width = 0;\n        }\n        if (this.width >= 100) {\n            this.width = 100;\n        }\n    }\n    resetTimeout() {\n        clearTimeout(this.timeout);\n        clearInterval(this.intervalId);\n        this.state = { ...this.state, value: 'active' };\n        this.outsideTimeout(() => this.remove(), this.originalTimeout);\n        this.options.timeOut = this.originalTimeout;\n        this.hideTime = new Date().getTime() + (this.options.timeOut || 0);\n        this.width = -1;\n        if (this.options.progressBar) {\n            this.outsideInterval(() => this.updateProgress(), 10);\n        }\n    }\n    /**\n     * tells toastrService to remove this toast after animation time\n     */\n    remove() {\n        if (this.state.value === 'removed') {\n            return;\n        }\n        clearTimeout(this.timeout);\n        this.state = { ...this.state, value: 'removed' };\n        this.outsideTimeout(() => this.toastrService.remove(this.toastPackage.toastId), +this.toastPackage.config.easeTime);\n    }\n    tapToast() {\n        if (this.state.value === 'removed') {\n            return;\n        }\n        this.toastPackage.triggerTap();\n        if (this.options.tapToDismiss) {\n            this.remove();\n        }\n    }\n    stickAround() {\n        if (this.state.value === 'removed') {\n            return;\n        }\n        if (this.options.disableTimeOut !== 'extendedTimeOut') {\n            clearTimeout(this.timeout);\n            this.options.timeOut = 0;\n            this.hideTime = 0;\n            // disable progressBar\n            clearInterval(this.intervalId);\n            this.width = 0;\n        }\n    }\n    delayedHideToast() {\n        if ((this.options.disableTimeOut === true || this.options.disableTimeOut === 'extendedTimeOut') ||\n            this.options.extendedTimeOut === 0 ||\n            this.state.value === 'removed') {\n            return;\n        }\n        this.outsideTimeout(() => this.remove(), this.options.extendedTimeOut);\n        this.options.timeOut = this.options.extendedTimeOut;\n        this.hideTime = new Date().getTime() + (this.options.timeOut || 0);\n        this.width = -1;\n        if (this.options.progressBar) {\n            this.outsideInterval(() => this.updateProgress(), 10);\n        }\n    }\n    outsideTimeout(func, timeout) {\n        if (this.ngZone) {\n            this.ngZone.runOutsideAngular(() => (this.timeout = setTimeout(() => this.runInsideAngular(func), timeout)));\n        }\n        else {\n            this.timeout = setTimeout(() => func(), timeout);\n        }\n    }\n    outsideInterval(func, timeout) {\n        if (this.ngZone) {\n            this.ngZone.runOutsideAngular(() => (this.intervalId = setInterval(() => this.runInsideAngular(func), timeout)));\n        }\n        else {\n            this.intervalId = setInterval(() => func(), timeout);\n        }\n    }\n    runInsideAngular(func) {\n        if (this.ngZone) {\n            this.ngZone.run(() => func());\n        }\n        else {\n            func();\n        }\n    }\n}\nToast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: Toast, deps: [{ token: ToastrService }, { token: ToastPackage }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nToast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.2\", type: Toast, selector: \"[toast-component]\", host: { listeners: { \"click\": \"tapToast()\", \"mouseenter\": \"stickAround()\", \"mouseleave\": \"delayedHideToast()\" }, properties: { \"class\": \"this.toastClasses\", \"@flyInOut\": \"this.state\", \"style.display\": \"this.displayStyle\" } }, ngImport: i0, template: `\n  <button *ngIf=\"options.closeButton\" (click)=\"remove()\" type=\"button\" class=\"toast-close-button\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n  <div *ngIf=\"title\" [class]=\"options.titleClass\" [attr.aria-label]=\"title\">\n    {{ title }} <ng-container *ngIf=\"duplicatesCount\">[{{ duplicatesCount + 1 }}]</ng-container>\n  </div>\n  <div *ngIf=\"message && options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [innerHTML]=\"message\">\n  </div>\n  <div *ngIf=\"message && !options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [attr.aria-label]=\"message\">\n    {{ message }}\n  </div>\n  <div *ngIf=\"options.progressBar\">\n    <div class=\"toast-progress\" [style.width]=\"width + '%'\"></div>\n  </div>\n  `, isInline: true, dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [\n        trigger('flyInOut', [\n            state('inactive', style({ opacity: 0 })),\n            state('active', style({ opacity: 1 })),\n            state('removed', style({ opacity: 0 })),\n            transition('inactive => active', animate('{{ easeTime }}ms {{ easing }}')),\n            transition('active => removed', animate('{{ easeTime }}ms {{ easing }}'))\n        ])\n    ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: Toast, decorators: [{\n            type: Component,\n            args: [{\n                    selector: '[toast-component]',\n                    template: `\n  <button *ngIf=\"options.closeButton\" (click)=\"remove()\" type=\"button\" class=\"toast-close-button\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n  <div *ngIf=\"title\" [class]=\"options.titleClass\" [attr.aria-label]=\"title\">\n    {{ title }} <ng-container *ngIf=\"duplicatesCount\">[{{ duplicatesCount + 1 }}]</ng-container>\n  </div>\n  <div *ngIf=\"message && options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [innerHTML]=\"message\">\n  </div>\n  <div *ngIf=\"message && !options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [attr.aria-label]=\"message\">\n    {{ message }}\n  </div>\n  <div *ngIf=\"options.progressBar\">\n    <div class=\"toast-progress\" [style.width]=\"width + '%'\"></div>\n  </div>\n  `,\n                    animations: [\n                        trigger('flyInOut', [\n                            state('inactive', style({ opacity: 0 })),\n                            state('active', style({ opacity: 1 })),\n                            state('removed', style({ opacity: 0 })),\n                            transition('inactive => active', animate('{{ easeTime }}ms {{ easing }}')),\n                            transition('active => removed', animate('{{ easeTime }}ms {{ easing }}'))\n                        ])\n                    ],\n                    preserveWhitespaces: false\n                }]\n        }], ctorParameters: function () { return [{ type: ToastrService }, { type: ToastPackage }, { type: i0.NgZone }]; }, propDecorators: { toastClasses: [{\n                type: HostBinding,\n                args: ['class']\n            }], state: [{\n                type: HostBinding,\n                args: ['@flyInOut']\n            }], displayStyle: [{\n                type: HostBinding,\n                args: ['style.display']\n            }], tapToast: [{\n                type: HostListener,\n                args: ['click']\n            }], stickAround: [{\n                type: HostListener,\n                args: ['mouseenter']\n            }], delayedHideToast: [{\n                type: HostListener,\n                args: ['mouseleave']\n            }] } });\n\nconst DefaultGlobalConfig = {\n    ...DefaultNoComponentGlobalConfig,\n    toastComponent: Toast,\n};\nclass ToastrModule {\n    static forRoot(config = {}) {\n        return {\n            ngModule: ToastrModule,\n            providers: [\n                {\n                    provide: TOAST_CONFIG,\n                    useValue: {\n                        default: DefaultGlobalConfig,\n                        config,\n                    },\n                },\n            ],\n        };\n    }\n}\nToastrModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nToastrModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrModule, declarations: [Toast], imports: [CommonModule], exports: [Toast] });\nToastrModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                    declarations: [Toast],\n                    exports: [Toast],\n                }]\n        }] });\nclass ToastrComponentlessModule {\n    static forRoot(config = {}) {\n        return {\n            ngModule: ToastrModule,\n            providers: [\n                {\n                    provide: TOAST_CONFIG,\n                    useValue: {\n                        default: DefaultNoComponentGlobalConfig,\n                        config,\n                    },\n                },\n            ],\n        };\n    }\n}\nToastrComponentlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrComponentlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nToastrComponentlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrComponentlessModule, imports: [CommonModule] });\nToastrComponentlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrComponentlessModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastrComponentlessModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                }]\n        }] });\n\nclass ToastNoAnimation {\n    constructor(toastrService, toastPackage, appRef) {\n        this.toastrService = toastrService;\n        this.toastPackage = toastPackage;\n        this.appRef = appRef;\n        /** width of progress bar */\n        this.width = -1;\n        /** a combination of toast type and options.toastClass */\n        this.toastClasses = '';\n        /** controls animation */\n        this.state = 'inactive';\n        this.message = toastPackage.message;\n        this.title = toastPackage.title;\n        this.options = toastPackage.config;\n        this.originalTimeout = toastPackage.config.timeOut;\n        this.toastClasses = `${toastPackage.toastType} ${toastPackage.config.toastClass}`;\n        this.sub = toastPackage.toastRef.afterActivate().subscribe(() => {\n            this.activateToast();\n        });\n        this.sub1 = toastPackage.toastRef.manualClosed().subscribe(() => {\n            this.remove();\n        });\n        this.sub2 = toastPackage.toastRef.timeoutReset().subscribe(() => {\n            this.resetTimeout();\n        });\n        this.sub3 = toastPackage.toastRef.countDuplicate().subscribe(count => {\n            this.duplicatesCount = count;\n        });\n    }\n    /** hides component when waiting to be displayed */\n    get displayStyle() {\n        if (this.state === 'inactive') {\n            return 'none';\n        }\n    }\n    ngOnDestroy() {\n        this.sub.unsubscribe();\n        this.sub1.unsubscribe();\n        this.sub2.unsubscribe();\n        this.sub3.unsubscribe();\n        clearInterval(this.intervalId);\n        clearTimeout(this.timeout);\n    }\n    /**\n     * activates toast and sets timeout\n     */\n    activateToast() {\n        this.state = 'active';\n        if (!(this.options.disableTimeOut === true || this.options.disableTimeOut === 'timeOut') && this.options.timeOut) {\n            this.timeout = setTimeout(() => {\n                this.remove();\n            }, this.options.timeOut);\n            this.hideTime = new Date().getTime() + this.options.timeOut;\n            if (this.options.progressBar) {\n                this.intervalId = setInterval(() => this.updateProgress(), 10);\n            }\n        }\n        if (this.options.onActivateTick) {\n            this.appRef.tick();\n        }\n    }\n    /**\n     * updates progress bar width\n     */\n    updateProgress() {\n        if (this.width === 0 || this.width === 100 || !this.options.timeOut) {\n            return;\n        }\n        const now = new Date().getTime();\n        const remaining = this.hideTime - now;\n        this.width = (remaining / this.options.timeOut) * 100;\n        if (this.options.progressAnimation === 'increasing') {\n            this.width = 100 - this.width;\n        }\n        if (this.width <= 0) {\n            this.width = 0;\n        }\n        if (this.width >= 100) {\n            this.width = 100;\n        }\n    }\n    resetTimeout() {\n        clearTimeout(this.timeout);\n        clearInterval(this.intervalId);\n        this.state = 'active';\n        this.options.timeOut = this.originalTimeout;\n        this.timeout = setTimeout(() => this.remove(), this.originalTimeout);\n        this.hideTime = new Date().getTime() + (this.originalTimeout || 0);\n        this.width = -1;\n        if (this.options.progressBar) {\n            this.intervalId = setInterval(() => this.updateProgress(), 10);\n        }\n    }\n    /**\n     * tells toastrService to remove this toast after animation time\n     */\n    remove() {\n        if (this.state === 'removed') {\n            return;\n        }\n        clearTimeout(this.timeout);\n        this.state = 'removed';\n        this.timeout = setTimeout(() => this.toastrService.remove(this.toastPackage.toastId));\n    }\n    tapToast() {\n        if (this.state === 'removed') {\n            return;\n        }\n        this.toastPackage.triggerTap();\n        if (this.options.tapToDismiss) {\n            this.remove();\n        }\n    }\n    stickAround() {\n        if (this.state === 'removed') {\n            return;\n        }\n        clearTimeout(this.timeout);\n        this.options.timeOut = 0;\n        this.hideTime = 0;\n        // disable progressBar\n        clearInterval(this.intervalId);\n        this.width = 0;\n    }\n    delayedHideToast() {\n        if ((this.options.disableTimeOut === true || this.options.disableTimeOut === 'extendedTimeOut') ||\n            this.options.extendedTimeOut === 0 ||\n            this.state === 'removed') {\n            return;\n        }\n        this.timeout = setTimeout(() => this.remove(), this.options.extendedTimeOut);\n        this.options.timeOut = this.options.extendedTimeOut;\n        this.hideTime = new Date().getTime() + (this.options.timeOut || 0);\n        this.width = -1;\n        if (this.options.progressBar) {\n            this.intervalId = setInterval(() => this.updateProgress(), 10);\n        }\n    }\n}\nToastNoAnimation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimation, deps: [{ token: ToastrService }, { token: ToastPackage }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component });\nToastNoAnimation.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.2\", type: ToastNoAnimation, selector: \"[toast-component]\", host: { listeners: { \"click\": \"tapToast()\", \"mouseenter\": \"stickAround()\", \"mouseleave\": \"delayedHideToast()\" }, properties: { \"class\": \"this.toastClasses\", \"style.display\": \"this.displayStyle\" } }, ngImport: i0, template: `\n  <button *ngIf=\"options.closeButton\" (click)=\"remove()\" type=\"button\" class=\"toast-close-button\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n  <div *ngIf=\"title\" [class]=\"options.titleClass\" [attr.aria-label]=\"title\">\n    {{ title }} <ng-container *ngIf=\"duplicatesCount\">[{{ duplicatesCount + 1 }}]</ng-container>\n  </div>\n  <div *ngIf=\"message && options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [innerHTML]=\"message\">\n  </div>\n  <div *ngIf=\"message && !options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [attr.aria-label]=\"message\">\n    {{ message }}\n  </div>\n  <div *ngIf=\"options.progressBar\">\n    <div class=\"toast-progress\" [style.width]=\"width + '%'\"></div>\n  </div>\n  `, isInline: true, dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimation, decorators: [{\n            type: Component,\n            args: [{\n                    selector: '[toast-component]',\n                    template: `\n  <button *ngIf=\"options.closeButton\" (click)=\"remove()\" type=\"button\" class=\"toast-close-button\" aria-label=\"Close\">\n    <span aria-hidden=\"true\">&times;</span>\n  </button>\n  <div *ngIf=\"title\" [class]=\"options.titleClass\" [attr.aria-label]=\"title\">\n    {{ title }} <ng-container *ngIf=\"duplicatesCount\">[{{ duplicatesCount + 1 }}]</ng-container>\n  </div>\n  <div *ngIf=\"message && options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [innerHTML]=\"message\">\n  </div>\n  <div *ngIf=\"message && !options.enableHtml\" role=\"alert\"\n    [class]=\"options.messageClass\" [attr.aria-label]=\"message\">\n    {{ message }}\n  </div>\n  <div *ngIf=\"options.progressBar\">\n    <div class=\"toast-progress\" [style.width]=\"width + '%'\"></div>\n  </div>\n  `,\n                }]\n        }], ctorParameters: function () { return [{ type: ToastrService }, { type: ToastPackage }, { type: i0.ApplicationRef }]; }, propDecorators: { toastClasses: [{\n                type: HostBinding,\n                args: ['class']\n            }], displayStyle: [{\n                type: HostBinding,\n                args: ['style.display']\n            }], tapToast: [{\n                type: HostListener,\n                args: ['click']\n            }], stickAround: [{\n                type: HostListener,\n                args: ['mouseenter']\n            }], delayedHideToast: [{\n                type: HostListener,\n                args: ['mouseleave']\n            }] } });\nconst DefaultNoAnimationsGlobalConfig = {\n    ...DefaultNoComponentGlobalConfig,\n    toastComponent: ToastNoAnimation,\n};\nclass ToastNoAnimationModule {\n    static forRoot(config = {}) {\n        return {\n            ngModule: ToastNoAnimationModule,\n            providers: [\n                {\n                    provide: TOAST_CONFIG,\n                    useValue: {\n                        default: DefaultNoAnimationsGlobalConfig,\n                        config,\n                    },\n                },\n            ],\n        };\n    }\n}\nToastNoAnimationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nToastNoAnimationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimationModule, declarations: [ToastNoAnimation], imports: [CommonModule], exports: [ToastNoAnimation] });\nToastNoAnimationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimationModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.2\", ngImport: i0, type: ToastNoAnimationModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                    declarations: [ToastNoAnimation],\n                    exports: [ToastNoAnimation],\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BasePortalHost, ComponentPortal, DefaultGlobalConfig, DefaultNoAnimationsGlobalConfig, DefaultNoComponentGlobalConfig, Overlay, OverlayContainer, OverlayRef, TOAST_CONFIG, Toast, ToastContainerDirective, ToastContainerModule, ToastNoAnimation, ToastNoAnimationModule, ToastPackage, ToastRef, ToastrComponentlessModule, ToastrModule, ToastrService };\n","function _arrayLikeToArray(r, a) {\n  (null == a || a > r.length) && (a = r.length);\n  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n  return n;\n}\nexport { _arrayLikeToArray as default };","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nfunction _createForOfIteratorHelper(r, e) {\n  var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n  if (!t) {\n    if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n      t && (r = t);\n      var _n = 0,\n        F = function F() {};\n      return {\n        s: F,\n        n: function n() {\n          return _n >= r.length ? {\n            done: !0\n          } : {\n            done: !1,\n            value: r[_n++]\n          };\n        },\n        e: function e(r) {\n          throw r;\n        },\n        f: F\n      };\n    }\n    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  }\n  var o,\n    a = !0,\n    u = !1;\n  return {\n    s: function s() {\n      t = t.call(r);\n    },\n    n: function n() {\n      var r = t.next();\n      return a = r.done, r;\n    },\n    e: function e(r) {\n      u = !0, o = r;\n    },\n    f: function f() {\n      try {\n        a || null == t[\"return\"] || t[\"return\"]();\n      } finally {\n        if (u) throw o;\n      }\n    }\n  };\n}\nexport { _createForOfIteratorHelper as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n  if (r) {\n    if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n    var t = {}.toString.call(r).slice(8, -1);\n    return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n  }\n}\nexport { _unsupportedIterableToArray as default };","export default function assign(target, object) {\n  if (target == null) {\n    throw new TypeError('assign requires that input parameter not be null or undefined');\n  }\n  for (var property in object) {\n    if (Object.prototype.hasOwnProperty.call(object, property)) {\n      ;\n      target[property] = object[property];\n    }\n  }\n  return target;\n}","function _assertThisInitialized(e) {\n  if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  return e;\n}\nexport { _assertThisInitialized as default };","function _setPrototypeOf(t, e) {\n  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n    return t.__proto__ = e, t;\n  }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n  if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n  t.prototype = Object.create(e && e.prototype, {\n    constructor: {\n      value: t,\n      writable: !0,\n      configurable: !0\n    }\n  }), Object.defineProperty(t, \"prototype\", {\n    writable: !1\n  }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","function _getPrototypeOf(t) {\n  return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n    return t.__proto__ || Object.getPrototypeOf(t);\n  }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","function _isNativeReflectConstruct() {\n  try {\n    var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n  } catch (t) {}\n  return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n    return !!t;\n  })();\n}\nexport { _isNativeReflectConstruct as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n  if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n  if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n  return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nfunction _createSuper(t) {\n  var r = isNativeReflectConstruct();\n  return function () {\n    var e,\n      o = getPrototypeOf(t);\n    if (r) {\n      var s = getPrototypeOf(this).constructor;\n      e = Reflect.construct(o, arguments, s);\n    } else e = o.apply(this, arguments);\n    return possibleConstructorReturn(this, e);\n  };\n}\nexport { _createSuper as default };","function _classCallCheck(a, n) {\n  if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nexport { _classCallCheck as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n  var i = toPrimitive(t, \"string\");\n  return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n  if (\"object\" != _typeof(t) || !t) return t;\n  var e = t[Symbol.toPrimitive];\n  if (void 0 !== e) {\n    var i = e.call(t, r || \"default\");\n    if (\"object\" != _typeof(i)) return i;\n    throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n  }\n  return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(e, r) {\n  for (var t = 0; t < r.length; t++) {\n    var o = r[t];\n    o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n  }\n}\nfunction _createClass(e, r, t) {\n  return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n    writable: !1\n  }), e;\n}\nexport { _createClass as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n    value: t,\n    enumerable: !0,\n    configurable: !0,\n    writable: !0\n  }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar TIMEZONE_UNIT_PRIORITY = 10;\nexport var Setter = /*#__PURE__*/function () {\n  function Setter() {\n    _classCallCheck(this, Setter);\n    _defineProperty(this, \"priority\", void 0);\n    _defineProperty(this, \"subPriority\", 0);\n  }\n  _createClass(Setter, [{\n    key: \"validate\",\n    value: function validate(_utcDate, _options) {\n      return true;\n    }\n  }]);\n  return Setter;\n}();\nexport var ValueSetter = /*#__PURE__*/function (_Setter) {\n  _inherits(ValueSetter, _Setter);\n  var _super = _createSuper(ValueSetter);\n  function ValueSetter(value, validateValue, setValue, priority, subPriority) {\n    var _this;\n    _classCallCheck(this, ValueSetter);\n    _this = _super.call(this);\n    _this.value = value;\n    _this.validateValue = validateValue;\n    _this.setValue = setValue;\n    _this.priority = priority;\n    if (subPriority) {\n      _this.subPriority = subPriority;\n    }\n    return _this;\n  }\n  _createClass(ValueSetter, [{\n    key: \"validate\",\n    value: function validate(utcDate, options) {\n      return this.validateValue(utcDate, this.value, options);\n    }\n  }, {\n    key: \"set\",\n    value: function set(utcDate, flags, options) {\n      return this.setValue(utcDate, flags, this.value, options);\n    }\n  }]);\n  return ValueSetter;\n}(Setter);\nexport var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) {\n  _inherits(DateToSystemTimezoneSetter, _Setter2);\n  var _super2 = _createSuper(DateToSystemTimezoneSetter);\n  function DateToSystemTimezoneSetter() {\n    var _this2;\n    _classCallCheck(this, DateToSystemTimezoneSetter);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this2 = _super2.call.apply(_super2, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this2), \"priority\", TIMEZONE_UNIT_PRIORITY);\n    _defineProperty(_assertThisInitialized(_this2), \"subPriority\", -1);\n    return _this2;\n  }\n  _createClass(DateToSystemTimezoneSetter, [{\n    key: \"set\",\n    value: function set(date, flags) {\n      if (flags.timestampIsSet) {\n        return date;\n      }\n      var convertedDate = new Date(0);\n      convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n      convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());\n      return convertedDate;\n    }\n  }]);\n  return DateToSystemTimezoneSetter;\n}(Setter);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { ValueSetter } from \"./Setter.js\";\nexport var Parser = /*#__PURE__*/function () {\n  function Parser() {\n    _classCallCheck(this, Parser);\n    _defineProperty(this, \"incompatibleTokens\", void 0);\n    _defineProperty(this, \"priority\", void 0);\n    _defineProperty(this, \"subPriority\", void 0);\n  }\n  _createClass(Parser, [{\n    key: \"run\",\n    value: function run(dateString, token, match, options) {\n      var result = this.parse(dateString, token, match, options);\n      if (!result) {\n        return null;\n      }\n      return {\n        setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),\n        rest: result.rest\n      };\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_utcDate, _value, _options) {\n      return true;\n    }\n  }]);\n  return Parser;\n}();","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nexport var EraParser = /*#__PURE__*/function (_Parser) {\n  _inherits(EraParser, _Parser);\n  var _super = _createSuper(EraParser);\n  function EraParser() {\n    var _this;\n    _classCallCheck(this, EraParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 140);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['R', 'u', 't', 'T']);\n    return _this;\n  }\n  _createClass(EraParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        // AD, BC\n        case 'G':\n        case 'GG':\n        case 'GGG':\n          return match.era(dateString, {\n            width: 'abbreviated'\n          }) || match.era(dateString, {\n            width: 'narrow'\n          });\n        // A, B\n        case 'GGGGG':\n          return match.era(dateString, {\n            width: 'narrow'\n          });\n        // Anno Domini, Before Christ\n        case 'GGGG':\n        default:\n          return match.era(dateString, {\n            width: 'wide'\n          }) || match.era(dateString, {\n            width: 'abbreviated'\n          }) || match.era(dateString, {\n            width: 'narrow'\n          });\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, flags, value) {\n      flags.era = value;\n      date.setUTCFullYear(value, 0, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return EraParser;\n}(Parser);","export var numericPatterns = {\n  month: /^(1[0-2]|0?\\d)/,\n  // 0 to 12\n  date: /^(3[0-1]|[0-2]?\\d)/,\n  // 0 to 31\n  dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\n  // 0 to 366\n  week: /^(5[0-3]|[0-4]?\\d)/,\n  // 0 to 53\n  hour23h: /^(2[0-3]|[0-1]?\\d)/,\n  // 0 to 23\n  hour24h: /^(2[0-4]|[0-1]?\\d)/,\n  // 0 to 24\n  hour11h: /^(1[0-1]|0?\\d)/,\n  // 0 to 11\n  hour12h: /^(1[0-2]|0?\\d)/,\n  // 0 to 12\n  minute: /^[0-5]?\\d/,\n  // 0 to 59\n  second: /^[0-5]?\\d/,\n  // 0 to 59\n\n  singleDigit: /^\\d/,\n  // 0 to 9\n  twoDigits: /^\\d{1,2}/,\n  // 0 to 99\n  threeDigits: /^\\d{1,3}/,\n  // 0 to 999\n  fourDigits: /^\\d{1,4}/,\n  // 0 to 9999\n\n  anyDigitsSigned: /^-?\\d+/,\n  singleDigitSigned: /^-?\\d/,\n  // 0 to 9, -0 to -9\n  twoDigitsSigned: /^-?\\d{1,2}/,\n  // 0 to 99, -0 to -99\n  threeDigitsSigned: /^-?\\d{1,3}/,\n  // 0 to 999, -0 to -999\n  fourDigitsSigned: /^-?\\d{1,4}/ // 0 to 9999, -0 to -9999\n};\n\nexport var timezonePatterns = {\n  basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n  basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n  basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n  extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n  extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\n};","import { millisecondsInHour, millisecondsInMinute, millisecondsInSecond } from \"../../constants/index.js\";\nimport { numericPatterns } from \"./constants.js\";\nexport function mapValue(parseFnResult, mapFn) {\n  if (!parseFnResult) {\n    return parseFnResult;\n  }\n  return {\n    value: mapFn(parseFnResult.value),\n    rest: parseFnResult.rest\n  };\n}\nexport function parseNumericPattern(pattern, dateString) {\n  var matchResult = dateString.match(pattern);\n  if (!matchResult) {\n    return null;\n  }\n  return {\n    value: parseInt(matchResult[0], 10),\n    rest: dateString.slice(matchResult[0].length)\n  };\n}\nexport function parseTimezonePattern(pattern, dateString) {\n  var matchResult = dateString.match(pattern);\n  if (!matchResult) {\n    return null;\n  }\n\n  // Input is 'Z'\n  if (matchResult[0] === 'Z') {\n    return {\n      value: 0,\n      rest: dateString.slice(1)\n    };\n  }\n  var sign = matchResult[1] === '+' ? 1 : -1;\n  var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\n  var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\n  var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\n  return {\n    value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),\n    rest: dateString.slice(matchResult[0].length)\n  };\n}\nexport function parseAnyDigitsSigned(dateString) {\n  return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);\n}\nexport function parseNDigits(n, dateString) {\n  switch (n) {\n    case 1:\n      return parseNumericPattern(numericPatterns.singleDigit, dateString);\n    case 2:\n      return parseNumericPattern(numericPatterns.twoDigits, dateString);\n    case 3:\n      return parseNumericPattern(numericPatterns.threeDigits, dateString);\n    case 4:\n      return parseNumericPattern(numericPatterns.fourDigits, dateString);\n    default:\n      return parseNumericPattern(new RegExp('^\\\\d{1,' + n + '}'), dateString);\n  }\n}\nexport function parseNDigitsSigned(n, dateString) {\n  switch (n) {\n    case 1:\n      return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);\n    case 2:\n      return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);\n    case 3:\n      return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);\n    case 4:\n      return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);\n    default:\n      return parseNumericPattern(new RegExp('^-?\\\\d{1,' + n + '}'), dateString);\n  }\n}\nexport function dayPeriodEnumToHours(dayPeriod) {\n  switch (dayPeriod) {\n    case 'morning':\n      return 4;\n    case 'evening':\n      return 17;\n    case 'pm':\n    case 'noon':\n    case 'afternoon':\n      return 12;\n    case 'am':\n    case 'midnight':\n    case 'night':\n    default:\n      return 0;\n  }\n}\nexport function normalizeTwoDigitYear(twoDigitYear, currentYear) {\n  var isCommonEra = currentYear > 0;\n  // Absolute number of the current year:\n  // 1 -> 1 AC\n  // 0 -> 1 BC\n  // -1 -> 2 BC\n  var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\n  var result;\n  if (absCurrentYear <= 50) {\n    result = twoDigitYear || 100;\n  } else {\n    var rangeEnd = absCurrentYear + 50;\n    var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;\n    var isPreviousCentury = twoDigitYear >= rangeEnd % 100;\n    result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\n  }\n  return isCommonEra ? result : 1 - result;\n}\nexport function isLeapYearIndex(year) {\n  return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.js\";\n// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\n// | Year     |     y | yy |   yyy |  yyyy | yyyyy |\n// |----------|-------|----|-------|-------|-------|\n// | AD 1     |     1 | 01 |   001 |  0001 | 00001 |\n// | AD 12    |    12 | 12 |   012 |  0012 | 00012 |\n// | AD 123   |   123 | 23 |   123 |  0123 | 00123 |\n// | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |\n// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\nexport var YearParser = /*#__PURE__*/function (_Parser) {\n  _inherits(YearParser, _Parser);\n  var _super = _createSuper(YearParser);\n  function YearParser() {\n    var _this;\n    _classCallCheck(this, YearParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 130);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(YearParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      var valueCallback = function valueCallback(year) {\n        return {\n          year: year,\n          isTwoDigitYear: token === 'yy'\n        };\n      };\n      switch (token) {\n        case 'y':\n          return mapValue(parseNDigits(4, dateString), valueCallback);\n        case 'yo':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'year'\n          }), valueCallback);\n        default:\n          return mapValue(parseNDigits(token.length, dateString), valueCallback);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value.isTwoDigitYear || value.year > 0;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, flags, value) {\n      var currentYear = date.getUTCFullYear();\n      if (value.isTwoDigitYear) {\n        var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n        date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);\n        date.setUTCHours(0, 0, 0, 0);\n        return date;\n      }\n      var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n      date.setUTCFullYear(year, 0, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return YearParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseNDigits, normalizeTwoDigitYear, mapValue } from \"../utils.js\";\nimport getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport startOfUTCWeek from \"../../../_lib/startOfUTCWeek/index.js\";\n// Local week-numbering year\nexport var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {\n  _inherits(LocalWeekYearParser, _Parser);\n  var _super = _createSuper(LocalWeekYearParser);\n  function LocalWeekYearParser() {\n    var _this;\n    _classCallCheck(this, LocalWeekYearParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 130);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);\n    return _this;\n  }\n  _createClass(LocalWeekYearParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      var valueCallback = function valueCallback(year) {\n        return {\n          year: year,\n          isTwoDigitYear: token === 'YY'\n        };\n      };\n      switch (token) {\n        case 'Y':\n          return mapValue(parseNDigits(4, dateString), valueCallback);\n        case 'Yo':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'year'\n          }), valueCallback);\n        default:\n          return mapValue(parseNDigits(token.length, dateString), valueCallback);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value.isTwoDigitYear || value.year > 0;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, flags, value, options) {\n      var currentYear = getUTCWeekYear(date, options);\n      if (value.isTwoDigitYear) {\n        var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n        date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);\n        date.setUTCHours(0, 0, 0, 0);\n        return startOfUTCWeek(date, options);\n      }\n      var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n      date.setUTCFullYear(year, 0, options.firstWeekContainsDate);\n      date.setUTCHours(0, 0, 0, 0);\n      return startOfUTCWeek(date, options);\n    }\n  }]);\n  return LocalWeekYearParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseNDigitsSigned } from \"../utils.js\";\nimport startOfUTCISOWeek from \"../../../_lib/startOfUTCISOWeek/index.js\"; // ISO week-numbering year\nexport var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ISOWeekYearParser, _Parser);\n  var _super = _createSuper(ISOWeekYearParser);\n  function ISOWeekYearParser() {\n    var _this;\n    _classCallCheck(this, ISOWeekYearParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 130);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(ISOWeekYearParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token) {\n      if (token === 'R') {\n        return parseNDigitsSigned(4, dateString);\n      }\n      return parseNDigitsSigned(token.length, dateString);\n    }\n  }, {\n    key: \"set\",\n    value: function set(_date, _flags, value) {\n      var firstWeekOfYear = new Date(0);\n      firstWeekOfYear.setUTCFullYear(value, 0, 4);\n      firstWeekOfYear.setUTCHours(0, 0, 0, 0);\n      return startOfUTCISOWeek(firstWeekOfYear);\n    }\n  }]);\n  return ISOWeekYearParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseNDigitsSigned } from \"../utils.js\";\nexport var ExtendedYearParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ExtendedYearParser, _Parser);\n  var _super = _createSuper(ExtendedYearParser);\n  function ExtendedYearParser() {\n    var _this;\n    _classCallCheck(this, ExtendedYearParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 130);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(ExtendedYearParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token) {\n      if (token === 'u') {\n        return parseNDigitsSigned(4, dateString);\n      }\n      return parseNDigitsSigned(token.length, dateString);\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCFullYear(value, 0, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return ExtendedYearParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseNDigits } from \"../utils.js\";\nexport var QuarterParser = /*#__PURE__*/function (_Parser) {\n  _inherits(QuarterParser, _Parser);\n  var _super = _createSuper(QuarterParser);\n  function QuarterParser() {\n    var _this;\n    _classCallCheck(this, QuarterParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 120);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(QuarterParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        // 1, 2, 3, 4\n        case 'Q':\n        case 'QQ':\n          // 01, 02, 03, 04\n          return parseNDigits(token.length, dateString);\n        // 1st, 2nd, 3rd, 4th\n        case 'Qo':\n          return match.ordinalNumber(dateString, {\n            unit: 'quarter'\n          });\n        // Q1, Q2, Q3, Q4\n        case 'QQQ':\n          return match.quarter(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.quarter(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n        case 'QQQQQ':\n          return match.quarter(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // 1st quarter, 2nd quarter, ...\n        case 'QQQQ':\n        default:\n          return match.quarter(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.quarter(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.quarter(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 4;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMonth((value - 1) * 3, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return QuarterParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseNDigits } from \"../utils.js\";\nexport var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {\n  _inherits(StandAloneQuarterParser, _Parser);\n  var _super = _createSuper(StandAloneQuarterParser);\n  function StandAloneQuarterParser() {\n    var _this;\n    _classCallCheck(this, StandAloneQuarterParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 120);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(StandAloneQuarterParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        // 1, 2, 3, 4\n        case 'q':\n        case 'qq':\n          // 01, 02, 03, 04\n          return parseNDigits(token.length, dateString);\n        // 1st, 2nd, 3rd, 4th\n        case 'qo':\n          return match.ordinalNumber(dateString, {\n            unit: 'quarter'\n          });\n        // Q1, Q2, Q3, Q4\n        case 'qqq':\n          return match.quarter(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.quarter(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n        case 'qqqqq':\n          return match.quarter(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // 1st quarter, 2nd quarter, ...\n        case 'qqqq':\n        default:\n          return match.quarter(dateString, {\n            width: 'wide',\n            context: 'standalone'\n          }) || match.quarter(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.quarter(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 4;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMonth((value - 1) * 3, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return StandAloneQuarterParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.js\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nexport var MonthParser = /*#__PURE__*/function (_Parser) {\n  _inherits(MonthParser, _Parser);\n  var _super = _createSuper(MonthParser);\n  function MonthParser() {\n    var _this;\n    _classCallCheck(this, MonthParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 110);\n    return _this;\n  }\n  _createClass(MonthParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      var valueCallback = function valueCallback(value) {\n        return value - 1;\n      };\n      switch (token) {\n        // 1, 2, ..., 12\n        case 'M':\n          return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);\n        // 01, 02, ..., 12\n        case 'MM':\n          return mapValue(parseNDigits(2, dateString), valueCallback);\n        // 1st, 2nd, ..., 12th\n        case 'Mo':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'month'\n          }), valueCallback);\n        // Jan, Feb, ..., Dec\n        case 'MMM':\n          return match.month(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.month(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // J, F, ..., D\n        case 'MMMMM':\n          return match.month(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // January, February, ..., December\n        case 'MMMM':\n        default:\n          return match.month(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.month(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.month(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 11;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMonth(value, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return MonthParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits, mapValue } from \"../utils.js\";\nexport var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {\n  _inherits(StandAloneMonthParser, _Parser);\n  var _super = _createSuper(StandAloneMonthParser);\n  function StandAloneMonthParser() {\n    var _this;\n    _classCallCheck(this, StandAloneMonthParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 110);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(StandAloneMonthParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      var valueCallback = function valueCallback(value) {\n        return value - 1;\n      };\n      switch (token) {\n        // 1, 2, ..., 12\n        case 'L':\n          return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);\n        // 01, 02, ..., 12\n        case 'LL':\n          return mapValue(parseNDigits(2, dateString), valueCallback);\n        // 1st, 2nd, ..., 12th\n        case 'Lo':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'month'\n          }), valueCallback);\n        // Jan, Feb, ..., Dec\n        case 'LLL':\n          return match.month(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.month(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // J, F, ..., D\n        case 'LLLLL':\n          return match.month(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // January, February, ..., December\n        case 'LLLL':\n        default:\n          return match.month(dateString, {\n            width: 'wide',\n            context: 'standalone'\n          }) || match.month(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.month(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 11;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMonth(value, 1);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return StandAloneMonthParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nimport setUTCWeek from \"../../../_lib/setUTCWeek/index.js\";\nimport startOfUTCWeek from \"../../../_lib/startOfUTCWeek/index.js\"; // Local week of year\nexport var LocalWeekParser = /*#__PURE__*/function (_Parser) {\n  _inherits(LocalWeekParser, _Parser);\n  var _super = _createSuper(LocalWeekParser);\n  function LocalWeekParser() {\n    var _this;\n    _classCallCheck(this, LocalWeekParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 100);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);\n    return _this;\n  }\n  _createClass(LocalWeekParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'w':\n          return parseNumericPattern(numericPatterns.week, dateString);\n        case 'wo':\n          return match.ordinalNumber(dateString, {\n            unit: 'week'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 53;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value, options) {\n      return startOfUTCWeek(setUTCWeek(date, value, options), options);\n    }\n  }]);\n  return LocalWeekParser;\n}(Parser);","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCWeek from \"../getUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n  requiredArgs(2, arguments);\n  var date = toDate(dirtyDate);\n  var week = toInteger(dirtyWeek);\n  var diff = getUTCWeek(date, options) - week;\n  date.setUTCDate(date.getUTCDate() - diff * 7);\n  return date;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nimport setUTCISOWeek from \"../../../_lib/setUTCISOWeek/index.js\";\nimport startOfUTCISOWeek from \"../../../_lib/startOfUTCISOWeek/index.js\"; // ISO week of year\nexport var ISOWeekParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ISOWeekParser, _Parser);\n  var _super = _createSuper(ISOWeekParser);\n  function ISOWeekParser() {\n    var _this;\n    _classCallCheck(this, ISOWeekParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 100);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(ISOWeekParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'I':\n          return parseNumericPattern(numericPatterns.week, dateString);\n        case 'Io':\n          return match.ordinalNumber(dateString, {\n            unit: 'week'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 53;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      return startOfUTCISOWeek(setUTCISOWeek(date, value));\n    }\n  }]);\n  return ISOWeekParser;\n}(Parser);","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCISOWeek from \"../getUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nexport default function setUTCISOWeek(dirtyDate, dirtyISOWeek) {\n  requiredArgs(2, arguments);\n  var date = toDate(dirtyDate);\n  var isoWeek = toInteger(dirtyISOWeek);\n  var diff = getUTCISOWeek(date) - isoWeek;\n  date.setUTCDate(date.getUTCDate() - diff * 7);\n  return date;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { isLeapYearIndex, parseNDigits, parseNumericPattern } from \"../utils.js\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n// Day of the month\nexport var DateParser = /*#__PURE__*/function (_Parser) {\n  _inherits(DateParser, _Parser);\n  var _super = _createSuper(DateParser);\n  function DateParser() {\n    var _this;\n    _classCallCheck(this, DateParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"subPriority\", 1);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(DateParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'd':\n          return parseNumericPattern(numericPatterns.date, dateString);\n        case 'do':\n          return match.ordinalNumber(dateString, {\n            unit: 'date'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(date, value) {\n      var year = date.getUTCFullYear();\n      var isLeapYear = isLeapYearIndex(year);\n      var month = date.getUTCMonth();\n      if (isLeapYear) {\n        return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\n      } else {\n        return value >= 1 && value <= DAYS_IN_MONTH[month];\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCDate(value);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return DateParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits, isLeapYearIndex } from \"../utils.js\";\nexport var DayOfYearParser = /*#__PURE__*/function (_Parser) {\n  _inherits(DayOfYearParser, _Parser);\n  var _super = _createSuper(DayOfYearParser);\n  function DayOfYearParser() {\n    var _this;\n    _classCallCheck(this, DayOfYearParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"subpriority\", 1);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(DayOfYearParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'D':\n        case 'DD':\n          return parseNumericPattern(numericPatterns.dayOfYear, dateString);\n        case 'Do':\n          return match.ordinalNumber(dateString, {\n            unit: 'date'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(date, value) {\n      var year = date.getUTCFullYear();\n      var isLeapYear = isLeapYearIndex(year);\n      if (isLeapYear) {\n        return value >= 1 && value <= 366;\n      } else {\n        return value >= 1 && value <= 365;\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMonth(0, value);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return DayOfYearParser;\n}(Parser);","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nimport { getDefaultOptions } from \"../defaultOptions/index.js\";\nexport default function setUTCDay(dirtyDate, dirtyDay, options) {\n  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(2, arguments);\n  var defaultOptions = getDefaultOptions();\n  var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  var date = toDate(dirtyDate);\n  var day = toInteger(dirtyDay);\n  var currentDay = date.getUTCDay();\n  var remainder = day % 7;\n  var dayIndex = (remainder + 7) % 7;\n  var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n  date.setUTCDate(date.getUTCDate() + diff);\n  return date;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Day of week\nexport var DayParser = /*#__PURE__*/function (_Parser) {\n  _inherits(DayParser, _Parser);\n  var _super = _createSuper(DayParser);\n  function DayParser() {\n    var _this;\n    _classCallCheck(this, DayParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['D', 'i', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(DayParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        // Tue\n        case 'E':\n        case 'EE':\n        case 'EEE':\n          return match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // T\n        case 'EEEEE':\n          return match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // Tu\n        case 'EEEEEE':\n          return match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // Tuesday\n        case 'EEEE':\n        default:\n          return match.day(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 6;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value, options) {\n      date = setUTCDay(date, value, options);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return DayParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { mapValue, parseNDigits } from \"../utils.js\";\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Local day of week\nexport var LocalDayParser = /*#__PURE__*/function (_Parser) {\n  _inherits(LocalDayParser, _Parser);\n  var _super = _createSuper(LocalDayParser);\n  function LocalDayParser() {\n    var _this;\n    _classCallCheck(this, LocalDayParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(LocalDayParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match, options) {\n      var valueCallback = function valueCallback(value) {\n        var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n        return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n      };\n      switch (token) {\n        // 3\n        case 'e':\n        case 'ee':\n          // 03\n          return mapValue(parseNDigits(token.length, dateString), valueCallback);\n        // 3rd\n        case 'eo':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'day'\n          }), valueCallback);\n        // Tue\n        case 'eee':\n          return match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // T\n        case 'eeeee':\n          return match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // Tu\n        case 'eeeeee':\n          return match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        // Tuesday\n        case 'eeee':\n        default:\n          return match.day(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 6;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value, options) {\n      date = setUTCDay(date, value, options);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return LocalDayParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { mapValue, parseNDigits } from \"../utils.js\";\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\"; // Stand-alone local day of week\nexport var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {\n  _inherits(StandAloneLocalDayParser, _Parser);\n  var _super = _createSuper(StandAloneLocalDayParser);\n  function StandAloneLocalDayParser() {\n    var _this;\n    _classCallCheck(this, StandAloneLocalDayParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);\n    return _this;\n  }\n  _createClass(StandAloneLocalDayParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match, options) {\n      var valueCallback = function valueCallback(value) {\n        var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n        return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n      };\n      switch (token) {\n        // 3\n        case 'c':\n        case 'cc':\n          // 03\n          return mapValue(parseNDigits(token.length, dateString), valueCallback);\n        // 3rd\n        case 'co':\n          return mapValue(match.ordinalNumber(dateString, {\n            unit: 'day'\n          }), valueCallback);\n        // Tue\n        case 'ccc':\n          return match.day(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // T\n        case 'ccccc':\n          return match.day(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // Tu\n        case 'cccccc':\n          return match.day(dateString, {\n            width: 'short',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n        // Tuesday\n        case 'cccc':\n        default:\n          return match.day(dateString, {\n            width: 'wide',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'abbreviated',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'standalone'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'standalone'\n          });\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 6;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value, options) {\n      date = setUTCDay(date, value, options);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return StandAloneLocalDayParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { mapValue, parseNDigits } from \"../utils.js\";\nimport setUTCISODay from \"../../../_lib/setUTCISODay/index.js\"; // ISO day of week\nexport var ISODayParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ISODayParser, _Parser);\n  var _super = _createSuper(ISODayParser);\n  function ISODayParser() {\n    var _this;\n    _classCallCheck(this, ISODayParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 90);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);\n    return _this;\n  }\n  _createClass(ISODayParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      var valueCallback = function valueCallback(value) {\n        if (value === 0) {\n          return 7;\n        }\n        return value;\n      };\n      switch (token) {\n        // 2\n        case 'i':\n        case 'ii':\n          // 02\n          return parseNDigits(token.length, dateString);\n        // 2nd\n        case 'io':\n          return match.ordinalNumber(dateString, {\n            unit: 'day'\n          });\n        // Tue\n        case 'iii':\n          return mapValue(match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          }), valueCallback);\n        // T\n        case 'iiiii':\n          return mapValue(match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          }), valueCallback);\n        // Tu\n        case 'iiiiii':\n          return mapValue(match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          }), valueCallback);\n        // Tuesday\n        case 'iiii':\n        default:\n          return mapValue(match.day(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'short',\n            context: 'formatting'\n          }) || match.day(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          }), valueCallback);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 7;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date = setUTCISODay(date, value);\n      date.setUTCHours(0, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return ISODayParser;\n}(Parser);","import toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\";\nimport toInteger from \"../toInteger/index.js\";\nexport default function setUTCISODay(dirtyDate, dirtyDay) {\n  requiredArgs(2, arguments);\n  var day = toInteger(dirtyDay);\n  if (day % 7 === 0) {\n    day = day - 7;\n  }\n  var weekStartsOn = 1;\n  var date = toDate(dirtyDate);\n  var currentDay = date.getUTCDay();\n  var remainder = day % 7;\n  var dayIndex = (remainder + 7) % 7;\n  var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n  date.setUTCDate(date.getUTCDate() + diff);\n  return date;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { dayPeriodEnumToHours } from \"../utils.js\";\nexport var AMPMParser = /*#__PURE__*/function (_Parser) {\n  _inherits(AMPMParser, _Parser);\n  var _super = _createSuper(AMPMParser);\n  function AMPMParser() {\n    var _this;\n    _classCallCheck(this, AMPMParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 80);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['b', 'B', 'H', 'k', 't', 'T']);\n    return _this;\n  }\n  _createClass(AMPMParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'a':\n        case 'aa':\n        case 'aaa':\n          return match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'aaaaa':\n          return match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'aaaa':\n        default:\n          return match.dayPeriod(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n      return date;\n    }\n  }]);\n  return AMPMParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { dayPeriodEnumToHours } from \"../utils.js\";\nexport var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {\n  _inherits(AMPMMidnightParser, _Parser);\n  var _super = _createSuper(AMPMMidnightParser);\n  function AMPMMidnightParser() {\n    var _this;\n    _classCallCheck(this, AMPMMidnightParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 80);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['a', 'B', 'H', 'k', 't', 'T']);\n    return _this;\n  }\n  _createClass(AMPMMidnightParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'b':\n        case 'bb':\n        case 'bbb':\n          return match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'bbbbb':\n          return match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'bbbb':\n        default:\n          return match.dayPeriod(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n      return date;\n    }\n  }]);\n  return AMPMMidnightParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { dayPeriodEnumToHours } from \"../utils.js\"; // in the morning, in the afternoon, in the evening, at night\nexport var DayPeriodParser = /*#__PURE__*/function (_Parser) {\n  _inherits(DayPeriodParser, _Parser);\n  var _super = _createSuper(DayPeriodParser);\n  function DayPeriodParser() {\n    var _this;\n    _classCallCheck(this, DayPeriodParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 80);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['a', 'b', 't', 'T']);\n    return _this;\n  }\n  _createClass(DayPeriodParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'B':\n        case 'BB':\n        case 'BBB':\n          return match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'BBBBB':\n          return match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n        case 'BBBB':\n        default:\n          return match.dayPeriod(dateString, {\n            width: 'wide',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'abbreviated',\n            context: 'formatting'\n          }) || match.dayPeriod(dateString, {\n            width: 'narrow',\n            context: 'formatting'\n          });\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n      return date;\n    }\n  }]);\n  return DayPeriodParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var Hour1to12Parser = /*#__PURE__*/function (_Parser) {\n  _inherits(Hour1to12Parser, _Parser);\n  var _super = _createSuper(Hour1to12Parser);\n  function Hour1to12Parser() {\n    var _this;\n    _classCallCheck(this, Hour1to12Parser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 70);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['H', 'K', 'k', 't', 'T']);\n    return _this;\n  }\n  _createClass(Hour1to12Parser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'h':\n          return parseNumericPattern(numericPatterns.hour12h, dateString);\n        case 'ho':\n          return match.ordinalNumber(dateString, {\n            unit: 'hour'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 12;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      var isPM = date.getUTCHours() >= 12;\n      if (isPM && value < 12) {\n        date.setUTCHours(value + 12, 0, 0, 0);\n      } else if (!isPM && value === 12) {\n        date.setUTCHours(0, 0, 0, 0);\n      } else {\n        date.setUTCHours(value, 0, 0, 0);\n      }\n      return date;\n    }\n  }]);\n  return Hour1to12Parser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var Hour0to23Parser = /*#__PURE__*/function (_Parser) {\n  _inherits(Hour0to23Parser, _Parser);\n  var _super = _createSuper(Hour0to23Parser);\n  function Hour0to23Parser() {\n    var _this;\n    _classCallCheck(this, Hour0to23Parser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 70);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['a', 'b', 'h', 'K', 'k', 't', 'T']);\n    return _this;\n  }\n  _createClass(Hour0to23Parser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'H':\n          return parseNumericPattern(numericPatterns.hour23h, dateString);\n        case 'Ho':\n          return match.ordinalNumber(dateString, {\n            unit: 'hour'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 23;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCHours(value, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return Hour0to23Parser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var Hour0To11Parser = /*#__PURE__*/function (_Parser) {\n  _inherits(Hour0To11Parser, _Parser);\n  var _super = _createSuper(Hour0To11Parser);\n  function Hour0To11Parser() {\n    var _this;\n    _classCallCheck(this, Hour0To11Parser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 70);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['h', 'H', 'k', 't', 'T']);\n    return _this;\n  }\n  _createClass(Hour0To11Parser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'K':\n          return parseNumericPattern(numericPatterns.hour11h, dateString);\n        case 'Ko':\n          return match.ordinalNumber(dateString, {\n            unit: 'hour'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 11;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      var isPM = date.getUTCHours() >= 12;\n      if (isPM && value < 12) {\n        date.setUTCHours(value + 12, 0, 0, 0);\n      } else {\n        date.setUTCHours(value, 0, 0, 0);\n      }\n      return date;\n    }\n  }]);\n  return Hour0To11Parser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var Hour1To24Parser = /*#__PURE__*/function (_Parser) {\n  _inherits(Hour1To24Parser, _Parser);\n  var _super = _createSuper(Hour1To24Parser);\n  function Hour1To24Parser() {\n    var _this;\n    _classCallCheck(this, Hour1To24Parser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 70);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['a', 'b', 'h', 'H', 'K', 't', 'T']);\n    return _this;\n  }\n  _createClass(Hour1To24Parser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'k':\n          return parseNumericPattern(numericPatterns.hour24h, dateString);\n        case 'ko':\n          return match.ordinalNumber(dateString, {\n            unit: 'hour'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 1 && value <= 24;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      var hours = value <= 24 ? value % 24 : value;\n      date.setUTCHours(hours, 0, 0, 0);\n      return date;\n    }\n  }]);\n  return Hour1To24Parser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var MinuteParser = /*#__PURE__*/function (_Parser) {\n  _inherits(MinuteParser, _Parser);\n  var _super = _createSuper(MinuteParser);\n  function MinuteParser() {\n    var _this;\n    _classCallCheck(this, MinuteParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 60);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['t', 'T']);\n    return _this;\n  }\n  _createClass(MinuteParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 'm':\n          return parseNumericPattern(numericPatterns.minute, dateString);\n        case 'mo':\n          return match.ordinalNumber(dateString, {\n            unit: 'minute'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 59;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMinutes(value, 0, 0);\n      return date;\n    }\n  }]);\n  return MinuteParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { parseNumericPattern, parseNDigits } from \"../utils.js\";\nexport var SecondParser = /*#__PURE__*/function (_Parser) {\n  _inherits(SecondParser, _Parser);\n  var _super = _createSuper(SecondParser);\n  function SecondParser() {\n    var _this;\n    _classCallCheck(this, SecondParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 50);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['t', 'T']);\n    return _this;\n  }\n  _createClass(SecondParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token, match) {\n      switch (token) {\n        case 's':\n          return parseNumericPattern(numericPatterns.second, dateString);\n        case 'so':\n          return match.ordinalNumber(dateString, {\n            unit: 'second'\n          });\n        default:\n          return parseNDigits(token.length, dateString);\n      }\n    }\n  }, {\n    key: \"validate\",\n    value: function validate(_date, value) {\n      return value >= 0 && value <= 59;\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCSeconds(value, 0);\n      return date;\n    }\n  }]);\n  return SecondParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { mapValue, parseNDigits } from \"../utils.js\";\nexport var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {\n  _inherits(FractionOfSecondParser, _Parser);\n  var _super = _createSuper(FractionOfSecondParser);\n  function FractionOfSecondParser() {\n    var _this;\n    _classCallCheck(this, FractionOfSecondParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 30);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['t', 'T']);\n    return _this;\n  }\n  _createClass(FractionOfSecondParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token) {\n      var valueCallback = function valueCallback(value) {\n        return Math.floor(value * Math.pow(10, -token.length + 3));\n      };\n      return mapValue(parseNDigits(token.length, dateString), valueCallback);\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, _flags, value) {\n      date.setUTCMilliseconds(value);\n      return date;\n    }\n  }]);\n  return FractionOfSecondParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { timezonePatterns } from \"../constants.js\";\nimport { parseTimezonePattern } from \"../utils.js\"; // Timezone (ISO-8601. +00:00 is `'Z'`)\nexport var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ISOTimezoneWithZParser, _Parser);\n  var _super = _createSuper(ISOTimezoneWithZParser);\n  function ISOTimezoneWithZParser() {\n    var _this;\n    _classCallCheck(this, ISOTimezoneWithZParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 10);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['t', 'T', 'x']);\n    return _this;\n  }\n  _createClass(ISOTimezoneWithZParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token) {\n      switch (token) {\n        case 'X':\n          return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);\n        case 'XX':\n          return parseTimezonePattern(timezonePatterns.basic, dateString);\n        case 'XXXX':\n          return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);\n        case 'XXXXX':\n          return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);\n        case 'XXX':\n        default:\n          return parseTimezonePattern(timezonePatterns.extended, dateString);\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, flags, value) {\n      if (flags.timestampIsSet) {\n        return date;\n      }\n      return new Date(date.getTime() - value);\n    }\n  }]);\n  return ISOTimezoneWithZParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { timezonePatterns } from \"../constants.js\";\nimport { parseTimezonePattern } from \"../utils.js\"; // Timezone (ISO-8601)\nexport var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {\n  _inherits(ISOTimezoneParser, _Parser);\n  var _super = _createSuper(ISOTimezoneParser);\n  function ISOTimezoneParser() {\n    var _this;\n    _classCallCheck(this, ISOTimezoneParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 10);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", ['t', 'T', 'X']);\n    return _this;\n  }\n  _createClass(ISOTimezoneParser, [{\n    key: \"parse\",\n    value: function parse(dateString, token) {\n      switch (token) {\n        case 'x':\n          return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);\n        case 'xx':\n          return parseTimezonePattern(timezonePatterns.basic, dateString);\n        case 'xxxx':\n          return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);\n        case 'xxxxx':\n          return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);\n        case 'xxx':\n        default:\n          return parseTimezonePattern(timezonePatterns.extended, dateString);\n      }\n    }\n  }, {\n    key: \"set\",\n    value: function set(date, flags, value) {\n      if (flags.timestampIsSet) {\n        return date;\n      }\n      return new Date(date.getTime() - value);\n    }\n  }]);\n  return ISOTimezoneParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseAnyDigitsSigned } from \"../utils.js\";\nexport var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {\n  _inherits(TimestampSecondsParser, _Parser);\n  var _super = _createSuper(TimestampSecondsParser);\n  function TimestampSecondsParser() {\n    var _this;\n    _classCallCheck(this, TimestampSecondsParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 40);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", '*');\n    return _this;\n  }\n  _createClass(TimestampSecondsParser, [{\n    key: \"parse\",\n    value: function parse(dateString) {\n      return parseAnyDigitsSigned(dateString);\n    }\n  }, {\n    key: \"set\",\n    value: function set(_date, _flags, value) {\n      return [new Date(value * 1000), {\n        timestampIsSet: true\n      }];\n    }\n  }]);\n  return TimestampSecondsParser;\n}(Parser);","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Parser } from \"../Parser.js\";\nimport { parseAnyDigitsSigned } from \"../utils.js\";\nexport var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {\n  _inherits(TimestampMillisecondsParser, _Parser);\n  var _super = _createSuper(TimestampMillisecondsParser);\n  function TimestampMillisecondsParser() {\n    var _this;\n    _classCallCheck(this, TimestampMillisecondsParser);\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    _this = _super.call.apply(_super, [this].concat(args));\n    _defineProperty(_assertThisInitialized(_this), \"priority\", 20);\n    _defineProperty(_assertThisInitialized(_this), \"incompatibleTokens\", '*');\n    return _this;\n  }\n  _createClass(TimestampMillisecondsParser, [{\n    key: \"parse\",\n    value: function parse(dateString) {\n      return parseAnyDigitsSigned(dateString);\n    }\n  }, {\n    key: \"set\",\n    value: function set(_date, _flags, value) {\n      return [new Date(value), {\n        timestampIsSet: true\n      }];\n    }\n  }]);\n  return TimestampMillisecondsParser;\n}(Parser);","import { EraParser } from \"./EraParser.js\";\nimport { YearParser } from \"./YearParser.js\";\nimport { LocalWeekYearParser } from \"./LocalWeekYearParser.js\";\nimport { ISOWeekYearParser } from \"./ISOWeekYearParser.js\";\nimport { ExtendedYearParser } from \"./ExtendedYearParser.js\";\nimport { QuarterParser } from \"./QuarterParser.js\";\nimport { StandAloneQuarterParser } from \"./StandAloneQuarterParser.js\";\nimport { MonthParser } from \"./MonthParser.js\";\nimport { StandAloneMonthParser } from \"./StandAloneMonthParser.js\";\nimport { LocalWeekParser } from \"./LocalWeekParser.js\";\nimport { ISOWeekParser } from \"./ISOWeekParser.js\";\nimport { DateParser } from \"./DateParser.js\";\nimport { DayOfYearParser } from \"./DayOfYearParser.js\";\nimport { DayParser } from \"./DayParser.js\";\nimport { LocalDayParser } from \"./LocalDayParser.js\";\nimport { StandAloneLocalDayParser } from \"./StandAloneLocalDayParser.js\";\nimport { ISODayParser } from \"./ISODayParser.js\";\nimport { AMPMParser } from \"./AMPMParser.js\";\nimport { AMPMMidnightParser } from \"./AMPMMidnightParser.js\";\nimport { DayPeriodParser } from \"./DayPeriodParser.js\";\nimport { Hour1to12Parser } from \"./Hour1to12Parser.js\";\nimport { Hour0to23Parser } from \"./Hour0to23Parser.js\";\nimport { Hour0To11Parser } from \"./Hour0To11Parser.js\";\nimport { Hour1To24Parser } from \"./Hour1To24Parser.js\";\nimport { MinuteParser } from \"./MinuteParser.js\";\nimport { SecondParser } from \"./SecondParser.js\";\nimport { FractionOfSecondParser } from \"./FractionOfSecondParser.js\";\nimport { ISOTimezoneWithZParser } from \"./ISOTimezoneWithZParser.js\";\nimport { ISOTimezoneParser } from \"./ISOTimezoneParser.js\";\nimport { TimestampSecondsParser } from \"./TimestampSecondsParser.js\";\nimport { TimestampMillisecondsParser } from \"./TimestampMillisecondsParser.js\";\n/*\n * |     | Unit                           |     | Unit                           |\n * |-----|--------------------------------|-----|--------------------------------|\n * |  a  | AM, PM                         |  A* | Milliseconds in day            |\n * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |\n * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |\n * |  d  | Day of month                   |  D  | Day of year                    |\n * |  e  | Local day of week              |  E  | Day of week                    |\n * |  f  |                                |  F* | Day of week in month           |\n * |  g* | Modified Julian day            |  G  | Era                            |\n * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |\n * |  i! | ISO day of week                |  I! | ISO week of year               |\n * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |\n * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |\n * |  l* | (deprecated)                   |  L  | Stand-alone month              |\n * |  m  | Minute                         |  M  | Month                          |\n * |  n  |                                |  N  |                                |\n * |  o! | Ordinal number modifier        |  O* | Timezone (GMT)                 |\n * |  p  |                                |  P  |                                |\n * |  q  | Stand-alone quarter            |  Q  | Quarter                        |\n * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |\n * |  s  | Second                         |  S  | Fraction of second             |\n * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |\n * |  u  | Extended year                  |  U* | Cyclic year                    |\n * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |\n * |  w  | Local week of year             |  W* | Week of month                  |\n * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |\n * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |\n * |  z* | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n *   i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n *   `R` is supposed to be used in conjunction with `I` and `i`\n *   for universal ISO week-numbering date, whereas\n *   `Y` is supposed to be used in conjunction with `w` and `e`\n *   for week-numbering date specific to the locale.\n */\nexport var parsers = {\n  G: new EraParser(),\n  y: new YearParser(),\n  Y: new LocalWeekYearParser(),\n  R: new ISOWeekYearParser(),\n  u: new ExtendedYearParser(),\n  Q: new QuarterParser(),\n  q: new StandAloneQuarterParser(),\n  M: new MonthParser(),\n  L: new StandAloneMonthParser(),\n  w: new LocalWeekParser(),\n  I: new ISOWeekParser(),\n  d: new DateParser(),\n  D: new DayOfYearParser(),\n  E: new DayParser(),\n  e: new LocalDayParser(),\n  c: new StandAloneLocalDayParser(),\n  i: new ISODayParser(),\n  a: new AMPMParser(),\n  b: new AMPMMidnightParser(),\n  B: new DayPeriodParser(),\n  h: new Hour1to12Parser(),\n  H: new Hour0to23Parser(),\n  K: new Hour0To11Parser(),\n  k: new Hour1To24Parser(),\n  m: new MinuteParser(),\n  s: new SecondParser(),\n  S: new FractionOfSecondParser(),\n  X: new ISOTimezoneWithZParser(),\n  x: new ISOTimezoneParser(),\n  t: new TimestampSecondsParser(),\n  T: new TimestampMillisecondsParser()\n};","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _createForOfIteratorHelper from \"@babel/runtime/helpers/esm/createForOfIteratorHelper\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { DateToSystemTimezoneSetter } from \"./_lib/Setter.js\";\nimport { parsers } from \"./_lib/parsers/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\"; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n//   (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n//   except a single quote symbol, which ends the sequence.\n//   Two quote characters do not end the sequence.\n//   If there is no matching single quote\n//   then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar notWhitespaceRegExp = /\\S/;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit                            |Prior| Pattern | Result examples                   | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era                             | 140 | G..GGG  | AD, BC                            |       |\n * |                                 |     | GGGG    | Anno Domini, Before Christ        | 2     |\n * |                                 |     | GGGGG   | A, B                              |       |\n * | Calendar year                   | 130 | y       | 44, 1, 1900, 2017, 9999           | 4     |\n * |                                 |     | yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |\n * |                                 |     | yy      | 44, 01, 00, 17                    | 4     |\n * |                                 |     | yyy     | 044, 001, 123, 999                | 4     |\n * |                                 |     | yyyy    | 0044, 0001, 1900, 2017            | 4     |\n * |                                 |     | yyyyy   | ...                               | 2,4   |\n * | Local week-numbering year       | 130 | Y       | 44, 1, 1900, 2017, 9000           | 4     |\n * |                                 |     | Yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |\n * |                                 |     | YY      | 44, 01, 00, 17                    | 4,6   |\n * |                                 |     | YYY     | 044, 001, 123, 999                | 4     |\n * |                                 |     | YYYY    | 0044, 0001, 1900, 2017            | 4,6   |\n * |                                 |     | YYYYY   | ...                               | 2,4   |\n * | ISO week-numbering year         | 130 | R       | -43, 1, 1900, 2017, 9999, -9999   | 4,5   |\n * |                                 |     | RR      | -43, 01, 00, 17                   | 4,5   |\n * |                                 |     | RRR     | -043, 001, 123, 999, -999         | 4,5   |\n * |                                 |     | RRRR    | -0043, 0001, 2017, 9999, -9999    | 4,5   |\n * |                                 |     | RRRRR   | ...                               | 2,4,5 |\n * | Extended year                   | 130 | u       | -43, 1, 1900, 2017, 9999, -999    | 4     |\n * |                                 |     | uu      | -43, 01, 99, -99                  | 4     |\n * |                                 |     | uuu     | -043, 001, 123, 999, -999         | 4     |\n * |                                 |     | uuuu    | -0043, 0001, 2017, 9999, -9999    | 4     |\n * |                                 |     | uuuuu   | ...                               | 2,4   |\n * | Quarter (formatting)            | 120 | Q       | 1, 2, 3, 4                        |       |\n * |                                 |     | Qo      | 1st, 2nd, 3rd, 4th                | 5     |\n * |                                 |     | QQ      | 01, 02, 03, 04                    |       |\n * |                                 |     | QQQ     | Q1, Q2, Q3, Q4                    |       |\n * |                                 |     | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 |     | QQQQQ   | 1, 2, 3, 4                        | 4     |\n * | Quarter (stand-alone)           | 120 | q       | 1, 2, 3, 4                        |       |\n * |                                 |     | qo      | 1st, 2nd, 3rd, 4th                | 5     |\n * |                                 |     | qq      | 01, 02, 03, 04                    |       |\n * |                                 |     | qqq     | Q1, Q2, Q3, Q4                    |       |\n * |                                 |     | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |\n * |                                 |     | qqqqq   | 1, 2, 3, 4                        | 3     |\n * | Month (formatting)              | 110 | M       | 1, 2, ..., 12                     |       |\n * |                                 |     | Mo      | 1st, 2nd, ..., 12th               | 5     |\n * |                                 |     | MM      | 01, 02, ..., 12                   |       |\n * |                                 |     | MMM     | Jan, Feb, ..., Dec                |       |\n * |                                 |     | MMMM    | January, February, ..., December  | 2     |\n * |                                 |     | MMMMM   | J, F, ..., D                      |       |\n * | Month (stand-alone)             | 110 | L       | 1, 2, ..., 12                     |       |\n * |                                 |     | Lo      | 1st, 2nd, ..., 12th               | 5     |\n * |                                 |     | LL      | 01, 02, ..., 12                   |       |\n * |                                 |     | LLL     | Jan, Feb, ..., Dec                |       |\n * |                                 |     | LLLL    | January, February, ..., December  | 2     |\n * |                                 |     | LLLLL   | J, F, ..., D                      |       |\n * | Local week of year              | 100 | w       | 1, 2, ..., 53                     |       |\n * |                                 |     | wo      | 1st, 2nd, ..., 53th               | 5     |\n * |                                 |     | ww      | 01, 02, ..., 53                   |       |\n * | ISO week of year                | 100 | I       | 1, 2, ..., 53                     | 5     |\n * |                                 |     | Io      | 1st, 2nd, ..., 53th               | 5     |\n * |                                 |     | II      | 01, 02, ..., 53                   | 5     |\n * | Day of month                    |  90 | d       | 1, 2, ..., 31                     |       |\n * |                                 |     | do      | 1st, 2nd, ..., 31st               | 5     |\n * |                                 |     | dd      | 01, 02, ..., 31                   |       |\n * | Day of year                     |  90 | D       | 1, 2, ..., 365, 366               | 7     |\n * |                                 |     | Do      | 1st, 2nd, ..., 365th, 366th       | 5     |\n * |                                 |     | DD      | 01, 02, ..., 365, 366             | 7     |\n * |                                 |     | DDD     | 001, 002, ..., 365, 366           |       |\n * |                                 |     | DDDD    | ...                               | 2     |\n * | Day of week (formatting)        |  90 | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 |     | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 |     | EEEEE   | M, T, W, T, F, S, S               |       |\n * |                                 |     | EEEEEE  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | ISO day of week (formatting)    |  90 | i       | 1, 2, 3, ..., 7                   | 5     |\n * |                                 |     | io      | 1st, 2nd, ..., 7th                | 5     |\n * |                                 |     | ii      | 01, 02, ..., 07                   | 5     |\n * |                                 |     | iii     | Mon, Tue, Wed, ..., Sun           | 5     |\n * |                                 |     | iiii    | Monday, Tuesday, ..., Sunday      | 2,5   |\n * |                                 |     | iiiii   | M, T, W, T, F, S, S               | 5     |\n * |                                 |     | iiiiii  | Mo, Tu, We, Th, Fr, Sa, Su        | 5     |\n * | Local day of week (formatting)  |  90 | e       | 2, 3, 4, ..., 1                   |       |\n * |                                 |     | eo      | 2nd, 3rd, ..., 1st                | 5     |\n * |                                 |     | ee      | 02, 03, ..., 01                   |       |\n * |                                 |     | eee     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 |     | eeee    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 |     | eeeee   | M, T, W, T, F, S, S               |       |\n * |                                 |     | eeeeee  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | Local day of week (stand-alone) |  90 | c       | 2, 3, 4, ..., 1                   |       |\n * |                                 |     | co      | 2nd, 3rd, ..., 1st                | 5     |\n * |                                 |     | cc      | 02, 03, ..., 01                   |       |\n * |                                 |     | ccc     | Mon, Tue, Wed, ..., Sun           |       |\n * |                                 |     | cccc    | Monday, Tuesday, ..., Sunday      | 2     |\n * |                                 |     | ccccc   | M, T, W, T, F, S, S               |       |\n * |                                 |     | cccccc  | Mo, Tu, We, Th, Fr, Sa, Su        |       |\n * | AM, PM                          |  80 | a..aaa  | AM, PM                            |       |\n * |                                 |     | aaaa    | a.m., p.m.                        | 2     |\n * |                                 |     | aaaaa   | a, p                              |       |\n * | AM, PM, noon, midnight          |  80 | b..bbb  | AM, PM, noon, midnight            |       |\n * |                                 |     | bbbb    | a.m., p.m., noon, midnight        | 2     |\n * |                                 |     | bbbbb   | a, p, n, mi                       |       |\n * | Flexible day period             |  80 | B..BBB  | at night, in the morning, ...     |       |\n * |                                 |     | BBBB    | at night, in the morning, ...     | 2     |\n * |                                 |     | BBBBB   | at night, in the morning, ...     |       |\n * | Hour [1-12]                     |  70 | h       | 1, 2, ..., 11, 12                 |       |\n * |                                 |     | ho      | 1st, 2nd, ..., 11th, 12th         | 5     |\n * |                                 |     | hh      | 01, 02, ..., 11, 12               |       |\n * | Hour [0-23]                     |  70 | H       | 0, 1, 2, ..., 23                  |       |\n * |                                 |     | Ho      | 0th, 1st, 2nd, ..., 23rd          | 5     |\n * |                                 |     | HH      | 00, 01, 02, ..., 23               |       |\n * | Hour [0-11]                     |  70 | K       | 1, 2, ..., 11, 0                  |       |\n * |                                 |     | Ko      | 1st, 2nd, ..., 11th, 0th          | 5     |\n * |                                 |     | KK      | 01, 02, ..., 11, 00               |       |\n * | Hour [1-24]                     |  70 | k       | 24, 1, 2, ..., 23                 |       |\n * |                                 |     | ko      | 24th, 1st, 2nd, ..., 23rd         | 5     |\n * |                                 |     | kk      | 24, 01, 02, ..., 23               |       |\n * | Minute                          |  60 | m       | 0, 1, ..., 59                     |       |\n * |                                 |     | mo      | 0th, 1st, ..., 59th               | 5     |\n * |                                 |     | mm      | 00, 01, ..., 59                   |       |\n * | Second                          |  50 | s       | 0, 1, ..., 59                     |       |\n * |                                 |     | so      | 0th, 1st, ..., 59th               | 5     |\n * |                                 |     | ss      | 00, 01, ..., 59                   |       |\n * | Seconds timestamp               |  40 | t       | 512969520                         |       |\n * |                                 |     | tt      | ...                               | 2     |\n * | Fraction of second              |  30 | S       | 0, 1, ..., 9                      |       |\n * |                                 |     | SS      | 00, 01, ..., 99                   |       |\n * |                                 |     | SSS     | 000, 001, ..., 999                |       |\n * |                                 |     | SSSS    | ...                               | 2     |\n * | Milliseconds timestamp          |  20 | T       | 512969520900                      |       |\n * |                                 |     | TT      | ...                               | 2     |\n * | Timezone (ISO-8601 w/ Z)        |  10 | X       | -08, +0530, Z                     |       |\n * |                                 |     | XX      | -0800, +0530, Z                   |       |\n * |                                 |     | XXX     | -08:00, +05:30, Z                 |       |\n * |                                 |     | XXXX    | -0800, +0530, Z, +123456          | 2     |\n * |                                 |     | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |\n * | Timezone (ISO-8601 w/o Z)       |  10 | x       | -08, +0530, +00                   |       |\n * |                                 |     | xx      | -0800, +0530, +0000               |       |\n * |                                 |     | xxx     | -08:00, +05:30, +00:00            | 2     |\n * |                                 |     | xxxx    | -0800, +0530, +0000, +123456      |       |\n * |                                 |     | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |\n * | Long localized date             |  NA | P       | 05/29/1453                        | 5,8   |\n * |                                 |     | PP      | May 29, 1453                      |       |\n * |                                 |     | PPP     | May 29th, 1453                    |       |\n * |                                 |     | PPPP    | Sunday, May 29th, 1453            | 2,5,8 |\n * | Long localized time             |  NA | p       | 12:00 AM                          | 5,8   |\n * |                                 |     | pp      | 12:00:00 AM                       |       |\n * | Combination of date and time    |  NA | Pp      | 05/29/1453, 12:00 AM              |       |\n * |                                 |     | PPpp    | May 29, 1453, 12:00:00 AM         |       |\n * |                                 |     | PPPpp   | May 29th, 1453 at ...             |       |\n * |                                 |     | PPPPpp  | Sunday, May 29th, 1453 at ...     | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n *    are the same as \"stand-alone\" units, but are different in some languages.\n *    \"Formatting\" units are declined according to the rules of the language\n *    in the context of a date. \"Stand-alone\" units are always nominative singular.\n *    In `format` function, they will produce different result:\n *\n *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n *    `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n *    the single quote characters (see below).\n *    If the sequence is longer than listed in table:\n *    - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n *      as wide as the sequence\n *    - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n *      These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n *    These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n *    | Year | `y` | `u` |\n *    |------|-----|-----|\n *    | AC 1 |   1 |   1 |\n *    | BC 1 |   1 |   0 |\n *    | BC 2 |   2 |  -1 |\n *\n *    Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n *    `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n *    `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n *    while `uu` will just assign the year as is:\n *\n *    `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n *    `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n *    except local week-numbering years are dependent on `options.weekStartsOn`\n *    and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}\n *    and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n *    - `i`: ISO day of week\n *    - `I`: ISO week of year\n *    - `R`: ISO week-numbering year\n *    - `o`: ordinal number modifier\n *    - `P`: long localized date\n *    - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n *    on the given locale.\n *\n *    using `en-US` locale: `P` => `MM/dd/yyyy`\n *    using `en-US` locale: `p` => `hh:mm a`\n *    using `pt-BR` locale: `P` => `dd/MM/yyyy`\n *    using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {String} dateString - the string to parse\n * @param {String} formatString - the string of tokens\n * @param {Date|Number} referenceDate - defines values missing from the parsed dateString\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n *   see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n *   see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @returns {Date} the parsed date\n * @throws {TypeError} 3 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.locale` must contain `match` property\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n *   locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nexport default function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {\n  var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;\n  requiredArgs(3, arguments);\n  var dateString = String(dirtyDateString);\n  var formatString = String(dirtyFormatString);\n  var defaultOptions = getDefaultOptions();\n  var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n  if (!locale.match) {\n    throw new RangeError('locale must contain match property');\n  }\n  var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);\n\n  // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n  var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);\n\n  // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n    throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n  }\n  if (formatString === '') {\n    if (dateString === '') {\n      return toDate(dirtyReferenceDate);\n    } else {\n      return new Date(NaN);\n    }\n  }\n  var subFnOptions = {\n    firstWeekContainsDate: firstWeekContainsDate,\n    weekStartsOn: weekStartsOn,\n    locale: locale\n  };\n\n  // If timezone isn't specified, it will be set to the system timezone\n  var setters = [new DateToSystemTimezoneSetter()];\n  var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {\n    var firstCharacter = substring[0];\n    if (firstCharacter in longFormatters) {\n      var longFormatter = longFormatters[firstCharacter];\n      return longFormatter(substring, locale.formatLong);\n    }\n    return substring;\n  }).join('').match(formattingTokensRegExp);\n  var usedTokens = [];\n  var _iterator = _createForOfIteratorHelper(tokens),\n    _step;\n  try {\n    var _loop = function _loop() {\n      var token = _step.value;\n      if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) {\n        throwProtectedError(token, formatString, dirtyDateString);\n      }\n      if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) {\n        throwProtectedError(token, formatString, dirtyDateString);\n      }\n      var firstCharacter = token[0];\n      var parser = parsers[firstCharacter];\n      if (parser) {\n        var incompatibleTokens = parser.incompatibleTokens;\n        if (Array.isArray(incompatibleTokens)) {\n          var incompatibleToken = usedTokens.find(function (usedToken) {\n            return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;\n          });\n          if (incompatibleToken) {\n            throw new RangeError(\"The format string mustn't contain `\".concat(incompatibleToken.fullToken, \"` and `\").concat(token, \"` at the same time\"));\n          }\n        } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) {\n          throw new RangeError(\"The format string mustn't contain `\".concat(token, \"` and any other token at the same time\"));\n        }\n        usedTokens.push({\n          token: firstCharacter,\n          fullToken: token\n        });\n        var parseResult = parser.run(dateString, token, locale.match, subFnOptions);\n        if (!parseResult) {\n          return {\n            v: new Date(NaN)\n          };\n        }\n        setters.push(parseResult.setter);\n        dateString = parseResult.rest;\n      } else {\n        if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n          throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n        }\n\n        // Replace two single quote characters with one single quote character\n        if (token === \"''\") {\n          token = \"'\";\n        } else if (firstCharacter === \"'\") {\n          token = cleanEscapedString(token);\n        }\n\n        // Cut token from string, or, if string doesn't match the token, return Invalid Date\n        if (dateString.indexOf(token) === 0) {\n          dateString = dateString.slice(token.length);\n        } else {\n          return {\n            v: new Date(NaN)\n          };\n        }\n      }\n    };\n    for (_iterator.s(); !(_step = _iterator.n()).done;) {\n      var _ret = _loop();\n      if (_typeof(_ret) === \"object\") return _ret.v;\n    }\n\n    // Check if the remaining input contains something other than whitespace\n  } catch (err) {\n    _iterator.e(err);\n  } finally {\n    _iterator.f();\n  }\n  if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {\n    return new Date(NaN);\n  }\n  var uniquePrioritySetters = setters.map(function (setter) {\n    return setter.priority;\n  }).sort(function (a, b) {\n    return b - a;\n  }).filter(function (priority, index, array) {\n    return array.indexOf(priority) === index;\n  }).map(function (priority) {\n    return setters.filter(function (setter) {\n      return setter.priority === priority;\n    }).sort(function (a, b) {\n      return b.subPriority - a.subPriority;\n    });\n  }).map(function (setterArray) {\n    return setterArray[0];\n  });\n  var date = toDate(dirtyReferenceDate);\n  if (isNaN(date.getTime())) {\n    return new Date(NaN);\n  }\n\n  // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n  var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));\n  var flags = {};\n  var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters),\n    _step2;\n  try {\n    for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n      var setter = _step2.value;\n      if (!setter.validate(utcDate, subFnOptions)) {\n        return new Date(NaN);\n      }\n      var result = setter.set(utcDate, flags, subFnOptions);\n      // Result is tuple (date, flags)\n      if (Array.isArray(result)) {\n        utcDate = result[0];\n        assign(flags, result[1]);\n        // Result is date\n      } else {\n        utcDate = result;\n      }\n    }\n  } catch (err) {\n    _iterator2.e(err);\n  } finally {\n    _iterator2.f();\n  }\n  return utcDate;\n}\nfunction cleanEscapedString(input) {\n  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n *   new Date(1995, 6, 2),\n *   new Date(1987, 1, 11),\n *   new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * //   Wed Feb 11 1987 00:00:00,\n * //   Mon Jul 10 1989 00:00:00,\n * //   Sun Jul 02 1995 00:00:00\n * // ]\n */\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n  requiredArgs(2, arguments);\n  var dateLeft = toDate(dirtyDateLeft);\n  var dateRight = toDate(dirtyDateRight);\n  var diff = dateLeft.getTime() - dateRight.getTime();\n  if (diff < 0) {\n    return -1;\n  } else if (diff > 0) {\n    return 1;\n    // Return 0 if diff is 0; return NaN if diff is NaN\n  } else {\n    return diff;\n  }\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n *   new Date(2014, 8, 1),\n *   new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n  requiredArgs(2, arguments);\n  var dateLeft = toDate(dirtyDateLeft);\n  var dateRight = toDate(dirtyDateRight);\n  var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n  var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n  return yearDiff * 12 + monthDiff;\n}","import toDate from \"../toDate/index.js\";\nimport endOfDay from \"../endOfDay/index.js\";\nimport endOfMonth from \"../endOfMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * const result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\nexport default function isLastDayOfMonth(dirtyDate) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  return endOfDay(date).getTime() === endOfMonth(date).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarMonths from \"../differenceInCalendarMonths/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport isLastDayOfMonth from \"../isLastDayOfMonth/index.js\";\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\nexport default function differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n  requiredArgs(2, arguments);\n  var dateLeft = toDate(dirtyDateLeft);\n  var dateRight = toDate(dirtyDateRight);\n  var sign = compareAsc(dateLeft, dateRight);\n  var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));\n  var result;\n\n  // Check for the difference of less than month\n  if (difference < 1) {\n    result = 0;\n  } else {\n    if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n      // This will check if the date is end of Feb and assign a higher end of month date\n      // to compare it with Jan\n      dateLeft.setDate(30);\n    }\n    dateLeft.setMonth(dateLeft.getMonth() - sign * difference);\n\n    // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n    // If so, result must be decreased by 1 in absolute value\n    var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign;\n\n    // Check for cases of one full calendar month\n    if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {\n      isLastMonthNotFull = false;\n    }\n    result = sign * (difference - Number(isLastMonthNotFull));\n  }\n\n  // Prevent negative zero\n  return result === 0 ? 0 : result;\n}","import differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getRoundingMethod } from \"../_lib/roundingMethods/index.js\";\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n *   new Date(2014, 6, 2, 12, 30, 20, 0),\n *   new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport default function differenceInSeconds(dateLeft, dateRight, options) {\n  requiredArgs(2, arguments);\n  var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;\n  return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(object) {\n  return assign({}, object);\n}","import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport differenceInMonths from \"../differenceInMonths/index.js\";\nimport differenceInSeconds from \"../differenceInSeconds/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MINUTES_IN_DAY = 1440;\nvar MINUTES_IN_ALMOST_TWO_DAYS = 2520;\nvar MINUTES_IN_MONTH = 43200;\nvar MINUTES_IN_TWO_MONTHS = 86400;\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates                                            | Result              |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs                                                     | less than a minute  |\n * | 30 secs ... 1 min 30 secs                                         | 1 minute            |\n * | 1 min 30 secs ... 44 mins 30 secs                                 | [2..44] minutes     |\n * | 44 mins ... 30 secs ... 89 mins 30 secs                           | about 1 hour        |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs                        | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs                 | 1 day               |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs         | [2..30] days        |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month       |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months      |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr                           | [2..12] months      |\n * | 1 yr ... 1 yr 3 months                                            | about 1 year        |\n * | 1 yr 3 months ... 1 yr 9 month s                                  | over 1 year         |\n * | 1 yr 9 months ... 2 yrs                                           | almost 2 years      |\n * | N yrs ... N yrs 3 months                                          | about N years       |\n * | N yrs 3 months ... N yrs 9 months                                 | over N years        |\n * | N yrs 9 months ... N+1 yrs                                        | almost N+1 years    |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result               |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs      | less than 5 seconds  |\n * | 5 secs ... 10 secs     | less than 10 seconds |\n * | 10 secs ... 20 secs    | less than 20 seconds |\n * | 20 secs ... 40 secs    | half a minute        |\n * | 40 secs ... 60 secs    | less than a minute   |\n * | 60 secs ... 90 secs    | 1 minute             |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n *   new Date(2015, 0, 1, 0, 0, 15),\n *   new Date(2015, 0, 1, 0, 0, 0),\n *   { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n *   addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n *   locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistance(dirtyDate, dirtyBaseDate, options) {\n  var _ref, _options$locale;\n  requiredArgs(2, arguments);\n  var defaultOptions = getDefaultOptions();\n  var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n  if (!locale.formatDistance) {\n    throw new RangeError('locale must contain formatDistance property');\n  }\n  var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n  if (isNaN(comparison)) {\n    throw new RangeError('Invalid time value');\n  }\n  var localizeOptions = assign(cloneObject(options), {\n    addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n    comparison: comparison\n  });\n  var dateLeft;\n  var dateRight;\n  if (comparison > 0) {\n    dateLeft = toDate(dirtyBaseDate);\n    dateRight = toDate(dirtyDate);\n  } else {\n    dateLeft = toDate(dirtyDate);\n    dateRight = toDate(dirtyBaseDate);\n  }\n  var seconds = differenceInSeconds(dateRight, dateLeft);\n  var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;\n  var minutes = Math.round((seconds - offsetInSeconds) / 60);\n  var months;\n\n  // 0 up to 2 mins\n  if (minutes < 2) {\n    if (options !== null && options !== void 0 && options.includeSeconds) {\n      if (seconds < 5) {\n        return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);\n      } else if (seconds < 10) {\n        return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);\n      } else if (seconds < 20) {\n        return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);\n      } else if (seconds < 40) {\n        return locale.formatDistance('halfAMinute', 0, localizeOptions);\n      } else if (seconds < 60) {\n        return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n      } else {\n        return locale.formatDistance('xMinutes', 1, localizeOptions);\n      }\n    } else {\n      if (minutes === 0) {\n        return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n      } else {\n        return locale.formatDistance('xMinutes', minutes, localizeOptions);\n      }\n    }\n\n    // 2 mins up to 0.75 hrs\n  } else if (minutes < 45) {\n    return locale.formatDistance('xMinutes', minutes, localizeOptions);\n\n    // 0.75 hrs up to 1.5 hrs\n  } else if (minutes < 90) {\n    return locale.formatDistance('aboutXHours', 1, localizeOptions);\n\n    // 1.5 hrs up to 24 hrs\n  } else if (minutes < MINUTES_IN_DAY) {\n    var hours = Math.round(minutes / 60);\n    return locale.formatDistance('aboutXHours', hours, localizeOptions);\n\n    // 1 day up to 1.75 days\n  } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {\n    return locale.formatDistance('xDays', 1, localizeOptions);\n\n    // 1.75 days up to 30 days\n  } else if (minutes < MINUTES_IN_MONTH) {\n    var days = Math.round(minutes / MINUTES_IN_DAY);\n    return locale.formatDistance('xDays', days, localizeOptions);\n\n    // 1 month up to 2 months\n  } else if (minutes < MINUTES_IN_TWO_MONTHS) {\n    months = Math.round(minutes / MINUTES_IN_MONTH);\n    return locale.formatDistance('aboutXMonths', months, localizeOptions);\n  }\n  months = differenceInMonths(dateRight, dateLeft);\n\n  // 2 months up to 12 months\n  if (months < 12) {\n    var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);\n    return locale.formatDistance('xMonths', nearestMonth, localizeOptions);\n\n    // 1 year up to max Date\n  } else {\n    var monthsSinceStartOfYear = months % 12;\n    var years = Math.floor(months / 12);\n\n    // N years up to 1 years 3 months\n    if (monthsSinceStartOfYear < 3) {\n      return locale.formatDistance('aboutXYears', years, localizeOptions);\n\n      // N years 3 months up to N years 9 months\n    } else if (monthsSinceStartOfYear < 9) {\n      return locale.formatDistance('overXYears', years, localizeOptions);\n\n      // N years 9 months up to N year 12 months\n    } else {\n      return locale.formatDistance('almostXYears', years + 1, localizeOptions);\n    }\n  }\n}","/**\n * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres.\n *    l'1 de juliol ('l'u')\n *    l'11 de novembre ('l'onze')\n *    l'11a clàusula del contracte ('l'onzena')\n *    la contractació d'11 jugadors ('d'onze')\n *    l'aval d'11.000 socis ('d'onze mil')\n *\n * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes\n */\n\nvar formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"menys d'un segon\",\n    eleven: \"menys d'onze segons\",\n    other: 'menys de {{count}} segons'\n  },\n  xSeconds: {\n    one: '1 segon',\n    other: '{{count}} segons'\n  },\n  halfAMinute: 'mig minut',\n  lessThanXMinutes: {\n    one: \"menys d'un minut\",\n    eleven: \"menys d'onze minuts\",\n    other: 'menys de {{count}} minuts'\n  },\n  xMinutes: {\n    one: '1 minut',\n    other: '{{count}} minuts'\n  },\n  aboutXHours: {\n    one: 'aproximadament una hora',\n    other: 'aproximadament {{count}} hores'\n  },\n  xHours: {\n    one: '1 hora',\n    other: '{{count}} hores'\n  },\n  xDays: {\n    one: '1 dia',\n    other: '{{count}} dies'\n  },\n  aboutXWeeks: {\n    one: 'aproximadament una setmana',\n    other: 'aproximadament {{count}} setmanes'\n  },\n  xWeeks: {\n    one: '1 setmana',\n    other: '{{count}} setmanes'\n  },\n  aboutXMonths: {\n    one: 'aproximadament un mes',\n    other: 'aproximadament {{count}} mesos'\n  },\n  xMonths: {\n    one: '1 mes',\n    other: '{{count}} mesos'\n  },\n  aboutXYears: {\n    one: 'aproximadament un any',\n    other: 'aproximadament {{count}} anys'\n  },\n  xYears: {\n    one: '1 any',\n    other: '{{count}} anys'\n  },\n  overXYears: {\n    one: \"més d'un any\",\n    eleven: \"més d'onze anys\",\n    other: 'més de {{count}} anys'\n  },\n  almostXYears: {\n    one: 'gairebé un any',\n    other: 'gairebé {{count}} anys'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else if (count === 11 && tokenValue.eleven) {\n    result = tokenValue.eleven;\n  } else {\n    result = tokenValue.other.replace('{{count}}', String(count));\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'en ' + result;\n    } else {\n      return 'fa ' + result;\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: \"EEEE, d 'de' MMMM y\",\n  long: \"d 'de' MMMM y\",\n  medium: 'd MMM y',\n  short: 'dd/MM/y'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'a les' {{time}}\",\n  long: \"{{date}} 'a les' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: \"'el' eeee 'passat a la' LT\",\n  yesterday: \"'ahir a la' p\",\n  today: \"'avui a la' p\",\n  tomorrow: \"'demà a la' p\",\n  nextWeek: \"eeee 'a la' p\",\n  other: 'P'\n};\nvar formatRelativeLocalePlural = {\n  lastWeek: \"'el' eeee 'passat a les' p\",\n  yesterday: \"'ahir a les' p\",\n  today: \"'avui a les' p\",\n  tomorrow: \"'demà a les' p\",\n  nextWeek: \"eeee 'a les' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, _baseDate, _options) {\n  if (date.getUTCHours() !== 1) {\n    return formatRelativeLocalePlural[token];\n  }\n  return formatRelativeLocale[token];\n};\nexport default formatRelative;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\n/**\n * General information\n * Reference: https://aplicacions.llengua.gencat.cat\n * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html\n */\n/**\n * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes\n * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes\n */\nvar eraValues = {\n  narrow: ['aC', 'dC'],\n  abbreviated: ['a. de C.', 'd. de C.'],\n  wide: ['abans de Crist', 'després de Crist']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['T1', 'T2', 'T3', 'T4'],\n  wide: ['1r trimestre', '2n trimestre', '3r trimestre', '4t trimestre']\n};\n\n/**\n * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda.\n * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc.\n *\n * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes\n */\nvar monthValues = {\n  narrow: ['GN', 'FB', 'MÇ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'],\n  /**\n   * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures.\n   * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal.\n   * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba.\n   */\n  abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'],\n  wide: ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre']\n};\n\n/**\n * Les abreviatures dels dies de la setmana comencen totes amb la lletra d.\n * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió.\n * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament.\n *\n * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final.\n * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria.\n * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria.\n *\n * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot\n */\nvar dayValues = {\n  narrow: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'],\n  short: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'],\n  abbreviated: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'],\n  wide: ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte']\n};\n\n/**\n * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes\n */\nvar dayPeriodValues = {\n  narrow: {\n    am: 'am',\n    pm: 'pm',\n    midnight: 'mitjanit',\n    noon: 'migdia',\n    morning: 'matí',\n    afternoon: 'tarda',\n    evening: 'vespre',\n    night: 'nit'\n  },\n  abbreviated: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'mitjanit',\n    noon: 'migdia',\n    morning: 'matí',\n    afternoon: 'tarda',\n    evening: 'vespre',\n    night: 'nit'\n  },\n  wide: {\n    am: 'ante meridiem',\n    pm: 'post meridiem',\n    midnight: 'mitjanit',\n    noon: 'migdia',\n    morning: 'matí',\n    afternoon: 'tarda',\n    evening: 'vespre',\n    night: 'nit'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'am',\n    pm: 'pm',\n    midnight: 'de la mitjanit',\n    noon: 'del migdia',\n    morning: 'del matí',\n    afternoon: 'de la tarda',\n    evening: 'del vespre',\n    night: 'de la nit'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'de la mitjanit',\n    noon: 'del migdia',\n    morning: 'del matí',\n    afternoon: 'de la tarda',\n    evening: 'del vespre',\n    night: 'de la nit'\n  },\n  wide: {\n    am: 'ante meridiem',\n    pm: 'post meridiem',\n    midnight: 'de la mitjanit',\n    noon: 'del migdia',\n    morning: 'del matí',\n    afternoon: 'de la tarda',\n    evening: 'del vespre',\n    night: 'de la nit'\n  }\n};\n\n/**\n * Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat.\n * És optatiu posar punt després de la lletra.\n *\n * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18\n */\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  var number = Number(dirtyNumber);\n  var rem100 = number % 100;\n  if (rem100 > 20 || rem100 < 10) {\n    switch (rem100 % 10) {\n      case 1:\n        return number + 'r';\n      case 2:\n        return number + 'n';\n      case 3:\n        return number + 'r';\n      case 4:\n        return number + 't';\n    }\n  }\n  return number + 'è';\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Catalan locale.\n * @language Catalan\n * @iso-639-2 cat\n * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa}\n * @author Alex Vizcaino [@avizcaino]{@link https://github.com/avizcaino}\n */\nvar locale = {\n  code: 'ca',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 4\n  }\n};\nexport default locale;\n\n// throw new Error('ca locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA')","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(è|r|n|r|t)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(aC|dC)/i,\n  abbreviated: /^(a. de C.|d. de C.)/i,\n  wide: /^(abans de Crist|despr[eé]s de Crist)/i\n};\nvar parseEraPatterns = {\n  narrow: [/^aC/i, /^dC/i],\n  abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i],\n  wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^T[1234]/i,\n  wide: /^[1234](è|r|n|r|t)? trimestre/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,\n  abbreviated: /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,\n  wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^GN/i, /^FB/i, /^MÇ/i, /^AB/i, /^MG/i, /^JN/i, /^JL/i, /^AG/i, /^ST/i, /^OC/i, /^NV/i, /^DS/i],\n  abbreviated: [/^gen./i, /^febr./i, /^març/i, /^abr./i, /^maig/i, /^juny/i, /^jul./i, /^ag./i, /^set./i, /^oct./i, /^nov./i, /^des./i],\n  wide: [/^gener/i, /^febrer/i, /^març/i, /^abril/i, /^maig/i, /^juny/i, /^juliol/i, /^agost/i, /^setembre/i, /^octubre/i, /^novembre/i, /^desembre/i]\n};\nvar matchDayPatterns = {\n  narrow: /^(dg\\.|dl\\.|dt\\.|dm\\.|dj\\.|dv\\.|ds\\.)/i,\n  short: /^(dg\\.|dl\\.|dt\\.|dm\\.|dj\\.|dv\\.|ds\\.)/i,\n  abbreviated: /^(dg\\.|dl\\.|dt\\.|dm\\.|dj\\.|dv\\.|ds\\.)/i,\n  wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i],\n  abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i],\n  wide: [/^diumenge/i, /^dilluns/i, /^dimarts/i, /^dimecres/i, /^dijous/i, /^divendres/i, /^disssabte/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,\n  abbreviated: /^([ap]\\.?\\s?m\\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,\n  wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mitjanit/i,\n    noon: /^migdia/i,\n    morning: /matí/i,\n    afternoon: /tarda/i,\n    evening: /vespre/i,\n    night: /nit/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'wide'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'wide'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'wide'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'menos de un segundo',\n    other: 'menos de {{count}} segundos'\n  },\n  xSeconds: {\n    one: '1 segundo',\n    other: '{{count}} segundos'\n  },\n  halfAMinute: 'medio minuto',\n  lessThanXMinutes: {\n    one: 'menos de un minuto',\n    other: 'menos de {{count}} minutos'\n  },\n  xMinutes: {\n    one: '1 minuto',\n    other: '{{count}} minutos'\n  },\n  aboutXHours: {\n    one: 'alrededor de 1 hora',\n    other: 'alrededor de {{count}} horas'\n  },\n  xHours: {\n    one: '1 hora',\n    other: '{{count}} horas'\n  },\n  xDays: {\n    one: '1 día',\n    other: '{{count}} días'\n  },\n  aboutXWeeks: {\n    one: 'alrededor de 1 semana',\n    other: 'alrededor de {{count}} semanas'\n  },\n  xWeeks: {\n    one: '1 semana',\n    other: '{{count}} semanas'\n  },\n  aboutXMonths: {\n    one: 'alrededor de 1 mes',\n    other: 'alrededor de {{count}} meses'\n  },\n  xMonths: {\n    one: '1 mes',\n    other: '{{count}} meses'\n  },\n  aboutXYears: {\n    one: 'alrededor de 1 año',\n    other: 'alrededor de {{count}} años'\n  },\n  xYears: {\n    one: '1 año',\n    other: '{{count}} años'\n  },\n  overXYears: {\n    one: 'más de 1 año',\n    other: 'más de {{count}} años'\n  },\n  almostXYears: {\n    one: 'casi 1 año',\n    other: 'casi {{count}} años'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace('{{count}}', count.toString());\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'en ' + result;\n    } else {\n      return 'hace ' + result;\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: \"EEEE, d 'de' MMMM 'de' y\",\n  long: \"d 'de' MMMM 'de' y\",\n  medium: 'd MMM y',\n  short: 'dd/MM/y'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'a las' {{time}}\",\n  long: \"{{date}} 'a las' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: \"'el' eeee 'pasado a la' p\",\n  yesterday: \"'ayer a la' p\",\n  today: \"'hoy a la' p\",\n  tomorrow: \"'mañana a la' p\",\n  nextWeek: \"eeee 'a la' p\",\n  other: 'P'\n};\nvar formatRelativeLocalePlural = {\n  lastWeek: \"'el' eeee 'pasado a las' p\",\n  yesterday: \"'ayer a las' p\",\n  today: \"'hoy a las' p\",\n  tomorrow: \"'mañana a las' p\",\n  nextWeek: \"eeee 'a las' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, _baseDate, _options) {\n  if (date.getUTCHours() !== 1) {\n    return formatRelativeLocalePlural[token];\n  } else {\n    return formatRelativeLocale[token];\n  }\n};\nexport default formatRelative;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Spanish locale.\n * @language Spanish\n * @iso-639-2 spa\n * @author Juan Angosto [@juanangosto]{@link https://github.com/juanangosto}\n * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa}\n * @author Fernando Agüero [@fjaguero]{@link https://github.com/fjaguero}\n * @author Gastón Haro [@harogaston]{@link https://github.com/harogaston}\n * @author Yago Carballo [@YagoCarballo]{@link https://github.com/YagoCarballo}\n */\nvar locale = {\n  code: 'es',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 1\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['AC', 'DC'],\n  abbreviated: ['AC', 'DC'],\n  wide: ['antes de cristo', 'después de cristo']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['T1', 'T2', 'T3', 'T4'],\n  wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre']\n};\nvar monthValues = {\n  narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],\n  abbreviated: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'],\n  wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre']\n};\nvar dayValues = {\n  narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],\n  short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sá'],\n  abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],\n  wide: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mn',\n    noon: 'md',\n    morning: 'mañana',\n    afternoon: 'tarde',\n    evening: 'tarde',\n    night: 'noche'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'medianoche',\n    noon: 'mediodia',\n    morning: 'mañana',\n    afternoon: 'tarde',\n    evening: 'tarde',\n    night: 'noche'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'medianoche',\n    noon: 'mediodia',\n    morning: 'mañana',\n    afternoon: 'tarde',\n    evening: 'tarde',\n    night: 'noche'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mn',\n    noon: 'md',\n    morning: 'de la mañana',\n    afternoon: 'de la tarde',\n    evening: 'de la tarde',\n    night: 'de la noche'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'medianoche',\n    noon: 'mediodia',\n    morning: 'de la mañana',\n    afternoon: 'de la tarde',\n    evening: 'de la tarde',\n    night: 'de la noche'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'medianoche',\n    noon: 'mediodia',\n    morning: 'de la mañana',\n    afternoon: 'de la tarde',\n    evening: 'de la tarde',\n    night: 'de la noche'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  var number = Number(dirtyNumber);\n  return number + 'º';\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return Number(quarter) - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nimport buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(º)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(ac|dc|a|d)/i,\n  abbreviated: /^(a\\.?\\s?c\\.?|a\\.?\\s?e\\.?\\s?c\\.?|d\\.?\\s?c\\.?|e\\.?\\s?c\\.?)/i,\n  wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i\n};\nvar parseEraPatterns = {\n  any: [/^ac/i, /^dc/i],\n  wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^T[1234]/i,\n  wide: /^[1234](º)? trimestre/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[efmajsond]/i,\n  abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,\n  wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[dlmjvs]/i,\n  short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,\n  abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,\n  wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],\n  any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,\n  any: /^([ap]\\.?\\s?m\\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mn/i,\n    noon: /^md/i,\n    morning: /mañana/i,\n    afternoon: /tarde/i,\n    evening: /tarde/i,\n    night: /noche/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'moins d’une seconde',\n    other: 'moins de {{count}} secondes'\n  },\n  xSeconds: {\n    one: '1 seconde',\n    other: '{{count}} secondes'\n  },\n  halfAMinute: '30 secondes',\n  lessThanXMinutes: {\n    one: 'moins d’une minute',\n    other: 'moins de {{count}} minutes'\n  },\n  xMinutes: {\n    one: '1 minute',\n    other: '{{count}} minutes'\n  },\n  aboutXHours: {\n    one: 'environ 1 heure',\n    other: 'environ {{count}} heures'\n  },\n  xHours: {\n    one: '1 heure',\n    other: '{{count}} heures'\n  },\n  xDays: {\n    one: '1 jour',\n    other: '{{count}} jours'\n  },\n  aboutXWeeks: {\n    one: 'environ 1 semaine',\n    other: 'environ {{count}} semaines'\n  },\n  xWeeks: {\n    one: '1 semaine',\n    other: '{{count}} semaines'\n  },\n  aboutXMonths: {\n    one: 'environ 1 mois',\n    other: 'environ {{count}} mois'\n  },\n  xMonths: {\n    one: '1 mois',\n    other: '{{count}} mois'\n  },\n  aboutXYears: {\n    one: 'environ 1 an',\n    other: 'environ {{count}} ans'\n  },\n  xYears: {\n    one: '1 an',\n    other: '{{count}} ans'\n  },\n  overXYears: {\n    one: 'plus d’un an',\n    other: 'plus de {{count}} ans'\n  },\n  almostXYears: {\n    one: 'presqu’un an',\n    other: 'presque {{count}} ans'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var form = formatDistanceLocale[token];\n  if (typeof form === 'string') {\n    result = form;\n  } else if (count === 1) {\n    result = form.one;\n  } else {\n    result = form.other.replace('{{count}}', String(count));\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'dans ' + result;\n    } else {\n      return 'il y a ' + result;\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE d MMMM y',\n  long: 'd MMMM y',\n  medium: 'd MMM y',\n  short: 'dd/MM/y'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'à' {{time}}\",\n  long: \"{{date}} 'à' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: \"eeee 'dernier à' p\",\n  yesterday: \"'hier à' p\",\n  today: \"'aujourd’hui à' p\",\n  tomorrow: \"'demain à' p'\",\n  nextWeek: \"eeee 'prochain à' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n  return formatRelativeLocale[token];\n};\nexport default formatRelative;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary French locale.\n * @language French\n * @iso-639-2 fra\n * @author Jean Dupouy [@izeau]{@link https://github.com/izeau}\n * @author François B [@fbonzon]{@link https://github.com/fbonzon}\n */\nvar locale = {\n  code: 'fr',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 4\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['av. J.-C', 'ap. J.-C'],\n  abbreviated: ['av. J.-C', 'ap. J.-C'],\n  wide: ['avant Jésus-Christ', 'après Jésus-Christ']\n};\nvar quarterValues = {\n  narrow: ['T1', 'T2', 'T3', 'T4'],\n  abbreviated: ['1er trim.', '2ème trim.', '3ème trim.', '4ème trim.'],\n  wide: ['1er trimestre', '2ème trimestre', '3ème trimestre', '4ème trimestre']\n};\nvar monthValues = {\n  narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n  abbreviated: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],\n  wide: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre']\n};\nvar dayValues = {\n  narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],\n  short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],\n  abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],\n  wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'minuit',\n    noon: 'midi',\n    morning: 'mat.',\n    afternoon: 'ap.m.',\n    evening: 'soir',\n    night: 'mat.'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'minuit',\n    noon: 'midi',\n    morning: 'matin',\n    afternoon: 'après-midi',\n    evening: 'soir',\n    night: 'matin'\n  },\n  wide: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'minuit',\n    noon: 'midi',\n    morning: 'du matin',\n    afternoon: 'de l’après-midi',\n    evening: 'du soir',\n    night: 'du matin'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, options) {\n  var number = Number(dirtyNumber);\n  var unit = options === null || options === void 0 ? void 0 : options.unit;\n  if (number === 0) return '0';\n  var feminineUnits = ['year', 'week', 'hour', 'minute', 'second'];\n  var suffix;\n  if (number === 1) {\n    suffix = unit && feminineUnits.includes(unit) ? 'ère' : 'er';\n  } else {\n    suffix = 'ème';\n  }\n  return number + suffix;\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(ième|ère|ème|er|e)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(av\\.J\\.C|ap\\.J\\.C|ap\\.J\\.-C)/i,\n  abbreviated: /^(av\\.J\\.-C|av\\.J-C|apr\\.J\\.-C|apr\\.J-C|ap\\.J-C)/i,\n  wide: /^(avant Jésus-Christ|après Jésus-Christ)/i\n};\nvar parseEraPatterns = {\n  any: [/^av/i, /^ap/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^T?[1234]/i,\n  abbreviated: /^[1234](er|ème|e)? trim\\.?/i,\n  wide: /^[1234](er|ème|e)? trimestre/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[jfmasond]/i,\n  abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\\.?/i,\n  wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[lmjvsd]/i,\n  short: /^(di|lu|ma|me|je|ve|sa)/i,\n  abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\\.?/i,\n  wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],\n  any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|minuit|midi|mat\\.?|ap\\.?m\\.?|soir|nuit)/i,\n  any: /^([ap]\\.?\\s?m\\.?|du matin|de l'après[-\\s]midi|du soir|de la nuit)/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^min/i,\n    noon: /^mid/i,\n    morning: /mat/i,\n    afternoon: /ap/i,\n    evening: /soir/i,\n    night: /nuit/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'meno di un secondo',\n    other: 'meno di {{count}} secondi'\n  },\n  xSeconds: {\n    one: 'un secondo',\n    other: '{{count}} secondi'\n  },\n  halfAMinute: 'alcuni secondi',\n  lessThanXMinutes: {\n    one: 'meno di un minuto',\n    other: 'meno di {{count}} minuti'\n  },\n  xMinutes: {\n    one: 'un minuto',\n    other: '{{count}} minuti'\n  },\n  aboutXHours: {\n    one: \"circa un'ora\",\n    other: 'circa {{count}} ore'\n  },\n  xHours: {\n    one: \"un'ora\",\n    other: '{{count}} ore'\n  },\n  xDays: {\n    one: 'un giorno',\n    other: '{{count}} giorni'\n  },\n  aboutXWeeks: {\n    one: 'circa una settimana',\n    other: 'circa {{count}} settimane'\n  },\n  xWeeks: {\n    one: 'una settimana',\n    other: '{{count}} settimane'\n  },\n  aboutXMonths: {\n    one: 'circa un mese',\n    other: 'circa {{count}} mesi'\n  },\n  xMonths: {\n    one: 'un mese',\n    other: '{{count}} mesi'\n  },\n  aboutXYears: {\n    one: 'circa un anno',\n    other: 'circa {{count}} anni'\n  },\n  xYears: {\n    one: 'un anno',\n    other: '{{count}} anni'\n  },\n  overXYears: {\n    one: 'più di un anno',\n    other: 'più di {{count}} anni'\n  },\n  almostXYears: {\n    one: 'quasi un anno',\n    other: 'quasi {{count}} anni'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace('{{count}}', count.toString());\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'tra ' + result;\n    } else {\n      return result + ' fa';\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE d MMMM y',\n  long: 'd MMMM y',\n  medium: 'd MMM y',\n  short: 'dd/MM/y'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: '{{date}} {{time}}',\n  long: '{{date}} {{time}}',\n  medium: '{{date}} {{time}}',\n  short: '{{date}} {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","import requiredArgs from \"../requiredArgs/index.js\";\nimport startOfUTCWeek from \"../startOfUTCWeek/index.js\";\nexport default function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {\n  requiredArgs(2, arguments);\n  var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options);\n  var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);\n  return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();\n}","import isSameUTCWeek from \"../../../../_lib/isSameUTCWeek/index.js\";\nvar weekdays = ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'];\nfunction _lastWeek(day) {\n  switch (day) {\n    case 0:\n      return \"'domenica scorsa alle' p\";\n    default:\n      return \"'\" + weekdays[day] + \" scorso alle' p\";\n  }\n}\nfunction thisWeek(day) {\n  return \"'\" + weekdays[day] + \" alle' p\";\n}\nfunction _nextWeek(day) {\n  switch (day) {\n    case 0:\n      return \"'domenica prossima alle' p\";\n    default:\n      return \"'\" + weekdays[day] + \" prossimo alle' p\";\n  }\n}\nvar formatRelativeLocale = {\n  lastWeek: function lastWeek(date, baseDate, options) {\n    var day = date.getUTCDay();\n    if (isSameUTCWeek(date, baseDate, options)) {\n      return thisWeek(day);\n    } else {\n      return _lastWeek(day);\n    }\n  },\n  yesterday: \"'ieri alle' p\",\n  today: \"'oggi alle' p\",\n  tomorrow: \"'domani alle' p\",\n  nextWeek: function nextWeek(date, baseDate, options) {\n    var day = date.getUTCDay();\n    if (isSameUTCWeek(date, baseDate, options)) {\n      return thisWeek(day);\n    } else {\n      return _nextWeek(day);\n    }\n  },\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, baseDate, options) {\n  var format = formatRelativeLocale[token];\n  if (typeof format === 'function') {\n    return format(date, baseDate, options);\n  }\n  return format;\n};\nexport default formatRelative;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Italian locale.\n * @language Italian\n * @iso-639-2 ita\n * @author Alberto Restifo [@albertorestifo]{@link https://github.com/albertorestifo}\n * @author Giovanni Polimeni [@giofilo]{@link https://github.com/giofilo}\n * @author Vincenzo Carrese [@vin-car]{@link https://github.com/vin-car}\n */\nvar locale = {\n  code: 'it',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 4\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['aC', 'dC'],\n  abbreviated: ['a.C.', 'd.C.'],\n  wide: ['avanti Cristo', 'dopo Cristo']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['T1', 'T2', 'T3', 'T4'],\n  wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre']\n};\nvar monthValues = {\n  narrow: ['G', 'F', 'M', 'A', 'M', 'G', 'L', 'A', 'S', 'O', 'N', 'D'],\n  abbreviated: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],\n  wide: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre']\n};\nvar dayValues = {\n  narrow: ['D', 'L', 'M', 'M', 'G', 'V', 'S'],\n  short: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],\n  abbreviated: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],\n  wide: ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'm.',\n    pm: 'p.',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'mattina',\n    afternoon: 'pomeriggio',\n    evening: 'sera',\n    night: 'notte'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'mattina',\n    afternoon: 'pomeriggio',\n    evening: 'sera',\n    night: 'notte'\n  },\n  wide: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'mattina',\n    afternoon: 'pomeriggio',\n    evening: 'sera',\n    night: 'notte'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'm.',\n    pm: 'p.',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'di mattina',\n    afternoon: 'del pomeriggio',\n    evening: 'di sera',\n    night: 'di notte'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'di mattina',\n    afternoon: 'del pomeriggio',\n    evening: 'di sera',\n    night: 'di notte'\n  },\n  wide: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'mezzanotte',\n    noon: 'mezzogiorno',\n    morning: 'di mattina',\n    afternoon: 'del pomeriggio',\n    evening: 'di sera',\n    night: 'di notte'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  var number = Number(dirtyNumber);\n  return String(number);\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(º)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(aC|dC)/i,\n  abbreviated: /^(a\\.?\\s?C\\.?|a\\.?\\s?e\\.?\\s?v\\.?|d\\.?\\s?C\\.?|e\\.?\\s?v\\.?)/i,\n  wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i\n};\nvar parseEraPatterns = {\n  any: [/^a/i, /^(d|e)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^t[1234]/i,\n  wide: /^[1234](º)? trimestre/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[gfmalsond]/i,\n  abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,\n  wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[dlmgvs]/i,\n  short: /^(do|lu|ma|me|gi|ve|sa)/i,\n  abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i,\n  wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i],\n  any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|m\\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,\n  any: /^([ap]\\.?\\s?m\\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mezza/i,\n    noon: /^mezzo/i,\n    morning: /mattina/i,\n    afternoon: /pomeriggio/i,\n    evening: /sera/i,\n    night: /notte/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'menos de um segundo',\n    other: 'menos de {{count}} segundos'\n  },\n  xSeconds: {\n    one: '1 segundo',\n    other: '{{count}} segundos'\n  },\n  halfAMinute: 'meio minuto',\n  lessThanXMinutes: {\n    one: 'menos de um minuto',\n    other: 'menos de {{count}} minutos'\n  },\n  xMinutes: {\n    one: '1 minuto',\n    other: '{{count}} minutos'\n  },\n  aboutXHours: {\n    one: 'aproximadamente 1 hora',\n    other: 'aproximadamente {{count}} horas'\n  },\n  xHours: {\n    one: '1 hora',\n    other: '{{count}} horas'\n  },\n  xDays: {\n    one: '1 dia',\n    other: '{{count}} dias'\n  },\n  aboutXWeeks: {\n    one: 'aproximadamente 1 semana',\n    other: 'aproximadamente {{count}} semanas'\n  },\n  xWeeks: {\n    one: '1 semana',\n    other: '{{count}} semanas'\n  },\n  aboutXMonths: {\n    one: 'aproximadamente 1 mês',\n    other: 'aproximadamente {{count}} meses'\n  },\n  xMonths: {\n    one: '1 mês',\n    other: '{{count}} meses'\n  },\n  aboutXYears: {\n    one: 'aproximadamente 1 ano',\n    other: 'aproximadamente {{count}} anos'\n  },\n  xYears: {\n    one: '1 ano',\n    other: '{{count}} anos'\n  },\n  overXYears: {\n    one: 'mais de 1 ano',\n    other: 'mais de {{count}} anos'\n  },\n  almostXYears: {\n    one: 'quase 1 ano',\n    other: 'quase {{count}} anos'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace('{{count}}', String(count));\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'daqui a ' + result;\n    } else {\n      return 'há ' + result;\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: \"EEEE, d 'de' MMMM 'de' y\",\n  long: \"d 'de' MMMM 'de' y\",\n  medium: \"d 'de' MMM 'de' y\",\n  short: 'dd/MM/y'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'às' {{time}}\",\n  long: \"{{date}} 'às' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: function lastWeek(date) {\n    var weekday = date.getUTCDay();\n    var last = weekday === 0 || weekday === 6 ? 'último' : 'última';\n    return \"'\" + last + \"' eeee 'às' p\";\n  },\n  yesterday: \"'ontem às' p\",\n  today: \"'hoje às' p\",\n  tomorrow: \"'amanhã às' p\",\n  nextWeek: \"eeee 'às' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, date, _baseDate, _options) {\n  var format = formatRelativeLocale[token];\n  if (typeof format === 'function') {\n    return format(date);\n  }\n  return format;\n};\nexport default formatRelative;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Portuguese locale.\n * @language Portuguese\n * @iso-639-2 por\n * @author Dário Freire [@dfreire]{@link https://github.com/dfreire}\n * @author Adrián de la Rosa [@adrm]{@link https://github.com/adrm}\n */\nvar locale = {\n  code: 'pt',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 4\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['aC', 'dC'],\n  abbreviated: ['a.C.', 'd.C.'],\n  wide: ['antes de Cristo', 'depois de Cristo']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['T1', 'T2', 'T3', 'T4'],\n  wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre']\n};\nvar monthValues = {\n  narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],\n  abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'],\n  wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']\n};\nvar dayValues = {\n  narrow: ['d', 's', 't', 'q', 'q', 's', 's'],\n  short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'],\n  abbreviated: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'],\n  wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'manhã',\n    afternoon: 'tarde',\n    evening: 'noite',\n    night: 'madrugada'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'manhã',\n    afternoon: 'tarde',\n    evening: 'noite',\n    night: 'madrugada'\n  },\n  wide: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'manhã',\n    afternoon: 'tarde',\n    evening: 'noite',\n    night: 'madrugada'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'da manhã',\n    afternoon: 'da tarde',\n    evening: 'da noite',\n    night: 'da madrugada'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'da manhã',\n    afternoon: 'da tarde',\n    evening: 'da noite',\n    night: 'da madrugada'\n  },\n  wide: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'meia-noite',\n    noon: 'meio-dia',\n    morning: 'da manhã',\n    afternoon: 'da tarde',\n    evening: 'da noite',\n    night: 'da madrugada'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  var number = Number(dirtyNumber);\n  return number + 'º';\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)(º|ª)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(ac|dc|a|d)/i,\n  abbreviated: /^(a\\.?\\s?c\\.?|a\\.?\\s?e\\.?\\s?c\\.?|d\\.?\\s?c\\.?|e\\.?\\s?c\\.?)/i,\n  wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i\n};\nvar parseEraPatterns = {\n  any: [/^ac/i, /^dc/i],\n  wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^T[1234]/i,\n  wide: /^[1234](º|ª)? trimestre/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[jfmasond]/i,\n  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,\n  wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ja/i, /^f/i, /^mar/i, /^ab/i, /^mai/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[dstq]/i,\n  short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,\n  abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,\n  wide: /^(domingo|segunda-?\\s?feira|terça-?\\s?feira|quarta-?\\s?feira|quinta-?\\s?feira|sexta-?\\s?feira|s[áa]bado)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i],\n  any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|meia-?\\s?noite|meio-?\\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,\n  any: /^([ap]\\.?\\s?m\\.?|meia-?\\s?noite|meio-?\\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^meia/i,\n    noon: /^meio/i,\n    morning: /manh[ãa]/i,\n    afternoon: /tarde/i,\n    evening: /noite/i,\n    night: /madrugada/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","var formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: 'mai puțin de o secundă',\n    other: 'mai puțin de {{count}} secunde'\n  },\n  xSeconds: {\n    one: '1 secundă',\n    other: '{{count}} secunde'\n  },\n  halfAMinute: 'jumătate de minut',\n  lessThanXMinutes: {\n    one: 'mai puțin de un minut',\n    other: 'mai puțin de {{count}} minute'\n  },\n  xMinutes: {\n    one: '1 minut',\n    other: '{{count}} minute'\n  },\n  aboutXHours: {\n    one: 'circa 1 oră',\n    other: 'circa {{count}} ore'\n  },\n  xHours: {\n    one: '1 oră',\n    other: '{{count}} ore'\n  },\n  xDays: {\n    one: '1 zi',\n    other: '{{count}} zile'\n  },\n  aboutXWeeks: {\n    one: 'circa o săptămână',\n    other: 'circa {{count}} săptămâni'\n  },\n  xWeeks: {\n    one: '1 săptămână',\n    other: '{{count}} săptămâni'\n  },\n  aboutXMonths: {\n    one: 'circa 1 lună',\n    other: 'circa {{count}} luni'\n  },\n  xMonths: {\n    one: '1 lună',\n    other: '{{count}} luni'\n  },\n  aboutXYears: {\n    one: 'circa 1 an',\n    other: 'circa {{count}} ani'\n  },\n  xYears: {\n    one: '1 an',\n    other: '{{count}} ani'\n  },\n  overXYears: {\n    one: 'peste 1 an',\n    other: 'peste {{count}} ani'\n  },\n  almostXYears: {\n    one: 'aproape 1 an',\n    other: 'aproape {{count}} ani'\n  }\n};\nvar formatDistance = function formatDistance(token, count, options) {\n  var result;\n  var tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === 'string') {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace('{{count}}', String(count));\n  }\n  if (options !== null && options !== void 0 && options.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return 'în ' + result;\n    } else {\n      return result + ' în urmă';\n    }\n  }\n  return result;\n};\nexport default formatDistance;","import buildFormatLongFn from \"../../../_lib/buildFormatLongFn/index.js\";\nvar dateFormats = {\n  full: 'EEEE, d MMMM yyyy',\n  long: 'd MMMM yyyy',\n  medium: 'd MMM yyyy',\n  short: 'dd.MM.yyyy'\n};\nvar timeFormats = {\n  full: 'HH:mm:ss zzzz',\n  long: 'HH:mm:ss z',\n  medium: 'HH:mm:ss',\n  short: 'HH:mm'\n};\nvar dateTimeFormats = {\n  full: \"{{date}} 'la' {{time}}\",\n  long: \"{{date}} 'la' {{time}}\",\n  medium: '{{date}}, {{time}}',\n  short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n  date: buildFormatLongFn({\n    formats: dateFormats,\n    defaultWidth: 'full'\n  }),\n  time: buildFormatLongFn({\n    formats: timeFormats,\n    defaultWidth: 'full'\n  }),\n  dateTime: buildFormatLongFn({\n    formats: dateTimeFormats,\n    defaultWidth: 'full'\n  })\n};\nexport default formatLong;","var formatRelativeLocale = {\n  lastWeek: \"eeee 'trecută la' p\",\n  yesterday: \"'ieri la' p\",\n  today: \"'astăzi la' p\",\n  tomorrow: \"'mâine la' p\",\n  nextWeek: \"eeee 'viitoare la' p\",\n  other: 'P'\n};\nvar formatRelative = function formatRelative(token, _date, _baseDate, _options) {\n  return formatRelativeLocale[token];\n};\nexport default formatRelative;","import formatDistance from \"./_lib/formatDistance/index.js\";\nimport formatLong from \"./_lib/formatLong/index.js\";\nimport formatRelative from \"./_lib/formatRelative/index.js\";\nimport localize from \"./_lib/localize/index.js\";\nimport match from \"./_lib/match/index.js\";\n/**\n * @type {Locale}\n * @category Locales\n * @summary Romanian locale.\n * @language Romanian\n * @iso-639-2 ron\n * @author Sergiu Munteanu [@jsergiu]{@link https://github.com/jsergiu}\n * @author Adrian Ocneanu [@aocneanu]{@link https://github.com/aocneanu}\n * @author Mihai Ocneanu [@gandesc]{@link https://github.com/gandesc}\n */\nvar locale = {\n  code: 'ro',\n  formatDistance: formatDistance,\n  formatLong: formatLong,\n  formatRelative: formatRelative,\n  localize: localize,\n  match: match,\n  options: {\n    weekStartsOn: 1 /* Monday */,\n    firstWeekContainsDate: 1\n  }\n};\nexport default locale;","import buildLocalizeFn from \"../../../_lib/buildLocalizeFn/index.js\";\nvar eraValues = {\n  narrow: ['Î', 'D'],\n  abbreviated: ['Î.d.C.', 'D.C.'],\n  wide: ['Înainte de Cristos', 'După Cristos']\n};\nvar quarterValues = {\n  narrow: ['1', '2', '3', '4'],\n  abbreviated: ['T1', 'T2', 'T3', 'T4'],\n  wide: ['primul trimestru', 'al doilea trimestru', 'al treilea trimestru', 'al patrulea trimestru']\n};\nvar monthValues = {\n  narrow: ['I', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'],\n  abbreviated: ['ian', 'feb', 'mar', 'apr', 'mai', 'iun', 'iul', 'aug', 'sep', 'oct', 'noi', 'dec'],\n  wide: ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie']\n};\nvar dayValues = {\n  narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'],\n  short: ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'],\n  abbreviated: ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'],\n  wide: ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă']\n};\nvar dayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mn',\n    noon: 'ami',\n    morning: 'dim',\n    afternoon: 'da',\n    evening: 's',\n    night: 'n'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'miezul nopții',\n    noon: 'amiază',\n    morning: 'dimineață',\n    afternoon: 'după-amiază',\n    evening: 'seară',\n    night: 'noapte'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'miezul nopții',\n    noon: 'amiază',\n    morning: 'dimineață',\n    afternoon: 'după-amiază',\n    evening: 'seară',\n    night: 'noapte'\n  }\n};\nvar formattingDayPeriodValues = {\n  narrow: {\n    am: 'a',\n    pm: 'p',\n    midnight: 'mn',\n    noon: 'amiază',\n    morning: 'dimineață',\n    afternoon: 'după-amiază',\n    evening: 'seară',\n    night: 'noapte'\n  },\n  abbreviated: {\n    am: 'AM',\n    pm: 'PM',\n    midnight: 'miezul nopții',\n    noon: 'amiază',\n    morning: 'dimineață',\n    afternoon: 'după-amiază',\n    evening: 'seară',\n    night: 'noapte'\n  },\n  wide: {\n    am: 'a.m.',\n    pm: 'p.m.',\n    midnight: 'miezul nopții',\n    noon: 'amiază',\n    morning: 'dimineață',\n    afternoon: 'după-amiază',\n    evening: 'seară',\n    night: 'noapte'\n  }\n};\nvar ordinalNumber = function ordinalNumber(dirtyNumber, _options) {\n  return String(dirtyNumber);\n};\nvar localize = {\n  ordinalNumber: ordinalNumber,\n  era: buildLocalizeFn({\n    values: eraValues,\n    defaultWidth: 'wide'\n  }),\n  quarter: buildLocalizeFn({\n    values: quarterValues,\n    defaultWidth: 'wide',\n    argumentCallback: function argumentCallback(quarter) {\n      return quarter - 1;\n    }\n  }),\n  month: buildLocalizeFn({\n    values: monthValues,\n    defaultWidth: 'wide'\n  }),\n  day: buildLocalizeFn({\n    values: dayValues,\n    defaultWidth: 'wide'\n  }),\n  dayPeriod: buildLocalizeFn({\n    values: dayPeriodValues,\n    defaultWidth: 'wide',\n    formattingValues: formattingDayPeriodValues,\n    defaultFormattingWidth: 'wide'\n  })\n};\nexport default localize;","import buildMatchFn from \"../../../_lib/buildMatchFn/index.js\";\nimport buildMatchPatternFn from \"../../../_lib/buildMatchPatternFn/index.js\";\nvar matchOrdinalNumberPattern = /^(\\d+)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n  narrow: /^(Î|D)/i,\n  abbreviated: /^(Î\\.?\\s?d\\.?\\s?C\\.?|Î\\.?\\s?e\\.?\\s?n\\.?|D\\.?\\s?C\\.?|e\\.?\\s?n\\.?)/i,\n  wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i\n};\nvar parseEraPatterns = {\n  any: [/^ÎC/i, /^DC/i],\n  wide: [/^(Înainte de Cristos|Înaintea erei noastre)/i, /^(După Cristos|Era noastră)/i]\n};\nvar matchQuarterPatterns = {\n  narrow: /^[1234]/i,\n  abbreviated: /^T[1234]/i,\n  wide: /^trimestrul [1234]/i\n};\nvar parseQuarterPatterns = {\n  any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n  narrow: /^[ifmaasond]/i,\n  abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,\n  wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i\n};\nvar parseMonthPatterns = {\n  narrow: [/^i/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n  any: [/^ia/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^iun/i, /^iul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n  narrow: /^[dlmjvs]/i,\n  short: /^(d|l|ma|mi|j|v|s)/i,\n  abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i,\n  wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i\n};\nvar parseDayPatterns = {\n  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],\n  any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i]\n};\nvar matchDayPeriodPatterns = {\n  narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,\n  any: /^([ap]\\.?\\s?m\\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i\n};\nvar parseDayPeriodPatterns = {\n  any: {\n    am: /^a/i,\n    pm: /^p/i,\n    midnight: /^mn/i,\n    noon: /amiaza/i,\n    morning: /dimineaţa/i,\n    afternoon: /după-amiaza/i,\n    evening: /seara/i,\n    night: /noaptea/i\n  }\n};\nvar match = {\n  ordinalNumber: buildMatchPatternFn({\n    matchPattern: matchOrdinalNumberPattern,\n    parsePattern: parseOrdinalNumberPattern,\n    valueCallback: function valueCallback(value) {\n      return parseInt(value, 10);\n    }\n  }),\n  era: buildMatchFn({\n    matchPatterns: matchEraPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseEraPatterns,\n    defaultParseWidth: 'any'\n  }),\n  quarter: buildMatchFn({\n    matchPatterns: matchQuarterPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseQuarterPatterns,\n    defaultParseWidth: 'any',\n    valueCallback: function valueCallback(index) {\n      return index + 1;\n    }\n  }),\n  month: buildMatchFn({\n    matchPatterns: matchMonthPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseMonthPatterns,\n    defaultParseWidth: 'any'\n  }),\n  day: buildMatchFn({\n    matchPatterns: matchDayPatterns,\n    defaultMatchWidth: 'wide',\n    parsePatterns: parseDayPatterns,\n    defaultParseWidth: 'any'\n  }),\n  dayPeriod: buildMatchFn({\n    matchPatterns: matchDayPeriodPatterns,\n    defaultMatchWidth: 'any',\n    parsePatterns: parseDayPeriodPatterns,\n    defaultParseWidth: 'any'\n  })\n};\nexport default match;","import * as i4$2 from '@angular/cdk/drag-drop';\nimport { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';\nimport { CdkTreeModule } from '@angular/cdk/tree';\nimport * as i1$1 from '@angular/common';\nimport { CommonModule, DecimalPipe, NgIf, AsyncPipe, NgClass, NgTemplateOutlet, DOCUMENT, TranslationWidth, getLocaleMonthNames, FormStyle, getLocaleDayNames } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Directive, Inject, Input, HostListener, inject, NgZone, Component, ViewEncapsulation, ViewChild, EventEmitter, ElementRef, Output, Injectable, ChangeDetectionStrategy, forwardRef, Pipe, importProvidersFrom, HostBinding, SkipSelf, ChangeDetectorRef, Host, ViewContainerRef, ViewChildren, NgModule } from '@angular/core';\nimport * as i1$3 from '@angular/forms';\nimport { NG_VALUE_ACCESSOR, FormGroupDirective, Validators, FormsModule, FormControl, FormControlName, ReactiveFormsModule } from '@angular/forms';\nimport * as i5$2 from '@angular/material/checkbox';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport * as i4$1 from '@angular/material/select';\nimport { MatSelect, MatSelectModule } from '@angular/material/select';\nimport * as i1$7 from '@angular/material/slide-toggle';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport * as i3$3 from '@angular/material/slider';\nimport { MatSliderModule } from '@angular/material/slider';\nimport * as i2$8 from '@angular/material/tabs';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport * as i2$1 from '@angular/material/tooltip';\nimport { MatTooltip, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_DEFAULT_OPTIONS, MatTooltipModule } from '@angular/material/tooltip';\nimport { RightPanelModule } from '@primavera/components/features/right-panel';\nimport * as i2$5 from '@primavera/components/features/routing';\nimport { InjectorComponentsModule } from '@primavera/components/features/routing';\nimport * as i2$3 from '@primavera/localization';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport * as i1$2 from '@primavera/services';\nimport { ScrollObserver, DomService, SizeModel as SizeModel$1, GuidService, FormEvent, isEqual, IsEmptyArrayPipe, ScopedDependencyResolver, deepClone, PrimaveraServicesModule } from '@primavera/services';\nimport * as i3$1 from 'ngx-bootstrap/dropdown';\nimport { BsDropdownModule } from 'ngx-bootstrap/dropdown';\nimport * as i1$5 from 'ngx-bootstrap/modal';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport * as i2$6 from 'ngx-bootstrap/popover';\nimport { PopoverModule } from 'ngx-bootstrap/popover';\nimport * as i2$2 from 'ngx-color/chrome';\nimport { ColorChromeModule } from 'ngx-color/chrome';\nimport * as i1$6 from 'ngx-toastr';\nimport { ToastrModule } from 'ngx-toastr';\nimport { BehaviorSubject, Subject, takeUntil, take, Observable, ReplaySubject, debounceTime, from, tap, finalize, filter as filter$1, firstValueFrom, delay, pairwise, throwError } from 'rxjs';\nimport * as i1 from '@angular/cdk/overlay';\nimport * as i2 from '@angular/cdk/scrolling';\nimport * as i3 from '@angular/cdk/platform';\nimport * as i4 from '@angular/cdk/a11y';\nimport * as i5 from '@angular/cdk/bidi';\nimport { filter, takeUntil as takeUntil$1, take as take$1, tap as tap$1, map, catchError, debounceTime as debounceTime$1, distinctUntilChanged } from 'rxjs/operators';\nimport * as i1$4 from '@angular/common/http';\nimport { HttpErrorResponse, HttpHeaders } from '@angular/common/http';\nimport { parse, formatDistanceToNow, format, parseISO, isSameDay } from 'date-fns';\nimport enUS from 'date-fns/locale/en-US';\nimport ca from 'date-fns/locale/ca';\nimport enGB from 'date-fns/locale/en-GB';\nimport es from 'date-fns/locale/es';\nimport fr from 'date-fns/locale/fr';\nimport it from 'date-fns/locale/it';\nimport pt from 'date-fns/locale/pt';\nimport ro$1 from 'date-fns/locale/ro';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i2$4 from '@angular/platform-browser';\nimport * as i3$2 from '@angular/material/form-field';\nimport * as i5$1 from '@angular/material/core';\nimport { BehaviorSubject as BehaviorSubject$1 } from 'rxjs/internal/BehaviorSubject';\nimport * as i2$7 from '@angular/router';\nimport * as jsonPath from 'jsonpath';\n\nclass IBannerBulkActions {\r\n}\r\nvar BannerBulkActionType;\r\n(function (BannerBulkActionType) {\r\n    /**\r\n     * icon actions (left actions)\r\n     */\r\n    BannerBulkActionType[\"Icon\"] = \"icon\";\r\n    /**\r\n     * text actions (right actions)\r\n     */\r\n    BannerBulkActionType[\"Text\"] = \"text\";\r\n})(BannerBulkActionType || (BannerBulkActionType = {}));\n\n/**\r\n * Model to define the `bottom` position of the drop down menu.\r\n */\r\nclass DropDownMenuBottomPosition {\r\n    /**\r\n     * @param parentTop The `bottom` position of the menu parent (anchor)\r\n     * @param menuSpacingY A spacing to add to definition of menu Y position\r\n     */\r\n    constructor(parentTop, menuSpacingY) {\r\n        this.parentTop = parentTop;\r\n        this.menuSpacingY = menuSpacingY;\r\n    }\r\n    /**\r\n     * Returns the `bottom` position of the drop down menu\r\n     */\r\n    getMenuBottomPosition() {\r\n        const bottom = Math.floor(window.innerHeight - this.parentTop + this.menuSpacingY);\r\n        return bottom;\r\n    }\r\n}\n\n/**\r\n * Model to define the `top` position of the drop down menu.\r\n */\r\nclass DropDownMenuTopPosition {\r\n    /**\r\n     * @param parentTop The `top` position of the menu parent (anchor)\r\n     * @param parentHeight The height of the menu parent (anchor)\r\n     * @param menuSpacingY A spacing to add to definition of menu Y position\r\n     */\r\n    constructor(parentTop, parentHeight, menuSpacingY) {\r\n        this.parentTop = parentTop;\r\n        this.parentHeight = parentHeight;\r\n        this.menuSpacingY = menuSpacingY;\r\n    }\r\n    /**\r\n     * Returns the `top` position of the drop down menu\r\n     */\r\n    getMenuTopPosition() {\r\n        const top = Math.floor(this.parentTop + this.parentHeight + this.menuSpacingY);\r\n        return top;\r\n    }\r\n}\n\n/**\r\n * Represents the position that the `DropdownMenuComponent` can be shown.\r\n *\r\n * Above: The `DropdownMenuComponent` will be shown above the parent element.\r\n *\r\n * Below: The `DropdownMenuComponent` will be shown below the parent element.\r\n */\r\nvar DropDownMenuPositionEnum;\r\n(function (DropDownMenuPositionEnum) {\r\n    DropDownMenuPositionEnum[\"Above\"] = \"above\";\r\n    DropDownMenuPositionEnum[\"Below\"] = \"below\";\r\n})(DropDownMenuPositionEnum || (DropDownMenuPositionEnum = {}));\n\n/**\r\n * Shows a MatTooltip when hovering an HTML Element whose inner text/value extends past its width/height limits.\r\n * To allow to show the tooltip on a multiline element (when scrollHeight exceeds offsetHeight),\r\n * the element must have the 'line-clamp' class.\r\n */\r\nclass TooltipHoverDirective extends MatTooltip {\r\n    constructor(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, _scrollStrategy, _dir, _defaultOptions) {\r\n        super(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, _scrollStrategy, _dir, _defaultOptions, document);\r\n        this.element = _elementRef;\r\n    }\r\n    onHover() {\r\n        if (this.priTooltipHover === false) {\r\n            return;\r\n        }\r\n        const _element = this.element.nativeElement;\r\n        // Show tooltip when clamping using the \"white-space: nowrap;\" CSS method (one line clamping)\r\n        const nowrapTooltip = _element.offsetWidth < _element.scrollWidth;\r\n        // Show tooltip when using the \"line-clamp\" CSS method (multiline clamping)\r\n        const lineClampTooltip = _element.className?.includes('line-clamp') && _element.offsetHeight < _element.scrollHeight;\r\n        if (nowrapTooltip || lineClampTooltip) {\r\n            this.message = _element.innerText || _element.value;\r\n        }\r\n        else {\r\n            this.message = '';\r\n        }\r\n    }\r\n}\r\nTooltipHoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TooltipHoverDirective, deps: [{ token: i1.Overlay }, { token: i0.ElementRef }, { token: i2.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: i4.AriaDescriber }, { token: i4.FocusMonitor }, { token: MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i5.Directionality }, { token: MAT_TOOLTIP_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });\r\nTooltipHoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TooltipHoverDirective, isStandalone: true, selector: \"[priTooltipHover]\", inputs: { priTooltipHover: \"priTooltipHover\" }, host: { listeners: { \"mouseover\": \"onHover()\" } }, usesInheritance: true, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TooltipHoverDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priTooltipHover]',\r\n                    standalone: true\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: i4.AriaDescriber }, { type: i4.FocusMonitor }, { type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [MAT_TOOLTIP_SCROLL_STRATEGY]\r\n                }] }, { type: i5.Directionality }, { type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [MAT_TOOLTIP_DEFAULT_OPTIONS]\r\n                }] }]; }, propDecorators: { priTooltipHover: [{\r\n                type: Input\r\n            }], onHover: [{\r\n                type: HostListener,\r\n                args: ['mouseover']\r\n            }] } });\n\n/**\r\n * Component responsible to handle drop down menus\r\n */\r\nclass DropDownMenuComponent {\r\n    constructor() {\r\n        this.menuSpacingY = 4;\r\n        this.menuSpacingX = 0;\r\n        this.selectedItemIndex = -1;\r\n        this.subItems = null;\r\n        this.subItemsStyle = null;\r\n        this.menuPositionLeft = 'left';\r\n        this.menuPositionRight = 'right';\r\n        this.borderWidth = 1;\r\n        this.menuRowHeight = 36;\r\n        this.ngZone = inject(NgZone);\r\n        this.ready$ = new BehaviorSubject(false);\r\n        this.menuStyle$ = new BehaviorSubject({});\r\n        this.destroy$ = new Subject();\r\n    }\r\n    set customClass(value) {\r\n        this._customClass = value;\r\n    }\r\n    get customClass() {\r\n        return this._customClass ?? '';\r\n    }\r\n    onDocumentClick(event) {\r\n        if (!this.ready$.value) {\r\n            return;\r\n        }\r\n        let clickedComponent = event.target;\r\n        let inside = false;\r\n        do {\r\n            if (clickedComponent === this.container.nativeElement) {\r\n                inside = true;\r\n            }\r\n            clickedComponent = clickedComponent.parentNode;\r\n        } while (clickedComponent);\r\n        if (!inside) {\r\n            this.close();\r\n        }\r\n    }\r\n    onWindowResize() {\r\n        this.updatePosition();\r\n    }\r\n    ngOnInit() {\r\n        this.menuPositionUpdater?.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            // [ALERT] - NgZone is used to wait for any DOM updates to finish before starting the positioning calculation\r\n            this.ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\r\n                this.updatePosition();\r\n            });\r\n        });\r\n        ScrollObserver.fromScrollableParents(this.anchorElementRef.nativeElement)\r\n            .pipe(takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            this.close();\r\n        });\r\n    }\r\n    ngAfterViewInit() {\r\n        this.calculateInitialPosition();\r\n        // HACK - prevent that on the first 'documentClick' event the view is not yet ready\r\n        setTimeout(() => {\r\n            this.ready$.next(true);\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.complete();\r\n    }\r\n    maxWidthPx() {\r\n        return this.maxWidth ? `${this.maxWidth}px` : '100%';\r\n    }\r\n    onRowClick(index, item) {\r\n        this.subItems = null;\r\n        this.subItemsStyle = null;\r\n        if (item.isDisabled && item.isDisabled()) {\r\n            return;\r\n        }\r\n        if (item.action) {\r\n            item.action();\r\n            this.close();\r\n            return;\r\n        }\r\n        if (item.items && item.items.length > 0) {\r\n            this.subItems = item.items;\r\n            this.selectedItemIndex = index;\r\n            this.calculateSubItemsPosition(index);\r\n        }\r\n    }\r\n    onRowMouseEnter(index, item) {\r\n        if (item.items && item.items.length > 0) {\r\n            this.subItems = item.items;\r\n            this.calculateSubItemsPosition(index);\r\n            this.selectedItemIndex = index;\r\n        }\r\n        else {\r\n            this.subItems = null;\r\n            this.subItemsStyle = null;\r\n            this.selectedItemIndex = -1;\r\n        }\r\n    }\r\n    onSubsectionMouseLeave() {\r\n        this.subItems = null;\r\n        this.subItemsStyle = null;\r\n        this.selectedItemIndex = -1;\r\n    }\r\n    errorHasLink(item) {\r\n        if (!item) {\r\n            return 'default';\r\n        }\r\n        return item.action !== undefined ? 'pointer' : 'default !important';\r\n    }\r\n    calculateInitialPosition() {\r\n        // set the default position if the property is not setted or if is misspelled\r\n        if (!this.position ||\r\n            [this.menuPositionLeft, this.menuPositionRight].indexOf(this.position.toLowerCase()) < 0) {\r\n            this.position = this.menuPositionRight;\r\n        }\r\n        // Get the parent position and size\r\n        const { parentX, parentY, parentWidth, parentHeight } = this.getParentElementMetadata();\r\n        const menuWidth = this.getMenuWidth();\r\n        // initialize position variables\r\n        let menuPositionY = this.getMenuPositionY(parentY, parentHeight);\r\n        const menuX = this.getMenuPositionX(this.position === this.menuPositionLeft, parentX, parentWidth, menuWidth);\r\n        // Calculate the left position of the menu\r\n        // If the menu is not fully visible, it will change sides\r\n        if (this.position.toLowerCase() === this.menuPositionRight) {\r\n            if (menuX < 0) {\r\n                // the menu will be hidden on the left side of the window\r\n                // switch sides\r\n                this.menuPositionIsLeft = true;\r\n            }\r\n            else {\r\n                this.menuPositionIsLeft = false;\r\n            }\r\n        }\r\n        else {\r\n            if (menuX + this.maxWidth > window.innerWidth) {\r\n                // the menu will be hidden on the left side of the window\r\n                // switch sides\r\n                this.menuPositionIsLeft = false;\r\n            }\r\n            else {\r\n                this.menuPositionIsLeft = true;\r\n            }\r\n        }\r\n        menuPositionY = this.getMenuPositionY(parentY, parentHeight);\r\n        this.menuLeft = this.getMenuPositionX(this.menuPositionIsLeft, parentX, parentWidth, menuWidth);\r\n        const style = this.getStyle(parentY, parentHeight, this.maxHeight, this.menuLeft, menuPositionY);\r\n        this.menuStyle$.next(style);\r\n        this.onMenuPositionYChange(menuPositionY.menuPosition);\r\n    }\r\n    updatePosition() {\r\n        const { parentX, parentY, parentWidth, parentHeight } = this.getParentElementMetadata();\r\n        const menuWidth = this.getMenuWidth();\r\n        const menuPositionY = this.getMenuPositionY(parentY, parentHeight);\r\n        this.menuTop = menuPositionY.value;\r\n        this.menuLeft = this.getMenuPositionX(this.menuPositionIsLeft, parentX, parentWidth, menuWidth);\r\n        const style = this.getStyle(parentY, parentHeight, this.maxHeight, this.menuLeft, menuPositionY);\r\n        this.menuStyle$.next(style);\r\n    }\r\n    calculateSubItemsPosition(parentIndex) {\r\n        const windowScrollY = document.documentElement.scrollTop;\r\n        let top = parentIndex * this.menuRowHeight - this.borderWidth;\r\n        let left = this.container.nativeElement.offsetWidth - 2;\r\n        let right = left;\r\n        const height = this.subItems.length * this.menuRowHeight;\r\n        let isHiddenBothSides = false;\r\n        let positionIsRight = true;\r\n        // verify if sub menu will be hidden on the bottom\r\n        if (this.menuTop + top + height > window.innerHeight + windowScrollY) {\r\n            top = top + this.menuRowHeight - height;\r\n        }\r\n        // verify if sub menu will be hidden on the right\r\n        if (window.innerWidth - this.menuRight + this.maxWidth > window.innerWidth) {\r\n            //don't fit on the right side\r\n            if (window.innerWidth - this.menuRight - this.maxWidth * 2 < 0) {\r\n                //don't fit on the left side neither\r\n                isHiddenBothSides = true;\r\n            }\r\n            else {\r\n                // if fit on the left side\r\n                positionIsRight = false;\r\n            }\r\n        }\r\n        else {\r\n            // if fit on the right side\r\n            positionIsRight = true;\r\n        }\r\n        if (isHiddenBothSides) {\r\n            if (this.menuPositionIsTop) {\r\n                top = this.items.length * this.menuRowHeight;\r\n            }\r\n            else {\r\n                top = -(this.subItems.length * this.menuRowHeight + 2);\r\n            }\r\n            positionIsRight = this.menuPositionIsLeft;\r\n            left = -1;\r\n            right = -1;\r\n        }\r\n        this.subItemsStyle = {\r\n            top: `${top}px`,\r\n            'max-width': `${this.maxWidth}px`\r\n        };\r\n        if (positionIsRight) {\r\n            this.subItemsStyle.left = `${left}px`;\r\n        }\r\n        else {\r\n            this.subItemsStyle.right = `${right}px`;\r\n        }\r\n    }\r\n    getMenuWidth() {\r\n        return this.container.nativeElement.offsetWidth;\r\n    }\r\n    getMenuPositionY(parentY, parentHeight) {\r\n        const menuTopPosition = new DropDownMenuTopPosition(parentY, parentHeight, this.menuSpacingY);\r\n        const maxAvailableHeightBelow = this.getMaxAvailableHeightBelow(menuTopPosition);\r\n        const hasAvailableSpaceBelow = maxAvailableHeightBelow >= this.maxHeight;\r\n        const menuBottomPosition = new DropDownMenuBottomPosition(parentY, this.menuSpacingY);\r\n        const maxAvailableHeightAbove = this.getMaxAvailableHeightAbove(menuBottomPosition);\r\n        const hasAvailableSpaceAbove = maxAvailableHeightAbove >= this.maxHeight;\r\n        /**\r\n         * If there is available space below the parent (anchor), show the menu below the parent.\r\n         * If there is no available space below the parent (anchor), check if there is available space above the parent.\r\n         * If there is available space above the parent (anchor), show the menu above the parent.\r\n         * If there is no available space below and above, check the available space and show the menu where there is more space.\r\n         */\r\n        if (hasAvailableSpaceBelow || (!hasAvailableSpaceAbove && maxAvailableHeightBelow > maxAvailableHeightAbove)) {\r\n            const topValue = menuTopPosition.getMenuTopPosition();\r\n            return {\r\n                property: 'top',\r\n                value: topValue,\r\n                menuPosition: DropDownMenuPositionEnum.Below\r\n            };\r\n        }\r\n        else {\r\n            const bottomValue = menuBottomPosition.getMenuBottomPosition();\r\n            return {\r\n                property: 'bottom',\r\n                value: bottomValue,\r\n                menuPosition: DropDownMenuPositionEnum.Above\r\n            };\r\n        }\r\n    }\r\n    getMenuPositionX(isPositionLeft, parentX, parentWidth, menuWidth) {\r\n        let x;\r\n        if (isPositionLeft) {\r\n            x = parentX + this.menuSpacingX;\r\n        }\r\n        else {\r\n            x = parentX + parentWidth - menuWidth - this.menuSpacingX;\r\n        }\r\n        return Math.floor(x);\r\n    }\r\n    /**\r\n     * Returns the available height for the menu be placed below the parent (anchor).\r\n     *\r\n     * @param menuTopPosition An object instance of `DropDownMenuTopPosition` class.\r\n     */\r\n    getMaxAvailableHeightBelow(menuTopPosition) {\r\n        const spacing = 8;\r\n        const top = menuTopPosition.getMenuTopPosition();\r\n        const availableHeight = window.innerHeight - top - spacing;\r\n        return availableHeight;\r\n    }\r\n    /**\r\n     * Returns the available height for the menu be placed above the parent (anchor).\r\n     *\r\n     * @param menuBottomPosition An object instance of `DropDownMenuBottomPosition` class.\r\n     */\r\n    getMaxAvailableHeightAbove(menuBottomPosition) {\r\n        const spacing = 8;\r\n        const bottom = menuBottomPosition.getMenuBottomPosition();\r\n        const availableHeight = window.innerHeight - bottom - spacing;\r\n        return availableHeight;\r\n    }\r\n    /**\r\n     * Returns metadata about the parent element, such as position and size.\r\n     */\r\n    getParentElementMetadata() {\r\n        const parentY = this.anchorElementRef.nativeElement.getBoundingClientRect().y;\r\n        const parentX = this.anchorElementRef.nativeElement.getBoundingClientRect().x;\r\n        const parentWidth = this.getFormattedComputedStyleValue(this.anchorElementRef.nativeElement, 'width');\r\n        const parentHeight = this.getFormattedComputedStyleValue(this.anchorElementRef.nativeElement, 'height');\r\n        return { parentY, parentX, parentWidth, parentHeight };\r\n    }\r\n    /**\r\n     * Returns the formatted value of a computed style property (fixed notation = 2 ).\r\n     *\r\n     * @param element The element to get the computed style value.\r\n     * @param property The property to get and format the computed style value.\r\n     */\r\n    getFormattedComputedStyleValue(element, property) {\r\n        let style = window.getComputedStyle(element)[property];\r\n        if (style === 'auto') {\r\n            style =\r\n                property === 'width'\r\n                    ? element.getBoundingClientRect().width + 'px'\r\n                    : element.getBoundingClientRect().height + 'px';\r\n        }\r\n        const replacedValue = Number(style.replace('px', ''));\r\n        const formattedValue = Number(replacedValue.toFixed(2));\r\n        return formattedValue;\r\n    }\r\n    /**\r\n     * Returns the style of the menu.\r\n     *\r\n     * @param parentY The Y position of the parent element.\r\n     * @param parentHeight The height of the parent element.\r\n     * @param maxHeight The maximum height of the menu.\r\n     * @param menuPositionX The position of the menu on the X axis.\r\n     * @param menuPositionY The position of the menu on the Y axis.\r\n     */\r\n    getStyle(parentY, parentHeight, maxHeight, menuPositionX, menuPositionY) {\r\n        const toPX = (value) => `${value}px`;\r\n        const menuTopPosition = new DropDownMenuTopPosition(parentY, parentHeight, this.menuSpacingY);\r\n        const maxAvailableHeightBelow = this.getMaxAvailableHeightBelow(menuTopPosition);\r\n        const hasAvailableSpaceBelow = maxAvailableHeightBelow >= this.maxHeight;\r\n        const menuBottomPosition = new DropDownMenuBottomPosition(parentY, this.menuSpacingY);\r\n        const maxAvailableHeightAbove = this.getMaxAvailableHeightAbove(menuBottomPosition);\r\n        const hasAvailableSpaceAbove = maxAvailableHeightAbove >= this.maxHeight;\r\n        const maxAvailableHeight = Math.max(maxAvailableHeightBelow, maxAvailableHeightAbove);\r\n        const menuTop = menuPositionY.value;\r\n        const menuLeft = menuPositionX;\r\n        const menuTopPx = toPX(menuTop);\r\n        const menuLeftPx = toPX(menuLeft);\r\n        const maxHeightPx = toPX(hasAvailableSpaceBelow || hasAvailableSpaceAbove ? maxHeight : maxAvailableHeight);\r\n        const style = {\r\n            top: menuPositionY.property === 'top' ? menuTopPx : 'unset',\r\n            bottom: menuPositionY.property === 'bottom' ? menuTopPx : 'unset',\r\n            left: menuLeftPx,\r\n            'max-height': maxHeightPx\r\n        };\r\n        return style;\r\n    }\r\n    /**\r\n     * Closes the menu.\r\n     */\r\n    close() {\r\n        this.dismissView();\r\n        this.onDismiss();\r\n    }\r\n}\r\nDropDownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nDropDownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DropDownMenuComponent, selector: \"ng-component\", inputs: { dismissView: \"dismissView\", onDismiss: \"onDismiss\", onMenuPositionYChange: \"onMenuPositionYChange\", anchorElementRef: \"anchorElementRef\", items: \"items\", position: \"position\", maxWidth: \"maxWidth\", maxHeight: \"maxHeight\", menuSpacingY: \"menuSpacingY\", menuSpacingX: \"menuSpacingX\", menuPositionUpdater: \"menuPositionUpdater\", customClass: \"customClass\", customPanelTemplate: \"customPanelTemplate\" }, host: { listeners: { \"document:click\": \"onDocumentClick($event)\", \"window:resize\": \"onWindowResize()\" } }, viewQueries: [{ propertyName: \"itemsElement\", first: true, predicate: [\"items\"], descendants: true, static: true }, { propertyName: \"container\", first: true, predicate: [\"container\"], descendants: true, static: true }], ngImport: i0, template: \"<div\\r\\n\\t#container\\r\\n\\tclass=\\\"pri-field-options\\\"\\r\\n\\t[ngClass]=\\\"{ 'not-visible': (ready$ | async) === false }\\\"\\r\\n\\t[class]=\\\"customClass\\\"\\r\\n\\t[ngStyle]=\\\"menuStyle$ | async\\\">\\r\\n\\t<ng-container *ngIf=\\\"customPanelTemplate; then customTemplateContainer; else defaultPanelContainer\\\"></ng-container>\\r\\n</div>\\r\\n\\r\\n<ng-template #defaultPanelContainer>\\r\\n\\t<div #lines class=\\\"lines\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\t*ngFor=\\\"let item of items; let i = index\\\"\\r\\n\\t\\t\\tclass=\\\"line {{ item.class }}\\\"\\r\\n\\t\\t\\t[style.max-width]=\\\"maxWidthPx()\\\"\\r\\n\\t\\t\\t[style.cursor]=\\\"errorHasLink(item)\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{\\r\\n\\t\\t\\t\\t'line-selected': selectedItemIndex === i,\\r\\n\\t\\t\\t\\t'line-with-icon': item.iconClass,\\r\\n\\t\\t\\t\\t'line-with-sub-items': item.items\\r\\n\\t\\t\\t}\\\"\\r\\n\\t\\t\\t(click)=\\\"onRowClick(i, item)\\\"\\r\\n\\t\\t\\t(mouseenter)=\\\"onRowMouseEnter(i, item)\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"item.isDisabled && item.isDisabled() === true ? true : null\\\"\\r\\n\\t\\t\\tattr.data-testid=\\\"dropdown-menu-item-{{ i }}\\\">\\r\\n\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"description\\\" priTooltipHover>{{ item.title }}</div>\\r\\n\\t\\t\\t<div class=\\\"sub-items-arrow ti-ux-chevron-right\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"subItems\\\" [ngStyle]=\\\"subItemsStyle\\\" class=\\\"lines sub-lines\\\" (mouseleave)=\\\"onSubsectionMouseLeave()\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"line\\\"\\r\\n\\t\\t\\t*ngFor=\\\"let item of subItems; let i = index\\\"\\r\\n\\t\\t\\t(click)=\\\"onRowClick(i, item)\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"item.isDisabled && item.isDisabled() === true ? true : null\\\"\\r\\n\\t\\t\\tattr.data-testid=\\\"dropdown-menu-sub-item-{{ i }}\\\">\\r\\n\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"description\\\">{{ item.title }}</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #customTemplateContainer>\\r\\n\\t<ng-container [ngTemplateOutlet]=\\\"customPanelTemplate\\\"></ng-container>\\r\\n</ng-template>\\r\\n\", styles: [\".pri-field-options{display:block;position:fixed;top:0;left:0;z-index:1043;font-size:1rem;overflow-y:auto}.pri-field-options.not-visible{visibility:hidden;opacity:0}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownMenuComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ encapsulation: ViewEncapsulation.None, template: \"<div\\r\\n\\t#container\\r\\n\\tclass=\\\"pri-field-options\\\"\\r\\n\\t[ngClass]=\\\"{ 'not-visible': (ready$ | async) === false }\\\"\\r\\n\\t[class]=\\\"customClass\\\"\\r\\n\\t[ngStyle]=\\\"menuStyle$ | async\\\">\\r\\n\\t<ng-container *ngIf=\\\"customPanelTemplate; then customTemplateContainer; else defaultPanelContainer\\\"></ng-container>\\r\\n</div>\\r\\n\\r\\n<ng-template #defaultPanelContainer>\\r\\n\\t<div #lines class=\\\"lines\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\t*ngFor=\\\"let item of items; let i = index\\\"\\r\\n\\t\\t\\tclass=\\\"line {{ item.class }}\\\"\\r\\n\\t\\t\\t[style.max-width]=\\\"maxWidthPx()\\\"\\r\\n\\t\\t\\t[style.cursor]=\\\"errorHasLink(item)\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{\\r\\n\\t\\t\\t\\t'line-selected': selectedItemIndex === i,\\r\\n\\t\\t\\t\\t'line-with-icon': item.iconClass,\\r\\n\\t\\t\\t\\t'line-with-sub-items': item.items\\r\\n\\t\\t\\t}\\\"\\r\\n\\t\\t\\t(click)=\\\"onRowClick(i, item)\\\"\\r\\n\\t\\t\\t(mouseenter)=\\\"onRowMouseEnter(i, item)\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"item.isDisabled && item.isDisabled() === true ? true : null\\\"\\r\\n\\t\\t\\tattr.data-testid=\\\"dropdown-menu-item-{{ i }}\\\">\\r\\n\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"description\\\" priTooltipHover>{{ item.title }}</div>\\r\\n\\t\\t\\t<div class=\\\"sub-items-arrow ti-ux-chevron-right\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"subItems\\\" [ngStyle]=\\\"subItemsStyle\\\" class=\\\"lines sub-lines\\\" (mouseleave)=\\\"onSubsectionMouseLeave()\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"line\\\"\\r\\n\\t\\t\\t*ngFor=\\\"let item of subItems; let i = index\\\"\\r\\n\\t\\t\\t(click)=\\\"onRowClick(i, item)\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"item.isDisabled && item.isDisabled() === true ? true : null\\\"\\r\\n\\t\\t\\tattr.data-testid=\\\"dropdown-menu-sub-item-{{ i }}\\\">\\r\\n\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"description\\\">{{ item.title }}</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #customTemplateContainer>\\r\\n\\t<ng-container [ngTemplateOutlet]=\\\"customPanelTemplate\\\"></ng-container>\\r\\n</ng-template>\\r\\n\", styles: [\".pri-field-options{display:block;position:fixed;top:0;left:0;z-index:1043;font-size:1rem;overflow-y:auto}.pri-field-options.not-visible{visibility:hidden;opacity:0}\\n\"] }]\r\n        }], propDecorators: { itemsElement: [{\r\n                type: ViewChild,\r\n                args: ['items', { static: true }]\r\n            }], container: [{\r\n                type: ViewChild,\r\n                args: ['container', { static: true }]\r\n            }], dismissView: [{\r\n                type: Input\r\n            }], onDismiss: [{\r\n                type: Input\r\n            }], onMenuPositionYChange: [{\r\n                type: Input\r\n            }], anchorElementRef: [{\r\n                type: Input\r\n            }], items: [{\r\n                type: Input\r\n            }], position: [{\r\n                type: Input\r\n            }], maxWidth: [{\r\n                type: Input\r\n            }], maxHeight: [{\r\n                type: Input\r\n            }], menuSpacingY: [{\r\n                type: Input\r\n            }], menuSpacingX: [{\r\n                type: Input\r\n            }], menuPositionUpdater: [{\r\n                type: Input\r\n            }], customClass: [{\r\n                type: Input\r\n            }], customPanelTemplate: [{\r\n                type: Input\r\n            }], onDocumentClick: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize']\r\n            }] } });\n\n/**\r\n * Directive responsible to handle drop down menus\r\n */\r\nclass DropDownMenuDirective {\r\n    constructor() {\r\n        this.menuSpacingY = 4;\r\n        this.menuSpacingX = 0;\r\n        this.dropDownMenuShow = new EventEmitter();\r\n        this.dropDownMenuHide = new EventEmitter();\r\n        this.menuPositionYChange = new EventEmitter();\r\n        this.anchorElement = inject(ElementRef);\r\n        this.isOpen = false;\r\n        this.availableTriggers = ['click', 'none'];\r\n        this.domService = inject(DomService);\r\n    }\r\n    onWindowResize() {\r\n        if (this.isOpen && this.closeMenuInstanceCallback) {\r\n            this.closeMenuInstanceCallback();\r\n            this.closeMenuInstanceCallback = null;\r\n        }\r\n        this.onDismiss();\r\n    }\r\n    ngOnInit() {\r\n        this.onShowDropdown = () => this.showDropdown();\r\n        // subscribe the Show Dropdown Menu event\r\n        if (this.priDropDownMenuShow) {\r\n            this.showEventSubscription = this.priDropDownMenuShow.subscribe(() => {\r\n                if (!this.isOpen) {\r\n                    this.onShowDropdown();\r\n                }\r\n            });\r\n        }\r\n        // subscribe the Hide Dropdown Menu event\r\n        if (this.priDropDownMenuHide) {\r\n            this.hideEventSubscription = this.priDropDownMenuHide.subscribe(() => {\r\n                if (this.isOpen && this.closeMenuInstanceCallback) {\r\n                    this.isOpen = false;\r\n                    this.closeMenuInstanceCallback();\r\n                }\r\n            });\r\n        }\r\n        // sanitize the trigger property\r\n        if (!this.priDropDownMenuTrigger || this.availableTriggers.indexOf(this.priDropDownMenuTrigger) < 0) {\r\n            this.priDropDownMenuTrigger = 'click';\r\n        }\r\n        // actions by trigger\r\n        const self = this;\r\n        switch (this.priDropDownMenuTrigger) {\r\n            case 'click':\r\n                this.anchorElement.nativeElement.addEventListener('click', self.onShowDropdown);\r\n                break;\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.closeMenuInstanceCallback) {\r\n            this.closeMenuInstanceCallback();\r\n        }\r\n        if (this.showEventSubscription) {\r\n            this.showEventSubscription.unsubscribe();\r\n            this.showEventSubscription = null;\r\n        }\r\n        if (this.hideEventSubscription) {\r\n            this.hideEventSubscription.unsubscribe();\r\n            this.hideEventSubscription = null;\r\n        }\r\n        if (this.priDropDownMenuTrigger !== 'none') {\r\n            this.anchorElement.nativeElement.removeEventListener(this.priDropDownMenuTrigger, this.onShowDropdown);\r\n        }\r\n    }\r\n    onDismiss() {\r\n        this.isOpen = false;\r\n        this.closeMenuInstanceCallback = null;\r\n        this.dropDownMenuHide.emit(this.anchorElement.nativeElement);\r\n    }\r\n    onMenuPositionYChange(position) {\r\n        this.menuPositionYChange.emit(position);\r\n    }\r\n    showDropdown() {\r\n        if (!this.isOpen) {\r\n            let maxWidth = parseInt(this.priDropDownMenuMaxWidth, 10);\r\n            if (isNaN(maxWidth)) {\r\n                maxWidth = 160;\r\n            }\r\n            const self = this;\r\n            const properties = {\r\n                items: this.priDropDownMenuItems,\r\n                anchorElementRef: this.anchorElement,\r\n                position: this.priDropDownMenuPosition,\r\n                maxWidth,\r\n                customClass: this.priDropDownMenuCustomClass,\r\n                customPanelTemplate: this.customPanelTemplate,\r\n                menuPositionUpdater: this.menuPositionUpdater,\r\n                menuSpacingY: this.menuSpacingY,\r\n                menuSpacingX: this.menuSpacingX,\r\n                maxHeight: this.maxHeight,\r\n                onDismiss: () => {\r\n                    self.onDismiss();\r\n                },\r\n                onMenuPositionYChange: (position) => {\r\n                    this.onMenuPositionYChange(position);\r\n                }\r\n            };\r\n            /**\r\n             * TO DO: Change append mode from `domService.appendComponentToBody` to `domService.appendComponentToBodyAndGetReference`.\r\n             * That way we can use the component instance to access the outputs instead of\r\n             * send event directly as input (like `onDismiss` and `onMenuPositionYChange`)\r\n             */\r\n            this.closeMenuInstanceCallback = this.domService.appendComponentToBody(DropDownMenuComponent, properties);\r\n            this.dropDownMenuShow.emit(this.anchorElement.nativeElement);\r\n        }\r\n        else {\r\n            this.dropDownMenuHide.emit(this.anchorElement.nativeElement);\r\n        }\r\n        this.isOpen = !this.isOpen;\r\n    }\r\n}\r\nDropDownMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\r\nDropDownMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DropDownMenuDirective, isStandalone: true, selector: \"[priDropDownMenu]\", inputs: { priDropDownMenuItems: \"priDropDownMenuItems\", priDropDownMenuPosition: \"priDropDownMenuPosition\", priDropDownMenuMaxWidth: \"priDropDownMenuMaxWidth\", priDropDownMenuCustomClass: \"priDropDownMenuCustomClass\", priDropDownMenuTrigger: \"priDropDownMenuTrigger\", priDropDownMenuShow: \"priDropDownMenuShow\", priDropDownMenuHide: \"priDropDownMenuHide\", maxHeight: \"maxHeight\", menuSpacingY: \"menuSpacingY\", menuSpacingX: \"menuSpacingX\", menuPositionUpdater: \"menuPositionUpdater\", customPanelTemplate: \"customPanelTemplate\" }, outputs: { dropDownMenuShow: \"dropDownMenuShow\", dropDownMenuHide: \"dropDownMenuHide\", menuPositionYChange: \"menuPositionYChange\" }, host: { listeners: { \"window:resize\": \"onWindowResize()\" } }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownMenuDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priDropDownMenu]',\r\n                    standalone: true\r\n                }]\r\n        }], propDecorators: { priDropDownMenuItems: [{\r\n                type: Input\r\n            }], priDropDownMenuPosition: [{\r\n                type: Input\r\n            }], priDropDownMenuMaxWidth: [{\r\n                type: Input\r\n            }], priDropDownMenuCustomClass: [{\r\n                type: Input\r\n            }], priDropDownMenuTrigger: [{\r\n                type: Input\r\n            }], priDropDownMenuShow: [{\r\n                type: Input\r\n            }], priDropDownMenuHide: [{\r\n                type: Input\r\n            }], maxHeight: [{\r\n                type: Input\r\n            }], menuSpacingY: [{\r\n                type: Input\r\n            }], menuSpacingX: [{\r\n                type: Input\r\n            }], menuPositionUpdater: [{\r\n                type: Input\r\n            }], customPanelTemplate: [{\r\n                type: Input\r\n            }], dropDownMenuShow: [{\r\n                type: Output\r\n            }], dropDownMenuHide: [{\r\n                type: Output\r\n            }], menuPositionYChange: [{\r\n                type: Output\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize']\r\n            }] } });\n\nclass BulkActionsBannerComponent {\r\n    constructor(changeDetectorRef) {\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.visible = false;\r\n    }\r\n    set actions(actions) {\r\n        if (actions?.length) {\r\n            this.iconActions = actions.filter((action) => action.type === BannerBulkActionType.Icon);\r\n            this.textActions = actions.filter((action) => action.type === BannerBulkActionType.Text);\r\n        }\r\n    }\r\n    onWindowResize() {\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    /**\r\n     * Check if the action is hidden\r\n     */\r\n    hidden(action) {\r\n        return action.isHidden ? action.isHidden(action) : false;\r\n    }\r\n    /**\r\n     * Transforms bulk actions banner's sub-actions to DropDownMenuItems.\r\n     *\r\n     * @param subActions - The bulk actions banner's sub-actions to transform to DropDownMenuItems.\r\n     * @returns An array of bulk actions banner's sub-actions transformed to DropDownMenuItems.\r\n     */\r\n    getSubActions(subActions) {\r\n        const result = [];\r\n        subActions.forEach((subAction) => {\r\n            if (!this.hidden(subAction)) {\r\n                result.push({\r\n                    title: subAction.title,\r\n                    action: () => {\r\n                        subAction.action(subAction);\r\n                    },\r\n                    isDisabled: () => (subAction.isDisabled ? subAction.isDisabled(subAction) : false)\r\n                });\r\n            }\r\n        });\r\n        return result;\r\n    }\r\n    /**\r\n     * Execute the action function\r\n     */\r\n    executeAction(action) {\r\n        action.action(action);\r\n    }\r\n}\r\nBulkActionsBannerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BulkActionsBannerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nBulkActionsBannerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: BulkActionsBannerComponent, selector: \"pri-bulk-actions-banner\", inputs: { selectionInfo: \"selectionInfo\", visible: \"visible\", actions: \"actions\" }, host: { listeners: { \"window:resize\": \"onWindowResize()\" } }, ngImport: i0, template: \"<div class=\\\"actions-header\\\" [ngClass]=\\\"{ visible: visible }\\\">\\r\\n\\t<div class=\\\"left-side\\\">\\r\\n\\t\\t<div class=\\\"selection-info\\\">\\r\\n\\t\\t\\t{{ selectionInfo }}\\r\\n\\t\\t</div>\\r\\n\\t\\t<ng-container *ngFor=\\\"let iconAction of iconActions\\\">\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngIf=\\\"(!iconAction.subActions || iconAction.subActions.length === 0) && !hidden(iconAction)\\\"\\r\\n\\t\\t\\t\\tclass=\\\"icon-actions\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"iconAction.isDisabled ? iconAction.isDisabled(iconAction) : false\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"executeAction(iconAction)\\\">\\r\\n\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t[class]=\\\"iconAction.icon || 'ti-ux-asterisk'\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltip]=\\\"iconAction.title\\\"\\r\\n\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!iconAction.title\\\"></i>\\r\\n\\t\\t\\t</button>\\r\\n\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngIf=\\\"iconAction.subActions?.length > 0 && !hidden(iconAction)\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"iconAction.isDisabled ? iconAction.isDisabled(iconAction) : false\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\tclass=\\\"icon-actions dropdown-toggle\\\"\\r\\n\\t\\t\\t\\taria-haspopup=\\\"true\\\"\\r\\n\\t\\t\\t\\taria-expanded=\\\"false\\\"\\r\\n\\t\\t\\t\\tdata-toggle=\\\"dropdown\\\"\\r\\n\\t\\t\\t\\tpriDropDownMenu\\r\\n\\t\\t\\t\\tpriDropDownMenuPosition=\\\"left\\\"\\r\\n\\t\\t\\t\\t[priDropDownMenuItems]=\\\"getSubActions(iconAction.subActions)\\\">\\r\\n\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t[class]=\\\"iconAction.icon || 'ti-ux-more-vertical'\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltip]=\\\"iconAction.title\\\"\\r\\n\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!iconAction.title\\\"></i>\\r\\n\\t\\t\\t</button>\\r\\n\\t\\t</ng-container>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"text-actions\\\">\\r\\n\\t\\t<ng-container *ngFor=\\\"let textAction of textActions\\\">\\r\\n\\t\\t\\t<a *ngIf=\\\"!hidden(textAction)\\\" class=\\\"bulk-edit\\\" (click)=\\\"executeAction(textAction)\\\">\\r\\n\\t\\t\\t\\t{{ textAction?.title }}\\r\\n\\t\\t\\t</a>\\r\\n\\t\\t</ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-bulk-actions-banner [class^=ti-],pri-bulk-actions-banner [class^=\\\" ti-\\\"]{font-size:1em!important}pri-bulk-actions-banner .actions-header{display:flex;justify-content:space-between;align-items:center;background-color:var(--theme-10);border:1px solid var(--theme-100);padding:0 12px;overflow:hidden;height:0;opacity:0;transition:height .25s ease-out,opacity 0s linear .15s}pri-bulk-actions-banner .actions-header.visible{height:49px;opacity:1;transition:height .25s ease-in}pri-bulk-actions-banner .actions-header .left-side{display:flex}pri-bulk-actions-banner .actions-header .left-side .selection-info{color:var(--grey-8);letter-spacing:.28px;margin-right:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}pri-bulk-actions-banner .actions-header .left-side .icon-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:none;outline:none;font-size:16px;width:28px;height:28px;margin-left:12px;color:var(--grey-8)}pri-bulk-actions-banner .actions-header .left-side .icon-actions :hover{cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:16px;width:28px;height:28px;border-radius:50%;background-color:var(--grey-2)}pri-bulk-actions-banner .actions-header .left-side .icon-actions:disabled{opacity:.7;pointer-events:auto;cursor:default}pri-bulk-actions-banner .actions-header .left-side .icon-actions:disabled i{pointer-events:none}pri-bulk-actions-banner .actions-header .left-side button:first-of-type{margin-left:unset}pri-bulk-actions-banner .actions-header .text-actions{color:var(--theme-100)}pri-bulk-actions-banner .actions-header .text-actions a{padding-left:14px}pri-bulk-actions-banner .actions-header .text-actions :hover{text-decoration:underline;cursor:pointer}pri-bulk-actions-banner .actions-header .text-actions :not(:last-child){border-right:1px solid var(--grey-4);padding:0 14px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$1.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"directive\", type: DropDownMenuDirective, selector: \"[priDropDownMenu]\", inputs: [\"priDropDownMenuItems\", \"priDropDownMenuPosition\", \"priDropDownMenuMaxWidth\", \"priDropDownMenuCustomClass\", \"priDropDownMenuTrigger\", \"priDropDownMenuShow\", \"priDropDownMenuHide\", \"maxHeight\", \"menuSpacingY\", \"menuSpacingX\", \"menuPositionUpdater\", \"customPanelTemplate\"], outputs: [\"dropDownMenuShow\", \"dropDownMenuHide\", \"menuPositionYChange\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BulkActionsBannerComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-bulk-actions-banner', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"actions-header\\\" [ngClass]=\\\"{ visible: visible }\\\">\\r\\n\\t<div class=\\\"left-side\\\">\\r\\n\\t\\t<div class=\\\"selection-info\\\">\\r\\n\\t\\t\\t{{ selectionInfo }}\\r\\n\\t\\t</div>\\r\\n\\t\\t<ng-container *ngFor=\\\"let iconAction of iconActions\\\">\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngIf=\\\"(!iconAction.subActions || iconAction.subActions.length === 0) && !hidden(iconAction)\\\"\\r\\n\\t\\t\\t\\tclass=\\\"icon-actions\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"iconAction.isDisabled ? iconAction.isDisabled(iconAction) : false\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"executeAction(iconAction)\\\">\\r\\n\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t[class]=\\\"iconAction.icon || 'ti-ux-asterisk'\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltip]=\\\"iconAction.title\\\"\\r\\n\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!iconAction.title\\\"></i>\\r\\n\\t\\t\\t</button>\\r\\n\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngIf=\\\"iconAction.subActions?.length > 0 && !hidden(iconAction)\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"iconAction.isDisabled ? iconAction.isDisabled(iconAction) : false\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\tclass=\\\"icon-actions dropdown-toggle\\\"\\r\\n\\t\\t\\t\\taria-haspopup=\\\"true\\\"\\r\\n\\t\\t\\t\\taria-expanded=\\\"false\\\"\\r\\n\\t\\t\\t\\tdata-toggle=\\\"dropdown\\\"\\r\\n\\t\\t\\t\\tpriDropDownMenu\\r\\n\\t\\t\\t\\tpriDropDownMenuPosition=\\\"left\\\"\\r\\n\\t\\t\\t\\t[priDropDownMenuItems]=\\\"getSubActions(iconAction.subActions)\\\">\\r\\n\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t[class]=\\\"iconAction.icon || 'ti-ux-more-vertical'\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltip]=\\\"iconAction.title\\\"\\r\\n\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!iconAction.title\\\"></i>\\r\\n\\t\\t\\t</button>\\r\\n\\t\\t</ng-container>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"text-actions\\\">\\r\\n\\t\\t<ng-container *ngFor=\\\"let textAction of textActions\\\">\\r\\n\\t\\t\\t<a *ngIf=\\\"!hidden(textAction)\\\" class=\\\"bulk-edit\\\" (click)=\\\"executeAction(textAction)\\\">\\r\\n\\t\\t\\t\\t{{ textAction?.title }}\\r\\n\\t\\t\\t</a>\\r\\n\\t\\t</ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-bulk-actions-banner [class^=ti-],pri-bulk-actions-banner [class^=\\\" ti-\\\"]{font-size:1em!important}pri-bulk-actions-banner .actions-header{display:flex;justify-content:space-between;align-items:center;background-color:var(--theme-10);border:1px solid var(--theme-100);padding:0 12px;overflow:hidden;height:0;opacity:0;transition:height .25s ease-out,opacity 0s linear .15s}pri-bulk-actions-banner .actions-header.visible{height:49px;opacity:1;transition:height .25s ease-in}pri-bulk-actions-banner .actions-header .left-side{display:flex}pri-bulk-actions-banner .actions-header .left-side .selection-info{color:var(--grey-8);letter-spacing:.28px;margin-right:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}pri-bulk-actions-banner .actions-header .left-side .icon-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:none;outline:none;font-size:16px;width:28px;height:28px;margin-left:12px;color:var(--grey-8)}pri-bulk-actions-banner .actions-header .left-side .icon-actions :hover{cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:16px;width:28px;height:28px;border-radius:50%;background-color:var(--grey-2)}pri-bulk-actions-banner .actions-header .left-side .icon-actions:disabled{opacity:.7;pointer-events:auto;cursor:default}pri-bulk-actions-banner .actions-header .left-side .icon-actions:disabled i{pointer-events:none}pri-bulk-actions-banner .actions-header .left-side button:first-of-type{margin-left:unset}pri-bulk-actions-banner .actions-header .text-actions{color:var(--theme-100)}pri-bulk-actions-banner .actions-header .text-actions a{padding-left:14px}pri-bulk-actions-banner .actions-header .text-actions :hover{text-decoration:underline;cursor:pointer}pri-bulk-actions-banner .actions-header .text-actions :not(:last-child){border-right:1px solid var(--grey-4);padding:0 14px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionInfo: [{\r\n                type: Input\r\n            }], visible: [{\r\n                type: Input\r\n            }], actions: [{\r\n                type: Input\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize']\r\n            }] } });\n\nclass AutofocusDirective {\r\n    constructor(elementRef) {\r\n        this.elementRef = elementRef;\r\n    }\r\n    set priAutofocus(condition) {\r\n        this._autofocus = condition;\r\n    }\r\n    ngOnInit() {\r\n        if (this._autofocus) {\r\n            /** The focus needs to wait for the nativeElement css be interpreted and put the elements well positioned.\r\n             * If not, the focus will be made, but the scroll position of the parent element will be\r\n             * wrongly positioned. */\r\n            setTimeout(() => this.elementRef.nativeElement.focus());\r\n        }\r\n    }\r\n}\r\nAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\r\nAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: AutofocusDirective, selector: \"[priAutofocus]\", inputs: { priAutofocus: \"priAutofocus\" }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AutofocusDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priAutofocus]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { priAutofocus: [{\r\n                type: Input\r\n            }] } });\n\nclass FormNavigationService {\r\n    constructor() {\r\n        this._onNavigate = new EventEmitter();\r\n    }\r\n    get onNavigate() {\r\n        return this._onNavigate;\r\n    }\r\n    goNext(index) {\r\n        this._onNavigate.emit(index);\r\n    }\r\n}\r\nFormNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormNavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nFormNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormNavigationService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormNavigationService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\r\nclass DatatabstopDirective {\r\n    constructor(el, formNavigationService) {\r\n        this.el = el;\r\n        this.formNavigationService = formNavigationService;\r\n        this.datatabStopEmitter = new EventEmitter();\r\n        this._isDetail = false;\r\n    }\r\n    set priDatatabstop(val) {\r\n        if (val) {\r\n            this._datatabstop = val.index;\r\n            this._parent = val.parent;\r\n            this._target = val.target;\r\n            this._line = val.line;\r\n            this._lastColumn = val.lastColumn;\r\n            this.init();\r\n        }\r\n    }\r\n    set datatabstopDetail(val) {\r\n        this._isDetail = val;\r\n    }\r\n    handleKeyboardEvent(event) {\r\n        if (this._isDetail) {\r\n            return;\r\n        }\r\n        switch (event.keyCode) {\r\n            case 9:\r\n                if (this.el.nativeElement.select) {\r\n                    this.el.nativeElement.select();\r\n                }\r\n                break;\r\n            case 13:\r\n                this.gotoNextInput();\r\n                break;\r\n        }\r\n    }\r\n    init() {\r\n        if (this.subscription) {\r\n            this.subscription.unsubscribe();\r\n        }\r\n        if (this._datatabstop) {\r\n            this.subscription = this.formNavigationService.onNavigate\r\n                .pipe(filter((s) => {\r\n                const res = s.target !== this._datatabstop ||\r\n                    s.parent !== this._parent ||\r\n                    s.line !== this._line;\r\n                return !res;\r\n            }))\r\n                .subscribe((s) => {\r\n                const self = this;\r\n                setTimeout(() => {\r\n                    if (self.el.nativeElement.disabled || self.el.nativeElement.hasAttribute('disabled')) {\r\n                        self.formNavigationService.goNext({\r\n                            target: s.target + 1,\r\n                            parent: s.parent\r\n                        });\r\n                    }\r\n                    else {\r\n                        self.el.nativeElement.focus();\r\n                        if (self.el.nativeElement instanceof HTMLInputElement) {\r\n                            self.el.nativeElement.select();\r\n                        }\r\n                        self.datatabStopEmitter.emit();\r\n                    }\r\n                }, 50);\r\n            });\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.subscription) {\r\n            this.subscription.unsubscribe();\r\n        }\r\n    }\r\n    gotoNextInput() {\r\n        if (this._lastColumn) {\r\n            this.formNavigationService.goNext({\r\n                target: this._lastColumn.target,\r\n                parent: this._lastColumn.parent\r\n            });\r\n        }\r\n        else {\r\n            this.formNavigationService.goNext({\r\n                target: this._target,\r\n                parent: this._parent,\r\n                line: this._line\r\n            });\r\n        }\r\n    }\r\n}\r\nDatatabstopDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DatatabstopDirective, deps: [{ token: i0.ElementRef }, { token: FormNavigationService }], target: i0.ɵɵFactoryTarget.Directive });\r\nDatatabstopDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DatatabstopDirective, selector: \"[priDatatabstop]\", inputs: { priDatatabstop: \"priDatatabstop\", datatabstopDetail: \"datatabstopDetail\" }, outputs: { datatabStopEmitter: \"datatabStopEmitter\" }, host: { listeners: { \"keyup\": \"handleKeyboardEvent($event)\" } }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DatatabstopDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priDatatabstop]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FormNavigationService }]; }, propDecorators: { datatabStopEmitter: [{\r\n                type: Output\r\n            }], priDatatabstop: [{\r\n                type: Input\r\n            }], datatabstopDetail: [{\r\n                type: Input\r\n            }], handleKeyboardEvent: [{\r\n                type: HostListener,\r\n                args: ['keyup', ['$event']]\r\n            }] } });\n\nclass InnerHTMLDirective {\r\n    constructor(elementRef, routeHelperService, amsService) {\r\n        this.elementRef = elementRef;\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n    }\r\n    ngAfterViewInit() {\r\n        this.init();\r\n    }\r\n    init() {\r\n        if (!this.onAnchorClick) {\r\n            this.onAnchorClick = (event) => this.navigateToUrl(event);\r\n        }\r\n        this.anchors = this.elementRef.nativeElement.querySelectorAll('a');\r\n        this.anchors.forEach((anchor) => {\r\n            anchor.addEventListener('click', this.onAnchorClick, false);\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        this.anchors.forEach((anchor) => {\r\n            anchor.removeEventListener('click', this.onAnchorClick, false);\r\n        });\r\n    }\r\n    navigateToUrl(ev) {\r\n        if (window.location.host !== ev.currentTarget.host) {\r\n            return;\r\n        }\r\n        ev.preventDefault();\r\n        let url = ev.currentTarget.pathname + ev.currentTarget.search + ev.currentTarget.hash;\r\n        url = url.toLowerCase();\r\n        // remove legacy links with hash on the address '#/'\r\n        if (url.includes('#/')) {\r\n            url = url.split('#/')[1];\r\n        }\r\n        // remove account info\r\n        if (url.includes(this.amsService.account.toLowerCase() + '/')) {\r\n            url = url.split(this.amsService.account.toLowerCase() + '/')[1];\r\n        }\r\n        // remove subscription info\r\n        if (url.includes(this.amsService.subscription.toLowerCase() + '/')) {\r\n            url = url.split(this.amsService.subscription.toLowerCase() + '/')[1];\r\n        }\r\n        this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, url);\r\n    }\r\n}\r\nInnerHTMLDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InnerHTMLDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.RouteHelperService }, { token: i1$2.AmsService }], target: i0.ɵɵFactoryTarget.Directive });\r\nInnerHTMLDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: InnerHTMLDirective, selector: \"[priInnerHTML]\", ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InnerHTMLDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priInnerHTML]',\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.RouteHelperService }, { type: i1$2.AmsService }]; } });\n\n// FROM: https://stackblitz.com/edit/angular-resize-observer?file=src%2Fapp%2Fresize-observer.directive.ts\r\nconst entriesMap = new WeakMap();\r\nconst ro = new ResizeObserver((entries) => {\r\n    for (const entry of entries) {\r\n        if (entriesMap.has(entry.target)) {\r\n            const comp = entriesMap.get(entry.target);\r\n            comp._resizeCallback(entry);\r\n        }\r\n    }\r\n});\r\nclass ResizeObserverDirective {\r\n    constructor(el) {\r\n        this.el = el;\r\n        this.sizeChanges = new EventEmitter();\r\n        const target = this.el.nativeElement;\r\n        entriesMap.set(target, this);\r\n        ro.observe(target);\r\n    }\r\n    _resizeCallback(entry) {\r\n        this.sizeChanges.emit(entry);\r\n    }\r\n    ngOnDestroy() {\r\n        const target = this.el.nativeElement;\r\n        ro.unobserve(target);\r\n        ro.disconnect();\r\n        entriesMap.delete(target);\r\n    }\r\n}\r\nResizeObserverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ResizeObserverDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\r\nResizeObserverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ResizeObserverDirective, isStandalone: true, selector: \"[priResizeObserver]\", outputs: { sizeChanges: \"sizeChanges\" }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ResizeObserverDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{ selector: '[priResizeObserver]', standalone: true }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { sizeChanges: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Custom structural directive to help us to define the type of template to be used in a component or element.\r\n * Check more details in: https://angular.io/guide/structural-directives#improving-template-type-checking-for-custom-directives\r\n */\r\nclass TemplateTypeDirective {\r\n    // this magic is how we tell Angular the context type for this directive, which then propagates down to the type of the template\r\n    /**\r\n     * Checks if the template context is of the expected type.\r\n     *\r\n     * @param _dir - The directive instance.\r\n     * @param ctx - The template context.\r\n     */\r\n    static ngTemplateContextGuard(_dir, ctx) {\r\n        return true;\r\n    }\r\n}\r\nTemplateTypeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TemplateTypeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\r\nTemplateTypeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TemplateTypeDirective, isStandalone: true, selector: \"ng-template[priTemplateType]\", inputs: { typeToken: [\"priTemplateType\", \"typeToken\"] }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TemplateTypeDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{ selector: 'ng-template[priTemplateType]', standalone: true }]\r\n        }], propDecorators: { typeToken: [{\r\n                type: Input,\r\n                args: ['priTemplateType']\r\n            }] } });\n\n/* Defines the size of fields */\r\nvar FieldsSizeEnum;\r\n(function (FieldsSizeEnum) {\r\n    FieldsSizeEnum[\"Small\"] = \"size-small\";\r\n    FieldsSizeEnum[\"Regular\"] = \"size-regular\";\r\n    FieldsSizeEnum[\"Large\"] = \"size-large\";\r\n})(FieldsSizeEnum || (FieldsSizeEnum = {}));\n\n/* Defines the action of the button */\r\nvar ButtonActionEnum;\r\n(function (ButtonActionEnum) {\r\n    ButtonActionEnum[\"Submit\"] = \"submit\";\r\n    ButtonActionEnum[\"Button\"] = \"button\";\r\n})(ButtonActionEnum || (ButtonActionEnum = {}));\n\n/* Defines the color of the button */\r\nvar ButtonColorEnum;\r\n(function (ButtonColorEnum) {\r\n    ButtonColorEnum[\"Theme\"] = \"theme\";\r\n    ButtonColorEnum[\"Grey\"] = \"grey\";\r\n    ButtonColorEnum[\"Info\"] = \"info\";\r\n    ButtonColorEnum[\"Error\"] = \"error\";\r\n    ButtonColorEnum[\"Warning\"] = \"warning\";\r\n    ButtonColorEnum[\"Success\"] = \"success\";\r\n    ButtonColorEnum[\"White\"] = \"white\";\r\n    ButtonColorEnum[\"Black\"] = \"black\";\r\n})(ButtonColorEnum || (ButtonColorEnum = {}));\n\n/* Defines on which side the icon will appear in the button */\r\nvar ButtonIconSideEnum;\r\n(function (ButtonIconSideEnum) {\r\n    ButtonIconSideEnum[\"Left\"] = \"left\";\r\n    ButtonIconSideEnum[\"Right\"] = \"right\";\r\n})(ButtonIconSideEnum || (ButtonIconSideEnum = {}));\n\n/* Defines the type of the button */\r\nvar ButtonTypeEnum;\r\n(function (ButtonTypeEnum) {\r\n    ButtonTypeEnum[\"PrimaryFilled\"] = \"primary-filled\";\r\n    ButtonTypeEnum[\"PrimaryOutlined\"] = \"primary-outlined\";\r\n    ButtonTypeEnum[\"SecondaryFilled\"] = \"secondary-filled\";\r\n    ButtonTypeEnum[\"SecondaryOutlined\"] = \"secondary-outlined\";\r\n    ButtonTypeEnum[\"Tertiary\"] = \"tertiary\";\r\n})(ButtonTypeEnum || (ButtonTypeEnum = {}));\n\n/** The button options */\r\nclass ButtonOptions {\r\n    constructor(button) {\r\n        /** The action of the button */\r\n        this.action = ButtonActionEnum.Button;\r\n        /** The button's icon side */\r\n        this.iconSide = ButtonIconSideEnum.Left;\r\n        /** The size of the button */\r\n        this.size = FieldsSizeEnum.Regular;\r\n        /** The type of the button */\r\n        this.type = ButtonTypeEnum.PrimaryFilled;\r\n        /** The color of the button */\r\n        this.color = ButtonColorEnum.Theme;\r\n        /** The sub-actions list position (top or bottom) */\r\n        this.subActionsPosition = 'top' || 'bottom';\r\n        if (button) {\r\n            Object.assign(this, button);\r\n        }\r\n    }\r\n}\n\nclass ButtonComponent {\r\n    constructor(_element) {\r\n        this._element = _element;\r\n        this.count = 0;\r\n        this.isDisabled = false;\r\n        this.loading = false;\r\n        this.action = new EventEmitter();\r\n        this.subActionsVisible = false;\r\n        this.hasMainClickAction = false;\r\n        this._options = new ButtonOptions();\r\n    }\r\n    set options(options) {\r\n        this._options = new ButtonOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    // When initializing the component, check if it has a main click action set\r\n    ngOnInit() {\r\n        if (this.action.observers.length > 0) {\r\n            this.hasMainClickAction = true;\r\n        }\r\n    }\r\n    // Detect a click outside of the component and close the sub-actions listing when it's detected\r\n    onClickOutside(event) {\r\n        if (!this._element.nativeElement.contains(event.target)) {\r\n            this.subActionsVisible = false;\r\n        }\r\n    }\r\n    // Perform the set action when clicking on the main button\r\n    onActionClick() {\r\n        // If this button only has sub-actions, open the corresponding list\r\n        if (this.options.subActions && !this.hasMainClickAction) {\r\n            this.toggleSubActions();\r\n        }\r\n        this.action.emit();\r\n    }\r\n    // Perform the set action when clicking on a sub-action and then close the sub-actions list\r\n    onSubActionClick(subAction) {\r\n        subAction.onClick();\r\n        this.toggleSubActions();\r\n    }\r\n    // Toggle the sub-actions listing open or closed (true || false)\r\n    toggleSubActions() {\r\n        this.subActionsVisible = !this.subActionsVisible;\r\n    }\r\n}\r\nButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\r\nButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ButtonComponent, isStandalone: true, selector: \"pri-button\", inputs: { options: \"options\", count: \"count\", isDisabled: \"isDisabled\", loading: \"loading\", extraClasses: \"extraClasses\" }, outputs: { action: \"action\" }, host: { listeners: { \"document:click\": \"onClickOutside($event)\" } }, ngImport: i0, template: \"<button\\r\\n\\tclass=\\\"{{ options.size }} {{ options.type }} {{ options.color }} {{ extraClasses }} {{\\r\\n\\t\\toptions.icon && !options.text ? 'icon-only' : ''\\r\\n\\t}}\\\"\\r\\n\\t[attr.tabindex]=\\\"loading || isDisabled ? -1 : '0'\\\"\\r\\n\\t[class.loading]=\\\"loading\\\"\\r\\n\\t[class.secondary-actions-only]=\\\"!hasMainClickAction && options.subActions\\\"\\r\\n\\t[class.has-sub-actions]=\\\"options.subActions\\\"\\r\\n\\t[attr.disabled]=\\\"isDisabled ? '' : null\\\"\\r\\n\\t[attr.type]=\\\"options.action === 'button' || !hasMainClickAction ? 'button' : options.action\\\"\\r\\n\\t(click)=\\\"onActionClick()\\\">\\r\\n\\t<ng-container *ngIf=\\\"!loading\\\">\\r\\n\\t\\t<i\\r\\n\\t\\t\\t*ngIf=\\\"options.icon && options.iconSide !== 'right'\\\"\\r\\n\\t\\t\\tclass=\\\"{{ options.icon }}\\\"\\r\\n\\t\\t\\tmatTooltip=\\\"{{ options.text ? null : options.tooltip }}\\\"\\r\\n\\t\\t\\tmatTooltipPosition=\\\"above\\\"></i>\\r\\n\\t\\t<div *ngIf=\\\"options.text\\\" class=\\\"text\\\" priTooltipHover>{{ options.text }}</div>\\r\\n\\t\\t<div *ngIf=\\\"count\\\" class=\\\"counter\\\">{{ count }}</div>\\r\\n\\t\\t<i\\r\\n\\t\\t\\t*ngIf=\\\"options.icon && options.iconSide === 'right'\\\"\\r\\n\\t\\t\\tclass=\\\"{{ options.icon }}\\\"\\r\\n\\t\\t\\tmatTooltip=\\\"{{ options.text ? null : options.tooltip }}\\\"\\r\\n\\t\\t\\tmatTooltipPosition=\\\"above\\\"></i>\\r\\n\\t</ng-container>\\r\\n\\t<ng-container *ngIf=\\\"loading\\\">\\r\\n\\t\\t<div class=\\\"loading-dot-1\\\"></div>\\r\\n\\t\\t<div class=\\\"loading-dot-2\\\"></div>\\r\\n\\t</ng-container>\\r\\n</button>\\r\\n\\r\\n<ng-container *ngIf=\\\"options.subActions\\\">\\r\\n\\t<div class=\\\"sub-actions-wrapper\\\" [class.active]=\\\"subActionsVisible\\\">\\r\\n\\t\\t<button\\r\\n\\t\\t\\t*ngIf=\\\"hasMainClickAction\\\"\\r\\n\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"isDisabled ? '' : null\\\"\\r\\n\\t\\t\\t(click)=\\\"toggleSubActions()\\\"\\r\\n\\t\\t\\tclass=\\\"sub-actions-toggle {{\\r\\n\\t\\t\\t\\toptions.subActionsPosition === 'bottom' ? 'ti-ux-chevron-down' : 'ti-ux-chevron-up'\\r\\n\\t\\t\\t}}\\\"></button>\\r\\n\\t\\t<div class=\\\"sub-actions\\\" [class.bottom]=\\\"options.subActionsPosition === 'bottom'\\\">\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngFor=\\\"let subAction of options.subActions\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"onSubActionClick(subAction)\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\tclass=\\\"sub-action\\\">\\r\\n\\t\\t\\t\\t{{ subAction.text }}\\r\\n\\t\\t\\t</button>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-button{position:relative;display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;border-radius:4px}pri-button:has(:disabled){pointer-events:none}pri-button button{display:flex;align-items:center;justify-content:center;gap:.4285714286rem;padding:.5714285714rem 1.1428571429rem;font-size:1em;color:var(--grey-1);background-color:var(--theme-100);border:1px solid var(--theme-100);border-radius:4px;-webkit-user-select:none;user-select:none;transition:all .4s}pri-button button.icon-only{padding:.5714285714rem .8571428571rem}pri-button button>.text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-button button>i{font-size:1.1428571429rem}pri-button button>.counter{padding:0 .2857142857rem;font-size:.7142857143rem;color:#000001;background-color:var(--grey-1);border-radius:8px;transition:all .4s}pri-button button.has-sub-actions{border-radius:4px 0 0 4px}pri-button button.has-sub-actions:hover{border-color:transparent;background-color:var(--theme-80)}pri-button button.has-sub-actions.secondary-actions-only{gap:.5714285714rem;border-radius:4px}pri-button button.has-sub-actions.secondary-actions-only:not(:disabled){color:var(--grey-8);background-color:var(--grey-1);border:1px solid var(--grey-4)}pri-button button.has-sub-actions.secondary-actions-only:not(:disabled)>.counter{color:var(--grey-8);background-color:var(--grey-2)}pri-button button.has-sub-actions.secondary-actions-only:after{content:\\\"\\\\e648\\\";font-family:pollen;font-size:1.1428571429rem}pri-button button.has-sub-actions.secondary-actions-only:hover{border-color:var(--grey-5);background-color:var(--grey-2)}pri-button button.has-sub-actions.secondary-actions-only:hover>.counter{color:var(--grey-8);background-color:var(--grey-3)}pri-button button:hover{background-color:var(--theme-80)}pri-button button:disabled{color:var(--grey-6);background-color:var(--grey-4);border-color:var(--grey-4);pointer-events:none}pri-button button:disabled.tertiary{background-color:transparent;border-color:transparent}pri-button button:disabled>.counter{color:var(--grey-4);background-color:var(--grey-6)}pri-button button:disabled.sub-actions-toggle:after{background-color:var(--grey-5)}pri-button button.loading{pointer-events:none}pri-button button.loading .loading-dot-1,pri-button button.loading .loading-dot-2{margin:4px 0 3px;height:.8571428571rem;width:.8571428571rem;border-radius:50%;background-color:var(--theme-80);animation-name:loading-dots-theme;animation-duration:1s;animation-iteration-count:infinite}pri-button button.loading .loading-dot-2{animation-delay:.5s}pri-button button.loading.grey .loading-dot-1,pri-button button.loading.grey .loading-dot-2{background-color:var(--grey-7);animation-name:loading-dots-grey}pri-button button.loading.info .loading-dot-1,pri-button button.loading.info .loading-dot-2{background-color:var(--info-80);animation-name:loading-dots-info}pri-button button.loading.error .loading-dot-1,pri-button button.loading.error .loading-dot-2{background-color:var(--error-80);animation-name:loading-dots-error}pri-button button.loading.warning .loading-dot-1,pri-button button.loading.warning .loading-dot-2{background-color:var(--warning-80);animation-name:loading-dots-warning}pri-button button.loading.success .loading-dot-1,pri-button button.loading.success .loading-dot-2{background-color:var(--success-80);animation-name:loading-dots-success}pri-button button.loading.white .loading-dot-1,pri-button button.loading.white .loading-dot-2{background-color:var(--grey-5);animation-name:loading-dots-white}pri-button button.loading.black .loading-dot-1,pri-button button.loading.black .loading-dot-2{background-color:var(--grey-8);animation-name:loading-dots-black}@keyframes loading-dots-theme{0%{background-color:var(--theme-80)}50%{background-color:var(--theme-60)}to{background-color:var(--theme-80)}}@keyframes loading-dots-grey{0%{background-color:var(--grey-7)}50%{background-color:var(--grey-6)}to{background-color:var(--grey-7)}}@keyframes loading-dots-info{0%{background-color:var(--info-80)}50%{background-color:var(--info-60)}to{background-color:var(--info-80)}}@keyframes loading-dots-error{0%{background-color:var(--error-80)}50%{background-color:var(--error-60)}to{background-color:var(--error-80)}}@keyframes loading-dots-warning{0%{background-color:var(--warning-80)}50%{background-color:var(--warning-60)}to{background-color:var(--warning-80)}}@keyframes loading-dots-success{0%{background-color:var(--success-80)}50%{background-color:var(--success-60)}to{background-color:var(--success-80)}}@keyframes loading-dots-white{0%{background-color:var(--grey-5)}50%{background-color:var(--grey-3)}to{background-color:var(--grey-5)}}@keyframes loading-dots-black{0%{background-color:var(--grey-8)}50%{background-color:var(--grey-6)}to{background-color:var(--grey-8)}}pri-button:has(.has-sub-actions) button.has-sub-actions:not(.secondary-actions-only){border-right:0}pri-button:has(.has-sub-actions) button.sub-actions-toggle{border-left:0}pri-button:has(.has-sub-actions):has(.active) .has-sub-actions:not(.secondary-actions-only){pointer-events:none}pri-button:has(.has-sub-actions):hover .sub-actions-toggle{border-color:transparent;background-color:var(--theme-80);border-left-color:var(--theme-60)}pri-button:has(.has-sub-actions):hover .sub-actions-toggle:after{background-color:var(--theme-60)}pri-button:not(:has(.has-sub-actions)) button:focus-visible{outline:var(--grey-8) solid 1px;box-shadow:none;margin:1px}pri-button .sub-actions-wrapper .sub-actions-toggle{position:relative;padding:.5714285714rem .7142857143rem;height:100%;font-size:1rem;border-radius:0 4px 4px 0}pri-button .sub-actions-wrapper .sub-actions-toggle:after{content:\\\"\\\";position:absolute;left:-1px;top:-1px;height:calc(100% + 2px);width:1px;background-color:var(--theme-80);transition:all .4s}pri-button .sub-actions-wrapper .sub-actions{position:absolute;bottom:calc(100% - 10px);right:0;display:flex;flex-direction:column;gap:.2857142857rem;padding:.5714285714rem 0;width:max-content;background:var(--grey-1);box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);border-radius:4px;opacity:0;z-index:1;visibility:hidden;transition:all .2s}pri-button .sub-actions-wrapper .sub-actions.bottom{top:calc(100% - 10px);bottom:initial}pri-button .sub-actions-wrapper .sub-actions button{padding:.2857142857rem 1.4285714286rem .2857142857rem .8571428571rem;color:var(--grey-7);background-color:transparent;border:0;border-radius:0;transition:all .4s}pri-button .sub-actions-wrapper .sub-actions button:hover{background-color:var(--grey-2)}pri-button .sub-actions-wrapper .sub-actions button:active{color:var(--theme-100);background-color:var(--theme-10)}pri-button .sub-actions-wrapper.active .sub-actions{bottom:calc(100% + 8px);opacity:1;visibility:visible}pri-button .sub-actions-wrapper.active .sub-actions.bottom{top:calc(100% + 8px);bottom:initial}pri-button .sub-actions-wrapper.active .sub-actions-toggle{background-color:var(--theme-80);border:1px solid var(--theme-60);border-left:0}pri-button .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--theme-100);border-color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){border-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):not(:active){background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):after{background-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--grey-8);border-color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--grey-6)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--grey-6)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--info-100);border-color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--info-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--info-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--error-100);border-color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--error-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--error-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--warning-100);border-color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--warning-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--success-100);border-color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--success-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--success-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action){color:#000001;background-color:#fff;border-color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:#000001}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{background-color:#000001;color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action){color:#fff;background-color:#000001;border-color:#000001}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{background-color:#fff;color:#000001}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button{background-color:transparent}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);border-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme:hover{color:var(--theme-highlight);border-color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme:active{border-color:var(--theme-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);border-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey:hover{color:var(--grey-7);border-color:var(--grey-7)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey:active{color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info{color:var(--info-100);border-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info:hover{color:var(--theme-highlight);border-color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info:active{border-color:var(--info-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error{color:var(--error-100);border-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error:hover{color:var(--error-highlight);border-color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error:active{border-color:var(--error-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);border-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning:hover{color:var(--warning-highlight);border-color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning:active{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success{color:var(--success-100);border-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success:hover{color:var(--success-highlight);border-color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success:active{border-color:var(--success-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.white{color:#fff;border-color:#fff}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.white>.counter{color:#000001;background-color:#fff}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.black{color:#000001;border-color:#000001}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.black>.counter{color:#fff;background-color:#000001}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);background-color:var(--theme-20);border-color:var(--theme-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme:hover{background-color:var(--theme-40);border-color:var(--theme-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme:active{background-color:var(--theme-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme .counter{color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);background-color:var(--grey-1);border-color:var(--grey-4)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey:hover{background-color:var(--grey-2);border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey:active{background-color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey>.counter{color:var(--grey-1);background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info{color:var(--info-100);background-color:var(--info-20);border-color:var(--info-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info:hover{background-color:var(--info-40);border-color:var(--info-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info:active{background-color:var(--info-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info .counter{color:var(--info-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error{color:var(--error-100);background-color:var(--error-20);border-color:var(--error-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error:hover{background-color:var(--error-40);border-color:var(--error-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error:active{background-color:var(--error-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error .counter{color:var(--error-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);background-color:var(--warning-20);border-color:var(--warning-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning:hover{background-color:var(--warning-40);border-color:var(--warning-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning:active{background-color:var(--warning-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning .counter{color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success{color:var(--success-100);background-color:var(--success-20);border-color:var(--success-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success:hover{background-color:var(--success-40);border-color:var(--success-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success:active{background-color:var(--success-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success .counter{color:var(--success-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button{background-color:transparent}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);border-color:var(--theme-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme:hover{border-color:var(--theme-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme:active{border-color:var(--theme-40);color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey:hover{border-color:var(--grey-6)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey:active{border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info{color:var(--info-100);border-color:var(--info-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info:hover{border-color:var(--info-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info:active{border-color:var(--info-40);color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error{color:var(--error-100);border-color:var(--error-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error:hover{border-color:var(--error-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error:active{border-color:var(--error-40);color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);border-color:var(--warning-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning:hover{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning:active{border-color:var(--warning-40);color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success{color:var(--success-100);border-color:var(--success-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success:hover{border-color:var(--success-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success:active{border-color:var(--success-40);color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button{background-color:transparent;border-color:transparent}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button:hover:not(:disabled):not(.white){background-color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme:active{color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info{color:var(--info-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info:active{color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error{color:var(--error-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error:active{color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning:active{color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success{color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success:active{color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white{color:#fff}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white>.counter{color:#000001;background-color:#fff}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white:hover:not(:disabled){background-color:var(--grey-4)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.black{color:#000001}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.black>.counter{color:#fff;background-color:#000001}pri-button:has(.size-small){font-size:80%}pri-button:has(.size-large){font-size:120%}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"ngmodule\", type: MatTooltipModule }, { kind: \"directive\", type: i2$1.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ButtonComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-button', imports: [CommonModule, MatTooltipModule, TooltipHoverDirective], encapsulation: ViewEncapsulation.None, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<button\\r\\n\\tclass=\\\"{{ options.size }} {{ options.type }} {{ options.color }} {{ extraClasses }} {{\\r\\n\\t\\toptions.icon && !options.text ? 'icon-only' : ''\\r\\n\\t}}\\\"\\r\\n\\t[attr.tabindex]=\\\"loading || isDisabled ? -1 : '0'\\\"\\r\\n\\t[class.loading]=\\\"loading\\\"\\r\\n\\t[class.secondary-actions-only]=\\\"!hasMainClickAction && options.subActions\\\"\\r\\n\\t[class.has-sub-actions]=\\\"options.subActions\\\"\\r\\n\\t[attr.disabled]=\\\"isDisabled ? '' : null\\\"\\r\\n\\t[attr.type]=\\\"options.action === 'button' || !hasMainClickAction ? 'button' : options.action\\\"\\r\\n\\t(click)=\\\"onActionClick()\\\">\\r\\n\\t<ng-container *ngIf=\\\"!loading\\\">\\r\\n\\t\\t<i\\r\\n\\t\\t\\t*ngIf=\\\"options.icon && options.iconSide !== 'right'\\\"\\r\\n\\t\\t\\tclass=\\\"{{ options.icon }}\\\"\\r\\n\\t\\t\\tmatTooltip=\\\"{{ options.text ? null : options.tooltip }}\\\"\\r\\n\\t\\t\\tmatTooltipPosition=\\\"above\\\"></i>\\r\\n\\t\\t<div *ngIf=\\\"options.text\\\" class=\\\"text\\\" priTooltipHover>{{ options.text }}</div>\\r\\n\\t\\t<div *ngIf=\\\"count\\\" class=\\\"counter\\\">{{ count }}</div>\\r\\n\\t\\t<i\\r\\n\\t\\t\\t*ngIf=\\\"options.icon && options.iconSide === 'right'\\\"\\r\\n\\t\\t\\tclass=\\\"{{ options.icon }}\\\"\\r\\n\\t\\t\\tmatTooltip=\\\"{{ options.text ? null : options.tooltip }}\\\"\\r\\n\\t\\t\\tmatTooltipPosition=\\\"above\\\"></i>\\r\\n\\t</ng-container>\\r\\n\\t<ng-container *ngIf=\\\"loading\\\">\\r\\n\\t\\t<div class=\\\"loading-dot-1\\\"></div>\\r\\n\\t\\t<div class=\\\"loading-dot-2\\\"></div>\\r\\n\\t</ng-container>\\r\\n</button>\\r\\n\\r\\n<ng-container *ngIf=\\\"options.subActions\\\">\\r\\n\\t<div class=\\\"sub-actions-wrapper\\\" [class.active]=\\\"subActionsVisible\\\">\\r\\n\\t\\t<button\\r\\n\\t\\t\\t*ngIf=\\\"hasMainClickAction\\\"\\r\\n\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"isDisabled ? '' : null\\\"\\r\\n\\t\\t\\t(click)=\\\"toggleSubActions()\\\"\\r\\n\\t\\t\\tclass=\\\"sub-actions-toggle {{\\r\\n\\t\\t\\t\\toptions.subActionsPosition === 'bottom' ? 'ti-ux-chevron-down' : 'ti-ux-chevron-up'\\r\\n\\t\\t\\t}}\\\"></button>\\r\\n\\t\\t<div class=\\\"sub-actions\\\" [class.bottom]=\\\"options.subActionsPosition === 'bottom'\\\">\\r\\n\\t\\t\\t<button\\r\\n\\t\\t\\t\\t*ngFor=\\\"let subAction of options.subActions\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"onSubActionClick(subAction)\\\"\\r\\n\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\tclass=\\\"sub-action\\\">\\r\\n\\t\\t\\t\\t{{ subAction.text }}\\r\\n\\t\\t\\t</button>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-button{position:relative;display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;border-radius:4px}pri-button:has(:disabled){pointer-events:none}pri-button button{display:flex;align-items:center;justify-content:center;gap:.4285714286rem;padding:.5714285714rem 1.1428571429rem;font-size:1em;color:var(--grey-1);background-color:var(--theme-100);border:1px solid var(--theme-100);border-radius:4px;-webkit-user-select:none;user-select:none;transition:all .4s}pri-button button.icon-only{padding:.5714285714rem .8571428571rem}pri-button button>.text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-button button>i{font-size:1.1428571429rem}pri-button button>.counter{padding:0 .2857142857rem;font-size:.7142857143rem;color:#000001;background-color:var(--grey-1);border-radius:8px;transition:all .4s}pri-button button.has-sub-actions{border-radius:4px 0 0 4px}pri-button button.has-sub-actions:hover{border-color:transparent;background-color:var(--theme-80)}pri-button button.has-sub-actions.secondary-actions-only{gap:.5714285714rem;border-radius:4px}pri-button button.has-sub-actions.secondary-actions-only:not(:disabled){color:var(--grey-8);background-color:var(--grey-1);border:1px solid var(--grey-4)}pri-button button.has-sub-actions.secondary-actions-only:not(:disabled)>.counter{color:var(--grey-8);background-color:var(--grey-2)}pri-button button.has-sub-actions.secondary-actions-only:after{content:\\\"\\\\e648\\\";font-family:pollen;font-size:1.1428571429rem}pri-button button.has-sub-actions.secondary-actions-only:hover{border-color:var(--grey-5);background-color:var(--grey-2)}pri-button button.has-sub-actions.secondary-actions-only:hover>.counter{color:var(--grey-8);background-color:var(--grey-3)}pri-button button:hover{background-color:var(--theme-80)}pri-button button:disabled{color:var(--grey-6);background-color:var(--grey-4);border-color:var(--grey-4);pointer-events:none}pri-button button:disabled.tertiary{background-color:transparent;border-color:transparent}pri-button button:disabled>.counter{color:var(--grey-4);background-color:var(--grey-6)}pri-button button:disabled.sub-actions-toggle:after{background-color:var(--grey-5)}pri-button button.loading{pointer-events:none}pri-button button.loading .loading-dot-1,pri-button button.loading .loading-dot-2{margin:4px 0 3px;height:.8571428571rem;width:.8571428571rem;border-radius:50%;background-color:var(--theme-80);animation-name:loading-dots-theme;animation-duration:1s;animation-iteration-count:infinite}pri-button button.loading .loading-dot-2{animation-delay:.5s}pri-button button.loading.grey .loading-dot-1,pri-button button.loading.grey .loading-dot-2{background-color:var(--grey-7);animation-name:loading-dots-grey}pri-button button.loading.info .loading-dot-1,pri-button button.loading.info .loading-dot-2{background-color:var(--info-80);animation-name:loading-dots-info}pri-button button.loading.error .loading-dot-1,pri-button button.loading.error .loading-dot-2{background-color:var(--error-80);animation-name:loading-dots-error}pri-button button.loading.warning .loading-dot-1,pri-button button.loading.warning .loading-dot-2{background-color:var(--warning-80);animation-name:loading-dots-warning}pri-button button.loading.success .loading-dot-1,pri-button button.loading.success .loading-dot-2{background-color:var(--success-80);animation-name:loading-dots-success}pri-button button.loading.white .loading-dot-1,pri-button button.loading.white .loading-dot-2{background-color:var(--grey-5);animation-name:loading-dots-white}pri-button button.loading.black .loading-dot-1,pri-button button.loading.black .loading-dot-2{background-color:var(--grey-8);animation-name:loading-dots-black}@keyframes loading-dots-theme{0%{background-color:var(--theme-80)}50%{background-color:var(--theme-60)}to{background-color:var(--theme-80)}}@keyframes loading-dots-grey{0%{background-color:var(--grey-7)}50%{background-color:var(--grey-6)}to{background-color:var(--grey-7)}}@keyframes loading-dots-info{0%{background-color:var(--info-80)}50%{background-color:var(--info-60)}to{background-color:var(--info-80)}}@keyframes loading-dots-error{0%{background-color:var(--error-80)}50%{background-color:var(--error-60)}to{background-color:var(--error-80)}}@keyframes loading-dots-warning{0%{background-color:var(--warning-80)}50%{background-color:var(--warning-60)}to{background-color:var(--warning-80)}}@keyframes loading-dots-success{0%{background-color:var(--success-80)}50%{background-color:var(--success-60)}to{background-color:var(--success-80)}}@keyframes loading-dots-white{0%{background-color:var(--grey-5)}50%{background-color:var(--grey-3)}to{background-color:var(--grey-5)}}@keyframes loading-dots-black{0%{background-color:var(--grey-8)}50%{background-color:var(--grey-6)}to{background-color:var(--grey-8)}}pri-button:has(.has-sub-actions) button.has-sub-actions:not(.secondary-actions-only){border-right:0}pri-button:has(.has-sub-actions) button.sub-actions-toggle{border-left:0}pri-button:has(.has-sub-actions):has(.active) .has-sub-actions:not(.secondary-actions-only){pointer-events:none}pri-button:has(.has-sub-actions):hover .sub-actions-toggle{border-color:transparent;background-color:var(--theme-80);border-left-color:var(--theme-60)}pri-button:has(.has-sub-actions):hover .sub-actions-toggle:after{background-color:var(--theme-60)}pri-button:not(:has(.has-sub-actions)) button:focus-visible{outline:var(--grey-8) solid 1px;box-shadow:none;margin:1px}pri-button .sub-actions-wrapper .sub-actions-toggle{position:relative;padding:.5714285714rem .7142857143rem;height:100%;font-size:1rem;border-radius:0 4px 4px 0}pri-button .sub-actions-wrapper .sub-actions-toggle:after{content:\\\"\\\";position:absolute;left:-1px;top:-1px;height:calc(100% + 2px);width:1px;background-color:var(--theme-80);transition:all .4s}pri-button .sub-actions-wrapper .sub-actions{position:absolute;bottom:calc(100% - 10px);right:0;display:flex;flex-direction:column;gap:.2857142857rem;padding:.5714285714rem 0;width:max-content;background:var(--grey-1);box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);border-radius:4px;opacity:0;z-index:1;visibility:hidden;transition:all .2s}pri-button .sub-actions-wrapper .sub-actions.bottom{top:calc(100% - 10px);bottom:initial}pri-button .sub-actions-wrapper .sub-actions button{padding:.2857142857rem 1.4285714286rem .2857142857rem .8571428571rem;color:var(--grey-7);background-color:transparent;border:0;border-radius:0;transition:all .4s}pri-button .sub-actions-wrapper .sub-actions button:hover{background-color:var(--grey-2)}pri-button .sub-actions-wrapper .sub-actions button:active{color:var(--theme-100);background-color:var(--theme-10)}pri-button .sub-actions-wrapper.active .sub-actions{bottom:calc(100% + 8px);opacity:1;visibility:visible}pri-button .sub-actions-wrapper.active .sub-actions.bottom{top:calc(100% + 8px);bottom:initial}pri-button .sub-actions-wrapper.active .sub-actions-toggle{background-color:var(--theme-80);border:1px solid var(--theme-60);border-left:0}pri-button .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--theme-100);border-color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--theme-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){border-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):not(:active){background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active):after{background-color:var(--theme-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--theme-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--grey-8);border-color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--grey-8)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--grey-6)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--grey-6)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.grey):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.grey):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--grey-7)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--info-100);border-color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--info-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--info-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--info-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.info):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.info):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--info-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--error-100);border-color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--error-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--error-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--error-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.error):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.error):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--error-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--warning-100);border-color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--warning-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--warning-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.warning):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.warning):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--warning-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action){background-color:var(--success-100);border-color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):active,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action):active{background-color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{color:var(--success-100)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle{border-color:var(--success-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:not(:active){background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)):hover:not(:has(.active)) .sub-actions-toggle:after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only)) .sub-actions-wrapper.active .sub-actions-toggle:after{background-color:var(--success-60)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.success):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.success):not(:has(.secondary-actions-only))>button:not(.has-sub-actions):hover:not(:active){background-color:var(--success-80)}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action){color:#000001;background-color:#fff;border-color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:#000001}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.white):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{background-color:#000001;color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action),pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action){color:#fff;background-color:#000001;border-color:#000001}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action):after,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action):after{background-color:#fff}pri-button:not(:has(:disabled)):not(:has(.primary-outlined)):not(:has(.secondary-filled)):not(:has(.secondary-outlined)):not(:has(.tertiary)):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter,pri-button:not(:has(:disabled)):has(.has-sub-actions):has(.black):not(:has(.secondary-actions-only)) button:not(.sub-action)>.counter{background-color:#fff;color:#000001}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button{background-color:transparent}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);border-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme:hover{color:var(--theme-highlight);border-color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme:active{border-color:var(--theme-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);border-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey:hover{color:var(--grey-7);border-color:var(--grey-7)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey:active{color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info{color:var(--info-100);border-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info:hover{color:var(--theme-highlight);border-color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info:active{border-color:var(--info-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error{color:var(--error-100);border-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error:hover{color:var(--error-highlight);border-color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error:active{border-color:var(--error-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);border-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning:hover{color:var(--warning-highlight);border-color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning:active{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success{color:var(--success-100);border-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success:hover{color:var(--success-highlight);border-color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success:active{border-color:var(--success-60)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.white{color:#fff;border-color:#fff}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.white>.counter{color:#000001;background-color:#fff}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.black{color:#000001;border-color:#000001}pri-button:not(:has(:disabled)):has(.primary-outlined):not(:has(.has-sub-actions)) button.black>.counter{color:#fff;background-color:#000001}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);background-color:var(--theme-20);border-color:var(--theme-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme:hover{background-color:var(--theme-40);border-color:var(--theme-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme:active{background-color:var(--theme-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.theme .counter{color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);background-color:var(--grey-1);border-color:var(--grey-4)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey:hover{background-color:var(--grey-2);border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey:active{background-color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.grey>.counter{color:var(--grey-1);background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info{color:var(--info-100);background-color:var(--info-20);border-color:var(--info-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info:hover{background-color:var(--info-40);border-color:var(--info-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info:active{background-color:var(--info-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.info .counter{color:var(--info-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error{color:var(--error-100);background-color:var(--error-20);border-color:var(--error-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error:hover{background-color:var(--error-40);border-color:var(--error-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error:active{background-color:var(--error-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.error .counter{color:var(--error-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);background-color:var(--warning-20);border-color:var(--warning-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning:hover{background-color:var(--warning-40);border-color:var(--warning-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning:active{background-color:var(--warning-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.warning .counter{color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success{color:var(--success-100);background-color:var(--success-20);border-color:var(--success-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success:hover{background-color:var(--success-40);border-color:var(--success-40)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success:active{background-color:var(--success-20)}pri-button:not(:has(:disabled)):has(.secondary-filled):not(:has(.has-sub-actions)) button.success .counter{color:var(--success-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button{background-color:transparent}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100);border-color:var(--theme-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme:hover{border-color:var(--theme-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme:active{border-color:var(--theme-40);color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8);border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey:hover{border-color:var(--grey-6)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey:active{border-color:var(--grey-5)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info{color:var(--info-100);border-color:var(--info-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info:hover{border-color:var(--info-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info:active{border-color:var(--info-40);color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error{color:var(--error-100);border-color:var(--error-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error:hover{border-color:var(--error-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error:active{border-color:var(--error-40);color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100);border-color:var(--warning-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning:hover{border-color:var(--warning-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning:active{border-color:var(--warning-40);color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success{color:var(--success-100);border-color:var(--success-40)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success:hover{border-color:var(--success-60)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success:active{border-color:var(--success-40);color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.secondary-outlined):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button{background-color:transparent;border-color:transparent}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button:hover:not(:disabled):not(.white){background-color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button>.counter{color:var(--grey-1)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme{color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme:active{color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.theme>.counter{background-color:var(--theme-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.grey{color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.grey>.counter{background-color:var(--grey-8)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info{color:var(--info-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info:active{color:var(--theme-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.info>.counter{background-color:var(--info-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error{color:var(--error-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error:active{color:var(--error-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.error>.counter{background-color:var(--error-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning{color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning:active{color:var(--warning-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.warning>.counter{background-color:var(--warning-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success{color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success:active{color:var(--success-highlight)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.success>.counter{background-color:var(--success-100)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white{color:#fff}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white>.counter{color:#000001;background-color:#fff}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.white:hover:not(:disabled){background-color:var(--grey-4)}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.black{color:#000001}pri-button:not(:has(:disabled)):has(.tertiary):not(:has(.has-sub-actions)) button.black>.counter{color:#fff;background-color:#000001}pri-button:has(.size-small){font-size:80%}pri-button:has(.size-large){font-size:120%}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { options: [{\r\n                type: Input\r\n            }], count: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], loading: [{\r\n                type: Input\r\n            }], extraClasses: [{\r\n                type: Input\r\n            }], action: [{\r\n                type: Output\r\n            }], onClickOutside: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass IButtonOption {\r\n}\n\n/**\r\n * Identifies a button type.\r\n * for each button style, by default, sets a specific style and text.\r\n */\r\nvar FormButtonType;\r\n(function (FormButtonType) {\r\n    /** Form Primary type button */\r\n    FormButtonType[FormButtonType[\"Primary\"] = 0] = \"Primary\";\r\n    /** Secondary type button */\r\n    FormButtonType[FormButtonType[\"Secondary\"] = 1] = \"Secondary\";\r\n    /** Danger type button */\r\n    FormButtonType[FormButtonType[\"Danger\"] = 2] = \"Danger\";\r\n    /** Next type button, ideal for step components */\r\n    FormButtonType[FormButtonType[\"NextIcon\"] = 3] = \"NextIcon\";\r\n    /** Back type button using an icon style, ideal for step components */\r\n    FormButtonType[FormButtonType[\"BackIcon\"] = 4] = \"BackIcon\";\r\n    /** Remove type button using an icon style */\r\n    FormButtonType[FormButtonType[\"RemoveIcon\"] = 5] = \"RemoveIcon\";\r\n    /** Action type button using no icon and no background */\r\n    FormButtonType[FormButtonType[\"Action\"] = 6] = \"Action\";\r\n})(FormButtonType || (FormButtonType = {}));\r\n/**\r\n * Identifies a button style\r\n */\r\nclass FormButtonStyle {\r\n    /**\r\n     * Creates an instance of form button style.\r\n     *\r\n     * @param style Button Style. Styles not defined will be settled with default values.\r\n     */\r\n    constructor(style) {\r\n        /** Defines the border style */\r\n        this.border = 2 /* FormButtonBorderStyle.Curved */;\r\n        /** Defines the font size */\r\n        this.fontSize = 1 /* FormButtonFontSize.Normal */;\r\n        /** Defines the size */\r\n        this.size = 1 /* FormButtonSize.FillParent */;\r\n        /** Defines the margins style */\r\n        this.margins = 1 /* FormButtonMarginsStyle.Auto */;\r\n        if (style && typeof style.border !== 'undefined') {\r\n            this.border = style.border;\r\n        }\r\n        else {\r\n            this.border = 2 /* FormButtonBorderStyle.Curved */;\r\n        }\r\n        if (style && typeof style.fontSize !== 'undefined') {\r\n            this.fontSize = style.fontSize;\r\n        }\r\n        else {\r\n            this.fontSize = 1 /* FormButtonFontSize.Normal */;\r\n        }\r\n        if (style && typeof style.size !== 'undefined') {\r\n            this.size = style.size;\r\n        }\r\n        else {\r\n            this.size = 1 /* FormButtonSize.FillParent */;\r\n        }\r\n        if (style && typeof style.margins !== 'undefined') {\r\n            this.margins = style.margins;\r\n        }\r\n        else {\r\n            this.margins = 1 /* FormButtonMarginsStyle.Auto */;\r\n        }\r\n    }\r\n}\n\nclass Stepper {\r\n    constructor() {\r\n        this.isReady = true;\r\n        this.scroll = false;\r\n        this.scrollTop = false;\r\n        this.currentStepIndex = 0;\r\n        this.totalNumberOfSteps = 0;\r\n    }\r\n    onNext() {\r\n        return new Observable((observer) => {\r\n            this.onNextSubscriber = observer;\r\n        });\r\n    }\r\n    onBack() {\r\n        return new Observable((observer) => {\r\n            this.onBackSubscriber = observer;\r\n        });\r\n    }\r\n    onCancel() {\r\n        return new Observable((observer) => {\r\n            this.onCancelSubscriber = observer;\r\n        });\r\n    }\r\n    onScroll() {\r\n        return new Observable((observer) => {\r\n            this.onScrollSubscriber = observer;\r\n        });\r\n    }\r\n    goNext() {\r\n        this.onNextSubscriber.next();\r\n        this.onNextSubscriber.complete();\r\n    }\r\n    goBack() {\r\n        this.onBackSubscriber.next();\r\n        this.onBackSubscriber.complete();\r\n    }\r\n    cancel() {\r\n        this.onCancelSubscriber.next();\r\n        this.onCancelSubscriber.complete();\r\n    }\r\n    emitScrollEvent(value) {\r\n        this.onScrollSubscriber.next(value);\r\n        this.onScrollSubscriber.complete();\r\n    }\r\n}\n\n/**\r\n * Enum that identifies the different types of custom validation errors in angular forms.\r\n */\r\nvar CustomValidationErrorTypeEnum;\r\n(function (CustomValidationErrorTypeEnum) {\r\n    CustomValidationErrorTypeEnum[\"URL\"] = \"url\";\r\n    CustomValidationErrorTypeEnum[\"EmailArray\"] = \"email-array\";\r\n    CustomValidationErrorTypeEnum[\"Version\"] = \"version\";\r\n    CustomValidationErrorTypeEnum[\"MaxFileSize\"] = \"max-file-size\";\r\n    CustomValidationErrorTypeEnum[\"UniqueValue\"] = \"unique-value\";\r\n    CustomValidationErrorTypeEnum[\"FileType\"] = \"file-type\";\r\n    CustomValidationErrorTypeEnum[\"Key\"] = \"key\";\r\n})(CustomValidationErrorTypeEnum || (CustomValidationErrorTypeEnum = {}));\n\nvar DraftOperationEnum;\r\n(function (DraftOperationEnum) {\r\n    DraftOperationEnum[\"SelectedMultipleLines\"] = \"selectedMultipleLines\";\r\n    DraftOperationEnum[\"SelectAll\"] = \"selectAll\";\r\n    DraftOperationEnum[\"UnselectAll\"] = \"unselectAll\";\r\n})(DraftOperationEnum || (DraftOperationEnum = {}));\n\n/* The strategy user to store drafts */\r\nvar DraftStoringStrategy;\r\n(function (DraftStoringStrategy) {\r\n    DraftStoringStrategy[\"Server\"] = \"server\";\r\n    DraftStoringStrategy[\"InMemory\"] = \"in-memory\";\r\n    DraftStoringStrategy[\"LocalStorage\"] = \"local-storage\";\r\n})(DraftStoringStrategy || (DraftStoringStrategy = {}));\n\n/**\r\n * Loading state enum\r\n */\r\nvar LoadingStateEnum;\r\n(function (LoadingStateEnum) {\r\n    LoadingStateEnum[LoadingStateEnum[\"None\"] = 0] = \"None\";\r\n    LoadingStateEnum[LoadingStateEnum[\"Loading\"] = 1] = \"Loading\";\r\n    LoadingStateEnum[LoadingStateEnum[\"Ready\"] = 2] = \"Ready\";\r\n})(LoadingStateEnum || (LoadingStateEnum = {}));\n\n/**\r\n * Loading spinner size enum\r\n */\r\nvar LoadingSpinnerSizeEnum;\r\n(function (LoadingSpinnerSizeEnum) {\r\n    LoadingSpinnerSizeEnum[\"Large\"] = \"large\";\r\n    LoadingSpinnerSizeEnum[\"Small\"] = \"small\";\r\n})(LoadingSpinnerSizeEnum || (LoadingSpinnerSizeEnum = {}));\n\n/**\r\n * Loading spinner type enum\r\n */\r\nvar LoadingSpinnerTypeEnum;\r\n(function (LoadingSpinnerTypeEnum) {\r\n    LoadingSpinnerTypeEnum[\"Circular\"] = \"circular\";\r\n    LoadingSpinnerTypeEnum[\"Determinate\"] = \"determinate\";\r\n    LoadingSpinnerTypeEnum[\"Indeterminate\"] = \"indeterminate\";\r\n})(LoadingSpinnerTypeEnum || (LoadingSpinnerTypeEnum = {}));\n\n/**\r\n * Define a structure for the Grouped Data Widget Config\r\n */\n\nclass MessageInfo {\r\n    constructor(message, title, type) {\r\n        this.message = message;\r\n        this.title = title;\r\n        this.type = type || 1 /* MessageType.Info */;\r\n    }\r\n    static getMessageTypeFromString(messageType) {\r\n        switch (messageType.toLowerCase()) {\r\n            case 'success': return 2 /* MessageType.Success */;\r\n            case 'warning': return 4 /* MessageType.Warning */;\r\n            case 'error': return 8 /* MessageType.Error */;\r\n            case 'info':\r\n            default: return 1 /* MessageType.Info */;\r\n        }\r\n    }\r\n}\n\n/**\r\n * Represent the popover size\r\n */\r\nclass PopoverSize {\r\n    /**\r\n     * Constructs the model\r\n     *\r\n     * @param width Width of the popover size\r\n     * @param maxHeight Max height of the popover size\r\n     */\r\n    constructor(width, maxHeight) {\r\n        this.width = width;\r\n        this.maxHeight = maxHeight;\r\n    }\r\n}\n\n/** The checkbox options */\r\nclass CheckboxOptions {\r\n    constructor(checkbox) {\r\n        /** The size of the checkbox */\r\n        this.size = FieldsSizeEnum.Regular;\r\n        if (checkbox) {\r\n            Object.assign(this, checkbox);\r\n        }\r\n    }\r\n}\n\nclass CheckboxComponent {\r\n    constructor() {\r\n        this.isDisabled$ = new BehaviorSubject(false);\r\n        this.selected$ = new BehaviorSubject(false);\r\n        this.indeterminate$ = new BehaviorSubject(false);\r\n        this._options = new CheckboxOptions();\r\n    }\r\n    set options(options) {\r\n        this._options = new CheckboxOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    set selected(value) {\r\n        this.selected$.next(value);\r\n    }\r\n    set indeterminate(value) {\r\n        this.indeterminate$.next(value);\r\n    }\r\n    set isDisabled(value) {\r\n        this.isDisabled$.next(value);\r\n    }\r\n    // #region ControlValueAccessor methods\r\n    writeValue(value) {\r\n        this.selected = value;\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChanged = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    setDisabledState(value) {\r\n        this.isDisabled = value;\r\n    }\r\n    // #endregion\r\n    // responsible for toggling the checkbox when clicking on it.\r\n    toggleCheckbox() {\r\n        this.selected = !this.selected$.getValue();\r\n        this.onChanged?.(this.selected$.getValue());\r\n        this.onTouched?.();\r\n    }\r\n}\r\nCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: CheckboxComponent, isStandalone: true, selector: \"pri-checkbox\", inputs: { options: \"options\", selected: \"selected\", indeterminate: \"indeterminate\", isDisabled: \"isDisabled\", extraClasses: \"extraClasses\" }, providers: [\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => CheckboxComponent),\r\n            multi: true\r\n        }\r\n    ], ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"checkbox-wrapper {{ options.size }} {{ extraClasses }}\\\"\\r\\n\\t[class.disabled]=\\\"isDisabled$ | async\\\"\\r\\n\\t(click)=\\\"toggleCheckbox()\\\"\\r\\n\\tdata-testid=\\\"test\\\">\\r\\n\\t<div class=\\\"checkbox\\\" [class.active]=\\\"selected$ | async\\\" [class.indeterminate]=\\\"indeterminate$ | async\\\">\\r\\n\\t\\t<input type=\\\"checkbox\\\" [attr.checked]=\\\"selected$ | async\\\" />\\r\\n\\t</div>\\r\\n\\t<i *ngIf=\\\"options.icon\\\" class=\\\"checkbox-icon\\\" [class]=\\\"options.icon\\\"></i>\\r\\n\\t<img *ngIf=\\\"options.image\\\" class=\\\"checkbox-image\\\" [src]=\\\"options.image\\\" />\\r\\n\\t<p *ngIf=\\\"options.description\\\" class=\\\"checkbox-label line-clamp\\\" priTooltipHover>{{ options.description }}</p>\\r\\n</div>\\r\\n\", styles: [\"pri-checkbox.ng-invalid.ng-touched.ng-dirty .checkbox-wrapper:not(.disabled) .checkbox{border-color:var(--error-100)}pri-checkbox .checkbox-wrapper{display:flex;align-items:center;gap:.55em;font-size:1em;cursor:pointer}pri-checkbox .checkbox-wrapper:hover:not(.disabled) .checkbox{border-color:var(--theme-100)}pri-checkbox .checkbox-wrapper:hover:not(.disabled) .checkbox-label{color:var(--grey-8)}pri-checkbox .checkbox-wrapper.disabled{pointer-events:none}pri-checkbox .checkbox-wrapper.disabled .checkbox{background-color:var(--grey-3)}pri-checkbox .checkbox-wrapper.disabled .checkbox.active{border-color:var(--grey-5);background-color:var(--grey-5)}pri-checkbox .checkbox-wrapper.size-small{font-size:.8em}pri-checkbox .checkbox-wrapper.size-large{font-size:1.2em}pri-checkbox .checkbox-wrapper .checkbox{position:relative;display:flex;align-items:center;justify-content:center;margin:0;height:1.4em;width:1.4em;border:1px solid var(--grey-5);border-radius:.2857142857rem;transition:all .2s;background-color:var(--grey-1)}pri-checkbox .checkbox-wrapper .checkbox:after{font-family:pollen;font-size:.85em;font-weight:600;color:var(--grey-1);opacity:0;transform:scale(1.8);transition:all .2s}pri-checkbox .checkbox-wrapper .checkbox.active{background-color:var(--theme-100);border-color:var(--theme-100)}pri-checkbox .checkbox-wrapper .checkbox.active:after{content:\\\"\\\\e64c\\\";opacity:1;transform:scale(1)}pri-checkbox .checkbox-wrapper .checkbox.indeterminate:after{content:\\\"\\\\e906\\\"}pri-checkbox .checkbox-wrapper .checkbox input{display:none}pri-checkbox .checkbox-wrapper .checkbox-icon{font-size:1.4em!important}pri-checkbox .checkbox-wrapper .checkbox-image{height:1.4em}pri-checkbox .checkbox-wrapper .checkbox-label{color:var(--grey-7);flex:1 0;line-height:1.4em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CheckboxComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-checkbox', imports: [CommonModule, TooltipHoverDirective], encapsulation: ViewEncapsulation.None, providers: [\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => CheckboxComponent),\r\n                            multi: true\r\n                        }\r\n                    ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div\\r\\n\\tclass=\\\"checkbox-wrapper {{ options.size }} {{ extraClasses }}\\\"\\r\\n\\t[class.disabled]=\\\"isDisabled$ | async\\\"\\r\\n\\t(click)=\\\"toggleCheckbox()\\\"\\r\\n\\tdata-testid=\\\"test\\\">\\r\\n\\t<div class=\\\"checkbox\\\" [class.active]=\\\"selected$ | async\\\" [class.indeterminate]=\\\"indeterminate$ | async\\\">\\r\\n\\t\\t<input type=\\\"checkbox\\\" [attr.checked]=\\\"selected$ | async\\\" />\\r\\n\\t</div>\\r\\n\\t<i *ngIf=\\\"options.icon\\\" class=\\\"checkbox-icon\\\" [class]=\\\"options.icon\\\"></i>\\r\\n\\t<img *ngIf=\\\"options.image\\\" class=\\\"checkbox-image\\\" [src]=\\\"options.image\\\" />\\r\\n\\t<p *ngIf=\\\"options.description\\\" class=\\\"checkbox-label line-clamp\\\" priTooltipHover>{{ options.description }}</p>\\r\\n</div>\\r\\n\", styles: [\"pri-checkbox.ng-invalid.ng-touched.ng-dirty .checkbox-wrapper:not(.disabled) .checkbox{border-color:var(--error-100)}pri-checkbox .checkbox-wrapper{display:flex;align-items:center;gap:.55em;font-size:1em;cursor:pointer}pri-checkbox .checkbox-wrapper:hover:not(.disabled) .checkbox{border-color:var(--theme-100)}pri-checkbox .checkbox-wrapper:hover:not(.disabled) .checkbox-label{color:var(--grey-8)}pri-checkbox .checkbox-wrapper.disabled{pointer-events:none}pri-checkbox .checkbox-wrapper.disabled .checkbox{background-color:var(--grey-3)}pri-checkbox .checkbox-wrapper.disabled .checkbox.active{border-color:var(--grey-5);background-color:var(--grey-5)}pri-checkbox .checkbox-wrapper.size-small{font-size:.8em}pri-checkbox .checkbox-wrapper.size-large{font-size:1.2em}pri-checkbox .checkbox-wrapper .checkbox{position:relative;display:flex;align-items:center;justify-content:center;margin:0;height:1.4em;width:1.4em;border:1px solid var(--grey-5);border-radius:.2857142857rem;transition:all .2s;background-color:var(--grey-1)}pri-checkbox .checkbox-wrapper .checkbox:after{font-family:pollen;font-size:.85em;font-weight:600;color:var(--grey-1);opacity:0;transform:scale(1.8);transition:all .2s}pri-checkbox .checkbox-wrapper .checkbox.active{background-color:var(--theme-100);border-color:var(--theme-100)}pri-checkbox .checkbox-wrapper .checkbox.active:after{content:\\\"\\\\e64c\\\";opacity:1;transform:scale(1)}pri-checkbox .checkbox-wrapper .checkbox.indeterminate:after{content:\\\"\\\\e906\\\"}pri-checkbox .checkbox-wrapper .checkbox input{display:none}pri-checkbox .checkbox-wrapper .checkbox-icon{font-size:1.4em!important}pri-checkbox .checkbox-wrapper .checkbox-image{height:1.4em}pri-checkbox .checkbox-wrapper .checkbox-label{color:var(--grey-7);flex:1 0;line-height:1.4em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}\\n\"] }]\r\n        }], propDecorators: { options: [{\r\n                type: Input\r\n            }], selected: [{\r\n                type: Input\r\n            }], indeterminate: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], extraClasses: [{\r\n                type: Input\r\n            }] } });\n\nclass CircleCountComponent {\r\n    constructor() {\r\n        this.setClassName();\r\n    }\r\n    ngOnInit() { }\r\n    ngOnChanges(changes) {\r\n        if (changes['percentage']) {\r\n            // Set className\r\n            this.setClassName();\r\n        }\r\n    }\r\n    /*\r\n    Sets the className property\r\n    */\r\n    setClassName() {\r\n        if (!isNaN(this.percentage)) {\r\n            this.className = `c100 p${this.percentage} Percent small`;\r\n        }\r\n    }\r\n}\r\nCircleCountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CircleCountComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nCircleCountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: CircleCountComponent, selector: \"pri-circle-count\", inputs: { percentage: \"percentage\", count: \"count\", message: \"message\" }, usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"circle-count\\\">\\r\\n    <div [ngClass]=\\\"this.className ? this.className : ''\\\">\\r\\n        <span>{{ count }}</span>\\r\\n        <div class=\\\"slice\\\">\\r\\n            <div class=\\\"bar\\\"></div>\\r\\n            <div class=\\\"fill\\\"></div>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div *ngIf=\\\"this.message\\\">\\r\\n        <h1>{{ message }}</h1>\\r\\n    </div>\\r\\n</div>\\r\\n\", styles: [\"pri-circle-count .circle-count{display:flex;flex-direction:row;flex-wrap:wrap}pri-circle-count .rect-auto{clip:rect(auto,auto,auto,auto)}pri-circle-count .c100.p51 .slice,pri-circle-count .c100.p52 .slice,pri-circle-count .c100.p53 .slice,pri-circle-count .c100.p54 .slice,pri-circle-count .c100.p55 .slice,pri-circle-count .c100.p56 .slice,pri-circle-count .c100.p57 .slice,pri-circle-count .c100.p58 .slice,pri-circle-count .c100.p59 .slice,pri-circle-count .c100.p60 .slice,pri-circle-count .c100.p61 .slice,pri-circle-count .c100.p62 .slice,pri-circle-count .c100.p63 .slice,pri-circle-count .c100.p64 .slice,pri-circle-count .c100.p65 .slice,pri-circle-count .c100.p66 .slice,pri-circle-count .c100.p67 .slice,pri-circle-count .c100.p68 .slice,pri-circle-count .c100.p69 .slice,pri-circle-count .c100.p70 .slice,pri-circle-count .c100.p71 .slice,pri-circle-count .c100.p72 .slice,pri-circle-count .c100.p73 .slice,pri-circle-count .c100.p74 .slice,pri-circle-count .c100.p75 .slice,pri-circle-count .c100.p76 .slice,pri-circle-count .c100.p77 .slice,pri-circle-count .c100.p78 .slice,pri-circle-count .c100.p79 .slice,pri-circle-count .c100.p80 .slice,pri-circle-count .c100.p81 .slice,pri-circle-count .c100.p82 .slice,pri-circle-count .c100.p83 .slice,pri-circle-count .c100.p84 .slice,pri-circle-count .c100.p85 .slice,pri-circle-count .c100.p86 .slice,pri-circle-count .c100.p87 .slice,pri-circle-count .c100.p88 .slice,pri-circle-count .c100.p89 .slice,pri-circle-count .c100.p90 .slice,pri-circle-count .c100.p91 .slice,pri-circle-count .c100.p92 .slice,pri-circle-count .c100.p93 .slice,pri-circle-count .c100.p94 .slice,pri-circle-count .c100.p95 .slice,pri-circle-count .c100.p96 .slice,pri-circle-count .c100.p97 .slice,pri-circle-count .c100.p98 .slice,pri-circle-count .c100.p99 .slice,pri-circle-count .c100.p100 .slice{clip:rect(auto,auto,auto,auto)}pri-circle-count .pie{position:absolute;border:.08em solid var(--theme-100);width:.84em;height:.84em;clip:rect(0em,.5em,1em,0em);border-radius:50%;transform:rotate(0)}pri-circle-count .c100 .bar,pri-circle-count .c100.p51 .fill,pri-circle-count .c100.p52 .fill,pri-circle-count .c100.p53 .fill,pri-circle-count .c100.p54 .fill,pri-circle-count .c100.p55 .fill,pri-circle-count .c100.p56 .fill,pri-circle-count .c100.p57 .fill,pri-circle-count .c100.p58 .fill,pri-circle-count .c100.p59 .fill,pri-circle-count .c100.p60 .fill,pri-circle-count .c100.p61 .fill,pri-circle-count .c100.p62 .fill,pri-circle-count .c100.p63 .fill,pri-circle-count .c100.p64 .fill,pri-circle-count .c100.p65 .fill,pri-circle-count .c100.p66 .fill,pri-circle-count .c100.p67 .fill,pri-circle-count .c100.p68 .fill,pri-circle-count .c100.p69 .fill,pri-circle-count .c100.p70 .fill,pri-circle-count .c100.p71 .fill,pri-circle-count .c100.p72 .fill,pri-circle-count .c100.p73 .fill,pri-circle-count .c100.p74 .fill,pri-circle-count .c100.p75 .fill,pri-circle-count .c100.p76 .fill,pri-circle-count .c100.p77 .fill,pri-circle-count .c100.p78 .fill,pri-circle-count .c100.p79 .fill,pri-circle-count .c100.p80 .fill,pri-circle-count .c100.p81 .fill,pri-circle-count .c100.p82 .fill,pri-circle-count .c100.p83 .fill,pri-circle-count .c100.p84 .fill,pri-circle-count .c100.p85 .fill,pri-circle-count .c100.p86 .fill,pri-circle-count .c100.p87 .fill,pri-circle-count .c100.p88 .fill,pri-circle-count .c100.p89 .fill,pri-circle-count .c100.p90 .fill,pri-circle-count .c100.p91 .fill,pri-circle-count .c100.p92 .fill,pri-circle-count .c100.p93 .fill,pri-circle-count .c100.p94 .fill,pri-circle-count .c100.p95 .fill,pri-circle-count .c100.p96 .fill,pri-circle-count .c100.p97 .fill,pri-circle-count .c100.p98 .fill,pri-circle-count .c100.p99 .fill,pri-circle-count .c100.p100 .fill{position:absolute;border:.08em solid var(--theme-100);width:.84em;height:.84em;clip:rect(0em,.5em,1em,0em);border-radius:50%;transform:rotate(0)}pri-circle-count .pie-fill{transform:rotate(180deg)}pri-circle-count .c100{position:relative;font-size:120px;width:1em;height:1em;border-radius:50%;float:left;margin:0 .1em .1em 0;background-color:var(--grey-5)}pri-circle-count .c100.p51 .bar:after,pri-circle-count .c100.p51 .fill,pri-circle-count .c100.p52 .bar:after,pri-circle-count .c100.p52 .fill,pri-circle-count .c100.p53 .bar:after,pri-circle-count .c100.p53 .fill,pri-circle-count .c100.p54 .bar:after,pri-circle-count .c100.p54 .fill,pri-circle-count .c100.p55 .bar:after,pri-circle-count .c100.p55 .fill,pri-circle-count .c100.p56 .bar:after,pri-circle-count .c100.p56 .fill,pri-circle-count .c100.p57 .bar:after,pri-circle-count .c100.p57 .fill,pri-circle-count .c100.p58 .bar:after,pri-circle-count .c100.p58 .fill,pri-circle-count .c100.p59 .bar:after,pri-circle-count .c100.p59 .fill,pri-circle-count .c100.p60 .bar:after,pri-circle-count .c100.p60 .fill,pri-circle-count .c100.p61 .bar:after,pri-circle-count .c100.p61 .fill,pri-circle-count .c100.p62 .bar:after,pri-circle-count .c100.p62 .fill,pri-circle-count .c100.p63 .bar:after,pri-circle-count .c100.p63 .fill,pri-circle-count .c100.p64 .bar:after,pri-circle-count .c100.p64 .fill,pri-circle-count .c100.p65 .bar:after,pri-circle-count .c100.p65 .fill,pri-circle-count .c100.p66 .bar:after,pri-circle-count .c100.p66 .fill,pri-circle-count .c100.p67 .bar:after,pri-circle-count .c100.p67 .fill,pri-circle-count .c100.p68 .bar:after,pri-circle-count .c100.p68 .fill,pri-circle-count .c100.p69 .bar:after,pri-circle-count .c100.p69 .fill,pri-circle-count .c100.p70 .bar:after,pri-circle-count .c100.p70 .fill,pri-circle-count .c100.p71 .bar:after,pri-circle-count .c100.p71 .fill,pri-circle-count .c100.p72 .bar:after,pri-circle-count .c100.p72 .fill,pri-circle-count .c100.p73 .bar:after,pri-circle-count .c100.p73 .fill,pri-circle-count .c100.p74 .bar:after,pri-circle-count .c100.p74 .fill,pri-circle-count .c100.p75 .bar:after,pri-circle-count .c100.p75 .fill,pri-circle-count .c100.p76 .bar:after,pri-circle-count .c100.p76 .fill,pri-circle-count .c100.p77 .bar:after,pri-circle-count .c100.p77 .fill,pri-circle-count .c100.p78 .bar:after,pri-circle-count .c100.p78 .fill,pri-circle-count .c100.p79 .bar:after,pri-circle-count .c100.p79 .fill,pri-circle-count .c100.p80 .bar:after,pri-circle-count .c100.p80 .fill,pri-circle-count .c100.p81 .bar:after,pri-circle-count .c100.p81 .fill,pri-circle-count .c100.p82 .bar:after,pri-circle-count .c100.p82 .fill,pri-circle-count .c100.p83 .bar:after,pri-circle-count .c100.p83 .fill,pri-circle-count .c100.p84 .bar:after,pri-circle-count .c100.p84 .fill,pri-circle-count .c100.p85 .bar:after,pri-circle-count .c100.p85 .fill,pri-circle-count .c100.p86 .bar:after,pri-circle-count .c100.p86 .fill,pri-circle-count .c100.p87 .bar:after,pri-circle-count .c100.p87 .fill,pri-circle-count .c100.p88 .bar:after,pri-circle-count .c100.p88 .fill,pri-circle-count .c100.p89 .bar:after,pri-circle-count .c100.p89 .fill,pri-circle-count .c100.p90 .bar:after,pri-circle-count .c100.p90 .fill,pri-circle-count .c100.p91 .bar:after,pri-circle-count .c100.p91 .fill,pri-circle-count .c100.p92 .bar:after,pri-circle-count .c100.p92 .fill,pri-circle-count .c100.p93 .bar:after,pri-circle-count .c100.p93 .fill,pri-circle-count .c100.p94 .bar:after,pri-circle-count .c100.p94 .fill,pri-circle-count .c100.p95 .bar:after,pri-circle-count .c100.p95 .fill,pri-circle-count .c100.p96 .bar:after,pri-circle-count .c100.p96 .fill,pri-circle-count .c100.p97 .bar:after,pri-circle-count .c100.p97 .fill,pri-circle-count .c100.p98 .bar:after,pri-circle-count .c100.p98 .fill,pri-circle-count .c100.p99 .bar:after,pri-circle-count .c100.p99 .fill,pri-circle-count .c100.p100 .bar:after,pri-circle-count .c100.p100 .fill{transform:rotate(180deg)}pri-circle-count .c100 *{box-sizing:content-box}pri-circle-count .c100 *:before,pri-circle-count .c100 *:after{box-sizing:content-box}pri-circle-count .c100.center{float:none;margin:0 auto}pri-circle-count .c100.big{font-size:240px}pri-circle-count .c100.small{font-size:80px}pri-circle-count .c100>span{position:absolute;width:100%;z-index:1;left:0;top:0;width:5em;line-height:5em;font-size:.2em;color:var(--grey-6);display:block;text-align:center;white-space:nowrap;transition-property:all;transition-duration:.2s;transition-timing-function:ease-out}pri-circle-count .c100:after{position:absolute;top:.08em;left:.08em;display:block;content:\\\" \\\";border-radius:50%;background-color:var(--grey-1);width:.84em;height:.84em;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in}pri-circle-count .c100 .slice{position:absolute;width:1em;height:1em;clip:rect(0em,1em,1em,.5em)}pri-circle-count .c100.p1 .bar{transform:rotate(3.6deg)}pri-circle-count .c100.p2 .bar{transform:rotate(7.2deg)}pri-circle-count .c100.p3 .bar{transform:rotate(10.8deg)}pri-circle-count .c100.p4 .bar{transform:rotate(14.4deg)}pri-circle-count .c100.p5 .bar{transform:rotate(18deg)}pri-circle-count .c100.p6 .bar{transform:rotate(21.6deg)}pri-circle-count .c100.p7 .bar{transform:rotate(25.2deg)}pri-circle-count .c100.p8 .bar{transform:rotate(28.8deg)}pri-circle-count .c100.p9 .bar{transform:rotate(32.4deg)}pri-circle-count .c100.p10 .bar{transform:rotate(36deg)}pri-circle-count .c100.p11 .bar{transform:rotate(39.6deg)}pri-circle-count .c100.p12 .bar{transform:rotate(43.2deg)}pri-circle-count .c100.p13 .bar{transform:rotate(46.8deg)}pri-circle-count .c100.p14 .bar{transform:rotate(50.4deg)}pri-circle-count .c100.p15 .bar{transform:rotate(54deg)}pri-circle-count .c100.p16 .bar{transform:rotate(57.6deg)}pri-circle-count .c100.p17 .bar{transform:rotate(61.2deg)}pri-circle-count .c100.p18 .bar{transform:rotate(64.8deg)}pri-circle-count .c100.p19 .bar{transform:rotate(68.4deg)}pri-circle-count .c100.p20 .bar{transform:rotate(72deg)}pri-circle-count .c100.p21 .bar{transform:rotate(75.6deg)}pri-circle-count .c100.p22 .bar{transform:rotate(79.2deg)}pri-circle-count .c100.p23 .bar{transform:rotate(82.8deg)}pri-circle-count .c100.p24 .bar{transform:rotate(86.4deg)}pri-circle-count .c100.p25 .bar{transform:rotate(90deg)}pri-circle-count .c100.p26 .bar{transform:rotate(93.6deg)}pri-circle-count .c100.p27 .bar{transform:rotate(97.2deg)}pri-circle-count .c100.p28 .bar{transform:rotate(100.8deg)}pri-circle-count .c100.p29 .bar{transform:rotate(104.4deg)}pri-circle-count .c100.p30 .bar{transform:rotate(108deg)}pri-circle-count .c100.p31 .bar{transform:rotate(111.6deg)}pri-circle-count .c100.p32 .bar{transform:rotate(115.2deg)}pri-circle-count .c100.p33 .bar{transform:rotate(118.8deg)}pri-circle-count .c100.p34 .bar{transform:rotate(122.4deg)}pri-circle-count .c100.p35 .bar{transform:rotate(126deg)}pri-circle-count .c100.p36 .bar{transform:rotate(129.6deg)}pri-circle-count .c100.p37 .bar{transform:rotate(133.2deg)}pri-circle-count .c100.p38 .bar{transform:rotate(136.8deg)}pri-circle-count .c100.p39 .bar{transform:rotate(140.4deg)}pri-circle-count .c100.p40 .bar{transform:rotate(144deg)}pri-circle-count .c100.p41 .bar{transform:rotate(147.6deg)}pri-circle-count .c100.p42 .bar{transform:rotate(151.2deg)}pri-circle-count .c100.p43 .bar{transform:rotate(154.8deg)}pri-circle-count .c100.p44 .bar{transform:rotate(158.4deg)}pri-circle-count .c100.p45 .bar{transform:rotate(162deg)}pri-circle-count .c100.p46 .bar{transform:rotate(165.6deg)}pri-circle-count .c100.p47 .bar{transform:rotate(169.2deg)}pri-circle-count .c100.p48 .bar{transform:rotate(172.8deg)}pri-circle-count .c100.p49 .bar{transform:rotate(176.4deg)}pri-circle-count .c100.p50 .bar{transform:rotate(180deg)}pri-circle-count .c100.p51 .bar{transform:rotate(183.6deg)}pri-circle-count .c100.p52 .bar{transform:rotate(187.2deg)}pri-circle-count .c100.p53 .bar{transform:rotate(190.8deg)}pri-circle-count .c100.p54 .bar{transform:rotate(194.4deg)}pri-circle-count .c100.p55 .bar{transform:rotate(198deg)}pri-circle-count .c100.p56 .bar{transform:rotate(201.6deg)}pri-circle-count .c100.p57 .bar{transform:rotate(205.2deg)}pri-circle-count .c100.p58 .bar{transform:rotate(208.8deg)}pri-circle-count .c100.p59 .bar{transform:rotate(212.4deg)}pri-circle-count .c100.p60 .bar{transform:rotate(216deg)}pri-circle-count .c100.p61 .bar{transform:rotate(219.6deg)}pri-circle-count .c100.p62 .bar{transform:rotate(223.2deg)}pri-circle-count .c100.p63 .bar{transform:rotate(226.8deg)}pri-circle-count .c100.p64 .bar{transform:rotate(230.4deg)}pri-circle-count .c100.p65 .bar{transform:rotate(234deg)}pri-circle-count .c100.p66 .bar{transform:rotate(237.6deg)}pri-circle-count .c100.p67 .bar{transform:rotate(241.2deg)}pri-circle-count .c100.p68 .bar{transform:rotate(244.8deg)}pri-circle-count .c100.p69 .bar{transform:rotate(248.4deg)}pri-circle-count .c100.p70 .bar{transform:rotate(252deg)}pri-circle-count .c100.p71 .bar{transform:rotate(255.6deg)}pri-circle-count .c100.p72 .bar{transform:rotate(259.2deg)}pri-circle-count .c100.p73 .bar{transform:rotate(262.8deg)}pri-circle-count .c100.p74 .bar{transform:rotate(266.4deg)}pri-circle-count .c100.p75 .bar{transform:rotate(270deg)}pri-circle-count .c100.p76 .bar{transform:rotate(273.6deg)}pri-circle-count .c100.p77 .bar{transform:rotate(277.2deg)}pri-circle-count .c100.p78 .bar{transform:rotate(280.8deg)}pri-circle-count .c100.p79 .bar{transform:rotate(284.4deg)}pri-circle-count .c100.p80 .bar{transform:rotate(288deg)}pri-circle-count .c100.p81 .bar{transform:rotate(291.6deg)}pri-circle-count .c100.p82 .bar{transform:rotate(295.2deg)}pri-circle-count .c100.p83 .bar{transform:rotate(298.8deg)}pri-circle-count .c100.p84 .bar{transform:rotate(302.4deg)}pri-circle-count .c100.p85 .bar{transform:rotate(306deg)}pri-circle-count .c100.p86 .bar{transform:rotate(309.6deg)}pri-circle-count .c100.p87 .bar{transform:rotate(313.2deg)}pri-circle-count .c100.p88 .bar{transform:rotate(316.8deg)}pri-circle-count .c100.p89 .bar{transform:rotate(320.4deg)}pri-circle-count .c100.p90 .bar{transform:rotate(324deg)}pri-circle-count .c100.p91 .bar{transform:rotate(327.6deg)}pri-circle-count .c100.p92 .bar{transform:rotate(331.2deg)}pri-circle-count .c100.p93 .bar{transform:rotate(334.8deg)}pri-circle-count .c100.p94 .bar{transform:rotate(338.4deg)}pri-circle-count .c100.p95 .bar{transform:rotate(342deg)}pri-circle-count .c100.p96 .bar{transform:rotate(345.6deg)}pri-circle-count .c100.p97 .bar{transform:rotate(349.2deg)}pri-circle-count .c100.p98 .bar{transform:rotate(352.8deg)}pri-circle-count .c100.p99 .bar{transform:rotate(356.4deg)}pri-circle-count .c100.p100 .bar{transform:rotate(360deg)}pri-circle-count .c100:hover{cursor:default}pri-circle-count .c100:hover>span{width:3.33em;line-height:3.33em;font-size:.3em;color:var(--theme-100)}pri-circle-count .c100:hover:after{top:.04em;left:.04em;width:.92em;height:.92em}pri-circle-count .c100.dark{background-color:#888}pri-circle-count .c100.dark .bar,pri-circle-count .c100.dark .fill{border-color:#c6ff00!important}pri-circle-count .c100.dark>span{color:#888}pri-circle-count .c100.dark:after{background-color:#666}pri-circle-count .c100.dark:hover>span{color:#c6ff00}pri-circle-count .c100.green .bar,pri-circle-count .c100.green .fill{border-color:var(--success-100)!important}pri-circle-count .c100.green:hover>span{color:var(--success-100)}pri-circle-count .c100.green.dark .bar,pri-circle-count .c100.green.dark .fill{border-color:var(--success-100)!important}pri-circle-count .c100.green.dark:hover>span{color:var(--success-100)}pri-circle-count .c100.orange .bar,pri-circle-count .c100.orange .fill{border-color:var(--warning-100)!important}pri-circle-count .c100.orange:hover>span{color:var(--warning-100)}pri-circle-count .c100.orange.dark .bar,pri-circle-count .c100.orange.dark .fill{border-color:var(--warning-100)!important}pri-circle-count .c100.orange.dark:hover>span{color:var(--warning-100)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CircleCountComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-circle-count', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"circle-count\\\">\\r\\n    <div [ngClass]=\\\"this.className ? this.className : ''\\\">\\r\\n        <span>{{ count }}</span>\\r\\n        <div class=\\\"slice\\\">\\r\\n            <div class=\\\"bar\\\"></div>\\r\\n            <div class=\\\"fill\\\"></div>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div *ngIf=\\\"this.message\\\">\\r\\n        <h1>{{ message }}</h1>\\r\\n    </div>\\r\\n</div>\\r\\n\", styles: [\"pri-circle-count .circle-count{display:flex;flex-direction:row;flex-wrap:wrap}pri-circle-count .rect-auto{clip:rect(auto,auto,auto,auto)}pri-circle-count .c100.p51 .slice,pri-circle-count .c100.p52 .slice,pri-circle-count .c100.p53 .slice,pri-circle-count .c100.p54 .slice,pri-circle-count .c100.p55 .slice,pri-circle-count .c100.p56 .slice,pri-circle-count .c100.p57 .slice,pri-circle-count .c100.p58 .slice,pri-circle-count .c100.p59 .slice,pri-circle-count .c100.p60 .slice,pri-circle-count .c100.p61 .slice,pri-circle-count .c100.p62 .slice,pri-circle-count .c100.p63 .slice,pri-circle-count .c100.p64 .slice,pri-circle-count .c100.p65 .slice,pri-circle-count .c100.p66 .slice,pri-circle-count .c100.p67 .slice,pri-circle-count .c100.p68 .slice,pri-circle-count .c100.p69 .slice,pri-circle-count .c100.p70 .slice,pri-circle-count .c100.p71 .slice,pri-circle-count .c100.p72 .slice,pri-circle-count .c100.p73 .slice,pri-circle-count .c100.p74 .slice,pri-circle-count .c100.p75 .slice,pri-circle-count .c100.p76 .slice,pri-circle-count .c100.p77 .slice,pri-circle-count .c100.p78 .slice,pri-circle-count .c100.p79 .slice,pri-circle-count .c100.p80 .slice,pri-circle-count .c100.p81 .slice,pri-circle-count .c100.p82 .slice,pri-circle-count .c100.p83 .slice,pri-circle-count .c100.p84 .slice,pri-circle-count .c100.p85 .slice,pri-circle-count .c100.p86 .slice,pri-circle-count .c100.p87 .slice,pri-circle-count .c100.p88 .slice,pri-circle-count .c100.p89 .slice,pri-circle-count .c100.p90 .slice,pri-circle-count .c100.p91 .slice,pri-circle-count .c100.p92 .slice,pri-circle-count .c100.p93 .slice,pri-circle-count .c100.p94 .slice,pri-circle-count .c100.p95 .slice,pri-circle-count .c100.p96 .slice,pri-circle-count .c100.p97 .slice,pri-circle-count .c100.p98 .slice,pri-circle-count .c100.p99 .slice,pri-circle-count .c100.p100 .slice{clip:rect(auto,auto,auto,auto)}pri-circle-count .pie{position:absolute;border:.08em solid var(--theme-100);width:.84em;height:.84em;clip:rect(0em,.5em,1em,0em);border-radius:50%;transform:rotate(0)}pri-circle-count .c100 .bar,pri-circle-count .c100.p51 .fill,pri-circle-count .c100.p52 .fill,pri-circle-count .c100.p53 .fill,pri-circle-count .c100.p54 .fill,pri-circle-count .c100.p55 .fill,pri-circle-count .c100.p56 .fill,pri-circle-count .c100.p57 .fill,pri-circle-count .c100.p58 .fill,pri-circle-count .c100.p59 .fill,pri-circle-count .c100.p60 .fill,pri-circle-count .c100.p61 .fill,pri-circle-count .c100.p62 .fill,pri-circle-count .c100.p63 .fill,pri-circle-count .c100.p64 .fill,pri-circle-count .c100.p65 .fill,pri-circle-count .c100.p66 .fill,pri-circle-count .c100.p67 .fill,pri-circle-count .c100.p68 .fill,pri-circle-count .c100.p69 .fill,pri-circle-count .c100.p70 .fill,pri-circle-count .c100.p71 .fill,pri-circle-count .c100.p72 .fill,pri-circle-count .c100.p73 .fill,pri-circle-count .c100.p74 .fill,pri-circle-count .c100.p75 .fill,pri-circle-count .c100.p76 .fill,pri-circle-count .c100.p77 .fill,pri-circle-count .c100.p78 .fill,pri-circle-count .c100.p79 .fill,pri-circle-count .c100.p80 .fill,pri-circle-count .c100.p81 .fill,pri-circle-count .c100.p82 .fill,pri-circle-count .c100.p83 .fill,pri-circle-count .c100.p84 .fill,pri-circle-count .c100.p85 .fill,pri-circle-count .c100.p86 .fill,pri-circle-count .c100.p87 .fill,pri-circle-count .c100.p88 .fill,pri-circle-count .c100.p89 .fill,pri-circle-count .c100.p90 .fill,pri-circle-count .c100.p91 .fill,pri-circle-count .c100.p92 .fill,pri-circle-count .c100.p93 .fill,pri-circle-count .c100.p94 .fill,pri-circle-count .c100.p95 .fill,pri-circle-count .c100.p96 .fill,pri-circle-count .c100.p97 .fill,pri-circle-count .c100.p98 .fill,pri-circle-count .c100.p99 .fill,pri-circle-count .c100.p100 .fill{position:absolute;border:.08em solid var(--theme-100);width:.84em;height:.84em;clip:rect(0em,.5em,1em,0em);border-radius:50%;transform:rotate(0)}pri-circle-count .pie-fill{transform:rotate(180deg)}pri-circle-count .c100{position:relative;font-size:120px;width:1em;height:1em;border-radius:50%;float:left;margin:0 .1em .1em 0;background-color:var(--grey-5)}pri-circle-count .c100.p51 .bar:after,pri-circle-count .c100.p51 .fill,pri-circle-count .c100.p52 .bar:after,pri-circle-count .c100.p52 .fill,pri-circle-count .c100.p53 .bar:after,pri-circle-count .c100.p53 .fill,pri-circle-count .c100.p54 .bar:after,pri-circle-count .c100.p54 .fill,pri-circle-count .c100.p55 .bar:after,pri-circle-count .c100.p55 .fill,pri-circle-count .c100.p56 .bar:after,pri-circle-count .c100.p56 .fill,pri-circle-count .c100.p57 .bar:after,pri-circle-count .c100.p57 .fill,pri-circle-count .c100.p58 .bar:after,pri-circle-count .c100.p58 .fill,pri-circle-count .c100.p59 .bar:after,pri-circle-count .c100.p59 .fill,pri-circle-count .c100.p60 .bar:after,pri-circle-count .c100.p60 .fill,pri-circle-count .c100.p61 .bar:after,pri-circle-count .c100.p61 .fill,pri-circle-count .c100.p62 .bar:after,pri-circle-count .c100.p62 .fill,pri-circle-count .c100.p63 .bar:after,pri-circle-count .c100.p63 .fill,pri-circle-count .c100.p64 .bar:after,pri-circle-count .c100.p64 .fill,pri-circle-count .c100.p65 .bar:after,pri-circle-count .c100.p65 .fill,pri-circle-count .c100.p66 .bar:after,pri-circle-count .c100.p66 .fill,pri-circle-count .c100.p67 .bar:after,pri-circle-count .c100.p67 .fill,pri-circle-count .c100.p68 .bar:after,pri-circle-count .c100.p68 .fill,pri-circle-count .c100.p69 .bar:after,pri-circle-count .c100.p69 .fill,pri-circle-count .c100.p70 .bar:after,pri-circle-count .c100.p70 .fill,pri-circle-count .c100.p71 .bar:after,pri-circle-count .c100.p71 .fill,pri-circle-count .c100.p72 .bar:after,pri-circle-count .c100.p72 .fill,pri-circle-count .c100.p73 .bar:after,pri-circle-count .c100.p73 .fill,pri-circle-count .c100.p74 .bar:after,pri-circle-count .c100.p74 .fill,pri-circle-count .c100.p75 .bar:after,pri-circle-count .c100.p75 .fill,pri-circle-count .c100.p76 .bar:after,pri-circle-count .c100.p76 .fill,pri-circle-count .c100.p77 .bar:after,pri-circle-count .c100.p77 .fill,pri-circle-count .c100.p78 .bar:after,pri-circle-count .c100.p78 .fill,pri-circle-count .c100.p79 .bar:after,pri-circle-count .c100.p79 .fill,pri-circle-count .c100.p80 .bar:after,pri-circle-count .c100.p80 .fill,pri-circle-count .c100.p81 .bar:after,pri-circle-count .c100.p81 .fill,pri-circle-count .c100.p82 .bar:after,pri-circle-count .c100.p82 .fill,pri-circle-count .c100.p83 .bar:after,pri-circle-count .c100.p83 .fill,pri-circle-count .c100.p84 .bar:after,pri-circle-count .c100.p84 .fill,pri-circle-count .c100.p85 .bar:after,pri-circle-count .c100.p85 .fill,pri-circle-count .c100.p86 .bar:after,pri-circle-count .c100.p86 .fill,pri-circle-count .c100.p87 .bar:after,pri-circle-count .c100.p87 .fill,pri-circle-count .c100.p88 .bar:after,pri-circle-count .c100.p88 .fill,pri-circle-count .c100.p89 .bar:after,pri-circle-count .c100.p89 .fill,pri-circle-count .c100.p90 .bar:after,pri-circle-count .c100.p90 .fill,pri-circle-count .c100.p91 .bar:after,pri-circle-count .c100.p91 .fill,pri-circle-count .c100.p92 .bar:after,pri-circle-count .c100.p92 .fill,pri-circle-count .c100.p93 .bar:after,pri-circle-count .c100.p93 .fill,pri-circle-count .c100.p94 .bar:after,pri-circle-count .c100.p94 .fill,pri-circle-count .c100.p95 .bar:after,pri-circle-count .c100.p95 .fill,pri-circle-count .c100.p96 .bar:after,pri-circle-count .c100.p96 .fill,pri-circle-count .c100.p97 .bar:after,pri-circle-count .c100.p97 .fill,pri-circle-count .c100.p98 .bar:after,pri-circle-count .c100.p98 .fill,pri-circle-count .c100.p99 .bar:after,pri-circle-count .c100.p99 .fill,pri-circle-count .c100.p100 .bar:after,pri-circle-count .c100.p100 .fill{transform:rotate(180deg)}pri-circle-count .c100 *{box-sizing:content-box}pri-circle-count .c100 *:before,pri-circle-count .c100 *:after{box-sizing:content-box}pri-circle-count .c100.center{float:none;margin:0 auto}pri-circle-count .c100.big{font-size:240px}pri-circle-count .c100.small{font-size:80px}pri-circle-count .c100>span{position:absolute;width:100%;z-index:1;left:0;top:0;width:5em;line-height:5em;font-size:.2em;color:var(--grey-6);display:block;text-align:center;white-space:nowrap;transition-property:all;transition-duration:.2s;transition-timing-function:ease-out}pri-circle-count .c100:after{position:absolute;top:.08em;left:.08em;display:block;content:\\\" \\\";border-radius:50%;background-color:var(--grey-1);width:.84em;height:.84em;transition-property:all;transition-duration:.2s;transition-timing-function:ease-in}pri-circle-count .c100 .slice{position:absolute;width:1em;height:1em;clip:rect(0em,1em,1em,.5em)}pri-circle-count .c100.p1 .bar{transform:rotate(3.6deg)}pri-circle-count .c100.p2 .bar{transform:rotate(7.2deg)}pri-circle-count .c100.p3 .bar{transform:rotate(10.8deg)}pri-circle-count .c100.p4 .bar{transform:rotate(14.4deg)}pri-circle-count .c100.p5 .bar{transform:rotate(18deg)}pri-circle-count .c100.p6 .bar{transform:rotate(21.6deg)}pri-circle-count .c100.p7 .bar{transform:rotate(25.2deg)}pri-circle-count .c100.p8 .bar{transform:rotate(28.8deg)}pri-circle-count .c100.p9 .bar{transform:rotate(32.4deg)}pri-circle-count .c100.p10 .bar{transform:rotate(36deg)}pri-circle-count .c100.p11 .bar{transform:rotate(39.6deg)}pri-circle-count .c100.p12 .bar{transform:rotate(43.2deg)}pri-circle-count .c100.p13 .bar{transform:rotate(46.8deg)}pri-circle-count .c100.p14 .bar{transform:rotate(50.4deg)}pri-circle-count .c100.p15 .bar{transform:rotate(54deg)}pri-circle-count .c100.p16 .bar{transform:rotate(57.6deg)}pri-circle-count .c100.p17 .bar{transform:rotate(61.2deg)}pri-circle-count .c100.p18 .bar{transform:rotate(64.8deg)}pri-circle-count .c100.p19 .bar{transform:rotate(68.4deg)}pri-circle-count .c100.p20 .bar{transform:rotate(72deg)}pri-circle-count .c100.p21 .bar{transform:rotate(75.6deg)}pri-circle-count .c100.p22 .bar{transform:rotate(79.2deg)}pri-circle-count .c100.p23 .bar{transform:rotate(82.8deg)}pri-circle-count .c100.p24 .bar{transform:rotate(86.4deg)}pri-circle-count .c100.p25 .bar{transform:rotate(90deg)}pri-circle-count .c100.p26 .bar{transform:rotate(93.6deg)}pri-circle-count .c100.p27 .bar{transform:rotate(97.2deg)}pri-circle-count .c100.p28 .bar{transform:rotate(100.8deg)}pri-circle-count .c100.p29 .bar{transform:rotate(104.4deg)}pri-circle-count .c100.p30 .bar{transform:rotate(108deg)}pri-circle-count .c100.p31 .bar{transform:rotate(111.6deg)}pri-circle-count .c100.p32 .bar{transform:rotate(115.2deg)}pri-circle-count .c100.p33 .bar{transform:rotate(118.8deg)}pri-circle-count .c100.p34 .bar{transform:rotate(122.4deg)}pri-circle-count .c100.p35 .bar{transform:rotate(126deg)}pri-circle-count .c100.p36 .bar{transform:rotate(129.6deg)}pri-circle-count .c100.p37 .bar{transform:rotate(133.2deg)}pri-circle-count .c100.p38 .bar{transform:rotate(136.8deg)}pri-circle-count .c100.p39 .bar{transform:rotate(140.4deg)}pri-circle-count .c100.p40 .bar{transform:rotate(144deg)}pri-circle-count .c100.p41 .bar{transform:rotate(147.6deg)}pri-circle-count .c100.p42 .bar{transform:rotate(151.2deg)}pri-circle-count .c100.p43 .bar{transform:rotate(154.8deg)}pri-circle-count .c100.p44 .bar{transform:rotate(158.4deg)}pri-circle-count .c100.p45 .bar{transform:rotate(162deg)}pri-circle-count .c100.p46 .bar{transform:rotate(165.6deg)}pri-circle-count .c100.p47 .bar{transform:rotate(169.2deg)}pri-circle-count .c100.p48 .bar{transform:rotate(172.8deg)}pri-circle-count .c100.p49 .bar{transform:rotate(176.4deg)}pri-circle-count .c100.p50 .bar{transform:rotate(180deg)}pri-circle-count .c100.p51 .bar{transform:rotate(183.6deg)}pri-circle-count .c100.p52 .bar{transform:rotate(187.2deg)}pri-circle-count .c100.p53 .bar{transform:rotate(190.8deg)}pri-circle-count .c100.p54 .bar{transform:rotate(194.4deg)}pri-circle-count .c100.p55 .bar{transform:rotate(198deg)}pri-circle-count .c100.p56 .bar{transform:rotate(201.6deg)}pri-circle-count .c100.p57 .bar{transform:rotate(205.2deg)}pri-circle-count .c100.p58 .bar{transform:rotate(208.8deg)}pri-circle-count .c100.p59 .bar{transform:rotate(212.4deg)}pri-circle-count .c100.p60 .bar{transform:rotate(216deg)}pri-circle-count .c100.p61 .bar{transform:rotate(219.6deg)}pri-circle-count .c100.p62 .bar{transform:rotate(223.2deg)}pri-circle-count .c100.p63 .bar{transform:rotate(226.8deg)}pri-circle-count .c100.p64 .bar{transform:rotate(230.4deg)}pri-circle-count .c100.p65 .bar{transform:rotate(234deg)}pri-circle-count .c100.p66 .bar{transform:rotate(237.6deg)}pri-circle-count .c100.p67 .bar{transform:rotate(241.2deg)}pri-circle-count .c100.p68 .bar{transform:rotate(244.8deg)}pri-circle-count .c100.p69 .bar{transform:rotate(248.4deg)}pri-circle-count .c100.p70 .bar{transform:rotate(252deg)}pri-circle-count .c100.p71 .bar{transform:rotate(255.6deg)}pri-circle-count .c100.p72 .bar{transform:rotate(259.2deg)}pri-circle-count .c100.p73 .bar{transform:rotate(262.8deg)}pri-circle-count .c100.p74 .bar{transform:rotate(266.4deg)}pri-circle-count .c100.p75 .bar{transform:rotate(270deg)}pri-circle-count .c100.p76 .bar{transform:rotate(273.6deg)}pri-circle-count .c100.p77 .bar{transform:rotate(277.2deg)}pri-circle-count .c100.p78 .bar{transform:rotate(280.8deg)}pri-circle-count .c100.p79 .bar{transform:rotate(284.4deg)}pri-circle-count .c100.p80 .bar{transform:rotate(288deg)}pri-circle-count .c100.p81 .bar{transform:rotate(291.6deg)}pri-circle-count .c100.p82 .bar{transform:rotate(295.2deg)}pri-circle-count .c100.p83 .bar{transform:rotate(298.8deg)}pri-circle-count .c100.p84 .bar{transform:rotate(302.4deg)}pri-circle-count .c100.p85 .bar{transform:rotate(306deg)}pri-circle-count .c100.p86 .bar{transform:rotate(309.6deg)}pri-circle-count .c100.p87 .bar{transform:rotate(313.2deg)}pri-circle-count .c100.p88 .bar{transform:rotate(316.8deg)}pri-circle-count .c100.p89 .bar{transform:rotate(320.4deg)}pri-circle-count .c100.p90 .bar{transform:rotate(324deg)}pri-circle-count .c100.p91 .bar{transform:rotate(327.6deg)}pri-circle-count .c100.p92 .bar{transform:rotate(331.2deg)}pri-circle-count .c100.p93 .bar{transform:rotate(334.8deg)}pri-circle-count .c100.p94 .bar{transform:rotate(338.4deg)}pri-circle-count .c100.p95 .bar{transform:rotate(342deg)}pri-circle-count .c100.p96 .bar{transform:rotate(345.6deg)}pri-circle-count .c100.p97 .bar{transform:rotate(349.2deg)}pri-circle-count .c100.p98 .bar{transform:rotate(352.8deg)}pri-circle-count .c100.p99 .bar{transform:rotate(356.4deg)}pri-circle-count .c100.p100 .bar{transform:rotate(360deg)}pri-circle-count .c100:hover{cursor:default}pri-circle-count .c100:hover>span{width:3.33em;line-height:3.33em;font-size:.3em;color:var(--theme-100)}pri-circle-count .c100:hover:after{top:.04em;left:.04em;width:.92em;height:.92em}pri-circle-count .c100.dark{background-color:#888}pri-circle-count .c100.dark .bar,pri-circle-count .c100.dark .fill{border-color:#c6ff00!important}pri-circle-count .c100.dark>span{color:#888}pri-circle-count .c100.dark:after{background-color:#666}pri-circle-count .c100.dark:hover>span{color:#c6ff00}pri-circle-count .c100.green .bar,pri-circle-count .c100.green .fill{border-color:var(--success-100)!important}pri-circle-count .c100.green:hover>span{color:var(--success-100)}pri-circle-count .c100.green.dark .bar,pri-circle-count .c100.green.dark .fill{border-color:var(--success-100)!important}pri-circle-count .c100.green.dark:hover>span{color:var(--success-100)}pri-circle-count .c100.orange .bar,pri-circle-count .c100.orange .fill{border-color:var(--warning-100)!important}pri-circle-count .c100.orange:hover>span{color:var(--warning-100)}pri-circle-count .c100.orange.dark .bar,pri-circle-count .c100.orange.dark .fill{border-color:var(--warning-100)!important}pri-circle-count .c100.orange.dark:hover>span{color:var(--warning-100)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { percentage: [{\r\n                type: Input\r\n            }], count: [{\r\n                type: Input\r\n            }], message: [{\r\n                type: Input\r\n            }] } });\n\nclass PriColorPickerComponent {\r\n    constructor() {\r\n        this.value = '#000001';\r\n        this.disabled = false;\r\n        this.valueChange = new EventEmitter();\r\n    }\r\n    colorChanged(event) {\r\n        this.value = event.color.hex;\r\n        this.valueChange.emit(this.value);\r\n    }\r\n    colorInputFocus() {\r\n        this.lastValidColor = this.value;\r\n    }\r\n    colorInputBlur() {\r\n        this.validateHexColor(true);\r\n    }\r\n    triggerBlur(event) {\r\n        event.target.blur();\r\n    }\r\n    colorInputKeyUp() {\r\n        this.validateHexColor(false);\r\n    }\r\n    validateHexColor(isBlur) {\r\n        if (!this.value || typeof this.value !== 'string') {\r\n            this.value = this.lastValidColor;\r\n            return false;\r\n        }\r\n        let value = this.value;\r\n        if (this.value.substring(0, 1) === '#') {\r\n            value = this.value.substring(1);\r\n        }\r\n        if ((/^[0-9A-F]{3}$/i.test(value)) || (/^[0-9A-F]{6}$/i.test(value))) {\r\n            this.value = '#' + value;\r\n            this.lastValidColor = this.value;\r\n            this.valueChange.emit(this.value);\r\n        }\r\n        else if (isBlur) {\r\n            this.value = this.lastValidColor;\r\n            this.valueChange.emit(this.value);\r\n        }\r\n    }\r\n}\r\nPriColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriColorPickerComponent, selector: \"pri-colorpicker\", inputs: { value: \"value\", disabled: \"disabled\" }, outputs: { valueChange: \"valueChange\" }, ngImport: i0, template: \"<div class=\\\"pri-field col-md-12\\\" dropdown [insideClick]=\\\"true\\\">\\r\\n  <div class=\\\"color-viewer-group\\\" [class.color-viewer-group-disabled]=\\\"disabled\\\" dropdownToggle\\r\\n    aria-controls=\\\"dropdown-config\\\">\\r\\n    <input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"value\\\" (keyup.enter)=\\\"triggerBlur($event)\\\"\\r\\n      (keyup)=\\\"colorInputKeyUp()\\\" (focus)=\\\"colorInputFocus()\\\" (blur)=\\\"colorInputBlur()\\\" [disabled]=\\\"disabled\\\">\\r\\n    <span class=\\\"color-viewer-span\\\">\\r\\n      <i class=\\\"color-viewer\\\" [style.backgroundColor]=\\\"value\\\"></i>\\r\\n    </span>\\r\\n  </div>\\r\\n  <div id=\\\"dropdown-config\\\" *dropdownMenu class=\\\"dropdown-menu\\\" [class.dropdown-config-hidden]=\\\"disabled\\\">\\r\\n    <color-chrome [color]=\\\"value\\\" [disableAlpha]=\\\"true\\\" (onChange)=\\\"colorChanged($event)\\\">\\r\\n    </color-chrome>\\r\\n  </div>\\r\\n</div>\", styles: [\"pri-colorpicker .color-viewer-group{display:flex}pri-colorpicker .color-viewer-group .color-viewer-span{flex-shrink:0;display:flex;align-items:center;margin:0 5px}pri-colorpicker .color-viewer-group .color-viewer-span .color-viewer{display:flex;height:16px;width:16px;cursor:pointer}pri-colorpicker .color-viewer-group-disabled{background-color:var(--grey-3)}pri-colorpicker .color-viewer-group-disabled .color-viewer-span .color-viewer{cursor:default}pri-colorpicker color-chrome .chrome-controls{align-items:center}pri-colorpicker color-chrome .chrome-controls .chrome-toggles .chrome-hue{margin-bottom:0}pri-colorpicker color-chrome color-chrome-fields{display:none}pri-colorpicker #dropdown-config.dropdown-config-hidden{display:none!important}\\n\"], dependencies: [{ kind: \"directive\", type: i1$3.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i1$3.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1$3.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"component\", type: i2$2.ChromeComponent, selector: \"color-chrome\", inputs: [\"disableAlpha\"] }, { kind: \"directive\", type: i3$1.BsDropdownMenuDirective, selector: \"[bsDropdownMenu],[dropdownMenu]\", exportAs: [\"bs-dropdown-menu\"] }, { kind: \"directive\", type: i3$1.BsDropdownToggleDirective, selector: \"[bsDropdownToggle],[dropdownToggle]\", exportAs: [\"bs-dropdown-toggle\"] }, { kind: \"directive\", type: i3$1.BsDropdownDirective, selector: \"[bsDropdown], [dropdown]\", inputs: [\"placement\", \"triggers\", \"container\", \"dropup\", \"autoClose\", \"isAnimated\", \"insideClick\", \"isDisabled\", \"isOpen\"], outputs: [\"isOpenChange\", \"onShown\", \"onHidden\"], exportAs: [\"bs-dropdown\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriColorPickerComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-colorpicker', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-field col-md-12\\\" dropdown [insideClick]=\\\"true\\\">\\r\\n  <div class=\\\"color-viewer-group\\\" [class.color-viewer-group-disabled]=\\\"disabled\\\" dropdownToggle\\r\\n    aria-controls=\\\"dropdown-config\\\">\\r\\n    <input type=\\\"text\\\" class=\\\"form-control\\\" [(ngModel)]=\\\"value\\\" (keyup.enter)=\\\"triggerBlur($event)\\\"\\r\\n      (keyup)=\\\"colorInputKeyUp()\\\" (focus)=\\\"colorInputFocus()\\\" (blur)=\\\"colorInputBlur()\\\" [disabled]=\\\"disabled\\\">\\r\\n    <span class=\\\"color-viewer-span\\\">\\r\\n      <i class=\\\"color-viewer\\\" [style.backgroundColor]=\\\"value\\\"></i>\\r\\n    </span>\\r\\n  </div>\\r\\n  <div id=\\\"dropdown-config\\\" *dropdownMenu class=\\\"dropdown-menu\\\" [class.dropdown-config-hidden]=\\\"disabled\\\">\\r\\n    <color-chrome [color]=\\\"value\\\" [disableAlpha]=\\\"true\\\" (onChange)=\\\"colorChanged($event)\\\">\\r\\n    </color-chrome>\\r\\n  </div>\\r\\n</div>\", styles: [\"pri-colorpicker .color-viewer-group{display:flex}pri-colorpicker .color-viewer-group .color-viewer-span{flex-shrink:0;display:flex;align-items:center;margin:0 5px}pri-colorpicker .color-viewer-group .color-viewer-span .color-viewer{display:flex;height:16px;width:16px;cursor:pointer}pri-colorpicker .color-viewer-group-disabled{background-color:var(--grey-3)}pri-colorpicker .color-viewer-group-disabled .color-viewer-span .color-viewer{cursor:default}pri-colorpicker color-chrome .chrome-controls{align-items:center}pri-colorpicker color-chrome .chrome-controls .chrome-toggles .chrome-hue{margin-bottom:0}pri-colorpicker color-chrome color-chrome-fields{display:none}pri-colorpicker #dropdown-config.dropdown-config-hidden{display:none!important}\\n\"] }]\r\n        }], propDecorators: { value: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass PriDownloadProgressBarComponent {\r\n}\r\nPriDownloadProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriDownloadProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriDownloadProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriDownloadProgressBarComponent, selector: \"pri-download-progress-bar\", inputs: { data: \"data\" }, ngImport: i0, template: \"<div class=\\\"title\\\" *ngIf=\\\"data.title\\\">{{data.title}}</div>\\r\\n\\r\\n<div class=\\\"progressBar\\\">\\r\\n    <div class=\\\"bar\\\" [ngStyle]=\\\"{ 'width': (((data.count) / data.total) * 100) + '%' }\\\" >\\r\\n        <!-- show calculated percentage if total amount raised is <= 100% -->\\r\\n        <span class=\\\"percent\\\" *ngIf=\\\"data.count > 0 && data.count < data.total\\\">\\r\\n            {{((data.count / data.total) * 100) | number:'1.0-0'}}%\\r\\n        </span>\\r\\n\\r\\n        <!-- show maximum percentage if total amount raised is > 100% -->\\r\\n        <span class=\\\"percent\\\" *ngIf=\\\"data.count > 0 && data.count === data.total\\\">\\r\\n            100%\\r\\n        </span>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-download-progress-bar{display:flex;padding:12px;width:150px;background-color:var(--grey-1);border-radius:5px;box-shadow:0 .3571428571rem .5714285714rem var(--shadow-6);color:var(--grey-8);flex-direction:column}pri-download-progress-bar .title{font-size:14px;margin-bottom:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}pri-download-progress-bar .progressBar{width:100%;background-color:var(--grey-3);border-radius:6px;height:15px;overflow:hidden;position:relative}pri-download-progress-bar .progressBar .bar{background-color:var(--theme-100);color:var(--theme-10);float:left;height:100%;position:relative;text-align:left;display:flex;align-items:center;justify-content:center}pri-download-progress-bar .progressBar .bar .percent{font-size:9px;font-weight:600}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"pipe\", type: i1$1.DecimalPipe, name: \"number\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriDownloadProgressBarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-download-progress-bar', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"title\\\" *ngIf=\\\"data.title\\\">{{data.title}}</div>\\r\\n\\r\\n<div class=\\\"progressBar\\\">\\r\\n    <div class=\\\"bar\\\" [ngStyle]=\\\"{ 'width': (((data.count) / data.total) * 100) + '%' }\\\" >\\r\\n        <!-- show calculated percentage if total amount raised is <= 100% -->\\r\\n        <span class=\\\"percent\\\" *ngIf=\\\"data.count > 0 && data.count < data.total\\\">\\r\\n            {{((data.count / data.total) * 100) | number:'1.0-0'}}%\\r\\n        </span>\\r\\n\\r\\n        <!-- show maximum percentage if total amount raised is > 100% -->\\r\\n        <span class=\\\"percent\\\" *ngIf=\\\"data.count > 0 && data.count === data.total\\\">\\r\\n            100%\\r\\n        </span>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-download-progress-bar{display:flex;padding:12px;width:150px;background-color:var(--grey-1);border-radius:5px;box-shadow:0 .3571428571rem .5714285714rem var(--shadow-6);color:var(--grey-8);flex-direction:column}pri-download-progress-bar .title{font-size:14px;margin-bottom:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}pri-download-progress-bar .progressBar{width:100%;background-color:var(--grey-3);border-radius:6px;height:15px;overflow:hidden;position:relative}pri-download-progress-bar .progressBar .bar{background-color:var(--theme-100);color:var(--theme-10);float:left;height:100%;position:relative;text-align:left;display:flex;align-items:center;justify-content:center}pri-download-progress-bar .progressBar .bar .percent{font-size:9px;font-weight:600}\\n\"] }]\r\n        }], propDecorators: { data: [{\r\n                type: Input\r\n            }] } });\n\nclass LoadingSpinnerComponent {\r\n    constructor() {\r\n        /**\r\n         * Type of loading spinner (determinate/indeterminate)\r\n         */\r\n        this.type = LoadingSpinnerTypeEnum.Circular;\r\n        /**\r\n         * Size of loading spinner (small/large)\r\n         */\r\n        this.size = LoadingSpinnerSizeEnum.Small;\r\n        /**\r\n         * For setting a custom thickness for the loading spinner\r\n         */\r\n        this.customThickness = '0.5em';\r\n        /**\r\n         * Extra style if needed (if more than one css class, pass it in the same string separated by whitespace)\r\n         */\r\n        this.cssClass = '';\r\n        /**\r\n         * Available sizes for the loading spinner (Units defined to font-size property)\r\n         */\r\n        this.availableSizes = {\r\n            small: '1.6px',\r\n            large: '5px'\r\n        };\r\n        // The value of the determinate loader progress\r\n        this.progressValue = 0;\r\n    }\r\n    /**\r\n     * The progress of the determinate loading\r\n     */\r\n    set progress(progressValue) {\r\n        if (progressValue && progressValue !== this.progressValue) {\r\n            this.progressValue = progressValue;\r\n            this.renderProgress();\r\n        }\r\n    }\r\n    /**\r\n     * Function to determine the rotation value according to the current progress value\r\n     */\r\n    renderProgress() {\r\n        this.progressValue = Math.floor(this.progressValue);\r\n        if (this.progressValue < 25) {\r\n            this.rotate_0_25 = `rotate(' + this.calculateAngle(0) + 'deg)`;\r\n        }\r\n        if (this.progressValue >= 25 && this.progressValue < 50) {\r\n            this.resetRotationIn(['rotate_0_25']);\r\n            this.rotate_25_50 = `rotate('${this.calculateAngle(25)}'deg)`;\r\n        }\r\n        if (this.progressValue >= 50 && this.progressValue < 75) {\r\n            this.resetRotationIn(['rotate_0_25', 'rotate_25_50']);\r\n            this.rotate_50_75 = `rotate('${this.calculateAngle(50)}'deg)`;\r\n        }\r\n        if (this.progressValue >= 75 && this.progressValue <= 100) {\r\n            this.resetRotationIn(['rotate_0_25', 'rotate_25_50', 'rotate_50_75']);\r\n            this.rotate_75_100 = `rotate('${this.calculateAngle(75)}'deg)`;\r\n        }\r\n    }\r\n    /**\r\n     * Function to calculate the angle to color in the loading progress\r\n     *\r\n     * @param quarter (0/25/50/75)\r\n     * @returns the angle to color\r\n     */\r\n    calculateAngle(quarter) {\r\n        return -90 + ((this.progressValue - quarter) / 100) * 360;\r\n    }\r\n    /**\r\n     * Function that resets the rotation of each variable passed in the resetVariables array\r\n     *\r\n     * @param rotationVariables the array of variables to reset the rotation\r\n     */\r\n    resetRotationIn(rotationVariables) {\r\n        rotationVariables.forEach((rotationVariable) => {\r\n            this[rotationVariable] = 'rotate(0deg)';\r\n        });\r\n    }\r\n}\r\nLoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nLoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: LoadingSpinnerComponent, isStandalone: true, selector: \"pri-loading-spinner\", inputs: { type: \"type\", progress: \"progress\", size: \"size\", customSize: \"customSize\", customThickness: \"customThickness\", cssClass: \"cssClass\" }, ngImport: i0, template: \"<ng-container [ngSwitch]=\\\"type\\\">\\r\\n    <div *ngSwitchCase=\\\"'circular'\\\" class=\\\"pri-circular-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size])}\\\"></div>\\r\\n\\r\\n    <div *ngSwitchCase=\\\"'indeterminate'\\\" class=\\\"pri-indeterminate-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size]), 'border-width': customThickness }\\\"></div>\\r\\n\\r\\n    <div *ngSwitchCase=\\\"'determinate'\\\" class=\\\"pri-determinate-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size])}\\\">\\r\\n        <div class=\\\"loader-bg\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n        <div class=\\\"spinner-holder-one animate-0-25-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-0-25-b\\\" [ngStyle]=\\\"{ 'transform': rotate_0_25}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-25-50-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-25-50-b\\\" [ngStyle]=\\\"{ 'transform': rotate_25_50}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-50-75-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-50-75-b\\\" [ngStyle]=\\\"{ 'transform': rotate_50_75}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-75-100-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-75-100-b\\\" [ngStyle]=\\\"{ 'transform': rotate_75_100}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n</ng-container>\", styles: [\"pri-loading-spinner .pri-determinate-loader{font-size:10px;position:relative;border-radius:50%;width:10em;height:10em;-webkit-user-select:none;user-select:none;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.loader-bg{width:100%;height:100%;border-radius:50%;border:.5em solid;border-color:var(--grey-5);box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.animate-0-25-a{transform:rotate(90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-25-50-a{transform:rotate(180deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-50-75-a{transform:rotate(270deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-75-100-a{transform:rotate(0);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one{position:absolute;top:0;left:0;overflow:hidden;width:50%;height:50%;background:transparent;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-0-25-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-25-50-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-50-75-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-75-100-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.spinner-holder-two{position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%;background:transparent;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.spinner-holder-two>.loader-spinner{width:200%;height:200%;border-radius:50%;border:.5em solid;border-color:var(--theme-100);box-sizing:border-box}pri-loading-spinner .pri-indeterminate-loader{font-size:10px;position:relative;border-radius:50%;width:10em;height:10em;border:.5em solid;border-top-color:var(--grey-5);border-right-color:var(--grey-5);border-bottom-color:var(--grey-5);border-left-color:var(--theme-100);transform:translateZ(0);animation:loading_keyframe 1.1s infinite linear 0s}pri-loading-spinner .pri-indeterminate-loader:after{border-radius:50%;width:10em;height:10em}@keyframes loading_keyframe{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading_left_cicle_keyframe{0%{opacity:1}25%{opacity:.5}50%{opacity:.1}75%{opacity:.5}to{opacity:1}}@keyframes loading_right_cicle_keyframe{0%{opacity:.1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:.1}}pri-loading-spinner .pri-circular-loader{width:10em;height:10em;position:relative;display:block}pri-loading-spinner .pri-circular-loader.ng-animate{animation:none 0s}pri-loading-spinner .pri-circular-loader:before{content:\\\"\\\";position:absolute;left:0;top:50%;background:var(--theme-100);width:40%;height:40%;border-radius:100%;transform:translateY(-50%);animation:loading_left_cicle_keyframe 1s infinite ease 0s}pri-loading-spinner .pri-circular-loader:after{content:\\\"\\\";position:absolute;left:60%;top:50%;background:var(--theme-100);width:40%;height:40%;border-radius:100%;transform:translateY(-50%);animation:loading_right_cicle_keyframe 1s infinite ease 0s}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i1$1.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { kind: \"directive\", type: i1$1.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-loading-spinner', encapsulation: ViewEncapsulation.None, imports: [CommonModule], standalone: true, template: \"<ng-container [ngSwitch]=\\\"type\\\">\\r\\n    <div *ngSwitchCase=\\\"'circular'\\\" class=\\\"pri-circular-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size])}\\\"></div>\\r\\n\\r\\n    <div *ngSwitchCase=\\\"'indeterminate'\\\" class=\\\"pri-indeterminate-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size]), 'border-width': customThickness }\\\"></div>\\r\\n\\r\\n    <div *ngSwitchCase=\\\"'determinate'\\\" class=\\\"pri-determinate-loader\\\" [ngClass]=\\\"cssClass\\\"\\r\\n        [ngStyle]=\\\"{ 'font-size': ( customSize ? customSize : availableSizes[size])}\\\">\\r\\n        <div class=\\\"loader-bg\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n        <div class=\\\"spinner-holder-one animate-0-25-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-0-25-b\\\" [ngStyle]=\\\"{ 'transform': rotate_0_25}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-25-50-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-25-50-b\\\" [ngStyle]=\\\"{ 'transform': rotate_25_50}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-50-75-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-50-75-b\\\" [ngStyle]=\\\"{ 'transform': rotate_50_75}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"spinner-holder-one animate-75-100-a\\\">\\r\\n            <div class=\\\"spinner-holder-two animate-75-100-b\\\" [ngStyle]=\\\"{ 'transform': rotate_75_100}\\\">\\r\\n                <div class=\\\"loader-spinner\\\" [ngStyle]=\\\"{ 'border-width': customThickness }\\\"></div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n</ng-container>\", styles: [\"pri-loading-spinner .pri-determinate-loader{font-size:10px;position:relative;border-radius:50%;width:10em;height:10em;-webkit-user-select:none;user-select:none;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.loader-bg{width:100%;height:100%;border-radius:50%;border:.5em solid;border-color:var(--grey-5);box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.animate-0-25-a{transform:rotate(90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-25-50-a{transform:rotate(180deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-50-75-a{transform:rotate(270deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.animate-75-100-a{transform:rotate(0);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one{position:absolute;top:0;left:0;overflow:hidden;width:50%;height:50%;background:transparent;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-0-25-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-25-50-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-50-75-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.animate-75-100-b{transform:rotate(-90deg);transform-origin:100% 100%}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.spinner-holder-two{position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%;background:transparent;box-sizing:border-box}pri-loading-spinner .pri-determinate-loader>.spinner-holder-one>.spinner-holder-two>.loader-spinner{width:200%;height:200%;border-radius:50%;border:.5em solid;border-color:var(--theme-100);box-sizing:border-box}pri-loading-spinner .pri-indeterminate-loader{font-size:10px;position:relative;border-radius:50%;width:10em;height:10em;border:.5em solid;border-top-color:var(--grey-5);border-right-color:var(--grey-5);border-bottom-color:var(--grey-5);border-left-color:var(--theme-100);transform:translateZ(0);animation:loading_keyframe 1.1s infinite linear 0s}pri-loading-spinner .pri-indeterminate-loader:after{border-radius:50%;width:10em;height:10em}@keyframes loading_keyframe{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading_left_cicle_keyframe{0%{opacity:1}25%{opacity:.5}50%{opacity:.1}75%{opacity:.5}to{opacity:1}}@keyframes loading_right_cicle_keyframe{0%{opacity:.1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:.1}}pri-loading-spinner .pri-circular-loader{width:10em;height:10em;position:relative;display:block}pri-loading-spinner .pri-circular-loader.ng-animate{animation:none 0s}pri-loading-spinner .pri-circular-loader:before{content:\\\"\\\";position:absolute;left:0;top:50%;background:var(--theme-100);width:40%;height:40%;border-radius:100%;transform:translateY(-50%);animation:loading_left_cicle_keyframe 1s infinite ease 0s}pri-loading-spinner .pri-circular-loader:after{content:\\\"\\\";position:absolute;left:60%;top:50%;background:var(--theme-100);width:40%;height:40%;border-radius:100%;transform:translateY(-50%);animation:loading_right_cicle_keyframe 1s infinite ease 0s}\\n\"] }]\r\n        }], propDecorators: { type: [{\r\n                type: Input\r\n            }], progress: [{\r\n                type: Input\r\n            }], size: [{\r\n                type: Input\r\n            }], customSize: [{\r\n                type: Input\r\n            }], customThickness: [{\r\n                type: Input\r\n            }], cssClass: [{\r\n                type: Input\r\n            }] } });\n\nclass DatesUtil {\r\n    /* Convert from momentjs format to date-fns format */\r\n    static convertDateFormat(dateFormat) {\r\n        //see doc: https://date-fns.org/v2.22.1/docs/format\r\n        switch (dateFormat) {\r\n            case 'LT':\r\n                dateFormat = 'p';\r\n                break;\r\n            case 'LTS':\r\n                dateFormat = 'pp';\r\n                break;\r\n            case 'L':\r\n                dateFormat = 'P';\r\n                break;\r\n            case 'L LTS':\r\n                dateFormat = 'P pp';\r\n                break;\r\n            case 'LL':\r\n                dateFormat = 'PPP';\r\n                break;\r\n            case 'll':\r\n                dateFormat = 'PP';\r\n                break;\r\n            case 'LLL':\r\n                dateFormat = 'PPPp';\r\n                break;\r\n            case 'LLLL':\r\n                dateFormat = 'eeee, PPPp';\r\n                break;\r\n            case 'MY':\r\n                dateFormat = 'MM/yyyy';\r\n                break;\r\n            case 'DL':\r\n                dateFormat = 'dd/LL';\r\n                break;\r\n            case 'HM':\r\n                dateFormat = 'HH:mm';\r\n                break;\r\n            default:\r\n                dateFormat = 'P';\r\n                break;\r\n        }\r\n        return dateFormat;\r\n    }\r\n    static userLocale(locale) {\r\n        locale = locale.toLowerCase();\r\n        if (locale === 'en-us') {\r\n            return enUS;\r\n        }\r\n        switch (locale.split('-')[0]) {\r\n            case 'pt':\r\n                return pt;\r\n            case 'es':\r\n                return es;\r\n            case 'ca':\r\n                return ca;\r\n            case 'en':\r\n                return enGB;\r\n            case 'it':\r\n                return it;\r\n            case 'ro':\r\n                return ro$1;\r\n            case 'fr':\r\n                return fr;\r\n            default:\r\n                return enUS;\r\n        }\r\n    }\r\n    static getDate(value, dateFormat, userLocale) {\r\n        if (value instanceof Date) {\r\n            return value.toString() === 'Invalid Date' ? undefined : value;\r\n        }\r\n        else {\r\n            value = DatesUtil.convertToMDY(value, userLocale);\r\n            let formattedDate = parse(value, dateFormat, new Date(), { locale: userLocale });\r\n            if (formattedDate.toString() === 'Invalid Date') {\r\n                formattedDate = new Date(value);\r\n            }\r\n            return DatesUtil.getDate(formattedDate, dateFormat, userLocale);\r\n        }\r\n    }\r\n    static getDateAging(value, userLocale = 'en-US') {\r\n        return formatDistanceToNow(value, {\r\n            locale: DatesUtil.userLocale(userLocale)\r\n        });\r\n    }\r\n    static getFormattedDate(date, dateFormat, userLocale) {\r\n        return format(date, dateFormat, {\r\n            locale: DatesUtil.userLocale(userLocale)\r\n        });\r\n    }\r\n    /**\r\n     * Convert dates to mm/dd/yyyy format if the user locale is not English and the date includes the {dateSeparator}.\r\n     * If none of the criteria matches, returns the original value.\r\n     *\r\n     * @param date - The date to convert.\r\n     * @param userLocale - The user locale.\r\n     * @param dateSeparator - The date separator.\r\n     * @returns The converted date.\r\n     */\r\n    static convertToMDY(date, userLocale, dateSeparator = '/') {\r\n        if (date?.includes(dateSeparator)) {\r\n            let newDate = date;\r\n            if (userLocale !== enUS) {\r\n                const dateSplitted = date.split(dateSeparator);\r\n                newDate = [dateSplitted[1], dateSplitted[0], dateSplitted[2]].join(dateSeparator);\r\n            }\r\n            return new Date(newDate);\r\n        }\r\n        return date;\r\n    }\r\n}\n\nclass DateFieldViewPipe {\r\n    constructor(appContextService) {\r\n        this.appContextService = appContextService;\r\n    }\r\n    transform(value, dateFormat) {\r\n        const userLocale = DatesUtil.userLocale(this.appContextService.user.culture);\r\n        const systemLocale = enUS;\r\n        let date = '';\r\n        if (!value) {\r\n            return date;\r\n        }\r\n        dateFormat = this.getFormatConverted(dateFormat);\r\n        date = this.getFormattedDate(value, dateFormat, userLocale);\r\n        if (!date) {\r\n            date = this.getFormattedDate(parseISO(value), dateFormat, userLocale);\r\n        }\r\n        if (!date) {\r\n            date = this.getFormattedDate(value, dateFormat, systemLocale);\r\n        }\r\n        if (!date) {\r\n            date = this.getFormattedDate(parseISO(value), dateFormat, systemLocale);\r\n        }\r\n        return date;\r\n    }\r\n    getFormattedDate(value, dateFormat, userLocale) {\r\n        const parsedDate = DatesUtil.getDate(value, dateFormat, userLocale);\r\n        if (parsedDate) {\r\n            return format(parsedDate, dateFormat, { locale: userLocale });\r\n        }\r\n        else {\r\n            return undefined;\r\n        }\r\n    }\r\n    getFormatConverted(dateFormat) {\r\n        if (!dateFormat) {\r\n            dateFormat = DatesUtil.convertDateFormat(dateFormat);\r\n        }\r\n        else {\r\n            const formats = dateFormat.split(' ');\r\n            if (formats.length > 1) {\r\n                const formatsConverted = [];\r\n                formats.forEach((f) => {\r\n                    formatsConverted.push(DatesUtil.convertDateFormat(f));\r\n                });\r\n                dateFormat = formatsConverted.join(' ');\r\n            }\r\n            else {\r\n                dateFormat = DatesUtil.convertDateFormat(dateFormat);\r\n            }\r\n        }\r\n        return dateFormat;\r\n    }\r\n}\r\nDateFieldViewPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DateFieldViewPipe, deps: [{ token: i1$2.AppContextService }], target: i0.ɵɵFactoryTarget.Pipe });\r\nDateFieldViewPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: DateFieldViewPipe, name: \"dateFieldView\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DateFieldViewPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{ name: 'dateFieldView' }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AppContextService }]; } });\n\n/**\r\n * Component responsible to show a drop down menu, which is content is related to history events\r\n */\r\nclass DropDownEditionHistoryComponent {\r\n    constructor(element, domService, http, i18nService) {\r\n        this.element = element;\r\n        this.domService = domService;\r\n        this.http = http;\r\n        this.i18nService = i18nService;\r\n        /**Allows to know if the component that called this directive was inside the nvar or not*/\r\n        this.origin = \"None\" /* ComponentsEnum.None */;\r\n        /**Z-Index value for normal cases */\r\n        this.normalZIndex = 1002;\r\n        /**Z-Index value for nvar case*/\r\n        this.nvarZIndex = 1002;\r\n        /**Z-Index value for modal case*/\r\n        this.modalZIndex = 1041;\r\n        this.menuPositionLeft = 'left';\r\n        this.menuPositionRight = 'right';\r\n        this.arrowHeight = 9;\r\n        this.arrowWidth = 18;\r\n        this.menuRowHeight = 36;\r\n        this.defaultMenuMaxHeight = 300;\r\n        this.isComponentInitialized = false;\r\n        this.emailPattern = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)+/g;\r\n    }\r\n    /**\r\n     * Handles when occurs a click on the document\r\n     *\r\n     * @event Event that has information about the click\r\n     */\r\n    onDocumentClick(event) {\r\n        if (!this.isComponentInitialized) {\r\n            return;\r\n        }\r\n        let clickedComponent = event.target;\r\n        let inside = false;\r\n        do {\r\n            if (clickedComponent === this.element.nativeElement) {\r\n                inside = true;\r\n            }\r\n            clickedComponent = clickedComponent.parentNode;\r\n        } while (clickedComponent);\r\n        if (!inside) {\r\n            this.dismissView();\r\n            this.onDismiss();\r\n        }\r\n    }\r\n    /**\r\n     * Lifecycle hook that invokes a custom change-detection function for this component\r\n     */\r\n    ngDoCheck() {\r\n        this.updatePosition();\r\n    }\r\n    /**\r\n     * Lifecycle hook that is called after Angular has initialized all data-bound properties this component\r\n     */\r\n    ngOnInit() {\r\n        this.isBuilding = true;\r\n        setTimeout(() => {\r\n            this.isComponentInitialized = true;\r\n        }, 500);\r\n        this.loadData();\r\n        this.calculateInitialPosition();\r\n        /** Sets the z-index value taking in account the component father */\r\n        const priFieldOptions = this.domService.findElementByClassName('pri-field-options', this.element.nativeElement);\r\n        priFieldOptions.style.zIndex = this.getZIndex(this.origin).toString();\r\n    }\r\n    /**\r\n     * Handles when a item of the dropdown edition history is clicked\r\n     *\r\n     * @param index position of the item, relative to the list of items\r\n     * @param item drop down history item\r\n     */\r\n    onRowClick(index, item) {\r\n        if (item.action) {\r\n            item.action();\r\n            this.dismissView();\r\n            this.onDismiss();\r\n            return;\r\n        }\r\n    }\r\n    hasAction(item) {\r\n        return item.action;\r\n    }\r\n    /**\r\n     * Given an origin, return the correct zIndex to use\r\n     *\r\n     * @param origin Component that had create the dropdown menu\r\n     * @return zIndex to be used\r\n     */\r\n    getZIndex(origin) {\r\n        switch (origin) {\r\n            case \"NavbarComponent\" /* ComponentsEnum.Nvar */: return this.nvarZIndex;\r\n            case \"ModalContentComponent\" /* ComponentsEnum.Modal */: return this.modalZIndex;\r\n            case \"None\" /* ComponentsEnum.None */:\r\n            default: return this.normalZIndex;\r\n        }\r\n    }\r\n    loadData() {\r\n        if (this.items) {\r\n            if (!this.items[0].dataLoaded) {\r\n                const SYS_AUTHOR = '<Sys>';\r\n                const SYS_AUTHOR_RES = this.i18nService.get('components.components.RES_System_Author');\r\n                const createByBeforeDataLoaded = this.items[0].author;\r\n                const modifiedByBeforeDataLoaded = this.items[1].author;\r\n                if (createByBeforeDataLoaded.match(this.emailPattern)) {\r\n                    this.getUserDisplayNameByLogin(createByBeforeDataLoaded).subscribe((createdBy) => {\r\n                        this.items[0].author = createdBy;\r\n                        this.items[0].dataLoaded = true;\r\n                        if (createByBeforeDataLoaded.toUpperCase() !== modifiedByBeforeDataLoaded.toUpperCase()) {\r\n                            this.requestModifiedByName(modifiedByBeforeDataLoaded, SYS_AUTHOR, SYS_AUTHOR_RES);\r\n                        }\r\n                        else {\r\n                            this.items[1].author = createdBy;\r\n                            this.items[1].dataLoaded = true;\r\n                            this.isBuilding = false;\r\n                        }\r\n                    });\r\n                }\r\n                else {\r\n                    if (createByBeforeDataLoaded === SYS_AUTHOR) {\r\n                        this.items[0].author = SYS_AUTHOR_RES;\r\n                    }\r\n                    this.items[0].dataLoaded = true;\r\n                    this.requestModifiedByName(modifiedByBeforeDataLoaded, SYS_AUTHOR, SYS_AUTHOR_RES);\r\n                }\r\n            }\r\n            else {\r\n                this.isBuilding = false;\r\n            }\r\n        }\r\n    }\r\n    getUserDisplayNameByLogin(username) {\r\n        const operation = '/app/identity/users/getUserDisplayNameByLogin?userName=' + username;\r\n        return this.http.get(operation);\r\n    }\r\n    requestModifiedByName(modifiedByBeforeDataLoaded, SYS_AUTHOR, SYS_AUTHOR_RES) {\r\n        if (modifiedByBeforeDataLoaded.match(this.emailPattern)) {\r\n            this.getUserDisplayNameByLogin(modifiedByBeforeDataLoaded).subscribe((modifiedBy) => {\r\n                this.items[1].author = modifiedBy;\r\n                this.items[1].dataLoaded = true;\r\n                this.isBuilding = false;\r\n            });\r\n        }\r\n        else {\r\n            if (modifiedByBeforeDataLoaded === SYS_AUTHOR) {\r\n                this.items[1].author = SYS_AUTHOR_RES;\r\n            }\r\n            this.items[1].dataLoaded = true;\r\n            this.isBuilding = false;\r\n        }\r\n    }\r\n    /**\r\n     * Calculates the position which the items should be displayed\r\n     */\r\n    calculateInitialPosition() {\r\n        // Get the parent position and size\r\n        const parentY = this.parentElementRef.nativeElement.getBoundingClientRect().top;\r\n        const parentX = this.parentElementRef.nativeElement.getBoundingClientRect().left;\r\n        const parentWidth = this.parentElementRef.nativeElement.children[0].offsetWidth;\r\n        const parentHeight = this.parentElementRef.nativeElement.offsetHeight;\r\n        const position = (window.innerWidth / 2) > parentX ? this.menuPositionLeft : this.menuPositionRight;\r\n        // initialize position variables\r\n        const menuY = this.getMenuPositionY(true, parentY, parentHeight, this.arrowHeight, this.getMenuHeight());\r\n        const menuX = this.getMenuPositionX(position === this.menuPositionLeft, parentX, parentWidth, this.arrowWidth, this.getMenuWidth());\r\n        // //calculate menu top position\r\n        if ((menuY + this.getMenuHeight()) > window.innerHeight) {\r\n            this.menuPositionIsTop = false;\r\n        }\r\n        else {\r\n            this.menuPositionIsTop = true;\r\n        }\r\n        // Calculate the left position of the menu\r\n        // If the menu is not fully visible, it will change sides\r\n        if (position.toLowerCase() === this.menuPositionRight) {\r\n            if (menuX < 0) {\r\n                // the menu will be hidden on the left side of the window\r\n                // switch sides\r\n                this.menuPositionIsLeft = true;\r\n            }\r\n            else {\r\n                this.menuPositionIsLeft = false;\r\n            }\r\n        }\r\n        else {\r\n            if (menuX + this.maxWidth > window.innerWidth) {\r\n                // the menu will be hidden on the left side of the window\r\n                // switch sides\r\n                this.menuPositionIsLeft = false;\r\n            }\r\n            else {\r\n                this.menuPositionIsLeft = true;\r\n            }\r\n        }\r\n        this.menuTop = this.getMenuPositionY(this.menuPositionIsTop, parentY, parentHeight, this.arrowHeight, this.getMenuHeight());\r\n        this.menuLeft = this.getMenuPositionX(this.menuPositionIsLeft, parentX, parentWidth, this.arrowWidth, this.getMenuWidth());\r\n        this.menuStyle = {\r\n            transform: `translate3d(${this.menuLeft}px,${this.menuTop}px,0)`\r\n        };\r\n    }\r\n    /**\r\n     * Updates the position which the items should be displayed\r\n     */\r\n    updatePosition() {\r\n        const parentY = this.parentElementRef.nativeElement.getBoundingClientRect().top;\r\n        const parentX = this.parentElementRef.nativeElement.getBoundingClientRect().left;\r\n        const parentWidth = this.parentElementRef.nativeElement.children[0].offsetWidth;\r\n        const parentHeight = this.parentElementRef.nativeElement.offsetHeight;\r\n        const menuY = this.getMenuPositionY(this.menuPositionIsTop, parentY, parentHeight, this.arrowHeight, this.getMenuHeight());\r\n        const menuX = this.getMenuPositionX(this.menuPositionIsLeft, parentX, parentWidth, this.arrowWidth, this.getMenuWidth());\r\n        if (this.menuLeft !== menuX || this.menuTop !== menuY) {\r\n            this.menuLeft = menuX;\r\n            this.menuTop = menuY;\r\n            this.menuStyle = {\r\n                transform: `translate3d(${this.menuLeft}px,${this.menuTop}px,0)`\r\n            };\r\n        }\r\n    }\r\n    /**\r\n     * Gets the height of the menu\r\n     */\r\n    getMenuHeight() {\r\n        return Math.min(this.items.length * this.menuRowHeight, this.defaultMenuMaxHeight) + this.arrowHeight;\r\n    }\r\n    /**\r\n     * Gets the width of the menu\r\n     */\r\n    getMenuWidth() {\r\n        return this.element.nativeElement.children[0].offsetWidth;\r\n    }\r\n    /**\r\n     * Gets the position on axis y of the menu\r\n     */\r\n    getMenuPositionY(isPositionTop, parentY, parentHeight, arrowHeight, menuHeight) {\r\n        let y;\r\n        if (isPositionTop) {\r\n            y = parentY + parentHeight + arrowHeight;\r\n        }\r\n        else {\r\n            y = parentY - menuHeight;\r\n        }\r\n        return Math.floor(y);\r\n    }\r\n    /**\r\n     * Gets the postion on axis x of the menu\r\n     */\r\n    getMenuPositionX(isPositionLeft, parentX, parentWidth, arrowWidth, menuWidth) {\r\n        let x;\r\n        if (isPositionLeft) {\r\n            x = parentX + parentWidth * .5 - this.arrowWidth * .5;\r\n        }\r\n        else {\r\n            x = parentX + parentWidth * .5 - menuWidth + arrowWidth * .5;\r\n        }\r\n        return Math.floor(x);\r\n    }\r\n}\r\nDropDownEditionHistoryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownEditionHistoryComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.DomService }, { token: i1$4.HttpClient }, { token: i2$3.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nDropDownEditionHistoryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DropDownEditionHistoryComponent, selector: \"pri-dropdown-edition-history\", inputs: { origin: \"origin\", dismissView: \"dismissView\", onDismiss: \"onDismiss\", parentElementRef: \"parentElementRef\", items: \"items\", maxWidth: \"maxWidth\", customClass: \"customClass\" }, host: { listeners: { \"document:click\": \"onDocumentClick($event)\" } }, viewQueries: [{ propertyName: \"itemsElement\", first: true, predicate: [\"items\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"dropdown-edition-history pri-field-options\\\" [ngClass]=\\\"customClass\\\" [ngStyle]=\\\"menuStyle\\\">\\r\\n    <div class=\\\"arrow\\\" *ngIf=\\\"menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-top-right' : !this.menuPositionIsLeft, 'arrow-top-left' : this.menuPositionIsLeft}\\\">\\r\\n    </div>\\r\\n    <div #lines class=\\\"lines\\\"> \\r\\n        <div *ngFor=\\\"let item of items; let i = index\\\" class=\\\"line\\\" [ngClass]=\\\"{'has-action': hasAction(item)}\\\"\\r\\n        (click)=\\\"onRowClick(i, item)\\\">\\r\\n            <div class=\\\"icon\\\"></div>\\r\\n            <div class=\\\"sub-line title\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n                <div class=\\\"value\\\">{{item.title}}</div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line author\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"circule\\\"></div>\\r\\n                </div>\\r\\n                <div *ngIf=\\\"!isBuilding\\\" class=\\\"value\\\">{{item.author}}</div>\\r\\n                <pri-loading-spinner *ngIf=\\\"isBuilding\\\" cssClass=\\\"loading center-block\\\"></pri-loading-spinner>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line date\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n                <div class=\\\"value\\\">{{item.date.toISOString() | dateFieldView: 'L LT'}}</div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line margin\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line sub-items-arrow ti-ux-chevron-right\\\"></div>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div class=\\\"arrow\\\" *ngIf=\\\"!menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-bottom-right' : !this.menuPositionIsLeft, 'arrow-bottom-left' : this.menuPositionIsLeft}\\\">\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-dropdown-edition-history .dropdown-edition-history{max-width:200px}@media only screen and (max-width: 575px){pri-dropdown-edition-history .dropdown-edition-history{max-width:140px}}pri-dropdown-edition-history .history-link .view-title-value{color:var(--theme-100)!important;cursor:pointer}pri-dropdown-edition-history .history-link:hover .view-title-value{color:#23527c!important;text-decoration:underline}pri-dropdown-edition-history .dropdown-edition-history{display:block;position:fixed;top:0;left:0}pri-dropdown-edition-history .dropdown-edition-history .line{border:none!important;height:100%!important;width:100%;float:left;opacity:.5;cursor:default!important;flex-direction:column}pri-dropdown-edition-history .dropdown-edition-history .line .title{font-size:10px}pri-dropdown-edition-history .dropdown-edition-history .line .author{font-size:12px;font-weight:bolder}pri-dropdown-edition-history .dropdown-edition-history .line .date{font-size:9px;font-weight:bolder}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line{color:var(--grey-7);position:relative;overflow:hidden;width:100%;float:left;line-height:initial}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator{width:26px;height:14px;float:left;justify-content:center;display:flex}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator .circule{width:6px;height:6px;background-color:var(--theme-100);border-radius:379px;margin-top:5px}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator .dash{width:2px;height:100%;background-color:var(--grey-6)}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .value{float:left;max-width:83%;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;line-height:normal}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .loading{height:15px;width:15px;margin-left:30px}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .margin-bottom{height:10px}pri-dropdown-edition-history .dropdown-edition-history .line:first-child .title .dash,pri-dropdown-edition-history .dropdown-edition-history .line:last-child .margin,pri-dropdown-edition-history .dropdown-edition-history .line:last-child .date .dash{display:none}pri-dropdown-edition-history .dropdown-edition-history .line:first-child{margin-top:10px}pri-dropdown-edition-history .dropdown-edition-history .line:last-child{margin-bottom:10px;opacity:1}pri-dropdown-edition-history .dropdown-edition-history .line:last-child .title .dash{opacity:.5!important}pri-dropdown-edition-history .dropdown-edition-history .line:hover{background:none!important}pri-dropdown-edition-history .dropdown-edition-history .line.has-action:hover{cursor:pointer!important;background-color:var(--grey-5)!important}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: DateFieldViewPipe, name: \"dateFieldView\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownEditionHistoryComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-dropdown-edition-history', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"dropdown-edition-history pri-field-options\\\" [ngClass]=\\\"customClass\\\" [ngStyle]=\\\"menuStyle\\\">\\r\\n    <div class=\\\"arrow\\\" *ngIf=\\\"menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-top-right' : !this.menuPositionIsLeft, 'arrow-top-left' : this.menuPositionIsLeft}\\\">\\r\\n    </div>\\r\\n    <div #lines class=\\\"lines\\\"> \\r\\n        <div *ngFor=\\\"let item of items; let i = index\\\" class=\\\"line\\\" [ngClass]=\\\"{'has-action': hasAction(item)}\\\"\\r\\n        (click)=\\\"onRowClick(i, item)\\\">\\r\\n            <div class=\\\"icon\\\"></div>\\r\\n            <div class=\\\"sub-line title\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n                <div class=\\\"value\\\">{{item.title}}</div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line author\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"circule\\\"></div>\\r\\n                </div>\\r\\n                <div *ngIf=\\\"!isBuilding\\\" class=\\\"value\\\">{{item.author}}</div>\\r\\n                <pri-loading-spinner *ngIf=\\\"isBuilding\\\" cssClass=\\\"loading center-block\\\"></pri-loading-spinner>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line date\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n                <div class=\\\"value\\\">{{item.date.toISOString() | dateFieldView: 'L LT'}}</div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line margin\\\">\\r\\n                <div class=\\\"decorator\\\">\\r\\n                    <div class=\\\"dash\\\"></div>\\r\\n                </div>\\r\\n            </div>\\r\\n            <div class=\\\"sub-line sub-items-arrow ti-ux-chevron-right\\\"></div>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div class=\\\"arrow\\\" *ngIf=\\\"!menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-bottom-right' : !this.menuPositionIsLeft, 'arrow-bottom-left' : this.menuPositionIsLeft}\\\">\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-dropdown-edition-history .dropdown-edition-history{max-width:200px}@media only screen and (max-width: 575px){pri-dropdown-edition-history .dropdown-edition-history{max-width:140px}}pri-dropdown-edition-history .history-link .view-title-value{color:var(--theme-100)!important;cursor:pointer}pri-dropdown-edition-history .history-link:hover .view-title-value{color:#23527c!important;text-decoration:underline}pri-dropdown-edition-history .dropdown-edition-history{display:block;position:fixed;top:0;left:0}pri-dropdown-edition-history .dropdown-edition-history .line{border:none!important;height:100%!important;width:100%;float:left;opacity:.5;cursor:default!important;flex-direction:column}pri-dropdown-edition-history .dropdown-edition-history .line .title{font-size:10px}pri-dropdown-edition-history .dropdown-edition-history .line .author{font-size:12px;font-weight:bolder}pri-dropdown-edition-history .dropdown-edition-history .line .date{font-size:9px;font-weight:bolder}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line{color:var(--grey-7);position:relative;overflow:hidden;width:100%;float:left;line-height:initial}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator{width:26px;height:14px;float:left;justify-content:center;display:flex}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator .circule{width:6px;height:6px;background-color:var(--theme-100);border-radius:379px;margin-top:5px}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .decorator .dash{width:2px;height:100%;background-color:var(--grey-6)}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .value{float:left;max-width:83%;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;line-height:normal}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .loading{height:15px;width:15px;margin-left:30px}pri-dropdown-edition-history .dropdown-edition-history .line .sub-line .margin-bottom{height:10px}pri-dropdown-edition-history .dropdown-edition-history .line:first-child .title .dash,pri-dropdown-edition-history .dropdown-edition-history .line:last-child .margin,pri-dropdown-edition-history .dropdown-edition-history .line:last-child .date .dash{display:none}pri-dropdown-edition-history .dropdown-edition-history .line:first-child{margin-top:10px}pri-dropdown-edition-history .dropdown-edition-history .line:last-child{margin-bottom:10px;opacity:1}pri-dropdown-edition-history .dropdown-edition-history .line:last-child .title .dash{opacity:.5!important}pri-dropdown-edition-history .dropdown-edition-history .line:hover{background:none!important}pri-dropdown-edition-history .dropdown-edition-history .line.has-action:hover{cursor:pointer!important;background-color:var(--grey-5)!important}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DomService }, { type: i1$4.HttpClient }, { type: i2$3.I18nService }]; }, propDecorators: { origin: [{\r\n                type: Input\r\n            }], dismissView: [{\r\n                type: Input\r\n            }], onDismiss: [{\r\n                type: Input\r\n            }], parentElementRef: [{\r\n                type: Input\r\n            }], items: [{\r\n                type: Input\r\n            }], maxWidth: [{\r\n                type: Input\r\n            }], customClass: [{\r\n                type: Input\r\n            }], itemsElement: [{\r\n                type: ViewChild,\r\n                args: ['items', { static: true }]\r\n            }], onDocumentClick: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\n/**\r\n * Directive responsible to show a drop down menu, which is content is related to history events\r\n */\r\nclass DropDownEditionHistoryDirective {\r\n    /**\r\n     * Constructor of this directive\r\n     *\r\n     * @param element Permitting direct access to the DOM\r\n     * @param domService Service responsible to interact with DOM\r\n     * @param applicationRef A reference to an Angular application running on a page\r\n     */\r\n    constructor(element, domService, applicationRef) {\r\n        this.element = element;\r\n        this.domService = domService;\r\n        this.applicationRef = applicationRef;\r\n        this.availableTriggers = ['click', 'none'];\r\n        this.isOpen = false;\r\n    }\r\n    /**Allows to know if the component that called this directive was inside the navbar or not*/\r\n    set priDropDownEditionHistoryItems(items) {\r\n        this._items = items;\r\n        const self = this;\r\n        if (this._items && this._items.length > 0) {\r\n            switch (this.trigger) {\r\n                case 'click':\r\n                    this.element.nativeElement.addEventListener('click', self.onShowDropdown);\r\n                    break;\r\n            }\r\n            if (this.priDropDownEditionHistoryTransformToLink) {\r\n                this.element.nativeElement.classList.add('history-link');\r\n            }\r\n        }\r\n        else {\r\n            this.element.nativeElement.removeEventListener('click', self.onShowDropdown);\r\n            this.element.nativeElement.classList.remove('history-link');\r\n            if (this.closeMenuInstanceCallback) {\r\n                this.closeMenuInstanceCallback();\r\n            }\r\n        }\r\n    }\r\n    get items() {\r\n        return this._items;\r\n    }\r\n    onWindowResize() {\r\n        if (this.isOpen && this.closeMenuInstanceCallback) {\r\n            this.closeMenuInstanceCallback();\r\n            this.closeMenuInstanceCallback = null;\r\n        }\r\n        this.isOpen = false;\r\n    }\r\n    /**\r\n     * Lifecycle hook that is called after Angular has initialized all data-bound properties this directive\r\n     */\r\n    ngOnInit() {\r\n        this.onShowDropdown = () => this.showDropdown();\r\n        /** sanitize the trigger property */\r\n        if (!this.trigger || this.availableTriggers.indexOf(this.trigger) < 0) {\r\n            this.trigger = 'click';\r\n        }\r\n    }\r\n    /**\r\n     * Lifecycle hook that is called when this directive is destroy\r\n     */\r\n    ngOnDestroy() {\r\n        if (this.closeMenuInstanceCallback) {\r\n            this.closeMenuInstanceCallback();\r\n        }\r\n        if (this.trigger !== 'none') {\r\n            this.element.nativeElement.removeEventListener(this.trigger, this.onShowDropdown);\r\n        }\r\n    }\r\n    /**\r\n     * Handle the dismiss of the dropdown edition history\r\n     */\r\n    onDismiss() {\r\n        this.isOpen = false;\r\n        this.closeMenuInstanceCallback = null;\r\n    }\r\n    /**\r\n     * Construct and shows the DropDownEditionHistoryComponent\r\n     */\r\n    showDropdown() {\r\n        if (!this.isOpen) {\r\n            let maxWidth = parseInt(this.maxWidth, 10);\r\n            if (isNaN(maxWidth)) {\r\n                maxWidth = 160;\r\n            }\r\n            const self = this;\r\n            const properties = {\r\n                items: this.items,\r\n                parentElementRef: this.element,\r\n                maxWidth,\r\n                customClass: this.customClass,\r\n                origin: this.origin,\r\n                transformToLink: this.priDropDownEditionHistoryTransformToLink,\r\n                onDismiss: () => { self.onDismiss(); }\r\n            };\r\n            this.closeMenuInstanceCallback = this.domService.appendComponentToBody(DropDownEditionHistoryComponent, properties);\r\n        }\r\n        this.isOpen = !this.isOpen;\r\n        /** because this function is async, some times the component does not detect changeset the history items.\r\n         * More info on https://stackoverflow.com/questions/35105374/how-to-force-a-components-re-rendering-in-angular-2*/\r\n        this.applicationRef.tick();\r\n    }\r\n}\r\nDropDownEditionHistoryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownEditionHistoryDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DomService }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Directive });\r\nDropDownEditionHistoryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DropDownEditionHistoryDirective, selector: \"[priDropDownEditionHistory]\", inputs: { origin: \"origin\", maxWidth: \"maxWidth\", customClass: \"customClass\", trigger: \"trigger\", priDropDownEditionHistoryTransformToLink: \"priDropDownEditionHistoryTransformToLink\", priDropDownEditionHistoryItems: \"priDropDownEditionHistoryItems\" }, host: { listeners: { \"window:resize\": \"onWindowResize()\" } }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DropDownEditionHistoryDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priDropDownEditionHistory]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DomService }, { type: i0.ApplicationRef }]; }, propDecorators: { origin: [{\r\n                type: Input\r\n            }], maxWidth: [{\r\n                type: Input\r\n            }], customClass: [{\r\n                type: Input\r\n            }], trigger: [{\r\n                type: Input\r\n            }], priDropDownEditionHistoryTransformToLink: [{\r\n                type: Input\r\n            }], priDropDownEditionHistoryItems: [{\r\n                type: Input\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize']\r\n            }] } });\n\nclass ErrorPageSvgComponent {\r\n}\r\nErrorPageSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorPageSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nErrorPageSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ErrorPageSvgComponent, selector: \"pri-error-page-svg\", ngImport: i0, template: \"<div class=\\\"error-svg-container\\\">\\r\\n\\t<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 520 454\\\">\\r\\n\\t\\t<g id=\\\"illustration\\\" transform=\\\"translate(0 33.736)\\\">\\r\\n\\t\\t\\t<circle cx=\\\"215.752\\\" cy=\\\"215.752\\\" r=\\\"215.752\\\" transform=\\\"translate(39.987 -33.736)\\\" />\\r\\n\\t\\t\\t<g id=\\\"shapes\\\" transform=\\\"translate(0 2.879)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1168.827,945.34a.829.829,0,0,0-1.136-.292l-2.752,1.626-1.626-2.752a.829.829,0,0,0-1.428.844l1.626,2.752-2.753,1.626a.829.829,0,0,0,.844,1.428l2.752-1.626,1.626,2.752a.829.829,0,0,0,1.428-.844l-1.626-2.752,2.752-1.626a.83.83,0,0,0,.292-1.136\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-759.411 -620.803)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#f07014\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1198.232,987.844a3.613,3.613,0,1,1,3.612-3.613,3.617,3.617,0,0,1-3.612,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-781.839 -645.086)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#5eb3e4\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M142,1141.323a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-90.568 -745.534)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#f04747\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1300.04,16.786a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-848.469 -9.561)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#ffc629\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1481.495,295.162a.829.829,0,0,0-.382,1.109l1.4,2.874-2.874,1.4a.829.829,0,0,0,.726,1.491l2.874-1.4,1.4,2.874a.83.83,0,0,0,1.491-.727l-1.4-2.874,2.874-1.4a.829.829,0,1,0-.727-1.491l-2.874,1.4-1.4-2.874a.831.831,0,0,0-1.109-.383\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-968.07 -196.423)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#78e5d1\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M1327.961,480.651a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-866.742 -313.146)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M.443,639.7a.829.829,0,0,0-.037,1.172l2.187,2.332L.262,645.395A.829.829,0,1,0,1.4,646.6l2.331-2.187,2.187,2.332a.829.829,0,0,0,1.21-1.135l-2.187-2.332L7.269,641.1a.829.829,0,1,0-1.135-1.21L3.8,642.073l-2.187-2.331A.83.83,0,0,0,.443,639.7\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(0 -421.822)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M97.486,741.422a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-61.436 -483.811)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#ffc629\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\td=\\\"M108.022,749.6a.735.735,0,0,1-.041-1.47c2.425-.136,4.879-.379,7.295-.72a.735.735,0,0,1,.206,1.456c-2.456.347-4.952.593-7.418.732h-.042m-10.343-.032h-.047c-2.47-.154-4.964-.417-7.412-.782a.735.735,0,1,1,.216-1.454c2.407.358,4.859.616,7.287.768a.735.735,0,0,1-.045,1.469m27.841-2.733a.735.735,0,0,1-.186-1.446c2.357-.619,4.713-1.344,7-2.156a.735.735,0,1,1,.492,1.386c-2.329.826-4.725,1.564-7.121,2.193a.729.729,0,0,1-.187.024m-45.318-.17a.737.737,0,0,1-.194-.026c-2.387-.652-4.776-1.414-7.1-2.266a.735.735,0,1,1,.506-1.381c2.286.838,4.635,1.587,6.981,2.228a.735.735,0,0,1-.193,1.445m61.907-6.035a.735.735,0,0,1-.327-1.394c2.181-1.08,4.341-2.267,6.422-3.527a.735.735,0,1,1,.762,1.258c-2.116,1.282-4.313,2.489-6.531,3.587a.73.73,0,0,1-.326.077m-78.436-.34a.734.734,0,0,1-.332-.079c-2.206-1.119-4.393-2.345-6.5-3.647a.735.735,0,0,1,.773-1.251c2.072,1.28,4.223,2.486,6.392,3.586a.736.736,0,0,1-.333,1.391m93.419-9.09a.735.735,0,0,1-.453-1.315c1.916-1.5,3.793-3.1,5.577-4.755a.735.735,0,0,1,1,1.078c-1.814,1.684-3.722,3.311-5.672,4.835a.733.733,0,0,1-.452.156m-108.33-.469a.731.731,0,0,1-.457-.159c-1.939-1.539-3.836-3.179-5.638-4.874a.735.735,0,0,1,1.008-1.071c1.772,1.667,3.637,3.279,5.545,4.793a.735.735,0,0,1-.457,1.311m121.1-11.8a.736.736,0,0,1-.56-1.212c1.577-1.854,3.094-3.8,4.51-5.778a.735.735,0,0,1,1.2.856c-1.439,2.013-2.982,3.99-4.586,5.875a.734.734,0,0,1-.561.259m-133.8-.554a.733.733,0,0,1-.564-.263c-1.592-1.9-3.12-3.885-4.543-5.908a.735.735,0,1,1,1.2-.846c1.4,1.989,2.9,3.943,4.467,5.809a.735.735,0,0,1-.563,1.208m143.856-14.026a.735.735,0,0,1-.644-1.09c1.174-2.133,2.272-4.341,3.262-6.564a.735.735,0,1,1,1.343.6c-1.007,2.26-2.123,4.506-3.317,6.674a.736.736,0,0,1-.645.381m-153.8-.632a.736.736,0,0,1-.648-.387c-1.173-2.179-2.267-4.435-3.251-6.706a.735.735,0,1,1,1.349-.585c.968,2.233,2.043,4.451,3.2,6.593a.735.735,0,0,1-.646,1.084m160.734-15.67a.736.736,0,0,1-.7-.953c.722-2.326,1.352-4.71,1.873-7.085a.735.735,0,1,1,1.436.315c-.53,2.416-1.171,4.841-1.905,7.206a.735.735,0,0,1-.7.518m-167.5-.7a.736.736,0,0,1-.7-.525c-.707-2.364-1.324-4.794-1.834-7.222a.735.735,0,0,1,1.439-.3c.5,2.388,1.108,4.777,1.8,7.1a.737.737,0,0,1-.7.946m171.006-16.673c-.024,0-.048,0-.072,0a.735.735,0,0,1-.661-.8c.235-2.42.369-4.882.4-7.317a.735.735,0,1,1,1.471.018c-.029,2.476-.166,4.979-.4,7.441a.736.736,0,0,1-.731.664m-174.358-.721a.735.735,0,0,1-.731-.669c-.223-2.468-.344-4.973-.358-7.446a.735.735,0,0,1,.731-.739h0a.735.735,0,0,1,.735.731c.014,2.431.132,4.894.352,7.322a.735.735,0,0,1-.666.8l-.067,0m174.268-16.992a.735.735,0,0,1-.73-.657c-.258-2.413-.622-4.853-1.083-7.25l-.018-.093a.735.735,0,0,1,1.444-.28l.018.1c.468,2.438.839,4.918,1.1,7.372a.735.735,0,0,1-.653.809.692.692,0,0,1-.079,0m-174.064-.727a.774.774,0,0,1-.084,0,.735.735,0,0,1-.647-.814c.28-2.459.669-4.936,1.158-7.363a.735.735,0,0,1,1.442.29c-.48,2.386-.863,4.822-1.138,7.24a.736.736,0,0,1-.73.652m170.4-16.7a.735.735,0,0,1-.7-.513c-.738-2.322-1.584-4.637-2.513-6.883a.735.735,0,0,1,1.359-.562c.946,2.284,1.805,4.639,2.556,7a.735.735,0,0,1-.7.958m-166.618-.606a.736.736,0,0,1-.7-.965c.772-2.35,1.654-4.7,2.622-6.977a.735.735,0,1,1,1.354.575c-.952,2.241-1.82,4.549-2.578,6.86a.736.736,0,0,1-.7.506M179.562,619.3a.736.736,0,0,1-.642-.376c-1.191-2.121-2.488-4.218-3.855-6.231a.735.735,0,0,1,1.217-.826c1.391,2.048,2.71,4.18,3.921,6.337a.736.736,0,0,1-.641,1.1M27.193,618.75a.736.736,0,0,1-.638-1.1c1.228-2.148,2.564-4.27,3.968-6.308a.735.735,0,1,1,1.211.834c-1.381,2-2.694,4.092-3.9,6.2a.735.735,0,0,1-.639.37m142.175-13.93a.734.734,0,0,1-.555-.253c-1.595-1.837-3.289-3.628-5.035-5.325a.735.735,0,1,1,1.025-1.054c1.776,1.726,3.5,3.548,5.12,5.415a.735.735,0,0,1-.555,1.218m-131.88-.483a.736.736,0,0,1-.552-1.221c1.634-1.86,3.367-3.672,5.151-5.386a.735.735,0,1,1,1.019,1.06c-1.754,1.686-3.458,3.468-5.065,5.3a.735.735,0,0,1-.553.25M156.463,592.69a.734.734,0,0,1-.447-.151c-1.933-1.48-3.952-2.9-6-4.208a.736.736,0,0,1,.793-1.239c2.084,1.335,4.136,2.774,6.1,4.279a.735.735,0,0,1-.447,1.319m-106-.406a.735.735,0,0,1-.444-1.322c1.975-1.493,4.037-2.919,6.13-4.238a.735.735,0,0,1,.784,1.244c-2.058,1.3-4.086,2.7-6.028,4.167a.731.731,0,0,1-.443.149m90.926-8.895a.733.733,0,0,1-.321-.074c-2.19-1.064-4.452-2.046-6.722-2.921a.735.735,0,1,1,.529-1.372c2.309.889,4.609,1.889,6.836,2.97a.736.736,0,0,1-.322,1.4M65.6,583.1a.735.735,0,0,1-.316-1.4c2.234-1.061,4.543-2.039,6.862-2.907a.736.736,0,0,1,.516,1.378c-2.28.853-4.55,1.815-6.747,2.858a.732.732,0,0,1-.315.071m59.147-5.8a.731.731,0,0,1-.182-.023c-2.359-.6-4.772-1.107-7.173-1.5a.735.735,0,0,1,.24-1.451c2.441.4,4.9.919,7.295,1.53a.735.735,0,0,1-.181,1.448m-42.461-.136a.735.735,0,0,1-.174-1.449c1.461-.358,2.955-.685,4.44-.97.948-.182,1.912-.351,2.865-.5a.735.735,0,0,1,.23,1.453c-.938.149-1.886.315-2.819.494-1.461.281-2.93.6-4.368.954a.748.748,0,0,1-.176.021m24.933-2.462h-.034c-1.288-.058-2.595-.087-3.882-.087-1.143,0-2.3.023-3.446.069a.735.735,0,1,1-.058-1.47c1.163-.046,2.343-.07,3.5-.07,1.31,0,2.638.03,3.948.089a.735.735,0,0,1-.032,1.47\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-9.762 -375.529)\\\" />\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\td=\\\"M739.22,307.693q-.635.041-1.269.077a.735.735,0,0,1-.089-1.468h.006c2.4-.136,4.837-.331,7.237-.58a.735.735,0,1,1,.152,1.463c-2,.208-4.031.379-6.037.509m-11.468.314-.056,0c-2.433-.025-4.9-.108-7.323-.248a.735.735,0,1,1,.085-1.468c2.4.139,4.844.221,7.253.246a.735.735,0,0,1,.041,1.469m27.593-2.207a.735.735,0,0,1-.17-1.459c2.379-.406,4.776-.873,7.124-1.389a.735.735,0,0,1,.315,1.436c-2.371.52-4.79.992-7.192,1.4a.738.738,0,0,1-.077.009m-45.048,1.03a.757.757,0,0,1-.14,0c-2.415-.3-4.853-.668-7.247-1.086a.735.735,0,1,1,.253-1.449c2.371.414,4.786.775,7.177,1.076a.735.735,0,0,1-.043,1.463m62.1-4.944a.735.735,0,0,1-.252-1.44c2.313-.671,4.642-1.408,6.919-2.189a.735.735,0,0,1,.477,1.391c-2.3.788-4.651,1.532-6.987,2.211a.74.74,0,0,1-.158.028m-79.318,1.768a.745.745,0,0,1-.223-.02c-2.365-.578-4.749-1.223-7.088-1.916a.735.735,0,0,1,.417-1.41c2.316.686,4.678,1.324,7.02,1.9a.735.735,0,0,1-.127,1.448m95.812-7.6a.736.736,0,0,1-.332-1.412c2.222-.933,4.451-1.932,6.623-2.969a.735.735,0,0,1,.634,1.327c-2.193,1.047-4.444,2.056-6.687,3a.737.737,0,0,1-.237.056M676.328,298.52a.732.732,0,0,1-.3-.044c-2.281-.846-4.575-1.759-6.817-2.713a.735.735,0,0,1,.576-1.353c2.22.946,4.492,1.85,6.752,2.688a.735.735,0,0,1-.209,1.423m128.265-10.148a.735.735,0,0,1-.408-1.375c2.095-1.178,4.189-2.424,6.225-3.7a.736.736,0,1,1,.782,1.246c-2.056,1.29-4.172,2.547-6.287,3.737a.728.728,0,0,1-.312.093m-144.31,3.133a.729.729,0,0,1-.379-.078c-2.171-1.1-4.345-2.269-6.46-3.471a.735.735,0,1,1,.727-1.279c2.095,1.191,4.248,2.347,6.4,3.438a.735.735,0,0,1-.286,1.39M819.3,278.948a.735.735,0,0,1-.48-1.329c1.948-1.412,3.888-2.889,5.767-4.392a.735.735,0,0,1,.919,1.149c-1.9,1.517-3.856,3.009-5.823,4.434a.734.734,0,0,1-.383.139m-174.158,3.767a.733.733,0,0,1-.452-.12c-2.032-1.34-4.058-2.746-6.022-4.18a.735.735,0,0,1,.867-1.188c1.945,1.419,3.952,2.812,5.964,4.14a.735.735,0,0,1-.358,1.348m187.7-14.815a.735.735,0,0,1-.544-1.276c1.775-1.625,3.536-3.314,5.233-5.023a.735.735,0,0,1,1.043,1.037c-1.714,1.725-3.492,3.431-5.284,5.071a.73.73,0,0,1-.448.191m-201.741,4.368a.734.734,0,0,1-.519-.17c-1.865-1.56-3.718-3.186-5.506-4.832a.735.735,0,0,1,1-1.082c1.772,1.631,3.607,3.241,5.454,4.787a.735.735,0,0,1-.424,1.3m213.951-16.89a.735.735,0,0,1-.6-1.217c1.581-1.817,3.139-3.7,4.633-5.587a.735.735,0,0,1,1.154.912c-1.508,1.908-3.081,3.805-4.677,5.64a.735.735,0,0,1-.507.251M618.353,260.3a.733.733,0,0,1-.581-.227c-1.676-1.761-3.331-3.586-4.92-5.423a.735.735,0,0,1,1.112-.962c1.574,1.82,3.214,3.627,4.873,5.371a.735.735,0,0,1-.485,1.241m237.425-18.753a.735.735,0,0,1-.653-1.151c1.366-1.986,2.7-4.032,3.971-6.078a.735.735,0,0,1,1.25.775c-1.281,2.066-2.63,4.131-4.01,6.137a.735.735,0,0,1-.559.317m-248.736,5.421a.734.734,0,0,1-.635-.291c-1.462-1.938-2.9-3.937-4.268-5.944a.735.735,0,0,1,1.215-.829c1.356,1.988,2.779,3.968,4.227,5.887a.735.735,0,0,1-.539,1.177M864.86,226.585a.735.735,0,0,1-.7-1.079c1.133-2.131,2.229-4.315,3.257-6.493a.735.735,0,1,1,1.33.628c-1.038,2.2-2.144,4.4-3.288,6.555a.735.735,0,0,1-.6.389M597.33,232.44a.735.735,0,0,1-.682-.361c-1.23-2.091-2.427-4.24-3.557-6.388a.735.735,0,0,1,1.3-.685c1.119,2.127,2.3,4.256,3.523,6.327a.736.736,0,0,1-.586,1.107m274.855-21.757a.736.736,0,0,1-.731-1c.883-2.247,1.722-4.543,2.5-6.826a.735.735,0,1,1,1.393.472c-.781,2.3-1.628,4.623-2.52,6.892a.735.735,0,0,1-.637.465m-282.842,6.21a.735.735,0,0,1-.72-.436c-.985-2.223-1.929-4.5-2.807-6.769a.735.735,0,0,1,1.372-.531c.869,2.247,1.8,4.5,2.78,6.7a.735.735,0,0,1-.374.97.726.726,0,0,1-.25.061m288.3-22.852a.735.735,0,0,1-.758-.923c.62-2.334,1.191-4.714,1.7-7.072a.735.735,0,0,1,1.438.309c-.511,2.381-1.088,4.784-1.714,7.141a.736.736,0,0,1-.663.545m-294.46,6.477a.735.735,0,0,1-.749-.515c-.723-2.321-1.4-4.691-2.013-7.046a.735.735,0,0,1,1.424-.37c.607,2.332,1.277,4.68,1.993,6.978a.736.736,0,0,1-.655.953m297.974-23.631a.748.748,0,0,1-.154-.006.736.736,0,0,1-.622-.834c.347-2.382.64-4.806.872-7.2a.735.735,0,1,1,1.463.142c-.234,2.422-.53,4.869-.88,7.275a.735.735,0,0,1-.679.628m-302.217,6.66a.736.736,0,0,1-.769-.6c-.454-2.386-.859-4.818-1.2-7.23a.735.735,0,0,1,1.456-.207c.34,2.389.74,4.8,1.19,7.161a.735.735,0,0,1-.585.86.753.753,0,0,1-.091.012m303.736-24.088a.681.681,0,0,1-.07,0,.735.735,0,0,1-.713-.757c.071-2.407.085-4.849.042-7.258a.735.735,0,0,1,1.47-.027c.044,2.432.03,4.9-.042,7.327a.735.735,0,0,1-.687.712M576.644,166.2a.735.735,0,0,1-.781-.678q-.065-.859-.121-1.717c-.12-1.858-.208-3.742-.261-5.6a.735.735,0,1,1,1.47-.042c.052,1.841.139,3.707.258,5.548q.055.85.119,1.7a.735.735,0,0,1-.678.789h-.008M882.2,141.969a.736.736,0,0,1-.78-.672c-.2-2.4-.464-4.825-.78-7.219l-.03-.233a.735.735,0,0,1,1.458-.194l.031.236c.318,2.415.583,4.867.787,7.286a.735.735,0,0,1-.671.794H882.2m-305.884,6.738c-.025,0-.051,0-.077,0a.735.735,0,0,1-.707-.763c.093-2.431.246-4.892.455-7.314a.735.735,0,0,1,1.465.126c-.207,2.4-.358,4.836-.451,7.243a.736.736,0,0,1-.686.706M879.7,124.411a.736.736,0,0,1-.768-.589c-.474-2.363-1.012-4.745-1.6-7.08a.735.735,0,0,1,1.427-.358c.591,2.357,1.133,4.762,1.612,7.148a.735.735,0,0,1-.576.866.745.745,0,0,1-.1.013m-301.719,6.88a.718.718,0,0,1-.16-.007.735.735,0,0,1-.614-.839c.372-2.409.808-4.843,1.295-7.232a.735.735,0,0,1,1.441.294c-.483,2.366-.914,4.776-1.283,7.162a.735.735,0,0,1-.679.622m297.3-23.807a.736.736,0,0,1-.747-.508c-.74-2.293-1.546-4.6-2.394-6.851a.735.735,0,1,1,1.376-.518c.857,2.275,1.67,4.6,2.418,6.918a.737.737,0,0,1-.653.96m-293.638,6.669a.735.735,0,0,1-.756-.929c.646-2.348,1.358-4.713,2.116-7.029a.735.735,0,0,1,1.4.457c-.751,2.294-1.456,4.636-2.1,6.962a.736.736,0,0,1-.662.539M868.968,91.171a.735.735,0,0,1-.717-.429c-1-2.193-2.063-4.39-3.165-6.532a.735.735,0,1,1,1.308-.673c1.112,2.162,2.188,4.381,3.2,6.595a.736.736,0,0,1-.622,1.039m-281.71,6.387a.735.735,0,0,1-.729-1.009c.91-2.257,1.887-4.524,2.9-6.737a.735.735,0,1,1,1.336.614c-1.008,2.192-1.975,4.437-2.877,6.672a.735.735,0,0,1-.635.459M860.821,75.7a.735.735,0,0,1-.678-.355c-1.24-2.059-2.548-4.116-3.886-6.115a.735.735,0,0,1,1.222-.818c1.351,2.018,2.671,4.1,3.923,6.174a.735.735,0,0,1-.582,1.113m-266.1,6.016a.735.735,0,0,1-.693-1.085c1.16-2.137,2.389-4.277,3.651-6.359a.735.735,0,1,1,1.257.762c-1.249,2.062-2.466,4.181-3.616,6.3a.736.736,0,0,1-.6.383m256.24-20.444a.733.733,0,0,1-.631-.285c-1.47-1.907-3-3.8-4.562-5.635a.735.735,0,0,1,1.121-.952c1.572,1.851,3.122,3.765,4.606,5.69a.735.735,0,0,1-.534,1.183M603.935,66.838a.735.735,0,0,1-.649-1.156c1.4-1.992,2.858-3.977,4.346-5.9a.735.735,0,1,1,1.163.9c-1.474,1.906-2.922,3.872-4.3,5.845a.734.734,0,0,1-.555.312M839.515,48.06a.733.733,0,0,1-.575-.221c-1.677-1.727-3.418-3.437-5.175-5.083a.735.735,0,1,1,1.005-1.073c1.774,1.662,3.532,3.388,5.226,5.132a.735.735,0,0,1-.48,1.246M614.772,53.1a.735.735,0,0,1-.6-1.221c1.612-1.821,3.289-3.627,4.984-5.368a.735.735,0,0,1,1.054,1.026c-1.679,1.725-3.341,3.514-4.937,5.317a.733.733,0,0,1-.5.246M826.637,36.223a.731.731,0,0,1-.513-.165c-1.862-1.526-3.787-3.029-5.721-4.466a.735.735,0,1,1,.877-1.18c1.952,1.451,3.9,2.968,5.776,4.509a.735.735,0,0,1-.418,1.3M627.091,40.685a.735.735,0,0,1-.54-1.281c1.807-1.625,3.677-3.228,5.558-4.765a.735.735,0,1,1,.931,1.139c-1.863,1.522-3.716,3.11-5.505,4.72a.734.734,0,0,1-.444.187m185.4-14.767a.73.73,0,0,1-.445-.116c-2.025-1.306-4.109-2.582-6.194-3.791a.735.735,0,0,1,.738-1.272c2.105,1.221,4.209,2.509,6.253,3.827a.735.735,0,0,1-.352,1.352M640.736,29.755a.735.735,0,0,1-.474-1.333c1.979-1.408,4.018-2.786,6.061-4.1a.735.735,0,0,1,.794,1.238c-2.023,1.3-4.043,2.664-6,4.058a.731.731,0,0,1-.378.135M797.27,17.281a.727.727,0,0,1-.372-.075c-2.161-1.068-4.378-2.1-6.587-3.064a.735.735,0,0,1,.588-1.348c2.232.974,4.469,2.015,6.651,3.094a.735.735,0,0,1-.279,1.393M655.53,20.46a.736.736,0,0,1-.4-1.378c2.13-1.174,4.318-2.312,6.5-3.382a.735.735,0,1,1,.647,1.321c-2.163,1.06-4.329,2.187-6.439,3.349a.735.735,0,0,1-.307.09M781.155,10.43a.726.726,0,0,1-.3-.042c-2.272-.815-4.593-1.587-6.9-2.292a.735.735,0,0,1,.43-1.406c2.329.712,4.672,1.491,6.966,2.314a.735.735,0,0,1-.2,1.426M671.313,12.913a.736.736,0,0,1-.326-1.415c2.25-.921,4.553-1.8,6.847-2.613a.735.735,0,0,1,.491,1.386c-2.271.8-4.553,1.675-6.781,2.587a.739.739,0,0,1-.231.054m93.043-7.446a.724.724,0,0,1-.215-.018c-2.351-.55-4.747-1.049-7.121-1.485a.735.735,0,0,1,.266-1.446c2.4.44,4.816.945,7.19,1.5a.735.735,0,0,1-.12,1.45m-76.5,1.759a.735.735,0,0,1-.246-1.442c2.339-.657,4.728-1.266,7.1-1.812a.735.735,0,0,1,.33,1.433c-2.349.54-4.715,1.144-7.032,1.8a.733.733,0,0,1-.152.026M747.1,2.468a.744.744,0,0,1-.133,0c-2.392-.275-4.824-.5-7.228-.656a.735.735,0,1,1,.1-1.467c2.428.162,4.883.385,7.3.663a.735.735,0,0,1-.036,1.464m-42.164.994A.735.735,0,0,1,704.776,2c1.5-.242,3.02-.465,4.528-.664.907-.12,1.827-.233,2.733-.336a.735.735,0,1,1,.167,1.461c-.9.1-1.808.214-2.707.333-1.494.2-3,.418-4.486.658-.024,0-.048.007-.071.008m24.7-1.993-.048,0c-2.406,0-4.847.059-7.255.173a.735.735,0,0,1-.083-1.468h.013C724.7.06,727.16,0,729.589,0a.735.735,0,0,1,.048,1.469\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-376.633 -0.425)\\\" />\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-1\\\"\\r\\n\\t\\t\\t\\td=\\\"M634.127,131.438V384.417h-.664L614.31,365.78l-19.154,18.637h-1.995L574.008,365.78l-19.156,18.637h-1.968l-19.121-18.6-19.119,18.6h-1.958l-19.141-18.623L474.4,384.417h-2.019l-19.141-18.623L434.1,384.417h-2L413,365.829l-19.1,18.588h-1.262V61.13H563.819Z\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-256.967 -40.432)\\\" />\\r\\n\\t\\t\\t<path class=\\\"grey-4\\\" d=\\\"M958.363,131.439H888.054V61.13Z\\\" transform=\\\"translate(-581.202 -40.432)\\\" />\\r\\n\\t\\t\\t<g id=\\\"search\\\" transform=\\\"translate(109.593 273.301)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M603.423,1078.229h0a8.536,8.536,0,0,1-12.046,0l-51.716-51.564-6.571-6.552a42.416,42.416,0,0,0,12.045-12.011l58.289,58.116a8.473,8.473,0,0,1,0,12.009\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-458.483 -933.718)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-7\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M552.718,1015.684l13.476,13.438a42.427,42.427,0,0,1-12.044,12.01h0l-6.905-6.886-6.571-6.552a42.413,42.413,0,0,0,12.045-12.01\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-463.447 -938.687)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M419.873,841.2a51.313,51.313,0,0,0-51.326-49.014A51.255,51.255,0,0,0,317.5,849.2a50.719,50.719,0,0,0,4.916,16.769v0a51.445,51.445,0,0,0,15.672,18.685q1.611,1.186,3.319,2.248a51.531,51.531,0,0,0,56.945-1.771s0,0,0,0A51.577,51.577,0,0,0,410.4,873.125v0h0a50.887,50.887,0,0,0,9.522-29.715q0-1.111-.047-2.209m-51.326,44.318a42.084,42.084,0,1,1,42.235-42.109q0,.962-.044,1.913a41.808,41.808,0,0,1-6.913,21.25,42.435,42.435,0,0,1-12.045,12.011q-1.761,1.157-3.641,2.141a42.191,42.191,0,0,1-19.592,4.794\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-317.173 -792.185)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-4\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-4\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M365.823,877.347a3.939,3.939,0,0,1-3.944-3.933A36.572,36.572,0,0,1,398.506,836.9a3.932,3.932,0,1,1,0,7.865,28.7,28.7,0,0,0-28.738,28.653,3.939,3.939,0,0,1-3.944,3.933\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-346.431 -821.493)\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t\\t<g id=\\\"face\\\" transform=\\\"translate(218.11 127.236)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H18.228a3.95,3.95,0,0,1,3.95,3.95V18.228a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,18.228V3.95A3.95,3.95,0,0,1,3.95,0Z\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H18.228a3.95,3.95,0,0,1,3.95,3.95V18.228a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,18.228V3.95A3.95,3.95,0,0,1,3.95,0Z\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(60.246)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H75.323a3.95,3.95,0,0,1,3.95,3.95v8.379a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,12.328V3.95A3.95,3.95,0,0,1,3.95,0Z\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"matrix(0.926, -0.378, 0.378, 0.926, 4.929, 90.575)\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t</g>\\r\\n\\t</svg>\\r\\n</div>\\r\\n\", styles: [\"pri-error-page-svg{width:100%;height:100%}pri-error-page-svg .error-svg-container{width:520px;height:454px}pri-error-page-svg .error-svg-container svg{width:100%;height:100%}pri-error-page-svg .error-svg-container svg circle{fill:var(--grey-3)}pri-error-page-svg .error-svg-container svg .theme-100{fill:var(--theme-100)}pri-error-page-svg .error-svg-container svg .grey-1{fill:var(--grey-1)}pri-error-page-svg .error-svg-container svg .grey-4{fill:var(--grey-4)}pri-error-page-svg .error-svg-container svg .grey-5{fill:var(--grey-5)}pri-error-page-svg .error-svg-container svg .grey-6{fill:var(--grey-6)}pri-error-page-svg .error-svg-container svg .grey-7{fill:var(--grey-7)}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorPageSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-error-page-svg', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"error-svg-container\\\">\\r\\n\\t<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 520 454\\\">\\r\\n\\t\\t<g id=\\\"illustration\\\" transform=\\\"translate(0 33.736)\\\">\\r\\n\\t\\t\\t<circle cx=\\\"215.752\\\" cy=\\\"215.752\\\" r=\\\"215.752\\\" transform=\\\"translate(39.987 -33.736)\\\" />\\r\\n\\t\\t\\t<g id=\\\"shapes\\\" transform=\\\"translate(0 2.879)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1168.827,945.34a.829.829,0,0,0-1.136-.292l-2.752,1.626-1.626-2.752a.829.829,0,0,0-1.428.844l1.626,2.752-2.753,1.626a.829.829,0,0,0,.844,1.428l2.752-1.626,1.626,2.752a.829.829,0,0,0,1.428-.844l-1.626-2.752,2.752-1.626a.83.83,0,0,0,.292-1.136\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-759.411 -620.803)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#f07014\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1198.232,987.844a3.613,3.613,0,1,1,3.612-3.613,3.617,3.617,0,0,1-3.612,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-781.839 -645.086)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#5eb3e4\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M142,1141.323a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-90.568 -745.534)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#f04747\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1300.04,16.786a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-848.469 -9.561)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#ffc629\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M1481.495,295.162a.829.829,0,0,0-.382,1.109l1.4,2.874-2.874,1.4a.829.829,0,0,0,.726,1.491l2.874-1.4,1.4,2.874a.83.83,0,0,0,1.491-.727l-1.4-2.874,2.874-1.4a.829.829,0,1,0-.727-1.491l-2.874,1.4-1.4-2.874a.831.831,0,0,0-1.109-.383\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-968.07 -196.423)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#78e5d1\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M1327.961,480.651a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-866.742 -313.146)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"theme-100\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M.443,639.7a.829.829,0,0,0-.037,1.172l2.187,2.332L.262,645.395A.829.829,0,1,0,1.4,646.6l2.331-2.187,2.187,2.332a.829.829,0,0,0,1.21-1.135l-2.187-2.332L7.269,641.1a.829.829,0,1,0-1.135-1.21L3.8,642.073l-2.187-2.331A.83.83,0,0,0,.443,639.7\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(0 -421.822)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\td=\\\"M97.486,741.422a3.613,3.613,0,1,1,3.613-3.613,3.617,3.617,0,0,1-3.613,3.613m0-5.295a1.682,1.682,0,1,0,1.682,1.682,1.684,1.684,0,0,0-1.682-1.682\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-61.436 -483.811)\\\"\\r\\n\\t\\t\\t\\t\\tfill=\\\"#ffc629\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\td=\\\"M108.022,749.6a.735.735,0,0,1-.041-1.47c2.425-.136,4.879-.379,7.295-.72a.735.735,0,0,1,.206,1.456c-2.456.347-4.952.593-7.418.732h-.042m-10.343-.032h-.047c-2.47-.154-4.964-.417-7.412-.782a.735.735,0,1,1,.216-1.454c2.407.358,4.859.616,7.287.768a.735.735,0,0,1-.045,1.469m27.841-2.733a.735.735,0,0,1-.186-1.446c2.357-.619,4.713-1.344,7-2.156a.735.735,0,1,1,.492,1.386c-2.329.826-4.725,1.564-7.121,2.193a.729.729,0,0,1-.187.024m-45.318-.17a.737.737,0,0,1-.194-.026c-2.387-.652-4.776-1.414-7.1-2.266a.735.735,0,1,1,.506-1.381c2.286.838,4.635,1.587,6.981,2.228a.735.735,0,0,1-.193,1.445m61.907-6.035a.735.735,0,0,1-.327-1.394c2.181-1.08,4.341-2.267,6.422-3.527a.735.735,0,1,1,.762,1.258c-2.116,1.282-4.313,2.489-6.531,3.587a.73.73,0,0,1-.326.077m-78.436-.34a.734.734,0,0,1-.332-.079c-2.206-1.119-4.393-2.345-6.5-3.647a.735.735,0,0,1,.773-1.251c2.072,1.28,4.223,2.486,6.392,3.586a.736.736,0,0,1-.333,1.391m93.419-9.09a.735.735,0,0,1-.453-1.315c1.916-1.5,3.793-3.1,5.577-4.755a.735.735,0,0,1,1,1.078c-1.814,1.684-3.722,3.311-5.672,4.835a.733.733,0,0,1-.452.156m-108.33-.469a.731.731,0,0,1-.457-.159c-1.939-1.539-3.836-3.179-5.638-4.874a.735.735,0,0,1,1.008-1.071c1.772,1.667,3.637,3.279,5.545,4.793a.735.735,0,0,1-.457,1.311m121.1-11.8a.736.736,0,0,1-.56-1.212c1.577-1.854,3.094-3.8,4.51-5.778a.735.735,0,0,1,1.2.856c-1.439,2.013-2.982,3.99-4.586,5.875a.734.734,0,0,1-.561.259m-133.8-.554a.733.733,0,0,1-.564-.263c-1.592-1.9-3.12-3.885-4.543-5.908a.735.735,0,1,1,1.2-.846c1.4,1.989,2.9,3.943,4.467,5.809a.735.735,0,0,1-.563,1.208m143.856-14.026a.735.735,0,0,1-.644-1.09c1.174-2.133,2.272-4.341,3.262-6.564a.735.735,0,1,1,1.343.6c-1.007,2.26-2.123,4.506-3.317,6.674a.736.736,0,0,1-.645.381m-153.8-.632a.736.736,0,0,1-.648-.387c-1.173-2.179-2.267-4.435-3.251-6.706a.735.735,0,1,1,1.349-.585c.968,2.233,2.043,4.451,3.2,6.593a.735.735,0,0,1-.646,1.084m160.734-15.67a.736.736,0,0,1-.7-.953c.722-2.326,1.352-4.71,1.873-7.085a.735.735,0,1,1,1.436.315c-.53,2.416-1.171,4.841-1.905,7.206a.735.735,0,0,1-.7.518m-167.5-.7a.736.736,0,0,1-.7-.525c-.707-2.364-1.324-4.794-1.834-7.222a.735.735,0,0,1,1.439-.3c.5,2.388,1.108,4.777,1.8,7.1a.737.737,0,0,1-.7.946m171.006-16.673c-.024,0-.048,0-.072,0a.735.735,0,0,1-.661-.8c.235-2.42.369-4.882.4-7.317a.735.735,0,1,1,1.471.018c-.029,2.476-.166,4.979-.4,7.441a.736.736,0,0,1-.731.664m-174.358-.721a.735.735,0,0,1-.731-.669c-.223-2.468-.344-4.973-.358-7.446a.735.735,0,0,1,.731-.739h0a.735.735,0,0,1,.735.731c.014,2.431.132,4.894.352,7.322a.735.735,0,0,1-.666.8l-.067,0m174.268-16.992a.735.735,0,0,1-.73-.657c-.258-2.413-.622-4.853-1.083-7.25l-.018-.093a.735.735,0,0,1,1.444-.28l.018.1c.468,2.438.839,4.918,1.1,7.372a.735.735,0,0,1-.653.809.692.692,0,0,1-.079,0m-174.064-.727a.774.774,0,0,1-.084,0,.735.735,0,0,1-.647-.814c.28-2.459.669-4.936,1.158-7.363a.735.735,0,0,1,1.442.29c-.48,2.386-.863,4.822-1.138,7.24a.736.736,0,0,1-.73.652m170.4-16.7a.735.735,0,0,1-.7-.513c-.738-2.322-1.584-4.637-2.513-6.883a.735.735,0,0,1,1.359-.562c.946,2.284,1.805,4.639,2.556,7a.735.735,0,0,1-.7.958m-166.618-.606a.736.736,0,0,1-.7-.965c.772-2.35,1.654-4.7,2.622-6.977a.735.735,0,1,1,1.354.575c-.952,2.241-1.82,4.549-2.578,6.86a.736.736,0,0,1-.7.506M179.562,619.3a.736.736,0,0,1-.642-.376c-1.191-2.121-2.488-4.218-3.855-6.231a.735.735,0,0,1,1.217-.826c1.391,2.048,2.71,4.18,3.921,6.337a.736.736,0,0,1-.641,1.1M27.193,618.75a.736.736,0,0,1-.638-1.1c1.228-2.148,2.564-4.27,3.968-6.308a.735.735,0,1,1,1.211.834c-1.381,2-2.694,4.092-3.9,6.2a.735.735,0,0,1-.639.37m142.175-13.93a.734.734,0,0,1-.555-.253c-1.595-1.837-3.289-3.628-5.035-5.325a.735.735,0,1,1,1.025-1.054c1.776,1.726,3.5,3.548,5.12,5.415a.735.735,0,0,1-.555,1.218m-131.88-.483a.736.736,0,0,1-.552-1.221c1.634-1.86,3.367-3.672,5.151-5.386a.735.735,0,1,1,1.019,1.06c-1.754,1.686-3.458,3.468-5.065,5.3a.735.735,0,0,1-.553.25M156.463,592.69a.734.734,0,0,1-.447-.151c-1.933-1.48-3.952-2.9-6-4.208a.736.736,0,0,1,.793-1.239c2.084,1.335,4.136,2.774,6.1,4.279a.735.735,0,0,1-.447,1.319m-106-.406a.735.735,0,0,1-.444-1.322c1.975-1.493,4.037-2.919,6.13-4.238a.735.735,0,0,1,.784,1.244c-2.058,1.3-4.086,2.7-6.028,4.167a.731.731,0,0,1-.443.149m90.926-8.895a.733.733,0,0,1-.321-.074c-2.19-1.064-4.452-2.046-6.722-2.921a.735.735,0,1,1,.529-1.372c2.309.889,4.609,1.889,6.836,2.97a.736.736,0,0,1-.322,1.4M65.6,583.1a.735.735,0,0,1-.316-1.4c2.234-1.061,4.543-2.039,6.862-2.907a.736.736,0,0,1,.516,1.378c-2.28.853-4.55,1.815-6.747,2.858a.732.732,0,0,1-.315.071m59.147-5.8a.731.731,0,0,1-.182-.023c-2.359-.6-4.772-1.107-7.173-1.5a.735.735,0,0,1,.24-1.451c2.441.4,4.9.919,7.295,1.53a.735.735,0,0,1-.181,1.448m-42.461-.136a.735.735,0,0,1-.174-1.449c1.461-.358,2.955-.685,4.44-.97.948-.182,1.912-.351,2.865-.5a.735.735,0,0,1,.23,1.453c-.938.149-1.886.315-2.819.494-1.461.281-2.93.6-4.368.954a.748.748,0,0,1-.176.021m24.933-2.462h-.034c-1.288-.058-2.595-.087-3.882-.087-1.143,0-2.3.023-3.446.069a.735.735,0,1,1-.058-1.47c1.163-.046,2.343-.07,3.5-.07,1.31,0,2.638.03,3.948.089a.735.735,0,0,1-.032,1.47\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-9.762 -375.529)\\\" />\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\td=\\\"M739.22,307.693q-.635.041-1.269.077a.735.735,0,0,1-.089-1.468h.006c2.4-.136,4.837-.331,7.237-.58a.735.735,0,1,1,.152,1.463c-2,.208-4.031.379-6.037.509m-11.468.314-.056,0c-2.433-.025-4.9-.108-7.323-.248a.735.735,0,1,1,.085-1.468c2.4.139,4.844.221,7.253.246a.735.735,0,0,1,.041,1.469m27.593-2.207a.735.735,0,0,1-.17-1.459c2.379-.406,4.776-.873,7.124-1.389a.735.735,0,0,1,.315,1.436c-2.371.52-4.79.992-7.192,1.4a.738.738,0,0,1-.077.009m-45.048,1.03a.757.757,0,0,1-.14,0c-2.415-.3-4.853-.668-7.247-1.086a.735.735,0,1,1,.253-1.449c2.371.414,4.786.775,7.177,1.076a.735.735,0,0,1-.043,1.463m62.1-4.944a.735.735,0,0,1-.252-1.44c2.313-.671,4.642-1.408,6.919-2.189a.735.735,0,0,1,.477,1.391c-2.3.788-4.651,1.532-6.987,2.211a.74.74,0,0,1-.158.028m-79.318,1.768a.745.745,0,0,1-.223-.02c-2.365-.578-4.749-1.223-7.088-1.916a.735.735,0,0,1,.417-1.41c2.316.686,4.678,1.324,7.02,1.9a.735.735,0,0,1-.127,1.448m95.812-7.6a.736.736,0,0,1-.332-1.412c2.222-.933,4.451-1.932,6.623-2.969a.735.735,0,0,1,.634,1.327c-2.193,1.047-4.444,2.056-6.687,3a.737.737,0,0,1-.237.056M676.328,298.52a.732.732,0,0,1-.3-.044c-2.281-.846-4.575-1.759-6.817-2.713a.735.735,0,0,1,.576-1.353c2.22.946,4.492,1.85,6.752,2.688a.735.735,0,0,1-.209,1.423m128.265-10.148a.735.735,0,0,1-.408-1.375c2.095-1.178,4.189-2.424,6.225-3.7a.736.736,0,1,1,.782,1.246c-2.056,1.29-4.172,2.547-6.287,3.737a.728.728,0,0,1-.312.093m-144.31,3.133a.729.729,0,0,1-.379-.078c-2.171-1.1-4.345-2.269-6.46-3.471a.735.735,0,1,1,.727-1.279c2.095,1.191,4.248,2.347,6.4,3.438a.735.735,0,0,1-.286,1.39M819.3,278.948a.735.735,0,0,1-.48-1.329c1.948-1.412,3.888-2.889,5.767-4.392a.735.735,0,0,1,.919,1.149c-1.9,1.517-3.856,3.009-5.823,4.434a.734.734,0,0,1-.383.139m-174.158,3.767a.733.733,0,0,1-.452-.12c-2.032-1.34-4.058-2.746-6.022-4.18a.735.735,0,0,1,.867-1.188c1.945,1.419,3.952,2.812,5.964,4.14a.735.735,0,0,1-.358,1.348m187.7-14.815a.735.735,0,0,1-.544-1.276c1.775-1.625,3.536-3.314,5.233-5.023a.735.735,0,0,1,1.043,1.037c-1.714,1.725-3.492,3.431-5.284,5.071a.73.73,0,0,1-.448.191m-201.741,4.368a.734.734,0,0,1-.519-.17c-1.865-1.56-3.718-3.186-5.506-4.832a.735.735,0,0,1,1-1.082c1.772,1.631,3.607,3.241,5.454,4.787a.735.735,0,0,1-.424,1.3m213.951-16.89a.735.735,0,0,1-.6-1.217c1.581-1.817,3.139-3.7,4.633-5.587a.735.735,0,0,1,1.154.912c-1.508,1.908-3.081,3.805-4.677,5.64a.735.735,0,0,1-.507.251M618.353,260.3a.733.733,0,0,1-.581-.227c-1.676-1.761-3.331-3.586-4.92-5.423a.735.735,0,0,1,1.112-.962c1.574,1.82,3.214,3.627,4.873,5.371a.735.735,0,0,1-.485,1.241m237.425-18.753a.735.735,0,0,1-.653-1.151c1.366-1.986,2.7-4.032,3.971-6.078a.735.735,0,0,1,1.25.775c-1.281,2.066-2.63,4.131-4.01,6.137a.735.735,0,0,1-.559.317m-248.736,5.421a.734.734,0,0,1-.635-.291c-1.462-1.938-2.9-3.937-4.268-5.944a.735.735,0,0,1,1.215-.829c1.356,1.988,2.779,3.968,4.227,5.887a.735.735,0,0,1-.539,1.177M864.86,226.585a.735.735,0,0,1-.7-1.079c1.133-2.131,2.229-4.315,3.257-6.493a.735.735,0,1,1,1.33.628c-1.038,2.2-2.144,4.4-3.288,6.555a.735.735,0,0,1-.6.389M597.33,232.44a.735.735,0,0,1-.682-.361c-1.23-2.091-2.427-4.24-3.557-6.388a.735.735,0,0,1,1.3-.685c1.119,2.127,2.3,4.256,3.523,6.327a.736.736,0,0,1-.586,1.107m274.855-21.757a.736.736,0,0,1-.731-1c.883-2.247,1.722-4.543,2.5-6.826a.735.735,0,1,1,1.393.472c-.781,2.3-1.628,4.623-2.52,6.892a.735.735,0,0,1-.637.465m-282.842,6.21a.735.735,0,0,1-.72-.436c-.985-2.223-1.929-4.5-2.807-6.769a.735.735,0,0,1,1.372-.531c.869,2.247,1.8,4.5,2.78,6.7a.735.735,0,0,1-.374.97.726.726,0,0,1-.25.061m288.3-22.852a.735.735,0,0,1-.758-.923c.62-2.334,1.191-4.714,1.7-7.072a.735.735,0,0,1,1.438.309c-.511,2.381-1.088,4.784-1.714,7.141a.736.736,0,0,1-.663.545m-294.46,6.477a.735.735,0,0,1-.749-.515c-.723-2.321-1.4-4.691-2.013-7.046a.735.735,0,0,1,1.424-.37c.607,2.332,1.277,4.68,1.993,6.978a.736.736,0,0,1-.655.953m297.974-23.631a.748.748,0,0,1-.154-.006.736.736,0,0,1-.622-.834c.347-2.382.64-4.806.872-7.2a.735.735,0,1,1,1.463.142c-.234,2.422-.53,4.869-.88,7.275a.735.735,0,0,1-.679.628m-302.217,6.66a.736.736,0,0,1-.769-.6c-.454-2.386-.859-4.818-1.2-7.23a.735.735,0,0,1,1.456-.207c.34,2.389.74,4.8,1.19,7.161a.735.735,0,0,1-.585.86.753.753,0,0,1-.091.012m303.736-24.088a.681.681,0,0,1-.07,0,.735.735,0,0,1-.713-.757c.071-2.407.085-4.849.042-7.258a.735.735,0,0,1,1.47-.027c.044,2.432.03,4.9-.042,7.327a.735.735,0,0,1-.687.712M576.644,166.2a.735.735,0,0,1-.781-.678q-.065-.859-.121-1.717c-.12-1.858-.208-3.742-.261-5.6a.735.735,0,1,1,1.47-.042c.052,1.841.139,3.707.258,5.548q.055.85.119,1.7a.735.735,0,0,1-.678.789h-.008M882.2,141.969a.736.736,0,0,1-.78-.672c-.2-2.4-.464-4.825-.78-7.219l-.03-.233a.735.735,0,0,1,1.458-.194l.031.236c.318,2.415.583,4.867.787,7.286a.735.735,0,0,1-.671.794H882.2m-305.884,6.738c-.025,0-.051,0-.077,0a.735.735,0,0,1-.707-.763c.093-2.431.246-4.892.455-7.314a.735.735,0,0,1,1.465.126c-.207,2.4-.358,4.836-.451,7.243a.736.736,0,0,1-.686.706M879.7,124.411a.736.736,0,0,1-.768-.589c-.474-2.363-1.012-4.745-1.6-7.08a.735.735,0,0,1,1.427-.358c.591,2.357,1.133,4.762,1.612,7.148a.735.735,0,0,1-.576.866.745.745,0,0,1-.1.013m-301.719,6.88a.718.718,0,0,1-.16-.007.735.735,0,0,1-.614-.839c.372-2.409.808-4.843,1.295-7.232a.735.735,0,0,1,1.441.294c-.483,2.366-.914,4.776-1.283,7.162a.735.735,0,0,1-.679.622m297.3-23.807a.736.736,0,0,1-.747-.508c-.74-2.293-1.546-4.6-2.394-6.851a.735.735,0,1,1,1.376-.518c.857,2.275,1.67,4.6,2.418,6.918a.737.737,0,0,1-.653.96m-293.638,6.669a.735.735,0,0,1-.756-.929c.646-2.348,1.358-4.713,2.116-7.029a.735.735,0,0,1,1.4.457c-.751,2.294-1.456,4.636-2.1,6.962a.736.736,0,0,1-.662.539M868.968,91.171a.735.735,0,0,1-.717-.429c-1-2.193-2.063-4.39-3.165-6.532a.735.735,0,1,1,1.308-.673c1.112,2.162,2.188,4.381,3.2,6.595a.736.736,0,0,1-.622,1.039m-281.71,6.387a.735.735,0,0,1-.729-1.009c.91-2.257,1.887-4.524,2.9-6.737a.735.735,0,1,1,1.336.614c-1.008,2.192-1.975,4.437-2.877,6.672a.735.735,0,0,1-.635.459M860.821,75.7a.735.735,0,0,1-.678-.355c-1.24-2.059-2.548-4.116-3.886-6.115a.735.735,0,0,1,1.222-.818c1.351,2.018,2.671,4.1,3.923,6.174a.735.735,0,0,1-.582,1.113m-266.1,6.016a.735.735,0,0,1-.693-1.085c1.16-2.137,2.389-4.277,3.651-6.359a.735.735,0,1,1,1.257.762c-1.249,2.062-2.466,4.181-3.616,6.3a.736.736,0,0,1-.6.383m256.24-20.444a.733.733,0,0,1-.631-.285c-1.47-1.907-3-3.8-4.562-5.635a.735.735,0,0,1,1.121-.952c1.572,1.851,3.122,3.765,4.606,5.69a.735.735,0,0,1-.534,1.183M603.935,66.838a.735.735,0,0,1-.649-1.156c1.4-1.992,2.858-3.977,4.346-5.9a.735.735,0,1,1,1.163.9c-1.474,1.906-2.922,3.872-4.3,5.845a.734.734,0,0,1-.555.312M839.515,48.06a.733.733,0,0,1-.575-.221c-1.677-1.727-3.418-3.437-5.175-5.083a.735.735,0,1,1,1.005-1.073c1.774,1.662,3.532,3.388,5.226,5.132a.735.735,0,0,1-.48,1.246M614.772,53.1a.735.735,0,0,1-.6-1.221c1.612-1.821,3.289-3.627,4.984-5.368a.735.735,0,0,1,1.054,1.026c-1.679,1.725-3.341,3.514-4.937,5.317a.733.733,0,0,1-.5.246M826.637,36.223a.731.731,0,0,1-.513-.165c-1.862-1.526-3.787-3.029-5.721-4.466a.735.735,0,1,1,.877-1.18c1.952,1.451,3.9,2.968,5.776,4.509a.735.735,0,0,1-.418,1.3M627.091,40.685a.735.735,0,0,1-.54-1.281c1.807-1.625,3.677-3.228,5.558-4.765a.735.735,0,1,1,.931,1.139c-1.863,1.522-3.716,3.11-5.505,4.72a.734.734,0,0,1-.444.187m185.4-14.767a.73.73,0,0,1-.445-.116c-2.025-1.306-4.109-2.582-6.194-3.791a.735.735,0,0,1,.738-1.272c2.105,1.221,4.209,2.509,6.253,3.827a.735.735,0,0,1-.352,1.352M640.736,29.755a.735.735,0,0,1-.474-1.333c1.979-1.408,4.018-2.786,6.061-4.1a.735.735,0,0,1,.794,1.238c-2.023,1.3-4.043,2.664-6,4.058a.731.731,0,0,1-.378.135M797.27,17.281a.727.727,0,0,1-.372-.075c-2.161-1.068-4.378-2.1-6.587-3.064a.735.735,0,0,1,.588-1.348c2.232.974,4.469,2.015,6.651,3.094a.735.735,0,0,1-.279,1.393M655.53,20.46a.736.736,0,0,1-.4-1.378c2.13-1.174,4.318-2.312,6.5-3.382a.735.735,0,1,1,.647,1.321c-2.163,1.06-4.329,2.187-6.439,3.349a.735.735,0,0,1-.307.09M781.155,10.43a.726.726,0,0,1-.3-.042c-2.272-.815-4.593-1.587-6.9-2.292a.735.735,0,0,1,.43-1.406c2.329.712,4.672,1.491,6.966,2.314a.735.735,0,0,1-.2,1.426M671.313,12.913a.736.736,0,0,1-.326-1.415c2.25-.921,4.553-1.8,6.847-2.613a.735.735,0,0,1,.491,1.386c-2.271.8-4.553,1.675-6.781,2.587a.739.739,0,0,1-.231.054m93.043-7.446a.724.724,0,0,1-.215-.018c-2.351-.55-4.747-1.049-7.121-1.485a.735.735,0,0,1,.266-1.446c2.4.44,4.816.945,7.19,1.5a.735.735,0,0,1-.12,1.45m-76.5,1.759a.735.735,0,0,1-.246-1.442c2.339-.657,4.728-1.266,7.1-1.812a.735.735,0,0,1,.33,1.433c-2.349.54-4.715,1.144-7.032,1.8a.733.733,0,0,1-.152.026M747.1,2.468a.744.744,0,0,1-.133,0c-2.392-.275-4.824-.5-7.228-.656a.735.735,0,1,1,.1-1.467c2.428.162,4.883.385,7.3.663a.735.735,0,0,1-.036,1.464m-42.164.994A.735.735,0,0,1,704.776,2c1.5-.242,3.02-.465,4.528-.664.907-.12,1.827-.233,2.733-.336a.735.735,0,1,1,.167,1.461c-.9.1-1.808.214-2.707.333-1.494.2-3,.418-4.486.658-.024,0-.048.007-.071.008m24.7-1.993-.048,0c-2.406,0-4.847.059-7.255.173a.735.735,0,0,1-.083-1.468h.013C724.7.06,727.16,0,729.589,0a.735.735,0,0,1,.048,1.469\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-376.633 -0.425)\\\" />\\r\\n\\t\\t\\t<path\\r\\n\\t\\t\\t\\tclass=\\\"grey-1\\\"\\r\\n\\t\\t\\t\\td=\\\"M634.127,131.438V384.417h-.664L614.31,365.78l-19.154,18.637h-1.995L574.008,365.78l-19.156,18.637h-1.968l-19.121-18.6-19.119,18.6h-1.958l-19.141-18.623L474.4,384.417h-2.019l-19.141-18.623L434.1,384.417h-2L413,365.829l-19.1,18.588h-1.262V61.13H563.819Z\\\"\\r\\n\\t\\t\\t\\ttransform=\\\"translate(-256.967 -40.432)\\\" />\\r\\n\\t\\t\\t<path class=\\\"grey-4\\\" d=\\\"M958.363,131.439H888.054V61.13Z\\\" transform=\\\"translate(-581.202 -40.432)\\\" />\\r\\n\\t\\t\\t<g id=\\\"search\\\" transform=\\\"translate(109.593 273.301)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M603.423,1078.229h0a8.536,8.536,0,0,1-12.046,0l-51.716-51.564-6.571-6.552a42.416,42.416,0,0,0,12.045-12.011l58.289,58.116a8.473,8.473,0,0,1,0,12.009\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-458.483 -933.718)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-7\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M552.718,1015.684l13.476,13.438a42.427,42.427,0,0,1-12.044,12.01h0l-6.905-6.886-6.571-6.552a42.413,42.413,0,0,0,12.045-12.01\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-463.447 -938.687)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-6\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M419.873,841.2a51.313,51.313,0,0,0-51.326-49.014A51.255,51.255,0,0,0,317.5,849.2a50.719,50.719,0,0,0,4.916,16.769v0a51.445,51.445,0,0,0,15.672,18.685q1.611,1.186,3.319,2.248a51.531,51.531,0,0,0,56.945-1.771s0,0,0,0A51.577,51.577,0,0,0,410.4,873.125v0h0a50.887,50.887,0,0,0,9.522-29.715q0-1.111-.047-2.209m-51.326,44.318a42.084,42.084,0,1,1,42.235-42.109q0,.962-.044,1.913a41.808,41.808,0,0,1-6.913,21.25,42.435,42.435,0,0,1-12.045,12.011q-1.761,1.157-3.641,2.141a42.191,42.191,0,0,1-19.592,4.794\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-317.173 -792.185)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-4\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-4\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M365.823,877.347a3.939,3.939,0,0,1-3.944-3.933A36.572,36.572,0,0,1,398.506,836.9a3.932,3.932,0,1,1,0,7.865,28.7,28.7,0,0,0-28.738,28.653,3.939,3.939,0,0,1-3.944,3.933\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(-346.431 -821.493)\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t\\t<g id=\\\"face\\\" transform=\\\"translate(218.11 127.236)\\\">\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H18.228a3.95,3.95,0,0,1,3.95,3.95V18.228a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,18.228V3.95A3.95,3.95,0,0,1,3.95,0Z\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H18.228a3.95,3.95,0,0,1,3.95,3.95V18.228a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,18.228V3.95A3.95,3.95,0,0,1,3.95,0Z\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"translate(60.246)\\\" />\\r\\n\\t\\t\\t\\t<path\\r\\n\\t\\t\\t\\t\\tclass=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\tdata-name=\\\"grey-5\\\"\\r\\n\\t\\t\\t\\t\\td=\\\"M3.95,0H75.323a3.95,3.95,0,0,1,3.95,3.95v8.379a3.95,3.95,0,0,1-3.95,3.95H3.95A3.95,3.95,0,0,1,0,12.328V3.95A3.95,3.95,0,0,1,3.95,0Z\\\"\\r\\n\\t\\t\\t\\t\\ttransform=\\\"matrix(0.926, -0.378, 0.378, 0.926, 4.929, 90.575)\\\" />\\r\\n\\t\\t\\t</g>\\r\\n\\t\\t</g>\\r\\n\\t</svg>\\r\\n</div>\\r\\n\", styles: [\"pri-error-page-svg{width:100%;height:100%}pri-error-page-svg .error-svg-container{width:520px;height:454px}pri-error-page-svg .error-svg-container svg{width:100%;height:100%}pri-error-page-svg .error-svg-container svg circle{fill:var(--grey-3)}pri-error-page-svg .error-svg-container svg .theme-100{fill:var(--theme-100)}pri-error-page-svg .error-svg-container svg .grey-1{fill:var(--grey-1)}pri-error-page-svg .error-svg-container svg .grey-4{fill:var(--grey-4)}pri-error-page-svg .error-svg-container svg .grey-5{fill:var(--grey-5)}pri-error-page-svg .error-svg-container svg .grey-6{fill:var(--grey-6)}pri-error-page-svg .error-svg-container svg .grey-7{fill:var(--grey-7)}\\n\"] }]\r\n        }] });\n\nclass PriErrorComponent {\r\n    constructor(amsService, location, routeHelperService, storageService, broadcastService, shellStateService) {\r\n        this.amsService = amsService;\r\n        this.location = location;\r\n        this.routeHelperService = routeHelperService;\r\n        this.storageService = storageService;\r\n        this.broadcastService = broadcastService;\r\n        this.shellStateService = shellStateService;\r\n        this.showDetails = false;\r\n        this.useSVG = false;\r\n        this.errorDetailStorageKey = 'error-state';\r\n    }\r\n    ngOnInit() {\r\n        this.getErrorInfo();\r\n        this.shellStateService.setLoadingState(false);\r\n    }\r\n    getErrorInfo() {\r\n        const routeState = this.location.getState();\r\n        this.errorState = routeState?.message\r\n            ? routeState\r\n            : JSON.parse(this.storageService.sessionGet(this.errorDetailStorageKey));\r\n        if (!this.errorState) {\r\n            this.goToSubscriptionsPage();\r\n            return;\r\n        }\r\n        this.broadcastService.emit('hasErrorInLoading', true);\r\n        //Auto show details if has error in subscription\r\n        this.showDetails = this.errorState.canGoToSubscriptionsPage;\r\n    }\r\n    clearErrorFromStorage() {\r\n        this.broadcastService.emit('hasErrorInLoading', false);\r\n        this.storageService.sessionRemove(this.errorDetailStorageKey);\r\n    }\r\n    goToPreviousPage() {\r\n        this.clearErrorFromStorage();\r\n        this.routeHelperService.navigateBack();\r\n    }\r\n    goToSubscriptionsPage() {\r\n        this.clearErrorFromStorage();\r\n        this.amsService.redirectToSetAccountAndSubscriptionPage();\r\n    }\r\n    goHome() {\r\n        this.clearErrorFromStorage();\r\n        this.broadcastService.emit('navigateToHomePage');\r\n    }\r\n    isLangAssetError() {\r\n        return this.errorState?.errorType === 'loadingLangAsset';\r\n    }\r\n    onImgLoadError() {\r\n        this.useSVG = true;\r\n    }\r\n}\r\nPriErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriErrorComponent, deps: [{ token: i1$2.AmsService }, { token: i1$1.Location }, { token: i1$2.RouteHelperService }, { token: i1$2.StorageService }, { token: i1$2.BroadcastService }, { token: i1$2.ShellStateService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriErrorComponent, selector: \"pri-error-component\", ngImport: i0, template: \"<div class=\\\"error-container\\\" [ngClass]=\\\"{ 'has-error-in-css': errorState.errorType === 'loadingStyle' }\\\">\\r\\n\\t<div class=\\\"body\\\">\\r\\n\\t\\t<div class=\\\"information col-6\\\">\\r\\n\\t\\t\\t<div class=\\\"title\\\">\\r\\n\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t? 'It seems we lost our way...'\\r\\n\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Title' | priI18n)\\r\\n\\t\\t\\t\\t}}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"additional-info\\\">\\r\\n\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t? \\\"Sorry, we will solve this issue as soon as possible. For now, let's find a path out of here?\\\"\\r\\n\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Message' | priI18n)\\r\\n\\t\\t\\t\\t}}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"actions-container\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"errorState.canBackToPreviousPage\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"action go-back-button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"goToPreviousPage()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Back to previous page'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Back_To_Previous' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"errorState.canGoToSubscriptionsPage && amsService.account && amsService.subscription\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"action go-to-subscriptions-button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"goToSubscriptionsPage()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Go to subscriptions'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Go_To_Subscriptions_Page' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button *ngIf=\\\"errorState.canBackToHome\\\" class=\\\"action go-home-button\\\" (click)=\\\"goHome()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Back to home page'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Back_To_Home' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"more-info\\\" *ngIf=\\\"errorState.message\\\">\\r\\n\\t\\t\\t\\t<button class=\\\"more-info-button\\\" (click)=\\\"showDetails = !showDetails\\\">\\r\\n\\t\\t\\t\\t\\t<span class=\\\"more-info-button-label\\\">{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError() ? 'More info' : ('components.components.RES_Error_More_Info' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}</span>\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"ti-ux-chevron-down more-info-button-icon\\\"\\r\\n\\t\\t\\t\\t\\t\\t[@rotate]=\\\"showDetails ? 'rotated' : 'initial'\\\"></i>\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tid=\\\"more-info-wrapper\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"more-info-text-wrapper\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'more-info-text-show': showDetails }\\\">\\r\\n\\t\\t\\t\\t\\t<small>{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Error on load language files from server.'\\r\\n\\t\\t\\t\\t\\t\\t\\t: (errorState.message | priI18n)\\r\\n\\t\\t\\t\\t\\t}}</small>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"image-wrapper col-6\\\">\\r\\n\\t\\t\\t<img *ngIf=\\\"!useSVG\\\" src=\\\"/assets/images/product_error_background.png\\\" (error)=\\\"onImgLoadError()\\\" />\\r\\n\\t\\t\\t<pri-error-page-svg *ngIf=\\\"useSVG\\\"></pri-error-page-svg>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-error-component .error-container{position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:99999}pri-error-component .error-container.has-error-in-css{background-color:#fff}pri-error-component .error-container.has-error-in-css .title{font:700 32px/38px Roboto,pollen,sans-serif;color:#393f4d}pri-error-component .error-container.has-error-in-css .message{color:#7a8193}pri-error-component .error-container.has-error-in-css .additional-info{color:#7a8193}pri-error-component .error-container.has-error-in-css .more-info-button{color:#0064ff!important}pri-error-component .error-container.has-error-in-css .more-info-text-wrapper{background:#f5f6f8;color:#7a8193}pri-error-component .error-container.has-error-in-css .go-back-button,pri-error-component .error-container.has-error-in-css .go-to-subscriptions-button{background-color:#4019ce;color:#fff}pri-error-component .error-container.has-error-in-css .go-home-button{background-color:#edeff5;color:#393f4d;border:1px solid #393f4d!important}pri-error-component .error-container:not(.has-error-in-css){background-color:var(--grey-3)}pri-error-component .error-container:not(.has-error-in-css) .title{font:700 32px/38px Roboto,sans-serif,pollen;color:var(--grey-8)}pri-error-component .error-container:not(.has-error-in-css) .message{color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .additional-info{color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .more-info-button{color:var(--info-100)!important}pri-error-component .error-container:not(.has-error-in-css) .more-info-text-wrapper{background:var(--grey-2);color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .go-back-button,pri-error-component .error-container:not(.has-error-in-css) .go-to-subscriptions-button{background-color:var(--theme-100);color:#fff}pri-error-component .error-container:not(.has-error-in-css) .go-home-button{background-color:var(--grey-3);color:var(--grey-8);border:1px solid var(--grey-8)!important}pri-error-component .error-container .body{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;min-height:100%;overflow:hidden;padding:40px}pri-error-component .error-container .body .title{letter-spacing:0px;opacity:1}pri-error-component .error-container .body .message{font-weight:700;letter-spacing:.15px;margin-top:30px}pri-error-component .error-container .body .additional-info{letter-spacing:.15px;margin-top:20px}pri-error-component .error-container .body .information{width:560px;margin-right:5%;position:relative;overflow:hidden}pri-error-component .error-container .body .image-wrapper{display:flex;align-items:center;justify-content:center;overflow:hidden;max-width:100%;max-height:100%}pri-error-component .error-container .body .image-wrapper pri-error-page-svg .error-svg-container{width:100%}pri-error-component .error-container .body .image-wrapper img{max-width:500px}pri-error-component .error-container .body .actions-container{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:36px}pri-error-component .error-container .body .actions-container .action{display:inline-block;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;user-select:none;border:2px solid transparent;padding:.25rem 1.5rem;font-size:1rem;line-height:1.5;border-radius:1.55rem;cursor:pointer;margin-bottom:10px}pri-error-component .error-container .body .more-info-button{padding:unset;border:none;background:transparent;display:flex;gap:8px;align-items:center;margin:30px 0 4px}pri-error-component .error-container .body .more-info-button-icon{font-size:.8rem!important;font-weight:800!important}pri-error-component .error-container .body .more-info-button-label{font-size:.9rem!important;font-weight:500!important}pri-error-component .error-container .body .more-info-text-wrapper{padding:16px;word-wrap:break-word;max-width:100%;opacity:0}pri-error-component .error-container .body .more-info-text-wrapper.more-info-text-show{opacity:1}@media only screen and (max-width: 991px){pri-error-component .error-container .body{flex-direction:column-reverse;padding:20px}pri-error-component .error-container .body .information{margin-right:0;margin-top:20px;width:100%}pri-error-component .error-container .body .image-wrapper{max-width:100%;max-height:40%}pri-error-component .error-container .body .image-wrapper img{max-width:100%;max-height:100%}pri-error-component .error-container .body .image-wrapper pri-error-page-svg .error-svg-container{height:100%}}@media only screen and (min-width: 992px){pri-error-component .error-container .body .information{width:480px}}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: ErrorPageSvgComponent, selector: \"pri-error-page-svg\" }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('rotate', [\r\n            state('initial', style({\r\n                transform: 'rotate(0deg)'\r\n            })),\r\n            state('rotated', style({\r\n                transform: 'rotate(180deg)'\r\n            })),\r\n            transition('initial => rotated', [animate('0.2s')]),\r\n            transition('rotated => initial', [animate('0.2s')])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriErrorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-error-component', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('rotate', [\r\n                            state('initial', style({\r\n                                transform: 'rotate(0deg)'\r\n                            })),\r\n                            state('rotated', style({\r\n                                transform: 'rotate(180deg)'\r\n                            })),\r\n                            transition('initial => rotated', [animate('0.2s')]),\r\n                            transition('rotated => initial', [animate('0.2s')])\r\n                        ])\r\n                    ], template: \"<div class=\\\"error-container\\\" [ngClass]=\\\"{ 'has-error-in-css': errorState.errorType === 'loadingStyle' }\\\">\\r\\n\\t<div class=\\\"body\\\">\\r\\n\\t\\t<div class=\\\"information col-6\\\">\\r\\n\\t\\t\\t<div class=\\\"title\\\">\\r\\n\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t? 'It seems we lost our way...'\\r\\n\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Title' | priI18n)\\r\\n\\t\\t\\t\\t}}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"additional-info\\\">\\r\\n\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t? \\\"Sorry, we will solve this issue as soon as possible. For now, let's find a path out of here?\\\"\\r\\n\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Message' | priI18n)\\r\\n\\t\\t\\t\\t}}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"actions-container\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"errorState.canBackToPreviousPage\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"action go-back-button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"goToPreviousPage()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Back to previous page'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Back_To_Previous' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"errorState.canGoToSubscriptionsPage && amsService.account && amsService.subscription\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"action go-to-subscriptions-button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"goToSubscriptionsPage()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Go to subscriptions'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Go_To_Subscriptions_Page' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button *ngIf=\\\"errorState.canBackToHome\\\" class=\\\"action go-home-button\\\" (click)=\\\"goHome()\\\">\\r\\n\\t\\t\\t\\t\\t{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Back to home page'\\r\\n\\t\\t\\t\\t\\t\\t\\t: ('components.components.RES_Error_Back_To_Home' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"more-info\\\" *ngIf=\\\"errorState.message\\\">\\r\\n\\t\\t\\t\\t<button class=\\\"more-info-button\\\" (click)=\\\"showDetails = !showDetails\\\">\\r\\n\\t\\t\\t\\t\\t<span class=\\\"more-info-button-label\\\">{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError() ? 'More info' : ('components.components.RES_Error_More_Info' | priI18n)\\r\\n\\t\\t\\t\\t\\t}}</span>\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"ti-ux-chevron-down more-info-button-icon\\\"\\r\\n\\t\\t\\t\\t\\t\\t[@rotate]=\\\"showDetails ? 'rotated' : 'initial'\\\"></i>\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tid=\\\"more-info-wrapper\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"more-info-text-wrapper\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'more-info-text-show': showDetails }\\\">\\r\\n\\t\\t\\t\\t\\t<small>{{\\r\\n\\t\\t\\t\\t\\t\\tisLangAssetError()\\r\\n\\t\\t\\t\\t\\t\\t\\t? 'Error on load language files from server.'\\r\\n\\t\\t\\t\\t\\t\\t\\t: (errorState.message | priI18n)\\r\\n\\t\\t\\t\\t\\t}}</small>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"image-wrapper col-6\\\">\\r\\n\\t\\t\\t<img *ngIf=\\\"!useSVG\\\" src=\\\"/assets/images/product_error_background.png\\\" (error)=\\\"onImgLoadError()\\\" />\\r\\n\\t\\t\\t<pri-error-page-svg *ngIf=\\\"useSVG\\\"></pri-error-page-svg>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-error-component .error-container{position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:99999}pri-error-component .error-container.has-error-in-css{background-color:#fff}pri-error-component .error-container.has-error-in-css .title{font:700 32px/38px Roboto,pollen,sans-serif;color:#393f4d}pri-error-component .error-container.has-error-in-css .message{color:#7a8193}pri-error-component .error-container.has-error-in-css .additional-info{color:#7a8193}pri-error-component .error-container.has-error-in-css .more-info-button{color:#0064ff!important}pri-error-component .error-container.has-error-in-css .more-info-text-wrapper{background:#f5f6f8;color:#7a8193}pri-error-component .error-container.has-error-in-css .go-back-button,pri-error-component .error-container.has-error-in-css .go-to-subscriptions-button{background-color:#4019ce;color:#fff}pri-error-component .error-container.has-error-in-css .go-home-button{background-color:#edeff5;color:#393f4d;border:1px solid #393f4d!important}pri-error-component .error-container:not(.has-error-in-css){background-color:var(--grey-3)}pri-error-component .error-container:not(.has-error-in-css) .title{font:700 32px/38px Roboto,sans-serif,pollen;color:var(--grey-8)}pri-error-component .error-container:not(.has-error-in-css) .message{color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .additional-info{color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .more-info-button{color:var(--info-100)!important}pri-error-component .error-container:not(.has-error-in-css) .more-info-text-wrapper{background:var(--grey-2);color:var(--grey-7)}pri-error-component .error-container:not(.has-error-in-css) .go-back-button,pri-error-component .error-container:not(.has-error-in-css) .go-to-subscriptions-button{background-color:var(--theme-100);color:#fff}pri-error-component .error-container:not(.has-error-in-css) .go-home-button{background-color:var(--grey-3);color:var(--grey-8);border:1px solid var(--grey-8)!important}pri-error-component .error-container .body{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;min-height:100%;overflow:hidden;padding:40px}pri-error-component .error-container .body .title{letter-spacing:0px;opacity:1}pri-error-component .error-container .body .message{font-weight:700;letter-spacing:.15px;margin-top:30px}pri-error-component .error-container .body .additional-info{letter-spacing:.15px;margin-top:20px}pri-error-component .error-container .body .information{width:560px;margin-right:5%;position:relative;overflow:hidden}pri-error-component .error-container .body .image-wrapper{display:flex;align-items:center;justify-content:center;overflow:hidden;max-width:100%;max-height:100%}pri-error-component .error-container .body .image-wrapper pri-error-page-svg .error-svg-container{width:100%}pri-error-component .error-container .body .image-wrapper img{max-width:500px}pri-error-component .error-container .body .actions-container{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:36px}pri-error-component .error-container .body .actions-container .action{display:inline-block;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;user-select:none;border:2px solid transparent;padding:.25rem 1.5rem;font-size:1rem;line-height:1.5;border-radius:1.55rem;cursor:pointer;margin-bottom:10px}pri-error-component .error-container .body .more-info-button{padding:unset;border:none;background:transparent;display:flex;gap:8px;align-items:center;margin:30px 0 4px}pri-error-component .error-container .body .more-info-button-icon{font-size:.8rem!important;font-weight:800!important}pri-error-component .error-container .body .more-info-button-label{font-size:.9rem!important;font-weight:500!important}pri-error-component .error-container .body .more-info-text-wrapper{padding:16px;word-wrap:break-word;max-width:100%;opacity:0}pri-error-component .error-container .body .more-info-text-wrapper.more-info-text-show{opacity:1}@media only screen and (max-width: 991px){pri-error-component .error-container .body{flex-direction:column-reverse;padding:20px}pri-error-component .error-container .body .information{margin-right:0;margin-top:20px;width:100%}pri-error-component .error-container .body .image-wrapper{max-width:100%;max-height:40%}pri-error-component .error-container .body .image-wrapper img{max-width:100%;max-height:100%}pri-error-component .error-container .body .image-wrapper pri-error-page-svg .error-svg-container{height:100%}}@media only screen and (min-width: 992px){pri-error-component .error-container .body .information{width:480px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AmsService }, { type: i1$1.Location }, { type: i1$2.RouteHelperService }, { type: i1$2.StorageService }, { type: i1$2.BroadcastService }, { type: i1$2.ShellStateService }]; } });\n\nclass FormFooterActionsComponent {\r\n    constructor() {\r\n        this.isLoading$ = new BehaviorSubject(false);\r\n    }\r\n    set isLoading(value) {\r\n        this.isLoading$.next(value);\r\n    }\r\n}\r\nFormFooterActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormFooterActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nFormFooterActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormFooterActionsComponent, isStandalone: true, selector: \"pri-form-footer-actions\", inputs: { isLoading: \"isLoading\" }, ngImport: i0, template: \"<div class=\\\"form-actions-container actions-wrapper\\\">\\r\\n\\t<div class=\\\"col-6 left-actions-container\\\">\\r\\n\\t\\t<ng-content select=\\\"[leftSideAction]\\\"></ng-content>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"col-6 right-actions-container\\\">\\r\\n\\t\\t<pri-loading-spinner rightSideLoading *ngIf=\\\"isLoading$ | async\\\" class=\\\"px-2\\\"></pri-loading-spinner>\\r\\n\\t\\t<ng-content select=\\\"[rightSideAction]\\\"></ng-content>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".form-actions-container{display:flex;flex-direction:row;position:fixed;left:280px;background-color:var(--grey-3);margin:0 28px;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);transition:all .2s ease;padding:4px 0}.form-actions-container .left-actions-container{display:flex;gap:5px;justify-content:flex-start;align-items:center}.form-actions-container .right-actions-container{display:flex;gap:5px;justify-content:flex-end;align-items:center}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormFooterActionsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-form-footer-actions', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, LoadingSpinnerComponent], template: \"<div class=\\\"form-actions-container actions-wrapper\\\">\\r\\n\\t<div class=\\\"col-6 left-actions-container\\\">\\r\\n\\t\\t<ng-content select=\\\"[leftSideAction]\\\"></ng-content>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"col-6 right-actions-container\\\">\\r\\n\\t\\t<pri-loading-spinner rightSideLoading *ngIf=\\\"isLoading$ | async\\\" class=\\\"px-2\\\"></pri-loading-spinner>\\r\\n\\t\\t<ng-content select=\\\"[rightSideAction]\\\"></ng-content>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".form-actions-container{display:flex;flex-direction:row;position:fixed;left:280px;background-color:var(--grey-3);margin:0 28px;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);transition:all .2s ease;padding:4px 0}.form-actions-container .left-actions-container{display:flex;gap:5px;justify-content:flex-start;align-items:center}.form-actions-container .right-actions-container{display:flex;gap:5px;justify-content:flex-end;align-items:center}\\n\"] }]\r\n        }], propDecorators: { isLoading: [{\r\n                type: Input\r\n            }] } });\n\nvar ExternalScripts;\r\n(function (ExternalScripts) {\r\n    ExternalScripts[ExternalScripts[\"tinymce\"] = 0] = \"tinymce\";\r\n})(ExternalScripts || (ExternalScripts = {}));\r\nconst EXTERNAL_SCRIPTS = [\r\n    { name: ExternalScripts[ExternalScripts.tinymce], src: 'assets/tinymce/tinymce.min.js' }\r\n];\n\nconst getTinymce = () => {\r\n    const w = window;\r\n    return w && w.tinymce ? w.tinymce : null;\r\n};\n\nconst HTML_EDITOR_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(() => HtmlEditorFieldComponent),\r\n    multi: true\r\n};\r\nclass HtmlEditorFieldComponent {\r\n    /**\r\n     * Creates an instance of html editor field.\r\n     *\r\n     * @param _renderer from Renderer2\r\n     * @param elementRef from ElementRef\r\n     */\r\n    constructor(elementRef, externalScriptsService, broadcastService) {\r\n        this.elementRef = elementRef;\r\n        this.externalScriptsService = externalScriptsService;\r\n        this.broadcastService = broadcastService;\r\n        this.content = '';\r\n        this.hasChanges = false;\r\n        this.hidden$ = new BehaviorSubject(true);\r\n        this.destroy$ = new Subject();\r\n        this.scriptLoaded = new Subject();\r\n        this.isDisabled$ = new BehaviorSubject(false);\r\n        this.defaultCulture = 'en-US';\r\n        this.toolbarOptions = 'fontselect styleselect | bold italic underline strikethrough | ' +\r\n            'alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | undo redo';\r\n        this.onChange = (_) => { };\r\n        this.onTouched = () => { };\r\n    }\r\n    set isDisabled(value) {\r\n        this.setDisabledState(value);\r\n    }\r\n    get isDisabled() {\r\n        return this.isDisabled$.getValue();\r\n    }\r\n    ngOnInit() {\r\n        // subscribe to theme change and setup style\r\n        this.unsubscribeThemeChange = this.broadcastService.subscribe('theme_changed', () => {\r\n            this.setupStyle();\r\n        });\r\n        // add subscription to scriptLoaded subject and initialize the editor\r\n        this.scriptLoaded.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            const editorConfig = this.editorDefaultConfig();\r\n            getTinymce()\r\n                .init(editorConfig)\r\n                .then(() => {\r\n                this.setEditorDisabledState();\r\n            });\r\n        });\r\n        // add subscription to isDisabled subject, initialize the editor and set the contenteditable attribute\r\n        this.isDisabled$.pipe(takeUntil(this.destroy$)).subscribe((disabled) => {\r\n            this.setEditorDisabledState();\r\n        });\r\n        // ensure tinyMCE script is loaded\r\n        this.externalScriptsService\r\n            .load(EXTERNAL_SCRIPTS[ExternalScripts.tinymce].name)\r\n            .then(() => {\r\n            this.scriptLoaded.next();\r\n        })\r\n            .catch((error) => console.log(error));\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.tinyMceEditor) {\r\n            this.tinyMceEditor.destroy(false);\r\n            this.tinyMceEditor = undefined;\r\n        }\r\n        if (this.unsubscribeThemeChange) {\r\n            this.unsubscribeThemeChange();\r\n            this.unsubscribeThemeChange = null;\r\n        }\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    writeValue(value) {\r\n        // reset the value if editor is initialized\r\n        if (this.tinyMceEditor?.initialized && !value) {\r\n            this.tinyMceEditor.setContent('');\r\n        }\r\n        if (!value) {\r\n            return;\r\n        }\r\n        if (this.tinyMceEditor && this.tinyMceEditor.initialized && typeof value === 'string') {\r\n            this.tinyMceEditor.setContent(value);\r\n        }\r\n        this.content = value;\r\n        this.hasChanges = false;\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChange = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    setDisabledState(isDisabled) {\r\n        this.isDisabled$.next(isDisabled);\r\n    }\r\n    setEditorDisabledState() {\r\n        if (this.tinyMceEditor && this.tinyMceEditor.getBody()) {\r\n            this.tinyMceEditor.getBody().setAttribute('contenteditable', !this.isDisabled);\r\n            getTinymce().remove(this.tinyMceEditor);\r\n            getTinymce()\r\n                .init(this.editorDefaultConfig())\r\n                .then(() => {\r\n                this.hidden$.next(false);\r\n            });\r\n        }\r\n    }\r\n    setupStyle() {\r\n        /*\r\n        The editor is inside an iframe that can't be styled using the shell's css.\r\n        So we need to change directly the color on DOM.\r\n        */\r\n        const iframes = this.elementRef.nativeElement.getElementsByTagName('iframe');\r\n        if (!iframes) {\r\n            return;\r\n        }\r\n        if (iframes.length > 0 && iframes[0].contentDocument) {\r\n            // get the body inside the editor iFrame\r\n            const body = iframes[0].contentDocument.getElementsByTagName('body')[0];\r\n            body.style.background = getComputedStyle(document.documentElement).getPropertyValue('--grey-1').trim();\r\n            body.style.color = getComputedStyle(document.documentElement).getPropertyValue('--grey-8').trim();\r\n            iframes[0].setAttribute('data-testid', 'tinymce-editor');\r\n        }\r\n        else {\r\n            // in case of the iframe content is not ready,\r\n            // try again 100 ms later\r\n            setTimeout(() => {\r\n                this.setupStyle();\r\n            }, 100);\r\n        }\r\n    }\r\n    // runs before editor init.\r\n    setupEditor(editor, self) {\r\n        this.tinyMceEditor = editor;\r\n        // on lost focus\r\n        editor.on('blur', () => {\r\n            if (this.hasChanges) {\r\n                this.onChange(this.tinyMceEditor.getContent());\r\n                this.hasChanges = false;\r\n            }\r\n        });\r\n        // on user inputs\r\n        editor.on(\r\n        // 'change keyup undo redo',\r\n        'keyup undo redo', () => (this.hasChanges = true));\r\n    }\r\n    editorDefaultConfig() {\r\n        const self = this;\r\n        const toolbarOptions = this.isDisabled ? false : this.toolbarOptions;\r\n        if (!this.culture) {\r\n            this.culture = this.defaultCulture;\r\n        }\r\n        const language = this.culture.substring(0, 2);\r\n        return {\r\n            selector: '.tinymce-editor',\r\n            setup: (editor) => {\r\n                this.setupEditor(editor, self);\r\n            },\r\n            content_style: 'body { font-family: Verdana; font-size: 14px }',\r\n            content_css: 'dark',\r\n            branding: false,\r\n            menubar: false,\r\n            statusbar: false,\r\n            automatic_uploads: true,\r\n            contextmenu: false,\r\n            language,\r\n            height: this.minHeight,\r\n            plugins: ['link image paste'],\r\n            // runs after editor init.\r\n            init_instance_callback: (editor) => {\r\n                editor.getBody().setAttribute('contenteditable', !this.isDisabled);\r\n                this.setupStyle();\r\n            },\r\n            toolbar: toolbarOptions,\r\n            readonly: this.isDisabled,\r\n            /*\r\n          URL of our upload handler (for more details check: https://www.tiny.cloud/docs/configure/file-image-upload/#images_upload_url)\r\n          images_upload_url: 'postAcceptor.php',\r\n          here we add custom filepicker only to Image dialog\r\n        */\r\n            file_picker_types: 'image',\r\n            /* and here's our custom image picker*/\r\n            file_picker_callback: (cb) => {\r\n                const input = document.createElement('input');\r\n                input.setAttribute('type', 'file');\r\n                input.setAttribute('accept', 'image/*');\r\n                input.onchange = () => {\r\n                    const file = input.files[0];\r\n                    const reader = new FileReader();\r\n                    reader.onload = () => {\r\n                        /*\r\n              Note: Now we need to register the blob in TinyMCEs image blob\r\n              registry. In the next release this part hopefully won't be\r\n              necessary, as we are looking to handle it internally.\r\n            */\r\n                        const id = 'blobid' + new Date().getTime();\r\n                        const blobCache = getTinymce().activeEditor.editorUpload.blobCache;\r\n                        const base64 = reader.result.split(',')[1];\r\n                        const blobInfo = blobCache.create(id, file, base64);\r\n                        blobCache.add(blobInfo);\r\n                        /* call the callback and populate the Title field with the file name */\r\n                        cb(blobInfo.blobUri(), { title: file.name });\r\n                    };\r\n                    reader.readAsDataURL(file);\r\n                };\r\n                input.click();\r\n            }\r\n        };\r\n    }\r\n}\r\nHtmlEditorFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HtmlEditorFieldComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.ExternalScriptsService }, { token: i1$2.BroadcastService }], target: i0.ɵɵFactoryTarget.Component });\r\nHtmlEditorFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: HtmlEditorFieldComponent, selector: \"pri-html-editor\", inputs: { minHeight: \"minHeight\", culture: \"culture\", content: \"content\", isDisabled: \"isDisabled\" }, providers: [HTML_EDITOR_VALUE_ACCESSOR], ngImport: i0, template: \"<div [hidden]=\\\"hidden$ | async\\\">\\r\\n\\t<textarea class=\\\"tinymce-editor\\\" [(ngModel)]=\\\"content\\\" [ngClass]=\\\"{ 'tinymce-disable': isDisabled }\\\"></textarea>\\r\\n\\t<div class=\\\"mce-style-anchor\\\"></div>\\r\\n</div>\\r\\n\", styles: [\"pri-html-editor .tox{border-color:var(--grey-4);border-radius:0}pri-html-editor .tox-editor-header{background-color:transparent}pri-html-editor .tox-editor-header .tox-toolbar-overlord{background-color:transparent}pri-html-editor .tox-editor-header .tox-toolbar-overlord .tox-toolbar__primary{background-color:transparent;border-bottom:1px solid var(--grey-4)}pri-html-editor .tox-editor-header .tox-toolbar-overlord .tox-toolbar__primary tox-toolbar__group{background-color:transparent}pri-html-editor .tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid var(--grey-4)}pri-html-editor .tox-toolbar__overflow .tox-tbtn,pri-html-editor .tox .tox-tbtn{height:28px;color:var(--theme-100)}pri-html-editor .tox-toolbar__overflow .tox-tbtn svg,pri-html-editor .tox .tox-tbtn svg{fill:var(--theme-100)}pri-html-editor .tox-toolbar__overflow .tox-tbtn:hover,pri-html-editor .tox .tox-tbtn:hover{background:transparent;color:#000001;cursor:pointer}pri-html-editor .tox-toolbar__overflow .tox-tbtn:hover svg,pri-html-editor .tox .tox-tbtn:hover svg{fill:#000001}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--active,pri-html-editor .tox .tox-tbtn.tox-tbtn--active{border-radius:0;background-color:var(--theme-100);color:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--active svg,pri-html-editor .tox .tox-tbtn.tox-tbtn--active svg{fill:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--enabled,pri-html-editor .tox .tox-tbtn.tox-tbtn--enabled{border-radius:0;background-color:var(--theme-100);color:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--enabled svg,pri-html-editor .tox .tox-tbtn.tox-tbtn--enabled svg{fill:#fff}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$3.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i1$3.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1$3.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HtmlEditorFieldComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-html-editor', encapsulation: ViewEncapsulation.None, providers: [HTML_EDITOR_VALUE_ACCESSOR], template: \"<div [hidden]=\\\"hidden$ | async\\\">\\r\\n\\t<textarea class=\\\"tinymce-editor\\\" [(ngModel)]=\\\"content\\\" [ngClass]=\\\"{ 'tinymce-disable': isDisabled }\\\"></textarea>\\r\\n\\t<div class=\\\"mce-style-anchor\\\"></div>\\r\\n</div>\\r\\n\", styles: [\"pri-html-editor .tox{border-color:var(--grey-4);border-radius:0}pri-html-editor .tox-editor-header{background-color:transparent}pri-html-editor .tox-editor-header .tox-toolbar-overlord{background-color:transparent}pri-html-editor .tox-editor-header .tox-toolbar-overlord .tox-toolbar__primary{background-color:transparent;border-bottom:1px solid var(--grey-4)}pri-html-editor .tox-editor-header .tox-toolbar-overlord .tox-toolbar__primary tox-toolbar__group{background-color:transparent}pri-html-editor .tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid var(--grey-4)}pri-html-editor .tox-toolbar__overflow .tox-tbtn,pri-html-editor .tox .tox-tbtn{height:28px;color:var(--theme-100)}pri-html-editor .tox-toolbar__overflow .tox-tbtn svg,pri-html-editor .tox .tox-tbtn svg{fill:var(--theme-100)}pri-html-editor .tox-toolbar__overflow .tox-tbtn:hover,pri-html-editor .tox .tox-tbtn:hover{background:transparent;color:#000001;cursor:pointer}pri-html-editor .tox-toolbar__overflow .tox-tbtn:hover svg,pri-html-editor .tox .tox-tbtn:hover svg{fill:#000001}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--active,pri-html-editor .tox .tox-tbtn.tox-tbtn--active{border-radius:0;background-color:var(--theme-100);color:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--active svg,pri-html-editor .tox .tox-tbtn.tox-tbtn--active svg{fill:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--enabled,pri-html-editor .tox .tox-tbtn.tox-tbtn--enabled{border-radius:0;background-color:var(--theme-100);color:#fff}pri-html-editor .tox-toolbar__overflow .tox-tbtn.tox-tbtn--enabled svg,pri-html-editor .tox .tox-tbtn.tox-tbtn--enabled svg{fill:#fff}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.ExternalScriptsService }, { type: i1$2.BroadcastService }]; }, propDecorators: { minHeight: [{\r\n                type: Input\r\n            }], culture: [{\r\n                type: Input\r\n            }], content: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Responsible to guarantee access to images located in a secure resource.\r\n */\r\nclass ImageSourcePipe {\r\n    constructor(imageService, domSanitizer) {\r\n        this.imageService = imageService;\r\n        this.domSanitizer = domSanitizer;\r\n    }\r\n    /**\r\n     * Gets the image and transform it to a blob in order to send a authorized request to the server.\r\n     *\r\n     * @param url The image url.\r\n     * @param sanitizeUrl Whether should sanitize the url.\r\n     * More info: https://angular.io/api/platform-browser/DomSanitizer#bypassSecurityTrustUrl.\r\n     */\r\n    transform(url, sanitizeUrl = false) {\r\n        return new Observable((obs) => {\r\n            this.imageService.getImageBlob(url).then((blobUrl) => {\r\n                if (sanitizeUrl) {\r\n                    obs.next(this.domSanitizer.bypassSecurityTrustUrl(blobUrl));\r\n                }\r\n                else {\r\n                    obs.next(blobUrl);\r\n                }\r\n            });\r\n        });\r\n    }\r\n}\r\nImageSourcePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageSourcePipe, deps: [{ token: i1$2.ImageService }, { token: i2$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });\r\nImageSourcePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageSourcePipe, name: \"imageSrc\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageSourcePipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'imageSrc'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.ImageService }, { type: i2$4.DomSanitizer }]; } });\n\n/**\r\n * Shows a group of letters based on a given text\r\n */\r\nclass TextInitialsComponent {\r\n    /**\r\n     * Gets the initials letters based the @text input variable.\r\n     *\r\n     * @return The initials letters;\r\n     */\r\n    getInitials() {\r\n        if (!this.text) {\r\n            return '';\r\n        }\r\n        // snippet taken from https://stackoverflow.com/a/33076482/7586354\r\n        const rgx = new RegExp(/(\\p{L}{0})\\p{L}+/, 'gu');\r\n        const initials = this.text.match(rgx);\r\n        if (initials) {\r\n            return ((initials.shift()?.[0] || '') + (initials.pop()?.[0] || '')).toUpperCase();\r\n        }\r\n        else {\r\n            return this.text.substring(0, 1);\r\n        }\r\n    }\r\n}\r\nTextInitialsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TextInitialsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTextInitialsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TextInitialsComponent, selector: \"pri-text-initials\", inputs: { text: \"text\" }, ngImport: i0, template: \"<div class=\\\"text-wrapper\\\">\\r\\n    {{ getInitials() }}\\r\\n</div>\", styles: [\"pri-text-initials .text-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TextInitialsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-text-initials', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"text-wrapper\\\">\\r\\n    {{ getInitials() }}\\r\\n</div>\", styles: [\"pri-text-initials .text-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}\\n\"] }]\r\n        }], propDecorators: { text: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Shows an image, allowing to define a default image as well as some pre-defines styles.\r\n * The default image is shown in first place. When the image loaded occurs, the default image is occult\r\n * in order to show the image.\r\n */\r\nclass ImageComponent {\r\n    constructor(imageSourcePipe, domSanitizer, changeDetector) {\r\n        this.imageSourcePipe = imageSourcePipe;\r\n        this.domSanitizer = domSanitizer;\r\n        this.changeDetector = changeDetector;\r\n        /** Image style. */\r\n        this.style = 0 /* ImageStyle.Square */;\r\n        /** Default image padding style. */\r\n        this.defaultImagePadding = 0;\r\n        /** Internal show default image state. */\r\n        this._showDefaultImage = true;\r\n    }\r\n    /** Image url setter. */\r\n    set imageUrl(url) {\r\n        if (this._imageUrl !== url) {\r\n            if (this.loadImageSubscription) {\r\n                this.loadImageSubscription.unsubscribe();\r\n            }\r\n            if (!url) {\r\n                this._imageUrl = undefined;\r\n            }\r\n            else {\r\n                this.loadImageSubscription = this.loadImage(url).subscribe((imageUrl) => {\r\n                    this._imageUrl = this.domSanitizer.bypassSecurityTrustUrl(imageUrl);\r\n                    this.changeDetector.detectChanges();\r\n                }, () => this._imageUrl = undefined);\r\n            }\r\n        }\r\n    }\r\n    /** Image url getter. */\r\n    get imageUrl() {\r\n        return this._imageUrl;\r\n    }\r\n    /** Default image url setter. */\r\n    set defaultImageUrl(url) {\r\n        if (this._defaultImageUrl !== url) {\r\n            this._defaultImageUrl = url;\r\n        }\r\n    }\r\n    /** Default image url getter. */\r\n    get defaultImageUrl() {\r\n        return this._defaultImageUrl;\r\n    }\r\n    /** Whether to show the default image (setter). By default is true. */\r\n    set showDefaultImage(status) {\r\n        this._showDefaultImage = status;\r\n    }\r\n    /** Whether to show the default image (getter). By default is true. */\r\n    get showDefaultImage() {\r\n        return this._showDefaultImage && !this.imageUrl && !this.hasDefaultText;\r\n    }\r\n    /** Whether to show the image. */\r\n    get showImage() {\r\n        return (this.imageUrl ? true : false);\r\n    }\r\n    /** Whether to show a default text instead of a default image. */\r\n    get showText() {\r\n        return this.hasDefaultText && !this.showImage;\r\n    }\r\n    /** Gets the image style string class. */\r\n    get imageStyle() {\r\n        switch (this.style) {\r\n            case 0 /* ImageStyle.Square */: return 'square';\r\n            case 1 /* ImageStyle.Round */: return 'round';\r\n        }\r\n    }\r\n    /** Whether exists a default text. */\r\n    get hasDefaultText() {\r\n        return this.defaultText && this.defaultText.length > 0;\r\n    }\r\n    ngOnInit() {\r\n        if (!this._defaultImageUrl) {\r\n            this._defaultImageUrl = '/assets/images/default-image.svg';\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.loadImageSubscription) {\r\n            this.loadImageSubscription.unsubscribe();\r\n        }\r\n    }\r\n    onImgLoadError() {\r\n        this.imageUrl = null; // remove img url since it cannot be loaded\r\n        // If we don't have default text, we show the default image\r\n        if (!this.defaultText) {\r\n            this._showDefaultImage = true;\r\n        }\r\n    }\r\n    /**\r\n     * Loads a given image based on its url.\r\n     */\r\n    loadImage(imageUrl) {\r\n        return this.imageSourcePipe.transform(imageUrl);\r\n    }\r\n}\r\nImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageComponent, deps: [{ token: ImageSourcePipe }, { token: i2$4.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ImageComponent, selector: \"pri-image\", inputs: { style: \"style\", defaultImagePadding: \"defaultImagePadding\", imageUrl: \"imageUrl\", defaultImageUrl: \"defaultImageUrl\", showDefaultImage: \"showDefaultImage\", defaultText: \"defaultText\" }, providers: [ImageSourcePipe], ngImport: i0, template: \"<div class=\\\"image-wrapper\\\" [ngClass]=\\\"imageStyle\\\">\\r\\n    <img [attr.src]=\\\"_imageUrl\\\" [@showNewImage] *ngIf=\\\"showImage\\\" (error)=\\\"onImgLoadError()\\\"/> \\r\\n    <img [attr.src]=\\\"defaultImageUrl\\\" [@showNewImage] *ngIf=\\\"showDefaultImage\\\" [style.padding.px]=\\\"defaultImagePadding\\\"/>\\r\\n    <pri-text-initials *ngIf=\\\"showText\\\" [text]=\\\"defaultText\\\"></pri-text-initials>\\r\\n</div>\", styles: [\"pri-image{width:100%;height:100%}pri-image .image-wrapper{width:100%;height:100%}pri-image .image-wrapper img{width:100%;height:100%;object-fit:cover}pri-image .image-wrapper pri-text-initials{width:100%;height:100%;display:flex}pri-image .image-wrapper.round img,pri-image .image-wrapper.round pri-text-initials{border:1px solid var(--grey-4);border-radius:100%}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: TextInitialsComponent, selector: \"pri-text-initials\", inputs: [\"text\"] }], animations: [\r\n        trigger('showNewImage', [\r\n            transition(':enter', [\r\n                style({ opacity: 0 }),\r\n                animate('0.3s ease-in', style({ opacity: 1 }))\r\n            ]),\r\n        ]),\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-image', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('showNewImage', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0 }),\r\n                                animate('0.3s ease-in', style({ opacity: 1 }))\r\n                            ]),\r\n                        ]),\r\n                    ], providers: [ImageSourcePipe], template: \"<div class=\\\"image-wrapper\\\" [ngClass]=\\\"imageStyle\\\">\\r\\n    <img [attr.src]=\\\"_imageUrl\\\" [@showNewImage] *ngIf=\\\"showImage\\\" (error)=\\\"onImgLoadError()\\\"/> \\r\\n    <img [attr.src]=\\\"defaultImageUrl\\\" [@showNewImage] *ngIf=\\\"showDefaultImage\\\" [style.padding.px]=\\\"defaultImagePadding\\\"/>\\r\\n    <pri-text-initials *ngIf=\\\"showText\\\" [text]=\\\"defaultText\\\"></pri-text-initials>\\r\\n</div>\", styles: [\"pri-image{width:100%;height:100%}pri-image .image-wrapper{width:100%;height:100%}pri-image .image-wrapper img{width:100%;height:100%;object-fit:cover}pri-image .image-wrapper pri-text-initials{width:100%;height:100%;display:flex}pri-image .image-wrapper.round img,pri-image .image-wrapper.round pri-text-initials{border:1px solid var(--grey-4);border-radius:100%}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: ImageSourcePipe }, { type: i2$4.DomSanitizer }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { style: [{\r\n                type: Input\r\n            }], defaultImagePadding: [{\r\n                type: Input\r\n            }], imageUrl: [{\r\n                type: Input\r\n            }], defaultImageUrl: [{\r\n                type: Input\r\n            }], showDefaultImage: [{\r\n                type: Input\r\n            }], defaultText: [{\r\n                type: Input\r\n            }] } });\n\nclass ConnectionModalContentComponent {\r\n    constructor() {\r\n        this.loading = false;\r\n        this.modalSize = 4 /* ModalSize.AdjustToContent */;\r\n    }\r\n    ngOnInit() {\r\n        if (this.initializationData) {\r\n            this.message = this.initializationData.message;\r\n            this.subMessage = this.initializationData.submessage;\r\n            this.tryAgainVisible = this.initializationData.callbacks.tryAgain ? true : false;\r\n            this.tryAgain = function (event) {\r\n                this.loading = true;\r\n                setTimeout(function () {\r\n                    if (navigator.onLine) {\r\n                        this.closeModal();\r\n                        if (this.initializationData.callbacks.tryAgain) {\r\n                            this.initializationData.callbacks.tryAgain();\r\n                        }\r\n                    }\r\n                    else {\r\n                        this.loading = false;\r\n                        if (event.target !== undefined) {\r\n                            event.target.blur();\r\n                        }\r\n                    }\r\n                }.bind(this), 500);\r\n            };\r\n            this.closeModal = function () {\r\n                if (this.initializationData.callbacks.hide) {\r\n                    this.initializationData.callbacks.hide();\r\n                }\r\n            };\r\n        }\r\n    }\r\n}\r\nConnectionModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ConnectionModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nConnectionModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ConnectionModalContentComponent, selector: \"pri-connection-modal\", ngImport: i0, template: \"<pri-modal-wrapper [modalSize]=\\\"modalSize\\\">\\r\\n    <div class=\\\"connection-wrapper\\\">\\r\\n        <div class=\\\"connection-description\\\">\\r\\n            <div class=\\\"connection-icon-wrapper\\\">\\r\\n                <div class=\\\"ti-ux-energy\\\"></div>\\r\\n            </div>\\r\\n            <div class=\\\"description-wrapper\\\">\\r\\n                <div class=\\\"title\\\">\\r\\n                    {{message}}\\r\\n                </div>\\r\\n                <div class=\\\"description\\\">\\r\\n                    {{subMessage}}\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"connection-actions\\\">\\r\\n            <span *ngIf=\\\"loading\\\">\\r\\n                <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n            </span>\\r\\n            <button id=\\\"modal-tryagain\\\" class=\\\"pri-btn-primary\\\" (click)=\\\"tryAgain($event)\\\"\\r\\n                *ngIf=\\\"tryAgainVisible && !loading\\\">{{'components.components.RES_MessageService_ButtonTryAgain' |\\r\\n                priI18n}}</button>\\r\\n        </div>\\r\\n    </div>\\r\\n</pri-modal-wrapper>\", styles: [\"pri-connection-modal .connection-wrapper{color:var(--theme-100);width:600px;min-height:250px;display:flex;flex-direction:column}pri-connection-modal .connection-wrapper .connection-description{display:flex;height:100%}pri-connection-modal .connection-wrapper .connection-description .connection-icon-wrapper{font-size:10em;display:flex;align-items:center;justify-content:center}pri-connection-modal .connection-wrapper .connection-description .description-wrapper{display:flex;flex-direction:column;justify-content:center}pri-connection-modal .connection-wrapper .connection-description .description-wrapper .title{font-size:35px;font-weight:600}pri-connection-modal .connection-wrapper .connection-description .description-wrapper .description{font-size:18px}pri-connection-modal .connection-wrapper .connection-actions{display:flex;justify-content:flex-end;margin-bottom:20px}@media only screen and (max-width: 767px){pri-connection-modal .connection-wrapper{width:70vw;height:40vh;flex-direction:column;justify-content:center}pri-connection-modal .connection-wrapper .connection-description{height:auto;margin-bottom:20px;flex-direction:column}pri-connection-modal .connection-wrapper .connection-description .connection-icon-wrapper{font-size:7em!important}pri-connection-modal .connection-wrapper .connection-description .description-wrapper{text-align:center}pri-connection-modal .connection-wrapper .connection-actions{justify-content:center}}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2$5.ModalWrapperComponent, selector: \"pri-modal-wrapper\", inputs: [\"title\", \"showCloseButton\", \"backgroundColor\", \"modalSize\"], outputs: [\"closeEvent\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ConnectionModalContentComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-connection-modal', encapsulation: ViewEncapsulation.None, template: \"<pri-modal-wrapper [modalSize]=\\\"modalSize\\\">\\r\\n    <div class=\\\"connection-wrapper\\\">\\r\\n        <div class=\\\"connection-description\\\">\\r\\n            <div class=\\\"connection-icon-wrapper\\\">\\r\\n                <div class=\\\"ti-ux-energy\\\"></div>\\r\\n            </div>\\r\\n            <div class=\\\"description-wrapper\\\">\\r\\n                <div class=\\\"title\\\">\\r\\n                    {{message}}\\r\\n                </div>\\r\\n                <div class=\\\"description\\\">\\r\\n                    {{subMessage}}\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div class=\\\"connection-actions\\\">\\r\\n            <span *ngIf=\\\"loading\\\">\\r\\n                <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n            </span>\\r\\n            <button id=\\\"modal-tryagain\\\" class=\\\"pri-btn-primary\\\" (click)=\\\"tryAgain($event)\\\"\\r\\n                *ngIf=\\\"tryAgainVisible && !loading\\\">{{'components.components.RES_MessageService_ButtonTryAgain' |\\r\\n                priI18n}}</button>\\r\\n        </div>\\r\\n    </div>\\r\\n</pri-modal-wrapper>\", styles: [\"pri-connection-modal .connection-wrapper{color:var(--theme-100);width:600px;min-height:250px;display:flex;flex-direction:column}pri-connection-modal .connection-wrapper .connection-description{display:flex;height:100%}pri-connection-modal .connection-wrapper .connection-description .connection-icon-wrapper{font-size:10em;display:flex;align-items:center;justify-content:center}pri-connection-modal .connection-wrapper .connection-description .description-wrapper{display:flex;flex-direction:column;justify-content:center}pri-connection-modal .connection-wrapper .connection-description .description-wrapper .title{font-size:35px;font-weight:600}pri-connection-modal .connection-wrapper .connection-description .description-wrapper .description{font-size:18px}pri-connection-modal .connection-wrapper .connection-actions{display:flex;justify-content:flex-end;margin-bottom:20px}@media only screen and (max-width: 767px){pri-connection-modal .connection-wrapper{width:70vw;height:40vh;flex-direction:column;justify-content:center}pri-connection-modal .connection-wrapper .connection-description{height:auto;margin-bottom:20px;flex-direction:column}pri-connection-modal .connection-wrapper .connection-description .connection-icon-wrapper{font-size:7em!important}pri-connection-modal .connection-wrapper .connection-description .description-wrapper{text-align:center}pri-connection-modal .connection-wrapper .connection-actions{justify-content:center}}\\n\"] }]\r\n        }], ctorParameters: function () { return []; } });\n\nclass ModalContentComponent {\r\n    constructor(bsModalRef, chRef) {\r\n        this.bsModalRef = bsModalRef;\r\n        this.chRef = chRef;\r\n        this.isDetailOpen = false;\r\n        this.consent = {};\r\n    }\r\n    showModelInfo(data) {\r\n        this.title = data.title;\r\n        this.detail = data.detail;\r\n        this.image = data.image;\r\n        this.imageClass = data.imageClass;\r\n        this.innerDetail = data.innerDetail;\r\n        this.hasInnerDetail = data.innerDetail ? true : false;\r\n        this.consentMessage = data.consentMessage;\r\n        this.consent.checked = false;\r\n        this.okVisible = data.callbacks.ok ? true : false;\r\n        this.yesVisible = data.callbacks.yes ? true : false;\r\n        this.noVisible = data.callbacks.no ? true : false;\r\n        this.cancelVisible = data.callbacks.cancel ? true : false;\r\n        this.tryAgainVisible = data.callbacks.tryAgain ? true : false;\r\n        this.closeVisible = (!this.okVisible && !this.yesVisible && !this.noVisible && !this.cancelVisible && !this.tryAgainVisible)\r\n            || data.callbacks.close;\r\n        this.ok = () => {\r\n            if (data.callbacks.ok) {\r\n                data.callbacks.ok();\r\n            }\r\n            this.closeModal();\r\n        };\r\n        this.yes = () => {\r\n            if (data.callbacks.yes) {\r\n                data.callbacks.yes();\r\n            }\r\n            this.closeModal();\r\n        };\r\n        this.no = () => {\r\n            if (data.callbacks.no) {\r\n                data.callbacks.no();\r\n            }\r\n            this.closeModal();\r\n        };\r\n        this.tryAgain = () => {\r\n            console.log('Online = ' + navigator.onLine);\r\n            if (navigator.onLine) {\r\n                this.closeModal();\r\n                if (data.callbacks.tryAgain) {\r\n                    data.callbacks.tryAgain();\r\n                }\r\n            }\r\n        };\r\n        this.close = () => {\r\n            if (data.callbacks.close) {\r\n                data.callbacks.close();\r\n            }\r\n            this.closeModal();\r\n        };\r\n        this.closeModal = () => {\r\n            if (data.callbacks.hide) {\r\n                data.callbacks.hide();\r\n            }\r\n        };\r\n        this.chRef.detectChanges();\r\n    }\r\n    ;\r\n}\r\nModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalContentComponent, deps: [{ token: i1$5.BsModalRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ModalContentComponent, selector: \"pri-modal-content\", ngImport: i0, template: \"<div class=\\\"popup-message-service-modal\\\">\\r\\n\\t<div class=\\\"popup-messages-service-container\\\">\\r\\n\\t\\t<div id=\\\"modal-container\\\" class=\\\"messages-service-container-content\\\">\\r\\n\\t\\t\\t<div class=\\\"messages-service-container-title\\\" id=\\\"modal-title\\\">{{ title }}</div>\\r\\n\\t\\t\\t<div priInnerHTML class=\\\"messages-service-container-message\\\" id=\\\"modal-detail\\\" [innerHTML]=\\\"detail\\\"></div>\\r\\n\\t\\t\\t<div *ngIf=\\\"hasInnerDetail\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"show-more-info\\\" (click)=\\\"isDetailOpen = !isDetailOpen\\\">\\r\\n\\t\\t\\t\\t\\t<span\\r\\n\\t\\t\\t\\t\\t\\tid=\\\"expander-icon\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"fa\\\"\\r\\n\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'ti-ux-plus-square': !isDetailOpen, 'ti-ux-minus-square': isDetailOpen }\\\"></span\\r\\n\\t\\t\\t\\t\\t><span data-i18n=\\\"core.directives.RES_MessageService_MoreInfo\\\">More info</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div [ngClass]=\\\"{ collapse: !isDetailOpen }\\\">\\r\\n\\t\\t\\t\\t\\t<small>{{ innerDetail }}</small>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"!imageClass && image\\\">\\r\\n\\t\\t\\t\\t<img [src]=\\\"image\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"imageClass\\\" [ngClass]=\\\"imageClass\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"row messages-service-container-actions-wrapper\\\">\\r\\n\\t\\t\\t<div *ngIf=\\\"consentMessage\\\" class=\\\"messages-service-container-message-consent col-sm-7 col-xs-12\\\">\\r\\n\\t\\t\\t\\t<input\\r\\n\\t\\t\\t\\t\\ttype=\\\"checkbox\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"consent-check\\\"\\r\\n\\t\\t\\t\\t\\t[checked]=\\\"consent.checked\\\"\\r\\n\\t\\t\\t\\t\\t(change)=\\\"consent.checked = !consent.checked\\\" />\\r\\n\\t\\t\\t\\t<span class=\\\"consent-message\\\">\\r\\n\\t\\t\\t\\t\\t{{ consentMessage }}\\r\\n\\t\\t\\t\\t</span>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"messages-service-container-actions col-xs-12\\\" [ngClass]=\\\"{ 'col-sm-5': consentMessage }\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\tid=\\\"modal-yes\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"pri-btn-default\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"yes()\\\"\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"yesVisible\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"consentMessage && !consent.checked\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonYes' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-no\\\" class=\\\"pri-btn-default\\\" (click)=\\\"no()\\\" *ngIf=\\\"noVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonNo' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-ok\\\" class=\\\"pri-btn-default\\\" (click)=\\\"ok()\\\" *ngIf=\\\"okVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonOk' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-tryagain\\\" class=\\\"pri-btn-default\\\" (click)=\\\"tryAgain()\\\" *ngIf=\\\"tryAgainVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonTryAgain' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<!-- <a id=\\\"modal-cancel\\\" class=\\\"pri-btn-link\\\" (click)=\\\"cancel()\\\" *ngIf=\\\"cancelVisible\\\">{{'ngcore.components.RES_MessageService_ButtonCancel' | priI18n}}</a> -->\\r\\n\\t\\t\\t\\t<a id=\\\"modal-close\\\" class=\\\"pri-btn-link\\\" (click)=\\\"close()\\\" *ngIf=\\\"closeVisible\\\">{{\\r\\n\\t\\t\\t\\t\\t'ngcore.components.RES_MessageService_ButtonClose' | priI18n\\r\\n\\t\\t\\t\\t}}</a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-modal-content .popup-message-service-modal .modal-dialog{height:initial!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container{padding:25px;display:flex;flex-direction:column}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content{min-height:100px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-icon{width:150px;float:left}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-icon .ti-ux-energy{color:var(--theme-100);font-size:10em}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent{padding-top:7%;float:right;margin-bottom:25px;width:calc(100% - 150px)}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent .messages-service-container-message{color:var(--theme-100)!important;font-size:32pt!important;font-weight:600!important;margin-bottom:25px!important;float:left!important;width:100%!important;word-wrap:break-word!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent .messages-service-container-submessage{color:var(--theme-100)!important;font-size:13pt!important;float:left!important;width:100%!important;word-wrap:break-word!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content img{margin-left:60px;width:420px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .product-error-background-image{background-image:\\\"\\\";margin-left:60px;width:420px;height:200px;background-size:100%;background-repeat:no-repeat}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-title{color:var(--theme-100);font-size:14pt;margin-bottom:20px;float:left;font-weight:700;width:100%}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-message{color:var(--grey-8);font-size:14pt;margin-bottom:40px;float:left;width:100%;word-wrap:break-word}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper{display:flex;align-items:center;flex-wrap:wrap}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-actions button,pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-actions a{margin-left:10px;float:right}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent{font-size:12px;line-height:normal;height:35px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-check{margin:0 5px 0 0!important;vertical-align:middle}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-check:hover{cursor:pointer}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-message{cursor:default}pri-modal-content .popup-message-service-modal .popup-messages-service-container .connection-actions{text-align:right}pri-modal-content .popup-message-service-modal .popup-messages-service-container .connection-actions .pri-fixed-footer-loading-icon{margin:12px 10px 0 0!important}@media only screen and (max-width: 767px){pri-modal-content .popup-message-service-modal .modal-dialog{width:80%!important}pri-modal-content .popup-message-service-modal .messages-service-container-icon{text-align:center!important;width:100%!important}pri-modal-content .popup-message-service-modal .messages-service-container-icon .ti-ux-energy{font-size:6em!important}pri-modal-content .popup-message-service-modal .messages-service-container-messagescontent{text-align:center!important;width:100%!important}pri-modal-content .modal-dialog.popup-message-service{height:auto!important;width:80%!important}}pri-modal-content .messages-service-container .alert{position:fixed;min-width:300px;max-width:90%;left:50%;transform:translate(-50%);margin-left:auto;margin-right:auto;z-index:3000;top:70px}pri-modal-content .messages-service-container .alert .glyphicon{top:3px;font-size:16px!important}pri-modal-content .icon-message-info:before{content:\\\"k\\\"}pri-modal-content .icon-message-success:before{content:\\\"1\\\"}pri-modal-content .icon-message-warning:before{content:\\\"z\\\"}pri-modal-content .icon-message-error:before{content:\\\"z\\\"}pri-modal-content .icon-message-sync:before{content:\\\"Y\\\"}pri-modal-content .messages-service-container .alert a{font-weight:700;cursor:pointer}pri-modal-content .messages-service-container .pri-modal{border-bottom-width:0px;padding-top:25px;padding-left:25px}pri-modal-content .messages-service-container .pri-modal h1,pri-modal-content p{margin-left:10px;margin-top:8px}pri-modal-content .messages-service-container .pri-modal h1{display:block;margin-top:0;margin-bottom:18px;font-size:26px;font-weight:600}pri-modal-content .messages-service-container .pri-editor-view .pri-main-actions{text-align:right;border-top:0px}pri-modal-content .modal-content{border-radius:0;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-modal-content .inline-alert{padding:15px;margin-bottom:20px}pri-modal-content .inline-alert h4{margin-top:0;color:inherit}pri-modal-content .inline-alert>p,pri-modal-content .inline-alert>ul{margin-bottom:0;margin-left:0}pri-modal-content .inline-alert-info{color:var(--grey-8);background-color:var(--grey-5)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: InnerHTMLDirective, selector: \"[priInnerHTML]\" }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalContentComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-modal-content', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"popup-message-service-modal\\\">\\r\\n\\t<div class=\\\"popup-messages-service-container\\\">\\r\\n\\t\\t<div id=\\\"modal-container\\\" class=\\\"messages-service-container-content\\\">\\r\\n\\t\\t\\t<div class=\\\"messages-service-container-title\\\" id=\\\"modal-title\\\">{{ title }}</div>\\r\\n\\t\\t\\t<div priInnerHTML class=\\\"messages-service-container-message\\\" id=\\\"modal-detail\\\" [innerHTML]=\\\"detail\\\"></div>\\r\\n\\t\\t\\t<div *ngIf=\\\"hasInnerDetail\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"show-more-info\\\" (click)=\\\"isDetailOpen = !isDetailOpen\\\">\\r\\n\\t\\t\\t\\t\\t<span\\r\\n\\t\\t\\t\\t\\t\\tid=\\\"expander-icon\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"fa\\\"\\r\\n\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'ti-ux-plus-square': !isDetailOpen, 'ti-ux-minus-square': isDetailOpen }\\\"></span\\r\\n\\t\\t\\t\\t\\t><span data-i18n=\\\"core.directives.RES_MessageService_MoreInfo\\\">More info</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div [ngClass]=\\\"{ collapse: !isDetailOpen }\\\">\\r\\n\\t\\t\\t\\t\\t<small>{{ innerDetail }}</small>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"!imageClass && image\\\">\\r\\n\\t\\t\\t\\t<img [src]=\\\"image\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"imageClass\\\" [ngClass]=\\\"imageClass\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"row messages-service-container-actions-wrapper\\\">\\r\\n\\t\\t\\t<div *ngIf=\\\"consentMessage\\\" class=\\\"messages-service-container-message-consent col-sm-7 col-xs-12\\\">\\r\\n\\t\\t\\t\\t<input\\r\\n\\t\\t\\t\\t\\ttype=\\\"checkbox\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"consent-check\\\"\\r\\n\\t\\t\\t\\t\\t[checked]=\\\"consent.checked\\\"\\r\\n\\t\\t\\t\\t\\t(change)=\\\"consent.checked = !consent.checked\\\" />\\r\\n\\t\\t\\t\\t<span class=\\\"consent-message\\\">\\r\\n\\t\\t\\t\\t\\t{{ consentMessage }}\\r\\n\\t\\t\\t\\t</span>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"messages-service-container-actions col-xs-12\\\" [ngClass]=\\\"{ 'col-sm-5': consentMessage }\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\tid=\\\"modal-yes\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"pri-btn-default\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"yes()\\\"\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"yesVisible\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"consentMessage && !consent.checked\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonYes' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-no\\\" class=\\\"pri-btn-default\\\" (click)=\\\"no()\\\" *ngIf=\\\"noVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonNo' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-ok\\\" class=\\\"pri-btn-default\\\" (click)=\\\"ok()\\\" *ngIf=\\\"okVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonOk' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<button id=\\\"modal-tryagain\\\" class=\\\"pri-btn-default\\\" (click)=\\\"tryAgain()\\\" *ngIf=\\\"tryAgainVisible\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'ngcore.components.RES_MessageService_ButtonTryAgain' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<!-- <a id=\\\"modal-cancel\\\" class=\\\"pri-btn-link\\\" (click)=\\\"cancel()\\\" *ngIf=\\\"cancelVisible\\\">{{'ngcore.components.RES_MessageService_ButtonCancel' | priI18n}}</a> -->\\r\\n\\t\\t\\t\\t<a id=\\\"modal-close\\\" class=\\\"pri-btn-link\\\" (click)=\\\"close()\\\" *ngIf=\\\"closeVisible\\\">{{\\r\\n\\t\\t\\t\\t\\t'ngcore.components.RES_MessageService_ButtonClose' | priI18n\\r\\n\\t\\t\\t\\t}}</a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-modal-content .popup-message-service-modal .modal-dialog{height:initial!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container{padding:25px;display:flex;flex-direction:column}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content{min-height:100px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-icon{width:150px;float:left}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-icon .ti-ux-energy{color:var(--theme-100);font-size:10em}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent{padding-top:7%;float:right;margin-bottom:25px;width:calc(100% - 150px)}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent .messages-service-container-message{color:var(--theme-100)!important;font-size:32pt!important;font-weight:600!important;margin-bottom:25px!important;float:left!important;width:100%!important;word-wrap:break-word!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .messages-service-container-messagescontent .messages-service-container-submessage{color:var(--theme-100)!important;font-size:13pt!important;float:left!important;width:100%!important;word-wrap:break-word!important}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content img{margin-left:60px;width:420px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-content .product-error-background-image{background-image:\\\"\\\";margin-left:60px;width:420px;height:200px;background-size:100%;background-repeat:no-repeat}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-title{color:var(--theme-100);font-size:14pt;margin-bottom:20px;float:left;font-weight:700;width:100%}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-message{color:var(--grey-8);font-size:14pt;margin-bottom:40px;float:left;width:100%;word-wrap:break-word}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper{display:flex;align-items:center;flex-wrap:wrap}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-actions button,pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-actions a{margin-left:10px;float:right}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent{font-size:12px;line-height:normal;height:35px}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-check{margin:0 5px 0 0!important;vertical-align:middle}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-check:hover{cursor:pointer}pri-modal-content .popup-message-service-modal .popup-messages-service-container .messages-service-container-actions-wrapper .messages-service-container-message-consent .consent-message{cursor:default}pri-modal-content .popup-message-service-modal .popup-messages-service-container .connection-actions{text-align:right}pri-modal-content .popup-message-service-modal .popup-messages-service-container .connection-actions .pri-fixed-footer-loading-icon{margin:12px 10px 0 0!important}@media only screen and (max-width: 767px){pri-modal-content .popup-message-service-modal .modal-dialog{width:80%!important}pri-modal-content .popup-message-service-modal .messages-service-container-icon{text-align:center!important;width:100%!important}pri-modal-content .popup-message-service-modal .messages-service-container-icon .ti-ux-energy{font-size:6em!important}pri-modal-content .popup-message-service-modal .messages-service-container-messagescontent{text-align:center!important;width:100%!important}pri-modal-content .modal-dialog.popup-message-service{height:auto!important;width:80%!important}}pri-modal-content .messages-service-container .alert{position:fixed;min-width:300px;max-width:90%;left:50%;transform:translate(-50%);margin-left:auto;margin-right:auto;z-index:3000;top:70px}pri-modal-content .messages-service-container .alert .glyphicon{top:3px;font-size:16px!important}pri-modal-content .icon-message-info:before{content:\\\"k\\\"}pri-modal-content .icon-message-success:before{content:\\\"1\\\"}pri-modal-content .icon-message-warning:before{content:\\\"z\\\"}pri-modal-content .icon-message-error:before{content:\\\"z\\\"}pri-modal-content .icon-message-sync:before{content:\\\"Y\\\"}pri-modal-content .messages-service-container .alert a{font-weight:700;cursor:pointer}pri-modal-content .messages-service-container .pri-modal{border-bottom-width:0px;padding-top:25px;padding-left:25px}pri-modal-content .messages-service-container .pri-modal h1,pri-modal-content p{margin-left:10px;margin-top:8px}pri-modal-content .messages-service-container .pri-modal h1{display:block;margin-top:0;margin-bottom:18px;font-size:26px;font-weight:600}pri-modal-content .messages-service-container .pri-editor-view .pri-main-actions{text-align:right;border-top:0px}pri-modal-content .modal-content{border-radius:0;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-modal-content .inline-alert{padding:15px;margin-bottom:20px}pri-modal-content .inline-alert h4{margin-top:0;color:inherit}pri-modal-content .inline-alert>p,pri-modal-content .inline-alert>ul{margin-bottom:0;margin-left:0}pri-modal-content .inline-alert-info{color:var(--grey-8);background-color:var(--grey-5)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$5.BsModalRef }, { type: i0.ChangeDetectorRef }]; } });\n\n/** Service responsible to launch different type of messages */\r\nclass MessagesService {\r\n    constructor(toastr, modalService, domService, appContextService, routeHelperService, amsService) {\r\n        this.toastr = toastr;\r\n        this.modalService = modalService;\r\n        this.domService = domService;\r\n        this.appContextService = appContextService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n        this.isModalOpen = false;\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.destroyInjectedComponent) {\r\n            this.destroyInjectedComponent();\r\n        }\r\n    }\r\n    show(message) {\r\n        const timeOut = 3000;\r\n        let toastClass = 'ngx-toastr';\r\n        let positionClass = \"toast-top-right\" /* ToasterPositionEnum.topRight */;\r\n        let activeToast;\r\n        let innerHTMLDirective;\r\n        if (window.innerWidth < 768 /* ScreenBreakpointEnum.sm */) {\r\n            positionClass = \"toast-top-full-width\" /* ToasterPositionEnum.topFullWidth */;\r\n        }\r\n        if (positionClass.match(/^toast-top-.*/)) {\r\n            if (this.appContextService.hasAlerts()) {\r\n                toastClass += ' has-top-alert';\r\n            }\r\n        }\r\n        if (typeof message === 'string') {\r\n            activeToast = this.toastr.success(message, '', {\r\n                positionClass,\r\n                toastClass,\r\n                enableHtml: true,\r\n                timeOut\r\n            });\r\n        }\r\n        else if (message instanceof MessageInfo) {\r\n            const messageInfo = message;\r\n            switch (messageInfo.type) {\r\n                case 1 /* MessageType.Info */:\r\n                    activeToast = this.toastr.info(messageInfo.message, messageInfo.title, {\r\n                        positionClass,\r\n                        toastClass,\r\n                        enableHtml: true,\r\n                        timeOut,\r\n                        onActivateTick: true\r\n                    });\r\n                    break;\r\n                case 2 /* MessageType.Success */:\r\n                    activeToast = this.toastr.success(messageInfo.message, messageInfo.title, {\r\n                        positionClass,\r\n                        toastClass,\r\n                        enableHtml: true,\r\n                        timeOut,\r\n                        onActivateTick: true\r\n                    });\r\n                    break;\r\n                case 4 /* MessageType.Warning */:\r\n                    activeToast = this.toastr.warning(messageInfo.message, messageInfo.title, {\r\n                        positionClass,\r\n                        toastClass,\r\n                        enableHtml: true,\r\n                        onActivateTick: true\r\n                    });\r\n                    break;\r\n                case 8 /* MessageType.Error */:\r\n                    // Error only closable by the user\r\n                    activeToast = this.toastr.error(messageInfo.message, messageInfo.title, {\r\n                        positionClass,\r\n                        toastClass,\r\n                        enableHtml: true,\r\n                        onActivateTick: true,\r\n                        disableTimeOut: true,\r\n                        closeButton: true\r\n                    });\r\n                    break;\r\n                case 9 /* MessageType.ErrorToast */:\r\n                    // Error with timeout\r\n                    activeToast = this.toastr.error(messageInfo.message, messageInfo.title, {\r\n                        positionClass,\r\n                        toastClass,\r\n                        enableHtml: true,\r\n                        timeOut\r\n                    });\r\n                    break;\r\n            }\r\n        }\r\n        else {\r\n            throw new Error('Could not define the message type. Make sure that a valid string or MessageInfo class instance was provided.');\r\n        }\r\n        innerHTMLDirective = new InnerHTMLDirective(activeToast?.portal?.location, this.routeHelperService, this.amsService);\r\n        if (innerHTMLDirective) {\r\n            activeToast.onShown.subscribe(() => {\r\n                innerHTMLDirective.init();\r\n            });\r\n            activeToast.onHidden.subscribe(() => {\r\n                innerHTMLDirective.ngOnDestroy();\r\n                innerHTMLDirective = null;\r\n            });\r\n        }\r\n    }\r\n    showModal(data) {\r\n        const modalConfig = {\r\n            class: 'popup-message-service',\r\n            ignoreBackdropClick: true\r\n        };\r\n        // init modal\r\n        const bsModalRef = this.modalService.show(ModalContentComponent, modalConfig);\r\n        // show data\r\n        if (data.callbacks !== undefined) {\r\n            data.callbacks.hide = () => {\r\n                bsModalRef.hide();\r\n            };\r\n        }\r\n        bsModalRef.content.showModelInfo(data);\r\n    }\r\n    showConnectionModal(data) {\r\n        if (!this.isModalOpen) {\r\n            // show data\r\n            if (data.callbacks !== undefined) {\r\n                //prettier-ignore\r\n                data.callbacks.hide = function () {\r\n                    this.isModalOpen = false;\r\n                    if (this.destroyInjectedComponent) {\r\n                        this.destroyInjectedComponent();\r\n                    }\r\n                }.bind(this);\r\n            }\r\n            this.destroyInjectedComponent = this.domService.appendComponentToBody(ConnectionModalContentComponent, {\r\n                initializationData: data\r\n            });\r\n            this.isModalOpen = true;\r\n        }\r\n    }\r\n}\r\nMessagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MessagesService, deps: [{ token: i1$6.ToastrService }, { token: i1$5.BsModalService }, { token: i1$2.DomService }, { token: i1$2.AppContextService }, { token: i1$2.RouteHelperService }, { token: i1$2.AmsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nMessagesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MessagesService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MessagesService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$6.ToastrService }, { type: i1$5.BsModalService }, { type: i1$2.DomService }, { type: i1$2.AppContextService }, { type: i1$2.RouteHelperService }, { type: i1$2.AmsService }]; } });\n\n/**\r\n * Service responsible to handle services errors\r\n */\r\nclass ExceptionHandlerService {\r\n    constructor(messagesService, i18nService, shellStateService, roleService, appContextService, treatErrorMessagePipe) {\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        this.shellStateService = shellStateService;\r\n        this.roleService = roleService;\r\n        this.appContextService = appContextService;\r\n        this.treatErrorMessagePipe = treatErrorMessagePipe;\r\n    }\r\n    /**\r\n     * Responsible to show a error message\r\n     *\r\n     * @param reason reason of the error (message object that the server retrieves)\r\n     * @param tryAgain if true, will show a try again button\r\n     * @param retryRequest callback function that will be called on the try again action\r\n     */\r\n    showError(reason, tryAgain = false, retryRequest = undefined) {\r\n        /**\r\n         * If reason is a instance of ProgressEvent, the error was emitted by an image upload\r\n         * and should be treated as connection problems;\r\n         */\r\n        if (reason instanceof ProgressEvent) {\r\n            reason = {\r\n                status: 504\r\n            };\r\n        }\r\n        switch (reason.status) {\r\n            // Connection problems\r\n            case 0:\r\n            case 504: {\r\n                this.shellStateService.setLoadingState(false);\r\n                let callback = null;\r\n                // tryAgain = true - use provided callback\r\n                if (tryAgain) {\r\n                    callback = {\r\n                        tryAgain: retryRequest\r\n                    };\r\n                }\r\n                else {\r\n                    // tryAgain = false - button performs reload on page\r\n                    callback = {\r\n                        tryAgain: () => {\r\n                            window.location.reload();\r\n                        }\r\n                    };\r\n                }\r\n                // Show connection problems modal with callback on button\r\n                this.messagesService.showConnectionModal({\r\n                    message: this.i18nService.get('ngcore.components.RES_ConnectionProblems_DialogMessage'),\r\n                    submessage: this.i18nService.get('ngcore.components.RES_ConnectionProblems_DialogSubmessage'),\r\n                    callbacks: callback\r\n                });\r\n                break;\r\n            }\r\n            // Precondition Failed (ex: You need a company to perform the operation)\r\n            case 412: {\r\n                // Do nothing...\r\n                break;\r\n            }\r\n            // This error is handled in the httpconfig interceptor\r\n            case 401:\r\n            case 403:\r\n            case 404:\r\n            case 500: {\r\n                // Do nothing...\r\n                break;\r\n            }\r\n            default: {\r\n                if (reason) {\r\n                    const message = this.treatErrorMessagePipe.transform(reason);\r\n                    this.messagesService.show(new MessageInfo(message, null, 8 /* MessageType.Error */));\r\n                }\r\n                break;\r\n            }\r\n        }\r\n    }\r\n}\r\nExceptionHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExceptionHandlerService, deps: [{ token: MessagesService }, { token: i2$3.I18nService }, { token: i1$2.ShellStateService }, { token: i1$2.RoleService }, { token: i1$2.AppContextService }, { token: i1$2.TreatErrorMessagePipe }], target: i0.ɵɵFactoryTarget.Injectable });\r\nExceptionHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExceptionHandlerService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExceptionHandlerService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: MessagesService }, { type: i2$3.I18nService }, { type: i1$2.ShellStateService }, { type: i1$2.RoleService }, { type: i1$2.AppContextService }, { type: i1$2.TreatErrorMessagePipe }]; } });\n\n/**\r\n * Responsible to download files.\r\n */\r\nclass DownloadService {\r\n    constructor(httpClient, imageService, messagesService, i18nService, exceptionHandlerService) {\r\n        this.httpClient = httpClient;\r\n        this.imageService = imageService;\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n    }\r\n    /**\r\n     * Downloads a file\r\n     *\r\n     * @param url The file url\r\n     * @param [responseType=\"arraybuffer\"]\r\n     * @param [encoded=false]\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     * @memberof DownloadService\r\n     */\r\n    async download(url, responseType = 'arraybuffer', encoded = false) {\r\n        // \"as 'json'\" workaround due to this angular issue: https://github.com/angular/angular/issues/18586\r\n        const options = {\r\n            observe: 'response',\r\n            responseType: responseType\r\n        };\r\n        try {\r\n            const response = await this.httpClient.get(url, options).toPromise();\r\n            switch (responseType) {\r\n                case 'arraybuffer':\r\n                    return this.downloadHttpResponseArrayBuffer(response);\r\n                case 'text':\r\n                    return this.downloadHttpResponseString(response, encoded);\r\n                case 'blob':\r\n                    return this.downloadHttpResponseBlob(response);\r\n                default:\r\n                    console.error('Unsupported download responseType: ' + responseType);\r\n                    break;\r\n            }\r\n        }\r\n        catch (error) {\r\n            this.catchError(error);\r\n        }\r\n    }\r\n    /**\r\n     * Downloads a file\r\n     *\r\n     * @param url The file url\r\n     * @param payload The payload\r\n     * @param [responseType=\"arraybuffer\"]\r\n     * @param [encoded=false]\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     * @memberof DownloadService\r\n     */\r\n    async downloadPost(url, payload, responseType = 'arraybuffer', encoded = false) {\r\n        // \"as 'json'\" workaround due to this angular issue: https://github.com/angular/angular/issues/18586\r\n        const options = {\r\n            observe: 'response',\r\n            responseType: responseType,\r\n            contentType: 'application/json'\r\n        };\r\n        try {\r\n            const response = await this.httpClient.post(url, payload, options).toPromise();\r\n            switch (responseType) {\r\n                case 'arraybuffer':\r\n                    return this.downloadHttpResponseArrayBuffer(response);\r\n                case 'text':\r\n                    return this.downloadHttpResponseString(response, encoded);\r\n                case 'blob':\r\n                    return this.downloadHttpResponseBlob(response);\r\n                default:\r\n                    console.error('Unsupported download responseType: ' + responseType);\r\n                    break;\r\n            }\r\n            return Promise.resolve(false);\r\n        }\r\n        catch (error) {\r\n            this.catchError(error);\r\n            return Promise.resolve(false);\r\n        }\r\n    }\r\n    /**\r\n     * Downloads an image\r\n     *\r\n     * @param url The image url.\r\n     * @param [name] Image file name.\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    async downloadImage(url, name) {\r\n        const response = await this.imageService.getImage(url).toPromise();\r\n        return this.downloadFile(response, name);\r\n    }\r\n    /**\r\n     * Downloads a xml file type.\r\n     *\r\n     * @param xml The xml file content.\r\n     * @param filename The xml file name.\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadXML(xml, filename) {\r\n        return this.downloadFile(xml, filename);\r\n    }\r\n    /**\r\n     * Downloads a csv file type.\r\n     *\r\n     * @param csv The csv file content.\r\n     * @param filename The csv file name.\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadCSV(csv, filename) {\r\n        return this.downloadFile(csv, filename);\r\n    }\r\n    /**\r\n     * Downloads an ArrayBuffer HttpResponse\r\n     *\r\n     * @param response The ArrayBuffer HttpResponse\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadHttpResponseArrayBuffer(response) {\r\n        if (!response.headers.has('content-type') || !response.headers.has('content-disposition')) {\r\n            console.error('Content Type or FileName/ContentDisposition header missing the Http Response');\r\n            return undefined;\r\n        }\r\n        const contentType = response.headers.get('content-type');\r\n        let filename = this.getFileNameFromResponse(response.headers.get('content-disposition'));\r\n        // If special chars in filename, \"\" are added to the name so they need to be removed\r\n        if (filename.includes('\"')) {\r\n            filename = filename.split('\"').filter((name) => name)[0];\r\n        }\r\n        const blob = new Blob([response.body], { type: contentType });\r\n        return this.openOrDownloadBlob(blob, filename);\r\n    }\r\n    /**\r\n     * Downloads a string HttpResponse\r\n     *\r\n     * @param response The String HttpResponse\r\n     * @param encoded Boolean encoded\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadHttpResponseString(response, encoded) {\r\n        if (!response.headers.has('content-type') || !response.headers.has('content-disposition')) {\r\n            console.error('Content Type or FileName/ContentDisposition header missing the Http Response');\r\n            return undefined;\r\n        }\r\n        const contentType = response.headers.get('content-type');\r\n        const filename = this.getFileNameFromResponse(response.headers.get('content-disposition'));\r\n        const blob = encoded\r\n            ? this.base64toBlob(response.body, contentType)\r\n            : new Blob([response.body], { type: contentType });\r\n        return this.openOrDownloadBlob(blob, filename);\r\n    }\r\n    /**\r\n     * Convert base64 to blob\r\n     *\r\n     * @param b64Data The base64.\r\n     * @param contentType The string contentType.\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    base64toBlob(b64Data, contentType) {\r\n        contentType = contentType || '';\r\n        const sliceSize = 512;\r\n        b64Data = b64Data.replace(/^[^,]+,/, '');\r\n        b64Data = b64Data.replace(/\\s/g, '');\r\n        const byteCharacters = window.atob(b64Data);\r\n        const byteArrays = [];\r\n        for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\r\n            const slice = byteCharacters.slice(offset, offset + sliceSize);\r\n            const byteNumbers = new Array(slice.length);\r\n            for (let i = 0; i < slice.length; i++) {\r\n                byteNumbers[i] = slice.charCodeAt(i);\r\n            }\r\n            const byteArray = new Uint8Array(byteNumbers);\r\n            byteArrays.push(byteArray);\r\n        }\r\n        const blob = new Blob(byteArrays, { type: contentType });\r\n        return blob;\r\n    }\r\n    /**\r\n     * Downloads a Blob HttpResponse\r\n     *\r\n     * @param response The Http response\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadHttpResponseBlob(response) {\r\n        if (!response.headers.has('content-type') || !response.headers.has('content-disposition')) {\r\n            console.error('Content Type or FileName/ContentDisposition header missing the Http Response');\r\n            return undefined;\r\n        }\r\n        const filename = this.getFileNameFromResponse(response.headers.get('content-disposition'));\r\n        return this.openOrDownloadBlob(response.body, filename);\r\n    }\r\n    /**\r\n     * Downloads a pdf file.\r\n     * NOTE: Will open a new tab with the pdf.\r\n     *\r\n     * @param pdf The pdf content.\r\n     * @param filename The pdf filename.\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadPDF(pdf, filename) {\r\n        const byteCharacters = atob(pdf);\r\n        const byteNumbers = new Array(byteCharacters.length);\r\n        for (let i = 0; i < byteCharacters.length; i++) {\r\n            byteNumbers[i] = byteCharacters.charCodeAt(i);\r\n        }\r\n        const byteArray = new Uint8Array(byteNumbers);\r\n        const file = new Blob([byteArray], { type: 'application/pdf;base64' });\r\n        return this.openOrDownloadBlob(file, filename);\r\n    }\r\n    /**\r\n     * Downloads a file.\r\n     *\r\n     * @param fileContent File content.\r\n     * @param filename File name (should include the file extension).\r\n     * @param mimeType The file mime type.\r\n     * @param openPDFInTab If, when downloading PDFs, these must be opened in a new browser tab\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    downloadFile(fileContent, filename, mimeType = 'text/plain', openPDFInTab = false) {\r\n        const blob = new Blob([fileContent], { type: mimeType });\r\n        return this.openOrDownloadBlob(blob, filename, openPDFInTab);\r\n    }\r\n    /**\r\n     * Opens or downloads the specified file\r\n     *\r\n     * @param file The File\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    openOrDownloadFile(file) {\r\n        return this.openOrDownloadBlob(file, file.name);\r\n    }\r\n    /**\r\n     * Catches the error and shows it.\r\n     *\r\n     * @param error the exception error.\r\n     */\r\n    catchError(error) {\r\n        if (error.error && (error.error instanceof Blob || error.error instanceof ArrayBuffer)) {\r\n            if (error.error instanceof ArrayBuffer) {\r\n                const contentType = error.headers.get('content-type') || 'application/json';\r\n                error.error = new Blob([error.error], { type: contentType });\r\n            }\r\n            const self = this;\r\n            const reader = new FileReader();\r\n            reader.onload = () => {\r\n                error.error = JSON.parse(reader.result);\r\n                self.exceptionHandlerService.showError(error, false);\r\n            };\r\n            reader.readAsText(error.error);\r\n        }\r\n        else {\r\n            this.exceptionHandlerService.showError(error, false);\r\n        }\r\n    }\r\n    /**\r\n     * Opens or downloads the specified url/blob\r\n     *\r\n     * @param blob The blob\r\n     * @param fileName The file name\r\n     * @param openPDFInTab If, when downloading PDFs, these must be opened in a new browser tab\r\n     * @memberof DownloadService\r\n     * @returns A Promise indicating whether the file was successfully downloaded or not\r\n     */\r\n    openOrDownloadBlob(blob, fileName, openPDFInTab = true) {\r\n        const promise = new Promise((resolve, reject) => {\r\n            const url = URL.createObjectURL(blob);\r\n            // if the file is a pdf, in the end of download is necessary to open it on a new tab\r\n            if (openPDFInTab && fileName.toLowerCase().trim().endsWith('.pdf')) {\r\n                const newWin = window.open(url);\r\n                // if the window was not opened, the user has the popup windows blocked\r\n                // prompt user to allow popup windows\r\n                if (!newWin || newWin.closed || typeof newWin.closed === 'undefined') {\r\n                    this.messagesService.showModal({\r\n                        detail: this.i18nService.get('components.components.RES_Printing_NotAllowPopup'),\r\n                        callbacks: {\r\n                            yes: () => {\r\n                                window.open(url);\r\n                                resolve(true);\r\n                            },\r\n                            no: () => {\r\n                                resolve(false);\r\n                            }\r\n                        }\r\n                    });\r\n                }\r\n                else {\r\n                    resolve(true);\r\n                }\r\n            }\r\n            else {\r\n                const a = document.createElement('a');\r\n                a.href = url;\r\n                a.download = fileName;\r\n                document.body.appendChild(a);\r\n                a.click();\r\n                document.body.removeChild(a);\r\n                URL.revokeObjectURL(url);\r\n                resolve(true);\r\n            }\r\n        });\r\n        return promise;\r\n    }\r\n    getFileNameFromResponse(contentDisposition) {\r\n        let filename;\r\n        const utfFilenameMatch = contentDisposition.match(/filename\\*=(.*?)\\'\\'(.*?)(?=(;|$))/i);\r\n        if (utfFilenameMatch && utfFilenameMatch.length > 2) {\r\n            filename = decodeURIComponent(utfFilenameMatch[2].trim());\r\n        }\r\n        else {\r\n            const regularFilenameMatch = contentDisposition.match(/filename=(.*?)(?=(;|$))/i);\r\n            if (regularFilenameMatch && regularFilenameMatch.length > 1) {\r\n                filename = regularFilenameMatch[1].trim();\r\n            }\r\n            else {\r\n                // Set a default filename if both options fail\r\n                filename = 'filename';\r\n            }\r\n        }\r\n        return filename;\r\n    }\r\n}\r\nDownloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DownloadService, deps: [{ token: i1$4.HttpClient }, { token: i1$2.ImageService }, { token: MessagesService }, { token: i2$3.I18nService }, { token: ExceptionHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DownloadService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DownloadService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: i1$2.ImageService }, { type: MessagesService }, { type: i2$3.I18nService }, { type: ExceptionHandlerService }]; } });\n\nclass DragDropDirective {\r\n    constructor(element) {\r\n        this.element = element;\r\n        this.fileDragged = new EventEmitter();\r\n        this.fileLeaved = new EventEmitter();\r\n        this.fileDropped = new EventEmitter();\r\n    }\r\n    /**\r\n     * Dragover listener\r\n     *\r\n     * @param event drag event\r\n     */\r\n    onDragOver(event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        this.fileDragged.emit();\r\n    }\r\n    /**\r\n     * Dragleave listener\r\n     *\r\n     * @param event drag event\r\n     */\r\n    onDragLeave(event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        if (!this.element.nativeElement.contains(event.relatedTarget)) {\r\n            this.fileLeaved.emit();\r\n        }\r\n    }\r\n    /**\r\n     * Drop listener\r\n     *\r\n     * @param event drag event\r\n     */\r\n    ondrop(event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        const files = event.dataTransfer.files || undefined;\r\n        this.fileDropped.emit(files);\r\n    }\r\n}\r\nDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DragDropDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\r\nDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DragDropDirective, selector: \"[priAppDragDrop]\", outputs: { fileDragged: \"fileDragged\", fileLeaved: \"fileLeaved\", fileDropped: \"fileDropped\" }, host: { listeners: { \"dragover\": \"onDragOver($event)\", \"dragleave\": \"onDragLeave($event)\", \"drop\": \"ondrop($event)\" } }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DragDropDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priAppDragDrop]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { fileDragged: [{\r\n                type: Output\r\n            }], fileLeaved: [{\r\n                type: Output\r\n            }], fileDropped: [{\r\n                type: Output\r\n            }], onDragOver: [{\r\n                type: HostListener,\r\n                args: ['dragover', ['$event']]\r\n            }], onDragLeave: [{\r\n                type: HostListener,\r\n                args: ['dragleave', ['$event']]\r\n            }], ondrop: [{\r\n                type: HostListener,\r\n                args: ['drop', ['$event']]\r\n            }] } });\n\nclass PriImportFileComponent {\r\n    /**\r\n     * Creates an instance of import files component.\r\n     *\r\n     * @param deviceService Service responsible to handles all operations that are about the different devices that users could use\r\n     * @param i18nService Language service\r\n     * @param messagesService Service responsible to launch different type of messages\r\n     * @param broadcastService Service used to broadcast events inside the application\r\n     */\r\n    constructor(deviceService, i18nService, messagesService, broadcastService, downloadService) {\r\n        this.deviceService = deviceService;\r\n        this.i18nService = i18nService;\r\n        this.messagesService = messagesService;\r\n        this.broadcastService = broadcastService;\r\n        this.downloadService = downloadService;\r\n        /**\r\n         * The support file extensions, separated by a ,\r\n         *\r\n         * @usageNotes\r\n         * example: \".zip, .xml, .pdf\"\r\n         */\r\n        this.supportedExtensions = '.zip, .xml, .pdf, .png, .jpg, .jpeg, .json';\r\n        /**\r\n         * Shows a confirmation modal when the user deletes/removes the current selected filed\r\n         */\r\n        this.showDeleteConfirmationModal = true;\r\n        /**\r\n         * The message displayed in the delete confirmation modal\r\n         * default value is 'components.components.RES_Import_File_Confirm_Delete'\r\n         */\r\n        this.deleteConfirmationModalMessage = 'components.components.RES_Import_File_Confirm_Delete';\r\n        /**\r\n         * Emits a value every time the selected file is changed\r\n         */\r\n        this.selectedFileChange = new EventEmitter();\r\n        this.maxFileSizeInMb = 50;\r\n        this.isMobileDevice = this.deviceService.isMobileBrowser();\r\n    }\r\n    set file(value) {\r\n        if ((value && this.checkIsValidFile(value)) || !value) {\r\n            this._file = value;\r\n            this.selectedFileChange.emit(value);\r\n        }\r\n        else {\r\n            this.selectedFileChange.emit(null);\r\n        }\r\n    }\r\n    get file() {\r\n        return this._file;\r\n    }\r\n    ngOnChanges(changes) {\r\n        if (changes['selectedFile'] && changes['selectedFile'].currentValue !== changes['selectedFile'].previousValue) {\r\n            this.file = changes['selectedFile'].currentValue;\r\n        }\r\n    }\r\n    /**\r\n     * Select file\r\n     *\r\n     * @param event File details\r\n     */\r\n    selectFile(event) {\r\n        if (event.target.files.length) {\r\n            this.file = event.target.files[0];\r\n        }\r\n    }\r\n    /**\r\n     * Fires when entering the drag area\r\n     */\r\n    fileDragged() {\r\n        this.dragged = true;\r\n    }\r\n    /**\r\n     * Fires when leaving the drag area\r\n     */\r\n    fileLeaved() {\r\n        this.dragged = false;\r\n    }\r\n    /**\r\n     * Fires when dropping the files\r\n     *\r\n     * @param files the files\r\n     */\r\n    fileDropped(files) {\r\n        this.dragged = false;\r\n        if (files instanceof FileList) {\r\n            if (files.length !== 1) {\r\n                return;\r\n            }\r\n            else {\r\n                this.reset();\r\n                this.file = files[0];\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Remove file\r\n     */\r\n    removeFile() {\r\n        if (this.showDeleteConfirmationModal) {\r\n            this.messagesService.showModal({\r\n                title: this.i18nService.get('components.components.RES_Import_File_Confirm_Delete_Title'),\r\n                detail: this.i18nService.get(this.deleteConfirmationModalMessage),\r\n                callbacks: {\r\n                    yes: () => this.reset(),\r\n                    no: () => { } // do nothing\r\n                }\r\n            });\r\n        }\r\n        else {\r\n            this.reset();\r\n        }\r\n    }\r\n    /**\r\n     * Downloads the selected file\r\n     */\r\n    downloadFile() {\r\n        this.downloadService.openOrDownloadFile(this.file);\r\n    }\r\n    /**\r\n     * Reset views\r\n     */\r\n    reset() {\r\n        this.file = undefined;\r\n        this.inputUploadFile.nativeElement.value = '';\r\n    }\r\n    /**\r\n     * Check if file is valid\r\n     *\r\n     * @param file uploaded file\r\n     */\r\n    checkIsValidFile(file) {\r\n        const extension = '.'.concat(this.getFileExtension(file.name)).toLowerCase();\r\n        const extensions = this.supportedExtensions.split(',').map(item => item.trim());\r\n        if (extensions.indexOf(extension) === -1) {\r\n            this.messagesService.show(new MessageInfo(this.i18nService.get('components.components.RES_Import_File_UnsupportedMediaType'), null, 8 /* MessageType.Error */));\r\n            this.reset();\r\n            return false;\r\n        }\r\n        if (file.size > (this.maxFileSizeInMb * 1024 * 1024)) {\r\n            this.messagesService.show(new MessageInfo(this.i18nService.get('components.components.RES_Import_File_Upload_Error_FileSizeTooBig')\r\n                .replace('{0}', this.maxFileSizeInMb.toString()), null, 8 /* MessageType.Error */));\r\n            this.reset();\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    /**\r\n     * Get the extension of file\r\n     *\r\n     * @param filename the name of file\r\n     */\r\n    getFileExtension(filename) {\r\n        return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename)[0] : undefined;\r\n    }\r\n}\r\nPriImportFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriImportFileComponent, deps: [{ token: i1$2.DeviceService }, { token: i2$3.I18nService }, { token: MessagesService }, { token: i1$2.BroadcastService }, { token: DownloadService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriImportFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriImportFileComponent, selector: \"pri-import-file\", inputs: { supportedExtensions: \"supportedExtensions\", showDeleteConfirmationModal: \"showDeleteConfirmationModal\", deleteConfirmationModalMessage: \"deleteConfirmationModalMessage\", selectedFile: \"selectedFile\", maxFileSizeInMb: \"maxFileSizeInMb\" }, outputs: { selectedFileChange: \"selectedFileChange\" }, viewQueries: [{ propertyName: \"inputUploadFile\", first: true, predicate: [\"inputUploadFile\"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: \"<input #inputUploadFile style=\\\"display: none;\\\" type=\\\"file\\\" accept=\\\"{{supportedExtensions}}\\\"\\r\\n    (change)=\\\"selectFile($event)\\\" />\\r\\n\\r\\n<div priAppDragDrop [ngClass]=\\\"{'drag': dragged}\\\" class=\\\"upload-file-container\\\" [class.has-value]=\\\"file\\\"\\r\\n    (fileDragged)=\\\"fileDragged()\\\" (fileLeaved)=\\\"fileLeaved()\\\" (fileDropped)=\\\"fileDropped($event)\\\">\\r\\n    <div class=\\\"upload-file-icon\\\">\\r\\n        <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 64 64\\\">\\r\\n            <g>\\r\\n                <rect opacity=\\\"0.6\\\" fill=\\\"none\\\" width=\\\"64\\\" height=\\\"64\\\" />\\r\\n                <path class=\\\"folder-icon\\\" d=\\\"M52,20.051V16c0-2.209-1.791-4-4-4H28l-2.828-2.828C24.421,8.421,23.404,8,22.343,8H16\\r\\n                c-2.209,0-4,1.791-4,4v2v6.051c-2.149,0.254-3.752,2.182-3.506,4.391l3.111,28C11.83,54.468,13.542,56,15.58,56h32.84\\r\\n                c2.038,0,3.75-1.532,3.976-3.558l3.111-28C55.752,22.233,54.149,20.305,52,20.051z M16,10h6.343c0.534,0,1.036,0.208,1.414,0.586\\r\\n                L25.172,12H14C14,10.897,14.897,10,16,10z M30,14h18c1.103,0,2,0.897,2,2v4h-4v-3c0-0.552-0.448-1-1-1H19c-0.552,0-1,0.448-1,1v3\\r\\n                h-4v-6H30z M53.519,24.221l-3.111,28C50.295,53.235,49.44,54,48.42,54H15.58c-1.021,0-1.875-0.765-1.988-1.779l-3.111-28\\r\\n                c-0.064-0.573,0.113-1.125,0.497-1.555c0.385-0.43,0.914-0.666,1.49-0.666h39.062c0.577,0,1.106,0.237,1.49,0.666\\r\\n                C53.406,23.096,53.582,23.648,53.519,24.221z\\\" />\\r\\n            </g>\\r\\n        </svg>\\r\\n    </div>\\r\\n    <div *ngIf=\\\"file\\\" class=\\\"file-box-container\\\" [@showFileBox]>\\r\\n        <div class=\\\"file-box\\\">\\r\\n            <span class=\\\"file-name\\\" (click)=\\\"downloadFile()\\\">{{file.name}}</span>\\r\\n            <span class=\\\"file-remove ti-ux-trash\\\" (click)=\\\"removeFile()\\\" container=\\\"body\\\"\\r\\n                triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"></span>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div class=\\\"upload-file-text\\\" *ngIf=\\\"!file\\\">{{'components.components.RES_Import_File_Placeholder' | priI18n}}</div>\\r\\n    <div class=\\\"upload-file-container-actions\\\" *ngIf=\\\"!file\\\">\\r\\n        <div>\\r\\n            <button class=\\\"btn pri-btn-primary outline transparent\\\" [disabled]=\\\"file ? true : false\\\"\\r\\n                (click)=\\\"inputUploadFile.click()\\\">\\r\\n                <span>{{'components.components.RES_Import_File_SelectFile' | priI18n }}</span>\\r\\n            </button>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-import-file{display:flex;width:100%}pri-import-file .upload-file-container{display:flex;align-items:center;overflow:hidden;width:100%;background-color:var(--grey-1);border:1px dashed var(--grey-4);padding:10px 8px}pri-import-file .upload-file-container.drag{background-color:var(--grey-4);border-color:var(--theme-100)}pri-import-file .upload-file-container.has-value{background-color:var(--grey-4);border-style:solid;color:var(--grey-8)}pri-import-file .upload-file-container .upload-file-icon{width:32px;height:32px;flex-shrink:0;margin-right:8px}pri-import-file .upload-file-container .upload-file-icon .folder-icon{fill:var(--grey-8)}pri-import-file .upload-file-container .file-box-container{display:flex;align-items:center;overflow:hidden;width:100%}pri-import-file .upload-file-container .file-box-container .file-box{display:flex;flex-shrink:0;align-items:center;position:relative;width:100%;height:32px;padding:5px;font-size:11pt;border-bottom:1px solid var(--grey-4);margin-right:8px;overflow:hidden}pri-import-file .upload-file-container .file-box-container .file-box .file-name{width:calc(100% - 28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}pri-import-file .upload-file-container .file-box-container .file-box .file-name:hover{cursor:pointer}pri-import-file .upload-file-container .file-box-container .file-box .file-remove{position:absolute;right:4px;cursor:pointer;color:var(--grey-8);font-size:16px;padding:4px;border-radius:100%}pri-import-file .upload-file-container .file-box-container .file-box .file-remove:hover{background-color:var(--grey-4)}pri-import-file .upload-file-container .upload-file-container-actions{display:flex;margin-left:auto}pri-import-file .upload-file-container .upload-file-container-actions .pri-btn-primary{height:32px;margin:0}pri-import-file .upload-file-container .upload-file-text{color:var(--grey-8);padding-right:5px}@media only screen and (max-width: 767px){pri-import-file .upload-file-container{padding:8px}pri-import-file .upload-file-container .file-box-container{width:100%;flex-direction:column;align-items:flex-start}pri-import-file .upload-file-container .file-box-container .file-box{width:100%;max-width:300px;margin-right:0;margin-bottom:8px}pri-import-file .upload-file-container .upload-file-container-actions{margin-left:8px}}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: DragDropDirective, selector: \"[priAppDragDrop]\", outputs: [\"fileDragged\", \"fileLeaved\", \"fileDropped\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('showFileBox', [\r\n            transition(':enter', [\r\n                style({ width: 0, opacity: .5 }),\r\n                animate('0.4s ease', style({ width: '100%', opacity: 1 }))\r\n            ]),\r\n            transition(':leave', [\r\n                animate('0.25s ease', style({ width: 0, opacity: .2 }))\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriImportFileComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-import-file', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('showFileBox', [\r\n                            transition(':enter', [\r\n                                style({ width: 0, opacity: .5 }),\r\n                                animate('0.4s ease', style({ width: '100%', opacity: 1 }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                animate('0.25s ease', style({ width: 0, opacity: .2 }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<input #inputUploadFile style=\\\"display: none;\\\" type=\\\"file\\\" accept=\\\"{{supportedExtensions}}\\\"\\r\\n    (change)=\\\"selectFile($event)\\\" />\\r\\n\\r\\n<div priAppDragDrop [ngClass]=\\\"{'drag': dragged}\\\" class=\\\"upload-file-container\\\" [class.has-value]=\\\"file\\\"\\r\\n    (fileDragged)=\\\"fileDragged()\\\" (fileLeaved)=\\\"fileLeaved()\\\" (fileDropped)=\\\"fileDropped($event)\\\">\\r\\n    <div class=\\\"upload-file-icon\\\">\\r\\n        <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 64 64\\\">\\r\\n            <g>\\r\\n                <rect opacity=\\\"0.6\\\" fill=\\\"none\\\" width=\\\"64\\\" height=\\\"64\\\" />\\r\\n                <path class=\\\"folder-icon\\\" d=\\\"M52,20.051V16c0-2.209-1.791-4-4-4H28l-2.828-2.828C24.421,8.421,23.404,8,22.343,8H16\\r\\n                c-2.209,0-4,1.791-4,4v2v6.051c-2.149,0.254-3.752,2.182-3.506,4.391l3.111,28C11.83,54.468,13.542,56,15.58,56h32.84\\r\\n                c2.038,0,3.75-1.532,3.976-3.558l3.111-28C55.752,22.233,54.149,20.305,52,20.051z M16,10h6.343c0.534,0,1.036,0.208,1.414,0.586\\r\\n                L25.172,12H14C14,10.897,14.897,10,16,10z M30,14h18c1.103,0,2,0.897,2,2v4h-4v-3c0-0.552-0.448-1-1-1H19c-0.552,0-1,0.448-1,1v3\\r\\n                h-4v-6H30z M53.519,24.221l-3.111,28C50.295,53.235,49.44,54,48.42,54H15.58c-1.021,0-1.875-0.765-1.988-1.779l-3.111-28\\r\\n                c-0.064-0.573,0.113-1.125,0.497-1.555c0.385-0.43,0.914-0.666,1.49-0.666h39.062c0.577,0,1.106,0.237,1.49,0.666\\r\\n                C53.406,23.096,53.582,23.648,53.519,24.221z\\\" />\\r\\n            </g>\\r\\n        </svg>\\r\\n    </div>\\r\\n    <div *ngIf=\\\"file\\\" class=\\\"file-box-container\\\" [@showFileBox]>\\r\\n        <div class=\\\"file-box\\\">\\r\\n            <span class=\\\"file-name\\\" (click)=\\\"downloadFile()\\\">{{file.name}}</span>\\r\\n            <span class=\\\"file-remove ti-ux-trash\\\" (click)=\\\"removeFile()\\\" container=\\\"body\\\"\\r\\n                triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"></span>\\r\\n        </div>\\r\\n    </div>\\r\\n    <div class=\\\"upload-file-text\\\" *ngIf=\\\"!file\\\">{{'components.components.RES_Import_File_Placeholder' | priI18n}}</div>\\r\\n    <div class=\\\"upload-file-container-actions\\\" *ngIf=\\\"!file\\\">\\r\\n        <div>\\r\\n            <button class=\\\"btn pri-btn-primary outline transparent\\\" [disabled]=\\\"file ? true : false\\\"\\r\\n                (click)=\\\"inputUploadFile.click()\\\">\\r\\n                <span>{{'components.components.RES_Import_File_SelectFile' | priI18n }}</span>\\r\\n            </button>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-import-file{display:flex;width:100%}pri-import-file .upload-file-container{display:flex;align-items:center;overflow:hidden;width:100%;background-color:var(--grey-1);border:1px dashed var(--grey-4);padding:10px 8px}pri-import-file .upload-file-container.drag{background-color:var(--grey-4);border-color:var(--theme-100)}pri-import-file .upload-file-container.has-value{background-color:var(--grey-4);border-style:solid;color:var(--grey-8)}pri-import-file .upload-file-container .upload-file-icon{width:32px;height:32px;flex-shrink:0;margin-right:8px}pri-import-file .upload-file-container .upload-file-icon .folder-icon{fill:var(--grey-8)}pri-import-file .upload-file-container .file-box-container{display:flex;align-items:center;overflow:hidden;width:100%}pri-import-file .upload-file-container .file-box-container .file-box{display:flex;flex-shrink:0;align-items:center;position:relative;width:100%;height:32px;padding:5px;font-size:11pt;border-bottom:1px solid var(--grey-4);margin-right:8px;overflow:hidden}pri-import-file .upload-file-container .file-box-container .file-box .file-name{width:calc(100% - 28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}pri-import-file .upload-file-container .file-box-container .file-box .file-name:hover{cursor:pointer}pri-import-file .upload-file-container .file-box-container .file-box .file-remove{position:absolute;right:4px;cursor:pointer;color:var(--grey-8);font-size:16px;padding:4px;border-radius:100%}pri-import-file .upload-file-container .file-box-container .file-box .file-remove:hover{background-color:var(--grey-4)}pri-import-file .upload-file-container .upload-file-container-actions{display:flex;margin-left:auto}pri-import-file .upload-file-container .upload-file-container-actions .pri-btn-primary{height:32px;margin:0}pri-import-file .upload-file-container .upload-file-text{color:var(--grey-8);padding-right:5px}@media only screen and (max-width: 767px){pri-import-file .upload-file-container{padding:8px}pri-import-file .upload-file-container .file-box-container{width:100%;flex-direction:column;align-items:flex-start}pri-import-file .upload-file-container .file-box-container .file-box{width:100%;max-width:300px;margin-right:0;margin-bottom:8px}pri-import-file .upload-file-container .upload-file-container-actions{margin-left:8px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.DeviceService }, { type: i2$3.I18nService }, { type: MessagesService }, { type: i1$2.BroadcastService }, { type: DownloadService }]; }, propDecorators: { inputUploadFile: [{\r\n                type: ViewChild,\r\n                args: ['inputUploadFile', { static: true }]\r\n            }], supportedExtensions: [{\r\n                type: Input\r\n            }], showDeleteConfirmationModal: [{\r\n                type: Input\r\n            }], deleteConfirmationModalMessage: [{\r\n                type: Input\r\n            }], selectedFile: [{\r\n                type: Input\r\n            }], selectedFileChange: [{\r\n                type: Output\r\n            }], maxFileSizeInMb: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Model of the edition history event\r\n */\r\nclass EditionHistoryEventModel {\r\n    /**\r\n     * Constructs the DropDownEditionHistoryItem\r\n     *\r\n     * @param author author of the edition\r\n     * @param date date of the edition\r\n     * @param title title of the edition\r\n     */\r\n    constructor(author, date, title) {\r\n        this.author = author;\r\n        this.date = date;\r\n        this.title = title;\r\n    }\r\n}\n\n/**\r\n * Responsible to handle the events of the edition history menu\r\n */\r\nclass EditionHistoryEventService {\r\n    constructor() {\r\n        this.event = new Subject();\r\n    }\r\n    /**\r\n     * Dispatches an event\r\n     *\r\n     * @param event\r\n     */\r\n    onEvent(event) {\r\n        this.event.next(event);\r\n    }\r\n    /**\r\n     * return the event\r\n     */\r\n    getOnEvent() {\r\n        return this.event.asObservable();\r\n    }\r\n    /**\r\n     * Unsubscribe event\r\n     */\r\n    unsubscribe() {\r\n        delete this.event;\r\n    }\r\n}\r\nEditionHistoryEventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EditionHistoryEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nEditionHistoryEventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EditionHistoryEventService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EditionHistoryEventService, decorators: [{\r\n            type: Injectable,\r\n            args: [{ providedIn: 'root' }]\r\n        }] });\n\n/**\r\n * Model of the drop down edition history item\r\n */\r\nclass DropDownEditionHistoryItemModel {\r\n    /**\r\n     * Constructs the DropDownEditionHistoryItem\r\n     *\r\n     * @param title item title\r\n     * @param author author of the edition\r\n     * @param date date of the edition\r\n     * @param action action to make\r\n     */\r\n    constructor(title, author, date, action) {\r\n        this.title = title;\r\n        this.author = author;\r\n        this.date = date;\r\n        this.dataLoaded = false;\r\n        this.action = action;\r\n    }\r\n}\n\n/**\r\n * Model that has several EditionHistoryEventModel and helps handle it\r\n */\r\nclass EditionHistoryEventsModel {\r\n    /**\r\n     * Constructs the EditionHistoryEventsModel\r\n     *\r\n     * @param i18nService Language Service\r\n     * @param outlet Outlet which the event was emitted from.\r\n     */\r\n    constructor(i18nService, outlet = \"primary\" /* OutletEnum.Primary */) {\r\n        this.i18nService = i18nService;\r\n        this.editionHistoryEvent = new Array();\r\n        this.outlet = outlet;\r\n    }\r\n    /**\r\n     * Adds a new edition history event\r\n     *\r\n     * @param event edition history event model\r\n     */\r\n    add(event) {\r\n        this.editionHistoryEvent.push(event);\r\n        this.editionHistoryEvent.sort((a, b) => a.date.getTime() - b.date.getTime());\r\n    }\r\n    /**\r\n     * Removes a new edition history event\r\n     *\r\n     * @param event edition history event model\r\n     */\r\n    remove(event) {\r\n        this.editionHistoryEvent = this.editionHistoryEvent.filter(e => e.author !== event.author && e.date !== event.date);\r\n    }\r\n    /**\r\n     * Gets all edition history events\r\n     *\r\n     * @returns return an array that contains all edition history events\r\n     */\r\n    get() {\r\n        return this.editionHistoryEvent;\r\n    }\r\n    /**\r\n     * Gets an drop down edition history items by converting an event to an item\r\n     *\r\n     * @return drop down edition history item\r\n     */\r\n    getDropDownEditionHistoryItems() {\r\n        const dropDownEditionHistoryItem = new Array();\r\n        this.editionHistoryEvent.forEach((event, index) => {\r\n            if (!event.title) {\r\n                if (index === 0) {\r\n                    event.title = this.i18nService.get('ngcore.components.RES_EditionHistory_CreatedBy');\r\n                }\r\n                else if (index === this.editionHistoryEvent.length - 1) {\r\n                    event.title = this.i18nService.get('ngcore.components.RES_EditionHistory_LastEdition');\r\n                }\r\n                else {\r\n                    event.title = this.i18nService.get('ngcore.components.RES_EditionHistory_ModifiedBy');\r\n                }\r\n            }\r\n            dropDownEditionHistoryItem.push(new DropDownEditionHistoryItemModel(event.title, event.author, event.date));\r\n        });\r\n        return dropDownEditionHistoryItem;\r\n    }\r\n}\n\nclass DropDownMenuItem {\r\n    constructor(dropDownMenuItem) {\r\n        if (dropDownMenuItem) {\r\n            Object.assign(this, dropDownMenuItem);\r\n        }\r\n    }\r\n}\n\nclass ReplacePipe {\r\n    /**\r\n     * Replaces text in a string.\r\n     *\r\n     * @param value The string to replace text in.\r\n     * @param searchValue The string to search for.\r\n     * @param replaceValue The string to replace the search value with.\r\n     *\r\n     * @example\r\n     * ```html\r\n     * <span>\r\n     * \t{{ 'text {0}' | replace : '{0}' : '1' }}\r\n     * </span>\r\n     * ```\r\n     */\r\n    transform(value, searchValue, replaceValue) {\r\n        return value?.replace(searchValue, replaceValue);\r\n    }\r\n}\r\nReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ReplacePipe, isStandalone: true, name: \"replace\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReplacePipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'replace',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\nclass FormControlErrorComponent {\r\n    constructor(formGroupDirective) {\r\n        this.formGroupDirective = formGroupDirective;\r\n        this.invalid$ = new BehaviorSubject(false);\r\n        this.touched$ = new BehaviorSubject(false);\r\n        this.dirty$ = new BehaviorSubject(false);\r\n        this.firstError$ = new BehaviorSubject(null);\r\n        this.destroy$ = new Subject();\r\n    }\r\n    /**\r\n     * The form group instance.\r\n     */\r\n    get form() {\r\n        return this.formInstance || this.formGroupDirective?.form;\r\n    }\r\n    /**\r\n     * The form control instance.\r\n     */\r\n    get formControl() {\r\n        return this.form?.controls?.[this.controlName];\r\n    }\r\n    ngOnInit() {\r\n        this.checkRequiredInputs();\r\n        this.checkFormState();\r\n        this.setInvalidState(this.formControl.invalid);\r\n        this.setTouchedState(this.formControl.touched);\r\n        this.setDirtyState(this.formControl.dirty);\r\n        this.setFirstError(this.formControl.status, this.formControl.errors);\r\n        this.listenFormControlStatusChanges();\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    /**\r\n     * Validates required input values.\r\n     */\r\n    checkRequiredInputs() {\r\n        if (!this.controlName) {\r\n            throw new Error('Could not find a valid value to @Input() property \"controlName\".');\r\n        }\r\n    }\r\n    /**\r\n     * Validates form and control instances.\r\n     */\r\n    checkFormState() {\r\n        if (!this.form) {\r\n            throw new Error('Could not find a valid form instance. This component must be used in a form context.');\r\n        }\r\n        if (!this.formControl) {\r\n            throw new Error(`Could not find a valid form control instance. Make sure your form has a control named \"${this.controlName}\".`);\r\n        }\r\n    }\r\n    /**\r\n     * Listens changes in form control status to update the related states.\r\n     */\r\n    listenFormControlStatusChanges() {\r\n        /**\r\n         * [ALERT]\r\n         * The changes must be listen in formGroup status and not in formControl status.\r\n         *\r\n         * The reason for this is: We need to update the form control state changes (touched, dirty and invalid).\r\n         * But angular don't give a easy way to observes these changes.\r\n         * Then, the most common way is:\r\n         * - Considering the developers call \"form.updateValueAndValidity\" on form submit with \"emitEvent\" flag as true...\r\n         * - We can observes it and updates these states after that.\r\n         *\r\n         * Maybe it can change in the future.\r\n         */\r\n        const formStatusChanges$ = this.form.statusChanges;\r\n        formStatusChanges$.pipe(takeUntil(this.destroy$)).subscribe((status) => {\r\n            this.setInvalidState(this.formControl.invalid);\r\n            this.setTouchedState(this.formControl.touched);\r\n            this.setDirtyState(this.formControl.dirty);\r\n            this.setFirstError(status, this.formControl.errors);\r\n        });\r\n    }\r\n    /**\r\n     * Set the value of \"invalid$\" observable.\r\n     */\r\n    setInvalidState(invalid) {\r\n        if (this.invalid$.getValue() !== invalid) {\r\n            this.invalid$.next(invalid);\r\n        }\r\n    }\r\n    /**\r\n     * Set the value of \"touched$\" observable.\r\n     */\r\n    setTouchedState(touched) {\r\n        if (this.touched$.getValue() !== touched) {\r\n            this.touched$.next(touched);\r\n        }\r\n    }\r\n    /**\r\n     * Set the value of \"dirty$\" observable.\r\n     */\r\n    setDirtyState(dirty) {\r\n        if (this.dirty$.getValue() !== dirty) {\r\n            this.dirty$.next(dirty);\r\n        }\r\n    }\r\n    /**\r\n     * Set the value of \"firstError$\" observable.\r\n     *\r\n     * @param formControlStatus The form control status.\r\n     */\r\n    setFirstError(formControlStatus, formControlErrors) {\r\n        if (this.formControl.status === 'VALID') {\r\n            this.firstError$.next(null);\r\n            return;\r\n        }\r\n        if (formControlStatus === 'INVALID' && Boolean(formControlErrors)) {\r\n            const firstErrorKey = Object.keys(formControlErrors)[0];\r\n            const firstErrorValue = formControlErrors[firstErrorKey];\r\n            const currentFirstError = this.firstError$.getValue();\r\n            if (currentFirstError?.key !== firstErrorKey || currentFirstError?.value !== firstErrorValue) {\r\n                this.firstError$.next({\r\n                    key: firstErrorKey,\r\n                    value: firstErrorValue\r\n                });\r\n            }\r\n        }\r\n    }\r\n}\r\nFormControlErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormControlErrorComponent, deps: [{ token: i1$3.FormGroupDirective }], target: i0.ɵɵFactoryTarget.Component });\r\nFormControlErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormControlErrorComponent, isStandalone: true, selector: \"pri-form-control-error\", inputs: { controlName: \"controlName\", formInstance: \"formInstance\" }, providers: [importProvidersFrom(PrimaveraI18nModule.forRoot()).ɵproviders], ngImport: i0, template: \"<ng-container *ngIf=\\\"(invalid$ | async) && (touched$ | async) && (dirty$ | async)\\\">\\r\\n\\t<div *ngIf=\\\"firstError$ | async as firstError\\\" [ngSwitch]=\\\"firstError.key\\\" class=\\\"form-control-error-container\\\">\\r\\n\\t\\t<span *ngSwitchCase=\\\"'required'\\\">{{ 'components.components.RES_Form_Control_Error_Required' | priI18n }}</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'email'\\\">{{ 'components.components.RES_Form_Control_Error_Email' | priI18n }}</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'maxlength'\\\">\\r\\n\\t\\t\\t{{\\r\\n\\t\\t\\t\\t'components.components.RES_Form_Control_Error_MaxLength'\\r\\n\\t\\t\\t\\t\\t| priI18n\\r\\n\\t\\t\\t\\t\\t| replace : '{0}' : firstError.value?.requiredLength\\r\\n\\t\\t\\t}}\\r\\n\\t\\t</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'minlength'\\\">\\r\\n\\t\\t\\t{{\\r\\n\\t\\t\\t\\t'components.components.RES_Form_Control_Error_MinLength'\\r\\n\\t\\t\\t\\t\\t| priI18n\\r\\n\\t\\t\\t\\t\\t| replace : '{0}' : firstError.value?.requiredLength\\r\\n\\t\\t\\t}}\\r\\n\\t\\t</span>\\r\\n\\t\\t<div *ngSwitchDefault>\\r\\n\\t\\t\\t<span *ngIf=\\\"firstError.value?.errorMessage\\\">\\r\\n\\t\\t\\t\\t{{ firstError.value.errorMessage | priI18n | replace : '{0}' : firstError.value?.requiredValue }}\\r\\n\\t\\t\\t</span>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-form-control-error{height:.75rem}pri-form-control-error .form-control-error-container span{font-size:.75rem;color:var(--error-100)}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { kind: \"directive\", type: i1$1.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { kind: \"directive\", type: i1$1.NgSwitchDefault, selector: \"[ngSwitchDefault]\" }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: ReplacePipe, name: \"replace\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormControlErrorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-form-control-error', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, PrimaveraI18nModule, ReplacePipe], providers: [importProvidersFrom(PrimaveraI18nModule.forRoot()).ɵproviders], template: \"<ng-container *ngIf=\\\"(invalid$ | async) && (touched$ | async) && (dirty$ | async)\\\">\\r\\n\\t<div *ngIf=\\\"firstError$ | async as firstError\\\" [ngSwitch]=\\\"firstError.key\\\" class=\\\"form-control-error-container\\\">\\r\\n\\t\\t<span *ngSwitchCase=\\\"'required'\\\">{{ 'components.components.RES_Form_Control_Error_Required' | priI18n }}</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'email'\\\">{{ 'components.components.RES_Form_Control_Error_Email' | priI18n }}</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'maxlength'\\\">\\r\\n\\t\\t\\t{{\\r\\n\\t\\t\\t\\t'components.components.RES_Form_Control_Error_MaxLength'\\r\\n\\t\\t\\t\\t\\t| priI18n\\r\\n\\t\\t\\t\\t\\t| replace : '{0}' : firstError.value?.requiredLength\\r\\n\\t\\t\\t}}\\r\\n\\t\\t</span>\\r\\n\\t\\t<span *ngSwitchCase=\\\"'minlength'\\\">\\r\\n\\t\\t\\t{{\\r\\n\\t\\t\\t\\t'components.components.RES_Form_Control_Error_MinLength'\\r\\n\\t\\t\\t\\t\\t| priI18n\\r\\n\\t\\t\\t\\t\\t| replace : '{0}' : firstError.value?.requiredLength\\r\\n\\t\\t\\t}}\\r\\n\\t\\t</span>\\r\\n\\t\\t<div *ngSwitchDefault>\\r\\n\\t\\t\\t<span *ngIf=\\\"firstError.value?.errorMessage\\\">\\r\\n\\t\\t\\t\\t{{ firstError.value.errorMessage | priI18n | replace : '{0}' : firstError.value?.requiredValue }}\\r\\n\\t\\t\\t</span>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-form-control-error{height:.75rem}pri-form-control-error .form-control-error-container span{font-size:.75rem;color:var(--error-100)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$3.FormGroupDirective }]; }, propDecorators: { controlName: [{\r\n                type: Input\r\n            }], formInstance: [{\r\n                type: Input\r\n            }] } });\n\nclass FormFieldComponent {\r\n    constructor() {\r\n        this.reserveLabelSpace = false;\r\n        this.isRequired$ = new BehaviorSubject(false);\r\n        this.destroy$ = new Subject();\r\n        this.formGroupDirective = inject(FormGroupDirective, { optional: true });\r\n    }\r\n    ngOnInit() {\r\n        if (this.formGroupDirective) {\r\n            this.parentForm = this.formGroupDirective.form;\r\n            this.checkIfRequired();\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    /**\r\n     * Checks if a form field is required by checking if it has the 'required' validator on the parent form.\r\n     * It updates the 'isRequired$' behavior subject with the state.\r\n     */\r\n    checkIfRequired() {\r\n        if (this.parentForm?.controls.hasOwnProperty(this.controlName)) {\r\n            const control = this.parentForm.get(this.controlName);\r\n            const isRequired = control.hasValidator(Validators.required) || control.hasValidator(Validators.requiredTrue);\r\n            this.isRequired$.next(isRequired);\r\n        }\r\n    }\r\n}\r\nFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormFieldComponent, isStandalone: true, selector: \"pri-form-field\", inputs: { controlName: \"controlName\", reserveLabelSpace: \"reserveLabelSpace\" }, ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"form-field-container\\\"\\r\\n\\t[class.reserve-label-space]=\\\"reserveLabelSpace\\\"\\r\\n\\t[class.required]=\\\"isRequired$ | async\\\">\\r\\n\\t<ng-content select=\\\"[label], label\\\"></ng-content>\\r\\n\\t<ng-content\\r\\n\\t\\tselect=\\\"[formControlName], [control], pri-input, pri-translation, pri-select-box, pri-checkbox, pri-radio-button-group\\\"></ng-content>\\r\\n\\t<ng-content select=\\\"[errorMessage], pri-form-control-error\\\"></ng-content>\\r\\n\\t<ng-content select=\\\"[action], pri-button, button\\\"></ng-content>\\r\\n</div>\\r\\n\", styles: [\"pri-form-field .form-field-container{display:flex;flex-wrap:nowrap;flex-direction:column;justify-content:center;gap:.25rem;height:100%;width:100%;padding:.5rem 0px}pri-form-field .form-field-container label,pri-form-field .form-field-container [label]{color:var(--grey-7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-form-field .form-field-container.required label:after,pri-form-field .form-field-container.required [label]:after{content:\\\" *\\\";color:var(--error-100)}pri-form-field .form-field-container.reserve-label-space{margin-top:.7142857143rem}pri-form-field .form-field-container .form-field-label-hint-container{display:flex;align-items:center;flex-direction:row;gap:5px}pri-form-field .form-field-container .form-field-label-hint-container label,pri-form-field .form-field-container .form-field-label-hint-container [label]{color:var(--grey-7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormFieldComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-form-field', standalone: true, imports: [CommonModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div\\r\\n\\tclass=\\\"form-field-container\\\"\\r\\n\\t[class.reserve-label-space]=\\\"reserveLabelSpace\\\"\\r\\n\\t[class.required]=\\\"isRequired$ | async\\\">\\r\\n\\t<ng-content select=\\\"[label], label\\\"></ng-content>\\r\\n\\t<ng-content\\r\\n\\t\\tselect=\\\"[formControlName], [control], pri-input, pri-translation, pri-select-box, pri-checkbox, pri-radio-button-group\\\"></ng-content>\\r\\n\\t<ng-content select=\\\"[errorMessage], pri-form-control-error\\\"></ng-content>\\r\\n\\t<ng-content select=\\\"[action], pri-button, button\\\"></ng-content>\\r\\n</div>\\r\\n\", styles: [\"pri-form-field .form-field-container{display:flex;flex-wrap:nowrap;flex-direction:column;justify-content:center;gap:.25rem;height:100%;width:100%;padding:.5rem 0px}pri-form-field .form-field-container label,pri-form-field .form-field-container [label]{color:var(--grey-7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-form-field .form-field-container.required label:after,pri-form-field .form-field-container.required [label]:after{content:\\\" *\\\";color:var(--error-100)}pri-form-field .form-field-container.reserve-label-space{margin-top:.7142857143rem}pri-form-field .form-field-container .form-field-label-hint-container{display:flex;align-items:center;flex-direction:row;gap:5px}pri-form-field .form-field-container .form-field-label-hint-container label,pri-form-field .form-field-container .form-field-label-hint-container [label]{color:var(--grey-7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\\n\"] }]\r\n        }], propDecorators: { controlName: [{\r\n                type: Input\r\n            }], reserveLabelSpace: [{\r\n                type: Input\r\n            }] } });\n\n/* Defines the type of the input */\r\nvar InputTypeEnum;\r\n(function (InputTypeEnum) {\r\n    InputTypeEnum[\"Button\"] = \"button\";\r\n    InputTypeEnum[\"Checkbox\"] = \"checkbox\";\r\n    InputTypeEnum[\"Color\"] = \"color\";\r\n    InputTypeEnum[\"Date\"] = \"date\";\r\n    InputTypeEnum[\"DateTimeLocal\"] = \"datetime-local\";\r\n    InputTypeEnum[\"Email\"] = \"email\";\r\n    InputTypeEnum[\"File\"] = \"file\";\r\n    InputTypeEnum[\"Hidden\"] = \"hidden\";\r\n    InputTypeEnum[\"Image\"] = \"image\";\r\n    InputTypeEnum[\"Month\"] = \"month\";\r\n    InputTypeEnum[\"Num\"] = \"number\";\r\n    InputTypeEnum[\"Password\"] = \"password\";\r\n    InputTypeEnum[\"Radio\"] = \"radio\";\r\n    InputTypeEnum[\"Range\"] = \"range\";\r\n    InputTypeEnum[\"Reset\"] = \"reset\";\r\n    InputTypeEnum[\"Search\"] = \"search\";\r\n    InputTypeEnum[\"Submit\"] = \"submit\";\r\n    InputTypeEnum[\"Tel\"] = \"tel\";\r\n    InputTypeEnum[\"Text\"] = \"text\";\r\n    InputTypeEnum[\"Time\"] = \"time\";\r\n    InputTypeEnum[\"Url\"] = \"url\";\r\n    InputTypeEnum[\"Week\"] = \"week\";\r\n})(InputTypeEnum || (InputTypeEnum = {}));\n\n/** The input options */\r\nclass InputOptions {\r\n    constructor(input) {\r\n        this.type = InputTypeEnum.Text;\r\n        /** The size of the input */\r\n        this.size = FieldsSizeEnum.Regular;\r\n        if (input) {\r\n            Object.assign(this, input);\r\n        }\r\n    }\r\n}\n\n/**\r\n * Checks if an input type is linkable or not.\r\n */\r\nclass IsLinkInputTypePipe {\r\n    transform(inputType) {\r\n        switch (inputType) {\r\n            case InputTypeEnum.Email:\r\n            case InputTypeEnum.Tel:\r\n            case InputTypeEnum.Url:\r\n                return true;\r\n            default:\r\n                return false;\r\n        }\r\n    }\r\n}\r\nIsLinkInputTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IsLinkInputTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nIsLinkInputTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: IsLinkInputTypePipe, isStandalone: true, name: \"isLinkInputType\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IsLinkInputTypePipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'isLinkInputType',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\n/**\r\n * Checks if an input type is linkable or not.\r\n */\r\nclass LinkInputHrefPipe {\r\n    transform(value, inputType) {\r\n        switch (inputType) {\r\n            case InputTypeEnum.Email:\r\n                return `mailto:${value}`;\r\n            case InputTypeEnum.Tel:\r\n                return `tel:${value}`;\r\n            default:\r\n                return value;\r\n        }\r\n    }\r\n}\r\nLinkInputHrefPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LinkInputHrefPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nLinkInputHrefPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: LinkInputHrefPipe, isStandalone: true, name: \"linkInputHref\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LinkInputHrefPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'linkInputHref',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\nclass InputComponent {\r\n    constructor(changeDetection) {\r\n        this.changeDetection = changeDetection;\r\n        this.valueChange = new EventEmitter();\r\n        /** The action that will be triggered when clicking on the detail label. */\r\n        this.detailClick = new EventEmitter();\r\n        this.isDisabled$ = new BehaviorSubject(false);\r\n        this.InputTypeEnum = InputTypeEnum;\r\n        this._options = new InputOptions();\r\n    }\r\n    set options(options) {\r\n        this._options = new InputOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    set value(value) {\r\n        this._value = value;\r\n        // Must perform change detection to ensure the rightly work of form value changes/reset\r\n        this.changeDetection.detectChanges();\r\n    }\r\n    get value() {\r\n        return this._value;\r\n    }\r\n    set isDisabled(value) {\r\n        this.isDisabled$.next(value);\r\n    }\r\n    // #region ControlValueAccessor methods\r\n    registerOnChange(fn) {\r\n        this.onChanged = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    writeValue(value) {\r\n        this.value = value;\r\n    }\r\n    setDisabledState(isDisabled) {\r\n        this.isDisabled = isDisabled;\r\n        // Must perform change detection to ensure the rightly work of form value changes/reset\r\n        this.changeDetection.detectChanges();\r\n    }\r\n    // #endregion\r\n    // responsible for clearing the input's value, calling the modelChange() method right after.\r\n    clearValue() {\r\n        this.modelChange('');\r\n        this.input?.nativeElement.focus();\r\n    }\r\n    // responsible for emitting the current input's value when we change it.\r\n    modelChange(value) {\r\n        this.value = value;\r\n        this.valueChange.emit(value);\r\n        this.onChanged?.(value);\r\n        this.onTouched?.();\r\n    }\r\n    // responsible for emitting the action sent to the component\r\n    onDetailClick() {\r\n        this.onTouched?.();\r\n        this.detailClick?.emit();\r\n    }\r\n    // responsible for showing the value of an input with the 'password' type\r\n    showPassword(event) {\r\n        console.log('TODO: show password', event);\r\n    }\r\n}\r\nInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: InputComponent, isStandalone: true, selector: \"pri-input\", inputs: { options: \"options\", tooltip: \"tooltip\", value: \"value\", isDisabled: \"isDisabled\" }, outputs: { valueChange: \"valueChange\", detailClick: \"detailClick\" }, providers: [\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => InputComponent),\r\n            multi: true\r\n        }\r\n    ], viewQueries: [{ propertyName: \"input\", first: true, predicate: [\"input\"], descendants: true }], ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"input-field-wrapper {{ options.size }}\\\"\\r\\n\\t[class.disabled]=\\\"(isDisabled$ | async) || null\\\"\\r\\n\\t[class.has-detail]=\\\"options.detailLabel ? true : false\\\"\\r\\n\\tdata-testid=\\\"inputComponent\\\"\\r\\n\\t[matTooltip]=\\\"tooltip || null\\\"\\r\\n\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\tmatTooltipTouchGestures=\\\"on\\\">\\r\\n\\t<i *ngIf=\\\"options.type !== InputTypeEnum.Password && options.icon\\\" class=\\\"{{ options.icon }}\\\"></i>\\r\\n\\t<i *ngIf=\\\"options.type === InputTypeEnum.Password\\\" class=\\\"ti-ux-lock\\\"></i>\\r\\n\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"(isDisabled$ | async) === true && (options.type | isLinkInputType); else inputTemplate\\\"\\r\\n\\t\\t[href]=\\\"value | linkInputHref : options.type\\\"\\r\\n\\t\\tclass=\\\"input-clickable\\\"\\r\\n\\t\\t[target]=\\\"options.type === InputTypeEnum.Url ? '_blank' : '_self'\\\"\\r\\n\\t\\tpriTooltipHover>\\r\\n\\t\\t{{ value }}\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Clean input button -->\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"value && (isDisabled$ | async) === false && !options.detailLabel\\\"\\r\\n\\t\\tclass=\\\"clear-value-btn ti-ux-close\\\"\\r\\n\\t\\t(click)=\\\"clearValue()\\\"></div>\\r\\n\\r\\n\\t<!-- Input detail button -->\\r\\n\\t<button\\r\\n\\t\\t#detailLabel\\r\\n\\t\\t*ngIf=\\\"options.detailLabel\\\"\\r\\n\\t\\ttype=\\\"button\\\"\\r\\n\\t\\tclass=\\\"input-detail\\\"\\r\\n\\t\\t(click)=\\\"onDetailClick()\\\"\\r\\n\\t\\tpriTooltipHover>\\r\\n\\t\\t{{ options.detailLabel }}\\r\\n\\t</button>\\r\\n\\r\\n\\t<!--Show password button -->\\r\\n\\t<button\\r\\n\\t\\t*ngIf=\\\"options.type === InputTypeEnum.Password\\\"\\r\\n\\t\\ttype=\\\"button\\\"\\r\\n\\t\\tclass=\\\"show-password ti-ux-overview-outline\\\"\\r\\n\\t\\t(click)=\\\"showPassword($event)\\\"></button>\\r\\n</div>\\r\\n\\r\\n<ng-template #inputTemplate>\\r\\n\\t<input\\r\\n\\t\\t#input\\r\\n\\t\\t[attr.tabindex]=\\\"options.detailLabel ? -1 : '0'\\\"\\r\\n\\t\\t[type]=\\\"options.type\\\"\\r\\n\\t\\t[attr.placeholder]=\\\"(isDisabled$ | async) ? '' : options.placeholder\\\"\\r\\n\\t\\t[attr.maxlength]=\\\"options.maxLength\\\"\\r\\n\\t\\t[value]=\\\"value\\\"\\r\\n\\t\\t(input)=\\\"modelChange(input.value)\\\"\\r\\n\\t\\t(focus)=\\\"onTouched?.()\\\"\\r\\n\\t\\t[readonly]=\\\"options.detailLabel ? true : null\\\"\\r\\n\\t\\t[disabled]=\\\"(isDisabled$ | async) ? true : null\\\"\\r\\n\\t\\tpriTooltipHover />\\r\\n</ng-template>\\r\\n\", styles: [\"pri-input.ng-invalid.ng-touched.ng-dirty .input-field-wrapper:not(.disabled){border-color:var(--error-100)}pri-input .input-field-wrapper{width:100%;height:2.5rem;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:.5714285714rem;padding:.5714285714rem .8571428571rem;font-size:1rem;background-color:var(--grey-1);border:1px solid var(--grey-5);border-radius:.2857142857rem;transition:border .3s}pri-input .input-field-wrapper:hover{border-color:var(--grey-6)}pri-input .input-field-wrapper.disabled{border-color:var(--grey-5);background-color:var(--grey-3)}pri-input .input-field-wrapper.disabled input{color:var(--grey-6)}pri-input .input-field-wrapper:focus-within:not(.disabled):not(.invalid){border-color:var(--theme-100)}pri-input .input-field-wrapper:focus-within:not(.disabled):not(.invalid) .clear-value-btn{display:block}pri-input .input-field-wrapper:focus-within button.input-detail{text-decoration:underline}pri-input .input-field-wrapper.size-small{font-size:.8em;height:1.7142857143rem}pri-input .input-field-wrapper.size-large{font-size:1.2em;height:3.2142857143rem}pri-input .input-field-wrapper i[class^=ti-],pri-input .input-field-wrapper i[class^=\\\" ti-\\\"]{font-size:1rem}pri-input .input-field-wrapper a.input-clickable{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-input .input-field-wrapper a.input-clickable:hover{text-decoration:underline}pri-input .input-field-wrapper input{flex:1 1 80px;padding:0;color:var(--grey-8);background:transparent;border:0;overflow:hidden;text-overflow:ellipsis}pri-input .input-field-wrapper input::placeholder{color:var(--grey-6)}pri-input .input-field-wrapper input:focus,pri-input .input-field-wrapper input:focus-visible{outline:none;caret-color:var(--theme-100)}pri-input .input-field-wrapper .clear-value-btn{display:none;line-height:.8571428571rem;color:var(--grey-8);cursor:pointer}pri-input .input-field-wrapper .clear-value-btn:before{font-size:.8571428571rem}pri-input .input-field-wrapper .clear-value-btn:hover{color:var(--theme-100);display:block}pri-input .input-field-wrapper button.input-detail{position:relative;display:block;padding:0;color:var(--theme-100);background-color:transparent;border:0;outline:0;text-decoration:none;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}pri-input .input-field-wrapper button.input-detail:hover{text-decoration:underline}pri-input .input-field-wrapper button.input-detail:focus-visible:before{content:\\\"\\\";position:absolute;top:-4px;left:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid var(--grey-8);border-radius:.2857142857rem}pri-input .input-field-wrapper button.show-password{background-color:transparent;border:0;outline:0}pri-input .input-field-wrapper button.show-password:hover{color:var(--theme-100)}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: FormsModule }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"ngmodule\", type: MatTooltipModule }, { kind: \"directive\", type: i2$1.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"pipe\", type: LinkInputHrefPipe, name: \"linkInputHref\" }, { kind: \"pipe\", type: IsLinkInputTypePipe, name: \"isLinkInputType\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InputComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-input', encapsulation: ViewEncapsulation.None, providers: [\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => InputComponent),\r\n                            multi: true\r\n                        }\r\n                    ], imports: [\r\n                        CommonModule,\r\n                        FormsModule,\r\n                        TooltipHoverDirective,\r\n                        MatTooltipModule,\r\n                        LinkInputHrefPipe,\r\n                        IsLinkInputTypePipe\r\n                    ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div\\r\\n\\tclass=\\\"input-field-wrapper {{ options.size }}\\\"\\r\\n\\t[class.disabled]=\\\"(isDisabled$ | async) || null\\\"\\r\\n\\t[class.has-detail]=\\\"options.detailLabel ? true : false\\\"\\r\\n\\tdata-testid=\\\"inputComponent\\\"\\r\\n\\t[matTooltip]=\\\"tooltip || null\\\"\\r\\n\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\tmatTooltipTouchGestures=\\\"on\\\">\\r\\n\\t<i *ngIf=\\\"options.type !== InputTypeEnum.Password && options.icon\\\" class=\\\"{{ options.icon }}\\\"></i>\\r\\n\\t<i *ngIf=\\\"options.type === InputTypeEnum.Password\\\" class=\\\"ti-ux-lock\\\"></i>\\r\\n\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"(isDisabled$ | async) === true && (options.type | isLinkInputType); else inputTemplate\\\"\\r\\n\\t\\t[href]=\\\"value | linkInputHref : options.type\\\"\\r\\n\\t\\tclass=\\\"input-clickable\\\"\\r\\n\\t\\t[target]=\\\"options.type === InputTypeEnum.Url ? '_blank' : '_self'\\\"\\r\\n\\t\\tpriTooltipHover>\\r\\n\\t\\t{{ value }}\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Clean input button -->\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"value && (isDisabled$ | async) === false && !options.detailLabel\\\"\\r\\n\\t\\tclass=\\\"clear-value-btn ti-ux-close\\\"\\r\\n\\t\\t(click)=\\\"clearValue()\\\"></div>\\r\\n\\r\\n\\t<!-- Input detail button -->\\r\\n\\t<button\\r\\n\\t\\t#detailLabel\\r\\n\\t\\t*ngIf=\\\"options.detailLabel\\\"\\r\\n\\t\\ttype=\\\"button\\\"\\r\\n\\t\\tclass=\\\"input-detail\\\"\\r\\n\\t\\t(click)=\\\"onDetailClick()\\\"\\r\\n\\t\\tpriTooltipHover>\\r\\n\\t\\t{{ options.detailLabel }}\\r\\n\\t</button>\\r\\n\\r\\n\\t<!--Show password button -->\\r\\n\\t<button\\r\\n\\t\\t*ngIf=\\\"options.type === InputTypeEnum.Password\\\"\\r\\n\\t\\ttype=\\\"button\\\"\\r\\n\\t\\tclass=\\\"show-password ti-ux-overview-outline\\\"\\r\\n\\t\\t(click)=\\\"showPassword($event)\\\"></button>\\r\\n</div>\\r\\n\\r\\n<ng-template #inputTemplate>\\r\\n\\t<input\\r\\n\\t\\t#input\\r\\n\\t\\t[attr.tabindex]=\\\"options.detailLabel ? -1 : '0'\\\"\\r\\n\\t\\t[type]=\\\"options.type\\\"\\r\\n\\t\\t[attr.placeholder]=\\\"(isDisabled$ | async) ? '' : options.placeholder\\\"\\r\\n\\t\\t[attr.maxlength]=\\\"options.maxLength\\\"\\r\\n\\t\\t[value]=\\\"value\\\"\\r\\n\\t\\t(input)=\\\"modelChange(input.value)\\\"\\r\\n\\t\\t(focus)=\\\"onTouched?.()\\\"\\r\\n\\t\\t[readonly]=\\\"options.detailLabel ? true : null\\\"\\r\\n\\t\\t[disabled]=\\\"(isDisabled$ | async) ? true : null\\\"\\r\\n\\t\\tpriTooltipHover />\\r\\n</ng-template>\\r\\n\", styles: [\"pri-input.ng-invalid.ng-touched.ng-dirty .input-field-wrapper:not(.disabled){border-color:var(--error-100)}pri-input .input-field-wrapper{width:100%;height:2.5rem;box-sizing:border-box;position:relative;display:flex;align-items:center;gap:.5714285714rem;padding:.5714285714rem .8571428571rem;font-size:1rem;background-color:var(--grey-1);border:1px solid var(--grey-5);border-radius:.2857142857rem;transition:border .3s}pri-input .input-field-wrapper:hover{border-color:var(--grey-6)}pri-input .input-field-wrapper.disabled{border-color:var(--grey-5);background-color:var(--grey-3)}pri-input .input-field-wrapper.disabled input{color:var(--grey-6)}pri-input .input-field-wrapper:focus-within:not(.disabled):not(.invalid){border-color:var(--theme-100)}pri-input .input-field-wrapper:focus-within:not(.disabled):not(.invalid) .clear-value-btn{display:block}pri-input .input-field-wrapper:focus-within button.input-detail{text-decoration:underline}pri-input .input-field-wrapper.size-small{font-size:.8em;height:1.7142857143rem}pri-input .input-field-wrapper.size-large{font-size:1.2em;height:3.2142857143rem}pri-input .input-field-wrapper i[class^=ti-],pri-input .input-field-wrapper i[class^=\\\" ti-\\\"]{font-size:1rem}pri-input .input-field-wrapper a.input-clickable{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-input .input-field-wrapper a.input-clickable:hover{text-decoration:underline}pri-input .input-field-wrapper input{flex:1 1 80px;padding:0;color:var(--grey-8);background:transparent;border:0;overflow:hidden;text-overflow:ellipsis}pri-input .input-field-wrapper input::placeholder{color:var(--grey-6)}pri-input .input-field-wrapper input:focus,pri-input .input-field-wrapper input:focus-visible{outline:none;caret-color:var(--theme-100)}pri-input .input-field-wrapper .clear-value-btn{display:none;line-height:.8571428571rem;color:var(--grey-8);cursor:pointer}pri-input .input-field-wrapper .clear-value-btn:before{font-size:.8571428571rem}pri-input .input-field-wrapper .clear-value-btn:hover{color:var(--theme-100);display:block}pri-input .input-field-wrapper button.input-detail{position:relative;display:block;padding:0;color:var(--theme-100);background-color:transparent;border:0;outline:0;text-decoration:none;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}pri-input .input-field-wrapper button.input-detail:hover{text-decoration:underline}pri-input .input-field-wrapper button.input-detail:focus-visible:before{content:\\\"\\\";position:absolute;top:-4px;left:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid var(--grey-8);border-radius:.2857142857rem}pri-input .input-field-wrapper button.show-password{background-color:transparent;border:0;outline:0}pri-input .input-field-wrapper button.show-password:hover{color:var(--theme-100)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { options: [{\r\n                type: Input\r\n            }], tooltip: [{\r\n                type: Input\r\n            }], value: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }], detailClick: [{\r\n                type: Output\r\n            }], input: [{\r\n                type: ViewChild,\r\n                args: ['input']\r\n            }] } });\n\nclass LoaderComponent {\r\n    constructor() {\r\n        /**\r\n         * Defines the loading state\r\n         */\r\n        this.state = LoadingStateEnum.Loading;\r\n        /**\r\n         * Defines the loader size\r\n         */\r\n        this.size = 30;\r\n    }\r\n    /**\r\n     * Gets the loader size\r\n     */\r\n    get _size() {\r\n        if (this.size < 10) {\r\n            return this.size - 3;\r\n        }\r\n        else if (this.size < 50) {\r\n            return this.size - 1;\r\n        }\r\n        else {\r\n            return this.size;\r\n        }\r\n    }\r\n    /**\r\n     * Gets the margin size\r\n     */\r\n    get margin() {\r\n        if (this.size < 10) {\r\n            return this.borderSize + 2;\r\n        }\r\n        else if (this.size < 50) {\r\n            return this.borderSize + 1;\r\n        }\r\n        else {\r\n            return this.borderSize;\r\n        }\r\n    }\r\n    /**\r\n     * Gets the border size\r\n     */\r\n    get borderSize() {\r\n        if (this.size < 10) {\r\n            return 1;\r\n        }\r\n        else if (this.size < 50) {\r\n            return 2;\r\n        }\r\n        else {\r\n            return 3;\r\n        }\r\n    }\r\n    /**\r\n     * Loading state enum definition\r\n     */\r\n    get loadingStateEnum() { return LoadingStateEnum; }\r\n    get marginTop() {\r\n        return -this._size - 1;\r\n    }\r\n}\r\nLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: LoaderComponent, selector: \"pri-loader\", inputs: { state: \"state\", message: \"message\", size: \"size\" }, ngImport: i0, template: \"<div class=\\\"content\\\" *ngIf=\\\"state !== loadingStateEnum.None\\\">\\r\\n    <div class=\\\"state-wrapper\\\">\\r\\n        <div class=\\\"loader-wrapper\\\" *ngIf=\\\"state === loadingStateEnum.Loading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n        <div class=\\\"success\\\" *ngIf=\\\"state === loadingStateEnum.Ready\\\">\\r\\n            <svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\" [style.width.px]=\\\"_size\\\"\\r\\n                [style.height.px]=\\\"_size\\\">\\r\\n                <circle class=\\\"path circle\\\" fill=\\\"none\\\" stroke=\\\"#73AF55\\\" stroke-width=\\\"3\\\" stroke-miterlimit=\\\"10\\\"\\r\\n                    cx=\\\"65.1\\\" cy=\\\"65.1\\\" r=\\\"62.1\\\" />\\r\\n                <polyline class=\\\"path check\\\" fill=\\\"none\\\" stroke=\\\"#73AF55\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\"\\r\\n                    stroke-miterlimit=\\\"10\\\" points=\\\"100.2,40.2 51.5,88.8 29.8,67.5 \\\" />\\r\\n            </svg>\\r\\n        </div>\\r\\n        <div class=\\\"message\\\" *ngIf=\\\"message\\\" [class.ready]=\\\"state === loadingStateEnum.Ready\\\">{{ message | priI18n }}\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-loader .content{height:100%;display:flex;flex-direction:column}pri-loader .content .state-wrapper{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column}pri-loader .content .state-wrapper .loader-wrapper .loader-border{border:3px solid #e7e1e6;border-radius:100%;padding:-1px;margin-left:3px;margin-top:calc(-100% - 1px)!important;margin-top:-171px}pri-loader .content .state-wrapper .success svg circle{stroke-width:2px;stroke:var(--theme-100)}pri-loader .content .state-wrapper .success svg polyline{stroke-width:2px;stroke:var(--theme-100)}pri-loader .content .state-wrapper .success .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-loader .content .state-wrapper .success .path.circle{animation:dash 2s ease-in-out}pri-loader .content .state-wrapper .success .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-loader .content .state-wrapper .success .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}pri-loader .content .state-wrapper .success p{text-align:center;margin:50px 0 60px;font-size:1.25em}pri-loader .content .state-wrapper .success p.success{color:#007d00}pri-loader .content .state-wrapper .message{margin-top:35px;color:var(--theme-100);font-size:18px}pri-loader .content .state-wrapper .message.ready{color:var(--theme-100)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LoaderComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-loader', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"content\\\" *ngIf=\\\"state !== loadingStateEnum.None\\\">\\r\\n    <div class=\\\"state-wrapper\\\">\\r\\n        <div class=\\\"loader-wrapper\\\" *ngIf=\\\"state === loadingStateEnum.Loading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n        <div class=\\\"success\\\" *ngIf=\\\"state === loadingStateEnum.Ready\\\">\\r\\n            <svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\" [style.width.px]=\\\"_size\\\"\\r\\n                [style.height.px]=\\\"_size\\\">\\r\\n                <circle class=\\\"path circle\\\" fill=\\\"none\\\" stroke=\\\"#73AF55\\\" stroke-width=\\\"3\\\" stroke-miterlimit=\\\"10\\\"\\r\\n                    cx=\\\"65.1\\\" cy=\\\"65.1\\\" r=\\\"62.1\\\" />\\r\\n                <polyline class=\\\"path check\\\" fill=\\\"none\\\" stroke=\\\"#73AF55\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\"\\r\\n                    stroke-miterlimit=\\\"10\\\" points=\\\"100.2,40.2 51.5,88.8 29.8,67.5 \\\" />\\r\\n            </svg>\\r\\n        </div>\\r\\n        <div class=\\\"message\\\" *ngIf=\\\"message\\\" [class.ready]=\\\"state === loadingStateEnum.Ready\\\">{{ message | priI18n }}\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-loader .content{height:100%;display:flex;flex-direction:column}pri-loader .content .state-wrapper{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column}pri-loader .content .state-wrapper .loader-wrapper .loader-border{border:3px solid #e7e1e6;border-radius:100%;padding:-1px;margin-left:3px;margin-top:calc(-100% - 1px)!important;margin-top:-171px}pri-loader .content .state-wrapper .success svg circle{stroke-width:2px;stroke:var(--theme-100)}pri-loader .content .state-wrapper .success svg polyline{stroke-width:2px;stroke:var(--theme-100)}pri-loader .content .state-wrapper .success .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-loader .content .state-wrapper .success .path.circle{animation:dash 2s ease-in-out}pri-loader .content .state-wrapper .success .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-loader .content .state-wrapper .success .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}pri-loader .content .state-wrapper .success p{text-align:center;margin:50px 0 60px;font-size:1.25em}pri-loader .content .state-wrapper .success p.success{color:#007d00}pri-loader .content .state-wrapper .message{margin-top:35px;color:var(--theme-100);font-size:18px}pri-loader .content .state-wrapper .message.ready{color:var(--theme-100)}\\n\"] }]\r\n        }], propDecorators: { state: [{\r\n                type: Input\r\n            }], message: [{\r\n                type: Input\r\n            }], size: [{\r\n                type: Input\r\n            }] } });\n\nclass MaskedInputComponent {\r\n    constructor(converterService, decimalPipe, appContextService) {\r\n        this.converterService = converterService;\r\n        this.decimalPipe = decimalPipe;\r\n        this.appContextService = appContextService;\r\n        this.disabled = false;\r\n        this.currentValueChange = new EventEmitter();\r\n    }\r\n    ngOnInit() {\r\n        if (this.currentValue !== 0) {\r\n            this.input.nativeElement.value = 0;\r\n            this.formatCurrentValue();\r\n        }\r\n    }\r\n    ngOnChanges(changes) {\r\n        if (changes['currentValue'] && this.currentValue !== undefined) {\r\n            this.input.nativeElement.value = this.currentValue;\r\n            this.formatCurrentValue();\r\n        }\r\n    }\r\n    onInputFocus() {\r\n        if (this.currentValue != null) {\r\n            this.applyEditFormat(this.currentValue);\r\n        }\r\n    }\r\n    onInputBlur() {\r\n        this.formatCurrentValue();\r\n    }\r\n    formatCurrentValue() {\r\n        const stringValue = this.input.nativeElement.value;\r\n        let value;\r\n        if (stringValue !== '') {\r\n            value = this.converterService.parseInt(stringValue);\r\n            // verify max and min\r\n            value = value < this.max ? value : this.max;\r\n            value = value > this.min ? value : this.min;\r\n            if (value !== this.currentValue) {\r\n                this.currentValue = value;\r\n            }\r\n            this.applyViewFormat(this.currentValue);\r\n        }\r\n        else {\r\n            this.currentValue = null;\r\n        }\r\n        this.currentValueChange.emit(this.currentValue);\r\n    }\r\n    applyViewFormat(value) {\r\n        let stringValue = `${value}`;\r\n        if (this.decimalPlaces && this.decimalPlaces > 0) {\r\n            stringValue = this.decimalPipe.transform(value, `.${this.decimalPlaces}-${this.decimalPlaces}`, this.appContextService.user.culture);\r\n        }\r\n        else {\r\n            stringValue = `${value}`;\r\n        }\r\n        if (this.mask.includes('{value}')) {\r\n            stringValue = this.mask.replace('{value}', stringValue);\r\n        }\r\n        else {\r\n            stringValue = stringValue ? stringValue.concat(' ' + this.mask) : '';\r\n        }\r\n        this.input.nativeElement.value = stringValue;\r\n    }\r\n    applyEditFormat(value) {\r\n        let stringValue = `${value}`;\r\n        stringValue = stringValue ? stringValue.replace(/\\s/g, '') : ''; // remove white spaces\r\n        this.input.nativeElement.value = stringValue;\r\n    }\r\n}\r\nMaskedInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MaskedInputComponent, deps: [{ token: i1$2.ConverterService }, { token: i1$1.DecimalPipe }, { token: i1$2.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nMaskedInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MaskedInputComponent, selector: \"pri-masked-input\", inputs: { min: \"min\", max: \"max\", decimalPlaces: \"decimalPlaces\", mask: \"mask\", currentValue: \"currentValue\", disabled: \"disabled\" }, outputs: { currentValueChange: \"currentValueChange\" }, providers: [DecimalPipe], viewQueries: [{ propertyName: \"input\", first: true, predicate: [\"input\"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: \"<input #input\\r\\n    type=\\\"text\\\"\\r\\n    class=\\\"pri-masked-input\\\" \\r\\n    [disabled]=\\\"disabled\\\"\\r\\n    (blur)=\\\"onInputBlur()\\\" \\r\\n    (focus)=\\\"onInputFocus()\\\" />\\r\\n\\r\\n\", styles: [\"pri-masked-input .pri-masked-input{padding:4px 5px;background-color:var(--grey-3);border:1px solid var(--grey-3);color:var(--grey-8);border-radius:4px;box-sizing:border-box;width:44px;margin-left:5px}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MaskedInputComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-masked-input', encapsulation: ViewEncapsulation.None, providers: [DecimalPipe], template: \"<input #input\\r\\n    type=\\\"text\\\"\\r\\n    class=\\\"pri-masked-input\\\" \\r\\n    [disabled]=\\\"disabled\\\"\\r\\n    (blur)=\\\"onInputBlur()\\\" \\r\\n    (focus)=\\\"onInputFocus()\\\" />\\r\\n\\r\\n\", styles: [\"pri-masked-input .pri-masked-input{padding:4px 5px;background-color:var(--grey-3);border:1px solid var(--grey-3);color:var(--grey-8);border-radius:4px;box-sizing:border-box;width:44px;margin-left:5px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.ConverterService }, { type: i1$1.DecimalPipe }, { type: i1$2.AppContextService }]; }, propDecorators: { input: [{\r\n                type: ViewChild,\r\n                args: ['input', { static: true }]\r\n            }], min: [{\r\n                type: Input\r\n            }], max: [{\r\n                type: Input\r\n            }], decimalPlaces: [{\r\n                type: Input\r\n            }], mask: [{\r\n                type: Input\r\n            }], currentValue: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], currentValueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass MatSelectSearchComponent {\r\n    constructor(matSelect, changeDetectorRef) {\r\n        this.matSelect = matSelect;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        /** Label of the search placeholder */\r\n        this.placeholderLabel = 'components.components.RES_Search_Placeholder';\r\n        /** Label to be shown when no entries are found. Set to null if no message should be shown. */\r\n        this.noEntriesFoundLabel = 'components.components.RES_NoResults';\r\n        /** Whether the backdrop class has been set */\r\n        this.overlayClassSet = false;\r\n        /** Event that emits when the current value changes */\r\n        this.change = new EventEmitter();\r\n        /** Subject that emits when the component has been destroyed. */\r\n        this._onDestroy = new EventEmitter();\r\n    }\r\n    /** Current search value */\r\n    get value() {\r\n        return this._value;\r\n    }\r\n    ngOnInit() {\r\n        // set custom panel class\r\n        const panelClass = 'mat-select-search-panel';\r\n        if (this.matSelect.panelClass) {\r\n            if (Array.isArray(this.matSelect.panelClass)) {\r\n                this.matSelect.panelClass.push(panelClass);\r\n            }\r\n            else if (typeof this.matSelect.panelClass === 'string') {\r\n                this.matSelect.panelClass = [this.matSelect.panelClass, panelClass];\r\n            }\r\n            else if (typeof this.matSelect.panelClass === 'object') {\r\n                this.matSelect.panelClass[panelClass] = true;\r\n            }\r\n        }\r\n        else {\r\n            this.matSelect.panelClass = panelClass;\r\n        }\r\n        // when the select dropdown panel is opened or closed\r\n        this.matSelect.openedChange\r\n            .pipe(takeUntil$1(this._onDestroy))\r\n            .subscribe((opened) => {\r\n            if (opened) {\r\n                // focus the search field when opening\r\n                this._focus();\r\n            }\r\n            else {\r\n                // clear it when closing\r\n                this._reset();\r\n            }\r\n        });\r\n        // set the first item active after the options changed\r\n        this.matSelect.openedChange\r\n            .pipe(take$1(1))\r\n            .pipe(takeUntil$1(this._onDestroy))\r\n            .subscribe(() => {\r\n            this._options = this.matSelect.options;\r\n            this._options.changes\r\n                .pipe(takeUntil$1(this._onDestroy))\r\n                .subscribe(() => {\r\n                const keyManager = this.matSelect._keyManager;\r\n                if (keyManager && this.matSelect.panelOpen) {\r\n                    // avoid \"expression has been changed\" error\r\n                    setTimeout(() => {\r\n                        keyManager.setFirstItemActive();\r\n                    });\r\n                }\r\n                this.changeDetectorRef.detectChanges();\r\n            });\r\n        });\r\n        // detect changes when the input changes\r\n        this.change\r\n            .pipe(takeUntil$1(this._onDestroy))\r\n            .subscribe(() => {\r\n            this.changeDetectorRef.detectChanges();\r\n        });\r\n        this.initMultipleHandling();\r\n    }\r\n    ngOnDestroy() {\r\n        this._onDestroy.next();\r\n        this._onDestroy.complete();\r\n    }\r\n    ngAfterViewInit() {\r\n        this.setOverlayClass();\r\n    }\r\n    /**\r\n     * Handles the key down event with MatSelect.\r\n     * Allows e.g. selecting with enter key, navigation with arrow keys, etc.\r\n     *\r\n     * @param event\r\n     */\r\n    _handleKeydown(event) {\r\n        if (event.keyCode === 32) {\r\n            // do not propagate spaces to MatSelect, as this would select the currently active option\r\n            event.stopPropagation();\r\n        }\r\n    }\r\n    writeValue(value) {\r\n        const valueChanged = value !== this._value;\r\n        if (valueChanged) {\r\n            this._value = value;\r\n            this.change.emit(value);\r\n        }\r\n    }\r\n    onInputChange(event) {\r\n        const element = event.target;\r\n        this.triggerInputChange(element.value);\r\n    }\r\n    triggerInputChange(value) {\r\n        const valueChanged = value !== this._value;\r\n        if (valueChanged) {\r\n            this._value = value;\r\n            this.onChange(value);\r\n            this.change.emit(value);\r\n        }\r\n    }\r\n    onBlur(event) {\r\n        const element = event.target;\r\n        this.writeValue(element.value);\r\n        this.onTouched();\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChange = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    /**\r\n     * Focuses the search input field\r\n     */\r\n    _focus() {\r\n        if (!this.searchSelectInput) {\r\n            return;\r\n        }\r\n        // save and restore scrollTop of panel, since it will be reset by focus()\r\n        // note: this is hacky\r\n        const panel = this.matSelect.panel.nativeElement;\r\n        const scrollTop = panel.scrollTop;\r\n        // focus\r\n        this.searchSelectInput.nativeElement.focus();\r\n        panel.scrollTop = scrollTop;\r\n    }\r\n    /**\r\n     * Resets the current search value\r\n     *\r\n     * @param focus whether to focus after resetting\r\n     */\r\n    _reset(focus) {\r\n        if (!this.searchSelectInput) {\r\n            return;\r\n        }\r\n        this.searchSelectInput.nativeElement.value = '';\r\n        this.triggerInputChange('');\r\n        if (focus) {\r\n            this._focus();\r\n        }\r\n    }\r\n    /**\r\n     * Sets the overlay class  to correct offsetY\r\n     * so that the selected option is at the position of the select box when opening\r\n     */\r\n    setOverlayClass() {\r\n        if (this.overlayClassSet || !this.matSelect.openedChange) {\r\n            return;\r\n        }\r\n        const cdkOverlayPane = 'cdk-overlay-pane';\r\n        this.matSelect.openedChange.pipe(takeUntil$1(this._onDestroy))\r\n            .subscribe((opened) => {\r\n            if (opened) {\r\n                // note: this is hacky, but currently there is no better way to do this\r\n                let element = this.searchSelectInput.nativeElement;\r\n                let overlayElement;\r\n                // eslint-disable-next-line no-cond-assign\r\n                while (element = element.parentElement) {\r\n                    if (element.classList.contains(cdkOverlayPane)) {\r\n                        overlayElement = element;\r\n                        break;\r\n                    }\r\n                }\r\n                if (overlayElement) {\r\n                    overlayElement.classList.add(`${cdkOverlayPane}-select-search`);\r\n                }\r\n            }\r\n        });\r\n        this.overlayClassSet = true;\r\n    }\r\n    /**\r\n     * Initializes handling <mat-select [multiple]=\"true\">\r\n     * Note: to improve this code, mat-select should be extended to allow disabling resetting the selection while filtering.\r\n     */\r\n    initMultipleHandling() {\r\n        // if <mat-select [multiple]=\"true\">\r\n        // store previously selected values and restore them when they are deselected\r\n        // because the option is not available while we are currently filtering\r\n        this.matSelect.valueChange\r\n            .pipe(takeUntil$1(this._onDestroy))\r\n            .subscribe((values) => {\r\n            if (this.matSelect.multiple) {\r\n                let restoreSelectedValues = false;\r\n                if (this._value && this._value.length\r\n                    && this.previousSelectedValues && Array.isArray(this.previousSelectedValues)) {\r\n                    if (!values || !Array.isArray(values)) {\r\n                        values = [];\r\n                    }\r\n                    const optionValues = this.matSelect.options.map(option => option.value);\r\n                    this.previousSelectedValues.forEach(previousValue => {\r\n                        if (values.indexOf(previousValue) === -1 && optionValues.indexOf(previousValue) === -1) {\r\n                            // if a value that was selected before is deselected and not found in the options, it was deselected\r\n                            // due to the filtering, so we restore it.\r\n                            values.push(previousValue);\r\n                            restoreSelectedValues = true;\r\n                        }\r\n                    });\r\n                }\r\n                if (restoreSelectedValues) {\r\n                    this.matSelect._onChange(values);\r\n                }\r\n                this.previousSelectedValues = values;\r\n            }\r\n        });\r\n    }\r\n}\r\nMatSelectSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MatSelectSearchComponent, deps: [{ token: MatSelect }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nMatSelectSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MatSelectSearchComponent, selector: \"pri-mat-select-search\", inputs: { placeholderLabel: \"placeholderLabel\", noEntriesFoundLabel: \"noEntriesFoundLabel\" }, providers: [\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => MatSelectSearchComponent),\r\n            multi: true\r\n        }\r\n    ], viewQueries: [{ propertyName: \"searchSelectInput\", first: true, predicate: [\"searchSelectInput\"], descendants: true, read: ElementRef }], ngImport: i0, template: \"\\r\\n<!-- <input matInput class=\\\"mat-select-search-input mat-select-search-hidden\\\"/> -->\\r\\n\\r\\n<div class=\\\"mat-select-search-inner\\\"\\r\\n     [ngClass]=\\\"{'mat-select-search-inner-multiple': matSelect.multiple}\\\">\\r\\n  <input matInput\\r\\n         class=\\\"mat-select-search-input\\\"\\r\\n         #searchSelectInput\\r\\n         (keydown)=\\\"_handleKeydown($event)\\\"\\r\\n         (input)=\\\"onInputChange($event)\\\"\\r\\n         (blur)=\\\"onBlur($event)\\\"\\r\\n         [placeholder]=\\\"'&#xe610; ' + (placeholderLabel | priI18n)\\\"\\r\\n  />\\r\\n</div>\\r\\n\\r\\n<div *ngIf=\\\"noEntriesFoundLabel && value && _options?.length === 0\\\"\\r\\n     class=\\\"mat-select-search-no-entries-found\\\">\\r\\n  {{noEntriesFoundLabel | priI18n}}\\r\\n</div>\\r\\n\", styles: [\"pri-mat-select-search .mat-select-search-hidden{visibility:hidden}pri-mat-select-search .mat-select-search-inner{padding:8px;border-bottom:1px solid var(--grey-4);background-color:var(--grey-1)}pri-mat-select-search .mat-select-search-inner input{width:100%;height:40px;padding:0 18px;border-radius:29px;border:1px solid var(--theme-100);background-color:var(--grey-1);color:var(--grey-8)}pri-mat-select-search .mat-select-search-inner input:focus{outline:none}pri-mat-select-search .mat-select-search-no-entries-found{padding:16px;color:var(--grey-8)}pri-mat-select-search .mat-select-search-clear{right:0;top:4px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MatSelectSearchComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-mat-select-search', encapsulation: ViewEncapsulation.None, providers: [\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => MatSelectSearchComponent),\r\n                            multi: true\r\n                        }\r\n                    ], changeDetection: ChangeDetectionStrategy.OnPush, template: \"\\r\\n<!-- <input matInput class=\\\"mat-select-search-input mat-select-search-hidden\\\"/> -->\\r\\n\\r\\n<div class=\\\"mat-select-search-inner\\\"\\r\\n     [ngClass]=\\\"{'mat-select-search-inner-multiple': matSelect.multiple}\\\">\\r\\n  <input matInput\\r\\n         class=\\\"mat-select-search-input\\\"\\r\\n         #searchSelectInput\\r\\n         (keydown)=\\\"_handleKeydown($event)\\\"\\r\\n         (input)=\\\"onInputChange($event)\\\"\\r\\n         (blur)=\\\"onBlur($event)\\\"\\r\\n         [placeholder]=\\\"'&#xe610; ' + (placeholderLabel | priI18n)\\\"\\r\\n  />\\r\\n</div>\\r\\n\\r\\n<div *ngIf=\\\"noEntriesFoundLabel && value && _options?.length === 0\\\"\\r\\n     class=\\\"mat-select-search-no-entries-found\\\">\\r\\n  {{noEntriesFoundLabel | priI18n}}\\r\\n</div>\\r\\n\", styles: [\"pri-mat-select-search .mat-select-search-hidden{visibility:hidden}pri-mat-select-search .mat-select-search-inner{padding:8px;border-bottom:1px solid var(--grey-4);background-color:var(--grey-1)}pri-mat-select-search .mat-select-search-inner input{width:100%;height:40px;padding:0 18px;border-radius:29px;border:1px solid var(--theme-100);background-color:var(--grey-1);color:var(--grey-8)}pri-mat-select-search .mat-select-search-inner input:focus{outline:none}pri-mat-select-search .mat-select-search-no-entries-found{padding:16px;color:var(--grey-8)}pri-mat-select-search .mat-select-search-clear{right:0;top:4px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i4$1.MatSelect, decorators: [{\r\n                    type: Inject,\r\n                    args: [MatSelect]\r\n                }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { placeholderLabel: [{\r\n                type: Input\r\n            }], noEntriesFoundLabel: [{\r\n                type: Input\r\n            }], searchSelectInput: [{\r\n                type: ViewChild,\r\n                args: ['searchSelectInput', { read: ElementRef }]\r\n            }] } });\n\n/**\r\n * Custom Wrapper class for the angular MatSelect class\r\n */\r\nclass MatSelectComponent {\r\n    constructor() {\r\n        /**\r\n         * Enables the search field\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.searchEnabled = false;\r\n        /**\r\n         * Shows the option label initials (e.g: John Smith => JS) when the image is unavailable\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.showInitialsOnImageUnavailable = false;\r\n        /**\r\n         * Whether the user should be allowed to select multiple options.\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.multiple = false;\r\n        /**\r\n         * Text shown when all the options are selected\r\n         * Note: this options is only used when the select is multiple\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.allOptionsSelectedText = '';\r\n        /**\r\n         * Text shown when none of the options are selected\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.noOptionsSelectedText = '';\r\n        /**\r\n         * If true, an error style will be applied to the component\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.hasErrors = false;\r\n        /**\r\n         * Whether the component is disabled.\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.disabled = false;\r\n        /**\r\n         * Event that emits whenever the raw value of the select changes. This is here primarily\r\n         * to facilitate the two-way binding for the `value` input.\r\n         *\r\n         * @memberof MatSelectComponent\r\n         */\r\n        this.valueChange = new EventEmitter();\r\n        /**\r\n         * External css class passed for the mat panel\r\n         */\r\n        this.panelClass = '';\r\n        // Control for the MatSelect state filter keyword multi-selection\r\n        this.searchControl = new FormControl();\r\n        this.selectedOptionsText = '';\r\n        this.hasResults = true;\r\n        this._visibleOptions = new ReplaySubject(1);\r\n    }\r\n    /**\r\n     * Returns the visible options (all options with the current applied filter)\r\n     *\r\n     * @readonly\r\n     * @memberof MatSelectComponent\r\n     */\r\n    get visibleOptions() {\r\n        return this._visibleOptions;\r\n    }\r\n    // css class applied to the host element (pri-mat-select)\r\n    get errorClass() {\r\n        return this.hasErrors;\r\n    }\r\n    ngOnInit() {\r\n        this._visibleOptions.next(this.options);\r\n        if (this.searchControl) {\r\n            this.searchControlValueChangesSubscription = this.searchControl.valueChanges.subscribe(() => this.filterOptions());\r\n        }\r\n        this.setDisplayMessage();\r\n    }\r\n    ngOnChanges(changes) {\r\n        if (changes.value) {\r\n            this.setDisplayMessage();\r\n        }\r\n        if (changes.options) {\r\n            // apply filter on new options\r\n            this.filterOptions();\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.searchControlValueChangesSubscription) {\r\n            this.searchControlValueChangesSubscription.unsubscribe();\r\n        }\r\n    }\r\n    onValueChange() {\r\n        this.valueChange.emit(this.value);\r\n        this.setDisplayMessage();\r\n        if (!this.multiple) {\r\n            // force the overlay to close if it's in single selection mode\r\n            this.select.close();\r\n            // update the image\r\n            if (this.icon) {\r\n                const selectedOption = this.options.find((o) => o.value === this.value);\r\n                if (selectedOption) {\r\n                    if (selectedOption.imageUrl) {\r\n                        this.selectedOptionImageUrl = selectedOption.imageUrl;\r\n                        this.selectedOptionLabel = undefined;\r\n                    }\r\n                    else {\r\n                        this.selectedOptionLabel = selectedOption.label;\r\n                        this.selectedOptionImageUrl = undefined;\r\n                    }\r\n                }\r\n                else {\r\n                    this.selectedOptionImageUrl = undefined;\r\n                    this.selectedOptionLabel = undefined;\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            // update the visible image\r\n            if (this.icon) {\r\n                if (this.value.length === 1) {\r\n                    const selectedOption = this.options.find((o) => o.value === this.value[0]);\r\n                    if (selectedOption) {\r\n                        if (selectedOption.imageUrl) {\r\n                            this.selectedOptionImageUrl = selectedOption.imageUrl;\r\n                            this.selectedOptionLabel = undefined;\r\n                        }\r\n                        else {\r\n                            this.selectedOptionLabel = selectedOption.label;\r\n                            this.selectedOptionImageUrl = undefined;\r\n                        }\r\n                    }\r\n                    else {\r\n                        this.selectedOptionImageUrl = undefined;\r\n                        this.selectedOptionLabel = undefined;\r\n                    }\r\n                }\r\n                else {\r\n                    this.selectedOptionImageUrl = undefined;\r\n                    this.selectedOptionLabel = undefined;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    onOpenedChange(open) {\r\n        if (!open && !this.select.focused) {\r\n            this.select.focus();\r\n        }\r\n    }\r\n    /**\r\n     * Sets the message that is shown when the select is collapsed\r\n     *\r\n     * @memberof MatSelectComponent\r\n     */\r\n    setDisplayMessage() {\r\n        if (this.multiple) {\r\n            if (!this.value.length) {\r\n                this.selectedOptionsText = this.noOptionsSelectedText ? this.noOptionsSelectedText : '';\r\n            }\r\n            else if (this.value.length === this.options.length && this.allOptionsSelectedText) {\r\n                this.selectedOptionsText = this.allOptionsSelectedText;\r\n            }\r\n            else {\r\n                this.selectedOptionsText = this.options\r\n                    .filter((s) => this.value.indexOf(s.value) !== -1)\r\n                    .map((s) => s.label)\r\n                    .join(', ');\r\n            }\r\n        }\r\n        else {\r\n            if (this.value?.length) {\r\n                this.selectedOptionsText = this.options.find((s) => s.value === this.value).label;\r\n            }\r\n            else {\r\n                this.selectedOptionsText = this.noOptionsSelectedText ? this.noOptionsSelectedText : '';\r\n            }\r\n        }\r\n    }\r\n    filterOptions() {\r\n        // get the search keyword\r\n        let search = this.searchControl.value;\r\n        if (!search) {\r\n            this.hasResults = this.options.length > 0;\r\n            this._visibleOptions.next(this.options.slice());\r\n            return;\r\n        }\r\n        search = search.toLowerCase();\r\n        const optionsResult = this.options.filter((option) => option.label.toLowerCase().indexOf(search) > -1);\r\n        this.hasResults = optionsResult.length > 0;\r\n        // filter the states\r\n        this._visibleOptions.next(optionsResult);\r\n    }\r\n    selectAllOptions() {\r\n        this.select.options.forEach((x) => {\r\n            if (!x.selected) {\r\n                x.select();\r\n            }\r\n        });\r\n    }\r\n    clearSelectedOptions() {\r\n        this.select.options.forEach((x) => {\r\n            if (x.selected) {\r\n                x.deselect();\r\n            }\r\n        });\r\n        this.value = [];\r\n        this.onValueChange();\r\n    }\r\n    onImgError(option) {\r\n        option.imageUrl = undefined; // if the image failed to load, we set it as undefined to load the initials instead of the image\r\n    }\r\n}\r\nMatSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MatSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nMatSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MatSelectComponent, selector: \"pri-mat-select\", inputs: { options: \"options\", searchEnabled: \"searchEnabled\", showInitialsOnImageUnavailable: \"showInitialsOnImageUnavailable\", multiple: \"multiple\", allOptionsSelectedText: \"allOptionsSelectedText\", noOptionsSelectedText: \"noOptionsSelectedText\", value: \"value\", hasErrors: \"hasErrors\", disabled: \"disabled\", icon: \"icon\", panelClass: \"panelClass\" }, outputs: { valueChange: \"valueChange\" }, host: { properties: { \"class.error\": \"this.errorClass\" } }, viewQueries: [{ propertyName: \"select\", first: true, predicate: [\"select\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<mat-form-field [ngClass]=\\\"{ active: select && select.panelOpen }\\\">\\r\\n\\t<!-- Only show the mat-label if there are no options selected\\r\\n        We don't want to show the floating label when there's an option or more selected-->\\r\\n\\t<mat-label *ngIf=\\\"noOptionsSelectedText && (!value || value.length === 0)\\\" class=\\\"pri-mat-select-placeholder\\\">\\r\\n\\t\\t<div class=\\\"pri-mat-select-placeholder-content-wrapper\\\">\\r\\n\\t\\t\\t<div *ngIf=\\\"icon\\\" class=\\\"pri-mat-select-icon\\\">\\r\\n\\t\\t\\t\\t<img *ngIf=\\\"selectedOptionImageUrl\\\" [src]=\\\"selectedOptionImageUrl\\\" />\\r\\n\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"!selectedOptionImageUrl && selectedOptionLabel\\\"\\r\\n\\t\\t\\t\\t\\t[text]=\\\"selectedOptionLabel\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t<span *ngIf=\\\"!selectedOptionImageUrl && !selectedOptionLabel\\\" [class]=\\\"icon\\\"></span>\\r\\n\\t\\t\\t\\t<div>{{ selectedOptionLabel }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-text\\\">\\r\\n\\t\\t\\t\\t<span>{{ noOptionsSelectedText }}</span>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"mat-select-arrow-icon\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</mat-label>\\r\\n\\t<mat-select\\r\\n\\t\\t#select\\r\\n\\t\\tdisableOptionCentering\\r\\n\\t\\tdisableRipple\\r\\n\\t\\t[multiple]=\\\"multiple\\\"\\r\\n\\t\\t[(value)]=\\\"value\\\"\\r\\n\\t\\t[disabled]=\\\"disabled\\\"\\r\\n\\t\\t(selectionChange)=\\\"onValueChange()\\\"\\r\\n\\t\\t(openedChange)=\\\"onOpenedChange($event)\\\"\\r\\n\\t\\tpanelClass=\\\"pri-mat-select-panel {{ panelClass }}\\\">\\r\\n\\t\\t<mat-select-trigger class=\\\"pri-mat-select-placeholder\\\">\\r\\n\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-content-wrapper\\\">\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"icon\\\" class=\\\"pri-mat-select-icon\\\">\\r\\n\\t\\t\\t\\t\\t<img *ngIf=\\\"selectedOptionImageUrl\\\" [attr.src]=\\\"selectedOptionImageUrl | imageSrc : true | async\\\" />\\r\\n\\t\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!selectedOptionImageUrl && selectedOptionLabel\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"selectedOptionLabel\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"!selectedOptionImageUrl && !selectedOptionLabel\\\" [class]=\\\"icon\\\"></span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-text\\\">\\r\\n\\t\\t\\t\\t\\t<span priTooltipHover>{{ selectedOptionsText }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"mat-select-arrow-icon\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</mat-select-trigger>\\r\\n\\t\\t<ng-container *ngIf=\\\"searchEnabled\\\">\\r\\n\\t\\t\\t<pri-mat-select-search [formControl]=\\\"searchControl\\\"></pri-mat-select-search>\\r\\n\\t\\t</ng-container>\\r\\n\\t\\t<div class=\\\"mat-body\\\">\\r\\n\\t\\t\\t<ng-container *ngIf=\\\"multiple\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"value && value.length && hasResults; else selectAllBlock\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"mat-select-clear-btn\\\"\\r\\n\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"clearSelectedOptions()\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'components.components.RES_Clear' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<ng-template #selectAllBlock>\\r\\n\\t\\t\\t\\t\\t<button *ngIf=\\\"hasResults\\\" class=\\\"mat-select-clear-btn\\\" type=\\\"button\\\" (click)=\\\"selectAllOptions()\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'components.components.RES_SelectAll' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t</ng-template>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\r\\n\\t\\t\\t<div class=\\\"scrollable-area\\\">\\r\\n\\t\\t\\t\\t<mat-option\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let option of visibleOptions | async\\\"\\r\\n\\t\\t\\t\\t\\t[value]=\\\"option.value\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"option?.readOnly\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"mat-option {{ option.style ? option.style : '' }}\\\">\\r\\n\\t\\t\\t\\t\\t<img\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"option.imageUrl\\\"\\r\\n\\t\\t\\t\\t\\t\\t[attr.src]=\\\"option.imageUrl | imageSrc : true | async\\\"\\r\\n\\t\\t\\t\\t\\t\\t(error)=\\\"onImgError(option)\\\" />\\r\\n\\t\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!option.imageUrl && showInitialsOnImageUnavailable && option.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"option.label\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"option.backgroundColor\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"info-color\\\"\\r\\n\\t\\t\\t\\t\\t\\t[style.backgroundColor]=\\\"option.backgroundColor\\\"></div>\\r\\n\\t\\t\\t\\t\\t{{ option.label }}\\r\\n\\t\\t\\t\\t</mat-option>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</mat-select>\\r\\n\\r\\n\\t<div class=\\\"pri-mat-select-open-no-value\\\" *ngIf=\\\"select && select.panelOpen && (!value || value.length === 0)\\\">\\r\\n\\t\\t<i class=\\\"ti-ux-chevron-up\\\"></i>\\r\\n\\t</div>\\r\\n</mat-form-field>\\r\\n\", styles: [\".cdk-overlay-container{z-index:1044!important}.cdk-overlay-container .cdk-overlay-pane{transform:none!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel{display:flex;flex-direction:column;min-width:calc(100% + 24px)!important;position:absolute;top:30px;left:-12px;overflow-y:hidden;border:1px solid var(--grey-4);box-shadow:0 .3571428571rem .5714285714rem var(--shadow-6);background-color:var(--grey-1);border-radius:0}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;padding:0}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area{overflow-y:auto;display:flex;flex-direction:column;width:100%;height:100%;scrollbar-width:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area::-webkit-scrollbar{width:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area::-webkit-scrollbar-thumb{opacity:1;border-radius:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area .mat-option-disabled{background-color:#fff}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area .mat-option-disabled>span{color:var(--grey-6)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-select-clear-btn{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:16px;height:38px;color:var(--theme-100);background:none;border:none}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox{border-radius:0!important;border:1px solid!important;border-color:var(--grey-4)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox:hover{border-color:var(--theme-100)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox:after{top:2.5px!important;left:2.5px!important;width:7px!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox-checked{background-color:var(--theme-100);border-color:var(--theme-100)!important;height:16px;width:16px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .dot .mat-option-text:before{height:12px;width:12px;border-radius:13px;content:\\\"\\\";display:inline-block;margin-right:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .new .mat-option-text:before{background-color:var(--grey-5)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .in-progress .mat-option-text:before{background-color:var(--info-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .stalled .mat-option-text:before{background-color:var(--warning-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .completed .mat-option-text:before{background-color:var(--success-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option{width:100%;min-height:38px;margin-top:2px;font-size:14px!important;font-weight:400!important;color:var(--grey-8)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:first-child{margin-top:unset}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected,.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected .option-initials{color:var(--grey-8)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text{display:flex;align-items:center}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text .option-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:100%;font-size:14px;color:var(--grey-7);border:1px solid var(--grey-4);margin-right:8px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text img{width:30px;height:30px;border-radius:50%;border:1px solid var(--grey-4);margin-right:8px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text .info-color{height:12px;width:12px;border-radius:100%;background-color:transparent;margin-right:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:not(.mat-option-disabled){background-color:var(--theme-10)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:focus:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:hover:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:focus:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:hover:not(.mat-option-disabled){background:var(--grey-2)}.pri-mat-select-panel{max-height:280px!important}.mat-select-arrow-wrapper{visibility:hidden;width:0}.mat-select-arrow-icon,.pri-mat-select-open-no-value{font-size:8px!important;display:flex!important;align-items:center!important;margin-left:8px!important}.pri-mat-select-open-no-value{display:flex;flex-direction:row-reverse;margin-top:-15px}.mat-form-field{width:100%;line-height:unset}.mat-form-field.active .mat-select-arrow-icon{padding-bottom:3px}.mat-form-field.active .mat-select-arrow-icon i{transform:rotate(180deg)}.mat-form-field.active .mat-form-field-label{display:none!important}.mat-form-field.active .mat-form-field-ripple{background-color:var(--theme-100);height:1px}.mat-form-field .mat-form-field-wrapper{padding-bottom:0;display:flex}.mat-form-field .mat-form-field-wrapper .mat-select-placeholder{height:28px}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix{border-top:0;padding:0}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-select{display:flex;flex-direction:column}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-form-field-label-wrapper{top:0;padding-top:0}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-form-field-label-wrapper .mat-form-field-label{top:0;color:var(--grey-8);width:100%}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder{display:flex;width:100%;height:28px;justify-content:space-between}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-content-wrapper{display:flex;overflow:hidden}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-text{display:flex;height:100%;align-items:center;padding-left:8px;overflow:hidden}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-text span{overflow:hidden;text-overflow:ellipsis}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .mat-select-arrow-icon{font-size:10px;display:flex;align-items:center;margin-left:5px}.mat-form-field .mat-form-field-wrapper .mat-form-field-underline{display:none}.mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-select-value .mat-select-value-text{color:var(--grey-8)}.mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix .mat-select-trigger{height:unset}.option-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:100%;font-size:14px;color:var(--grey-7);border:1px solid var(--grey-4)}pri-mat-select{display:flex;align-items:center;min-width:258px;padding:6px 12px;background:var(--grey-1)}pri-mat-select.error{border:1px solid var(--error-100)!important}pri-mat-select .pri-mat-select-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:28px;width:28px;border-radius:50%;border:1px solid var(--grey-4);color:var(--grey-4);overflow:hidden}pri-mat-select .pri-mat-select-icon span{font-size:16px}pri-mat-select .pri-mat-select-icon img{display:flex;height:100%;width:100%;border-radius:50%;object-fit:cover}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$3.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1$3.FormControlDirective, selector: \"[formControl]\", inputs: [\"formControl\", \"disabled\", \"ngModel\"], outputs: [\"ngModelChange\"], exportAs: [\"ngForm\"] }, { kind: \"component\", type: i3$2.MatFormField, selector: \"mat-form-field\", inputs: [\"color\", \"appearance\", \"hideRequiredMarker\", \"hintLabel\", \"floatLabel\"], exportAs: [\"matFormField\"] }, { kind: \"directive\", type: i3$2.MatLabel, selector: \"mat-label\" }, { kind: \"component\", type: i4$1.MatSelect, selector: \"mat-select\", inputs: [\"disabled\", \"disableRipple\", \"tabIndex\"], exportAs: [\"matSelect\"] }, { kind: \"directive\", type: i4$1.MatSelectTrigger, selector: \"mat-select-trigger\" }, { kind: \"component\", type: i5$1.MatOption, selector: \"mat-option\", exportAs: [\"matOption\"] }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"component\", type: MatSelectSearchComponent, selector: \"pri-mat-select-search\", inputs: [\"placeholderLabel\", \"noEntriesFoundLabel\"] }, { kind: \"component\", type: TextInitialsComponent, selector: \"pri-text-initials\", inputs: [\"text\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: ImageSourcePipe, name: \"imageSrc\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MatSelectComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-mat-select', encapsulation: ViewEncapsulation.None, template: \"<mat-form-field [ngClass]=\\\"{ active: select && select.panelOpen }\\\">\\r\\n\\t<!-- Only show the mat-label if there are no options selected\\r\\n        We don't want to show the floating label when there's an option or more selected-->\\r\\n\\t<mat-label *ngIf=\\\"noOptionsSelectedText && (!value || value.length === 0)\\\" class=\\\"pri-mat-select-placeholder\\\">\\r\\n\\t\\t<div class=\\\"pri-mat-select-placeholder-content-wrapper\\\">\\r\\n\\t\\t\\t<div *ngIf=\\\"icon\\\" class=\\\"pri-mat-select-icon\\\">\\r\\n\\t\\t\\t\\t<img *ngIf=\\\"selectedOptionImageUrl\\\" [src]=\\\"selectedOptionImageUrl\\\" />\\r\\n\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"!selectedOptionImageUrl && selectedOptionLabel\\\"\\r\\n\\t\\t\\t\\t\\t[text]=\\\"selectedOptionLabel\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t<span *ngIf=\\\"!selectedOptionImageUrl && !selectedOptionLabel\\\" [class]=\\\"icon\\\"></span>\\r\\n\\t\\t\\t\\t<div>{{ selectedOptionLabel }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-text\\\">\\r\\n\\t\\t\\t\\t<span>{{ noOptionsSelectedText }}</span>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"mat-select-arrow-icon\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</mat-label>\\r\\n\\t<mat-select\\r\\n\\t\\t#select\\r\\n\\t\\tdisableOptionCentering\\r\\n\\t\\tdisableRipple\\r\\n\\t\\t[multiple]=\\\"multiple\\\"\\r\\n\\t\\t[(value)]=\\\"value\\\"\\r\\n\\t\\t[disabled]=\\\"disabled\\\"\\r\\n\\t\\t(selectionChange)=\\\"onValueChange()\\\"\\r\\n\\t\\t(openedChange)=\\\"onOpenedChange($event)\\\"\\r\\n\\t\\tpanelClass=\\\"pri-mat-select-panel {{ panelClass }}\\\">\\r\\n\\t\\t<mat-select-trigger class=\\\"pri-mat-select-placeholder\\\">\\r\\n\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-content-wrapper\\\">\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"icon\\\" class=\\\"pri-mat-select-icon\\\">\\r\\n\\t\\t\\t\\t\\t<img *ngIf=\\\"selectedOptionImageUrl\\\" [attr.src]=\\\"selectedOptionImageUrl | imageSrc : true | async\\\" />\\r\\n\\t\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!selectedOptionImageUrl && selectedOptionLabel\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"selectedOptionLabel\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t\\t<span *ngIf=\\\"!selectedOptionImageUrl && !selectedOptionLabel\\\" [class]=\\\"icon\\\"></span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-mat-select-placeholder-text\\\">\\r\\n\\t\\t\\t\\t\\t<span priTooltipHover>{{ selectedOptionsText }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"mat-select-arrow-icon\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</mat-select-trigger>\\r\\n\\t\\t<ng-container *ngIf=\\\"searchEnabled\\\">\\r\\n\\t\\t\\t<pri-mat-select-search [formControl]=\\\"searchControl\\\"></pri-mat-select-search>\\r\\n\\t\\t</ng-container>\\r\\n\\t\\t<div class=\\\"mat-body\\\">\\r\\n\\t\\t\\t<ng-container *ngIf=\\\"multiple\\\">\\r\\n\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"value && value.length && hasResults; else selectAllBlock\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"mat-select-clear-btn\\\"\\r\\n\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"clearSelectedOptions()\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'components.components.RES_Clear' | priI18n }}\\r\\n\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t<ng-template #selectAllBlock>\\r\\n\\t\\t\\t\\t\\t<button *ngIf=\\\"hasResults\\\" class=\\\"mat-select-clear-btn\\\" type=\\\"button\\\" (click)=\\\"selectAllOptions()\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'components.components.RES_SelectAll' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t</ng-template>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\r\\n\\t\\t\\t<div class=\\\"scrollable-area\\\">\\r\\n\\t\\t\\t\\t<mat-option\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let option of visibleOptions | async\\\"\\r\\n\\t\\t\\t\\t\\t[value]=\\\"option.value\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"option?.readOnly\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"mat-option {{ option.style ? option.style : '' }}\\\">\\r\\n\\t\\t\\t\\t\\t<img\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"option.imageUrl\\\"\\r\\n\\t\\t\\t\\t\\t\\t[attr.src]=\\\"option.imageUrl | imageSrc : true | async\\\"\\r\\n\\t\\t\\t\\t\\t\\t(error)=\\\"onImgError(option)\\\" />\\r\\n\\t\\t\\t\\t\\t<pri-text-initials\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"option-initials\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!option.imageUrl && showInitialsOnImageUnavailable && option.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"option.label\\\"></pri-text-initials>\\r\\n\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"option.backgroundColor\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"info-color\\\"\\r\\n\\t\\t\\t\\t\\t\\t[style.backgroundColor]=\\\"option.backgroundColor\\\"></div>\\r\\n\\t\\t\\t\\t\\t{{ option.label }}\\r\\n\\t\\t\\t\\t</mat-option>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</mat-select>\\r\\n\\r\\n\\t<div class=\\\"pri-mat-select-open-no-value\\\" *ngIf=\\\"select && select.panelOpen && (!value || value.length === 0)\\\">\\r\\n\\t\\t<i class=\\\"ti-ux-chevron-up\\\"></i>\\r\\n\\t</div>\\r\\n</mat-form-field>\\r\\n\", styles: [\".cdk-overlay-container{z-index:1044!important}.cdk-overlay-container .cdk-overlay-pane{transform:none!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel{display:flex;flex-direction:column;min-width:calc(100% + 24px)!important;position:absolute;top:30px;left:-12px;overflow-y:hidden;border:1px solid var(--grey-4);box-shadow:0 .3571428571rem .5714285714rem var(--shadow-6);background-color:var(--grey-1);border-radius:0}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;padding:0}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area{overflow-y:auto;display:flex;flex-direction:column;width:100%;height:100%;scrollbar-width:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area::-webkit-scrollbar{width:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area::-webkit-scrollbar-thumb{opacity:1;border-radius:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area .mat-option-disabled{background-color:#fff}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-body .scrollable-area .mat-option-disabled>span{color:var(--grey-6)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-select-clear-btn{display:flex;justify-content:flex-start;align-items:center;width:100%;padding:16px;height:38px;color:var(--theme-100);background:none;border:none}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox{border-radius:0!important;border:1px solid!important;border-color:var(--grey-4)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox:hover{border-color:var(--theme-100)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox:after{top:2.5px!important;left:2.5px!important;width:7px!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-pseudo-checkbox-checked{background-color:var(--theme-100);border-color:var(--theme-100)!important;height:16px;width:16px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .dot .mat-option-text:before{height:12px;width:12px;border-radius:13px;content:\\\"\\\";display:inline-block;margin-right:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .new .mat-option-text:before{background-color:var(--grey-5)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .in-progress .mat-option-text:before{background-color:var(--info-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .stalled .mat-option-text:before{background-color:var(--warning-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .completed .mat-option-text:before{background-color:var(--success-100)}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option{width:100%;min-height:38px;margin-top:2px;font-size:14px!important;font-weight:400!important;color:var(--grey-8)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:first-child{margin-top:unset}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected,.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected .option-initials{color:var(--grey-8)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text{display:flex;align-items:center}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text .option-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:100%;font-size:14px;color:var(--grey-7);border:1px solid var(--grey-4);margin-right:8px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text img{width:30px;height:30px;border-radius:50%;border:1px solid var(--grey-4);margin-right:8px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option .mat-option-text .info-color{height:12px;width:12px;border-radius:100%;background-color:transparent;margin-right:4px}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:not(.mat-option-disabled){background-color:var(--theme-10)!important}.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:focus:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option:hover:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:focus:not(.mat-option-disabled),.cdk-overlay-container .cdk-overlay-pane .pri-mat-select-panel .mat-option.mat-selected:hover:not(.mat-option-disabled){background:var(--grey-2)}.pri-mat-select-panel{max-height:280px!important}.mat-select-arrow-wrapper{visibility:hidden;width:0}.mat-select-arrow-icon,.pri-mat-select-open-no-value{font-size:8px!important;display:flex!important;align-items:center!important;margin-left:8px!important}.pri-mat-select-open-no-value{display:flex;flex-direction:row-reverse;margin-top:-15px}.mat-form-field{width:100%;line-height:unset}.mat-form-field.active .mat-select-arrow-icon{padding-bottom:3px}.mat-form-field.active .mat-select-arrow-icon i{transform:rotate(180deg)}.mat-form-field.active .mat-form-field-label{display:none!important}.mat-form-field.active .mat-form-field-ripple{background-color:var(--theme-100);height:1px}.mat-form-field .mat-form-field-wrapper{padding-bottom:0;display:flex}.mat-form-field .mat-form-field-wrapper .mat-select-placeholder{height:28px}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix{border-top:0;padding:0}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-select{display:flex;flex-direction:column}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-form-field-label-wrapper{top:0;padding-top:0}.mat-form-field .mat-form-field-wrapper .mat-form-field-infix .mat-form-field-label-wrapper .mat-form-field-label{top:0;color:var(--grey-8);width:100%}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder{display:flex;width:100%;height:28px;justify-content:space-between}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-content-wrapper{display:flex;overflow:hidden}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-text{display:flex;height:100%;align-items:center;padding-left:8px;overflow:hidden}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .pri-mat-select-placeholder-text span{overflow:hidden;text-overflow:ellipsis}.mat-form-field .mat-form-field-wrapper .pri-mat-select-placeholder .mat-select-arrow-icon{font-size:10px;display:flex;align-items:center;margin-left:5px}.mat-form-field .mat-form-field-wrapper .mat-form-field-underline{display:none}.mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-select-value .mat-select-value-text{color:var(--grey-8)}.mat-form-field .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix .mat-select-trigger{height:unset}.option-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:100%;font-size:14px;color:var(--grey-7);border:1px solid var(--grey-4)}pri-mat-select{display:flex;align-items:center;min-width:258px;padding:6px 12px;background:var(--grey-1)}pri-mat-select.error{border:1px solid var(--error-100)!important}pri-mat-select .pri-mat-select-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:28px;width:28px;border-radius:50%;border:1px solid var(--grey-4);color:var(--grey-4);overflow:hidden}pri-mat-select .pri-mat-select-icon span{font-size:16px}pri-mat-select .pri-mat-select-icon img{display:flex;height:100%;width:100%;border-radius:50%;object-fit:cover}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { select: [{\r\n                type: ViewChild,\r\n                args: ['select', { static: false }]\r\n            }], options: [{\r\n                type: Input\r\n            }], searchEnabled: [{\r\n                type: Input\r\n            }], showInitialsOnImageUnavailable: [{\r\n                type: Input\r\n            }], multiple: [{\r\n                type: Input\r\n            }], allOptionsSelectedText: [{\r\n                type: Input\r\n            }], noOptionsSelectedText: [{\r\n                type: Input\r\n            }], value: [{\r\n                type: Input\r\n            }], hasErrors: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }], icon: [{\r\n                type: Input\r\n            }], panelClass: [{\r\n                type: Input\r\n            }], errorClass: [{\r\n                type: HostBinding,\r\n                args: ['class.error']\r\n            }] } });\n\n/**\r\n * Creates a modal in full screen mode\r\n */\r\nclass FullScreenModalComponent {\r\n    constructor(domService) {\r\n        this.domService = domService;\r\n    }\r\n    ngAfterViewInit() {\r\n        if (this.injectedComponentRef) {\r\n            return;\r\n        }\r\n        this.injectedComponentRef = this.domService.appendComponentToBodyAndGetReference(this.component, this.properties, this.container.nativeElement, false, this.customInjector);\r\n    }\r\n    ngOnDestroy() {\r\n        this.injectedComponentRef.destroy();\r\n    }\r\n}\r\nFullScreenModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FullScreenModalComponent, deps: [{ token: i1$2.DomService }], target: i0.ɵɵFactoryTarget.Component });\r\nFullScreenModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FullScreenModalComponent, selector: \"pri-fullscreen-modal\", inputs: { component: \"component\", properties: \"properties\", customInjector: \"customInjector\" }, viewQueries: [{ propertyName: \"container\", first: true, predicate: [\"container\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"full-screen-modal\\\">\\r\\n    <div #container class=\\\"full-screen-container\\\">\\r\\n</div>\", styles: [\"pri-fullscreen-modal .full-screen-modal{position:fixed;width:100%;height:100%;background-color:#00000080;z-index:1043;top:0;left:0}pri-fullscreen-modal .full-screen-modal .full-screen-container{width:100%;height:100%}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FullScreenModalComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-fullscreen-modal', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"full-screen-modal\\\">\\r\\n    <div #container class=\\\"full-screen-container\\\">\\r\\n</div>\", styles: [\"pri-fullscreen-modal .full-screen-modal{position:fixed;width:100%;height:100%;background-color:#00000080;z-index:1043;top:0;left:0}pri-fullscreen-modal .full-screen-modal .full-screen-container{width:100%;height:100%}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.DomService }]; }, propDecorators: { component: [{\r\n                type: Input\r\n            }], properties: [{\r\n                type: Input\r\n            }], customInjector: [{\r\n                type: Input\r\n            }], container: [{\r\n                type: ViewChild,\r\n                args: ['container', { static: true }]\r\n            }] } });\n\n/**\r\n * Creates a container that holds contented passed by its inputs and positions\r\n * it close to a given element with an popup style\r\n */\r\nclass PopoverComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     * @param _componentFactoryResolver\r\n     * @param _appRef A reference to an Angular application running on a page.\r\n     * @param _injector An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\r\n     * @param _elementRef A wrapper around a native element inside of a View.\r\n     * @param nvarService Manager the communication with other components of the application\r\n     * @param domService Service responsible to interact with DOM\r\n     * @param windowService Service that allows to interact with the browser window object\r\n     * @param deviceService Service responsible to handles all operations that are about the different devices that users could use\r\n     */\r\n    constructor(_componentFactoryResolver, _appRef, _injector, _elementRef, domService, windowService, deviceService) {\r\n        this._componentFactoryResolver = _componentFactoryResolver;\r\n        this._appRef = _appRef;\r\n        this._injector = _injector;\r\n        this._elementRef = _elementRef;\r\n        this.domService = domService;\r\n        this.windowService = windowService;\r\n        this.deviceService = deviceService;\r\n        /** Arrow style that points to the anchor elementRef */\r\n        this.arrowStyle = {\r\n            left: `0px`\r\n        };\r\n        /** Arrow height that points to the anchor elementRef */\r\n        this.arrowHeight = 9;\r\n        /** Arrow height that points to the anchor elementRef */\r\n        this.arrowWidth = 18;\r\n        /** Margin that separate the border of the popup and the their content */\r\n        this.popoverPadding = 10;\r\n        /** Flag that holds the information if the component is initialized */\r\n        this.isComponentInitialized = false;\r\n    }\r\n    /** Handles each time a resize on the window occurs */\r\n    onWindowResize(event) {\r\n        this.onDismiss();\r\n    }\r\n    /**\r\n     * Handles each time a click is made on the document.\r\n     * Each time a click is made, this function evaluates if the popup should be closed or not.\r\n     */\r\n    onDocumentClick(event) {\r\n        if (!this.isComponentInitialized) {\r\n            return;\r\n        }\r\n        let clickedComponent = event.target;\r\n        let inside = false;\r\n        do {\r\n            if (clickedComponent === this._elementRef.nativeElement) {\r\n                inside = true;\r\n            }\r\n            clickedComponent = clickedComponent.parentNode;\r\n        } while (clickedComponent);\r\n        if (!inside) {\r\n            this.onDismiss();\r\n        }\r\n    }\r\n    /**\r\n     * A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive.\r\n     * Define an ngOnInit() method to handle any additional initialization tasks.\r\n     */\r\n    ngOnInit() {\r\n        this.popupStyle = {\r\n            display: 'none'\r\n        };\r\n    }\r\n    /**\r\n     * A callback method that is invoked immediately after Angular has completed initialization of a component's view.\r\n     * It is invoked only once when the view is instantiated.\r\n     */\r\n    ngAfterViewInit() {\r\n        const self = this;\r\n        if (this.recalculatePosition) {\r\n            this.recalculatePosition.subscribe((size) => {\r\n                this.size = size;\r\n                this.setOnResizeSetInterval(false);\r\n                this.calculatePosition().then(() => {\r\n                    this.containerSize = new SizeModel$1(this.container.nativeElement.clientWidth, this.container.nativeElement.clientHeight);\r\n                    this.setOnResizeSetInterval();\r\n                });\r\n            });\r\n        }\r\n        if (this.updateContext) {\r\n            this.updateContext.subscribe((context) => this.onUpdateContext(context));\r\n        }\r\n        setTimeout(() => {\r\n            this.isComponentInitialized = true;\r\n            this.calculatePosition();\r\n        });\r\n        setTimeout(() => {\r\n            // Keep local reference of ApplicationRef\r\n            self.localAppRef = self._appRef;\r\n            // Create a component reference from the component\r\n            self.componentRef = self._componentFactoryResolver\r\n                .resolveComponentFactory(self.content)\r\n                .create(self._injector);\r\n            // Add close and dismiss callback functions\r\n            self.componentRef.instance.onDismiss = () => {\r\n                self.onDismiss();\r\n            };\r\n            self.componentRef.instance.onClose = (result) => {\r\n                self.onClose(result);\r\n            };\r\n            // Add context properties to the component\r\n            if (self.context != null) {\r\n                for (const property in self.context) {\r\n                    if (Object.prototype.hasOwnProperty.call(self.context, property)) {\r\n                        self.componentRef.instance[property] = self.context[property];\r\n                    }\r\n                }\r\n            }\r\n            // Attach component to the appRef so that it's inside the ng component tree\r\n            self._appRef.attachView(self.componentRef.hostView);\r\n            // Get DOM element from component\r\n            const domElem = self.componentRef.hostView.rootNodes[0];\r\n            // Append DOM element to container\r\n            self.container.nativeElement.appendChild(domElem);\r\n            self.containerSize = new SizeModel$1(self.container.nativeElement.clientWidth, self.container.nativeElement.clientHeight);\r\n            this.setOnResizeSetInterval();\r\n        });\r\n    }\r\n    /**\r\n     * Handles each time the popup size change\r\n     */\r\n    onSizeChange() {\r\n        const widthIsSimilar = this.container.nativeElement.clientWidth < this.containerSize.width + 5 &&\r\n            this.container.nativeElement.clientWidth > this.containerSize.width - 5;\r\n        const heightIsSimilar = this.container.nativeElement.clientWidth < this.containerSize.width + 5 &&\r\n            this.container.nativeElement.clientWidth > this.containerSize.width - 5;\r\n        if (!widthIsSimilar || !heightIsSimilar) {\r\n            this.containerSize = new SizeModel$1(this.container.nativeElement.clientWidth, this.container.nativeElement.clientHeight);\r\n            this.calculatePosition();\r\n            this.onResize.emit(this.containerSize);\r\n        }\r\n    }\r\n    /**\r\n     * A lifecycle hook that is called when a directive, pipe, or service is destroyed.\r\n     * Use for any custom cleanup that needs to occur when the instance is destroyed.\r\n     */\r\n    ngOnDestroy() {\r\n        if (this.localAppRef && this.componentRef) {\r\n            this.localAppRef.detachView(this.componentRef.hostView);\r\n            this.componentRef.destroy();\r\n        }\r\n        if (this.recalculatePosition) {\r\n            this.recalculatePosition.unsubscribe();\r\n        }\r\n        this.localAppRef = null;\r\n        this.componentRef = null;\r\n        clearInterval(this.onSizeChangeSetInterval);\r\n    }\r\n    onDismiss() {\r\n        this.onDismissCallback();\r\n        this.dismissView();\r\n    }\r\n    onClose(result) {\r\n        this.onCloseCallback(result);\r\n        this.dismissView();\r\n    }\r\n    onUpdateContext(context) {\r\n        if (context) {\r\n            this.context = context;\r\n        }\r\n    }\r\n    /**\r\n     * Function that calculates the popup position and updates the popup styles.\r\n     *\r\n     * @return Returns a promise telling that all calculations were made and applied.\r\n     */\r\n    calculatePosition() {\r\n        return new Promise((resolve) => {\r\n            this.popupStyle = {\r\n                top: '0px',\r\n                left: `-10000px`,\r\n                width: this.getMenuWidth() + 'px',\r\n                display: 'block',\r\n                'max-height': this.getMenuMaxHeight() + 'px'\r\n            };\r\n            setTimeout(() => {\r\n                let pointerLeftPosition = 0;\r\n                const margin = 20;\r\n                const windowScrollValues = this.windowService.getScrollValues();\r\n                const height = this.container.nativeElement.getBoundingClientRect().height;\r\n                const width = this.container.nativeElement.getBoundingClientRect().width;\r\n                const parentTop = this.anchorElementRef.nativeElement.getBoundingClientRect().top;\r\n                const parentLeft = this.anchorElementRef.nativeElement.getBoundingClientRect().left;\r\n                const parentHeight = this.anchorElementRef.nativeElement.getBoundingClientRect().height;\r\n                const parentWidth = this.anchorElementRef.nativeElement.getBoundingClientRect().width;\r\n                const screenSize = this.domService.getScreenSize(true);\r\n                const parentRight = screenSize.width - parentLeft;\r\n                const deviceMarginTop = this.getMarginTop();\r\n                this.menuPositionIsTop =\r\n                    parentTop + windowScrollValues.y > screenSize.height / 2 &&\r\n                        parentTop + windowScrollValues.y > height + deviceMarginTop;\r\n                let top = this.menuPositionIsTop ? parentTop - height - 5 : parentTop + parentHeight + 5;\r\n                top += windowScrollValues.y;\r\n                let left = parentLeft - parentWidth / 2 + 5;\r\n                this.menuPositionIsLeft = parentLeft < screenSize.width / 2;\r\n                if (parentLeft + width / 2 > screenSize.width) {\r\n                    left = parentLeft + parentWidth / 2 + width / 2;\r\n                    if (left + width + margin > screenSize.width) {\r\n                        left = screenSize.width - width - margin;\r\n                        pointerLeftPosition = -(parentRight - this.arrowWidth - margin); //-(parentRight - parentWidth / 2);\r\n                    }\r\n                }\r\n                else {\r\n                    left = parentLeft - width / 2 + parentWidth / 2;\r\n                    pointerLeftPosition = width / 2 - 10;\r\n                    if (left < 56) {\r\n                        left = this.getMarginLeft();\r\n                        pointerLeftPosition = parentLeft - left + 5;\r\n                    }\r\n                    if (!this.menuPositionIsLeft) {\r\n                        pointerLeftPosition = -pointerLeftPosition;\r\n                    }\r\n                }\r\n                if (left - margin < 0) {\r\n                    pointerLeftPosition = left;\r\n                    if (width + margin < screenSize.width) {\r\n                        left = margin;\r\n                        if (parentLeft < screenSize.width / 2) {\r\n                            pointerLeftPosition = parentLeft + parentWidth / 2 - left - 10;\r\n                        }\r\n                        else {\r\n                            pointerLeftPosition = parentLeft + parentWidth / 2 + 10 - left - width;\r\n                        }\r\n                    }\r\n                    else {\r\n                        left = -((width - screenSize.width) / 2);\r\n                        if (parentLeft < screenSize.width / 2) {\r\n                            pointerLeftPosition = parentLeft + left;\r\n                        }\r\n                        else {\r\n                            pointerLeftPosition = left - parentRight - 5;\r\n                        }\r\n                    }\r\n                }\r\n                this.popupStyle = {\r\n                    top: `${top}px`,\r\n                    width: `${width}px`,\r\n                    left: `${left}px`,\r\n                    'max-height': `${this.getMenuMaxHeight()}`,\r\n                    display: 'block',\r\n                    'z-index': 1043\r\n                };\r\n                this.arrowStyle = {\r\n                    left: `${pointerLeftPosition}px`\r\n                };\r\n                setTimeout(() => resolve());\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Return the margin top that changes depending the screen size.\r\n     * It is necessary to adapt to different devices screen sizes and it is used calculate the screen util or visible area.\r\n     */\r\n    getMarginTop() {\r\n        let marginTop = 0;\r\n        if (this.deviceService.isMobileDevice()) {\r\n            marginTop = this.domService.findElementByClassName('navbar')?.clientHeight || 0;\r\n        }\r\n        const nvarSize = this.domService.getElementSizeByElementClassName('content-header');\r\n        // + 7 is the to give an extra margin to became more user friendly\r\n        return marginTop + nvarSize.height + 7;\r\n    }\r\n    /**\r\n     * Return the margin left that changes depending the screen size.\r\n     * It is necessary to adapt to different devices screen sizes and it is used calculate the screen util or visible area.\r\n     */\r\n    getMarginLeft() {\r\n        const devicesEnum = this.deviceService.getDevice();\r\n        let marginLeft = this.domService.findElementByClassName('sidebar').clientWidth;\r\n        if (devicesEnum === \"ExtraSmallDevices\" /* DevicesEnum.ExtraSmallDevices */ ||\r\n            devicesEnum === \"SmallDevices\" /* DevicesEnum.SmallDevices */ ||\r\n            devicesEnum === \"MediumDevices\" /* DevicesEnum.MediumDevices */) {\r\n            marginLeft = 56;\r\n        }\r\n        return marginLeft;\r\n    }\r\n    /**\r\n     * Calculates the popup max height\r\n     */\r\n    getMenuMaxHeight() {\r\n        return this.size.maxHeight + this.popoverPadding * 2 + this.arrowHeight;\r\n    }\r\n    /**\r\n     * Calculates the popup width\r\n     */\r\n    getMenuWidth() {\r\n        return this.size.width + this.popoverPadding * 2;\r\n    }\r\n    /**\r\n     * Will set a timer that will evaluate if the size of the popover has changed\r\n     * This method will only set the timer of the onResize event emitter has, at least, on subscriber.\r\n     *\r\n     * @param start if true, will launch the timer, if false, will stop the timer.\r\n     */\r\n    setOnResizeSetInterval(start = true) {\r\n        if (this.onResize && this.onResize.observers.length > 0) {\r\n            if (start) {\r\n                this.onSizeChangeSetInterval = window.setInterval(() => {\r\n                    this.onSizeChange();\r\n                }, 30);\r\n            }\r\n            else {\r\n                clearInterval(this.onSizeChangeSetInterval);\r\n            }\r\n        }\r\n    }\r\n}\r\nPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PopoverComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i1$2.DomService }, { token: i1$2.WindowService }, { token: i1$2.DeviceService }], target: i0.ɵɵFactoryTarget.Component });\r\nPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PopoverComponent, selector: \"ng-component\", inputs: { content: \"content\", context: \"context\", anchorElementRef: \"anchorElementRef\", size: \"size\", onCloseCallback: \"onCloseCallback\", onDismissCallback: \"onDismissCallback\", dismissView: \"dismissView\", recalculatePosition: \"recalculatePosition\", updateContext: \"updateContext\", onResize: \"onResize\" }, host: { listeners: { \"window:resize\": \"onWindowResize($event)\", \"document:click\": \"onDocumentClick($event)\" } }, viewQueries: [{ propertyName: \"container\", first: true, predicate: [\"container\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"pri-field-options\\\" [ngStyle]=\\\"popupStyle\\\">\\r\\n    <div class=\\\"arrow\\\" \\r\\n        *ngIf=\\\"!menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-top-right' : !this.menuPositionIsLeft, 'arrow-top-left' : this.menuPositionIsLeft}\\\"\\r\\n        [ngStyle]=\\\"arrowStyle\\\"\\r\\n        >\\r\\n    </div>\\r\\n    <div #container class=\\\"container\\\">\\r\\n        \\r\\n    </div>\\r\\n    <div class=\\\"arrow\\\" \\r\\n        *ngIf=\\\"menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-bottom-right' : !this.menuPositionIsLeft, 'arrow-bottom-left' : this.menuPositionIsLeft}\\\"\\r\\n        [ngStyle]=\\\"arrowStyle\\\">\\r\\n    </div>\\r\\n</div>\", dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PopoverComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ template: \"<div class=\\\"pri-field-options\\\" [ngStyle]=\\\"popupStyle\\\">\\r\\n    <div class=\\\"arrow\\\" \\r\\n        *ngIf=\\\"!menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-top-right' : !this.menuPositionIsLeft, 'arrow-top-left' : this.menuPositionIsLeft}\\\"\\r\\n        [ngStyle]=\\\"arrowStyle\\\"\\r\\n        >\\r\\n    </div>\\r\\n    <div #container class=\\\"container\\\">\\r\\n        \\r\\n    </div>\\r\\n    <div class=\\\"arrow\\\" \\r\\n        *ngIf=\\\"menuPositionIsTop\\\"\\r\\n        [ngClass]=\\\"{'arrow-bottom-right' : !this.menuPositionIsLeft, 'arrow-bottom-left' : this.menuPositionIsLeft}\\\"\\r\\n        [ngStyle]=\\\"arrowStyle\\\">\\r\\n    </div>\\r\\n</div>\" }]\r\n        }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i1$2.DomService }, { type: i1$2.WindowService }, { type: i1$2.DeviceService }]; }, propDecorators: { content: [{\r\n                type: Input\r\n            }], context: [{\r\n                type: Input\r\n            }], anchorElementRef: [{\r\n                type: Input\r\n            }], size: [{\r\n                type: Input\r\n            }], onCloseCallback: [{\r\n                type: Input\r\n            }], onDismissCallback: [{\r\n                type: Input\r\n            }], dismissView: [{\r\n                type: Input\r\n            }], recalculatePosition: [{\r\n                type: Input\r\n            }], updateContext: [{\r\n                type: Input\r\n            }], onResize: [{\r\n                type: Input\r\n            }], container: [{\r\n                type: ViewChild,\r\n                args: ['container', { static: true }]\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize', ['$event']]\r\n            }], onDocumentClick: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\n/**\r\n * Directive responsible to extend popover\r\n */\r\nclass PriPopoverDirective {\r\n    constructor() {\r\n        this.padding = 10;\r\n    }\r\n    ngOnInit() {\r\n        this.priPopover.onShown.subscribe(() => {\r\n            if (this.priPopover._popover) {\r\n                if (this.priPopover._popover._contentRef.viewRef && this.priPopover._popover._contentRef.viewRef) {\r\n                    this.priPopover._popover._contentRef.viewRef.detectChanges();\r\n                }\r\n                if (this.priPopover._popover._componentRef &&\r\n                    this.priPopover._popover._componentRef.location &&\r\n                    this.priPopover._popover._componentRef.location.nativeElement) {\r\n                    this.popoverComponentRef = this.priPopover._popover._componentRef.location.nativeElement;\r\n                    const elementBounding = this.priPopover._popover._elementRef.nativeElement.getBoundingClientRect();\r\n                    const componentBounding = this.popoverComponentRef.getBoundingClientRect();\r\n                    if (this.priPopover.placement === 'top' &&\r\n                        componentBounding.height + this.padding > elementBounding.top) {\r\n                        this.priPopover._popover.position({\r\n                            attachment: 'bottom'\r\n                        });\r\n                    }\r\n                    this.popoverComponentRef.classList.add('popover-hidden');\r\n                    this.calculatePosition(elementBounding, componentBounding);\r\n                }\r\n            }\r\n        });\r\n    }\r\n    calculatePosition(elementBounding, componentBounding) {\r\n        setTimeout(() => {\r\n            try {\r\n                const elementBoundingCenter = elementBounding.left + elementBounding.width / 2;\r\n                if (this.priPopover.placement === 'top' || this.priPopover.placement === 'bottom') {\r\n                    if (this.priPopover.containerClass === '' && this.priPopover.container !== 'body') {\r\n                        this.popoverComponentRef.style.position = 'fixed';\r\n                        const styleLeft = +this.popoverComponentRef.style.left.replace('px', '');\r\n                        const transformX = elementBounding.left - componentBounding.width / 2 - styleLeft + elementBounding.width / 2;\r\n                        const transformY = elementBounding.top - 5;\r\n                        const diff = styleLeft + transformX;\r\n                        if (diff < 0) {\r\n                            const width = componentBounding.width + diff * 2 + 5;\r\n                            this.popoverComponentRef.style.width = `${width}px`;\r\n                        }\r\n                        this.popoverComponentRef.style.transform = `translateX(${transformX}px) translateY(${transformY}px)`;\r\n                    }\r\n                    else {\r\n                        if (elementBoundingCenter + componentBounding.width / 2 > window.innerWidth - this.padding) {\r\n                            const translate = Math.round(window.innerWidth - this.padding - (elementBoundingCenter + componentBounding.width / 2));\r\n                            const transformValue = this.getTranslate3dValues(this.popoverComponentRef);\r\n                            this.popoverComponentRef.style.transform = `translate3d(${parseInt(transformValue[0], 10) + translate}px,${transformValue[1]},${transformValue[2]})`;\r\n                            const arrow = this.popoverComponentRef.querySelector('.popover-arrow');\r\n                            arrow.style.transform = 'translateX(' + -(translate + this.padding) + 'px)';\r\n                        }\r\n                        else if (elementBoundingCenter - componentBounding.width / 2 < this.padding) {\r\n                            const translate = Math.round(elementBoundingCenter - componentBounding.width / 2 - this.padding);\r\n                            const transformValue = this.getTranslate3dValues(this.popoverComponentRef);\r\n                            this.popoverComponentRef.style.transform = `translate3d(${parseInt(transformValue[0], 10) - translate}px,${transformValue[1]},${transformValue[2]})`;\r\n                            const arrow = this.popoverComponentRef.querySelector('.popover-arrow');\r\n                            arrow.style.transform = 'translateX(' + (translate - this.padding) + 'px)';\r\n                        }\r\n                    }\r\n                }\r\n                this.popoverComponentRef.classList.remove('popover-hidden');\r\n            }\r\n            catch (e) {\r\n                console.log(e);\r\n            }\r\n        });\r\n    }\r\n    getTranslate3dValues(element) {\r\n        const values = element.style.transform.split(/\\w+\\(|\\);?/);\r\n        if (!values[1] || !values[1].length) {\r\n            return [];\r\n        }\r\n        return values[1].split(/,\\s?/g);\r\n    }\r\n}\r\nPriPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\r\nPriPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriPopoverDirective, isStandalone: true, selector: \"[priPopover]\", inputs: { priPopover: \"priPopover\" }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriPopoverDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priPopover]',\r\n                    standalone: true\r\n                }]\r\n        }], propDecorators: { priPopover: [{\r\n                type: Input\r\n            }] } });\n\nclass ProgressBarComponent {\r\n    constructor() { }\r\n}\r\nProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ProgressBarComponent, selector: \"pri-progress-bar\", inputs: { status: \"status\", progress: \"progress\", alwaysVisible: \"alwaysVisible\" }, ngImport: i0, template: \"<div class=\\\"pri-progress\\\" *ngIf=\\\"progress || alwaysVisible\\\">\\r\\n    <div class=\\\"pri-progress-bar {{status}}\\\" [style.width]=\\\"progress.toString() + '%'\\\">\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-progress-bar{width:100%;display:flex;flex-direction:column;justify-content:center}pri-progress-bar .pri-progress{width:100%;height:8px;background:#dbe0eb;border-radius:10px}pri-progress-bar .pri-progress .pri-progress-bar{transition:width .6s ease;background:#dbe0eb;height:100%;border-radius:10px}pri-progress-bar .pri-progress .pri-progress-bar.active{background:transparent linear-gradient(270deg,var(--info-100) 0%,#dbe8ff 100%) 0% 0% no-repeat padding-box}pri-progress-bar .pri-progress .pri-progress-bar.stalled{background:transparent linear-gradient(270deg,var(--warning-100) 0%,#ffeedb 100%) 0% 0% no-repeat padding-box}pri-progress-bar .pri-progress .pri-progress-bar.completed{background:transparent linear-gradient(270deg,var(--success-100) 0%,#d5f7ea 100%) 0% 0% no-repeat padding-box}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ProgressBarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-progress-bar', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-progress\\\" *ngIf=\\\"progress || alwaysVisible\\\">\\r\\n    <div class=\\\"pri-progress-bar {{status}}\\\" [style.width]=\\\"progress.toString() + '%'\\\">\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-progress-bar{width:100%;display:flex;flex-direction:column;justify-content:center}pri-progress-bar .pri-progress{width:100%;height:8px;background:#dbe0eb;border-radius:10px}pri-progress-bar .pri-progress .pri-progress-bar{transition:width .6s ease;background:#dbe0eb;height:100%;border-radius:10px}pri-progress-bar .pri-progress .pri-progress-bar.active{background:transparent linear-gradient(270deg,var(--info-100) 0%,#dbe8ff 100%) 0% 0% no-repeat padding-box}pri-progress-bar .pri-progress .pri-progress-bar.stalled{background:transparent linear-gradient(270deg,var(--warning-100) 0%,#ffeedb 100%) 0% 0% no-repeat padding-box}pri-progress-bar .pri-progress .pri-progress-bar.completed{background:transparent linear-gradient(270deg,var(--success-100) 0%,#d5f7ea 100%) 0% 0% no-repeat padding-box}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { status: [{\r\n                type: Input\r\n            }], progress: [{\r\n                type: Input\r\n            }], alwaysVisible: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Represents a default range item. Has a set of options and function that adds behavior to the item.\r\n */\r\nclass IRadioButtonGroup {\r\n}\n\n/** The checkbox options */\r\nclass RadioButtonGroupOptions {\r\n    constructor(radioButtonGroup) {\r\n        /** The size of the checkbox */\r\n        this.size = FieldsSizeEnum.Regular;\r\n        if (radioButtonGroup) {\r\n            Object.assign(this, radioButtonGroup);\r\n        }\r\n    }\r\n}\n\nclass RadioButtonGroupComponent {\r\n    constructor() {\r\n        this.layout = 'horizontal';\r\n        this.valueChange = new EventEmitter();\r\n        this.isDisabled$ = new BehaviorSubject$1(false);\r\n        this._options = new RadioButtonGroupOptions();\r\n        this.id ?? (this.id = GuidService.createUID());\r\n    }\r\n    set options(options) {\r\n        this._options = new RadioButtonGroupOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    set isDisabled(value) {\r\n        this.isDisabled$.next(value);\r\n    }\r\n    ngOnInit() {\r\n        if (this.model?.length > 0) {\r\n            this.setSelectedRadio();\r\n            this.onRadioChange();\r\n        }\r\n    }\r\n    ngOnChanges() {\r\n        this.setSelectedRadio();\r\n    }\r\n    // #region ControlValueAccessor methods\r\n    writeValue(value) {\r\n        this.radioSelected = this.model.find((m) => m.value === value);\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChanged = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    setDisabledState(value) {\r\n        this.isDisabled = value;\r\n    }\r\n    // #endregion\r\n    // responsible for setting the selected option in the group.\r\n    setSelectedRadio() {\r\n        this.radioSelected = this.model.find((m) => m.selected) || this.model[0];\r\n        this.onChanged?.(this.radioSelected);\r\n    }\r\n    // responsible for emitting an event when an option is clicked.\r\n    onRadioChange(value) {\r\n        this.radioSelected = value || this.radioSelected;\r\n        this.onChanged?.(this.radioSelected);\r\n        this.onTouched?.();\r\n        this.valueChange.emit(this.radioSelected);\r\n    }\r\n}\r\nRadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RadioButtonGroupComponent, isStandalone: true, selector: \"pri-radio-button-group\", inputs: { options: \"options\", model: \"model\", layout: \"layout\", isDisabled: \"isDisabled\" }, outputs: { valueChange: \"valueChange\" }, providers: [\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => RadioButtonGroupComponent),\r\n            multi: true\r\n        }\r\n    ], usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"radio-button-group-wrapper {{ layout }}-layout {{ options.size }}\\\" data-testid=\\\"radioButtonGroupTest\\\">\\r\\n\\t<div class=\\\"radio-button-group\\\" *ngFor=\\\"let radioButton of model; let i = index\\\">\\r\\n\\t\\t<div class=\\\"radio-wrapper\\\">\\r\\n\\t\\t\\t<input\\r\\n\\t\\t\\t\\tid=\\\"{{ id }}-{{ i }}\\\"\\r\\n\\t\\t\\t\\t[attr.name]=\\\"id\\\"\\r\\n\\t\\t\\t\\ttype=\\\"radio\\\"\\r\\n\\t\\t\\t\\t[value]=\\\"radioButton.value\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"(isDisabled$ | async) || radioButton.disabled\\\"\\r\\n\\t\\t\\t\\t[attr.checked]=\\\"radioSelected?.value === radioButton.value || null\\\"\\r\\n\\t\\t\\t\\t(change)=\\\"onRadioChange(radioButton)\\\" />\\r\\n\\t\\t\\t<label\\r\\n\\t\\t\\t\\tfor=\\\"{{ id }}-{{ i }}\\\"\\r\\n\\t\\t\\t\\tclass=\\\"radio-label\\\"\\r\\n\\t\\t\\t\\t[class.disabled]=\\\"(isDisabled$ | async) || radioButton.disabled\\\"\\r\\n\\t\\t\\t\\t[class.checked]=\\\"radioSelected?.value === radioButton.value\\\">\\r\\n\\t\\t\\t\\t<i *ngIf=\\\"radioButton.icon\\\" [class]=\\\"radioButton.icon\\\"></i>\\r\\n\\t\\t\\t\\t<img *ngIf=\\\"radioButton.image\\\" [src]=\\\"radioButton.image\\\" />\\r\\n\\t\\t\\t\\t<span>{{ radioButton.description | priI18n }}</span>\\r\\n\\t\\t\\t</label>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-radio-button-group.ng-invalid.ng-touched.ng-dirty .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:not(:disabled)+.radio-label:before{border:1px solid var(--error-100)}pri-radio-button-group .radio-button-group-wrapper{display:flex;flex-direction:row;align-items:flex-end;box-sizing:border-box}pri-radio-button-group .radio-button-group-wrapper .radio-button-group{margin-right:1.2em;display:flex;height:2.2857142857rem}pri-radio-button-group .radio-button-group-wrapper .radio-button-group:last-child{margin-right:0}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper{display:flex;align-items:center;white-space:nowrap;overflow:hidden;max-width:240px;color:var(--grey-7)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover label{color:var(--grey-8)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover input[type=radio]:disabled+.radio-label{cursor:auto}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover input[type=radio]:not(:disabled)+.radio-label:before{border-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]{position:absolute;opacity:0;pointer-events:none}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label{cursor:pointer;position:relative;font-size:1em;gap:.5714285714rem;flex-shrink:0}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label>i{font-size:1.3571428571em;color:var(--grey-8)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label>img{height:1.4285714286rem}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label:before{content:\\\"\\\";border-radius:100%;width:1.4285714286rem;height:1.4285714286rem;border:1px solid var(--grey-5);background-color:var(--grey-1)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label:after{content:\\\"\\\";position:absolute;border-radius:100%;width:.8571428571rem;height:.8571428571rem;left:.2857142857rem;background-color:transparent}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label.checked:after{background-color:var(--grey-5)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:disabled{cursor:auto}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:disabled+.radio-label:before{background-color:var(--grey-3)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:checked:not(:disabled)+.radio-label:before{border-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:checked:not(:disabled)+.radio-label:after{background-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper label{text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;color:var(--grey-7)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper label.disabled{color:var(--grey-6)}pri-radio-button-group .radio-button-group-wrapper.vertical-layout{flex-direction:column;align-items:flex-start}pri-radio-button-group .radio-button-group-wrapper.size-small .radio-button-group .radio-wrapper input[type=radio]+.radio-label{font-size:.95em}pri-radio-button-group .radio-button-group-wrapper.size-large .radio-button-group .radio-wrapper input[type=radio]+.radio-label{font-size:1.2em}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"ngmodule\", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RadioButtonGroupComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-radio-button-group', encapsulation: ViewEncapsulation.None, imports: [CommonModule, PrimaveraI18nModule, FormsModule], providers: [\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => RadioButtonGroupComponent),\r\n                            multi: true\r\n                        }\r\n                    ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"radio-button-group-wrapper {{ layout }}-layout {{ options.size }}\\\" data-testid=\\\"radioButtonGroupTest\\\">\\r\\n\\t<div class=\\\"radio-button-group\\\" *ngFor=\\\"let radioButton of model; let i = index\\\">\\r\\n\\t\\t<div class=\\\"radio-wrapper\\\">\\r\\n\\t\\t\\t<input\\r\\n\\t\\t\\t\\tid=\\\"{{ id }}-{{ i }}\\\"\\r\\n\\t\\t\\t\\t[attr.name]=\\\"id\\\"\\r\\n\\t\\t\\t\\ttype=\\\"radio\\\"\\r\\n\\t\\t\\t\\t[value]=\\\"radioButton.value\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"(isDisabled$ | async) || radioButton.disabled\\\"\\r\\n\\t\\t\\t\\t[attr.checked]=\\\"radioSelected?.value === radioButton.value || null\\\"\\r\\n\\t\\t\\t\\t(change)=\\\"onRadioChange(radioButton)\\\" />\\r\\n\\t\\t\\t<label\\r\\n\\t\\t\\t\\tfor=\\\"{{ id }}-{{ i }}\\\"\\r\\n\\t\\t\\t\\tclass=\\\"radio-label\\\"\\r\\n\\t\\t\\t\\t[class.disabled]=\\\"(isDisabled$ | async) || radioButton.disabled\\\"\\r\\n\\t\\t\\t\\t[class.checked]=\\\"radioSelected?.value === radioButton.value\\\">\\r\\n\\t\\t\\t\\t<i *ngIf=\\\"radioButton.icon\\\" [class]=\\\"radioButton.icon\\\"></i>\\r\\n\\t\\t\\t\\t<img *ngIf=\\\"radioButton.image\\\" [src]=\\\"radioButton.image\\\" />\\r\\n\\t\\t\\t\\t<span>{{ radioButton.description | priI18n }}</span>\\r\\n\\t\\t\\t</label>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-radio-button-group.ng-invalid.ng-touched.ng-dirty .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:not(:disabled)+.radio-label:before{border:1px solid var(--error-100)}pri-radio-button-group .radio-button-group-wrapper{display:flex;flex-direction:row;align-items:flex-end;box-sizing:border-box}pri-radio-button-group .radio-button-group-wrapper .radio-button-group{margin-right:1.2em;display:flex;height:2.2857142857rem}pri-radio-button-group .radio-button-group-wrapper .radio-button-group:last-child{margin-right:0}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper{display:flex;align-items:center;white-space:nowrap;overflow:hidden;max-width:240px;color:var(--grey-7)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover label{color:var(--grey-8)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover input[type=radio]:disabled+.radio-label{cursor:auto}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper:hover input[type=radio]:not(:disabled)+.radio-label:before{border-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]{position:absolute;opacity:0;pointer-events:none}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label{cursor:pointer;position:relative;font-size:1em;gap:.5714285714rem;flex-shrink:0}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label>i{font-size:1.3571428571em;color:var(--grey-8)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label>img{height:1.4285714286rem}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label:before{content:\\\"\\\";border-radius:100%;width:1.4285714286rem;height:1.4285714286rem;border:1px solid var(--grey-5);background-color:var(--grey-1)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label:after{content:\\\"\\\";position:absolute;border-radius:100%;width:.8571428571rem;height:.8571428571rem;left:.2857142857rem;background-color:transparent}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]+.radio-label.checked:after{background-color:var(--grey-5)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:disabled{cursor:auto}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:disabled+.radio-label:before{background-color:var(--grey-3)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:checked:not(:disabled)+.radio-label:before{border-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper input[type=radio]:checked:not(:disabled)+.radio-label:after{background-color:var(--theme-100)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper label{text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center;color:var(--grey-7)}pri-radio-button-group .radio-button-group-wrapper .radio-button-group .radio-wrapper label.disabled{color:var(--grey-6)}pri-radio-button-group .radio-button-group-wrapper.vertical-layout{flex-direction:column;align-items:flex-start}pri-radio-button-group .radio-button-group-wrapper.size-small .radio-button-group .radio-wrapper input[type=radio]+.radio-label{font-size:.95em}pri-radio-button-group .radio-button-group-wrapper.size-large .radio-button-group .radio-wrapper input[type=radio]+.radio-label{font-size:1.2em}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { options: [{\r\n                type: Input\r\n            }], model: [{\r\n                type: Input\r\n            }], layout: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass RecordSelectorComponent {\r\n    constructor(zone, changeDetectorRef, eventService) {\r\n        this.zone = zone;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.eventService = eventService;\r\n        /** Outlet which the record selector was constructed.*/\r\n        this.outlet = \"primary\" /* OutletEnum.Primary */;\r\n        this.isVisible = false;\r\n        window.eventRecordSelector = {\r\n            zone: this.zone,\r\n            componentFn: (definition) => this.listDefinition(definition),\r\n            component: this\r\n        };\r\n    }\r\n    openRecordList() {\r\n        const eventContext = this.definition.attributes;\r\n        const event = new FormEvent('OpenModal', undefined, undefined, undefined, eventContext);\r\n        event.completed = (params) => {\r\n            this.definition.callback(params);\r\n        };\r\n        this.eventService.onEvent(event);\r\n    }\r\n    listDefinition(definition) {\r\n        if (definition && definition.attributes && definition.attributes.outlet === this.outlet) {\r\n            this.definition = definition;\r\n            this.isVisible = definition.attributes.isVisible;\r\n            this.changeDetectorRef.detectChanges();\r\n        }\r\n    }\r\n}\r\nRecordSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RecordSelectorComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$2.EventService }], target: i0.ɵɵFactoryTarget.Component });\r\nRecordSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RecordSelectorComponent, selector: \"pri-record-selector\", inputs: { outlet: \"outlet\" }, ngImport: i0, template: `\r\n\t\t<span *ngIf=\"isVisible\" class=\"record-selector\">\r\n\t\t\t<span id=\"recordSelectorInput\" class=\"magnifier-icon ti-ux-search\" (click)=\"openRecordList()\"></span>\r\n\t\t</span>\r\n\t`, isInline: true, styles: [\"pri-record-selector .record-selector{width:16px;height:17px;display:flex}pri-record-selector .record-selector .ti-ux-search{width:100%;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.2em;margin-top:1px;color:var(--theme-100)}pri-record-selector .record-selector .ti-ux-search:before{margin-top:0;position:absolute}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RecordSelectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-record-selector', encapsulation: ViewEncapsulation.None, template: `\r\n\t\t<span *ngIf=\"isVisible\" class=\"record-selector\">\r\n\t\t\t<span id=\"recordSelectorInput\" class=\"magnifier-icon ti-ux-search\" (click)=\"openRecordList()\"></span>\r\n\t\t</span>\r\n\t`, styles: [\"pri-record-selector .record-selector{width:16px;height:17px;display:flex}pri-record-selector .record-selector .ti-ux-search{width:100%;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.2em;margin-top:1px;color:var(--theme-100)}pri-record-selector .record-selector .ti-ux-search:before{margin-top:0;position:absolute}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$2.EventService }]; }, propDecorators: { \r\n        /** Outlet which the record selector was constructed.*/\r\n        outlet: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Represents the different ways to select/input a value in select-box multiselect context.\r\n *\r\n * {{OnlyFromData}} -> The user must choose the values for the select-box from the data panel.\r\n *\r\n * {{FreeInput}} -> The user can choose any arbitrary value, but no search will be performed and no data will be presented.\r\n */\r\nvar SelectBoxMultiSelectModeEnum;\r\n(function (SelectBoxMultiSelectModeEnum) {\r\n    /**\r\n     * The user must choose the value for the select-box from the data panel.\r\n     */\r\n    SelectBoxMultiSelectModeEnum[SelectBoxMultiSelectModeEnum[\"OnlyFromData\"] = 0] = \"OnlyFromData\";\r\n    /**\r\n     * The user can choose any arbitrary value, but no search will be performed and no data will be presented.\r\n     */\r\n    SelectBoxMultiSelectModeEnum[SelectBoxMultiSelectModeEnum[\"FreeInput\"] = 1] = \"FreeInput\";\r\n})(SelectBoxMultiSelectModeEnum || (SelectBoxMultiSelectModeEnum = {}));\n\n/**\r\n * Represents the different ways to select a value in select-box context.\r\n *\r\n * {{SingleSelect}} -> The user must choose only one value from the data list.\r\n *\r\n * {{MultiSelect}} -> The user can choose more than one value from the data list.\r\n */\r\nvar SelectBoxSelectModeEnum;\r\n(function (SelectBoxSelectModeEnum) {\r\n    /**\r\n     * The user must choose only one value from the data list.\r\n     */\r\n    SelectBoxSelectModeEnum[SelectBoxSelectModeEnum[\"SingleSelect\"] = 0] = \"SingleSelect\";\r\n    /**\r\n     * The user can choose more than one value from the data list.\r\n     */\r\n    SelectBoxSelectModeEnum[SelectBoxSelectModeEnum[\"MultiSelect\"] = 1] = \"MultiSelect\";\r\n})(SelectBoxSelectModeEnum || (SelectBoxSelectModeEnum = {}));\n\n/**\r\n * Represents the different ways to render the \"selector\" component (input dropdown).\r\n *\r\n * {{SingleSelect}} -> The user can filter the data/options.\r\n *\r\n * {{MultiSelect}} -> The user cannot filter the data/options.\r\n */\r\nvar SelectBoxSelectorModeEnum;\r\n(function (SelectBoxSelectorModeEnum) {\r\n    /**\r\n     * The user can filter the data/options.\r\n     */\r\n    SelectBoxSelectorModeEnum[SelectBoxSelectorModeEnum[\"Filterable\"] = 0] = \"Filterable\";\r\n    /**\r\n     * The user cannot filter the data/options.\r\n     */\r\n    SelectBoxSelectorModeEnum[SelectBoxSelectorModeEnum[\"Unfilterable\"] = 1] = \"Unfilterable\";\r\n})(SelectBoxSelectorModeEnum || (SelectBoxSelectorModeEnum = {}));\n\nclass SelectBoxFilterStrategy {\r\n    isSyncFilter() {\r\n        return this.strategy === 0 /* SelectBoxFilterModeEnum.Sync */;\r\n    }\r\n    isAsyncFilter() {\r\n        return this.strategy === 1 /* SelectBoxFilterModeEnum.Async */;\r\n    }\r\n}\n\nclass SelectBoxInputStrategy {\r\n    isFreeInput() {\r\n        return this.strategy === SelectBoxMultiSelectModeEnum.FreeInput;\r\n    }\r\n    isOnlyFromData() {\r\n        return this.strategy === SelectBoxMultiSelectModeEnum.OnlyFromData;\r\n    }\r\n}\n\nclass SelectBoxSelectStrategy {\r\n    isSingleSelect() {\r\n        return this.strategy === SelectBoxSelectModeEnum.SingleSelect;\r\n    }\r\n    isMultiSelect() {\r\n        return this.strategy === SelectBoxSelectModeEnum.MultiSelect;\r\n    }\r\n}\n\nclass SelectBoxSelectorStrategy {\r\n    isFilterable() {\r\n        return this.strategy === SelectBoxSelectorModeEnum.Filterable;\r\n    }\r\n    isUnfilterable() {\r\n        return this.strategy === SelectBoxSelectorModeEnum.Unfilterable;\r\n    }\r\n}\n\nclass SelectBoxWriteValueStrategy {\r\n    isFormValue() {\r\n        return this.strategy === 0 /* SelectBoxWriteValueEnum.Form */;\r\n    }\r\n    isManualValue() {\r\n        return this.strategy === 1 /* SelectBoxWriteValueEnum.Manually */;\r\n    }\r\n}\n\nclass SelectBoxUnselectedItemsPipe {\r\n    /**\r\n     * Filter the given array of data to remove any items that have already been selected to prevent duplicated selections.\r\n     *\r\n     * @param data The array of data to filter.\r\n     * @param valueKey The name of the property that holds the unique identifier for each item in the array.\r\n     * @param selectedValue An array of data that has already been selected.\r\n     * @returns An array of unselected data.\r\n     *\r\n     * @example\r\n     * // Suppose we have an array of cities, each represented by an object with a name and an id property.\r\n     * const cities = [\r\n     *   { id: 1, name: 'New York' },\r\n     *   { id: 2, name: 'London' },\r\n     *   { id: 3, name: 'Paris' },\r\n     *   { id: 4, name: 'Tokyo' },\r\n     * ];\r\n     *\r\n     * // We also have an array of selected cities.\r\n     * const selectedCities = [\r\n     *   { id: 2, name: 'London' },\r\n     *   { id: 3, name: 'Paris' },\r\n     * ];\r\n     *\r\n     * // We can use the pipe to filter out any cities that have already been selected.\r\n     * // Result: [\r\n     * //   { id: 1, name: 'New York' },\r\n     * //   { id: 4, name: 'Tokyo' },\r\n     * // ]\r\n     *\r\n     * // We can use the pipe in a *ngFor loop to display a dropdown list of unselected cities.\r\n     * <select>\r\n     *   <option *ngFor=\"let city of cities | selectBoxUnselectedItems:'id':selectedCities\" [value]=\"city.id\">{{ city.name }}</option>\r\n     * </select>\r\n     */\r\n    transform(data, valueKey, selectedValue) {\r\n        if (selectedValue instanceof Array) {\r\n            return data.filter((item) => !selectedValue.map((selectedItem) => selectedItem[valueKey]).includes(item[valueKey]));\r\n        }\r\n        return data;\r\n    }\r\n}\r\nSelectBoxUnselectedItemsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxUnselectedItemsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nSelectBoxUnselectedItemsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxUnselectedItemsPipe, isStandalone: true, name: \"selectBoxUnselectedItems\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxUnselectedItemsPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'selectBoxUnselectedItems',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\nclass SelectBoxService {\r\n    constructor() {\r\n        this.LoadingSpinnerSizeEnum = LoadingSpinnerSizeEnum;\r\n        this.LoadingSpinnerTypeEnum = LoadingSpinnerTypeEnum;\r\n        this.tagWasRemoved$ = new Subject();\r\n        this.inputHasFocus$ = new BehaviorSubject(false);\r\n        /**\r\n         * The position of `SelectBoxDataPanel` component.\r\n         */\r\n        this.dataPanelPosition$ = new BehaviorSubject(DropDownMenuPositionEnum.Below);\r\n        /**\r\n         * Controls the operation of cleaning the value of the input\r\n         */\r\n        this.canClearInputValue = false;\r\n        /**\r\n         * Stores the select-box data/items/options.\r\n         */\r\n        this.data$ = new BehaviorSubject([]);\r\n        /**\r\n         * Controls the data panel visibility.\r\n         */\r\n        this.isOpenDataPanel$ = new BehaviorSubject(false);\r\n        /**\r\n         * Stores the focusin status of select-box component.\r\n         */\r\n        this.selectBoxHasFocus$ = new BehaviorSubject(false);\r\n        this.ready$ = new BehaviorSubject(false);\r\n        this.onSelectItem$ = new Subject();\r\n        /**\r\n         * Fires before all value change validations and before the \"inputValueChange$\" subject.\r\n         */\r\n        this.preInputValueChange$ = new Subject();\r\n        this.inputValueChange$ = new Subject();\r\n        this.selectedValueChange$ = new Subject();\r\n        this.removeSelectedItem$ = new Subject();\r\n        this.maxVisibleItems$ = new BehaviorSubject(0);\r\n        this.performFilterFn$ = new Subject();\r\n        this._inputValue = '';\r\n        this.destroy$ = new Subject();\r\n    }\r\n    get inputValue() {\r\n        return this._inputValue ?? '';\r\n    }\r\n    set inputValue(value) {\r\n        this._inputValue = value;\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    trackByItemValueKey(index, data) {\r\n        return data[this.valueKey] ?? index;\r\n    }\r\n    /**\r\n     * Fires when user select an item in data panel.\r\n     */\r\n    onSelectDataItem(selectedItem) {\r\n        this.focusedItemMetadata = null;\r\n        this.canClearInputValue = false;\r\n        this.isOpenDataPanel$.next(false);\r\n        this.onSelectItem$.next(selectedItem);\r\n    }\r\n    /**\r\n     * Fires when user focus an item in data panel.\r\n     */\r\n    onFocusDataItem(focusedItem, elementIndex) {\r\n        this.focusedItemMetadata = { focusedItem, elementIndex };\r\n    }\r\n    /**\r\n     * Fires when user changes the focus from an item in data panel.\r\n     */\r\n    onBlurDataItem(focusedItem) {\r\n        if (focusedItem[this.valueKey] === this.focusedItemMetadata?.focusedItem?.[this.valueKey]) {\r\n            this.focusedItemMetadata = null;\r\n        }\r\n    }\r\n    /**\r\n     * Updates the \"selectBoxHasFocus$\" observable value to true when the user\r\n     * focuses on some element inside the select-box container.\r\n     */\r\n    handleFocusInSelectBox(event) {\r\n        const clickedNode = event.target;\r\n        const clickInMainContainer = this.mainContainer?.nativeElement?.contains(clickedNode);\r\n        const clickInDataPanelContainer = this.dataPanelContainer?.nativeElement?.contains(clickedNode);\r\n        if ((clickInMainContainer || clickInDataPanelContainer) && !this.selectBoxHasFocus$.getValue()) {\r\n            this.selectBoxHasFocus$.next(true);\r\n        }\r\n    }\r\n    /**\r\n     * Clears the filter input value when user focuses outside the select-box container\r\n     * and Updates the \"selectBoxHasFocus$\" observable value to false.\r\n     */\r\n    handleFocusOutSelectBox(event) {\r\n        const focusedNode = event.relatedTarget;\r\n        const isFocusOutsideMainContainer = !this.mainContainer?.nativeElement?.contains(focusedNode);\r\n        const isFocusOutsideDataPanelContainer = !this.dataPanelContainer?.nativeElement?.contains(focusedNode);\r\n        const selectBoxHasFocus = this.selectBoxHasFocus$.getValue();\r\n        const isOpenDataPanel = this.isOpenDataPanel$.getValue();\r\n        const hasInputValue = this.inputValue !== '';\r\n        if (isFocusOutsideMainContainer && isFocusOutsideDataPanelContainer) {\r\n            if (isOpenDataPanel) {\r\n                this.isOpenDataPanel$.next(false);\r\n            }\r\n            if (selectBoxHasFocus) {\r\n                this.selectBoxHasFocus$.next(false);\r\n            }\r\n            if (hasInputValue && this.canClearInputValue) {\r\n                this.selectStrategy.clearInputValue();\r\n                this.resetDataToDefault();\r\n            }\r\n        }\r\n    }\r\n    setAndEmitInputValue(inputValue) {\r\n        this.inputValue = inputValue;\r\n        this.inputValueChange$.next(inputValue);\r\n    }\r\n    /**\r\n     * Set the selected value and emits it.\r\n     */\r\n    setAndEmitSelectedValue(value) {\r\n        this.selectedValue$.next(value);\r\n        this.selectedValueChange$.next(value);\r\n    }\r\n    /**\r\n     * Sets the \"isLoading$\" state checking if it state can be changed.\r\n     *\r\n     * @param value The new \"isLoading$\" value.\r\n     */\r\n    setIsLoading(value) {\r\n        if (this.multiSelectMode === SelectBoxMultiSelectModeEnum.OnlyFromData) {\r\n            this.isLoading$.next(value);\r\n        }\r\n    }\r\n    /**\r\n     * Move the scroll to the right position to keep input visible.\r\n     */\r\n    keepInputVisible() {\r\n        const scrollWidth = this.filterContainer.nativeElement.scrollWidth;\r\n        this.filterContainer.nativeElement.scrollTo(scrollWidth, 0);\r\n    }\r\n    /**\r\n     * Set \"data$\" as \"defaultData\" if it exists.\r\n     */\r\n    resetDataToDefault() {\r\n        if (this.defaultData?.data && !isEqual(this.defaultData?.data, this.data$.getValue())) {\r\n            this.data$.next(this.defaultData?.data);\r\n        }\r\n    }\r\n}\r\nSelectBoxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\nclass SelectBoxFilterAsyncStrategy extends SelectBoxFilterStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = 1 /* SelectBoxFilterModeEnum.Async */;\r\n        this.destroy$ = new Subject();\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    listenPerformFilterFn() {\r\n        this.selectBoxService.performFilterFn$\r\n            .pipe(takeUntil(this.destroy$), debounceTime(this.selectBoxService.asyncFilterDebounceTime))\r\n            .subscribe(() => {\r\n            this.handleDataFilter(this.selectBoxService.inputValue);\r\n        });\r\n    }\r\n    async handleDataFilter(inputValue, openDataPanel = true) {\r\n        // prevent null value to save other developers from manually checking\r\n        const _inputValue = inputValue || '';\r\n        this.selectBoxService.setIsLoading(true);\r\n        const asyncResult = this.selectBoxService.asyncFilterFn(_inputValue, this.selectBoxService.defaultData?.data);\r\n        const isPromise = asyncResult instanceof Promise;\r\n        const isObservable = asyncResult instanceof Observable;\r\n        if (!isPromise && !isObservable) {\r\n            throw new Error(`The async filter function must return an Observable or a Promise. Check the component @Input.`);\r\n        }\r\n        const asyncFilterFn$ = isPromise ? from(asyncResult) : asyncResult;\r\n        asyncFilterFn$\r\n            .pipe(tap((result) => {\r\n            if (result?.length &&\r\n                (!result?.[0].hasOwnProperty(this.selectBoxService.valueKey) ||\r\n                    !result?.[0].hasOwnProperty(this.selectBoxService.labelKey))) {\r\n                throw new Error('The filter function does not return a valid data to select-box component.');\r\n            }\r\n        }), finalize(() => {\r\n            this.selectBoxService.canClearInputValue = true;\r\n            this.selectBoxService.setIsLoading(false);\r\n            this.selectBoxService.isOpenDataPanel$.next(openDataPanel);\r\n        }), take(1))\r\n            .subscribe((result) => {\r\n            this.selectBoxService.data$.next(result);\r\n        });\r\n    }\r\n    checkRequiredInputs() {\r\n        if (!this.selectBoxService.asyncFilterFn) {\r\n            throw new Error('Could not find a valid search function.' +\r\n                'Make sure a valid function is sent to the \"asyncFilterFn\" @Input property.');\r\n        }\r\n    }\r\n}\r\nSelectBoxFilterAsyncStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterAsyncStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxFilterAsyncStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterAsyncStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterAsyncStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxFilterSyncStrategy extends SelectBoxFilterStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = 0 /* SelectBoxFilterModeEnum.Sync */;\r\n        this.destroy$ = new Subject();\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    listenPerformFilterFn() {\r\n        this.selectBoxService.performFilterFn$.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            this.handleDataFilter(this.selectBoxService.inputValue);\r\n        });\r\n    }\r\n    handleDataFilter(inputValue, openDataPanel = true) {\r\n        // prevent null value to save the user from manually checking\r\n        const _inputValue = inputValue || '';\r\n        this.selectBoxService.setIsLoading(true);\r\n        const result = this.selectBoxService.syncFilterFn(_inputValue, this.selectBoxService.defaultData?.data);\r\n        if (result instanceof Observable || result instanceof Promise) {\r\n            throw new Error(`The sync filter function cannot return an Observable or a Promise. Check the component @Input.`);\r\n        }\r\n        this.selectBoxService.canClearInputValue = true;\r\n        this.selectBoxService.data$.next(result);\r\n        this.selectBoxService.setIsLoading(false);\r\n        this.selectBoxService.isOpenDataPanel$.next(openDataPanel);\r\n    }\r\n    checkRequiredInputs() {\r\n        if (!this.selectBoxService.syncFilterFn) {\r\n            throw new Error('Could not find a valid search function.' +\r\n                'Make sure a valid function is sent to the \"syncFilterFn\" @Input property.');\r\n        }\r\n    }\r\n}\r\nSelectBoxFilterSyncStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterSyncStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxFilterSyncStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterSyncStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterSyncStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxMultiSelectStrategy extends SelectBoxSelectStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = SelectBoxSelectModeEnum.MultiSelect;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    getSelectedValue() {\r\n        return this.selectBoxService.selectedValue$?.getValue();\r\n    }\r\n    getDataOnFocus() {\r\n        if (!this.selectBoxService.isOpenDataPanel$.getValue() &&\r\n            this.selectBoxService.minFilterLength === 0 &&\r\n            (!this.selectBoxService.inputValue || this.selectBoxService.inputValue?.length === 0)) {\r\n            this.selectBoxService.setIsLoading(true);\r\n            this.selectBoxService.performFilterFn$.next();\r\n        }\r\n    }\r\n    handleSelectItem(selectedItem) {\r\n        const currentSelectedItems = this.getSelectedValue();\r\n        const newSelectedItems = [...currentSelectedItems, selectedItem];\r\n        this.selectBoxService.setAndEmitSelectedValue(newSelectedItems);\r\n        this.selectBoxService.setAndEmitInputValue(null);\r\n    }\r\n    clearInputValue() {\r\n        if (this.selectBoxService.canClearInputValue) {\r\n            this.selectBoxService.setAndEmitInputValue('');\r\n        }\r\n    }\r\n    writeValueFromData(value, data) {\r\n        if (this.isValidValue(value)) {\r\n            const dataItems = this.getDataItems(value, data);\r\n            this.selectBoxService.writeValueStrategy.setSelectedValue(dataItems);\r\n        }\r\n    }\r\n    isValidValue(value) {\r\n        const typeIsValid = Array.isArray(value) && value.every((item) => typeof item === 'string' || typeof item === 'number');\r\n        if (!typeIsValid) {\r\n            const errorMessage = this.selectBoxService.writeValueStrategy.isFormValue()\r\n                ? `The type of value of \"${this.selectBoxService.formControlName.name}\" control must be` +\r\n                    'an empty array, an array of strings or an array of numbers.'\r\n                : 'The type of value of multi select control must be null, an array of strings or an array of numbers.';\r\n            throw new Error(errorMessage);\r\n        }\r\n        return typeIsValid;\r\n    }\r\n    getDataItems(value, data) {\r\n        const dataItems = data.filter((item) => value.includes(item[this.selectBoxService.valueKey]));\r\n        return dataItems;\r\n    }\r\n}\r\nSelectBoxMultiSelectStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxMultiSelectStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxMultiSelectStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxMultiSelectStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxMultiSelectStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxInputFreeStrategy extends SelectBoxInputStrategy {\r\n    constructor() {\r\n        super();\r\n        this.strategy = SelectBoxMultiSelectModeEnum.FreeInput;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n        this.multiSelectStrategy = inject((SelectBoxMultiSelectStrategy));\r\n    }\r\n    writeValue(value) {\r\n        this.defineSelectedValue(value);\r\n    }\r\n    prepareStrategy() {\r\n        /**\r\n         *  When the multiSelectMode is equals \"FreeInput\", the select-box can't search and render the data panel.\r\n         * \tThen the \"valueKey\" and \"labelKey\" property must be fixed to ensure the right component work.\r\n         */\r\n        this.selectBoxService.valueKey = 'value';\r\n        this.selectBoxService.labelKey = 'label';\r\n    }\r\n    handleInputFocus() {\r\n        this.selectBoxService.inputHasFocus$.next(true);\r\n    }\r\n    handleInputValueChange() {\r\n        this.selectBoxService.canClearInputValue = true;\r\n    }\r\n    handleAccessibilityEnterClick() {\r\n        if (this.selectBoxService.inputHasFocus$.getValue() &&\r\n            this.selectBoxService.inputValue?.length >= this.selectBoxService.minFreeInputLength) {\r\n            const alreadyExists = this.multiSelectStrategy\r\n                .getSelectedValue()\r\n                .map(({ value }) => value)\r\n                .includes(this.selectBoxService.inputValue);\r\n            if (alreadyExists) {\r\n                return;\r\n            }\r\n            this.emitOnSelectItem();\r\n            this.selectBoxService.keepInputVisible();\r\n        }\r\n    }\r\n    checkRequiredInputs() {\r\n        if ([null, undefined].includes(this.selectBoxService.minFreeInputLength)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"minFreeInputLength\".`);\r\n        }\r\n    }\r\n    isValidValue(value) {\r\n        if (!Array.isArray(value)) {\r\n            throw new Error('The free select/tag selector component must have an array as a value. ' +\r\n                'Make sure to send an array value to the select formControl.');\r\n        }\r\n        return true;\r\n    }\r\n    /**\r\n     * Emits a new value to \"onSelectItem$\" observable.\r\n     */\r\n    emitOnSelectItem() {\r\n        this.selectBoxService.onSelectItem$.next({\r\n            label: this.selectBoxService.inputValue,\r\n            value: this.selectBoxService.inputValue\r\n        });\r\n    }\r\n    defineSelectedValue(value) {\r\n        if (this.isValidValue(value)) {\r\n            const valueAsArray = value || [];\r\n            const selectedValues = valueAsArray.map((item) => ({\r\n                label: item.toString(),\r\n                value: item.toString()\r\n            }));\r\n            this.selectBoxService.writeValueStrategy.setSelectedValue(selectedValues);\r\n            this.selectBoxService.setIsLoading(false);\r\n        }\r\n    }\r\n}\r\nSelectBoxInputFreeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputFreeStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxInputFreeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputFreeStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputFreeStrategy, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\nclass SelectBoxInputOnlyFromDataStrategy extends SelectBoxInputStrategy {\r\n    constructor() {\r\n        super();\r\n        this.strategy = SelectBoxMultiSelectModeEnum.OnlyFromData;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    writeValue(value) {\r\n        this.selectBoxService.data$\r\n            .asObservable()\r\n            .pipe(filter$1((data) => data.length > 0), finalize(() => this.selectBoxService.setIsLoading(false)), take(1))\r\n            .subscribe((data) => {\r\n            this.selectBoxService.selectStrategy.writeValueFromData(value, data);\r\n        });\r\n    }\r\n    isValidValue() {\r\n        return true;\r\n    }\r\n    prepareStrategy() { }\r\n    handleInputFocus() {\r\n        this.selectBoxService.inputHasFocus$.next(true);\r\n        this.selectBoxService.selectStrategy.getDataOnFocus();\r\n    }\r\n    handleInputValueChange(inputValue) {\r\n        if (inputValue?.length >= this.selectBoxService.minFilterLength) {\r\n            this.selectBoxService.setIsLoading(true);\r\n        }\r\n        if (!this.selectBoxService.multiple) {\r\n            this.selectBoxService.removeSelectedItem$.next(inputValue);\r\n        }\r\n        if (inputValue?.length < this.selectBoxService.minFilterLength) {\r\n            this.selectBoxService.data$.next([]);\r\n            this.selectBoxService.isOpenDataPanel$.next(false);\r\n        }\r\n        else {\r\n            this.selectBoxService.performFilterFn$.next();\r\n        }\r\n    }\r\n    handleAccessibilityEnterClick() {\r\n        if (this.selectBoxService.focusedItemMetadata?.focusedItem) {\r\n            this.selectBoxService.onSelectDataItem(this.selectBoxService.focusedItemMetadata?.focusedItem);\r\n            if (this.selectBoxService.selectStrategy.isMultiSelect()) {\r\n                this.selectBoxService.inputElement.nativeElement.focus();\r\n                this.selectBoxService.keepInputVisible();\r\n            }\r\n        }\r\n    }\r\n    checkRequiredInputs() {\r\n        if ([null, undefined].includes(this.selectBoxService.labelKey)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"labelKey\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.valueKey)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"valueKey\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.minFilterLength)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"minFilterLength\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.isLoading$)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"isLoading\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.defaultData?.data)) {\r\n            console.warn(`Could not find a valid value to @Input() property \"defaultData\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.notFoundText)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"notFoundText\".`);\r\n        }\r\n    }\r\n}\r\nSelectBoxInputOnlyFromDataStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputOnlyFromDataStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxInputOnlyFromDataStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputOnlyFromDataStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxInputOnlyFromDataStrategy, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\nclass SelectBoxSelectorFilterableService extends SelectBoxSelectorStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = SelectBoxSelectorModeEnum.Filterable;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    cancelAccessibilityArrowNavigation() {\r\n        const hasFocusInFilterContext = Boolean(this.selectBoxService.inputHasFocus$?.getValue() || this.selectBoxService.focusedItemMetadata?.focusedItem);\r\n        const hasData = Boolean(this.selectBoxService.data$?.getValue().length);\r\n        return !hasFocusInFilterContext || !hasData;\r\n    }\r\n    handleOpenDataPanelFromArrowDownNavigation() {\r\n        const inputHasFocus = this.selectBoxService.inputHasFocus$.getValue();\r\n        if (inputHasFocus) {\r\n            this.selectBoxService.isOpenDataPanel$.next(true);\r\n        }\r\n    }\r\n}\r\nSelectBoxSelectorFilterableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorFilterableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxSelectorFilterableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorFilterableService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorFilterableService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxSelectorUnfilterableService extends SelectBoxSelectorStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = SelectBoxSelectorModeEnum.Unfilterable;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    cancelAccessibilityArrowNavigation() {\r\n        const selectBoxHasFocus = this.selectBoxService.selectBoxHasFocus$.getValue();\r\n        const hasData = Boolean(this.selectBoxService.data$?.getValue().length);\r\n        return !selectBoxHasFocus || !hasData;\r\n    }\r\n    handleOpenDataPanelFromArrowDownNavigation() {\r\n        const selectBoxHasFocus = this.selectBoxService.selectBoxHasFocus$.getValue();\r\n        if (selectBoxHasFocus) {\r\n            this.selectBoxService.isOpenDataPanel$.next(true);\r\n        }\r\n    }\r\n}\r\nSelectBoxSelectorUnfilterableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorUnfilterableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxSelectorUnfilterableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorUnfilterableService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectorUnfilterableService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxSingleSelectStrategy extends SelectBoxSelectStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.selectBoxService = inject((SelectBoxService));\r\n        this.strategy = SelectBoxSelectModeEnum.SingleSelect;\r\n    }\r\n    getSelectedValue() {\r\n        return this.selectBoxService.selectedValue$?.getValue();\r\n    }\r\n    getDataOnFocus() {\r\n        if (!this.selectBoxService.isOpenDataPanel$.getValue() &&\r\n            this.selectBoxService.minFilterLength <= this.selectBoxService.inputValue?.length) {\r\n            this.selectBoxService.setIsLoading(true);\r\n            this.selectBoxService.performFilterFn$.next();\r\n        }\r\n    }\r\n    handleSelectItem(selectedItem) {\r\n        const inputValue = selectedItem[this.selectBoxService.labelKey];\r\n        this.selectBoxService.setAndEmitSelectedValue(selectedItem);\r\n        this.selectBoxService.setAndEmitInputValue(inputValue);\r\n    }\r\n    clearInputValue() {\r\n        if (this.selectBoxService.canClearInputValue &&\r\n            this.selectBoxService.inputValue !== this.getSelectedValue()?.[this.selectBoxService.labelKey]) {\r\n            this.selectBoxService.setAndEmitInputValue('');\r\n        }\r\n    }\r\n    writeValueFromData(value, data) {\r\n        if (this.isValidValue(value)) {\r\n            const dataItem = this.getDataItem(value, data);\r\n            if (dataItem) {\r\n                const inputValue = dataItem[this.selectBoxService.labelKey];\r\n                this.selectBoxService.writeValueStrategy.setSelectedValue(dataItem);\r\n                this.selectBoxService.setAndEmitInputValue(inputValue);\r\n            }\r\n            else {\r\n                this.selectBoxService.writeValueStrategy.setSelectedValue(null);\r\n                this.selectBoxService.setAndEmitInputValue(null);\r\n            }\r\n        }\r\n    }\r\n    isValidValue(value) {\r\n        const typeIsValid = [null, undefined].includes(value) ||\r\n            typeof value === 'string' ||\r\n            typeof value === 'number' ||\r\n            typeof value === 'boolean';\r\n        if (!typeIsValid) {\r\n            const errorMessage = this.selectBoxService.writeValueStrategy.isFormValue()\r\n                ? `The type of value of \"${this.selectBoxService.formControlName.name}\" control must be null, ` +\r\n                    'a string, a number or a boolean.'\r\n                : 'The type of value of single select control must be null, a string, a number or a boolean.';\r\n            throw new Error(errorMessage);\r\n        }\r\n        return typeIsValid;\r\n    }\r\n    getDataItem(value, data) {\r\n        const dataItem = data.find((item) => value === item[this.selectBoxService.valueKey]);\r\n        return dataItem;\r\n    }\r\n}\r\nSelectBoxSingleSelectStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSingleSelectStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxSingleSelectStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSingleSelectStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSingleSelectStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxWriteValueFormStrategy extends SelectBoxWriteValueStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = 0 /* SelectBoxWriteValueEnum.Form */;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    setSelectedValue(selectedValue) {\r\n        // Just set the \"selectedValue$\" but don't emit \"selectedValueChanges$\" to avoid duplicate calls to \"form.valueChanges\".\r\n        this.selectBoxService.selectedValue$.next(selectedValue);\r\n    }\r\n}\r\nSelectBoxWriteValueFormStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueFormStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxWriteValueFormStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueFormStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueFormStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxWriteValueManuallyStrategy extends SelectBoxWriteValueStrategy {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.strategy = 1 /* SelectBoxWriteValueEnum.Manually */;\r\n        this.selectBoxService = inject((SelectBoxService));\r\n    }\r\n    setSelectedValue(selectedValue) {\r\n        this.selectBoxService.setAndEmitSelectedValue(selectedValue);\r\n    }\r\n}\r\nSelectBoxWriteValueManuallyStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueManuallyStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSelectBoxWriteValueManuallyStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueManuallyStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxWriteValueManuallyStrategy, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass SelectBoxFilterInputComponent {\r\n    constructor(changeDetection, selectBoxService) {\r\n        this.changeDetection = changeDetection;\r\n        this.selectBoxService = selectBoxService;\r\n        this._SelectBoxMultiSelectModeEnum = SelectBoxMultiSelectModeEnum;\r\n        this.destroy$ = new Subject();\r\n    }\r\n    set inputElement(value) {\r\n        this._inputElement = value;\r\n        this.selectBoxService.inputElement = value;\r\n    }\r\n    get inputElement() {\r\n        return this._inputElement;\r\n    }\r\n    handleEnterPress() {\r\n        this.handleAccessibilityEnterClick();\r\n    }\r\n    ngOnInit() {\r\n        this.listenInputValueChanges();\r\n        this.selectBoxService.inputElement = this.inputElement;\r\n    }\r\n    /**\r\n     * Fires when the input value changes.\r\n     */\r\n    onInputValueChange(value) {\r\n        this.selectBoxService.preInputValueChange$.next();\r\n        this.selectBoxService.setAndEmitInputValue(value);\r\n        this.selectBoxService.inputStrategy.handleInputValueChange(value);\r\n    }\r\n    /**\r\n     * Fires when the input has focus.\r\n     */\r\n    onInputFocus() {\r\n        this.selectBoxService.inputStrategy.handleInputFocus();\r\n    }\r\n    onInputClick(event) {\r\n        this.handleDropDownComponentClickListener(event);\r\n    }\r\n    /**\r\n     * Fires when input lost the focus.\r\n     * Changes the input focus state when it lost the focus.\r\n     */\r\n    onInputBlur() {\r\n        this.selectBoxService.inputHasFocus$.next(false);\r\n    }\r\n    /**\r\n     * Fires when user clicks in \"clear\" button.\r\n     * Emits the cleared filter value.\r\n     */\r\n    onClearFilter(event) {\r\n        this.handleDropDownComponentClickListener(event);\r\n        this.onInputValueChange('');\r\n    }\r\n    /**\r\n     * Fires when user clicks in \"fake-clickable-zone\" div.\r\n     * Performs the data filter function emulating the work of \"onArrowClick\" function.\r\n     */\r\n    async onFakeZoneClick() {\r\n        await this.onArrowClick();\r\n    }\r\n    /**\r\n     * Fires when user clicks in \"arrow\" button.\r\n     */\r\n    async onArrowClick() {\r\n        const disabled = await firstValueFrom(this.selectBoxService.disabled$);\r\n        if (disabled) {\r\n            return;\r\n        }\r\n        //When data panel is open, Then just close it.\r\n        if (this.selectBoxService.isOpenDataPanel$.getValue()) {\r\n            this.selectBoxService.isOpenDataPanel$.next(false);\r\n            return;\r\n        }\r\n        //When select-box has search\r\n        if (this.selectBoxService.selectorStrategy.isFilterable()) {\r\n            /**\r\n             * AND there is a \"defaultData\"\r\n             * AND there is a value in the input\r\n             * Then set data as \"defaultData\" and display it.\r\n             */\r\n            if (this.selectBoxService.defaultData && this.selectBoxService.inputValue) {\r\n                this.selectBoxService.resetDataToDefault();\r\n                this.selectBoxService.isOpenDataPanel$.next(true);\r\n            }\r\n            // Otherwise, execute the same event stack executed by the input's focus event\r\n            this.inputElement.nativeElement.focus();\r\n        }\r\n        else {\r\n            //When select-box has no search, Then present the stored data as options..\r\n            this.selectBoxService.isOpenDataPanel$.next(true);\r\n            this.inputElement.nativeElement.focus();\r\n        }\r\n    }\r\n    /**\r\n     * Workaround to prevent input blur event when user clicks in clear button.\r\n     */\r\n    preventInputBlur(event) {\r\n        event.preventDefault();\r\n    }\r\n    /**\r\n     * Listens for the subject \"inputValueChange$\" to mark this component for a change detection check.\r\n     * This is necessary to keep the view updated for the user when a data item is selected\r\n     * and for the cases that the value is cleaned when user clicks outside the select-box container (\"handleFocusOutSelectBox\" event).\r\n     */\r\n    listenInputValueChanges() {\r\n        this.selectBoxService.inputValueChange$.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            this.changeDetection.markForCheck();\r\n        });\r\n    }\r\n    handleAccessibilityEnterClick() {\r\n        this.selectBoxService.inputStrategy.handleAccessibilityEnterClick();\r\n    }\r\n    /**\r\n     * [Workaround]\r\n     * Cancels the event propagation and default behavior of click event.\r\n     *\r\n     * This is necessary to prevent the dropdown menu from closing (through the `@HostListener('document:click', ['$event'])` event)\r\n     * when the user clicks on some elements that are inside the select box input.\r\n     */\r\n    handleDropDownComponentClickListener(event) {\r\n        event.stopPropagation();\r\n        event.preventDefault();\r\n    }\r\n}\r\nSelectBoxFilterInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterInputComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SelectBoxService, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxFilterInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxFilterInputComponent, isStandalone: true, selector: \"pri-select-box-filter-input\", host: { listeners: { \"document:keydown.Enter\": \"handleEnterPress($event)\" } }, viewQueries: [{ propertyName: \"dropDownArrowElement\", first: true, predicate: [\"dropDownArrow\"], descendants: true, read: ElementRef }, { propertyName: \"inputElement\", first: true, predicate: [\"input\"], descendants: true }], ngImport: i0, template: \"<div\\r\\n\\t[tabindex]=\\\"selectBoxService.selectorStrategy.isFilterable() ? -1 : 0\\\"\\r\\n\\tdata-testid=\\\"pri-select-box-filter-input\\\"\\r\\n\\tclass=\\\"select-box-filter-input-container\\\">\\r\\n\\t<ng-container\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.selectorStrategy.isFilterable();\\r\\n\\t\\t\\tthen searchInputContainer;\\r\\n\\t\\t\\telse unfilterableInputContainer\\r\\n\\t\\t\\\">\\r\\n\\t</ng-container>\\r\\n\\r\\n\\t<!--Search input -->\\r\\n\\t<ng-template #searchInputContainer>\\r\\n\\t\\t<input\\r\\n\\t\\t\\t#input\\r\\n\\t\\t\\tid=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tautocomplete=\\\"off\\\"\\r\\n\\t\\t\\t[disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t\\t[placeholder]=\\\"\\r\\n\\t\\t\\t\\tselectBoxService.selectStrategy.isMultiSelect()\\r\\n\\t\\t\\t\\t\\t? (selectBoxService.selectedValue$ | async | isEmptyArray)\\r\\n\\t\\t\\t\\t\\t\\t? selectBoxService.placeholder\\r\\n\\t\\t\\t\\t\\t\\t: ''\\r\\n\\t\\t\\t\\t\\t: selectBoxService.placeholder\\r\\n\\t\\t\\t\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterInput\\\"\\r\\n\\t\\t\\t[value]=\\\"selectBoxService.inputValue\\\"\\r\\n\\t\\t\\t(input)=\\\"onInputValueChange(input.value)\\\"\\r\\n\\t\\t\\t(focus)=\\\"onInputFocus()\\\"\\r\\n\\t\\t\\t(click)=\\\"onInputClick($event)\\\"\\r\\n\\t\\t\\t(blur)=\\\"onInputBlur()\\\" />\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<!--Unfilterable input-->\\r\\n\\t<ng-template #unfilterableInputContainer>\\r\\n\\t\\t<!--The following div exists just to keep this container clickable -->\\r\\n\\t\\t<div class=\\\"select-box-fake-clickable-zone\\\" (click)=\\\"onFakeZoneClick()\\\"></div>\\r\\n\\t\\t<input\\r\\n\\t\\t\\t#input\\r\\n\\t\\t\\tid=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tautocomplete=\\\"off\\\"\\r\\n\\t\\t\\t[readonly]=\\\"true\\\"\\r\\n\\t\\t\\t[placeholder]=\\\"\\r\\n\\t\\t\\t\\tselectBoxService.selectStrategy.isMultiSelect()\\r\\n\\t\\t\\t\\t\\t? (selectBoxService.selectedValue$ | async | isEmptyArray)\\r\\n\\t\\t\\t\\t\\t\\t? selectBoxService.placeholder\\r\\n\\t\\t\\t\\t\\t\\t: ''\\r\\n\\t\\t\\t\\t\\t: selectBoxService.placeholder\\r\\n\\t\\t\\t\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterInput\\\"\\r\\n\\t\\t\\t[value]=\\\"selectBoxService.inputValue\\\" />\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<div *ngIf=\\\"selectBoxService.isLoading$ | async\\\" class=\\\"select-box-filter-loading-container\\\">\\r\\n\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t[type]=\\\"selectBoxService.LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t[size]=\\\"selectBoxService.LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t</pri-loading-spinner>\\r\\n\\t</div>\\r\\n\\r\\n\\t<i\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.inputValue &&\\r\\n\\t\\t\\tselectBoxService.selectorStrategy.isFilterable() &&\\r\\n\\t\\t\\t(selectBoxService.isLoading$ | async) === false &&\\r\\n\\t\\t\\t(selectBoxService.inputHasFocus$ | async)\\r\\n\\t\\t\\\"\\r\\n\\t\\tclass=\\\"ti-ux-close clear-value-btn\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterClearIcon\\\"\\r\\n\\t\\t(mousedown)=\\\"preventInputBlur($event)\\\"\\r\\n\\t\\t(click)=\\\"onClearFilter($event)\\\">\\r\\n\\t</i>\\r\\n\\r\\n\\t<span\\r\\n\\t\\t#dropDownArrow\\r\\n\\t\\tdata-testid=\\\"select-box-filter-arrow-icon\\\"\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.hasDropdownArrow &&\\r\\n\\t\\t\\tselectBoxService.multiSelectMode !== _SelectBoxMultiSelectModeEnum.FreeInput\\r\\n\\t\\t\\\"\\r\\n\\t\\tclass=\\\"select-box-filter-arrow-icon\\\"\\r\\n\\t\\t[class.open]=\\\"selectBoxService.isOpenDataPanel$ | async\\\"\\r\\n\\t\\t(click)=\\\"onArrowClick()\\\">\\r\\n\\t</span>\\r\\n</div>\\r\\n\\r\\n\", styles: [\"pri-select-box-filter-input{width:100%}pri-select-box-filter-input .select-box-filter-input-container{display:flex;align-items:center;flex-direction:row;gap:.2857142857rem;width:100%;position:relative}pri-select-box-filter-input .select-box-filter-input-container:focus-visible{outline:unset}pri-select-box-filter-input .select-box-filter-input-container .select-box-fake-clickable-zone{width:100%;height:100%;position:absolute}pri-select-box-filter-input .select-box-filter-input-container .select-box-fake-clickable-zone:hover{cursor:pointer}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-input{height:100%;width:100%;background:transparent;border:none;outline:none;padding:0}pri-select-box-filter-input .select-box-filter-input-container .clear-value-btn{font-size:.8571428571rem!important;line-height:.8571428571rem;color:var(--grey-8)}pri-select-box-filter-input .select-box-filter-input-container .clear-value-btn:hover{color:var(--theme-100);cursor:pointer}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon{cursor:pointer;font-size:.8571428571rem;transition:all .3s}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon:hover{color:var(--theme-100)}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon:before{content:\\\"\\\\e64b\\\"}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon.open:before{content:\\\"\\\\e648\\\"}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: FormsModule }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: IsEmptyArrayPipe, name: \"isEmptyArray\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxFilterInputComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box-filter-input', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, FormsModule, PrimaveraI18nModule, LoadingSpinnerComponent, IsEmptyArrayPipe], template: \"<div\\r\\n\\t[tabindex]=\\\"selectBoxService.selectorStrategy.isFilterable() ? -1 : 0\\\"\\r\\n\\tdata-testid=\\\"pri-select-box-filter-input\\\"\\r\\n\\tclass=\\\"select-box-filter-input-container\\\">\\r\\n\\t<ng-container\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.selectorStrategy.isFilterable();\\r\\n\\t\\t\\tthen searchInputContainer;\\r\\n\\t\\t\\telse unfilterableInputContainer\\r\\n\\t\\t\\\">\\r\\n\\t</ng-container>\\r\\n\\r\\n\\t<!--Search input -->\\r\\n\\t<ng-template #searchInputContainer>\\r\\n\\t\\t<input\\r\\n\\t\\t\\t#input\\r\\n\\t\\t\\tid=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tautocomplete=\\\"off\\\"\\r\\n\\t\\t\\t[disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t\\t[placeholder]=\\\"\\r\\n\\t\\t\\t\\tselectBoxService.selectStrategy.isMultiSelect()\\r\\n\\t\\t\\t\\t\\t? (selectBoxService.selectedValue$ | async | isEmptyArray)\\r\\n\\t\\t\\t\\t\\t\\t? selectBoxService.placeholder\\r\\n\\t\\t\\t\\t\\t\\t: ''\\r\\n\\t\\t\\t\\t\\t: selectBoxService.placeholder\\r\\n\\t\\t\\t\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterInput\\\"\\r\\n\\t\\t\\t[value]=\\\"selectBoxService.inputValue\\\"\\r\\n\\t\\t\\t(input)=\\\"onInputValueChange(input.value)\\\"\\r\\n\\t\\t\\t(focus)=\\\"onInputFocus()\\\"\\r\\n\\t\\t\\t(click)=\\\"onInputClick($event)\\\"\\r\\n\\t\\t\\t(blur)=\\\"onInputBlur()\\\" />\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<!--Unfilterable input-->\\r\\n\\t<ng-template #unfilterableInputContainer>\\r\\n\\t\\t<!--The following div exists just to keep this container clickable -->\\r\\n\\t\\t<div class=\\\"select-box-fake-clickable-zone\\\" (click)=\\\"onFakeZoneClick()\\\"></div>\\r\\n\\t\\t<input\\r\\n\\t\\t\\t#input\\r\\n\\t\\t\\tid=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-filter-input\\\"\\r\\n\\t\\t\\tautocomplete=\\\"off\\\"\\r\\n\\t\\t\\t[readonly]=\\\"true\\\"\\r\\n\\t\\t\\t[placeholder]=\\\"\\r\\n\\t\\t\\t\\tselectBoxService.selectStrategy.isMultiSelect()\\r\\n\\t\\t\\t\\t\\t? (selectBoxService.selectedValue$ | async | isEmptyArray)\\r\\n\\t\\t\\t\\t\\t\\t? selectBoxService.placeholder\\r\\n\\t\\t\\t\\t\\t\\t: ''\\r\\n\\t\\t\\t\\t\\t: selectBoxService.placeholder\\r\\n\\t\\t\\t\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterInput\\\"\\r\\n\\t\\t\\t[value]=\\\"selectBoxService.inputValue\\\" />\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<div *ngIf=\\\"selectBoxService.isLoading$ | async\\\" class=\\\"select-box-filter-loading-container\\\">\\r\\n\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t[type]=\\\"selectBoxService.LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t[size]=\\\"selectBoxService.LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t</pri-loading-spinner>\\r\\n\\t</div>\\r\\n\\r\\n\\t<i\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.inputValue &&\\r\\n\\t\\t\\tselectBoxService.selectorStrategy.isFilterable() &&\\r\\n\\t\\t\\t(selectBoxService.isLoading$ | async) === false &&\\r\\n\\t\\t\\t(selectBoxService.inputHasFocus$ | async)\\r\\n\\t\\t\\\"\\r\\n\\t\\tclass=\\\"ti-ux-close clear-value-btn\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterClearIcon\\\"\\r\\n\\t\\t(mousedown)=\\\"preventInputBlur($event)\\\"\\r\\n\\t\\t(click)=\\\"onClearFilter($event)\\\">\\r\\n\\t</i>\\r\\n\\r\\n\\t<span\\r\\n\\t\\t#dropDownArrow\\r\\n\\t\\tdata-testid=\\\"select-box-filter-arrow-icon\\\"\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.hasDropdownArrow &&\\r\\n\\t\\t\\tselectBoxService.multiSelectMode !== _SelectBoxMultiSelectModeEnum.FreeInput\\r\\n\\t\\t\\\"\\r\\n\\t\\tclass=\\\"select-box-filter-arrow-icon\\\"\\r\\n\\t\\t[class.open]=\\\"selectBoxService.isOpenDataPanel$ | async\\\"\\r\\n\\t\\t(click)=\\\"onArrowClick()\\\">\\r\\n\\t</span>\\r\\n</div>\\r\\n\\r\\n\", styles: [\"pri-select-box-filter-input{width:100%}pri-select-box-filter-input .select-box-filter-input-container{display:flex;align-items:center;flex-direction:row;gap:.2857142857rem;width:100%;position:relative}pri-select-box-filter-input .select-box-filter-input-container:focus-visible{outline:unset}pri-select-box-filter-input .select-box-filter-input-container .select-box-fake-clickable-zone{width:100%;height:100%;position:absolute}pri-select-box-filter-input .select-box-filter-input-container .select-box-fake-clickable-zone:hover{cursor:pointer}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-input{height:100%;width:100%;background:transparent;border:none;outline:none;padding:0}pri-select-box-filter-input .select-box-filter-input-container .clear-value-btn{font-size:.8571428571rem!important;line-height:.8571428571rem;color:var(--grey-8)}pri-select-box-filter-input .select-box-filter-input-container .clear-value-btn:hover{color:var(--theme-100);cursor:pointer}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon{cursor:pointer;font-size:.8571428571rem;transition:all .3s}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon:hover{color:var(--theme-100)}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon:before{content:\\\"\\\\e64b\\\"}pri-select-box-filter-input .select-box-filter-input-container .select-box-filter-arrow-icon.open:before{content:\\\"\\\\e648\\\"}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SelectBoxService, decorators: [{\r\n                    type: SkipSelf\r\n                }] }]; }, propDecorators: { dropDownArrowElement: [{\r\n                type: ViewChild,\r\n                args: ['dropDownArrow', { read: ElementRef }]\r\n            }], inputElement: [{\r\n                type: ViewChild,\r\n                args: ['input']\r\n            }], handleEnterPress: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.Enter', ['$event']]\r\n            }] } });\n\n/**\r\n * Returns the value of a computed style property of an element.\r\n */\r\nclass FromComputedStylePipe {\r\n    /**\r\n     * Returns the value of a computed style property of an element.\r\n     *\r\n     * @param element The element to get the computed style from.\r\n     * @param property The property to get the value of.\r\n     *\r\n     * @example\r\n     * ```html\r\n     * <div [style.width]=\"parentElementRef.nativeElement | fromComputedStyle : 'width'\">\r\n     * </div>\r\n     * ```\r\n     */\r\n    transform(element, property) {\r\n        const computedStyle = window.getComputedStyle(element);\r\n        const propertyValue = computedStyle[property];\r\n        return propertyValue?.toString();\r\n    }\r\n}\r\nFromComputedStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FromComputedStylePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nFromComputedStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: FromComputedStylePipe, isStandalone: true, name: \"fromComputedStyle\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FromComputedStylePipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'fromComputedStyle',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\n/**\r\n * Highlights a part of a text element by matching result with another string.\r\n */\r\nclass HighlightPipe {\r\n    constructor(sanitizer) {\r\n        this.sanitizer = sanitizer;\r\n    }\r\n    transform(fullText, textToMatch) {\r\n        if (!textToMatch || !fullText) {\r\n            return fullText;\r\n        }\r\n        // Match in a case-insensitive way\r\n        const regex = new RegExp(textToMatch, 'gi');\r\n        const match = fullText.match(regex);\r\n        // If there's no match, just return the original fullText value.\r\n        if (!match) {\r\n            return fullText;\r\n        }\r\n        const replacedFullText = fullText.replace(regex, '<strong>' + match[0] + '</strong>');\r\n        return this.sanitizer.bypassSecurityTrustHtml(replacedFullText);\r\n    }\r\n}\r\nHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HighlightPipe, deps: [{ token: i2$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });\r\nHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: HighlightPipe, isStandalone: true, name: \"highlight\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HighlightPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'highlight',\r\n                    standalone: true\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i2$4.DomSanitizer }]; } });\n\n/**\r\n * Responsible to guarantee the url is account/subscription friendly.\r\n */\r\nclass SubscriptionPipe {\r\n    constructor(amsService) {\r\n        this.amsService = amsService;\r\n    }\r\n    transform(url) {\r\n        if (!url) {\r\n            return url;\r\n        }\r\n        else {\r\n            return this.amsService.addAccountAndSubscriptionToUrl(url);\r\n        }\r\n    }\r\n}\r\nSubscriptionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionPipe, deps: [{ token: i1$2.AmsService }], target: i0.ɵɵFactoryTarget.Pipe });\r\nSubscriptionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionPipe, name: \"subscription\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'subscription'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AmsService }]; } });\n\nclass ToFixedPipe {\r\n    /**\r\n     * Returns a string representing a number in fixed-point notation.\r\n     *\r\n     * @param value The number to be transformed.\r\n     * @param decimalPlaces Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\r\n     *\r\n     * @example\r\n     * ```html\r\n     * <!-- Output: 123.26 -->\r\n     * <span>\r\n     * \t{{ 123.256 | toFixed : 2 }}\r\n     * </span>\r\n     * ```\r\n     */\r\n    transform(value, decimalPlaces) {\r\n        const parsedValue = Number(value);\r\n        if (!parsedValue || isNaN(parsedValue)) {\r\n            throw new Error('The value provided to the math pipe is not a number.');\r\n        }\r\n        const finalValue = parsedValue.toFixed(decimalPlaces);\r\n        return finalValue;\r\n    }\r\n}\r\nToFixedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ToFixedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nToFixedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ToFixedPipe, isStandalone: true, name: \"toFixed\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ToFixedPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'toFixed',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\nconst getSelectBoxFilterStrategyMap = () => new Map([\r\n    [0 /* SelectBoxFilterModeEnum.Sync */, (SelectBoxFilterSyncStrategy)],\r\n    [1 /* SelectBoxFilterModeEnum.Async */, (SelectBoxFilterAsyncStrategy)]\r\n]);\r\nconst getFilterStrategy = (injector, strategy) => injector.get(getSelectBoxFilterStrategyMap().get(strategy));\n\nconst getSelectBoxInputStrategyMap = () => new Map([\r\n    [SelectBoxMultiSelectModeEnum.FreeInput, SelectBoxInputFreeStrategy],\r\n    [SelectBoxMultiSelectModeEnum.OnlyFromData, (SelectBoxInputOnlyFromDataStrategy)]\r\n]);\r\nconst getInputStrategy = (injector, strategy) => injector.get(getSelectBoxInputStrategyMap().get(strategy));\n\nconst getSelectStrategyMap = () => new Map([\r\n    [SelectBoxSelectModeEnum.SingleSelect, (SelectBoxSingleSelectStrategy)],\r\n    [SelectBoxSelectModeEnum.MultiSelect, (SelectBoxMultiSelectStrategy)]\r\n]);\r\nconst getSelectStrategy = (injector, strategy) => injector.get(getSelectStrategyMap().get(strategy));\n\nconst getSelectorStrategyMap = () => new Map([\r\n    [SelectBoxSelectorModeEnum.Filterable, (SelectBoxSelectorFilterableService)],\r\n    [SelectBoxSelectorModeEnum.Unfilterable, (SelectBoxSelectorUnfilterableService)]\r\n]);\r\nconst getSelectorStrategy = (injector, strategy) => injector.get(getSelectorStrategyMap().get(strategy));\n\nconst getSelectBoxWriteValueStrategyMap = () => new Map([\r\n    [0 /* SelectBoxWriteValueEnum.Form */, (SelectBoxWriteValueFormStrategy)],\r\n    [1 /* SelectBoxWriteValueEnum.Manually */, (SelectBoxWriteValueManuallyStrategy)]\r\n]);\r\nconst getWriteValueStrategy = (injector, strategy) => injector.get(getSelectBoxWriteValueStrategyMap().get(strategy));\n\nclass SelectBoxDataPanelComponent {\r\n    constructor(selectBoxService, injector) {\r\n        this.selectBoxService = selectBoxService;\r\n        this.injector = injector;\r\n        this.leftRightBorderWidth = 1 + 1;\r\n        this.destroy$ = new Subject();\r\n    }\r\n    handleArrowUpPress(event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        this.handleAccessibilityArrowUpNavigation();\r\n    }\r\n    handleArrowDownPress(event) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        this.handleAccessibilityArrowDownNavigation();\r\n    }\r\n    handleEnterPress() {\r\n        this.handleAccessibilityEnterClick();\r\n    }\r\n    handleEscapeKeyDown() {\r\n        this.handleAccessibilityEscapeClick();\r\n    }\r\n    ngOnInit() {\r\n        this.listenOpenDataPanelChanges();\r\n        this.listenDataChanges();\r\n        this.inputStrategy = getInputStrategy(this.injector, this.selectBoxService.multiSelectMode);\r\n    }\r\n    ngOnDestroy() {\r\n        this.selectBoxService.focusedItemMetadata = null;\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    listenOpenDataPanelChanges() {\r\n        this.selectBoxService.isOpenDataPanel$\r\n            .pipe(filter$1((isOpenDataPanel) => !isOpenDataPanel), takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            this.selectBoxService.focusedItemMetadata = null;\r\n        });\r\n    }\r\n    listenDataChanges() {\r\n        this.selectBoxService.data$\r\n            .pipe(takeUntil(this.destroy$), delay(200) // This is important to right work of change detection\r\n        )\r\n            .subscribe(() => {\r\n            this.selectBoxService.dataPanelContainer = this.dataPanelContainer;\r\n        });\r\n    }\r\n    /**\r\n     * Fires when user select an item in data panel.\r\n     */\r\n    onSelectDataItem(selectedItem) {\r\n        this.selectBoxService.onSelectDataItem(selectedItem);\r\n    }\r\n    /**\r\n     * Fires when user focus an item in data panel.\r\n     */\r\n    onFocusDataItem(focusedItem, elementIndex) {\r\n        this.selectBoxService.onFocusDataItem(focusedItem, elementIndex);\r\n    }\r\n    trackByItemValueKey(index, data) {\r\n        return this.selectBoxService.trackByItemValueKey(index, data);\r\n    }\r\n    /**\r\n     * Fires when user changes the focus from a item in data panel..\r\n     */\r\n    onBlurDataItem(focusedItem) {\r\n        this.selectBoxService.onBlurDataItem(focusedItem);\r\n    }\r\n    get hasFocusInDataItem() {\r\n        return Boolean(this.selectBoxService.focusedItemMetadata?.focusedItem &&\r\n            this.selectBoxService.focusedItemMetadata?.elementIndex !== null);\r\n    }\r\n    handleAccessibilityArrowUpNavigation() {\r\n        if (this.selectBoxService.selectorStrategy.cancelAccessibilityArrowNavigation()) {\r\n            return;\r\n        }\r\n        const lastDataItemElement = this.dataPanelContainer?.nativeElement.lastElementChild;\r\n        if (!lastDataItemElement) {\r\n            return;\r\n        }\r\n        if (!this.hasFocusInDataItem) {\r\n            // Focus last element\r\n            lastDataItemElement.focus();\r\n        }\r\n        else {\r\n            // Focus the previous element from the previous focused element if it exists\r\n            const previousElement = this.dataPanelContainer.nativeElement.children.item(this.selectBoxService.focusedItemMetadata?.elementIndex - 1);\r\n            if (previousElement) {\r\n                previousElement.focus();\r\n            }\r\n            else {\r\n                // Focus next element not found, then focus the last element.\r\n                lastDataItemElement.focus();\r\n            }\r\n        }\r\n    }\r\n    handleAccessibilityArrowDownNavigation() {\r\n        if (this.selectBoxService.selectorStrategy.cancelAccessibilityArrowNavigation()) {\r\n            return;\r\n        }\r\n        const isOpenDataPanel = this.selectBoxService.isOpenDataPanel$.getValue();\r\n        if (!isOpenDataPanel) {\r\n            this.selectBoxService.selectorStrategy.handleOpenDataPanelFromArrowDownNavigation();\r\n            return;\r\n        }\r\n        const firstDataItemElement = this.dataPanelContainer?.nativeElement?.firstElementChild;\r\n        if (!firstDataItemElement) {\r\n            return;\r\n        }\r\n        if (!this.hasFocusInDataItem) {\r\n            // Focus first element\r\n            firstDataItemElement.focus();\r\n        }\r\n        else {\r\n            // Focus the next element from the previous focused element if it exists\r\n            const nextElement = this.dataPanelContainer.nativeElement.children.item(this.selectBoxService.focusedItemMetadata?.elementIndex + 1);\r\n            if (nextElement) {\r\n                nextElement.focus();\r\n            }\r\n            else {\r\n                // Focus next element not found, then focus the first element.\r\n                firstDataItemElement.focus();\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Performs the item selection function when user press \"enter\" and has a focused data item.\r\n     */\r\n    handleAccessibilityEnterClick() {\r\n        this.inputStrategy.handleAccessibilityEnterClick();\r\n    }\r\n    /**\r\n     * Closes the data panel when users press \"escape\" key.\r\n     */\r\n    handleAccessibilityEscapeClick() {\r\n        if (this.selectBoxService?.isOpenDataPanel$?.getValue()) {\r\n            this.selectBoxService.isOpenDataPanel$.next(false);\r\n        }\r\n    }\r\n}\r\nSelectBoxDataPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxDataPanelComponent, deps: [{ token: SelectBoxService, skipSelf: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxDataPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxDataPanelComponent, isStandalone: true, selector: \"pri-select-box-data-panel\", host: { listeners: { \"document:keydown.ArrowUp\": \"handleArrowUpPress($event)\", \"document:keydown.ArrowDown\": \"handleArrowDownPress($event)\", \"document:keydown.Enter\": \"handleEnterPress($event)\", \"document:keydown.escape\": \"handleEscapeKeyDown($event)\" } }, viewQueries: [{ propertyName: \"dataPanelContainer\", first: true, predicate: [\"dataPanelContainer\"], descendants: true, read: ElementRef }], ngImport: i0, template: \"<ng-container\\r\\n\\t[ngTemplateOutlet]=\\\"dataPanelTemplateWrapper\\\"\\r\\n\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t$implicit: selectBoxService.data$,\\r\\n\\t\\tselectedValue$: selectBoxService.selectedValue$,\\r\\n\\t\\tdata: selectBoxService.data$ | async,\\r\\n\\t\\tselectedValue: selectBoxService.selectedValue$ | async,\\r\\n\\t\\thasData: (selectBoxService.data$ | async)?.length > 0,\\r\\n\\t\\tlabelKey: selectBoxService.labelKey,\\r\\n\\t\\tvalueKey: selectBoxService.valueKey,\\r\\n\\t\\tinputValue: selectBoxService.inputValue,\\r\\n\\t\\tisLoading: selectBoxService.isLoading$ | async,\\r\\n\\t\\tisOpenDataPanel: selectBoxService.isOpenDataPanel$ | async,\\r\\n\\t\\tunselectedData:\\r\\n\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t| async\\r\\n\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async),\\r\\n\\t\\thasDataToSelect:\\r\\n\\t\\t\\t(selectBoxService.data$ | async)?.length > 0 &&\\r\\n\\t\\t\\t(\\r\\n\\t\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t\\t| async\\r\\n\\t\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async)\\r\\n\\t\\t\\t).length > 0,\\r\\n\\t\\tnoDataFound:\\r\\n\\t\\t\\t(selectBoxService.data$ | async).length === 0 ||\\r\\n\\t\\t\\t(\\r\\n\\t\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t\\t| async\\r\\n\\t\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async)\\r\\n\\t\\t\\t).length === 0,\\r\\n\\t\\tonFocusDataItem: onFocusDataItem.bind(this),\\r\\n\\t\\tonSelectDataItem: onSelectDataItem.bind(this),\\r\\n\\t\\ttrackByItemValueKey: trackByItemValueKey.bind(this),\\r\\n\\t\\tselectBoxService\\r\\n\\t}\\\"></ng-container>\\r\\n\\r\\n<ng-template\\r\\n\\t#dataPanelTemplateWrapper\\r\\n\\tlet-data$\\r\\n\\tlet-selectedValue$=\\\"selectedValue$\\\"\\r\\n\\tlet-data=\\\"data\\\"\\r\\n\\tlet-selectedValue=\\\"selectedValue\\\"\\r\\n\\tlet-inputValue=\\\"inputValue\\\"\\r\\n\\tlet-hasData=\\\"hasData\\\"\\r\\n\\tlet-labelKey=\\\"labelKey\\\"\\r\\n\\tlet-valueKey=\\\"valueKey\\\"\\r\\n\\tlet-hasDataToSelect=\\\"hasDataToSelect\\\"\\r\\n\\tlet-isLoading=\\\"isLoading\\\"\\r\\n\\tlet-isOpenDataPanel=\\\"isOpenDataPanel\\\"\\r\\n\\tlet-unselectedData=\\\"unselectedData\\\"\\r\\n\\tlet-noDataFound=\\\"noDataFound\\\"\\r\\n\\tlet-onFocusDataItem=\\\"onFocusDataItem\\\"\\r\\n\\tlet-onSelectDataItem=\\\"onSelectDataItem\\\"\\r\\n\\tlet-trackByItemValueKey=\\\"trackByItemValueKey\\\"\\r\\n\\tlet-selectBoxService=\\\"selectBoxService\\\">\\r\\n\\t<!--prettier-ignore-->\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.customDataPanelTemplate;\\r\\n\\t\\t\\tthen customDataTemplateContainer;\\r\\n\\t\\t\\telse defaultDataPanelTemplate\\r\\n\\t\\t\\\">\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Custom data template -->\\r\\n\\t<ng-template #customDataTemplateContainer>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-custom-data-template-container\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t[ngTemplateOutlet]=\\\"selectBoxService.customDataPanelTemplate\\\"\\r\\n\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t\\t\\t\\t$implicit: data$,\\r\\n\\t\\t\\t\\t\\tselectedValue$,\\r\\n\\t\\t\\t\\t\\tdata,\\r\\n\\t\\t\\t\\t\\tselectedValue,\\r\\n\\t\\t\\t\\t\\thasData,\\r\\n\\t\\t\\t\\t\\tinputValue,\\r\\n\\t\\t\\t\\t\\tlabelKey,\\r\\n\\t\\t\\t\\t\\tvalueKey,\\r\\n\\t\\t\\t\\t\\thasDataToSelect,\\r\\n\\t\\t\\t\\t\\tisLoading,\\r\\n\\t\\t\\t\\t\\tisOpenDataPanel,\\r\\n\\t\\t\\t\\t\\tunselectedData,\\r\\n\\t\\t\\t\\t\\tnoDataFound,\\r\\n\\t\\t\\t\\t\\tonFocusDataItem,\\r\\n\\t\\t\\t\\t\\tonSelectDataItem,\\r\\n\\t\\t\\t\\t\\tselectBoxService\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<!-- Default data panel template -->\\r\\n\\t<ng-template #defaultDataPanelTemplate>\\r\\n\\t\\t<!-- hasDataTemplate will be rendered when:\\r\\n\\t\\t\\t1. isLoading is false.\\r\\n\\t\\t\\t2. data array has items\\r\\n\\t\\t\\t3. there are unselected items\\r\\n\\t\\t-->\\r\\n\\t\\t<div *ngIf=\\\"!isLoading && hasDataToSelect; then hasDataTemplate; else noDataFoundTemplate\\\"></div>\\r\\n\\r\\n\\t\\t<ng-template #hasDataTemplate>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\t\\tclass=\\\"select-box-default-data-template-container {{ selectBoxService.dataPanelPosition$ | async }}\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\ttabindex=\\\"-1\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"select-box-data-item valid-data-item\\\"\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let item of unselectedData; index as i; trackBy: trackByItemValueKey\\\"\\r\\n\\t\\t\\t\\t\\t[class.selected-value]=\\\"inputValue === item[selectBoxService.labelKey]?.toString()\\\"\\r\\n\\t\\t\\t\\t\\t(focus)=\\\"onFocusDataItem(item, i)\\\"\\r\\n\\t\\t\\t\\t\\t(blur)=\\\"onBlurDataItem(item)\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"onSelectDataItem(item)\\\">\\r\\n\\t\\t\\t\\t\\t<span\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"select-box-data-label\\\"\\r\\n\\t\\t\\t\\t\\t\\t[class.selected-value]=\\\"inputValue === item[selectBoxService.labelKey]?.toString()\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ item[selectBoxService.labelKey]?.toString() }}\\r\\n\\t\\t\\t\\t\\t</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\r\\n\\t\\t<ng-template #noDataFoundTemplate>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\t\\tclass=\\\"select-box-default-data-template-container\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"!isLoading\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"select-box-data-item\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'components.components.RES_No_Data_Found' | priI18n }}\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\t</ng-template>\\r\\n</ng-template>\\r\\n\\r\\n\", styles: [\"pri-select-box-data-panel{display:block;max-height:inherit}.pri-field-options .select-box-custom-data-template-container,.pri-field-options .select-box-default-data-template-container{overflow-y:auto;max-height:inherit;background:var(--grey-1);border:.0714285714rem solid var(--grey-4);display:flex;flex-direction:column;gap:.2857142857rem;width:100%;border-radius:4px}.pri-field-options .select-box-default-data-template-container{padding:.2857142857rem 0}.pri-field-options .select-box-default-data-template-container .select-box-data-item{display:flex;flex-direction:column;padding:.2857142857rem .8571428571rem;transition:all .3s}.pri-field-options .select-box-default-data-template-container .select-box-data-item.selected-value{background-color:var(--theme-10)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:hover,.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus{cursor:pointer;outline:none;background-color:var(--grey-2)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus{background-color:var(--theme-10)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus .select-box-data-label{color:var(--theme-100)}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-label{color:var(--grey-7);transition:all .3s}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-label.selected-value{color:var(--theme-100)}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-short-description{font-size:.8571428571rem;color:var(--grey-6)}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: SelectBoxUnselectedItemsPipe, name: \"selectBoxUnselectedItems\" }, { kind: \"pipe\", type: FromComputedStylePipe, name: \"fromComputedStyle\" }, { kind: \"pipe\", type: ReplacePipe, name: \"replace\" }, { kind: \"pipe\", type: ToFixedPipe, name: \"toFixed\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxDataPanelComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box-data-panel', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [\r\n                        CommonModule,\r\n                        PrimaveraI18nModule,\r\n                        SelectBoxUnselectedItemsPipe,\r\n                        FromComputedStylePipe,\r\n                        ReplacePipe,\r\n                        ToFixedPipe\r\n                    ], template: \"<ng-container\\r\\n\\t[ngTemplateOutlet]=\\\"dataPanelTemplateWrapper\\\"\\r\\n\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t$implicit: selectBoxService.data$,\\r\\n\\t\\tselectedValue$: selectBoxService.selectedValue$,\\r\\n\\t\\tdata: selectBoxService.data$ | async,\\r\\n\\t\\tselectedValue: selectBoxService.selectedValue$ | async,\\r\\n\\t\\thasData: (selectBoxService.data$ | async)?.length > 0,\\r\\n\\t\\tlabelKey: selectBoxService.labelKey,\\r\\n\\t\\tvalueKey: selectBoxService.valueKey,\\r\\n\\t\\tinputValue: selectBoxService.inputValue,\\r\\n\\t\\tisLoading: selectBoxService.isLoading$ | async,\\r\\n\\t\\tisOpenDataPanel: selectBoxService.isOpenDataPanel$ | async,\\r\\n\\t\\tunselectedData:\\r\\n\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t| async\\r\\n\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async),\\r\\n\\t\\thasDataToSelect:\\r\\n\\t\\t\\t(selectBoxService.data$ | async)?.length > 0 &&\\r\\n\\t\\t\\t(\\r\\n\\t\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t\\t| async\\r\\n\\t\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async)\\r\\n\\t\\t\\t).length > 0,\\r\\n\\t\\tnoDataFound:\\r\\n\\t\\t\\t(selectBoxService.data$ | async).length === 0 ||\\r\\n\\t\\t\\t(\\r\\n\\t\\t\\t\\tselectBoxService.data$\\r\\n\\t\\t\\t\\t| async\\r\\n\\t\\t\\t\\t| selectBoxUnselectedItems : selectBoxService.valueKey : (selectBoxService.selectedValue$ | async)\\r\\n\\t\\t\\t).length === 0,\\r\\n\\t\\tonFocusDataItem: onFocusDataItem.bind(this),\\r\\n\\t\\tonSelectDataItem: onSelectDataItem.bind(this),\\r\\n\\t\\ttrackByItemValueKey: trackByItemValueKey.bind(this),\\r\\n\\t\\tselectBoxService\\r\\n\\t}\\\"></ng-container>\\r\\n\\r\\n<ng-template\\r\\n\\t#dataPanelTemplateWrapper\\r\\n\\tlet-data$\\r\\n\\tlet-selectedValue$=\\\"selectedValue$\\\"\\r\\n\\tlet-data=\\\"data\\\"\\r\\n\\tlet-selectedValue=\\\"selectedValue\\\"\\r\\n\\tlet-inputValue=\\\"inputValue\\\"\\r\\n\\tlet-hasData=\\\"hasData\\\"\\r\\n\\tlet-labelKey=\\\"labelKey\\\"\\r\\n\\tlet-valueKey=\\\"valueKey\\\"\\r\\n\\tlet-hasDataToSelect=\\\"hasDataToSelect\\\"\\r\\n\\tlet-isLoading=\\\"isLoading\\\"\\r\\n\\tlet-isOpenDataPanel=\\\"isOpenDataPanel\\\"\\r\\n\\tlet-unselectedData=\\\"unselectedData\\\"\\r\\n\\tlet-noDataFound=\\\"noDataFound\\\"\\r\\n\\tlet-onFocusDataItem=\\\"onFocusDataItem\\\"\\r\\n\\tlet-onSelectDataItem=\\\"onSelectDataItem\\\"\\r\\n\\tlet-trackByItemValueKey=\\\"trackByItemValueKey\\\"\\r\\n\\tlet-selectBoxService=\\\"selectBoxService\\\">\\r\\n\\t<!--prettier-ignore-->\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\tselectBoxService.customDataPanelTemplate;\\r\\n\\t\\t\\tthen customDataTemplateContainer;\\r\\n\\t\\t\\telse defaultDataPanelTemplate\\r\\n\\t\\t\\\">\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Custom data template -->\\r\\n\\t<ng-template #customDataTemplateContainer>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-custom-data-template-container\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t[ngTemplateOutlet]=\\\"selectBoxService.customDataPanelTemplate\\\"\\r\\n\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t\\t\\t\\t$implicit: data$,\\r\\n\\t\\t\\t\\t\\tselectedValue$,\\r\\n\\t\\t\\t\\t\\tdata,\\r\\n\\t\\t\\t\\t\\tselectedValue,\\r\\n\\t\\t\\t\\t\\thasData,\\r\\n\\t\\t\\t\\t\\tinputValue,\\r\\n\\t\\t\\t\\t\\tlabelKey,\\r\\n\\t\\t\\t\\t\\tvalueKey,\\r\\n\\t\\t\\t\\t\\thasDataToSelect,\\r\\n\\t\\t\\t\\t\\tisLoading,\\r\\n\\t\\t\\t\\t\\tisOpenDataPanel,\\r\\n\\t\\t\\t\\t\\tunselectedData,\\r\\n\\t\\t\\t\\t\\tnoDataFound,\\r\\n\\t\\t\\t\\t\\tonFocusDataItem,\\r\\n\\t\\t\\t\\t\\tonSelectDataItem,\\r\\n\\t\\t\\t\\t\\tselectBoxService\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<!-- Default data panel template -->\\r\\n\\t<ng-template #defaultDataPanelTemplate>\\r\\n\\t\\t<!-- hasDataTemplate will be rendered when:\\r\\n\\t\\t\\t1. isLoading is false.\\r\\n\\t\\t\\t2. data array has items\\r\\n\\t\\t\\t3. there are unselected items\\r\\n\\t\\t-->\\r\\n\\t\\t<div *ngIf=\\\"!isLoading && hasDataToSelect; then hasDataTemplate; else noDataFoundTemplate\\\"></div>\\r\\n\\r\\n\\t\\t<ng-template #hasDataTemplate>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\t\\tclass=\\\"select-box-default-data-template-container {{ selectBoxService.dataPanelPosition$ | async }}\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\ttabindex=\\\"-1\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"select-box-data-item valid-data-item\\\"\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let item of unselectedData; index as i; trackBy: trackByItemValueKey\\\"\\r\\n\\t\\t\\t\\t\\t[class.selected-value]=\\\"inputValue === item[selectBoxService.labelKey]?.toString()\\\"\\r\\n\\t\\t\\t\\t\\t(focus)=\\\"onFocusDataItem(item, i)\\\"\\r\\n\\t\\t\\t\\t\\t(blur)=\\\"onBlurDataItem(item)\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"onSelectDataItem(item)\\\">\\r\\n\\t\\t\\t\\t\\t<span\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"select-box-data-label\\\"\\r\\n\\t\\t\\t\\t\\t\\t[class.selected-value]=\\\"inputValue === item[selectBoxService.labelKey]?.toString()\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ item[selectBoxService.labelKey]?.toString() }}\\r\\n\\t\\t\\t\\t\\t</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\r\\n\\t\\t<ng-template #noDataFoundTemplate>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t#dataPanelContainer\\r\\n\\t\\t\\t\\tdata-testid=\\\"pri-select-box-data-panel\\\"\\r\\n\\t\\t\\t\\tclass=\\\"select-box-default-data-template-container\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"!isLoading\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.dataPanelContainer\\\"\\r\\n\\t\\t\\t\\t[style.width.px]=\\\"\\r\\n\\t\\t\\t\\t\\t(selectBoxService.mainContainer.nativeElement\\r\\n\\t\\t\\t\\t\\t\\t| fromComputedStyle : 'width'\\r\\n\\t\\t\\t\\t\\t\\t| replace : 'px' : ''\\r\\n\\t\\t\\t\\t\\t\\t| toFixed : 2) + leftRightBorderWidth\\r\\n\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"select-box-data-item\\\">\\r\\n\\t\\t\\t\\t\\t{{ 'components.components.RES_No_Data_Found' | priI18n }}\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\t</ng-template>\\r\\n</ng-template>\\r\\n\\r\\n\", styles: [\"pri-select-box-data-panel{display:block;max-height:inherit}.pri-field-options .select-box-custom-data-template-container,.pri-field-options .select-box-default-data-template-container{overflow-y:auto;max-height:inherit;background:var(--grey-1);border:.0714285714rem solid var(--grey-4);display:flex;flex-direction:column;gap:.2857142857rem;width:100%;border-radius:4px}.pri-field-options .select-box-default-data-template-container{padding:.2857142857rem 0}.pri-field-options .select-box-default-data-template-container .select-box-data-item{display:flex;flex-direction:column;padding:.2857142857rem .8571428571rem;transition:all .3s}.pri-field-options .select-box-default-data-template-container .select-box-data-item.selected-value{background-color:var(--theme-10)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:hover,.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus{cursor:pointer;outline:none;background-color:var(--grey-2)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus{background-color:var(--theme-10)}.pri-field-options .select-box-default-data-template-container .select-box-data-item.valid-data-item:focus .select-box-data-label{color:var(--theme-100)}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-label{color:var(--grey-7);transition:all .3s}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-label.selected-value{color:var(--theme-100)}.pri-field-options .select-box-default-data-template-container .select-box-data-item .select-box-data-short-description{font-size:.8571428571rem;color:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SelectBoxService, decorators: [{\r\n                    type: SkipSelf\r\n                }] }, { type: i0.Injector }]; }, propDecorators: { dataPanelContainer: [{\r\n                type: ViewChild,\r\n                args: ['dataPanelContainer', { read: ElementRef }]\r\n            }], handleArrowUpPress: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.ArrowUp', ['$event']]\r\n            }], handleArrowDownPress: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.ArrowDown', ['$event']]\r\n            }], handleEnterPress: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.Enter', ['$event']]\r\n            }], handleEscapeKeyDown: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.escape', ['$event']]\r\n            }] } });\n\n/**\r\n * Class that providers states/events which will be used in TagBadgeComponent context.\r\n */\r\nclass TagBadgeService {\r\n}\r\nTagBadgeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagBadgeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nTagBadgeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagBadgeService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagBadgeService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nconst TagBadgeServiceProvider = ScopedDependencyResolver(TagBadgeService);\n\nclass TagBadgeComponent {\r\n    constructor(tagBadgeService) {\r\n        this.tagBadgeService = tagBadgeService;\r\n        this.customElementClass = '';\r\n        this.forcePopover = false;\r\n        this.removeItem = new EventEmitter();\r\n        this.hasFocus = false;\r\n        this.disabled$ = new BehaviorSubject(false);\r\n        this.isRemovable$ = new BehaviorSubject(true);\r\n    }\r\n    set disabled(value) {\r\n        this.disabled$.next(value);\r\n    }\r\n    set isRemovable(value) {\r\n        this.isRemovable$.next(value);\r\n    }\r\n    handleEnterPress() {\r\n        if (this.hasFocus) {\r\n            this.onRemoveClick();\r\n        }\r\n    }\r\n    onRemoveClick() {\r\n        if (!this.disabled) {\r\n            this.removeItem.emit(this.data);\r\n        }\r\n    }\r\n    onFocus() {\r\n        this.hasFocus = true;\r\n    }\r\n    onBlur() {\r\n        this.hasFocus = false;\r\n    }\r\n}\r\nTagBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagBadgeComponent, deps: [{ token: TagBadgeService }], target: i0.ɵɵFactoryTarget.Component });\r\nTagBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TagBadgeComponent, isStandalone: true, selector: \"pri-tag-badge\", inputs: { data: \"data\", label: \"label\", customElementClass: \"customElementClass\", forcePopover: \"forcePopover\", disabled: \"disabled\", isRemovable: \"isRemovable\" }, outputs: { removeItem: \"removeItem\" }, host: { listeners: { \"document:keydown.Enter\": \"handleEnterPress($event)\" } }, providers: [\r\n        TagBadgeServiceProvider,\r\n        {\r\n            provide: MAT_TOOLTIP_DEFAULT_OPTIONS,\r\n            useValue: {\r\n                position: 'above'\r\n            }\r\n        }\r\n    ], ngImport: i0, template: \"<div\\r\\n\\ttabindex=\\\"0\\\"\\r\\n\\tclass=\\\"tag-badge-container\\\"\\r\\n\\t[popover]=\\\"forcePopover ? popoverTemplateWrapper : undefined\\\"\\r\\n\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\tcontainer=\\\"body\\\"\\r\\n\\t#dimensionPopover=\\\"bs-popover\\\"\\r\\n\\t[priPopover]=\\\"dimensionPopover\\\"\\r\\n\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\tcontainerClass=\\\"tag-badge-popover-container\\\"\\r\\n\\t[ngClass]=\\\"customElementClass\\\"\\r\\n\\t(mousedown)=\\\"$event.preventDefault()\\\"\\r\\n\\t(focus)=\\\"onFocus()\\\"\\r\\n\\t(blur)=\\\"onBlur()\\\">\\r\\n\\t<div class=\\\"tag-badge-label\\\" [innerHtml]=\\\"label\\\" [priTooltipHover]=\\\"!forcePopover\\\"></div>\\r\\n\\t<span\\r\\n\\t\\t*ngIf=\\\"(isRemovable$ | async) && (disabled$ | async) === false\\\"\\r\\n\\t\\tclass=\\\"tag-badge-remove-icon ti-ux-close\\\"\\r\\n\\t\\t(click)=\\\"onRemoveClick()\\\"\\r\\n\\t\\t[ngClass]=\\\"{ disabled: (disabled$ | async) }\\\">\\r\\n\\t</span>\\r\\n</div>\\r\\n\\r\\n<!-- Default popover template -->\\r\\n<ng-template #defaultPopoverTemplate>\\r\\n\\t<div [innerHtml]=\\\"label\\\"></div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #popoverTemplateWrapper>\\r\\n\\t<ng-container\\r\\n\\t\\t[ngTemplateOutlet]=\\\"tagBadgeService.customPopoverTemplate || defaultPopoverTemplate\\\"\\r\\n\\t\\t[ngTemplateOutletContext]=\\\"{ $implicit: data }\\\">\\r\\n\\t</ng-container>\\r\\n</ng-template>\\r\\n\", styles: [\".tag-badge-container{display:flex;flex-direction:row;align-items:center;gap:.2857142857rem;height:1.7142857143rem;flex-shrink:0;border-radius:1.4285714286rem;background-color:var(--grey-4);color:var(--grey-8);padding:0 .5714285714rem;border:1px solid transparent;transition:all .3s;cursor:default}.tag-badge-container:hover,.tag-badge-container:focus-visible{border-color:var(--theme-100);outline:none!important}.tag-badge-container.disabled{opacity:.7}.tag-badge-container .tag-badge-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-badge-container .tag-badge-remove-icon{cursor:pointer;line-height:initial}.tag-badge-container .tag-badge-remove-icon:hover:not(.disabled){color:var(--theme-100)}.tag-badge-container .tag-badge-remove-icon.disabled{pointer-events:none}@media only screen and (max-width: 991px){.popover-dimensions-filter{max-width:300px}}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: PopoverModule }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagBadgeComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tag-badge', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, PopoverModule, PriPopoverDirective, TooltipHoverDirective], providers: [\r\n                        TagBadgeServiceProvider,\r\n                        {\r\n                            provide: MAT_TOOLTIP_DEFAULT_OPTIONS,\r\n                            useValue: {\r\n                                position: 'above'\r\n                            }\r\n                        }\r\n                    ], template: \"<div\\r\\n\\ttabindex=\\\"0\\\"\\r\\n\\tclass=\\\"tag-badge-container\\\"\\r\\n\\t[popover]=\\\"forcePopover ? popoverTemplateWrapper : undefined\\\"\\r\\n\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\tcontainer=\\\"body\\\"\\r\\n\\t#dimensionPopover=\\\"bs-popover\\\"\\r\\n\\t[priPopover]=\\\"dimensionPopover\\\"\\r\\n\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\tcontainerClass=\\\"tag-badge-popover-container\\\"\\r\\n\\t[ngClass]=\\\"customElementClass\\\"\\r\\n\\t(mousedown)=\\\"$event.preventDefault()\\\"\\r\\n\\t(focus)=\\\"onFocus()\\\"\\r\\n\\t(blur)=\\\"onBlur()\\\">\\r\\n\\t<div class=\\\"tag-badge-label\\\" [innerHtml]=\\\"label\\\" [priTooltipHover]=\\\"!forcePopover\\\"></div>\\r\\n\\t<span\\r\\n\\t\\t*ngIf=\\\"(isRemovable$ | async) && (disabled$ | async) === false\\\"\\r\\n\\t\\tclass=\\\"tag-badge-remove-icon ti-ux-close\\\"\\r\\n\\t\\t(click)=\\\"onRemoveClick()\\\"\\r\\n\\t\\t[ngClass]=\\\"{ disabled: (disabled$ | async) }\\\">\\r\\n\\t</span>\\r\\n</div>\\r\\n\\r\\n<!-- Default popover template -->\\r\\n<ng-template #defaultPopoverTemplate>\\r\\n\\t<div [innerHtml]=\\\"label\\\"></div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #popoverTemplateWrapper>\\r\\n\\t<ng-container\\r\\n\\t\\t[ngTemplateOutlet]=\\\"tagBadgeService.customPopoverTemplate || defaultPopoverTemplate\\\"\\r\\n\\t\\t[ngTemplateOutletContext]=\\\"{ $implicit: data }\\\">\\r\\n\\t</ng-container>\\r\\n</ng-template>\\r\\n\", styles: [\".tag-badge-container{display:flex;flex-direction:row;align-items:center;gap:.2857142857rem;height:1.7142857143rem;flex-shrink:0;border-radius:1.4285714286rem;background-color:var(--grey-4);color:var(--grey-8);padding:0 .5714285714rem;border:1px solid transparent;transition:all .3s;cursor:default}.tag-badge-container:hover,.tag-badge-container:focus-visible{border-color:var(--theme-100);outline:none!important}.tag-badge-container.disabled{opacity:.7}.tag-badge-container .tag-badge-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-badge-container .tag-badge-remove-icon{cursor:pointer;line-height:initial}.tag-badge-container .tag-badge-remove-icon:hover:not(.disabled){color:var(--theme-100)}.tag-badge-container .tag-badge-remove-icon.disabled{pointer-events:none}@media only screen and (max-width: 991px){.popover-dimensions-filter{max-width:300px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: TagBadgeService }]; }, propDecorators: { data: [{\r\n                type: Input\r\n            }], label: [{\r\n                type: Input\r\n            }], customElementClass: [{\r\n                type: Input\r\n            }], forcePopover: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], isRemovable: [{\r\n                type: Input\r\n            }], removeItem: [{\r\n                type: Output\r\n            }], handleEnterPress: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.Enter', ['$event']]\r\n            }] } });\n\nclass SelectBoxSelectedItemsContainerComponent {\r\n    constructor(selectBoxService) {\r\n        this.selectBoxService = selectBoxService;\r\n        this.size = FieldsSizeEnum.Regular;\r\n        this.destroy$ = new Subject();\r\n        this.selectedValue$ = this.selectBoxService.selectedValue$;\r\n    }\r\n    /**\r\n     * Closes the popover when users press \"escape\" key.\r\n     */\r\n    handleEscapeKeyDown() {\r\n        this._selectedItemsPopover?.hide();\r\n    }\r\n    ngOnInit() {\r\n        this.listenOpenDataPanel();\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    handleRemoveSelectedItem(selectedItem) {\r\n        const selectedItems = this.selectedValue$.getValue();\r\n        const newSelectedItems = selectedItems.filter((item) => item[this.selectBoxService.valueKey] !== selectedItem[this.selectBoxService.valueKey]);\r\n        this.selectBoxService.tagWasRemoved$.next();\r\n        this.selectBoxService.setAndEmitSelectedValue(newSelectedItems);\r\n    }\r\n    listenOpenDataPanel() {\r\n        this.selectBoxService.isOpenDataPanel$\r\n            .pipe(filter$1((isOpenDataPanel) => isOpenDataPanel), takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            this._selectedItemsPopover?.hide();\r\n        });\r\n    }\r\n}\r\nSelectBoxSelectedItemsContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectedItemsContainerComponent, deps: [{ token: SelectBoxService, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxSelectedItemsContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxSelectedItemsContainerComponent, isStandalone: true, selector: \"pri-select-box-selected-items-container\", inputs: { size: \"size\" }, host: { listeners: { \"document:keydown.escape\": \"handleEscapeKeyDown($event)\" } }, providers: [\r\n        importProvidersFrom(PrimaveraI18nModule.forRoot()).ɵproviders,\r\n        importProvidersFrom(PopoverModule.forRoot()).ɵproviders\r\n    ], viewQueries: [{ propertyName: \"itemsCounterElement\", first: true, predicate: [\"itemsCounter\"], descendants: true }, { propertyName: \"tagBadgeElement\", first: true, predicate: TagBadgeComponent, descendants: true, read: ElementRef }, { propertyName: \"_selectedItemsPopover\", first: true, predicate: [\"selectedItemsPopover\"], descendants: true }], ngImport: i0, template: \"<ng-container *ngIf=\\\"selectBoxService.maxVisibleItems$ | async as maxVisibleItems\\\">\\r\\n\\t<div\\r\\n\\t\\t#selectedItemsContainer\\r\\n\\t\\tdata-testid=\\\"pri-select-box-selected-items-container\\\"\\r\\n\\t\\t*ngIf=\\\"selectedValue$ | async as items\\\"\\r\\n\\t\\tclass=\\\"select-box-selected-items-container\\\">\\r\\n\\t\\t<!-- The tags that will be rendered -->\\r\\n\\t\\t<ng-template #tagItems let-sliceStart=\\\"sliceStart\\\" let-sliceEnd=\\\"sliceEnd\\\">\\r\\n\\t\\t\\t<pri-tag-badge\\r\\n\\t\\t\\t\\t*ngFor=\\\"\\r\\n\\t\\t\\t\\t\\tlet item of items | slice : sliceStart : sliceEnd;\\r\\n\\t\\t\\t\\t\\ttrackBy: selectBoxService.trackByItemValueKey\\r\\n\\t\\t\\t\\t\\\"\\r\\n\\t\\t\\t\\tcustomElementClass=\\\"select-box-selected-item-tag\\\"\\r\\n\\t\\t\\t\\t[data]=\\\"item\\\"\\r\\n\\t\\t\\t\\t[forcePopover]=\\\"false\\\"\\r\\n\\t\\t\\t\\t[label]=\\\"item[selectBoxService.labelKey]?.toString()\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t\\t\\t[isRemovable]=\\\"(selectBoxService.inputHasFocus$ | async) === false\\\"\\r\\n\\t\\t\\t\\t(removeItem)=\\\"handleRemoveSelectedItem($event)\\\"></pri-tag-badge>\\r\\n\\t\\t</ng-template>\\r\\n\\r\\n\\t\\t<!-- The user-visible items -->\\r\\n\\t\\t<div class=\\\"select-box-selected-items-items\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t[ngTemplateOutlet]=\\\"tagItems\\\"\\r\\n\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t\\t\\t\\tsliceStart: 0,\\r\\n\\t\\t\\t\\t\\tsliceEnd: (selectBoxService.inputHasFocus$ | async) ? items.length : maxVisibleItems\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- The counter of user-invisible items -->\\r\\n\\t\\t<button\\r\\n\\t\\t\\t#selectedItemsAction\\r\\n\\t\\t\\t*ngIf=\\\"(selectBoxService.inputHasFocus$ | async) === false && items.length > maxVisibleItems\\\"\\r\\n\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-selected-items-action\\\"\\r\\n\\t\\t\\t#selectedItemsPopover=\\\"bs-popover\\\"\\r\\n\\t\\t\\t[popover]=\\\"selectedItemsPopoverPanel\\\"\\r\\n\\t\\t\\ttriggers=\\\"\\\"\\r\\n\\t\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t\\tplacement=\\\"bottom\\\"\\r\\n\\t\\t\\tboundariesElement=\\\"viewport\\\"\\r\\n\\t\\t\\tcontainerClass=\\\"select-box-selected-items-popover {{ size }}\\\"\\r\\n\\t\\t\\t[outsideClick]=\\\"true\\\"\\r\\n\\t\\t\\t[adaptivePosition]=\\\"true\\\"\\r\\n\\t\\t\\t(click)=\\\"selectedItemsPopover.show()\\\">\\r\\n\\t\\t\\t<div #itemsCounter class=\\\"select-box-selected-items-action-label\\\">\\r\\n\\t\\t\\t\\t+ {{ items.length - maxVisibleItems }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</button>\\r\\n\\r\\n\\t\\t<!-- Panel of collapsed items popover -->\\r\\n\\t\\t<ng-template #selectedItemsPopoverPanel>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"select-box-selected-items-panel\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectedItemsPanel\\\">\\r\\n\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t[ngTemplateOutlet]=\\\"tagItems\\\"\\r\\n\\t\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{ sliceStart: maxVisibleItems, sliceEnd: items.length }\\\">\\r\\n\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-select-box-selected-items-container .select-box-selected-items-container{display:flex;flex-direction:row;align-items:center;gap:.2857142857rem;height:100%;width:100%}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-item-tag{max-width:5.7142857143em}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-items{display:flex;align-items:center;flex-wrap:nowrap;gap:.2857142857rem;overflow:hidden}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action{color:var(--grey-8);background:transparent;border:none;outline:none;padding:1px;border-radius:1rem;cursor:pointer}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action-label{font-size:1rem!important;height:100%;width:2.2857142857rem}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action-label:hover{color:var(--theme-100)}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action:focus-visible{padding:0;border:.0714285714rem solid var(--grey-8)!important}.select-box-selected-items-popover{border:.0714285714rem solid var(--grey-4);background-color:var(--grey-1)!important;font-size:1em}.select-box-selected-items-popover .select-box-selected-items-panel{display:flex;gap:.2857142857rem;width:11.7857142857em;flex-wrap:wrap}.select-box-selected-items-popover .select-box-selected-items-panel .select-box-selected-item-tag{max-width:5.7142857143em}.select-box-selected-items-popover.size-small{font-size:.8em}.select-box-selected-items-popover.size-small .select-box-selected-item-tag{height:1.4285714286rem}.select-box-selected-items-popover.size-large{font-size:1.2em}.select-box-selected-items-popover.size-large .select-box-selected-item-tag{height:2rem}.select-box-selected-items-popover.popover-bottom .popover-arrow:after{border-bottom-color:var(--grey-1)!important}.select-box-selected-items-popover .popover-content{font-size:inherit}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i1$1.SlicePipe, name: \"slice\" }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"ngmodule\", type: MatTooltipModule }, { kind: \"ngmodule\", type: PopoverModule }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"component\", type: TagBadgeComponent, selector: \"pri-tag-badge\", inputs: [\"data\", \"label\", \"customElementClass\", \"forcePopover\", \"disabled\", \"isRemovable\"], outputs: [\"removeItem\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSelectedItemsContainerComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box-selected-items-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, PrimaveraI18nModule, MatTooltipModule, PopoverModule, TagBadgeComponent], providers: [\r\n                        importProvidersFrom(PrimaveraI18nModule.forRoot()).ɵproviders,\r\n                        importProvidersFrom(PopoverModule.forRoot()).ɵproviders\r\n                    ], template: \"<ng-container *ngIf=\\\"selectBoxService.maxVisibleItems$ | async as maxVisibleItems\\\">\\r\\n\\t<div\\r\\n\\t\\t#selectedItemsContainer\\r\\n\\t\\tdata-testid=\\\"pri-select-box-selected-items-container\\\"\\r\\n\\t\\t*ngIf=\\\"selectedValue$ | async as items\\\"\\r\\n\\t\\tclass=\\\"select-box-selected-items-container\\\">\\r\\n\\t\\t<!-- The tags that will be rendered -->\\r\\n\\t\\t<ng-template #tagItems let-sliceStart=\\\"sliceStart\\\" let-sliceEnd=\\\"sliceEnd\\\">\\r\\n\\t\\t\\t<pri-tag-badge\\r\\n\\t\\t\\t\\t*ngFor=\\\"\\r\\n\\t\\t\\t\\t\\tlet item of items | slice : sliceStart : sliceEnd;\\r\\n\\t\\t\\t\\t\\ttrackBy: selectBoxService.trackByItemValueKey\\r\\n\\t\\t\\t\\t\\\"\\r\\n\\t\\t\\t\\tcustomElementClass=\\\"select-box-selected-item-tag\\\"\\r\\n\\t\\t\\t\\t[data]=\\\"item\\\"\\r\\n\\t\\t\\t\\t[forcePopover]=\\\"false\\\"\\r\\n\\t\\t\\t\\t[label]=\\\"item[selectBoxService.labelKey]?.toString()\\\"\\r\\n\\t\\t\\t\\t[disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t\\t\\t[isRemovable]=\\\"(selectBoxService.inputHasFocus$ | async) === false\\\"\\r\\n\\t\\t\\t\\t(removeItem)=\\\"handleRemoveSelectedItem($event)\\\"></pri-tag-badge>\\r\\n\\t\\t</ng-template>\\r\\n\\r\\n\\t\\t<!-- The user-visible items -->\\r\\n\\t\\t<div class=\\\"select-box-selected-items-items\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t[ngTemplateOutlet]=\\\"tagItems\\\"\\r\\n\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{\\r\\n\\t\\t\\t\\t\\tsliceStart: 0,\\r\\n\\t\\t\\t\\t\\tsliceEnd: (selectBoxService.inputHasFocus$ | async) ? items.length : maxVisibleItems\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- The counter of user-invisible items -->\\r\\n\\t\\t<button\\r\\n\\t\\t\\t#selectedItemsAction\\r\\n\\t\\t\\t*ngIf=\\\"(selectBoxService.inputHasFocus$ | async) === false && items.length > maxVisibleItems\\\"\\r\\n\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\tclass=\\\"select-box-selected-items-action\\\"\\r\\n\\t\\t\\t#selectedItemsPopover=\\\"bs-popover\\\"\\r\\n\\t\\t\\t[popover]=\\\"selectedItemsPopoverPanel\\\"\\r\\n\\t\\t\\ttriggers=\\\"\\\"\\r\\n\\t\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t\\tplacement=\\\"bottom\\\"\\r\\n\\t\\t\\tboundariesElement=\\\"viewport\\\"\\r\\n\\t\\t\\tcontainerClass=\\\"select-box-selected-items-popover {{ size }}\\\"\\r\\n\\t\\t\\t[outsideClick]=\\\"true\\\"\\r\\n\\t\\t\\t[adaptivePosition]=\\\"true\\\"\\r\\n\\t\\t\\t(click)=\\\"selectedItemsPopover.show()\\\">\\r\\n\\t\\t\\t<div #itemsCounter class=\\\"select-box-selected-items-action-label\\\">\\r\\n\\t\\t\\t\\t+ {{ items.length - maxVisibleItems }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</button>\\r\\n\\r\\n\\t\\t<!-- Panel of collapsed items popover -->\\r\\n\\t\\t<ng-template #selectedItemsPopoverPanel>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"select-box-selected-items-panel\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectedItemsPanel\\\">\\r\\n\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t[ngTemplateOutlet]=\\\"tagItems\\\"\\r\\n\\t\\t\\t\\t\\t[ngTemplateOutletContext]=\\\"{ sliceStart: maxVisibleItems, sliceEnd: items.length }\\\">\\r\\n\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</ng-template>\\r\\n\\t</div>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-select-box-selected-items-container .select-box-selected-items-container{display:flex;flex-direction:row;align-items:center;gap:.2857142857rem;height:100%;width:100%}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-item-tag{max-width:5.7142857143em}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-items{display:flex;align-items:center;flex-wrap:nowrap;gap:.2857142857rem;overflow:hidden}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action{color:var(--grey-8);background:transparent;border:none;outline:none;padding:1px;border-radius:1rem;cursor:pointer}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action-label{font-size:1rem!important;height:100%;width:2.2857142857rem}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action-label:hover{color:var(--theme-100)}pri-select-box-selected-items-container .select-box-selected-items-container .select-box-selected-items-action:focus-visible{padding:0;border:.0714285714rem solid var(--grey-8)!important}.select-box-selected-items-popover{border:.0714285714rem solid var(--grey-4);background-color:var(--grey-1)!important;font-size:1em}.select-box-selected-items-popover .select-box-selected-items-panel{display:flex;gap:.2857142857rem;width:11.7857142857em;flex-wrap:wrap}.select-box-selected-items-popover .select-box-selected-items-panel .select-box-selected-item-tag{max-width:5.7142857143em}.select-box-selected-items-popover.size-small{font-size:.8em}.select-box-selected-items-popover.size-small .select-box-selected-item-tag{height:1.4285714286rem}.select-box-selected-items-popover.size-large{font-size:1.2em}.select-box-selected-items-popover.size-large .select-box-selected-item-tag{height:2rem}.select-box-selected-items-popover.popover-bottom .popover-arrow:after{border-bottom-color:var(--grey-1)!important}.select-box-selected-items-popover .popover-content{font-size:inherit}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SelectBoxService, decorators: [{\r\n                    type: SkipSelf\r\n                }] }]; }, propDecorators: { size: [{\r\n                type: Input\r\n            }], itemsCounterElement: [{\r\n                type: ViewChild,\r\n                args: ['itemsCounter']\r\n            }], tagBadgeElement: [{\r\n                type: ViewChild,\r\n                args: [TagBadgeComponent, { read: ElementRef }]\r\n            }], _selectedItemsPopover: [{\r\n                type: ViewChild,\r\n                args: ['selectedItemsPopover']\r\n            }], \r\n        /**\r\n         * Closes the popover when users press \"escape\" key.\r\n         */\r\n        handleEscapeKeyDown: [{\r\n                type: HostListener,\r\n                args: ['document:keydown.escape', ['$event']]\r\n            }] } });\n\nclass SelectBoxMultiSelectBehaviorComponent {\r\n    constructor(selectBoxService) {\r\n        this.selectBoxService = selectBoxService;\r\n        this.size = FieldsSizeEnum.Regular;\r\n        this.inputHasFocus = false;\r\n        this.changeDetection = inject(ChangeDetectorRef);\r\n        this.destroy$ = new Subject();\r\n        this.selectedValue$ = this.selectBoxService.selectedValue$;\r\n    }\r\n    /**\r\n     * Implements horizontal scroll when element is hovered.\r\n     */\r\n    onScroll(event) {\r\n        if (this.inputHasFocus) {\r\n            event.preventDefault();\r\n            event.stopPropagation();\r\n            this._filterContainer.nativeElement.scrollLeft += event.deltaY;\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.listenInputHasFocus();\r\n        this.listenOnSelectItemChanges();\r\n        this.listenPreInputValueChanges();\r\n        this.calculateMaxVisibleItems();\r\n        this.selectBoxService.filterContainer = this._filterContainer;\r\n    }\r\n    /**\r\n     * Calculates the how many selected tags/items can be rendered out of the counter button\r\n     */\r\n    calculateMaxVisibleItems() {\r\n        const disabled = this.selectBoxService.disabled$.getValue();\r\n        // Elements\r\n        const filterContainerElement = this._filterContainer.nativeElement;\r\n        const itemsCounterElement = this.selectBoxSelectedItemsContainerComponent?.itemsCounterElement?.nativeElement;\r\n        const dropDownArrowElement = this.selectBoxFilterInputComponent?.dropDownArrowElement?.nativeElement;\r\n        const tagBadgeElement = this.selectBoxSelectedItemsContainerComponent?.tagBadgeElement?.nativeElement;\r\n        // Computed style\r\n        let filterContainerComputedStyle;\r\n        let dropDownArrowComputedStyle;\r\n        let itemsCounterComputedStyle;\r\n        let tagBadgeComputedStyle;\r\n        if (filterContainerElement) {\r\n            filterContainerComputedStyle = window.getComputedStyle(filterContainerElement, null);\r\n        }\r\n        if (dropDownArrowElement) {\r\n            dropDownArrowComputedStyle = window.getComputedStyle(dropDownArrowElement, null);\r\n        }\r\n        if (itemsCounterElement) {\r\n            itemsCounterComputedStyle = window.getComputedStyle(itemsCounterElement, null);\r\n        }\r\n        if (tagBadgeElement) {\r\n            tagBadgeComputedStyle = window.getComputedStyle(tagBadgeElement, null);\r\n        }\r\n        // Width in PX\r\n        const currentFilterContainerWidth = this._filterContainer.nativeElement.clientWidth;\r\n        const displayFlexGapWidth = this.getFormattedComputedStyleValue(filterContainerComputedStyle, 'gap');\r\n        const minInputWidth = disabled ? 0 : 10;\r\n        const itemsCounterWidth = this.getFormattedComputedStyleValue(itemsCounterComputedStyle, 'width');\r\n        const dropDownArrowButtonWidth = this.getFormattedComputedStyleValue(dropDownArrowComputedStyle, 'width');\r\n        const itemsContainerWidth = currentFilterContainerWidth -\r\n            displayFlexGapWidth -\r\n            itemsCounterWidth -\r\n            displayFlexGapWidth -\r\n            minInputWidth -\r\n            displayFlexGapWidth -\r\n            dropDownArrowButtonWidth;\r\n        // This value can never be equal to zero, so we set a minimum value of 80px.\r\n        const maxTagWidthPx = tagBadgeComputedStyle\r\n            ? this.getFormattedComputedStyleValue(tagBadgeComputedStyle, 'width')\r\n            : 80;\r\n        const maxVisibleItemsWithoutGap = Math.floor(itemsContainerWidth / maxTagWidthPx);\r\n        /**\r\n         * The leftmost item and the rightmost do not have display flex gap.\r\n         * So, if the number of selected data is equal 1 then the \"display flex gap\" must be equals 0.\r\n\"\t\t * Otherwise, the sum of all \"display flex gaps\" must be equals\r\n            (\"maxVisibleItemsWithoutGap\" - 1) * (displayFlexGapWidth) with \"-1\" being the subtraction of the rightmost item.\r\n         */\r\n        const totalGapWidth = maxVisibleItemsWithoutGap === 1 ? 0 : (maxVisibleItemsWithoutGap - 1) * displayFlexGapWidth;\r\n        const maxVisibleItems = Math.floor(itemsContainerWidth / (maxTagWidthPx + totalGapWidth)) || 1;\r\n        this.selectBoxService.maxVisibleItems$.next(maxVisibleItems);\r\n        /**\r\n         * This change detection is important to solve some problems with dynamically sized containers.\r\n         * Sometimes the container that contains the select-box component is resized after the execution of this method,\r\n         * causing \"strange behaviors\" in the component design.\r\n         * The \"markForCheck()\" does not work in this case.\r\n         * Check the issue https://github.com/primaverabss/elevation-documentation-shared/issues/568 for more details.\r\n         */\r\n        this.changeDetection.detectChanges();\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    /**\r\n     * Recalculates the how many tags/items can be rendered out of the counter\r\n     */\r\n    onResize() {\r\n        this.calculateMaxVisibleItems();\r\n    }\r\n    getFormattedComputedStyleValue(computedStyle, property) {\r\n        return computedStyle?.[property] ? Number(computedStyle[property].replace('px', '')) : 0;\r\n    }\r\n    listenInputHasFocus() {\r\n        this.selectBoxService.inputHasFocus$\r\n            .pipe(filter$1((inputHasFocus) => this.inputHasFocus !== inputHasFocus), delay(0), // This is important to right work of change detection\r\n        takeUntil(this.destroy$))\r\n            .subscribe((inputHasFocus) => {\r\n            this.inputHasFocus = inputHasFocus;\r\n            const horizontalScroll = inputHasFocus ? this._filterContainer.nativeElement.scrollWidth : 0;\r\n            this._filterContainer.nativeElement.scrollTo(horizontalScroll, 0);\r\n        });\r\n    }\r\n    listenOnSelectItemChanges() {\r\n        this.selectBoxService.onSelectItem$.pipe(takeUntil(this.destroy$)).subscribe((selectedItem) => {\r\n            this.handleSelectItem(selectedItem);\r\n        });\r\n    }\r\n    /**\r\n     * Listen \"preInputValueChange$\" observable to performs the \"keepInputVisible\" event.\r\n     */\r\n    listenPreInputValueChanges() {\r\n        this.selectBoxService.preInputValueChange$.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            this.selectBoxService.keepInputVisible();\r\n        });\r\n    }\r\n    handleSelectItem(selectedItem) {\r\n        const currentSelectedItems = this.selectedValue$.getValue();\r\n        const newSelectedItems = [...currentSelectedItems, selectedItem];\r\n        this.selectBoxService.setAndEmitSelectedValue(newSelectedItems);\r\n        this.selectBoxService.setAndEmitInputValue(null);\r\n    }\r\n}\r\nSelectBoxMultiSelectBehaviorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxMultiSelectBehaviorComponent, deps: [{ token: SelectBoxService, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxMultiSelectBehaviorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxMultiSelectBehaviorComponent, isStandalone: true, selector: \"pri-select-box-multi-select-behavior\", inputs: { size: \"size\" }, host: { listeners: { \"wheel\": \"onScroll($event)\" } }, viewQueries: [{ propertyName: \"_filterContainer\", first: true, predicate: [\"filterContainer\"], descendants: true, static: true }, { propertyName: \"selectBoxFilterInputComponent\", first: true, predicate: SelectBoxFilterInputComponent, descendants: true }, { propertyName: \"selectBoxSelectedItemsContainerComponent\", first: true, predicate: SelectBoxSelectedItemsContainerComponent, descendants: true }], ngImport: i0, template: \"<div\\r\\n\\t#filterContainer\\r\\n\\tpriResizeObserver\\r\\n\\tdata-testid=\\\"pri-select-box-multi-select-behavior\\\"\\r\\n\\tclass=\\\"select-box-filter-container\\\"\\r\\n\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterContainer\\\"\\r\\n\\t(sizeChanges)=\\\"onResize()\\\">\\r\\n\\t<pri-select-box-selected-items-container\\r\\n\\t\\t*ngIf=\\\"(selectedValue$ | async)?.length > 0 || (selectBoxService.disabled$ | async)\\\"\\r\\n\\t\\t[size]=\\\"size\\\"\\r\\n\\t\\t[ngClass]=\\\"(selectBoxService.inputHasFocus$ | async) ? 'collapse-items-view' : 'full-items-view'\\\">\\r\\n\\t</pri-select-box-selected-items-container>\\r\\n\\t<pri-select-box-filter-input *ngIf=\\\"(selectBoxService.disabled$ | async) === false\\\"></pri-select-box-filter-input>\\r\\n</div>\\r\\n\", styles: [\"pri-select-box-multi-select-behavior .select-box-filter-container{overflow:auto;-ms-overflow-style:none;scrollbar-width:none}pri-select-box-multi-select-behavior .select-box-filter-container::-webkit-scrollbar{display:none}pri-select-box-multi-select-behavior pri-select-box-filter-input{overflow:hidden}pri-select-box-multi-select-behavior:has(.collapse-items-view) pri-select-box-filter-input{min-width:120px}\\n\"], dependencies: [{ kind: \"directive\", type: NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: AsyncPipe, name: \"async\" }, { kind: \"directive\", type: NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"component\", type: SelectBoxFilterInputComponent, selector: \"pri-select-box-filter-input\" }, { kind: \"component\", type: SelectBoxSelectedItemsContainerComponent, selector: \"pri-select-box-selected-items-container\", inputs: [\"size\"] }, { kind: \"directive\", type: ResizeObserverDirective, selector: \"[priResizeObserver]\", outputs: [\"sizeChanges\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxMultiSelectBehaviorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box-multi-select-behavior', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [\r\n                        NgIf,\r\n                        AsyncPipe,\r\n                        NgClass,\r\n                        SelectBoxFilterInputComponent,\r\n                        SelectBoxSelectedItemsContainerComponent,\r\n                        ResizeObserverDirective\r\n                    ], template: \"<div\\r\\n\\t#filterContainer\\r\\n\\tpriResizeObserver\\r\\n\\tdata-testid=\\\"pri-select-box-multi-select-behavior\\\"\\r\\n\\tclass=\\\"select-box-filter-container\\\"\\r\\n\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterContainer\\\"\\r\\n\\t(sizeChanges)=\\\"onResize()\\\">\\r\\n\\t<pri-select-box-selected-items-container\\r\\n\\t\\t*ngIf=\\\"(selectedValue$ | async)?.length > 0 || (selectBoxService.disabled$ | async)\\\"\\r\\n\\t\\t[size]=\\\"size\\\"\\r\\n\\t\\t[ngClass]=\\\"(selectBoxService.inputHasFocus$ | async) ? 'collapse-items-view' : 'full-items-view'\\\">\\r\\n\\t</pri-select-box-selected-items-container>\\r\\n\\t<pri-select-box-filter-input *ngIf=\\\"(selectBoxService.disabled$ | async) === false\\\"></pri-select-box-filter-input>\\r\\n</div>\\r\\n\", styles: [\"pri-select-box-multi-select-behavior .select-box-filter-container{overflow:auto;-ms-overflow-style:none;scrollbar-width:none}pri-select-box-multi-select-behavior .select-box-filter-container::-webkit-scrollbar{display:none}pri-select-box-multi-select-behavior pri-select-box-filter-input{overflow:hidden}pri-select-box-multi-select-behavior:has(.collapse-items-view) pri-select-box-filter-input{min-width:120px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SelectBoxService, decorators: [{\r\n                    type: SkipSelf\r\n                }] }]; }, propDecorators: { size: [{\r\n                type: Input\r\n            }], _filterContainer: [{\r\n                type: ViewChild,\r\n                args: ['filterContainer', { static: true }]\r\n            }], selectBoxFilterInputComponent: [{\r\n                type: ViewChild,\r\n                args: [SelectBoxFilterInputComponent]\r\n            }], selectBoxSelectedItemsContainerComponent: [{\r\n                type: ViewChild,\r\n                args: [SelectBoxSelectedItemsContainerComponent]\r\n            }], \r\n        /**\r\n         * Implements horizontal scroll when element is hovered.\r\n         */\r\n        onScroll: [{\r\n                type: HostListener,\r\n                args: ['wheel', ['$event']]\r\n            }] } });\n\nclass SelectBoxSingleSelectBehaviorComponent {\r\n    constructor(selectBoxService) {\r\n        this.selectBoxService = selectBoxService;\r\n        this.destroy$ = new Subject();\r\n        this.selectedValue$ = this.selectBoxService.selectedValue$;\r\n    }\r\n    ngOnInit() {\r\n        this.listenOnSelectItemChanges();\r\n        this.listenRemoveSelectedItemChanges();\r\n        this.selectBoxService.filterContainer = this._filterContainer;\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    listenOnSelectItemChanges() {\r\n        this.selectBoxService.onSelectItem$.pipe(takeUntil(this.destroy$)).subscribe((selectedItem) => {\r\n            this.handleSelectItem(selectedItem);\r\n        });\r\n    }\r\n    listenRemoveSelectedItemChanges() {\r\n        this.selectBoxService.removeSelectedItem$.pipe(takeUntil(this.destroy$)).subscribe((inputValue) => {\r\n            this.handleRemoveSelectedItem(inputValue);\r\n        });\r\n    }\r\n    handleSelectItem(selectedItem) {\r\n        this.selectBoxService.selectStrategy.handleSelectItem(selectedItem);\r\n    }\r\n    handleRemoveSelectedItem(inputValue) {\r\n        const selectedValueHasValidValue = ![null, undefined].includes(this.selectBoxService.selectedValue$.getValue());\r\n        const inputValueIsDistinctFromSelectedValue = inputValue !== this.selectedValue$.getValue()?.[this.selectBoxService.labelKey]?.toString();\r\n        if (selectedValueHasValidValue && inputValueIsDistinctFromSelectedValue) {\r\n            this.selectBoxService.setAndEmitSelectedValue(null);\r\n        }\r\n    }\r\n}\r\nSelectBoxSingleSelectBehaviorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSingleSelectBehaviorComponent, deps: [{ token: SelectBoxService, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxSingleSelectBehaviorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxSingleSelectBehaviorComponent, isStandalone: true, selector: \"pri-select-box-single-select-behavior\", viewQueries: [{ propertyName: \"_filterContainer\", first: true, predicate: [\"filterContainer\"], descendants: true, static: true }], ngImport: i0, template: \"<div\\r\\n\\t#filterContainer\\r\\n\\tclass=\\\"select-box-filter-container\\\"\\r\\n\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterContainer\\\">\\r\\n\\t<pri-select-box-filter-input></pri-select-box-filter-input>\\r\\n</div>\\r\\n\", styles: [\"\"], dependencies: [{ kind: \"directive\", type: NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"component\", type: SelectBoxFilterInputComponent, selector: \"pri-select-box-filter-input\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxSingleSelectBehaviorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box-single-select-behavior', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, AsyncPipe, NgClass, SelectBoxFilterInputComponent], template: \"<div\\r\\n\\t#filterContainer\\r\\n\\tclass=\\\"select-box-filter-container\\\"\\r\\n\\t[ngClass]=\\\"selectBoxService.customElementClass?.filterContainer\\\">\\r\\n\\t<pri-select-box-filter-input></pri-select-box-filter-input>\\r\\n</div>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: SelectBoxService, decorators: [{\r\n                    type: SkipSelf\r\n                }] }]; }, propDecorators: { _filterContainer: [{\r\n                type: ViewChild,\r\n                args: ['filterContainer', { static: true }]\r\n            }] } });\n\nclass SelectBoxComponent {\r\n    constructor(selectBoxService, i18nService, injector, ngZone) {\r\n        this.selectBoxService = selectBoxService;\r\n        this.i18nService = i18nService;\r\n        this.injector = injector;\r\n        this.ngZone = ngZone;\r\n        this.size = FieldsSizeEnum.Regular;\r\n        this.multiple = false;\r\n        this.multiSelectMode = SelectBoxMultiSelectModeEnum.OnlyFromData;\r\n        this.placeholder = '';\r\n        this.minFreeInputLength = 1;\r\n        this.minFilterLength = 0;\r\n        this.canFilterData = true;\r\n        this.notFoundText = this.i18nService.get('components.components.RES_No_Data_Found');\r\n        this.asyncFilterDebounceTime = 500;\r\n        this.hasDropdownArrow = true;\r\n        this.customElementClass = {\r\n            selectBoxContainer: '',\r\n            filterContainer: '',\r\n            filterInput: '',\r\n            filterClearIcon: '',\r\n            dataPanelContainer: '',\r\n            selectedItemsPanel: ''\r\n        };\r\n        /**\r\n         * Fires in each filter value changes.\r\n         */\r\n        this.filterChange = new EventEmitter();\r\n        /**\r\n         * Fires when user select a value in data panel dropdown.\r\n         */\r\n        this.selectedValueChange = new EventEmitter();\r\n        this.disabled$ = new BehaviorSubject(false);\r\n        this.isLoading$ = new BehaviorSubject(false);\r\n        this.isOnlyFromData$ = new BehaviorSubject(false);\r\n        this.destroy$ = new Subject();\r\n    }\r\n    set selectedValue(value) {\r\n        if (Array.isArray(value) && isEqual(value, this.selectedValue)) {\r\n            return;\r\n        }\r\n        if (this.formControlName) {\r\n            throw new Error(`Cannot assign value to property \"selectedValue\" when control is being used in conjunction ` +\r\n                `with directive \"formControlName\". Choose only one way to control the component's value.`);\r\n        }\r\n        this.writeValue(value);\r\n        this._selectedValue = value;\r\n    }\r\n    get selectedValue() {\r\n        return this._selectedValue;\r\n    }\r\n    set defaultData(value) {\r\n        if (value?.data && !isEqual(value, this._defaultData)) {\r\n            this._defaultData = value;\r\n            this.selectBoxService.defaultData = value;\r\n            this.selectBoxService.data$.next(value.data);\r\n        }\r\n    }\r\n    get defaultData() {\r\n        return this._defaultData;\r\n    }\r\n    set disabled(value) {\r\n        this.disabled$.next(value);\r\n    }\r\n    set isLoading(value) {\r\n        this.isLoading$.next(value);\r\n    }\r\n    /**\r\n     * Emits when the data panel must be opened.\r\n     */\r\n    get openDataPanel$() {\r\n        return this.selectBoxService.isOpenDataPanel$.pipe(filter$1((isOpen) => isOpen));\r\n    }\r\n    /**\r\n     * Emits when the data panel must be closed.\r\n     */\r\n    get closeDataPanel$() {\r\n        return this.selectBoxService.isOpenDataPanel$.pipe(filter$1((isOpen) => !isOpen));\r\n    }\r\n    /**\r\n     * Updates the state of \"selectBoxHasFocus$\"\" when it has focus.\r\n     */\r\n    handleFocusInEvents(event) {\r\n        // This ngZone Workaround is necessary to avoid \"ExpressionChangedAfterItHasBeenCheckedError\"\r\n        this.ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\r\n            this.selectBoxService?.handleFocusInSelectBox?.(event);\r\n        });\r\n    }\r\n    /**\r\n     * Closes the open panels, clear the filter value and updates the\r\n     * value of \"selectBoxHasFocus$\" observable when user focuses outside component container\r\n     * and the focus is not in the data panel (the data pane is not in the main container).\r\n     */\r\n    handleFocusOutEvents(event) {\r\n        // This ngZone Workaround is necessary to avoid \"ExpressionChangedAfterItHasBeenCheckedError\"\r\n        this.ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\r\n            this.selectBoxService?.handleFocusOutSelectBox?.(event);\r\n        });\r\n    }\r\n    ngOnInit() {\r\n        this.setFormControlInstance();\r\n        this.setWriteValueStrategy();\r\n        this.setInputStrategy();\r\n        this.setSelectStrategy();\r\n        this.setSelectorStrategy();\r\n        this.setFilterStrategy();\r\n        this.startSelectBoxService();\r\n        this.checkRequiredInputs();\r\n        this.inputStrategy.prepareStrategy();\r\n        this.filterStrategy?.listenPerformFilterFn();\r\n        this.listenInputHasFocus();\r\n        this.listenSelectedValueChanges();\r\n        this.listenInputValueChanges();\r\n        this.listenTagRemovals();\r\n        if (this.writeValueStrategy.isManualValue() && this.selectedValue?.toString().length) {\r\n            this.writeValue(this.selectedValue);\r\n        }\r\n        this.selectBoxService.ready$.next(true);\r\n    }\r\n    ngAfterViewInit() {\r\n        this.selectBoxService.mainContainer = this.mainContainer;\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChanged = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    writeValue(value) {\r\n        this.selectBoxService?.resetDataToDefault();\r\n        this.selectBoxService?.inputStrategy?.writeValue?.(value);\r\n    }\r\n    /**\r\n     * Updates the position of the data panel based on the value emitted by `DropDownMenuDirective`.\r\n     */\r\n    updateDataPanelPosition(value) {\r\n        // This ngZone Workaround is necessary to avoid \"ExpressionChangedAfterItHasBeenCheckedError\"\r\n        this.ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\r\n            this.selectBoxService.dataPanelPosition$.next(value);\r\n        });\r\n    }\r\n    /**\r\n     * Updates the value of `isOpenDataPanel$` observable to `false` when `DropDownMenuDirective` emits the hide event.\r\n     */\r\n    onHideDataPanel() {\r\n        if (this.selectBoxService.isOpenDataPanel$.getValue()) {\r\n            this.selectBoxService.isOpenDataPanel$.next(false);\r\n        }\r\n    }\r\n    setFormControlInstance() {\r\n        const formGroupDirective = this.injector.get(FormGroupDirective, null);\r\n        // This component can be used outside a form context. So, the formGroupDirective and formControlName are optional.\r\n        if (!formGroupDirective) {\r\n            return;\r\n        }\r\n        this.formControlName = this.injector.get(FormControlName, null);\r\n        if (this.formControlName) {\r\n            this.formControl = formGroupDirective.getControl(this.formControlName);\r\n        }\r\n    }\r\n    setWriteValueStrategy() {\r\n        const writeValueMode = this.formControlName ? 0 /* SelectBoxWriteValueEnum.Form */ : 1 /* SelectBoxWriteValueEnum.Manually */;\r\n        this.writeValueStrategy = getWriteValueStrategy(this.injector, writeValueMode);\r\n    }\r\n    setInputStrategy() {\r\n        this.inputStrategy = getInputStrategy(this.injector, this.multiSelectMode);\r\n        this.isOnlyFromData$.next(this.inputStrategy.isOnlyFromData());\r\n    }\r\n    setSelectStrategy() {\r\n        const selectMode = this.multiple ? SelectBoxSelectModeEnum.MultiSelect : SelectBoxSelectModeEnum.SingleSelect;\r\n        this.selectStrategy = getSelectStrategy(this.injector, selectMode);\r\n    }\r\n    setSelectorStrategy() {\r\n        const selectorMode = this.canFilterData\r\n            ? SelectBoxSelectorModeEnum.Filterable\r\n            : SelectBoxSelectorModeEnum.Unfilterable;\r\n        this.selectorStrategy = getSelectorStrategy(this.injector, selectorMode);\r\n    }\r\n    setFilterStrategy() {\r\n        if (this.selectorStrategy.isFilterable() && this.inputStrategy.isOnlyFromData()) {\r\n            const filterMode = this.asyncFilterFn ? 1 /* SelectBoxFilterModeEnum.Async */ : 0 /* SelectBoxFilterModeEnum.Sync */;\r\n            this.filterStrategy = getFilterStrategy(this.injector, filterMode);\r\n        }\r\n    }\r\n    listenInputHasFocus() {\r\n        this.selectBoxService.inputHasFocus$\r\n            .pipe(filter$1((inputHasFocus) => inputHasFocus), takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            this.onTouched?.();\r\n        });\r\n    }\r\n    /**\r\n     * Initializes all required values from SelectBoxService class.\r\n     */\r\n    startSelectBoxService() {\r\n        this.selectBoxService.labelKey = this.labelKey ?? this.selectBoxService.labelKey;\r\n        this.selectBoxService.valueKey = this.valueKey ?? this.selectBoxService.valueKey;\r\n        this.selectBoxService.size = this.size ?? this.selectBoxService.size;\r\n        this.selectBoxService.defaultData = this.defaultData ?? this.selectBoxService.defaultData;\r\n        this.selectBoxService.multiple = this.multiple ?? this.selectBoxService.multiple;\r\n        this.selectBoxService.multiSelectMode = this.multiSelectMode ?? this.selectBoxService.multiSelectMode;\r\n        this.selectBoxService.placeholder = this.placeholder ?? this.selectBoxService.placeholder;\r\n        this.selectBoxService.minFreeInputLength = this.minFreeInputLength ?? this.selectBoxService.minFreeInputLength;\r\n        this.selectBoxService.minFilterLength = this.minFilterLength ?? this.selectBoxService.minFilterLength;\r\n        this.selectBoxService.canFilterData = this.canFilterData ?? this.selectBoxService.canFilterData;\r\n        this.selectBoxService.notFoundText = this.notFoundText ?? this.selectBoxService.notFoundText;\r\n        this.selectBoxService.hasDropdownArrow = this.hasDropdownArrow ?? this.selectBoxService.hasDropdownArrow;\r\n        this.selectBoxService.asyncFilterDebounceTime =\r\n            this.asyncFilterDebounceTime ?? this.selectBoxService.asyncFilterDebounceTime;\r\n        this.selectBoxService.syncFilterFn = this.syncFilterFn ?? this.selectBoxService.syncFilterFn;\r\n        this.selectBoxService.asyncFilterFn = this.asyncFilterFn ?? this.selectBoxService.asyncFilterFn;\r\n        this.selectBoxService.customDataPanelTemplate =\r\n            this.customDataPanelTemplate ?? this.selectBoxService.customDataPanelTemplate;\r\n        this.selectBoxService.customElementClass = this.customElementClass ?? this.selectBoxService.customElementClass;\r\n        this.selectBoxService.formControlName = this.formControlName;\r\n        this.selectBoxService.disabled$ = this.disabled$ ?? this.selectBoxService.disabled$;\r\n        this.selectBoxService.isLoading$ = this.isLoading$ ?? this.selectBoxService.isLoading$;\r\n        this.selectBoxService.selectedValue$ = this.multiple\r\n            ? new BehaviorSubject([])\r\n            : new BehaviorSubject(null);\r\n        this.selectBoxService.inputStrategy = this.inputStrategy;\r\n        this.selectBoxService.filterStrategy = this.filterStrategy;\r\n        this.selectBoxService.selectStrategy = this.selectStrategy;\r\n        this.selectBoxService.selectorStrategy = this.selectorStrategy;\r\n        this.selectBoxService.writeValueStrategy = this.writeValueStrategy;\r\n    }\r\n    /**\r\n     * Starts listen \"selectedValueChange$\" subject changes to emit \"selectedValueChange\" output event and call \"onChanged\" fn\r\n     * to mark the select-box as \"changed\".\r\n     */\r\n    listenSelectedValueChanges() {\r\n        this.selectBoxService.selectedValueChange$.pipe(takeUntil(this.destroy$)).subscribe((value) => {\r\n            const selectedValue = this.getSelectedIDValues(value);\r\n            this.selectedValueChange.emit(selectedValue);\r\n            this.onChanged?.(selectedValue);\r\n        });\r\n    }\r\n    /**\r\n     * Starts listen \"inputValueChange$\" subject changes to emit \"filterChange\" event and mark the select-box as \"dirty\".\r\n     */\r\n    listenInputValueChanges() {\r\n        this.selectBoxService.inputValueChange$\r\n            .pipe(filter$1(() => this.selectorStrategy.isFilterable()), takeUntil(this.destroy$))\r\n            .subscribe((inputValue) => {\r\n            this.filterChange.emit(inputValue);\r\n            this.fakeMarkAsDirty(inputValue);\r\n        });\r\n    }\r\n    /**\r\n     * Starts listen \"tagWasRemoved$\" subject changes to mark the select-box as \"touched\".\r\n     */\r\n    listenTagRemovals() {\r\n        this.selectBoxService.tagWasRemoved$.pipe(takeUntil(this.destroy$)).subscribe(() => {\r\n            this.onTouched?.();\r\n        });\r\n    }\r\n    /**\r\n     * Event to ensure correct application of \"ng-dirty\" css class when user changes input filter value and removes input focus.\r\n     * These classes are only added when the user changes the form value, but the select-box with search has two different values:\r\n     * \"inputValue\" (search) and \"selectedValue\". This ends up confusing angular and it doesn't apply the expected classes.\r\n     */\r\n    fakeMarkAsDirty(inputValue) {\r\n        if (inputValue && this.formControl?.pristine) {\r\n            this.selectBoxService.selectBoxHasFocus$\r\n                .pipe(\r\n            // pipe to get the previous observable value\r\n            pairwise(), \r\n            // this filter indicates that the input had focus but lost it\r\n            filter$1(([prev, curr]) => prev && !curr), take(1))\r\n                .subscribe(() => {\r\n                this.formControl?.markAsDirty?.();\r\n                this.formControl?.updateValueAndValidity?.();\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Returns the ID/key value from selected item(s).\r\n     *\r\n     * @param selectedValue The current selected value(s).\r\n     *\r\n     * @usageNotes\r\n     * e.g.:\r\n     *\r\n     * If selected value is \"{id: '0001', label: 'foo'}\"\r\n     *\r\n     * This function will return '0001'.\r\n     *\r\n     * -OR-\r\n     *\r\n     * If selected values are \"[{id: '0001', label: 'foo'}, {id: '0002', label: 'bar'}]\"\r\n     *\r\n     * This function will return ['0001', '0002'].\r\n     */\r\n    getSelectedIDValues(selectedValue) {\r\n        return selectedValue instanceof Array\r\n            ? selectedValue.map((item) => item[this.selectBoxService.valueKey])\r\n            : selectedValue?.[this.selectBoxService.valueKey];\r\n    }\r\n    /**\r\n     * Validates the values of required inputs to prevent code broken by undefined data problems.\r\n     */\r\n    checkRequiredInputs() {\r\n        this.inputStrategy.checkRequiredInputs();\r\n        this.filterStrategy?.checkRequiredInputs();\r\n        if ([null, undefined].includes(this.selectBoxService.multiple)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"multiple\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.placeholder)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"placeholder\".`);\r\n        }\r\n        if ([null, undefined].includes(this.selectBoxService.customElementClass)) {\r\n            throw new Error(`Could not find a valid value to @Input() property \"customElementClass\".`);\r\n        }\r\n    }\r\n}\r\nSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxComponent, deps: [{ token: SelectBoxService, host: true }, { token: i2$3.I18nService }, { token: i0.Injector }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectBoxComponent, isStandalone: true, selector: \"pri-select-box\", inputs: { labelKey: \"labelKey\", valueKey: \"valueKey\", size: \"size\", multiple: \"multiple\", multiSelectMode: \"multiSelectMode\", placeholder: \"placeholder\", minFreeInputLength: \"minFreeInputLength\", minFilterLength: \"minFilterLength\", canFilterData: \"canFilterData\", notFoundText: \"notFoundText\", asyncFilterDebounceTime: \"asyncFilterDebounceTime\", hasDropdownArrow: \"hasDropdownArrow\", syncFilterFn: \"syncFilterFn\", asyncFilterFn: \"asyncFilterFn\", customDataPanelTemplate: \"customDataPanelTemplate\", customElementClass: \"customElementClass\", selectedValue: \"selectedValue\", defaultData: \"defaultData\", disabled: \"disabled\", isLoading: \"isLoading\" }, outputs: { filterChange: \"filterChange\", selectedValueChange: \"selectedValueChange\" }, host: { listeners: { \"focusin\": \"handleFocusInEvents($event)\", \"focusout\": \"handleFocusOutEvents($event)\" } }, providers: [\r\n        SelectBoxService,\r\n        SelectBoxSingleSelectStrategy,\r\n        SelectBoxMultiSelectStrategy,\r\n        SelectBoxInputFreeStrategy,\r\n        SelectBoxInputOnlyFromDataStrategy,\r\n        SelectBoxFilterSyncStrategy,\r\n        SelectBoxFilterAsyncStrategy,\r\n        SelectBoxSelectorFilterableService,\r\n        SelectBoxSelectorUnfilterableService,\r\n        SelectBoxWriteValueFormStrategy,\r\n        SelectBoxWriteValueManuallyStrategy,\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => SelectBoxComponent),\r\n            multi: true\r\n        }\r\n    ], viewQueries: [{ propertyName: \"mainContainer\", first: true, predicate: [\"mainContainer\"], descendants: true }, { propertyName: \"dropDownMenu\", first: true, predicate: DropDownMenuDirective, descendants: true }], ngImport: i0, template: \"<ng-container *ngIf=\\\"isOnlyFromData$ | async; then selectBoxWithDataPanel; else selectBoxWithoutDataPanel\\\">\\r\\n</ng-container>\\r\\n\\r\\n<!-- SelectBox with data panel -->\\r\\n<ng-template #selectBoxWithDataPanel>\\r\\n\\t<div\\r\\n\\t\\t#mainContainer\\r\\n\\t\\tclass=\\\"select-box-container {{ size }}\\\"\\r\\n\\t\\t[class.disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectBoxContainer\\\"\\r\\n\\t\\tpriDropDownMenu\\r\\n\\t\\tpriDropDownMenuTrigger=\\\"none\\\"\\r\\n\\t\\tpriDropDownMenuCustomClass=\\\"select-box-custom-drop-down-menu\\\"\\r\\n\\t\\t[menuSpacingY]=\\\"2\\\"\\r\\n\\t\\t[customPanelTemplate]=\\\"selectBoxDataPanel\\\"\\r\\n\\t\\t[menuPositionUpdater]=\\\"selectBoxService.inputValueChange$.asObservable()\\\"\\r\\n\\t\\t[priDropDownMenuShow]=\\\"openDataPanel$\\\"\\r\\n\\t\\t[priDropDownMenuHide]=\\\"closeDataPanel$\\\"\\r\\n\\t\\t[maxHeight]=\\\"300\\\"\\r\\n\\t\\t(dropDownMenuHide)=\\\"onHideDataPanel()\\\"\\r\\n\\t\\t(menuPositionYChange)=\\\"updateDataPanelPosition($event)\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"selectBoxSelectBehavior\\\"></ng-container>\\r\\n\\r\\n\\t\\t<ng-template #selectBoxDataPanel>\\r\\n\\t\\t\\t<pri-select-box-data-panel></pri-select-box-data-panel>\\r\\n\\t\\t</ng-template>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<!-- SelectBox without data panel -->\\r\\n<ng-template #selectBoxWithoutDataPanel>\\r\\n\\t<div\\r\\n\\t\\t#mainContainer\\r\\n\\t\\tclass=\\\"select-box-container {{ size }}\\\"\\r\\n\\t\\t[class.disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectBoxContainer\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"selectBoxSelectBehavior\\\"></ng-container>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<!-- SelectBox selector (single-select/multi-select) -->\\r\\n<ng-template #selectBoxSelectBehavior>\\r\\n\\t<div *ngIf=\\\"multiple; then selectBoxMultiSelectBehavior; else selectBoxSingleSelectBehavior\\\"></div>\\r\\n\\r\\n\\t<ng-template #selectBoxMultiSelectBehavior>\\r\\n\\t\\t<pri-select-box-multi-select-behavior *ngIf=\\\"selectBoxService.ready$ | async\\\">\\r\\n\\t\\t</pri-select-box-multi-select-behavior>\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<ng-template #selectBoxSingleSelectBehavior>\\r\\n\\t\\t<pri-select-box-single-select-behavior *ngIf=\\\"selectBoxService.ready$ | async\\\">\\r\\n\\t\\t</pri-select-box-single-select-behavior>\\r\\n\\t</ng-template>\\r\\n</ng-template>\\r\\n\\r\\n\", styles: [\".pri-field-options.select-box-custom-drop-down-menu{background:transparent;border:none;box-shadow:none}.pri-field-options.select-box-custom-drop-down-menu.scrollable{overflow:hidden}pri-select-box{position:relative}pri-select-box.ng-invalid.ng-touched.ng-dirty .select-box-container:not(.disabled):not(.readonly){border-color:var(--error-100)}pri-select-box .select-box-container{width:100%;height:2.5rem;box-sizing:border-box;position:relative;padding:0 .8571428571rem;font-size:1rem;background-color:var(--grey-1);border:.0714285714rem solid var(--grey-5);border-radius:.2857142857rem;transition:border .3s}pri-select-box .select-box-container:hover:not(.disabled):not(.readonly){border-color:var(--grey-6)}pri-select-box .select-box-container.readonly{border-color:var(--grey-3)}pri-select-box .select-box-container.disabled{border-color:var(--grey-5);background-color:var(--grey-3);color:var(--grey-6)}pri-select-box .select-box-container.disabled .select-box-filter-arrow-icon{pointer-events:none}pri-select-box .select-box-container.disabled .select-box-fake-clickable-zone{pointer-events:none}pri-select-box .select-box-container:focus-within{outline:none}pri-select-box .select-box-container:focus-within:not(.disabled):not(.readonly):not(.invalid){border-color:var(--theme-100)!important}pri-select-box .select-box-container.size-small{font-size:.8em;height:1.7142857143rem}pri-select-box .select-box-container.size-small .select-box-selected-item-tag{height:1.4285714286rem}pri-select-box .select-box-container.size-large{font-size:1.2em;height:3.2142857143rem}pri-select-box .select-box-container.size-large .select-box-selected-item-tag{height:2rem}pri-select-box .select-box-container .select-box-filter-container{display:flex;align-items:center;flex-direction:row;gap:.2857142857rem;width:100%;height:100%}\\n\"], dependencies: [{ kind: \"pipe\", type: AsyncPipe, name: \"async\" }, { kind: \"directive\", type: NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"component\", type: SelectBoxSingleSelectBehaviorComponent, selector: \"pri-select-box-single-select-behavior\" }, { kind: \"component\", type: SelectBoxMultiSelectBehaviorComponent, selector: \"pri-select-box-multi-select-behavior\", inputs: [\"size\"] }, { kind: \"component\", type: SelectBoxDataPanelComponent, selector: \"pri-select-box-data-panel\" }, { kind: \"directive\", type: DropDownMenuDirective, selector: \"[priDropDownMenu]\", inputs: [\"priDropDownMenuItems\", \"priDropDownMenuPosition\", \"priDropDownMenuMaxWidth\", \"priDropDownMenuCustomClass\", \"priDropDownMenuTrigger\", \"priDropDownMenuShow\", \"priDropDownMenuHide\", \"maxHeight\", \"menuSpacingY\", \"menuSpacingX\", \"menuPositionUpdater\", \"customPanelTemplate\"], outputs: [\"dropDownMenuShow\", \"dropDownMenuHide\", \"menuPositionYChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectBoxComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-select-box', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [\r\n                        AsyncPipe,\r\n                        NgClass,\r\n                        NgIf,\r\n                        NgTemplateOutlet,\r\n                        SelectBoxSingleSelectBehaviorComponent,\r\n                        SelectBoxMultiSelectBehaviorComponent,\r\n                        SelectBoxDataPanelComponent,\r\n                        DropDownMenuDirective\r\n                    ], providers: [\r\n                        SelectBoxService,\r\n                        SelectBoxSingleSelectStrategy,\r\n                        SelectBoxMultiSelectStrategy,\r\n                        SelectBoxInputFreeStrategy,\r\n                        SelectBoxInputOnlyFromDataStrategy,\r\n                        SelectBoxFilterSyncStrategy,\r\n                        SelectBoxFilterAsyncStrategy,\r\n                        SelectBoxSelectorFilterableService,\r\n                        SelectBoxSelectorUnfilterableService,\r\n                        SelectBoxWriteValueFormStrategy,\r\n                        SelectBoxWriteValueManuallyStrategy,\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => SelectBoxComponent),\r\n                            multi: true\r\n                        }\r\n                    ], template: \"<ng-container *ngIf=\\\"isOnlyFromData$ | async; then selectBoxWithDataPanel; else selectBoxWithoutDataPanel\\\">\\r\\n</ng-container>\\r\\n\\r\\n<!-- SelectBox with data panel -->\\r\\n<ng-template #selectBoxWithDataPanel>\\r\\n\\t<div\\r\\n\\t\\t#mainContainer\\r\\n\\t\\tclass=\\\"select-box-container {{ size }}\\\"\\r\\n\\t\\t[class.disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectBoxContainer\\\"\\r\\n\\t\\tpriDropDownMenu\\r\\n\\t\\tpriDropDownMenuTrigger=\\\"none\\\"\\r\\n\\t\\tpriDropDownMenuCustomClass=\\\"select-box-custom-drop-down-menu\\\"\\r\\n\\t\\t[menuSpacingY]=\\\"2\\\"\\r\\n\\t\\t[customPanelTemplate]=\\\"selectBoxDataPanel\\\"\\r\\n\\t\\t[menuPositionUpdater]=\\\"selectBoxService.inputValueChange$.asObservable()\\\"\\r\\n\\t\\t[priDropDownMenuShow]=\\\"openDataPanel$\\\"\\r\\n\\t\\t[priDropDownMenuHide]=\\\"closeDataPanel$\\\"\\r\\n\\t\\t[maxHeight]=\\\"300\\\"\\r\\n\\t\\t(dropDownMenuHide)=\\\"onHideDataPanel()\\\"\\r\\n\\t\\t(menuPositionYChange)=\\\"updateDataPanelPosition($event)\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"selectBoxSelectBehavior\\\"></ng-container>\\r\\n\\r\\n\\t\\t<ng-template #selectBoxDataPanel>\\r\\n\\t\\t\\t<pri-select-box-data-panel></pri-select-box-data-panel>\\r\\n\\t\\t</ng-template>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<!-- SelectBox without data panel -->\\r\\n<ng-template #selectBoxWithoutDataPanel>\\r\\n\\t<div\\r\\n\\t\\t#mainContainer\\r\\n\\t\\tclass=\\\"select-box-container {{ size }}\\\"\\r\\n\\t\\t[class.disabled]=\\\"selectBoxService.disabled$ | async\\\"\\r\\n\\t\\t[ngClass]=\\\"selectBoxService.customElementClass?.selectBoxContainer\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"selectBoxSelectBehavior\\\"></ng-container>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\\r\\n<!-- SelectBox selector (single-select/multi-select) -->\\r\\n<ng-template #selectBoxSelectBehavior>\\r\\n\\t<div *ngIf=\\\"multiple; then selectBoxMultiSelectBehavior; else selectBoxSingleSelectBehavior\\\"></div>\\r\\n\\r\\n\\t<ng-template #selectBoxMultiSelectBehavior>\\r\\n\\t\\t<pri-select-box-multi-select-behavior *ngIf=\\\"selectBoxService.ready$ | async\\\">\\r\\n\\t\\t</pri-select-box-multi-select-behavior>\\r\\n\\t</ng-template>\\r\\n\\r\\n\\t<ng-template #selectBoxSingleSelectBehavior>\\r\\n\\t\\t<pri-select-box-single-select-behavior *ngIf=\\\"selectBoxService.ready$ | async\\\">\\r\\n\\t\\t</pri-select-box-single-select-behavior>\\r\\n\\t</ng-template>\\r\\n</ng-template>\\r\\n\\r\\n\", styles: [\".pri-field-options.select-box-custom-drop-down-menu{background:transparent;border:none;box-shadow:none}.pri-field-options.select-box-custom-drop-down-menu.scrollable{overflow:hidden}pri-select-box{position:relative}pri-select-box.ng-invalid.ng-touched.ng-dirty .select-box-container:not(.disabled):not(.readonly){border-color:var(--error-100)}pri-select-box .select-box-container{width:100%;height:2.5rem;box-sizing:border-box;position:relative;padding:0 .8571428571rem;font-size:1rem;background-color:var(--grey-1);border:.0714285714rem solid var(--grey-5);border-radius:.2857142857rem;transition:border .3s}pri-select-box .select-box-container:hover:not(.disabled):not(.readonly){border-color:var(--grey-6)}pri-select-box .select-box-container.readonly{border-color:var(--grey-3)}pri-select-box .select-box-container.disabled{border-color:var(--grey-5);background-color:var(--grey-3);color:var(--grey-6)}pri-select-box .select-box-container.disabled .select-box-filter-arrow-icon{pointer-events:none}pri-select-box .select-box-container.disabled .select-box-fake-clickable-zone{pointer-events:none}pri-select-box .select-box-container:focus-within{outline:none}pri-select-box .select-box-container:focus-within:not(.disabled):not(.readonly):not(.invalid){border-color:var(--theme-100)!important}pri-select-box .select-box-container.size-small{font-size:.8em;height:1.7142857143rem}pri-select-box .select-box-container.size-small .select-box-selected-item-tag{height:1.4285714286rem}pri-select-box .select-box-container.size-large{font-size:1.2em;height:3.2142857143rem}pri-select-box .select-box-container.size-large .select-box-selected-item-tag{height:2rem}pri-select-box .select-box-container .select-box-filter-container{display:flex;align-items:center;flex-direction:row;gap:.2857142857rem;width:100%;height:100%}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SelectBoxService, decorators: [{\r\n                    type: Host\r\n                }] }, { type: i2$3.I18nService }, { type: i0.Injector }, { type: i0.NgZone }]; }, propDecorators: { mainContainer: [{\r\n                type: ViewChild,\r\n                args: ['mainContainer', { static: false }]\r\n            }], dropDownMenu: [{\r\n                type: ViewChild,\r\n                args: [DropDownMenuDirective, { static: false }]\r\n            }], labelKey: [{\r\n                type: Input\r\n            }], valueKey: [{\r\n                type: Input\r\n            }], size: [{\r\n                type: Input\r\n            }], multiple: [{\r\n                type: Input\r\n            }], multiSelectMode: [{\r\n                type: Input\r\n            }], placeholder: [{\r\n                type: Input\r\n            }], minFreeInputLength: [{\r\n                type: Input\r\n            }], minFilterLength: [{\r\n                type: Input\r\n            }], canFilterData: [{\r\n                type: Input\r\n            }], notFoundText: [{\r\n                type: Input\r\n            }], asyncFilterDebounceTime: [{\r\n                type: Input\r\n            }], hasDropdownArrow: [{\r\n                type: Input\r\n            }], syncFilterFn: [{\r\n                type: Input\r\n            }], asyncFilterFn: [{\r\n                type: Input\r\n            }], customDataPanelTemplate: [{\r\n                type: Input\r\n            }], customElementClass: [{\r\n                type: Input\r\n            }], selectedValue: [{\r\n                type: Input\r\n            }], defaultData: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], isLoading: [{\r\n                type: Input\r\n            }], filterChange: [{\r\n                type: Output\r\n            }], selectedValueChange: [{\r\n                type: Output\r\n            }], handleFocusInEvents: [{\r\n                type: HostListener,\r\n                args: ['focusin', ['$event']]\r\n            }], handleFocusOutEvents: [{\r\n                type: HostListener,\r\n                args: ['focusout', ['$event']]\r\n            }] } });\n\nclass PriSliderToggleComponent {\r\n    constructor() {\r\n        this.disabled = false;\r\n        this.valueChange = new EventEmitter();\r\n    }\r\n}\r\nPriSliderToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriSliderToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriSliderToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriSliderToggleComponent, selector: \"pri-slider-toggle\", inputs: { value: \"value\", label: \"label\", disabled: \"disabled\" }, outputs: { valueChange: \"valueChange\" }, ngImport: i0, template: \"<mat-slide-toggle (change)=\\\"valueChange.emit($event)\\\" [checked]=\\\"value\\\" [disabled]=\\\"disabled\\\">\\r\\n{{ label }}\\r\\n</mat-slide-toggle>\\r\\n\", styles: [\"pri-slider-toggle .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:var(--theme-40)}pri-slider-toggle .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:var(--theme-100);opacity:1}pri-slider-toggle .mat-slide-toggle-content{font-weight:300;color:var(--grey-8)}\\n\"], dependencies: [{ kind: \"component\", type: i1$7.MatSlideToggle, selector: \"mat-slide-toggle\", inputs: [\"disabled\", \"disableRipple\", \"color\", \"tabIndex\"], exportAs: [\"matSlideToggle\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriSliderToggleComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-slider-toggle', encapsulation: ViewEncapsulation.None, template: \"<mat-slide-toggle (change)=\\\"valueChange.emit($event)\\\" [checked]=\\\"value\\\" [disabled]=\\\"disabled\\\">\\r\\n{{ label }}\\r\\n</mat-slide-toggle>\\r\\n\", styles: [\"pri-slider-toggle .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:var(--theme-40)}pri-slider-toggle .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:var(--theme-100);opacity:1}pri-slider-toggle .mat-slide-toggle-content{font-weight:300;color:var(--grey-8)}\\n\"] }]\r\n        }], propDecorators: { value: [{\r\n                type: Input\r\n            }], label: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass PriSliderComponent {\r\n    constructor() {\r\n        this.autoTicks = false;\r\n        this.disabled = false;\r\n        this.invert = false;\r\n        this.max = 100;\r\n        this.min = 0;\r\n        this.step = 1;\r\n        this.showTicks = false;\r\n        this.thumbLabel = true;\r\n        this.vertical = false;\r\n        this.percentage = false;\r\n        this.valueChange = new EventEmitter();\r\n        this.minValueVisible = true;\r\n        this.maxValueVisible = true;\r\n        this.formatLabel = () => {\r\n            const self = this;\r\n            return (value) => {\r\n                if (self.percentage) {\r\n                    return Math.round(self.slider.percent * 100) + '%';\r\n                }\r\n                return value;\r\n            };\r\n        };\r\n    }\r\n    valueChanged(sliderChange) {\r\n        if (sliderChange.source.percent < 0.15) {\r\n            this.minValueVisible = false;\r\n        }\r\n        else {\r\n            this.minValueVisible = true;\r\n        }\r\n        if (sliderChange.source.percent > 0.85) {\r\n            this.maxValueVisible = false;\r\n        }\r\n        else {\r\n            this.maxValueVisible = true;\r\n        }\r\n        this.value = sliderChange.value;\r\n        this.valueChange.emit(this.value);\r\n    }\r\n}\r\nPriSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriSliderComponent, selector: \"pri-slider\", inputs: { autoTicks: \"autoTicks\", disabled: \"disabled\", invert: \"invert\", max: \"max\", min: \"min\", step: \"step\", showTicks: \"showTicks\", thumbLabel: \"thumbLabel\", vertical: \"vertical\", value: \"value\", percentage: \"percentage\" }, outputs: { valueChange: \"valueChange\" }, viewQueries: [{ propertyName: \"slider\", first: true, predicate: [\"slider\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"pri-slider-labels\\\">\\r\\n  <div>\\r\\n    <span *ngIf=\\\"minValueVisible && !percentage\\\" class=\\\"slider-min\\\">{{slider.min}}</span>\\r\\n    <span *ngIf=\\\"minValueVisible && percentage\\\" class=\\\"slider-min\\\">0%</span>\\r\\n  </div>\\r\\n  <div>\\r\\n    <span *ngIf=\\\"maxValueVisible && !percentage\\\" class=\\\"slider-max\\\">{{slider.max}}</span>\\r\\n    <span *ngIf=\\\"maxValueVisible && percentage\\\" class=\\\"slider-max\\\">100%</span>\\r\\n  </div>\\r\\n</div>\\r\\n\\r\\n<mat-slider #slider (change)=\\\"valueChanged($event)\\\" (input)=\\\"valueChanged($event)\\\" [disabled]=\\\"disabled\\\"\\r\\n  [invert]=\\\"invert\\\" [max]=\\\"max\\\" [min]=\\\"min\\\" [step]=\\\"step\\\" [thumbLabel]=\\\"thumbLabel\\\" [(ngModel)]=\\\"value\\\" [displayWith]=\\\"formatLabel()\\\">\\r\\n</mat-slider>\", styles: [\"pri-slider{display:flex;width:100%;flex-direction:column;margin:5px 0}pri-slider .pri-slider-labels{width:100%;display:flex;justify-content:space-between;color:var(--grey-7)}pri-slider .mat-slider{padding:0;height:20px}pri-slider .mat-slider-horizontal .mat-slider-wrapper{left:0;right:0;top:8px;height:2px}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper{height:2px}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-background{height:2px;background-color:var(--grey-6)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-fill{height:2px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb{right:-14px;bottom:-14px;width:28px;height:28px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb-label{right:-14px;top:-36px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb-label .mat-slider-thumb-label-text{color:#fff}pri-slider mat-slider.mat-slider-disabled .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-fill,pri-slider mat-slider.mat-slider-disabled .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb{background-color:var(--grey-6)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$3.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i1$3.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"component\", type: i3$3.MatSlider, selector: \"mat-slider\", inputs: [\"disabled\", \"color\", \"tabIndex\", \"invert\", \"max\", \"min\", \"step\", \"thumbLabel\", \"tickInterval\", \"value\", \"displayWith\", \"valueText\", \"vertical\"], outputs: [\"change\", \"input\", \"valueChange\"], exportAs: [\"matSlider\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriSliderComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-slider', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-slider-labels\\\">\\r\\n  <div>\\r\\n    <span *ngIf=\\\"minValueVisible && !percentage\\\" class=\\\"slider-min\\\">{{slider.min}}</span>\\r\\n    <span *ngIf=\\\"minValueVisible && percentage\\\" class=\\\"slider-min\\\">0%</span>\\r\\n  </div>\\r\\n  <div>\\r\\n    <span *ngIf=\\\"maxValueVisible && !percentage\\\" class=\\\"slider-max\\\">{{slider.max}}</span>\\r\\n    <span *ngIf=\\\"maxValueVisible && percentage\\\" class=\\\"slider-max\\\">100%</span>\\r\\n  </div>\\r\\n</div>\\r\\n\\r\\n<mat-slider #slider (change)=\\\"valueChanged($event)\\\" (input)=\\\"valueChanged($event)\\\" [disabled]=\\\"disabled\\\"\\r\\n  [invert]=\\\"invert\\\" [max]=\\\"max\\\" [min]=\\\"min\\\" [step]=\\\"step\\\" [thumbLabel]=\\\"thumbLabel\\\" [(ngModel)]=\\\"value\\\" [displayWith]=\\\"formatLabel()\\\">\\r\\n</mat-slider>\", styles: [\"pri-slider{display:flex;width:100%;flex-direction:column;margin:5px 0}pri-slider .pri-slider-labels{width:100%;display:flex;justify-content:space-between;color:var(--grey-7)}pri-slider .mat-slider{padding:0;height:20px}pri-slider .mat-slider-horizontal .mat-slider-wrapper{left:0;right:0;top:8px;height:2px}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper{height:2px}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-background{height:2px;background-color:var(--grey-6)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-fill{height:2px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb{right:-14px;bottom:-14px;width:28px;height:28px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb-label{right:-14px;top:-36px;background-color:var(--theme-100)}pri-slider .mat-slider-horizontal .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb-label .mat-slider-thumb-label-text{color:#fff}pri-slider mat-slider.mat-slider-disabled .mat-slider-wrapper .mat-slider-track-wrapper .mat-slider-track-fill,pri-slider mat-slider.mat-slider-disabled .mat-slider-wrapper .mat-slider-thumb-container .mat-slider-thumb{background-color:var(--grey-6)}\\n\"] }]\r\n        }], propDecorators: { slider: [{\r\n                type: ViewChild,\r\n                args: ['slider', { static: true }]\r\n            }], autoTicks: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], invert: [{\r\n                type: Input\r\n            }], max: [{\r\n                type: Input\r\n            }], min: [{\r\n                type: Input\r\n            }], step: [{\r\n                type: Input\r\n            }], showTicks: [{\r\n                type: Input\r\n            }], thumbLabel: [{\r\n                type: Input\r\n            }], vertical: [{\r\n                type: Input\r\n            }], value: [{\r\n                type: Input\r\n            }], percentage: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Button component responsible to standardize the usage of buttons in terms of styling and usability\r\n */\r\nclass FormButtonComponent {\r\n    constructor() {\r\n        /**\r\n         * Sets if the button is enable or disable.\r\n         * If disable, the buttons style will change\r\n         * and the onClick event will not be emitted\r\n         */\r\n        this.isEnable = true;\r\n        /**\r\n         * Defines the loading state of the button.\r\n         * The button style will change accordantly\r\n         */\r\n        this.loadingState = LoadingStateEnum.None;\r\n        /**\r\n         * Defines the loading size in pixels\r\n         * By default value is 30\r\n         */\r\n        this.loaderSize = 30;\r\n        /**\r\n         * Event emitted each time click is made by the user\r\n         */\r\n        this.formClick = new EventEmitter();\r\n        /**\r\n         * Internal button style value\r\n         */\r\n        this._style = new FormButtonStyle();\r\n        /**\r\n         * Defines if the style was settle internally or by a consumer component\r\n         */\r\n        this.textSettledByParent = false;\r\n        /**\r\n         * Defines if the icon was settle internally or by a consumer component\r\n         */\r\n        this.iconSettledByParent = false;\r\n        /**\r\n         * Defines if the style was settle internally or by a consumer component\r\n         */\r\n        this.styleSettledByParent = false;\r\n        this.type = FormButtonType.Primary;\r\n    }\r\n    /**\r\n     * Defines the button style.\r\n     * If not defined, for each button type,\r\n     * a default style will be shown\r\n     */\r\n    set style(buttonStyle) {\r\n        this._style = buttonStyle;\r\n        if (!this._style) {\r\n            this.styleSettledByParent = false;\r\n        }\r\n        else {\r\n            this.styleSettledByParent = true;\r\n        }\r\n    }\r\n    /**\r\n     * Defines the button type.\r\n     * Each button type has their own default style and/or text value,\r\n     * which can be changed by the style property of this component\r\n     */\r\n    set type(buttonType) {\r\n        this._type = buttonType;\r\n        if (!this.textSettledByParent) {\r\n            switch (this.type) {\r\n                case FormButtonType.Primary:\r\n                    this.setDefaultButtonStyle();\r\n                    break;\r\n                case FormButtonType.Secondary:\r\n                    this.setDefaultButtonStyle();\r\n                    break;\r\n                case FormButtonType.Danger:\r\n                    this.setDefaultButtonStyle();\r\n                    break;\r\n            }\r\n        }\r\n        if (!this.iconSettledByParent) {\r\n            switch (this.type) {\r\n                case FormButtonType.NextIcon:\r\n                    this._icon = 'ti-ux-chevron-right';\r\n                    this.setDefaultIconStyle();\r\n                    break;\r\n                case FormButtonType.BackIcon:\r\n                    this._icon = 'ti-ux-chevron-left';\r\n                    this.setDefaultIconStyle();\r\n                    break;\r\n                case FormButtonType.RemoveIcon:\r\n                    this._icon = 'ti-ux-close';\r\n                    this.setDefaultIconStyle();\r\n                    break;\r\n                default:\r\n                    this._icon = undefined;\r\n            }\r\n        }\r\n    }\r\n    get type() {\r\n        return this._type;\r\n    }\r\n    /**\r\n     * Defines the text shown by the button\r\n     */\r\n    set text(text) {\r\n        this._text = `components.components.${text}`;\r\n        if (!this._text) {\r\n            this.type = this._type;\r\n        }\r\n        else {\r\n            this.textSettledByParent = true;\r\n        }\r\n    }\r\n    get text() {\r\n        return this._text || '';\r\n    }\r\n    /**\r\n     * Defines the button icon.\r\n     * The icon should be provided by its class name\r\n     */\r\n    set icon(icon) {\r\n        this._icon = icon;\r\n        if (!icon) {\r\n            this.icon = this._icon;\r\n        }\r\n        else {\r\n            this.iconSettledByParent = true;\r\n        }\r\n    }\r\n    get icon() {\r\n        return this._icon || '';\r\n    }\r\n    /** Loading state enum definition */\r\n    get loadingStateEnum() { return LoadingStateEnum; }\r\n    /** Form button enum definition */\r\n    get formButtonType() { return FormButtonType; }\r\n    /**\r\n     * Handles the button internal click\r\n     */\r\n    click() {\r\n        this.formClick.emit();\r\n    }\r\n    /**\r\n     * Gets a group of css classes which will be used to\r\n     * style the button\r\n     *\r\n     * @returns group of classes in a string format, separated with spaces\r\n     */\r\n    getStyleClass() {\r\n        let borderClass = '';\r\n        let buttonClass = '';\r\n        let fontSizeClass = '';\r\n        let sizeClass = '';\r\n        let marginClass = '';\r\n        switch (this._style.border) {\r\n            case 3 /* FormButtonBorderStyle.Circular */:\r\n                borderClass = 'circular';\r\n                break;\r\n            case 2 /* FormButtonBorderStyle.Curved */:\r\n                borderClass = 'curved';\r\n                break;\r\n            case 0 /* FormButtonBorderStyle.Retro */:\r\n                borderClass = 'retro';\r\n                break;\r\n            case 1 /* FormButtonBorderStyle.SmallCurved */:\r\n                borderClass = 'small-curved';\r\n                break;\r\n        }\r\n        switch (this._style.margins) {\r\n            case 0 /* FormButtonMarginsStyle.None */: marginClass = 'margins-none';\r\n        }\r\n        switch (this._type) {\r\n            case FormButtonType.Action:\r\n                buttonClass = 'action';\r\n                break;\r\n            case FormButtonType.Primary:\r\n                buttonClass = 'primary';\r\n                break;\r\n            case FormButtonType.Secondary:\r\n                buttonClass = 'secondary';\r\n                break;\r\n            case FormButtonType.Danger:\r\n            case FormButtonType.RemoveIcon:\r\n                buttonClass = 'danger';\r\n                break;\r\n        }\r\n        if (this._style && this._style.fontSize === 0 /* FormButtonFontSize.Small */) {\r\n            fontSizeClass = 'small';\r\n        }\r\n        if (this._style && this._style.size === 1 /* FormButtonSize.FillParent */) {\r\n            sizeClass = 'fill-parent';\r\n        }\r\n        return `${borderClass} ${buttonClass} ${fontSizeClass} ${sizeClass} ${marginClass}`;\r\n    }\r\n    /**\r\n     * Sets the default icon style\r\n     */\r\n    setDefaultIconStyle() {\r\n        if (!this.styleSettledByParent) {\r\n            this._style.border = 3 /* FormButtonBorderStyle.Circular */;\r\n            this._style.size = 1 /* FormButtonSize.FillParent */;\r\n        }\r\n    }\r\n    /**\r\n     * Sets the default button style\r\n     */\r\n    setDefaultButtonStyle() {\r\n        if (!this.styleSettledByParent) {\r\n            this._style.border = 2 /* FormButtonBorderStyle.Curved */;\r\n        }\r\n    }\r\n}\r\nFormButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nFormButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: FormButtonComponent, selector: \"pri-form-button\", inputs: { isEnable: \"isEnable\", style: \"style\", type: \"type\", text: \"text\", icon: \"icon\", loadingState: \"loadingState\", loaderSize: \"loaderSize\", height: \"height\", width: \"width\" }, outputs: { formClick: \"formClick\" }, ngImport: i0, template: \"<div [ngClass]=\\\"{'pri-btn-primary': type === formButtonType.Primary, 'pri-btn-icon': type === formButtonType.BackIcon }\\\"\\r\\n    [attr.disabled]=\\\"!isEnable?'true':null\\\"\\r\\n        (click)=\\\"isEnable && click()\\\" [style.height.px]=\\\"height\\\" [style.width.px]=\\\"width\\\">\\r\\n    <div class=\\\"text\\\" [style.fontSize]=\\\"30\\\" *ngIf=\\\"loadingState === loadingStateEnum.None && text\\\" >{{text | priI18n }}</div>\\r\\n    <div class=\\\"icon\\\" [style.fontSize]=\\\"10\\\" *ngIf=\\\"loadingState === loadingStateEnum.None && icon\\\" [ngClass]=\\\"[icon]\\\"></div>\\r\\n    <div class=\\\"loader-wrapper\\\" *ngIf=\\\"loadingState === loadingStateEnum.Loading\\\">\\r\\n        <pri-loader [size]=\\\"loaderSize\\\"></pri-loader>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-form-button{height:100%;display:flex;align-items:center;justify-content:center;flex-shrink:0}pri-form-button .form-button{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease background-color,.2s ease box-shadow;font-size:16px}pri-form-button .form-button.fill-parent{height:100%;width:100%}pri-form-button .form-button .text{color:#fff;-webkit-user-select:none;user-select:none;padding:10px 23px 9px;white-space:nowrap}pri-form-button .form-button.margins-none .text{padding:0}pri-form-button .form-button:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-form-button .form-button.primary{background-color:var(--theme-100)}pri-form-button .form-button.primary:hover{background-color:var(--theme-highlight)}pri-form-button .form-button.primary.disable{background-color:var(--theme-10)}pri-form-button .form-button.primary.disable .text{color:var(--grey-6)}pri-form-button .form-button.small{width:100%;height:100%;font-size:12px;padding:0}pri-form-button .form-button.secondary{background-color:transparent}pri-form-button .form-button.secondary .text{color:var(--info-100);font-weight:600}pri-form-button .form-button.secondary:hover{box-shadow:none}pri-form-button .form-button.secondary:hover .text{color:var(--info-100);text-decoration:underline}pri-form-button .form-button.secondary.disable .text{color:var(--grey-6)}pri-form-button .form-button.secondary.disable:hover .text{color:var(--grey-6);text-decoration:none}pri-form-button .form-button.action{background-color:var(--theme-100)}pri-form-button .form-button.action .text{color:#fff}pri-form-button .form-button.action:hover{box-shadow:none;background-color:var(--theme-highlight)}pri-form-button .form-button.action.disable .text{color:var(--grey-6)}pri-form-button .form-button.danger{background-color:var(--error-100)}pri-form-button .form-button.fill{background-color:var(--theme-100)}pri-form-button .form-button.circular{border-radius:100%}pri-form-button .form-button.curved{border-radius:30px}pri-form-button .form-button.small-curved{border-radius:2px}pri-form-button .form-button.small-curved:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-form-button .form-button.retro{border-radius:0}pri-form-button .form-button.icon-mode{display:flex;align-items:center;justify-content:center;font-size:12px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);border:1px solid var(--grey-4)}pri-form-button .form-button.icon-mode:hover{box-shadow:0 .2142857143rem 1.4285714286rem var(--shadow-2)}pri-form-button .form-button.icon-mode .icon{color:var(--grey-7)}pri-form-button .form-button.disable{background-color:var(--theme-10);cursor:default;box-shadow:none!important}pri-form-button .form-button.disable.secondary{background-color:transparent}pri-form-button .form-button.disable .text{color:var(--theme-20)}pri-form-button .form-button.loading{background-color:transparent;box-shadow:none}pri-form-button .form-button.loading:hover{background-color:transparent;cursor:default}pri-form-button .pri-btn-primary{display:flex;align-items:center;justify-content:center;cursor:pointer}pri-form-button .pri-btn-icon{display:flex!important;align-items:center;justify-content:center;cursor:pointer}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: LoaderComponent, selector: \"pri-loader\", inputs: [\"state\", \"message\", \"size\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormButtonComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-form-button', encapsulation: ViewEncapsulation.None, template: \"<div [ngClass]=\\\"{'pri-btn-primary': type === formButtonType.Primary, 'pri-btn-icon': type === formButtonType.BackIcon }\\\"\\r\\n    [attr.disabled]=\\\"!isEnable?'true':null\\\"\\r\\n        (click)=\\\"isEnable && click()\\\" [style.height.px]=\\\"height\\\" [style.width.px]=\\\"width\\\">\\r\\n    <div class=\\\"text\\\" [style.fontSize]=\\\"30\\\" *ngIf=\\\"loadingState === loadingStateEnum.None && text\\\" >{{text | priI18n }}</div>\\r\\n    <div class=\\\"icon\\\" [style.fontSize]=\\\"10\\\" *ngIf=\\\"loadingState === loadingStateEnum.None && icon\\\" [ngClass]=\\\"[icon]\\\"></div>\\r\\n    <div class=\\\"loader-wrapper\\\" *ngIf=\\\"loadingState === loadingStateEnum.Loading\\\">\\r\\n        <pri-loader [size]=\\\"loaderSize\\\"></pri-loader>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-form-button{height:100%;display:flex;align-items:center;justify-content:center;flex-shrink:0}pri-form-button .form-button{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease background-color,.2s ease box-shadow;font-size:16px}pri-form-button .form-button.fill-parent{height:100%;width:100%}pri-form-button .form-button .text{color:#fff;-webkit-user-select:none;user-select:none;padding:10px 23px 9px;white-space:nowrap}pri-form-button .form-button.margins-none .text{padding:0}pri-form-button .form-button:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-form-button .form-button.primary{background-color:var(--theme-100)}pri-form-button .form-button.primary:hover{background-color:var(--theme-highlight)}pri-form-button .form-button.primary.disable{background-color:var(--theme-10)}pri-form-button .form-button.primary.disable .text{color:var(--grey-6)}pri-form-button .form-button.small{width:100%;height:100%;font-size:12px;padding:0}pri-form-button .form-button.secondary{background-color:transparent}pri-form-button .form-button.secondary .text{color:var(--info-100);font-weight:600}pri-form-button .form-button.secondary:hover{box-shadow:none}pri-form-button .form-button.secondary:hover .text{color:var(--info-100);text-decoration:underline}pri-form-button .form-button.secondary.disable .text{color:var(--grey-6)}pri-form-button .form-button.secondary.disable:hover .text{color:var(--grey-6);text-decoration:none}pri-form-button .form-button.action{background-color:var(--theme-100)}pri-form-button .form-button.action .text{color:#fff}pri-form-button .form-button.action:hover{box-shadow:none;background-color:var(--theme-highlight)}pri-form-button .form-button.action.disable .text{color:var(--grey-6)}pri-form-button .form-button.danger{background-color:var(--error-100)}pri-form-button .form-button.fill{background-color:var(--theme-100)}pri-form-button .form-button.circular{border-radius:100%}pri-form-button .form-button.curved{border-radius:30px}pri-form-button .form-button.small-curved{border-radius:2px}pri-form-button .form-button.small-curved:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-form-button .form-button.retro{border-radius:0}pri-form-button .form-button.icon-mode{display:flex;align-items:center;justify-content:center;font-size:12px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);border:1px solid var(--grey-4)}pri-form-button .form-button.icon-mode:hover{box-shadow:0 .2142857143rem 1.4285714286rem var(--shadow-2)}pri-form-button .form-button.icon-mode .icon{color:var(--grey-7)}pri-form-button .form-button.disable{background-color:var(--theme-10);cursor:default;box-shadow:none!important}pri-form-button .form-button.disable.secondary{background-color:transparent}pri-form-button .form-button.disable .text{color:var(--theme-20)}pri-form-button .form-button.loading{background-color:transparent;box-shadow:none}pri-form-button .form-button.loading:hover{background-color:transparent;cursor:default}pri-form-button .pri-btn-primary{display:flex;align-items:center;justify-content:center;cursor:pointer}pri-form-button .pri-btn-icon{display:flex!important;align-items:center;justify-content:center;cursor:pointer}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { isEnable: [{\r\n                type: Input\r\n            }], style: [{\r\n                type: Input\r\n            }], type: [{\r\n                type: Input\r\n            }], text: [{\r\n                type: Input\r\n            }], icon: [{\r\n                type: Input\r\n            }], loadingState: [{\r\n                type: Input\r\n            }], loaderSize: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }], width: [{\r\n                type: Input\r\n            }], formClick: [{\r\n                type: Output\r\n            }] } });\n\nclass StepperComponent {\r\n    constructor(changeDetectorRef) {\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.stepChange = new EventEmitter();\r\n        this.stepScroll = new EventEmitter();\r\n        this.currentStep = 0;\r\n        this.loadingState = LoadingStateEnum.None;\r\n        this.nextDisabled = false;\r\n        this.nextButtonStyle = { border: 2 /* FormButtonBorderStyle.Curved */, size: 0 /* FormButtonSize.Auto */ };\r\n        this.tooltipPlacement = 'left';\r\n    }\r\n    get wrapperMargins() {\r\n        if (this.steps && this.steps[this.currentStep]) {\r\n            const margins = this.steps[this.currentStep].margins;\r\n            const top = (margins && margins.marginTop) || 0;\r\n            const left = (margins && margins.marginLeft) || 0;\r\n            const bottom = (margins && margins.marginBottom) || 0;\r\n            const right = (margins && margins.marginRight) || 0;\r\n            return {\r\n                'margin-top': `${top}px`,\r\n                'margin-left': `${left}px`,\r\n                'margin-right': `${right}px`,\r\n                'margin-bottom': `${bottom}px`,\r\n                width: `calc(100% - ${left + right}px)`,\r\n                height: `calc(100% - ${top + bottom}px)`\r\n            };\r\n        }\r\n        else {\r\n            return null;\r\n        }\r\n    }\r\n    get maxScrollBottom() {\r\n        if (typeof this._maxScrollBottom === 'undefined') {\r\n            return this.scroll;\r\n        }\r\n        else {\r\n            return this._maxScrollBottom;\r\n        }\r\n    }\r\n    set maxScrollBottom(value) {\r\n        this._maxScrollBottom = value;\r\n    }\r\n    get marginLeft() {\r\n        if (this.steps[this.currentStep].buttonsMargin &&\r\n            this.steps[this.currentStep].buttonsMargin.marginLeft != null) {\r\n            return this.steps[this.currentStep].buttonsMargin.marginLeft;\r\n        }\r\n        return 0;\r\n    }\r\n    get marginRight() {\r\n        if (this.steps[this.currentStep].buttonsMargin &&\r\n            this.steps[this.currentStep].buttonsMargin.marginRight != null) {\r\n            return this.steps[this.currentStep].buttonsMargin.marginRight;\r\n        }\r\n        return 0;\r\n    }\r\n    get marginTop() {\r\n        if (this.steps[this.currentStep].buttonsMargin &&\r\n            this.steps[this.currentStep].buttonsMargin.marginTop != null) {\r\n            return this.steps[this.currentStep].buttonsMargin.marginTop;\r\n        }\r\n        return 20;\r\n    }\r\n    get marginBottom() {\r\n        if (this.steps[this.currentStep].buttonsMargin &&\r\n            this.steps[this.currentStep].buttonsMargin.marginBottom != null) {\r\n            return this.steps[this.currentStep].buttonsMargin.marginBottom;\r\n        }\r\n        return 0;\r\n    }\r\n    get scroll() {\r\n        return this.stepperComponent && this.stepperComponent.scroll ? true : false;\r\n    }\r\n    get headerBottomMargin() {\r\n        if (this.steps[this.currentStep].margins && this.steps[this.currentStep].margins.headerBottomMargin) {\r\n            return this.steps[this.currentStep].margins.headerBottomMargin;\r\n        }\r\n        // default header bottom margin is 44px;\r\n        return this.steps[this.currentStep].margins && this.steps[this.currentStep].margins.headerBottomMargin\r\n            ? this.steps[this.currentStep].margins.headerBottomMargin\r\n            : 44;\r\n    }\r\n    get loadingStateEnum() {\r\n        return LoadingStateEnum;\r\n    }\r\n    get buttonType() {\r\n        return FormButtonType;\r\n    }\r\n    onWindowResize() {\r\n        const isMobile = /Android|iPhone/i.test(window.navigator.userAgent);\r\n        // when the keyboard is launched, the window will resize\r\n        if (isMobile) {\r\n            this.tooltipPlacement = 'right';\r\n        }\r\n        else {\r\n            this.tooltipPlacement = 'left';\r\n        }\r\n    }\r\n    ngAfterViewInit() {\r\n        if (this.stepperComponent &&\r\n            this.stepperComponent.currentStepIndex != null &&\r\n            this.stepperComponent.totalNumberOfSteps != null) {\r\n            this.stepperComponent.currentStepIndex = this.currentStep;\r\n            this.stepperComponent.totalNumberOfSteps = this.steps.length;\r\n        }\r\n        this.changeDetectorRef.detectChanges();\r\n        this.createComponent(this.currentStep);\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.scrollSubscription) {\r\n            this.scrollSubscription.unsubscribe();\r\n        }\r\n    }\r\n    next() {\r\n        if (this.stepperComponent.isReady) {\r\n            if (this.stepperComponent.stepperActions && this.stepperComponent.stepperActions.next) {\r\n                this.loadingState = LoadingStateEnum.Loading;\r\n                this.changeDetectorRef.detectChanges();\r\n                this.stepperComponent.stepperActions.next().then((status) => {\r\n                    if (status) {\r\n                        this.goToNextStep();\r\n                    }\r\n                    this.loadingState = LoadingStateEnum.None;\r\n                });\r\n            }\r\n            else {\r\n                this.goToNextStep();\r\n            }\r\n        }\r\n    }\r\n    back() {\r\n        if (this.stepperComponent.stepperActions && this.stepperComponent.stepperActions.back) {\r\n            this.stepperComponent.stepperActions.back().then((status) => {\r\n                if (status) {\r\n                    this.goToBackStep();\r\n                }\r\n            });\r\n        }\r\n        else {\r\n            this.goToBackStep();\r\n        }\r\n    }\r\n    cancel() {\r\n        if (this.stepperComponent.stepperActions && this.stepperComponent.stepperActions.cancel) {\r\n            this.stepperComponent.stepperActions.cancel();\r\n        }\r\n    }\r\n    onContentScroll(event) {\r\n        this.stepScroll.emit(event.srcElement.scrollTop);\r\n        this.maxScrollBottom =\r\n            event.srcElement.scrollHeight - event.srcElement.clientHeight > event.srcElement.scrollTop + 5;\r\n    }\r\n    createComponent(position) {\r\n        if (this.steps && this.steps.length > 0 && position < this.steps.length && position > -1) {\r\n            if (this.scrollSubscription) {\r\n                this.scrollSubscription.unsubscribe();\r\n            }\r\n            this.dynamicComponent.clear();\r\n            this.stepperComponent = this.dynamicComponent.createComponent(this.steps[position].component).instance;\r\n            if (this.steps[position].inputData) {\r\n                for (const step of this.steps[position].inputData) {\r\n                    this.stepperComponent[step.propertyName] = step.value;\r\n                }\r\n            }\r\n            this.stepperComponent.currentStepIndex = this.currentStep;\r\n            this.stepperComponent.totalNumberOfSteps = this.steps.length;\r\n            if (!this.steps[position].navigationButtons.next || !this.steps[position].navigationButtons.next.visible) {\r\n                const subscription = this.stepperComponent.onNext().subscribe(() => {\r\n                    this.next();\r\n                    subscription.unsubscribe();\r\n                });\r\n            }\r\n            this.scrollSubscription = this.stepperComponent\r\n                .onScroll()\r\n                .subscribe((value) => this.stepScroll.emit(value));\r\n        }\r\n    }\r\n    goToNextStep() {\r\n        this.currentStep++;\r\n        if (this.currentStep < this.steps.length) {\r\n            this.createComponent(this.currentStep);\r\n            this.stepChange.emit(this.currentStep);\r\n        }\r\n        else {\r\n            this.currentStep = this.steps.length - 1;\r\n        }\r\n    }\r\n    goToBackStep() {\r\n        this.currentStep--;\r\n        if (this.currentStep > -1) {\r\n            this.createComponent(this.currentStep);\r\n            this.stepChange.emit(this.currentStep);\r\n        }\r\n        else {\r\n            this.currentStep = 0;\r\n        }\r\n    }\r\n}\r\nStepperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StepperComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nStepperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: StepperComponent, selector: \"pri-stepper\", inputs: { steps: \"steps\", currentStep: \"currentStep\" }, outputs: { stepChange: \"stepChange\", stepScroll: \"stepScroll\" }, host: { listeners: { \"window:resize\": \"onWindowResize()\" } }, viewQueries: [{ propertyName: \"dynamicComponent\", first: true, predicate: [\"dynamicComponent\"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: \"<div class=\\\"stepper-wrapper\\\" *ngIf=\\\"steps\\\" [ngStyle]=\\\"wrapperMargins\\\">\\r\\n\\t<div class=\\\"stepper-information\\\" *ngIf=\\\"!steps[currentStep].hideNavigationPanel\\\">\\r\\n\\t\\t<div class=\\\"stepper-information-title\\\">\\r\\n\\t\\t\\t{{steps[currentStep].title}}\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"stepper-information-inner\\\">\\r\\n\\t\\t\\t<div class=\\\"dot-line\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"dot-wrappers\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"dot-wrapper\\\" *ngFor=\\\"let step of steps; let i = index\\\" [class.done]=\\\"i < currentStep\\\"\\r\\n\\t\\t\\t\\t\\t[class.active]=\\\"i === currentStep\\\" container=\\\"body\\\" [popover]=\\\"step.title\\\"\\r\\n\\t\\t\\t\\t\\t[adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"bottom\\\"\\r\\n\\t\\t\\t\\t\\t#stepPopover=\\\"bs-popover\\\" [priPopover]=\\\"stepPopover\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-dot\\\" *ngIf=\\\"i === currentStep\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"check-icon\\\" *ngIf=\\\"i < currentStep\\\">\\r\\n\\t\\t\\t\\t\\t\\t<svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<polyline class=\\\"path check\\\" fill=\\\"none\\\" stroke=\\\"#515151\\\" stroke-width=\\\"1\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tstroke-linecap=\\\"round\\\" stroke-miterlimit=\\\"10\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpoints=\\\"100.2, 40.2 51.5, 88.8 29.8, 67.5 \\\" />\\r\\n\\t\\t\\t\\t\\t\\t</svg>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"content\\\" [class.hide-buttons]=\\\"!steps[currentStep].navigationButtons.visible\\\" [class.scroll]=\\\"scroll\\\"\\r\\n\\t\\t(scroll)=\\\"onContentScroll($event)\\\">\\r\\n\\t\\t<ng-template #dynamicComponent></ng-template>\\r\\n\\t</div>\\r\\n\\t<nav class=\\\"actions-wrapper\\\">\\r\\n\\t\\t<div class=\\\"pri-actions\\\">\\r\\n\\t\\t\\t<div class=\\\"buttons\\\" *ngIf=\\\"steps[currentStep].navigationButtons.visible\\\" [@enterLeaveAnimation]>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-main-actions\\\">\\r\\n\\t\\t\\t\\t\\t<pri-form-button class=\\\"cancel\\\" [isEnable]=\\\"this.stepperComponent && this.stepperComponent.isReady\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"buttonType.Secondary\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"steps[currentStep].navigationButtons.cancel.title ? steps[currentStep].navigationButtons.cancel.title : 'RES_Button_Cancel'\\\"\\r\\n\\t\\t\\t\\t\\t\\t(formClick)=\\\"cancel()\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.cancel && steps[currentStep].navigationButtons.cancel.visible\\\">\\r\\n\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t\\t<pri-form-button class=\\\"next\\\" [isEnable]=\\\"this.stepperComponent && this.stepperComponent.isReady\\\"\\r\\n\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{'disabled': nextDisabled}\\\" [type]=\\\"buttonType.Primary\\\" [style]=\\\"nextButtonStyle\\\"\\r\\n\\t\\t\\t\\t\\t\\t(formClick)=\\\"next()\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"steps[currentStep].navigationButtons.next.title ? steps[currentStep].navigationButtons.next.title : 'RES_Button_Next'\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.next && steps[currentStep].navigationButtons.next.visible\\\">\\r\\n\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-sec-actions\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\r\\n\\t\\t\\t\\t\\t\\t<pri-form-button class=\\\"back\\\" [type]=\\\"buttonType.BackIcon\\\" (formClick)=\\\"back()\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.back && steps[currentStep].navigationButtons.back.visible && currentStep > 0\\\">\\r\\n\\t\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"loader-wrapper\\\" *ngIf=\\\"loadingState !== loadingStateEnum.None\\\">\\r\\n\\t\\t\\t\\t\\t<pri-loader [state]=\\\"loadingState\\\" [size]=\\\"30\\\"></pri-loader>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</nav>\\r\\n</div>\", styles: [\"pri-stepper .stepper-wrapper{display:flex;flex-direction:column;width:100%;height:100%}pri-stepper .stepper-wrapper .stepper-information{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:16px;border-bottom:1px solid var(--grey-4)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-title{font-weight:700;font-size:16px;color:var(--grey-8)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner{display:flex;position:relative;align-items:center}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-line{border-bottom:1px solid var(--grey-4);position:absolute;left:10px;right:10px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers{display:flex;flex-direction:row;justify-content:center;align-items:center;z-index:2}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper{border-radius:100%;border:1px solid var(--grey-4);padding:8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;margin-left:6px;margin-right:6px;cursor:pointer;background-color:var(--grey-1);overflow:hidden}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper.active{width:34px;height:34px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper.done{background-color:var(--theme-100);color:var(--theme-10);border:1px solid var(--grey-4)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper:last-child{margin-right:0}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .small-dot{width:100%;height:100%;border-radius:100%;background-color:var(--theme-100)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon{display:flex}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon svg{width:10px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon svg polyline{stroke-width:20px;stroke:var(--theme-10)}@supports not (-ms-ime-align: auto){pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon .path.check{stroke-dashoffset:-100;animation:dash-check 1s ease-in-out forwards}@keyframes dash-check{0%{stroke-dashoffset:-100;stroke-dasharray:-100,-100}to{stroke-dashoffset:900;stroke-dasharray:900,900}}}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon p{text-align:center;margin:50px 0 60px;font-size:1.25em}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon p.success{color:#007d00}pri-stepper .stepper-wrapper .line{background-color:var(--theme-10);background-color:#c7c8c9;height:1px;width:100%;margin-bottom:22px}pri-stepper .stepper-wrapper .content{width:100%;height:100%;overflow:hidden}pri-stepper .stepper-wrapper .content.scroll{overflow:auto}pri-stepper .stepper-wrapper .content.hide-buttons{height:100%}pri-stepper .stepper-wrapper .buttons{display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-direction:row-reverse;transition:box-shadow .2s ease;width:100%;box-sizing:border-box}pri-stepper .stepper-wrapper .buttons.shadow{box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-stepper .stepper-wrapper .buttons .right-buttons{display:flex;flex-direction:row;align-items:center}pri-stepper .stepper-wrapper .buttons .button{cursor:pointer;transition:.2s ease transform;transition:.2s ease background-color}pri-stepper .stepper-wrapper .buttons .button:hover{transform:scale(1.05)}pri-stepper .stepper-wrapper .buttons .button.disable{background-color:var(--theme-10)}pri-stepper .stepper-wrapper .buttons .cancel{margin-right:18px}pri-stepper .stepper-wrapper .buttons .cancel:last-child{margin-right:0}pri-stepper .stepper-wrapper .buttons .loader-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}@media only screen and (max-width: 767px){pri-stepper .stepper-wrapper .stepper-information{flex-direction:column;align-items:flex-start}pri-stepper .stepper-wrapper .stepper-information .stepper-information-title{margin-bottom:14px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrapper:nth-of-type(1){margin-left:0}pri-stepper .stepper-wrapper .content{overflow:auto}pri-stepper .stepper-wrapper .buttons .cancel{margin-right:14px}pri-stepper .stepper-wrapper .buttons .pri-sec-actions .btn-group{display:inherit}}@media only screen and (max-width: 575px){pri-stepper .stepper-wrapper .stepper-header .title{margin-left:18px;padding-left:20px}}.step-tooltip{background-color:var(--grey-3);border:1px solid var(--grey-4);box-shadow:0 .2142857143rem 1.4285714286rem var(--shadow-2);color:var(--grey-7);font-size:12px;min-width:auto;opacity:1;text-align:center;white-space:nowrap}.step-tooltip.popover-bottom .popover-arrow.arrow:after{border-bottom-color:var(--grey-3);top:1px;margin-left:-10px;border-width:10px;border-top-width:0}.step-tooltip .popover-content{padding:10px 18px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }, { kind: \"component\", type: FormButtonComponent, selector: \"pri-form-button\", inputs: [\"isEnable\", \"style\", \"type\", \"text\", \"icon\", \"loadingState\", \"loaderSize\", \"height\", \"width\"], outputs: [\"formClick\"] }, { kind: \"component\", type: LoaderComponent, selector: \"pri-loader\", inputs: [\"state\", \"message\", \"size\"] }], animations: [\r\n        trigger('slideAnimation', [\r\n            transition(':enter', [style({ opacity: 0 }), animate('400ms ease', style({ opacity: 1 }))]),\r\n            transition(':leave', [style({ opacity: 1 }), animate('400ms ease', style({ opacity: 0 }))])\r\n        ]),\r\n        trigger('enterLeaveAnimation', [\r\n            transition('* <=> *', [style({ opacity: 0 }), animate('400ms', style({ opacity: 1 }))])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StepperComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-stepper', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('slideAnimation', [\r\n                            transition(':enter', [style({ opacity: 0 }), animate('400ms ease', style({ opacity: 1 }))]),\r\n                            transition(':leave', [style({ opacity: 1 }), animate('400ms ease', style({ opacity: 0 }))])\r\n                        ]),\r\n                        trigger('enterLeaveAnimation', [\r\n                            transition('* <=> *', [style({ opacity: 0 }), animate('400ms', style({ opacity: 1 }))])\r\n                        ])\r\n                    ], template: \"<div class=\\\"stepper-wrapper\\\" *ngIf=\\\"steps\\\" [ngStyle]=\\\"wrapperMargins\\\">\\r\\n\\t<div class=\\\"stepper-information\\\" *ngIf=\\\"!steps[currentStep].hideNavigationPanel\\\">\\r\\n\\t\\t<div class=\\\"stepper-information-title\\\">\\r\\n\\t\\t\\t{{steps[currentStep].title}}\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"stepper-information-inner\\\">\\r\\n\\t\\t\\t<div class=\\\"dot-line\\\"></div>\\r\\n\\t\\t\\t<div class=\\\"dot-wrappers\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"dot-wrapper\\\" *ngFor=\\\"let step of steps; let i = index\\\" [class.done]=\\\"i < currentStep\\\"\\r\\n\\t\\t\\t\\t\\t[class.active]=\\\"i === currentStep\\\" container=\\\"body\\\" [popover]=\\\"step.title\\\"\\r\\n\\t\\t\\t\\t\\t[adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"bottom\\\"\\r\\n\\t\\t\\t\\t\\t#stepPopover=\\\"bs-popover\\\" [priPopover]=\\\"stepPopover\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-dot\\\" *ngIf=\\\"i === currentStep\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"check-icon\\\" *ngIf=\\\"i < currentStep\\\">\\r\\n\\t\\t\\t\\t\\t\\t<svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<polyline class=\\\"path check\\\" fill=\\\"none\\\" stroke=\\\"#515151\\\" stroke-width=\\\"1\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tstroke-linecap=\\\"round\\\" stroke-miterlimit=\\\"10\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpoints=\\\"100.2, 40.2 51.5, 88.8 29.8, 67.5 \\\" />\\r\\n\\t\\t\\t\\t\\t\\t</svg>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"content\\\" [class.hide-buttons]=\\\"!steps[currentStep].navigationButtons.visible\\\" [class.scroll]=\\\"scroll\\\"\\r\\n\\t\\t(scroll)=\\\"onContentScroll($event)\\\">\\r\\n\\t\\t<ng-template #dynamicComponent></ng-template>\\r\\n\\t</div>\\r\\n\\t<nav class=\\\"actions-wrapper\\\">\\r\\n\\t\\t<div class=\\\"pri-actions\\\">\\r\\n\\t\\t\\t<div class=\\\"buttons\\\" *ngIf=\\\"steps[currentStep].navigationButtons.visible\\\" [@enterLeaveAnimation]>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-main-actions\\\">\\r\\n\\t\\t\\t\\t\\t<pri-form-button class=\\\"cancel\\\" [isEnable]=\\\"this.stepperComponent && this.stepperComponent.isReady\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"buttonType.Secondary\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"steps[currentStep].navigationButtons.cancel.title ? steps[currentStep].navigationButtons.cancel.title : 'RES_Button_Cancel'\\\"\\r\\n\\t\\t\\t\\t\\t\\t(formClick)=\\\"cancel()\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.cancel && steps[currentStep].navigationButtons.cancel.visible\\\">\\r\\n\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t\\t<pri-form-button class=\\\"next\\\" [isEnable]=\\\"this.stepperComponent && this.stepperComponent.isReady\\\"\\r\\n\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{'disabled': nextDisabled}\\\" [type]=\\\"buttonType.Primary\\\" [style]=\\\"nextButtonStyle\\\"\\r\\n\\t\\t\\t\\t\\t\\t(formClick)=\\\"next()\\\"\\r\\n\\t\\t\\t\\t\\t\\t[text]=\\\"steps[currentStep].navigationButtons.next.title ? steps[currentStep].navigationButtons.next.title : 'RES_Button_Next'\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.next && steps[currentStep].navigationButtons.next.visible\\\">\\r\\n\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"pri-sec-actions\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"btn-group\\\">\\r\\n\\t\\t\\t\\t\\t\\t<pri-form-button class=\\\"back\\\" [type]=\\\"buttonType.BackIcon\\\" (formClick)=\\\"back()\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngIf=\\\"steps[currentStep].navigationButtons.back && steps[currentStep].navigationButtons.back.visible && currentStep > 0\\\">\\r\\n\\t\\t\\t\\t\\t\\t</pri-form-button>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"loader-wrapper\\\" *ngIf=\\\"loadingState !== loadingStateEnum.None\\\">\\r\\n\\t\\t\\t\\t\\t<pri-loader [state]=\\\"loadingState\\\" [size]=\\\"30\\\"></pri-loader>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</nav>\\r\\n</div>\", styles: [\"pri-stepper .stepper-wrapper{display:flex;flex-direction:column;width:100%;height:100%}pri-stepper .stepper-wrapper .stepper-information{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:16px;border-bottom:1px solid var(--grey-4)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-title{font-weight:700;font-size:16px;color:var(--grey-8)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner{display:flex;position:relative;align-items:center}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-line{border-bottom:1px solid var(--grey-4);position:absolute;left:10px;right:10px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers{display:flex;flex-direction:row;justify-content:center;align-items:center;z-index:2}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper{border-radius:100%;border:1px solid var(--grey-4);padding:8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;margin-left:6px;margin-right:6px;cursor:pointer;background-color:var(--grey-1);overflow:hidden}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper.active{width:34px;height:34px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper.done{background-color:var(--theme-100);color:var(--theme-10);border:1px solid var(--grey-4)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper:last-child{margin-right:0}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .small-dot{width:100%;height:100%;border-radius:100%;background-color:var(--theme-100)}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon{display:flex}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon svg{width:10px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon svg polyline{stroke-width:20px;stroke:var(--theme-10)}@supports not (-ms-ime-align: auto){pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon .path.check{stroke-dashoffset:-100;animation:dash-check 1s ease-in-out forwards}@keyframes dash-check{0%{stroke-dashoffset:-100;stroke-dasharray:-100,-100}to{stroke-dashoffset:900;stroke-dasharray:900,900}}}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon p{text-align:center;margin:50px 0 60px;font-size:1.25em}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrappers .dot-wrapper .check-icon p.success{color:#007d00}pri-stepper .stepper-wrapper .line{background-color:var(--theme-10);background-color:#c7c8c9;height:1px;width:100%;margin-bottom:22px}pri-stepper .stepper-wrapper .content{width:100%;height:100%;overflow:hidden}pri-stepper .stepper-wrapper .content.scroll{overflow:auto}pri-stepper .stepper-wrapper .content.hide-buttons{height:100%}pri-stepper .stepper-wrapper .buttons{display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-direction:row-reverse;transition:box-shadow .2s ease;width:100%;box-sizing:border-box}pri-stepper .stepper-wrapper .buttons.shadow{box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-stepper .stepper-wrapper .buttons .right-buttons{display:flex;flex-direction:row;align-items:center}pri-stepper .stepper-wrapper .buttons .button{cursor:pointer;transition:.2s ease transform;transition:.2s ease background-color}pri-stepper .stepper-wrapper .buttons .button:hover{transform:scale(1.05)}pri-stepper .stepper-wrapper .buttons .button.disable{background-color:var(--theme-10)}pri-stepper .stepper-wrapper .buttons .cancel{margin-right:18px}pri-stepper .stepper-wrapper .buttons .cancel:last-child{margin-right:0}pri-stepper .stepper-wrapper .buttons .loader-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}@media only screen and (max-width: 767px){pri-stepper .stepper-wrapper .stepper-information{flex-direction:column;align-items:flex-start}pri-stepper .stepper-wrapper .stepper-information .stepper-information-title{margin-bottom:14px}pri-stepper .stepper-wrapper .stepper-information .stepper-information-inner .dot-wrapper:nth-of-type(1){margin-left:0}pri-stepper .stepper-wrapper .content{overflow:auto}pri-stepper .stepper-wrapper .buttons .cancel{margin-right:14px}pri-stepper .stepper-wrapper .buttons .pri-sec-actions .btn-group{display:inherit}}@media only screen and (max-width: 575px){pri-stepper .stepper-wrapper .stepper-header .title{margin-left:18px;padding-left:20px}}.step-tooltip{background-color:var(--grey-3);border:1px solid var(--grey-4);box-shadow:0 .2142857143rem 1.4285714286rem var(--shadow-2);color:var(--grey-7);font-size:12px;min-width:auto;opacity:1;text-align:center;white-space:nowrap}.step-tooltip.popover-bottom .popover-arrow.arrow:after{border-bottom-color:var(--grey-3);top:1px;margin-left:-10px;border-width:10px;border-top-width:0}.step-tooltip .popover-content{padding:10px 18px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { dynamicComponent: [{\r\n                type: ViewChild,\r\n                args: ['dynamicComponent', { read: ViewContainerRef, static: false }]\r\n            }], stepChange: [{\r\n                type: Output\r\n            }], stepScroll: [{\r\n                type: Output\r\n            }], steps: [{\r\n                type: Input\r\n            }], currentStep: [{\r\n                type: Input\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize']\r\n            }] } });\n\nclass EmptyStateBulletListSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '192px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '84px';\r\n    }\r\n}\r\nEmptyStateBulletListSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateBulletListSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nEmptyStateBulletListSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: EmptyStateBulletListSvgComponent, selector: \"pri-empty-state-bullet-list-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"empty-state-bullet-list-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\" transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\" transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n\\r\\n        <g class=\\\"circle\\\">\\r\\n            <!-- Background -->\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <!-- Border -->\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n        </g>\\r\\n        <g class=\\\"icon\\\" transform=\\\"translate(-2019.587 -485)\\\">\\r\\n            <!-- Paper -->\\r\\n            <path class=\\\"color-scale-1 stroke-scale-6\\\"\\r\\n                d=\\\"M2132.087,514v38.5a2,2,0,0,1-2,2h-28a2,2,0,0,1-2-2v-42a2,2,0,0,1,2-2h24.5Z\\\" />\\r\\n            <path class=\\\"color-scale-1 stroke-scale-6\\\" d=\\\"M2126.087,508.5v6h6\\\" />\\r\\n            <!-- Lines-->\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,519.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,519.774,2112.256,519.625,2112.571,519.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 518.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" y2=\\\"2\\\" transform=\\\"translate(2106.5 519.625)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 520.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,543.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,543.774,2112.256,543.625,2112.571,543.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 542.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" y2=\\\"2\\\" transform=\\\"translate(2106.5 543.625)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 544.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,527.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,527.774,2112.256,527.625,2112.571,527.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 526.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 528.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,531.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,531.774,2112.256,531.625,2112.571,531.625Z\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,536h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,536.149,2112.256,536,2112.571,536Z\\\" />\\r\\n        </g>\\r\\n    </svg>\", styles: [\"pri-empty-state-bullet-list-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-bullet-list-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-bullet-list-svg .color-scale-3{fill:var(--grey-3)}pri-empty-state-bullet-list-svg .color-scale-3>path{fill:var(--grey-3)}pri-empty-state-bullet-list-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-bullet-list-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-bullet-list-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-bullet-list-svg .color-scale-6>path{fill:var(--grey-6)}pri-empty-state-bullet-list-svg .stroke-scale-1{stroke:var(--grey-1)}pri-empty-state-bullet-list-svg .stroke-scale-6{stroke:var(--grey-6)}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateBulletListSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-empty-state-bullet-list-svg', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"empty-state-bullet-list-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\" transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\" transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n\\r\\n        <g class=\\\"circle\\\">\\r\\n            <!-- Background -->\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <!-- Border -->\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n        </g>\\r\\n        <g class=\\\"icon\\\" transform=\\\"translate(-2019.587 -485)\\\">\\r\\n            <!-- Paper -->\\r\\n            <path class=\\\"color-scale-1 stroke-scale-6\\\"\\r\\n                d=\\\"M2132.087,514v38.5a2,2,0,0,1-2,2h-28a2,2,0,0,1-2-2v-42a2,2,0,0,1,2-2h24.5Z\\\" />\\r\\n            <path class=\\\"color-scale-1 stroke-scale-6\\\" d=\\\"M2126.087,508.5v6h6\\\" />\\r\\n            <!-- Lines-->\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,519.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,519.774,2112.256,519.625,2112.571,519.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 518.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" y2=\\\"2\\\" transform=\\\"translate(2106.5 519.625)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 520.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,543.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,543.774,2112.256,543.625,2112.571,543.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 542.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" y2=\\\"2\\\" transform=\\\"translate(2106.5 543.625)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 544.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,527.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,527.774,2112.256,527.625,2112.571,527.625Z\\\" />\\r\\n            <circle class=\\\"color-scale-6 stroke-scale-1\\\" cx=\\\"2.5\\\" cy=\\\"2.5\\\" r=\\\"2.5\\\" transform=\\\"translate(2104 526.125)\\\" />\\r\\n            <line class=\\\"color-scale-6 stroke-scale-1\\\" x1=\\\"2\\\" transform=\\\"translate(2105.5 528.625)\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,531.625h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,531.774,2112.256,531.625,2112.571,531.625Z\\\" />\\r\\n            <path class=\\\"color-scale-6 stroke-scale-1\\\"\\r\\n                d=\\\"M2112.571,536h14.858c.315,0,.571.149.571.333v1.334c0,.184-.256.333-.571.333h-14.858c-.315,0-.571-.149-.571-.333v-1.334C2112,536.149,2112.256,536,2112.571,536Z\\\" />\\r\\n        </g>\\r\\n    </svg>\", styles: [\"pri-empty-state-bullet-list-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-bullet-list-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-bullet-list-svg .color-scale-3{fill:var(--grey-3)}pri-empty-state-bullet-list-svg .color-scale-3>path{fill:var(--grey-3)}pri-empty-state-bullet-list-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-bullet-list-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-bullet-list-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-bullet-list-svg .color-scale-6>path{fill:var(--grey-6)}pri-empty-state-bullet-list-svg .stroke-scale-1{stroke:var(--grey-1)}pri-empty-state-bullet-list-svg .stroke-scale-6{stroke:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass EmptyStateChartsSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '192px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '84px';\r\n    }\r\n}\r\nEmptyStateChartsSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateChartsSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nEmptyStateChartsSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: EmptyStateChartsSvgComponent, selector: \"pri-empty-state-charts-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"empty-state-charts-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\"\\r\\n                    transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\"\\r\\n                    transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\"\\r\\n                    transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\"\\r\\n                    transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"graph\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n            <g class=\\\"color-scale-1\\\" data-name=\\\"grey-1\\\">\\r\\n                <path id=\\\"shape-5\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M87.5,69.5h-9V56A3.5,3.5,0,0,1,82,52.5h2A3.5,3.5,0,0,1,87.5,56Z\\\" />\\r\\n                <path id=\\\"shape-6\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M101.5,69.5h-9V48A3.5,3.5,0,0,1,96,44.5h2a3.5,3.5,0,0,1,3.5,3.5Z\\\" />\\r\\n                <path id=\\\"shape-7\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M115.5,69.5h-9V38a3.5,3.5,0,0,1,3.5-3.5h2a3.5,3.5,0,0,1,3.5,3.5Z\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shape-8\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M82,53a3,3,0,0,0-3,3V69h8V56a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H78V56a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-9\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M96,45a3,3,0,0,0-3,3V69h8V48a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H92V48a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-10\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M110,35a3,3,0,0,0-3,3V69h8V38a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H106V38a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-11\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M118.25,70H76.5A4.505,4.505,0,0,1,72,65.5v-35a.5.5,0,0,1,1,0v35A3.5,3.5,0,0,0,76.5,69h41.75a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"arrow\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1368\\\" data-name=\\\"Path 1368\\\"\\r\\n                    d=\\\"M79,43.5a.5.5,0,0,1-.354-.854l11-11a.5.5,0,0,1,.708,0L96,37.293l13.646-13.647a.5.5,0,0,1,.708.708l-14,14a.5.5,0,0,1-.708,0L90,32.707,79.354,43.354A.5.5,0,0,1,79,43.5\\\" />\\r\\n                <path id=\\\"Path_1369\\\" data-name=\\\"Path 1369\\\"\\r\\n                    d=\\\"M111,29.5a.5.5,0,0,1-.5-.5V23.5H105a.5.5,0,0,1,0-1h6a.5.5,0,0,1,.5.5v6a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-empty-state-charts-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-charts-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-charts-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-charts-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-charts-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-charts-svg .color-scale-6>path{fill:var(--grey-6)}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateChartsSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-empty-state-charts-svg', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"empty-state-charts-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\"\\r\\n                    transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\"\\r\\n                    transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\"\\r\\n                    transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\"\\r\\n                    transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"graph\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n            <g class=\\\"color-scale-1\\\" data-name=\\\"grey-1\\\">\\r\\n                <path id=\\\"shape-5\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M87.5,69.5h-9V56A3.5,3.5,0,0,1,82,52.5h2A3.5,3.5,0,0,1,87.5,56Z\\\" />\\r\\n                <path id=\\\"shape-6\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M101.5,69.5h-9V48A3.5,3.5,0,0,1,96,44.5h2a3.5,3.5,0,0,1,3.5,3.5Z\\\" />\\r\\n                <path id=\\\"shape-7\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M115.5,69.5h-9V38a3.5,3.5,0,0,1,3.5-3.5h2a3.5,3.5,0,0,1,3.5,3.5Z\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shape-8\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M82,53a3,3,0,0,0-3,3V69h8V56a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H78V56a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-9\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M96,45a3,3,0,0,0-3,3V69h8V48a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H92V48a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-10\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M110,35a3,3,0,0,0-3,3V69h8V38a3,3,0,0,0-3-3Zm0-1h2a4,4,0,0,1,4,4V70H106V38a4,4,0,0,1,4-4\\\" />\\r\\n                <path id=\\\"shape-11\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M118.25,70H76.5A4.505,4.505,0,0,1,72,65.5v-35a.5.5,0,0,1,1,0v35A3.5,3.5,0,0,0,76.5,69h41.75a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"arrow\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1368\\\" data-name=\\\"Path 1368\\\"\\r\\n                    d=\\\"M79,43.5a.5.5,0,0,1-.354-.854l11-11a.5.5,0,0,1,.708,0L96,37.293l13.646-13.647a.5.5,0,0,1,.708.708l-14,14a.5.5,0,0,1-.708,0L90,32.707,79.354,43.354A.5.5,0,0,1,79,43.5\\\" />\\r\\n                <path id=\\\"Path_1369\\\" data-name=\\\"Path 1369\\\"\\r\\n                    d=\\\"M111,29.5a.5.5,0,0,1-.5-.5V23.5H105a.5.5,0,0,1,0-1h6a.5.5,0,0,1,.5.5v6a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-empty-state-charts-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-charts-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-charts-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-charts-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-charts-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-charts-svg .color-scale-6>path{fill:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass EmptyStateChecklistSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '192px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '84px';\r\n    }\r\n}\r\nEmptyStateChecklistSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateChecklistSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nEmptyStateChecklistSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: EmptyStateChecklistSvgComponent, selector: \"pri-empty-state-checklist-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"empty-state-checklist-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\" transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\" transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n\\r\\n        <g class=\\\"circle\\\">\\r\\n            <!-- Background -->\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <!-- Border -->\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n        </g>\\r\\n        <g class=\\\"icon\\\" class=\\\"color-scale-1\\\" data-name=\\\"color-scale-1\\\" transform=\\\"translate(-1548 -485)\\\">\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1660.5,514v38.5a2,2,0,0,1-2,2h-28a2,2,0,0,1-2-2v-42a2,2,0,0,1,2-2H1655Z\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1654.5,508.5v6h6\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 520.246)\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1633.374,521.746l1.417,1.5,2.833-3\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 528.246)\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1633.374,529.746l1.417,1.5,2.833-3\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 536.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 544.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"4\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1633.5 544.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"4\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1633.5 536.5)\\\" />\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-empty-state-checklist-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-checklist-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-checklist-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-checklist-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-checklist-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-checklist-svg .color-scale-6>path{fill:var(--grey-6)}pri-empty-state-checklist-svg .stroke-scale-6{stroke:var(--grey-6)}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateChecklistSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-empty-state-checklist-svg', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"empty-state-checklist-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 192 84\\\" [style.width.%]=\\\"100\\\" [style.height.%]=\\\"100\\\">\\r\\n        <g id=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.3,63.6A18.179,18.179,0,0,0,36.5,53.5c6,2,10.5,6.991,11,12.5a8.311,8.311,0,0,1,4.8-2.4\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M61,69a.5.5,0,0,1-.462-.308A7.6,7.6,0,0,0,53.505,64h-.018a7.963,7.963,0,0,0-5.632,2.352.5.5,0,1,1-.71-.7A8.97,8.97,0,0,1,53.486,63h.02a8.592,8.592,0,0,1,7.956,5.308.5.5,0,0,1-.27.654A.521.521,0,0,1,61,69\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M66,69H58a.5.5,0,0,1,0-1h8a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M14,71H.5a.5.5,0,0,1,0-1H14a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.5,71H17a.5.5,0,0,1,0-1h2.006A17.5,17.5,0,0,1,36.482,52.982h.02A17.523,17.523,0,0,1,52.456,63.295a.5.5,0,1,1-.912.41A16.523,16.523,0,0,0,36.5,53.982h-.019A16.5,16.5,0,0,0,20,70.5a.5.5,0,0,1-.5.5\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\">\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"shapes-2\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H4.243V4.243H0Z\\\" transform=\\\"translate(124 3) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-3\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(137 64) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-4\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H2.828V2.828H0Z\\\" transform=\\\"translate(51 28) rotate(-45)\\\" />\\r\\n                <path id=\\\"shapes-5\\\" data-name=\\\"shapes\\\" d=\\\"M0,0H1.414V1.414H0Z\\\" transform=\\\"translate(62 82) rotate(-45)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.836,23.922a10.652,10.652,0,0,0-4.876-.25,10.937,10.937,0,0,1,12.359-5.879,11.021,11.021,0,0,0-7.483,6.129\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\" d=\\\"M141,35h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173,33a.5.5,0,0,1-.5-.5A4.505,4.505,0,0,0,168,28a.5.5,0,0,1,0-1,5.507,5.507,0,0,1,5.5,5.5.5.5,0,0,1-.5.5\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168,28a.5.5,0,0,1-.5-.453A10.5,10.5,0,0,0,157.009,18H157c-4.372,0-7.939,2.133-9.544,5.7a.5.5,0,1,1-.912-.41c1.77-3.941,5.68-6.3,10.456-6.3h.009A11.491,11.491,0,0,1,168.5,27.453a.5.5,0,0,1-.451.545A.377.377,0,0,1,168,28\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\" d=\\\"M185,33H170a.5.5,0,0,1,0-1h15a.5.5,0,0,1,0,1\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138,35h-.008a.5.5,0,0,1-.492-.508,11.688,11.688,0,0,1,15.148-10.97.5.5,0,0,1-.3.956A10.69,10.69,0,0,0,138.5,34.508.5.5,0,0,1,138,35\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\" d=\\\"M191.5,33H188a.5.5,0,0,1,0-1h3.5a.5.5,0,0,1,0,1\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n\\r\\n        <g class=\\\"circle\\\">\\r\\n            <!-- Background -->\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"color-scale-4\\\"\\r\\n                d=\\\"M96,83.5A37.51,37.51,0,0,1,81.4,11.447,37.51,37.51,0,0,1,110.6,80.553,37.254,37.254,0,0,1,96,83.5\\\" />\\r\\n            <!-- Border -->\\r\\n            <path class=\\\"color-scale-6\\\" data-name=\\\"color-scale-6\\\"\\r\\n                d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\" />\\r\\n        </g>\\r\\n        <g class=\\\"icon\\\" class=\\\"color-scale-1\\\" data-name=\\\"color-scale-1\\\" transform=\\\"translate(-1548 -485)\\\">\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1660.5,514v38.5a2,2,0,0,1-2,2h-28a2,2,0,0,1-2-2v-42a2,2,0,0,1,2-2H1655Z\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1654.5,508.5v6h6\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 520.246)\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1633.374,521.746l1.417,1.5,2.833-3\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 528.246)\\\" />\\r\\n            <path class=\\\"stroke-scale-6\\\" d=\\\"M1633.374,529.746l1.417,1.5,2.833-3\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 536.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"14\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1640.5 544.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"4\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1633.5 544.5)\\\" />\\r\\n            <rect class=\\\"stroke-scale-6\\\" width=\\\"4\\\" height=\\\"3\\\" rx=\\\"0.5\\\" transform=\\\"translate(1633.5 536.5)\\\" />\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-empty-state-checklist-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-checklist-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-checklist-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-checklist-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-checklist-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-checklist-svg .color-scale-6>path{fill:var(--grey-6)}pri-empty-state-checklist-svg .stroke-scale-6{stroke:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass EmptyStateTableSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '192px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '84px';\r\n    }\r\n}\r\nEmptyStateTableSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateTableSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nEmptyStateTableSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: EmptyStateTableSvgComponent, selector: \"pri-empty-state-table-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"empty-state-table-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg id=\\\"Table\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"192.22\\\" height=\\\"84\\\" viewBox=\\\"0 0 192.22 84\\\">\\r\\n        <g id=\\\"cloud\\\" transform=\\\"translate(131 17)\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.894,24a10.779,10.779,0,0,0-4.934-.253A11.067,11.067,0,0,1,159.466,17.8a11.152,11.152,0,0,0-7.572,6.2\\\"\\r\\n                transform=\\\"translate(-131.316 -16.994)\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\"\\r\\n                    d=\\\"M141.113,35.012h-9.107a.506.506,0,1,1,0-1.012h9.107a.506.506,0,0,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-131.5 -16.798)\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173.066,33.071a.506.506,0,0,1-.506-.506,4.559,4.559,0,0,0-4.554-4.554.506.506,0,1,1,0-1.012,5.572,5.572,0,0,1,5.565,5.565.506.506,0,0,1-.506.506\\\"\\r\\n                    transform=\\\"translate(-131.071 -16.881)\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168.255,28.131a.505.505,0,0,1-.5-.458,10.621,10.621,0,0,0-10.618-9.661h-.009c-4.424,0-8.033,2.158-9.658,5.773a.506.506,0,1,1-.923-.415c1.791-3.988,5.748-6.37,10.58-6.37h.009A11.628,11.628,0,0,1,168.76,27.577a.507.507,0,0,1-.456.551.382.382,0,0,1-.049,0\\\"\\r\\n                    transform=\\\"translate(-131.321 -17)\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\"\\r\\n                    d=\\\"M185.185,33.012H170.006a.506.506,0,1,1,0-1.012h15.179a.506.506,0,0,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-131.048 -16.821)\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138.006,35.143H138a.506.506,0,0,1-.5-.514,11.828,11.828,0,0,1,15.328-11.1.506.506,0,1,1-.3.967,10.817,10.817,0,0,0-14.017,10.149.506.506,0,0,1-.506.5\\\"\\r\\n                    transform=\\\"translate(-131.429 -16.929)\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\"\\r\\n                    d=\\\"M191.548,33.012h-3.542a.506.506,0,1,1,0-1.012h3.542a.506.506,0,1,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-130.833 -16.821)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\" transform=\\\"translate(0 53)\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.27,63.581A18.144,18.144,0,0,0,36.5,53.5c5.989,2,10.48,6.978,10.979,12.476a8.3,8.3,0,0,1,4.791-2.4\\\"\\r\\n                transform=\\\"translate(-0.07 -52.983)\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M60.973,68.989a.5.5,0,0,1-.461-.307A7.582,7.582,0,0,0,53.493,64a.107.107,0,0,0-.018,0,7.948,7.948,0,0,0-5.621,2.347.5.5,0,1,1-.709-.7A8.953,8.953,0,0,1,53.474,63h.02a8.576,8.576,0,0,1,7.941,5.3.5.5,0,0,1-.269.653.52.52,0,0,1-.192.038\\\"\\r\\n                    transform=\\\"translate(-0.09 -53.001)\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M65.984,69H58a.5.5,0,1,1,0-1h7.985a.5.5,0,1,1,0,1\\\"\\r\\n                    transform=\\\"translate(-0.11 -53.011)\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M13.973,71H.5a.5.5,0,0,1,0-1H13.973a.5.5,0,0,1,0,1\\\"\\r\\n                    transform=\\\"translate(0 -53.014)\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.494,70.966H17a.5.5,0,1,1,0-1h2A17.469,17.469,0,0,1,36.444,52.982h.02A17.489,17.489,0,0,1,52.387,63.275a.5.5,0,1,1-.91.409,16.492,16.492,0,0,0-15.013-9.7h-.019A16.468,16.468,0,0,0,19.993,70.466a.5.5,0,0,1-.5.5\\\"\\r\\n                    transform=\\\"translate(-0.031 -52.982)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\" transform=\\\"translate(-80 -379)\\\">\\r\\n            <g class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\" transform=\\\"translate(-20)\\\">\\r\\n                <path id=\\\"circle\\\"\\r\\n                    d=\\\"M96.5,84.5A38.01,38.01,0,0,1,81.708,11.486a38.01,38.01,0,0,1,29.583,70.027A37.751,37.751,0,0,1,96.5,84.5\\\"\\r\\n                    transform=\\\"translate(98.5 378.5)\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"path\\\" d=\\\"M204,382l3-3,3,3-3,3-3-3\\\" />\\r\\n                <path id=\\\"path-2\\\" data-name=\\\"path\\\" d=\\\"M217,443l2-2,2,2-2,2-2-2\\\" />\\r\\n                <path id=\\\"path-3\\\" data-name=\\\"path\\\" d=\\\"M131,407l2-2,2,2-2,2-2-2\\\" />\\r\\n                <path id=\\\"path-4\\\" data-name=\\\"path\\\" d=\\\"M142,461l1-1,1,1-1,1-1-1\\\" />\\r\\n                <path id=\\\"circle-2\\\" data-name=\\\"circle\\\"\\r\\n                    d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\"\\r\\n                    transform=\\\"translate(79 379)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"table-2\\\" data-name=\\\"table\\\" transform=\\\"translate(70.61 27)\\\">\\r\\n            <g class=\\\"color-scale-1\\\" data-name=\\\"grey-1\\\">\\r\\n                <path id=\\\"Path_4865\\\" data-name=\\\"Path 4865\\\" d=\\\"M34.8,24H26v5H37V26.2A4.006,4.006,0,0,1,34.8,24\\\" />\\r\\n                <path id=\\\"Path_4866\\\" data-name=\\\"Path 4866\\\" d=\\\"M1,30v5.5A1.5,1.5,0,0,0,2.5,37H12V30Z\\\" />\\r\\n                <path id=\\\"Path_4905\\\" data-name=\\\"Path 4905\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(26 30)\\\" />\\r\\n                <path id=\\\"Path_4904\\\" data-name=\\\"Path 4904\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 22)\\\" />\\r\\n                <path id=\\\"Path_4867\\\" data-name=\\\"Path 4867\\\" d=\\\"M23,22H13v7H25V24a2,2,0,0,1-2-2\\\" />\\r\\n                <path id=\\\"Path_4903\\\" data-name=\\\"Path 4903\\\" d=\\\"M0,0H11V5H0Z\\\" transform=\\\"translate(26 6)\\\" />\\r\\n                <path id=\\\"Path_4868\\\" data-name=\\\"Path 4868\\\" d=\\\"M38,37h9.5A1.5,1.5,0,0,0,49,35.5V30H38Z\\\" />\\r\\n                <path id=\\\"Path_4902\\\" data-name=\\\"Path 4902\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 6)\\\" />\\r\\n                <path id=\\\"Path_4869\\\" data-name=\\\"Path 4869\\\" d=\\\"M23,13a2,2,0,0,1,2-2V6H13v7Z\\\" />\\r\\n                <path id=\\\"Path_4901\\\" data-name=\\\"Path 4901\\\" d=\\\"M0,0H12V7H0Z\\\" transform=\\\"translate(13 30)\\\" />\\r\\n                <path id=\\\"Path_4870\\\" data-name=\\\"Path 4870\\\" d=\\\"M47.5,1H2.5A1.5,1.5,0,0,0,1,2.5V5H49V2.5A1.5,1.5,0,0,0,47.5,1\\\" />\\r\\n                <path id=\\\"Path_4871\\\" data-name=\\\"Path 4871\\\"\\r\\n                    d=\\\"M42.5,22.5a4,4,0,0,1-4,4,3.939,3.939,0,0,1-.5-.051V29H49V22H42.449a3.939,3.939,0,0,1,.051.5\\\" />\\r\\n                <path id=\\\"Path_4872\\\" data-name=\\\"Path 4872\\\" d=\\\"M38,11a2,2,0,0,1,2,2h9V6H38Z\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-2\\\" data-name=\\\"grey-2\\\">\\r\\n                <path id=\\\"path-5\\\" data-name=\\\"path\\\" d=\\\"M40,18.8A4.012,4.012,0,0,1,42.2,21H49V14H40Z\\\" />\\r\\n                <path id=\\\"path-6\\\" data-name=\\\"path\\\" d=\\\"M0,0H10V7H0Z\\\" transform=\\\"translate(13 14)\\\" />\\r\\n                <path id=\\\"path-7\\\" data-name=\\\"path\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 14)\\\" />\\r\\n                <path id=\\\"path-8\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M38,12H25a1,1,0,0,0-1,1v9a1,1,0,0,0,1,1h9.551a3.939,3.939,0,0,1-.051-.5,5.46,5.46,0,0,1,.3-1.5A4.012,4.012,0,0,1,37,18.8a3.434,3.434,0,0,1,2-.247V13a1,1,0,0,0-1-1m-7.5,8.207-2.354-2.354.708-.707L30.5,18.793l3.646-3.647.708.707Z\\\"\\r\\n                    />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\">\\r\\n                <path id=\\\"path-9\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M42.449,22a3.959,3.959,0,0,0-.247-1A4.012,4.012,0,0,0,40,18.8a4.2,4.2,0,0,0-3,0A4.012,4.012,0,0,0,34.8,21a4.2,4.2,0,0,0,0,3A4.012,4.012,0,0,0,37,26.2a5.46,5.46,0,0,0,1.5.3,4,4,0,0,0,4-4,3.939,3.939,0,0,0-.051-.5M38.5,25.5a3.048,3.048,0,0,1-.5-.05A3.015,3.015,0,0,1,35.55,23a2.525,2.525,0,0,1,0-1A3.015,3.015,0,0,1,38,19.55a2.525,2.525,0,0,1,1,0A3.015,3.015,0,0,1,41.45,22a3.048,3.048,0,0,1,.05.5,3,3,0,0,1-3,3\\\"\\r\\n                    fill=\\\"#edeff5\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"path-10\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M47.5,0H2.5A2.5,2.5,0,0,0,0,2.5v33A2.5,2.5,0,0,0,2.5,38h45A2.5,2.5,0,0,0,50,35.5V2.5A2.5,2.5,0,0,0,47.5,0M12,37H2.5A1.5,1.5,0,0,1,1,35.5V30H12Zm0-8H1V22H12Zm0-8H1V14H12Zm0-8H1V6H12ZM25,37H13V30H25Zm0-8H13V22H23a2,2,0,0,0,2,2Zm-2-8H13V14H23ZM13,13V6H25v5a2,2,0,0,0-2,2ZM37,37H26V30H37Zm12-1.5A1.5,1.5,0,0,1,47.5,37H38V30H49ZM49,21H42.2a3.959,3.959,0,0,1,.247,1H49v7H38V26.449a3.959,3.959,0,0,1-1-.247V29H26V24h8.8a3.959,3.959,0,0,1-.247-1H25a1,1,0,0,1-1-1V13a1,1,0,0,1,1-1H38a1,1,0,0,1,1,1v5.551a3.959,3.959,0,0,1,1,.247V14h9ZM37,11H26V6H37Zm12,2H40a2,2,0,0,0-2-2V6H49Zm0-8H1V2.5A1.5,1.5,0,0,1,2.5,1h45A1.5,1.5,0,0,1,49,2.5Z\\\" />\\r\\n                <path id=\\\"path-11\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M41.45,22a2.974,2.974,0,0,0-.367-1A3.006,3.006,0,0,0,40,19.917a3.156,3.156,0,0,0-1.5-.417,2.932,2.932,0,0,0-.5.051,2.973,2.973,0,0,0-1,.366A3.006,3.006,0,0,0,35.917,21a2.951,2.951,0,0,0,0,3A3.006,3.006,0,0,0,37,25.083a2.973,2.973,0,0,0,1,.366,2.932,2.932,0,0,0,.5.051,3,3,0,0,0,3-3,2.942,2.942,0,0,0-.05-.5\\\" />\\r\\n                <path id=\\\"path-12\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M30.5,20.207l4.354-4.354-.708-.707L30.5,18.793l-1.646-1.647-.708.707Z\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n    </svg>\\r\\n\\r\\n</div>\", styles: [\"pri-empty-state-table-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-table-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-table-svg .color-scale-2{fill:var(--grey-2)}pri-empty-state-table-svg .color-scale-2>path{fill:var(--grey-2)}pri-empty-state-table-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-table-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-table-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-table-svg .color-scale-6>path{fill:var(--grey-6)}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EmptyStateTableSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-empty-state-table-svg', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"empty-state-table-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg id=\\\"Table\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"192.22\\\" height=\\\"84\\\" viewBox=\\\"0 0 192.22 84\\\">\\r\\n        <g id=\\\"cloud\\\" transform=\\\"translate(131 17)\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M151.894,24a10.779,10.779,0,0,0-4.934-.253A11.067,11.067,0,0,1,159.466,17.8a11.152,11.152,0,0,0-7.572,6.2\\\"\\r\\n                transform=\\\"translate(-131.316 -16.994)\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"Path_1352\\\" data-name=\\\"Path 1352\\\"\\r\\n                    d=\\\"M141.113,35.012h-9.107a.506.506,0,1,1,0-1.012h9.107a.506.506,0,0,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-131.5 -16.798)\\\" />\\r\\n                <path id=\\\"Path_1353\\\" data-name=\\\"Path 1353\\\"\\r\\n                    d=\\\"M173.066,33.071a.506.506,0,0,1-.506-.506,4.559,4.559,0,0,0-4.554-4.554.506.506,0,1,1,0-1.012,5.572,5.572,0,0,1,5.565,5.565.506.506,0,0,1-.506.506\\\"\\r\\n                    transform=\\\"translate(-131.071 -16.881)\\\" />\\r\\n                <path id=\\\"Path_1354\\\" data-name=\\\"Path 1354\\\"\\r\\n                    d=\\\"M168.255,28.131a.505.505,0,0,1-.5-.458,10.621,10.621,0,0,0-10.618-9.661h-.009c-4.424,0-8.033,2.158-9.658,5.773a.506.506,0,1,1-.923-.415c1.791-3.988,5.748-6.37,10.58-6.37h.009A11.628,11.628,0,0,1,168.76,27.577a.507.507,0,0,1-.456.551.382.382,0,0,1-.049,0\\\"\\r\\n                    transform=\\\"translate(-131.321 -17)\\\" />\\r\\n                <path id=\\\"Path_1355\\\" data-name=\\\"Path 1355\\\"\\r\\n                    d=\\\"M185.185,33.012H170.006a.506.506,0,1,1,0-1.012h15.179a.506.506,0,0,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-131.048 -16.821)\\\" />\\r\\n                <path id=\\\"Path_1356\\\" data-name=\\\"Path 1356\\\"\\r\\n                    d=\\\"M138.006,35.143H138a.506.506,0,0,1-.5-.514,11.828,11.828,0,0,1,15.328-11.1.506.506,0,1,1-.3.967,10.817,10.817,0,0,0-14.017,10.149.506.506,0,0,1-.506.5\\\"\\r\\n                    transform=\\\"translate(-131.429 -16.929)\\\" />\\r\\n                <path id=\\\"Path_1361\\\" data-name=\\\"Path 1361\\\"\\r\\n                    d=\\\"M191.548,33.012h-3.542a.506.506,0,1,1,0-1.012h3.542a.506.506,0,1,1,0,1.012\\\"\\r\\n                    transform=\\\"translate(-130.833 -16.821)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"cloud-2\\\" data-name=\\\"cloud\\\" transform=\\\"translate(0 53)\\\">\\r\\n            <path class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\"\\r\\n                d=\\\"M52.27,63.581A18.144,18.144,0,0,0,36.5,53.5c5.989,2,10.48,6.978,10.979,12.476a8.3,8.3,0,0,1,4.791-2.4\\\"\\r\\n                transform=\\\"translate(-0.07 -52.983)\\\" />\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"shape\\\"\\r\\n                    d=\\\"M60.973,68.989a.5.5,0,0,1-.461-.307A7.582,7.582,0,0,0,53.493,64a.107.107,0,0,0-.018,0,7.948,7.948,0,0,0-5.621,2.347.5.5,0,1,1-.709-.7A8.953,8.953,0,0,1,53.474,63h.02a8.576,8.576,0,0,1,7.941,5.3.5.5,0,0,1-.269.653.52.52,0,0,1-.192.038\\\"\\r\\n                    transform=\\\"translate(-0.09 -53.001)\\\" />\\r\\n                <path id=\\\"shape-2\\\" data-name=\\\"shape\\\" d=\\\"M65.984,69H58a.5.5,0,1,1,0-1h7.985a.5.5,0,1,1,0,1\\\"\\r\\n                    transform=\\\"translate(-0.11 -53.011)\\\" />\\r\\n                <path id=\\\"shape-3\\\" data-name=\\\"shape\\\" d=\\\"M13.973,71H.5a.5.5,0,0,1,0-1H13.973a.5.5,0,0,1,0,1\\\"\\r\\n                    transform=\\\"translate(0 -53.014)\\\" />\\r\\n                <path id=\\\"shape-4\\\" data-name=\\\"shape\\\"\\r\\n                    d=\\\"M19.494,70.966H17a.5.5,0,1,1,0-1h2A17.469,17.469,0,0,1,36.444,52.982h.02A17.489,17.489,0,0,1,52.387,63.275a.5.5,0,1,1-.91.409,16.492,16.492,0,0,0-15.013-9.7h-.019A16.468,16.468,0,0,0,19.993,70.466a.5.5,0,0,1-.5.5\\\"\\r\\n                    transform=\\\"translate(-0.031 -52.982)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"shapes\\\" transform=\\\"translate(-80 -379)\\\">\\r\\n            <g class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\" transform=\\\"translate(-20)\\\">\\r\\n                <path id=\\\"circle\\\"\\r\\n                    d=\\\"M96.5,84.5A38.01,38.01,0,0,1,81.708,11.486a38.01,38.01,0,0,1,29.583,70.027A37.751,37.751,0,0,1,96.5,84.5\\\"\\r\\n                    transform=\\\"translate(98.5 378.5)\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"path\\\" d=\\\"M204,382l3-3,3,3-3,3-3-3\\\" />\\r\\n                <path id=\\\"path-2\\\" data-name=\\\"path\\\" d=\\\"M217,443l2-2,2,2-2,2-2-2\\\" />\\r\\n                <path id=\\\"path-3\\\" data-name=\\\"path\\\" d=\\\"M131,407l2-2,2,2-2,2-2-2\\\" />\\r\\n                <path id=\\\"path-4\\\" data-name=\\\"path\\\" d=\\\"M142,461l1-1,1,1-1,1-1-1\\\" />\\r\\n                <path id=\\\"circle-2\\\" data-name=\\\"circle\\\"\\r\\n                    d=\\\"M96,9a36.878,36.878,0,1,0,14.4,2.907A36.772,36.772,0,0,0,96,9m0-1A38,38,0,1,1,58,46,38,38,0,0,1,96,8\\\"\\r\\n                    transform=\\\"translate(79 379)\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n        <g id=\\\"table-2\\\" data-name=\\\"table\\\" transform=\\\"translate(70.61 27)\\\">\\r\\n            <g class=\\\"color-scale-1\\\" data-name=\\\"grey-1\\\">\\r\\n                <path id=\\\"Path_4865\\\" data-name=\\\"Path 4865\\\" d=\\\"M34.8,24H26v5H37V26.2A4.006,4.006,0,0,1,34.8,24\\\" />\\r\\n                <path id=\\\"Path_4866\\\" data-name=\\\"Path 4866\\\" d=\\\"M1,30v5.5A1.5,1.5,0,0,0,2.5,37H12V30Z\\\" />\\r\\n                <path id=\\\"Path_4905\\\" data-name=\\\"Path 4905\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(26 30)\\\" />\\r\\n                <path id=\\\"Path_4904\\\" data-name=\\\"Path 4904\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 22)\\\" />\\r\\n                <path id=\\\"Path_4867\\\" data-name=\\\"Path 4867\\\" d=\\\"M23,22H13v7H25V24a2,2,0,0,1-2-2\\\" />\\r\\n                <path id=\\\"Path_4903\\\" data-name=\\\"Path 4903\\\" d=\\\"M0,0H11V5H0Z\\\" transform=\\\"translate(26 6)\\\" />\\r\\n                <path id=\\\"Path_4868\\\" data-name=\\\"Path 4868\\\" d=\\\"M38,37h9.5A1.5,1.5,0,0,0,49,35.5V30H38Z\\\" />\\r\\n                <path id=\\\"Path_4902\\\" data-name=\\\"Path 4902\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 6)\\\" />\\r\\n                <path id=\\\"Path_4869\\\" data-name=\\\"Path 4869\\\" d=\\\"M23,13a2,2,0,0,1,2-2V6H13v7Z\\\" />\\r\\n                <path id=\\\"Path_4901\\\" data-name=\\\"Path 4901\\\" d=\\\"M0,0H12V7H0Z\\\" transform=\\\"translate(13 30)\\\" />\\r\\n                <path id=\\\"Path_4870\\\" data-name=\\\"Path 4870\\\" d=\\\"M47.5,1H2.5A1.5,1.5,0,0,0,1,2.5V5H49V2.5A1.5,1.5,0,0,0,47.5,1\\\" />\\r\\n                <path id=\\\"Path_4871\\\" data-name=\\\"Path 4871\\\"\\r\\n                    d=\\\"M42.5,22.5a4,4,0,0,1-4,4,3.939,3.939,0,0,1-.5-.051V29H49V22H42.449a3.939,3.939,0,0,1,.051.5\\\" />\\r\\n                <path id=\\\"Path_4872\\\" data-name=\\\"Path 4872\\\" d=\\\"M38,11a2,2,0,0,1,2,2h9V6H38Z\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-2\\\" data-name=\\\"grey-2\\\">\\r\\n                <path id=\\\"path-5\\\" data-name=\\\"path\\\" d=\\\"M40,18.8A4.012,4.012,0,0,1,42.2,21H49V14H40Z\\\" />\\r\\n                <path id=\\\"path-6\\\" data-name=\\\"path\\\" d=\\\"M0,0H10V7H0Z\\\" transform=\\\"translate(13 14)\\\" />\\r\\n                <path id=\\\"path-7\\\" data-name=\\\"path\\\" d=\\\"M0,0H11V7H0Z\\\" transform=\\\"translate(1 14)\\\" />\\r\\n                <path id=\\\"path-8\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M38,12H25a1,1,0,0,0-1,1v9a1,1,0,0,0,1,1h9.551a3.939,3.939,0,0,1-.051-.5,5.46,5.46,0,0,1,.3-1.5A4.012,4.012,0,0,1,37,18.8a3.434,3.434,0,0,1,2-.247V13a1,1,0,0,0-1-1m-7.5,8.207-2.354-2.354.708-.707L30.5,18.793l3.646-3.647.708.707Z\\\"\\r\\n                    />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-4\\\" data-name=\\\"grey-4\\\">\\r\\n                <path id=\\\"path-9\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M42.449,22a3.959,3.959,0,0,0-.247-1A4.012,4.012,0,0,0,40,18.8a4.2,4.2,0,0,0-3,0A4.012,4.012,0,0,0,34.8,21a4.2,4.2,0,0,0,0,3A4.012,4.012,0,0,0,37,26.2a5.46,5.46,0,0,0,1.5.3,4,4,0,0,0,4-4,3.939,3.939,0,0,0-.051-.5M38.5,25.5a3.048,3.048,0,0,1-.5-.05A3.015,3.015,0,0,1,35.55,23a2.525,2.525,0,0,1,0-1A3.015,3.015,0,0,1,38,19.55a2.525,2.525,0,0,1,1,0A3.015,3.015,0,0,1,41.45,22a3.048,3.048,0,0,1,.05.5,3,3,0,0,1-3,3\\\"\\r\\n                    fill=\\\"#edeff5\\\" />\\r\\n            </g>\\r\\n            <g class=\\\"color-scale-6\\\" data-name=\\\"grey-6\\\">\\r\\n                <path id=\\\"path-10\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M47.5,0H2.5A2.5,2.5,0,0,0,0,2.5v33A2.5,2.5,0,0,0,2.5,38h45A2.5,2.5,0,0,0,50,35.5V2.5A2.5,2.5,0,0,0,47.5,0M12,37H2.5A1.5,1.5,0,0,1,1,35.5V30H12Zm0-8H1V22H12Zm0-8H1V14H12Zm0-8H1V6H12ZM25,37H13V30H25Zm0-8H13V22H23a2,2,0,0,0,2,2Zm-2-8H13V14H23ZM13,13V6H25v5a2,2,0,0,0-2,2ZM37,37H26V30H37Zm12-1.5A1.5,1.5,0,0,1,47.5,37H38V30H49ZM49,21H42.2a3.959,3.959,0,0,1,.247,1H49v7H38V26.449a3.959,3.959,0,0,1-1-.247V29H26V24h8.8a3.959,3.959,0,0,1-.247-1H25a1,1,0,0,1-1-1V13a1,1,0,0,1,1-1H38a1,1,0,0,1,1,1v5.551a3.959,3.959,0,0,1,1,.247V14h9ZM37,11H26V6H37Zm12,2H40a2,2,0,0,0-2-2V6H49Zm0-8H1V2.5A1.5,1.5,0,0,1,2.5,1h45A1.5,1.5,0,0,1,49,2.5Z\\\" />\\r\\n                <path id=\\\"path-11\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M41.45,22a2.974,2.974,0,0,0-.367-1A3.006,3.006,0,0,0,40,19.917a3.156,3.156,0,0,0-1.5-.417,2.932,2.932,0,0,0-.5.051,2.973,2.973,0,0,0-1,.366A3.006,3.006,0,0,0,35.917,21a2.951,2.951,0,0,0,0,3A3.006,3.006,0,0,0,37,25.083a2.973,2.973,0,0,0,1,.366,2.932,2.932,0,0,0,.5.051,3,3,0,0,0,3-3,2.942,2.942,0,0,0-.05-.5\\\" />\\r\\n                <path id=\\\"path-12\\\" data-name=\\\"path\\\"\\r\\n                    d=\\\"M30.5,20.207l4.354-4.354-.708-.707L30.5,18.793l-1.646-1.647-.708.707Z\\\" />\\r\\n            </g>\\r\\n        </g>\\r\\n    </svg>\\r\\n\\r\\n</div>\", styles: [\"pri-empty-state-table-svg .color-scale-1{fill:var(--grey-1)}pri-empty-state-table-svg .color-scale-1>path{fill:var(--grey-1)}pri-empty-state-table-svg .color-scale-2{fill:var(--grey-2)}pri-empty-state-table-svg .color-scale-2>path{fill:var(--grey-2)}pri-empty-state-table-svg .color-scale-4{fill:var(--grey-4)}pri-empty-state-table-svg .color-scale-4>path{fill:var(--grey-4)}pri-empty-state-table-svg .color-scale-6{fill:var(--grey-6)}pri-empty-state-table-svg .color-scale-6>path{fill:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass ErrorSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '150px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '150px';\r\n    }\r\n}\r\nErrorSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nErrorSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ErrorSvgComponent, selector: \"pri-error-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"error-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 164 164\\\" [style.width.%]=\\\"100\\\"\\r\\n        [style.height.%]=\\\"100\\\">\\r\\n        <g transform=\\\"translate(-20 17)\\\">\\r\\n            <circle class=\\\"path circle\\\" cx=\\\"81\\\" cy=\\\"81\\\" r=\\\"81\\\" transform=\\\"translate(21 -16)\\\" />\\r\\n            <line class=\\\"path line\\\" x2=\\\"113.799\\\" y2=\\\"113.799\\\" transform=\\\"translate(45.1 8.203)\\\" />\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-error-svg svg circle,pri-error-svg svg line{fill:none;stroke-miterlimit:10;stroke-width:2px;stroke:var(--error-100)}pri-error-svg svg line{stroke-linecap:round}pri-error-svg .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-error-svg .path.circle{animation:dash 2s ease-in-out}pri-error-svg .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-error-svg .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-error-svg', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"error-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 164 164\\\" [style.width.%]=\\\"100\\\"\\r\\n        [style.height.%]=\\\"100\\\">\\r\\n        <g transform=\\\"translate(-20 17)\\\">\\r\\n            <circle class=\\\"path circle\\\" cx=\\\"81\\\" cy=\\\"81\\\" r=\\\"81\\\" transform=\\\"translate(21 -16)\\\" />\\r\\n            <line class=\\\"path line\\\" x2=\\\"113.799\\\" y2=\\\"113.799\\\" transform=\\\"translate(45.1 8.203)\\\" />\\r\\n        </g>\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-error-svg svg circle,pri-error-svg svg line{fill:none;stroke-miterlimit:10;stroke-width:2px;stroke:var(--error-100)}pri-error-svg svg line{stroke-linecap:round}pri-error-svg .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-error-svg .path.circle{animation:dash 2s ease-in-out}pri-error-svg .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-error-svg .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}\\n\"] }]\r\n        }], propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass SuccessSvgComponent {\r\n    constructor() {\r\n        /** Defines the SVG Container Width */\r\n        this.width = '150px';\r\n        /** Defines the SVG Container Height */\r\n        this.height = '150px';\r\n    }\r\n}\r\nSuccessSvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SuccessSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nSuccessSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SuccessSvgComponent, selector: \"pri-success-svg\", inputs: { width: \"width\", height: \"height\" }, ngImport: i0, template: \"<div class=\\\"success-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\" [style.width.%]=\\\"100\\\"\\r\\n        [style.height.%]=\\\"100\\\">\\r\\n        <circle class=\\\"path circle\\\" cx=\\\"65.1\\\" cy=\\\"65.1\\\" r=\\\"62.1\\\" />\\r\\n        <polyline class=\\\"path check\\\" points=\\\"100.2,40.2 51.5,88.8 29.8,67.5 \\\" />\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-success-svg .success-svg-container svg circle,pri-success-svg .success-svg-container svg polyline{fill:none;stroke-width:2px;stroke:var(--theme-100);stroke-miterlimit:10}pri-success-svg .success-svg-container svg polyline{stroke-linecap:round}pri-success-svg .success-svg-container .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-success-svg .success-svg-container .path.circle{animation:dash 2s ease-in-out}pri-success-svg .success-svg-container .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-success-svg .success-svg-container .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}\\n\"], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SuccessSvgComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-success-svg', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"success-svg-container\\\" [style.width]=\\\"width\\\" [style.height]=\\\"height\\\">\\r\\n    <svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 130.2 130.2\\\" [style.width.%]=\\\"100\\\"\\r\\n        [style.height.%]=\\\"100\\\">\\r\\n        <circle class=\\\"path circle\\\" cx=\\\"65.1\\\" cy=\\\"65.1\\\" r=\\\"62.1\\\" />\\r\\n        <polyline class=\\\"path check\\\" points=\\\"100.2,40.2 51.5,88.8 29.8,67.5 \\\" />\\r\\n    </svg>\\r\\n</div>\", styles: [\"pri-success-svg .success-svg-container svg circle,pri-success-svg .success-svg-container svg polyline{fill:none;stroke-width:2px;stroke:var(--theme-100);stroke-miterlimit:10}pri-success-svg .success-svg-container svg polyline{stroke-linecap:round}pri-success-svg .success-svg-container .path{stroke-dasharray:1000;stroke-dashoffset:0}pri-success-svg .success-svg-container .path.circle{animation:dash 2s ease-in-out}pri-success-svg .success-svg-container .path.line{stroke-dashoffset:1000;animation:dash 2s .35s ease-in-out forwards}@supports not (-ms-ime-align: auto){pri-success-svg .success-svg-container .path.check{stroke-dashoffset:-100;animation:dash-check 2s .35s ease-in-out forwards}}@keyframes dash{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes dash-check{0%{stroke-dashoffset:-100}to{stroke-dashoffset:900}}\\n\"] }]\r\n        }], propDecorators: { width: [{\r\n                type: Input\r\n            }], height: [{\r\n                type: Input\r\n            }] } });\n\nclass TableOptionsColumnsFieldComponent {\r\n    constructor() {\r\n        this.columnVisibilityChange = new EventEmitter();\r\n    }\r\n    onColumnVisibilityChange(value) {\r\n        if (this.column.canChangeColumnVisibility) {\r\n            this.column.hidden = !value;\r\n            this.columnVisibilityChange.emit(value);\r\n        }\r\n    }\r\n}\r\nTableOptionsColumnsFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TableOptionsColumnsFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTableOptionsColumnsFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TableOptionsColumnsFieldComponent, selector: \"pri-table-options-columns-field\", inputs: { column: \"column\" }, outputs: { columnVisibilityChange: \"columnVisibilityChange\" }, ngImport: i0, template: \"<div class=\\\"table-options-columns-field-container\\\">\\r\\n\\t<i class=\\\"ti-ux-drag table-options-columns-drag-icon\\\"></i>\\r\\n\\t<div class=\\\"table-options-columns-field-title\\\" *ngIf=\\\"column.title\\\" [ngClass]=\\\"{ 'hidden-column': column.hidden }\\\">\\r\\n\\t\\t{{ column.title | priI18n }}\\r\\n\\t</div>\\r\\n\\t<pri-slider-toggle\\r\\n\\t\\t(valueChange)=\\\"onColumnVisibilityChange($event.checked)\\\"\\r\\n\\t\\t[value]=\\\"!column.hidden\\\"\\r\\n\\t\\t[disabled]=\\\"!column.canChangeColumnVisibility\\\">\\r\\n\\t</pri-slider-toggle>\\r\\n</div>\\r\\n\", styles: [\"pri-table-options-columns-field{display:flex;align-items:center;width:100%;min-height:44px;flex-shrink:0;border-bottom:1px solid var(--grey-4);position:relative;z-index:1042!important;cursor:all-scroll}pri-table-options-columns-field .table-options-columns-field-container{display:flex;flex-direction:row;align-items:center;width:100%;height:100%;padding:0 12px}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-drag-icon{font-size:17px;margin-right:8px}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-field-title{width:100%;color:var(--grey-8);font-size:14px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-field-title.hidden-column{color:var(--grey-6)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: PriSliderToggleComponent, selector: \"pri-slider-toggle\", inputs: [\"value\", \"label\", \"disabled\"], outputs: [\"valueChange\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TableOptionsColumnsFieldComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-table-options-columns-field', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"table-options-columns-field-container\\\">\\r\\n\\t<i class=\\\"ti-ux-drag table-options-columns-drag-icon\\\"></i>\\r\\n\\t<div class=\\\"table-options-columns-field-title\\\" *ngIf=\\\"column.title\\\" [ngClass]=\\\"{ 'hidden-column': column.hidden }\\\">\\r\\n\\t\\t{{ column.title | priI18n }}\\r\\n\\t</div>\\r\\n\\t<pri-slider-toggle\\r\\n\\t\\t(valueChange)=\\\"onColumnVisibilityChange($event.checked)\\\"\\r\\n\\t\\t[value]=\\\"!column.hidden\\\"\\r\\n\\t\\t[disabled]=\\\"!column.canChangeColumnVisibility\\\">\\r\\n\\t</pri-slider-toggle>\\r\\n</div>\\r\\n\", styles: [\"pri-table-options-columns-field{display:flex;align-items:center;width:100%;min-height:44px;flex-shrink:0;border-bottom:1px solid var(--grey-4);position:relative;z-index:1042!important;cursor:all-scroll}pri-table-options-columns-field .table-options-columns-field-container{display:flex;flex-direction:row;align-items:center;width:100%;height:100%;padding:0 12px}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-drag-icon{font-size:17px;margin-right:8px}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-field-title{width:100%;color:var(--grey-8);font-size:14px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}pri-table-options-columns-field .table-options-columns-field-container .table-options-columns-field-title.hidden-column{color:var(--grey-6)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { column: [{\r\n                type: Input\r\n            }], columnVisibilityChange: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Full Screen Modal Service.\r\n * Is responsible to offers and API so others components could interact with the FullScreen Modal Component\r\n */\r\nclass FullScreenModalService {\r\n    /**\r\n     * Constructs this component\r\n     *\r\n     * @param domService Service responsible to interact with DOM\r\n     */\r\n    constructor(domService) {\r\n        this.domService = domService;\r\n    }\r\n    /**\r\n     * Show the full screen modal component\r\n     *\r\n     * @param component Component that will be injected inside of the full screen modal component.\r\n     * @param properties Property values of component that will be injected.\r\n     * @param customInjector Custom DI container to injected component.\r\n     */\r\n    show(component, properties, customInjector) {\r\n        this.injectedModalComponentRef = this.domService.appendComponentToBodyAndGetReference(FullScreenModalComponent, { component, properties, customInjector }, undefined, false);\r\n    }\r\n    /**\r\n     * Hides the full screen modal component\r\n     */\r\n    hide() {\r\n        this.injectedModalComponentRef.destroy();\r\n        this.injectedModalComponentRef = null;\r\n    }\r\n}\r\nFullScreenModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FullScreenModalService, deps: [{ token: i1$2.DomService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nFullScreenModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FullScreenModalService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FullScreenModalService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$2.DomService }]; } });\n\nclass ModalService {\r\n    constructor(modalService) {\r\n        this.modalService = modalService;\r\n    }\r\n    showModal(component, params, size, onClose, onDismiss, customClass) {\r\n        // verify if size has the right value\r\n        // by default the large ('lg') size will be used\r\n        if (!size || ['sm', 'md', 'lg'].indexOf(size) < 0) {\r\n            size = 'lg';\r\n        }\r\n        const config = {\r\n            class: `modal-${size}`,\r\n            backdrop: 'static'\r\n        };\r\n        if (customClass) {\r\n            config.class = `${config.class} ${customClass}`;\r\n        }\r\n        const bsModelRef = this.modalService.show(component, config);\r\n        const closeFn = (res) => {\r\n            bsModelRef.hide();\r\n            if (onClose) {\r\n                onClose(res);\r\n            }\r\n        };\r\n        const dismissFn = () => {\r\n            bsModelRef.hide();\r\n            if (onDismiss) {\r\n                onDismiss();\r\n            }\r\n        };\r\n        // add custom parameters\r\n        if (params) {\r\n            for (const property in params) {\r\n                if (Object.prototype.hasOwnProperty.call(params, property)) {\r\n                    bsModelRef.content[property] = params[property];\r\n                }\r\n            }\r\n        }\r\n        // add close and dismiss functions;\r\n        bsModelRef.content.close = closeFn;\r\n        bsModelRef.content.dismiss = dismissFn;\r\n        bsModelRef.content.size = size;\r\n        // subscribe on hidden event\r\n        this.onHideSubscription = this.modalService.onHidden.subscribe((reason) => {\r\n            // the \"reason\" is only not null when the modal is dismissed using the \"esc\" key\r\n            // or when the backdrop (gray area around the modal) is clicked\r\n            if (reason && onDismiss) {\r\n                onDismiss();\r\n            }\r\n            this.onHideSubscription.unsubscribe();\r\n            this.onHideSubscription = null;\r\n        });\r\n        return bsModelRef;\r\n    }\r\n}\r\nModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalService, deps: [{ token: i1$5.BsModalService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ModalService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$5.BsModalService }]; } });\n\nclass CommandHandlerService {\r\n    constructor(messagesService) {\r\n        this.messagesService = messagesService;\r\n    }\r\n    /**\r\n     * Responsible to execute 'actions' base on action type\r\n     *\r\n     * @param data the action from server response\r\n     */\r\n    actionsHandler(data) {\r\n        if (data && data != null && data.actions && data.actions != null) {\r\n            const validations = data.actions[0];\r\n            this.executeShowMessageAction(validations);\r\n        }\r\n        else {\r\n            const validations = { messageType: 'Error', value: 'Bad request!' };\r\n            this.executeShowMessageAction(validations);\r\n        }\r\n    }\r\n    /**\r\n     * Responsible to execute 'show message' action type\r\n     *\r\n     * @param result the returned action from server\r\n     * @param callback the method to call if message type is 'Question' and the answer is yes\r\n     */\r\n    executeShowMessageAction(result, callback = undefined) {\r\n        switch (result.messageType) {\r\n            case 'None':\r\n                // do nothing\r\n                break;\r\n            case 'Question':\r\n                this.messagesService.showModal({\r\n                    detail: result.value,\r\n                    callbacks: {\r\n                        yes: () => {\r\n                            callback.apply();\r\n                        },\r\n                        no: () => { } // close modal\r\n                    }\r\n                });\r\n                break;\r\n            default:\r\n                this.messagesService.show(new MessageInfo(result.value, '', MessageInfo.getMessageTypeFromString(result.messageType)));\r\n                break;\r\n        }\r\n    }\r\n}\r\nCommandHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CommandHandlerService, deps: [{ token: MessagesService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nCommandHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CommandHandlerService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CommandHandlerService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: MessagesService }]; } });\n\n/* eslint-disable @typescript-eslint/dot-notation */\r\nclass DraftModel {\r\n    constructor(http, module, service, mode, companyDependent, i18nService, windowService, sequentialRequest) {\r\n        this.http = http;\r\n        this.module = module;\r\n        this.service = service;\r\n        this.mode = mode;\r\n        this.companyDependent = companyDependent;\r\n        this.i18nService = i18nService;\r\n        this.windowService = windowService;\r\n        this.sequentialRequest = sequentialRequest;\r\n        /** Emits an event with the draft object after his creation on the server */\r\n        this.onDraftCreation = new EventEmitter();\r\n    }\r\n    create(state) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl('new/' + state)).subscribe((d) => {\r\n                const object = d;\r\n                this.onDraftCreation.emit(object);\r\n                resolve(object);\r\n            }, (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    createExtension(id, state, mode) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id + '/' + mode + '/' + state)).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getExtension(id) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, 'get')).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    createLine(id, name) {\r\n        const uri = this.buildUrl(id, name, 'new');\r\n        return new Promise((resolve, reject) => {\r\n            this.sequentialRequest.invoke(this.http.get(uri)).subscribe((data) => {\r\n                if (data instanceof HttpErrorResponse) {\r\n                    if (data.error instanceof Error) {\r\n                        reject(data.error);\r\n                    }\r\n                    else {\r\n                        reject(data);\r\n                    }\r\n                }\r\n                else {\r\n                    resolve(data);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    createLineAbove(id, name, referenceLineId) {\r\n        const uri = this.buildUrl(id, name, referenceLineId, 'newAbove');\r\n        return new Promise((resolve, reject) => {\r\n            this.sequentialRequest.invoke(this.http.get(uri)).subscribe((data) => {\r\n                if (data instanceof HttpErrorResponse) {\r\n                    if (data.error instanceof Error) {\r\n                        reject(data.error);\r\n                    }\r\n                    else {\r\n                        reject(data);\r\n                    }\r\n                }\r\n                else {\r\n                    resolve(data);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    createLineClone(id, name, lineId) {\r\n        const uri = this.buildUrl(id, name, lineId, 'clone');\r\n        return new Promise((resolve, reject) => {\r\n            this.sequentialRequest.invoke(this.http.get(uri)).subscribe((data) => {\r\n                if (data instanceof HttpErrorResponse) {\r\n                    if (data.error instanceof Error) {\r\n                        reject(data.error);\r\n                    }\r\n                    else {\r\n                        reject(data);\r\n                    }\r\n                }\r\n                else {\r\n                    resolve(data);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    deleteLine(id, name, lineId) {\r\n        const uri = this.buildUrl(id, name, lineId, 'delete');\r\n        return new Promise((resolve, reject) => {\r\n            this.sequentialRequest.invoke(this.http.delete(uri)).subscribe((data) => {\r\n                if (data instanceof HttpErrorResponse) {\r\n                    if (data.error instanceof Error) {\r\n                        reject(data.error);\r\n                    }\r\n                    else {\r\n                        reject(data);\r\n                    }\r\n                }\r\n                else {\r\n                    resolve(data);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getLineAditionalActionsModel(id, name, lineId, aditionalActionsOperationName) {\r\n        const uri = this.buildUrl(id, name, lineId, aditionalActionsOperationName);\r\n        return new Promise((resolve, reject) => {\r\n            this.http.delete(uri).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getLines(id, name, page, size, filterSelected, searchTerm) {\r\n        let uri = this.buildUrl(id, name, (page || 1).toString(), (size || 1000).toString(), filterSelected ? 'selected' : '');\r\n        if (searchTerm) {\r\n            uri += `?search=${searchTerm}`;\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(uri).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getStuff(id, name, lineId, operation) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, name, lineId, operation)).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    reset(id) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.delete(this.buildUrl(id + '/reset')).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    changeHistory(id) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id + '/changehistory')).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    get(id, type, fromDraft = true) {\r\n        const uri = fromDraft ? this.buildUrl(id, 'draft', type) : this.buildUrl(id, type);\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(uri).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    edit(id, state) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, 'edit/' + state)).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    clone(id, operation) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, 'clone/' + operation)).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    secondaryAction(id, operation, version, responseType = 'json') {\r\n        return new Promise((resolve, reject) => {\r\n            const url = this.buildUrl(id, operation);\r\n            // \"as 'json'\" workaround due to this angular issue: https://github.com/angular/angular/issues/18586\r\n            const options = {\r\n                observe: 'response',\r\n                responseType: responseType,\r\n                headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n            };\r\n            this.http.post(url, version, options).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    validationAction(id, operation, version) {\r\n        const requestOptions = {\r\n            headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n        };\r\n        return new Promise((resolve, reject) => {\r\n            this.http.post(this.buildUrl(id, operation), version, requestOptions).subscribe((data) => {\r\n                try {\r\n                    resolve(data);\r\n                }\r\n                catch (error) {\r\n                    resolve('');\r\n                }\r\n            }, (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getEntity(id) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, 'get')).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    lookup(id, propertyName, search, detailId, detailPropertyName, isCustomAttribute, naturalKey) {\r\n        const searchProperty = detailPropertyName || propertyName;\r\n        const masterProperty = detailPropertyName ? propertyName : undefined;\r\n        const currentCompany = this.companyDependent.getCurrentCompany();\r\n        let companyFilterExpression = '';\r\n        if (currentCompany) {\r\n            companyFilterExpression = '&companyId=' + currentCompany.id;\r\n        }\r\n        let url = this.buildUrl(id, masterProperty, detailId, 'lookup', `${searchProperty}?$search=${search}${companyFilterExpression}`);\r\n        if (isCustomAttribute) {\r\n            url = this.buildUrl(id, 'customlookup', naturalKey.replace('.', '/'));\r\n            url += `?$search=${search}${companyFilterExpression}`;\r\n        }\r\n        return this.http.get(url).pipe(tap$1((x) => {\r\n            // append search term on response\r\n            x.searchTerm = search;\r\n        }));\r\n    }\r\n    imageUpload(id, propertyName, image) {\r\n        let url;\r\n        if (id) {\r\n            url = this.buildUrl(id, propertyName);\r\n        }\r\n        else {\r\n            url = this.buildUrl(propertyName);\r\n        }\r\n        return this.http.put(url, image).pipe(map((res, err) => res, catchError((err) => {\r\n            if (err.error instanceof Error) {\r\n                return err.error;\r\n            }\r\n            else {\r\n                throwError(() => new Error(err));\r\n            }\r\n        })));\r\n    }\r\n    valueList(propertyName, parent, isCustomAttribute, naturalKey, isRequired) {\r\n        let url = this.buildUrl(parent, 'lookup', `${propertyName}?$search=${undefined}`);\r\n        if (isCustomAttribute) {\r\n            url = this.buildUrl('customlookupvaluelist', naturalKey.replace('.', '/'));\r\n            url += '?isrequired=' + isRequired;\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(url).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    valueListCustom(dataSource) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(dataSource)).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    commandAction(operation, model) {\r\n        const requestOptions = {\r\n            headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n        };\r\n        return new Promise((resolve, reject) => {\r\n            this.http.post(this.buildUrl(operation), model, requestOptions).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    recordSearch(search) {\r\n        const url = this.buildUrl(`search?$search=${search}`);\r\n        return this.http.get(url);\r\n    }\r\n    getExpander(id, expander) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(id, expander)).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    update(id, name, value, detailId, detailName, queryParams) {\r\n        return new Promise((resolve, reject) => {\r\n            const isCustomAttribute = detailId ? detailName.startsWith('custom_') : name.startsWith('custom_');\r\n            if (isCustomAttribute) {\r\n                value = { value };\r\n            }\r\n            if (this.mode === DraftStoringStrategy.InMemory &&\r\n                (Object.values(DraftOperationEnum).includes(name) || detailId)) {\r\n                switch (name) {\r\n                    case DraftOperationEnum.SelectedMultipleLines:\r\n                        let i;\r\n                        for (i = 0; i < value.length; i++) {\r\n                            // We don't know if the item is behind added or removed from the picking selection.\r\n                            // The code bellow determines that.\r\n                            // Disclaimer: when selectAll is toggled, the selectedItems array is ignored in the server\r\n                            // Only the unselectedItems array is considered\r\n                            const lineId = value[i];\r\n                            const unselectedIndex = this.pickingTrackedChanges.unselectedItems.indexOf(lineId);\r\n                            // Check if the item is the selected items array\r\n                            if (this.pickingTrackedChanges.allItemsSelected) {\r\n                                if (unselectedIndex === -1) {\r\n                                    // Add it to the unselected items array (if it was not previously there)\r\n                                    this.pickingTrackedChanges.unselectedItems.push(lineId);\r\n                                }\r\n                                else {\r\n                                    // Remove it from the unselected items array (if it was previously there)\r\n                                    this.pickingTrackedChanges.unselectedItems.splice(unselectedIndex, 1);\r\n                                }\r\n                            }\r\n                        }\r\n                        break;\r\n                    case DraftOperationEnum.SelectAll:\r\n                        this.pickingTrackedChanges.unselectedItems = [];\r\n                        this.pickingTrackedChanges.allItemsSelected = true;\r\n                        break;\r\n                    case DraftOperationEnum.UnselectAll:\r\n                        this.pickingTrackedChanges.unselectedItems = [];\r\n                        this.pickingTrackedChanges.allItemsSelected = false;\r\n                        break;\r\n                    default:\r\n                        break;\r\n                }\r\n                if (detailId) {\r\n                    resolve({\r\n                        changes: {\r\n                            [name]: [\r\n                                {\r\n                                    id: detailId,\r\n                                    [detailName]: value\r\n                                }\r\n                            ]\r\n                        }\r\n                    });\r\n                }\r\n                else {\r\n                    resolve({\r\n                        changes: {},\r\n                        result: value ? value.map(() => ({ actions: [], validations: [], draftState: 0 })) : null\r\n                    });\r\n                }\r\n            }\r\n            else {\r\n                let uri = detailId\r\n                    ? this.buildUrl(id, name, detailId, isCustomAttribute ? 'customAttributes' : '', detailName)\r\n                    : this.buildUrl(id, isCustomAttribute ? 'customAttributes' : '', name, detailId, detailName);\r\n                if (queryParams) {\r\n                    let paramUri;\r\n                    for (const prop in queryParams) {\r\n                        if (Object.prototype.hasOwnProperty.call(queryParams, prop)) {\r\n                            const itemValue = queryParams[prop];\r\n                            if (paramUri) {\r\n                                paramUri = `${paramUri}&${prop}=${itemValue}`;\r\n                            }\r\n                            else {\r\n                                paramUri = `?${prop}=${itemValue}`;\r\n                            }\r\n                        }\r\n                    }\r\n                    uri = uri + paramUri;\r\n                }\r\n                const requestOptions = {\r\n                    headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n                };\r\n                this.sequentialRequest\r\n                    .invoke(this.http.put(uri, JSON.stringify(value), requestOptions))\r\n                    .subscribe((data) => {\r\n                    if (data instanceof HttpErrorResponse) {\r\n                        if (data.error instanceof Error) {\r\n                            reject(data.error);\r\n                        }\r\n                        else {\r\n                            reject(data);\r\n                        }\r\n                    }\r\n                    else {\r\n                        resolve(data);\r\n                    }\r\n                });\r\n            }\r\n        });\r\n    }\r\n    save(id, version) {\r\n        const requestOptions = {\r\n            headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n        };\r\n        return new Promise((resolve, reject) => {\r\n            this.http.post(this.buildUrl(id, 'save'), version, requestOptions).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    saveAndNew(id, version) {\r\n        const requestOptions = {\r\n            headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n        };\r\n        return new Promise((resolve, reject) => {\r\n            this.http.post(this.buildUrl(id, 'saveAndNew'), version, requestOptions).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    deleteDraft(documentId = '') {\r\n        return new Promise((resolve, reject) => {\r\n            if (documentId && this.draftId && this.draftId.toLowerCase() === documentId.toLowerCase()) {\r\n                reject(new MessageInfo(this.i18nService.get(`ngcore.components.RES_Draft_DeleteDraftWhenEditionErrorMessage`), '', 8 /* MessageType.Error */));\r\n            }\r\n            else {\r\n                this.http.delete(this.buildUrl(documentId, 'delete')).subscribe((d) => resolve(d), (err) => {\r\n                    if (err.error instanceof Error) {\r\n                        reject(err.error);\r\n                    }\r\n                    else {\r\n                        reject(err);\r\n                    }\r\n                });\r\n            }\r\n        });\r\n    }\r\n    delete(documentId = '') {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.delete(this.buildUrl(documentId, 'delete')).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    process(id, serviceAction, version, responseType = 'json') {\r\n        const requestOptions = {\r\n            observe: 'response',\r\n            responseType: responseType,\r\n            headers: new HttpHeaders().set('Content-Type', 'application/json')\r\n        };\r\n        return new Promise((resolve, reject) => {\r\n            this.http.post(this.buildUrl(id + '/' + serviceAction), version, requestOptions).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    // Picking batch select request\r\n    batchSelect(id, service, model, originalModel, editableFields) {\r\n        const body = this.getPickingChanges(model, originalModel, editableFields);\r\n        return new Promise((resolve, reject) => {\r\n            this.http.put(this.buildUrl(id, service), body).subscribe((data) => {\r\n                resolve(data);\r\n            }, (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getCustom(dataSource) {\r\n        return new Promise((resolve, reject) => {\r\n            this.http.get(this.buildUrl(dataSource)).subscribe((data) => resolve(data), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getParameterByName(name, url) {\r\n        if (!url) {\r\n            url = window.location.href;\r\n        }\r\n        name = name.replace(/[\\[\\]]/g, '\\\\$&');\r\n        const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)');\r\n        const results = regex.exec(url);\r\n        if (!results) {\r\n            return null;\r\n        }\r\n        if (!results[2]) {\r\n            return '';\r\n        }\r\n        return decodeURIComponent(results[2].replace(/\\+/g, ' '));\r\n    }\r\n    getPickingChanges(model, originalModel, editableFields) {\r\n        let selectedItems = [];\r\n        const bulkChanges = this.pickingTrackedChanges.allItemsSelected\r\n            ? this.bulkDataPlain(this.pickingTrackedChanges.bulkChanges)\r\n            : {};\r\n        model.forEach((line) => {\r\n            if (line.selected) {\r\n                const changes = {};\r\n                const lineOriginal = originalModel.find((m) => m.id === line.id);\r\n                editableFields.forEach((field) => {\r\n                    if (line[field] !== bulkChanges[field] &&\r\n                        (line[field] !== lineOriginal[field] ||\r\n                            (line[field] === lineOriginal[field] && Object.keys(bulkChanges).includes(field)))) {\r\n                        Object.assign(changes, { [field]: line[field] });\r\n                    }\r\n                });\r\n                selectedItems.push({\r\n                    id: line.id,\r\n                    changes\r\n                });\r\n            }\r\n        });\r\n        selectedItems = selectedItems.concat(this.pickingTrackedChanges.selectedItems);\r\n        return {\r\n            allItemsSelected: this.pickingTrackedChanges.allItemsSelected,\r\n            selectedItems,\r\n            unselectedItems: this.pickingTrackedChanges.unselectedItems,\r\n            bulkChanges\r\n        };\r\n    }\r\n    buildUrl(...path) {\r\n        const p = path.filter(Boolean).join('/');\r\n        if (this.parentPath) {\r\n            return `/app/${this.module}/${this.service}/${this.parentPath}/${p}`;\r\n        }\r\n        return `/app/${this.module}/${this.service}/${p}`;\r\n    }\r\n    /** Gets the draft id from url */\r\n    get draftId() {\r\n        return this.getParameterByName('id', this.windowService.href);\r\n    }\r\n    bulkDataPlain(bulkData) {\r\n        const detailArray = {};\r\n        Object.values(bulkData).forEach((model) => {\r\n            Object.assign(detailArray, model);\r\n        });\r\n        return detailArray;\r\n    }\r\n}\r\nclass DraftModelService {\r\n    constructor(http, companyDependent, i18nService, windowService, routeHelperService, sequentialRequest) {\r\n        this.http = http;\r\n        this.companyDependent = companyDependent;\r\n        this.i18nService = i18nService;\r\n        this.windowService = windowService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.sequentialRequest = sequentialRequest;\r\n        this.defaultMode = DraftStoringStrategy.Server;\r\n    }\r\n    /** Gets the draft id from url */\r\n    get draftIds() {\r\n        const parameters = this.routeHelperService.getParametersFromUri();\r\n        return {\r\n            id: parameters['id'],\r\n            popupid: parameters['popupid'],\r\n            panelid: parameters['panelid']\r\n        };\r\n    }\r\n    /**\r\n     * Return the draft Id of the current context.\r\n     * If two documents are open in the same url, the id return will correspond to the document which the user\r\n     * is interacting with.\r\n     */\r\n    get draftId() {\r\n        const draftIds = this.draftIds;\r\n        if (draftIds.id) {\r\n            return draftIds.id;\r\n        }\r\n        else if (draftIds.panelid) {\r\n            return draftIds.panelid;\r\n        }\r\n        else {\r\n            return draftIds.id;\r\n        }\r\n    }\r\n    build(module, service, mode) {\r\n        if (!mode) {\r\n            mode = this.defaultMode;\r\n        }\r\n        return new DraftModel(this.http, module, service, mode, this.companyDependent, this.i18nService, this.windowService, this.sequentialRequest);\r\n    }\r\n    delete(documentId = '') {\r\n        return this.build('corePatterns', 'drafts').deleteDraft(documentId);\r\n    }\r\n    /**\r\n     * Gets the draft id based on a given outlet.\r\n     *\r\n     * @outlet The outlet.\r\n     * @return The draft Id.\r\n     */\r\n    getDraftId(outlet) {\r\n        switch (outlet) {\r\n            case \"primary\" /* OutletEnum.Primary */:\r\n                return this.draftIds.id;\r\n            case \"popup\" /* OutletEnum.Popup */:\r\n                return this.draftIds.popupid;\r\n            case \"panel\" /* OutletEnum.Panel */:\r\n                return this.draftIds.panelid;\r\n        }\r\n    }\r\n}\r\nDraftModelService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftModelService, deps: [{ token: i1$4.HttpClient }, { token: i1$2.CompanyDependentService }, { token: i2$3.I18nService }, { token: i1$2.WindowService }, { token: i1$2.RouteHelperService }, { token: i1$2.SequentialRequest }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDraftModelService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftModelService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftModelService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: i1$2.CompanyDependentService }, { type: i2$3.I18nService }, { type: i1$2.WindowService }, { type: i1$2.RouteHelperService }, { type: i1$2.SequentialRequest }]; } });\n\nclass HelpPageService {\r\n    /**\r\n     * Creates an instance of help page service.\r\n     *\r\n     * @param _broadcastService Broadcast Service\r\n     * @param appContextService AppContextService with server side details\r\n     * @param userSettingsService User Settings details service\r\n     * @param StorageService Cash service\r\n     * @param httpClient HTTP Requests service\r\n     * @param MessageService Service responsible for showing messages\r\n     * @param I18nService Service responsible to handle language translations\r\n     * @param ExceptionHandlerService Service responsible for handling exceptions\r\n     */\r\n    constructor(appContextService, httpClient, messageService, i18nService, exceptionHandlerService, wildcardService) {\r\n        this.appContextService = appContextService;\r\n        this.httpClient = httpClient;\r\n        this.messageService = messageService;\r\n        this.i18nService = i18nService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.wildcardService = wildcardService;\r\n        this.help = {\r\n            delegate: null,\r\n            helpPageData: null,\r\n            currentContextHelpPageId: null,\r\n            helpPageAvailable: false,\r\n            availableHelpPageIds: null,\r\n            helpPageTaskQueue: []\r\n        };\r\n        this.defaultContextHelpPageId = 'default';\r\n    }\r\n    /**\r\n     * Opens help center page\r\n     */\r\n    openHelpCenterPage(setting) {\r\n        const url = setting.url ?? this.appContextService.getHelpCenterBaseUrl();\r\n        this.openUrlNewWindow(url);\r\n    }\r\n    /**\r\n     * Shows current context help page\r\n     *\r\n     * @param [showOnce] boolean with value show once or not\r\n     */\r\n    showCurrentContextHelpPage(showOnce = false) { }\r\n    /**\r\n     * Shows shortcuts help page\r\n     */\r\n    showShortcutsHelpPage(shortcutsButton) {\r\n        const url = shortcutsButton.url;\r\n        // eslint-disable-next-line max-len\r\n        this.openUrlNewWindow(url, 'Shortcuts', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1220,height=730');\r\n    }\r\n    /**\r\n     * Sets default context help page id\r\n     */\r\n    setDefaultContextHelpPageId() {\r\n        this.setCurrentContextHelpPageId(this.defaultContextHelpPageId);\r\n    }\r\n    /**\r\n     * Helps page available\r\n     *\r\n     * @param helpPageId help page from db\r\n     * @returns true if page is available\r\n     */\r\n    helpPageAvailable(helpPageId) {\r\n        if (this.help.availableHelpPageIds == null) {\r\n            return false;\r\n        }\r\n        if (!helpPageId || helpPageId == null) {\r\n            return false;\r\n        }\r\n        return this.help.availableHelpPageIds.indexOf(helpPageId) >= 0;\r\n    }\r\n    /**\r\n     * Shows help page\r\n     *\r\n     * @param helpPageId help page from db\r\n     * @returns true if help page is available\r\n     */\r\n    showHelpPage(helpPageId) {\r\n        if (!this.isServiceReady()) {\r\n            this.help.helpPageTaskQueue.push(() => {\r\n                const helpPageIdAux = helpPageId;\r\n                this.showHelpPage(helpPageIdAux);\r\n            });\r\n            return false;\r\n        }\r\n        if (!this.helpPageAvailable(helpPageId)) {\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    /**\r\n     * Opens new window\r\n     *\r\n     * @param address string url\r\n     */\r\n    // eslint-disable-next-line @typescript-eslint/no-shadow\r\n    openNewWindow(address, target, features) {\r\n        this.httpClient.get(address).subscribe((result) => {\r\n            if (result != null) {\r\n                const newWin = window.open(result, target, features);\r\n                if (!newWin || newWin.closed || typeof newWin.closed === 'undefined') {\r\n                    this.messageService.showModal({\r\n                        detail: this.i18nService.get('ngcore.components.RES_Print_CanPrint'),\r\n                        type: 'warning',\r\n                        callbacks: {\r\n                            yes: () => {\r\n                                window.open(result);\r\n                            },\r\n                            no: () => { }\r\n                        }\r\n                    });\r\n                }\r\n            }\r\n        }, (error) => {\r\n            this.exceptionHandlerService.showError(error);\r\n        });\r\n    }\r\n    /**\r\n     * Opens new window\r\n     *\r\n     * @param url string url\r\n     */\r\n    openUrlNewWindow(url, target, features) {\r\n        if (url) {\r\n            this.wildcardService.formatOperation(url).subscribe((newUrl) => {\r\n                const newWin = window.open(url, target, features);\r\n                if (!newWin || newWin.closed || typeof newWin.closed === 'undefined') {\r\n                    this.messageService.showModal({\r\n                        detail: this.i18nService.get('ngcore.components.RES_Print_CanPrint'),\r\n                        type: 'warning',\r\n                        callbacks: {\r\n                            yes: () => {\r\n                                window.open(newUrl);\r\n                            },\r\n                            no: () => { }\r\n                        }\r\n                    });\r\n                }\r\n            }, (error) => {\r\n                console.log(`An error occurred while formating url: ` + url);\r\n                this.exceptionHandlerService.showError(error, false);\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Determines whether service ready is\r\n     *\r\n     * @returns true if service ready\r\n     */\r\n    isServiceReady() {\r\n        return this.help.availableHelpPageIds != null;\r\n    }\r\n    /**\r\n     * Sets current context help page id\r\n     *\r\n     * @param pageId from db\r\n     */\r\n    setCurrentContextHelpPageId(pageId) {\r\n        this.help.currentContextHelpPageId = pageId;\r\n    }\r\n}\r\nHelpPageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HelpPageService, deps: [{ token: i1$2.AppContextService }, { token: i1$4.HttpClient }, { token: MessagesService }, { token: i2$3.I18nService }, { token: ExceptionHandlerService }, { token: i1$2.WildcardService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nHelpPageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HelpPageService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HelpPageService, decorators: [{\r\n            type: Injectable,\r\n            args: [{ providedIn: 'root' }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AppContextService }, { type: i1$4.HttpClient }, { type: MessagesService }, { type: i2$3.I18nService }, { type: ExceptionHandlerService }, { type: i1$2.WildcardService }]; } });\n\n/**\r\n * Service responsible to create and show a Popover component\r\n */\r\nclass PopoverService {\r\n    constructor(domService) {\r\n        this.domService = domService;\r\n        this.recalculatePosition = new EventEmitter();\r\n        this.updateContext = new EventEmitter();\r\n    }\r\n    /**\r\n     * Responsible to create and show a popover\r\n     *\r\n     * @param anchorElementRef\r\n     * @param content\r\n     * @param context\r\n     * @param size\r\n     * @param onResize\r\n     */\r\n    showPopover(anchorElementRef, content, context, size, onResize = null) {\r\n        if (this.onDismiss) {\r\n            this.onDismiss();\r\n            this.onDismiss = undefined;\r\n        }\r\n        let onClose;\r\n        const promise = new Promise((resolve, reject) => {\r\n            onClose = resolve;\r\n            this.onDismiss = reject;\r\n        });\r\n        this.recalculatePosition = new EventEmitter();\r\n        const popoverContext = {\r\n            anchorElementRef,\r\n            content,\r\n            context,\r\n            size,\r\n            onDismissCallback: this.onDismiss,\r\n            onCloseCallback: onClose,\r\n            recalculatePosition: this.recalculatePosition,\r\n            updateContext: this.updateContext,\r\n            onResize\r\n        };\r\n        // Waits for the javascript handle other popup close events before append\r\n        // the PopoverComponent to the dom tree.\r\n        setTimeout(() => {\r\n            this.dismissView = this.domService.appendComponentToBody(PopoverComponent, popoverContext);\r\n        });\r\n        return promise;\r\n    }\r\n    /**\r\n     * Responsible to hide de popover\r\n     */\r\n    hidePopover() {\r\n        if (this.dismissView) {\r\n            this.dismissView();\r\n            this.onDismiss = undefined;\r\n        }\r\n    }\r\n    calculatePosition(size) {\r\n        this.recalculatePosition.emit(size);\r\n    }\r\n    /**\r\n     * Responsible to update the context of the popover\r\n     *\r\n     * @param context object that contains the popover context\r\n     */\r\n    updateToNewContext(context) {\r\n        this.updateContext.emit(context);\r\n    }\r\n}\r\nPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PopoverService, deps: [{ token: i1$2.DomService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PopoverService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PopoverService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$2.DomService }]; } });\n\n/**\r\n * Service used as an interceptor to change view/list behavior when it comes\r\n * from server. Use cases go through, for example, intercept the view definition\r\n * with the role definition, allowing view adjustments based on role.\r\n */\r\nclass RoleInterceptorService {\r\n    constructor(appContextService, router, exceptionHandlerService, routeHelperService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.router = router;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.roleService = roleService;\r\n        this.configurationActionsAllowed = [];\r\n        this.allowedOperations = this.extractAllowedOperationsFromDefinition(this.roleService.roleDefinition);\r\n    }\r\n    /**\r\n     * Intercepts the view definition with the user's role definition\r\n     *\r\n     * @param viewDef The view definition\r\n     */\r\n    interceptViewDefinition(viewDef) {\r\n        if (this.allowedOperations) {\r\n            // View definition\r\n            if (viewDef.viewDefinition) {\r\n                for (const row in viewDef.viewDefinition) {\r\n                    if (Object.prototype.hasOwnProperty.call(viewDef.viewDefinition, row)) {\r\n                        this.interceptViewRow(viewDef.viewDefinition[row]);\r\n                    }\r\n                }\r\n            }\r\n            // Operation actions\r\n            if (viewDef.operationActions) {\r\n                this.interceptOperationActions(viewDef.operationActions);\r\n            }\r\n        }\r\n        else {\r\n            this.exceptionHandlerService.showError({ status: 403 });\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts the list configuration with the user's role definition\r\n     *\r\n     * @param listConfig The list configuration\r\n     */\r\n    interceptListConfiguration(listConfig) {\r\n        let updateOperationId;\r\n        if (this.allowedOperations) {\r\n            // Intercept update actions\r\n            if (listConfig && listConfig.updateAction && listConfig.updateAction.uri) {\r\n                updateOperationId = listConfig.updateAction.operationId;\r\n                if (updateOperationId && !this.allowedOperations.includes(updateOperationId)) {\r\n                    listConfig.updateAction = undefined;\r\n                }\r\n            }\r\n            // Intercept create actions\r\n            if (listConfig && listConfig.createActions) {\r\n                for (const action in listConfig.createActions) {\r\n                    if (listConfig.createActions[action] && listConfig.createActions[action].uri) {\r\n                        const createOperationId = listConfig.createActions[action].operationId;\r\n                        if (createOperationId && !this.allowedOperations.includes(createOperationId)) {\r\n                            listConfig.createActions.splice(action, 1);\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            // Intercept generic actions\r\n            if (listConfig && listConfig.genericActions) {\r\n                for (const action in listConfig.genericActions) {\r\n                    if (listConfig.genericActions[action] && listConfig.genericActions[action].uri) {\r\n                        const createOperationId = listConfig.genericActions[action].operationId;\r\n                        if (createOperationId && !this.allowedOperations.includes(createOperationId)) {\r\n                            listConfig.genericActions.splice(action, 1);\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            // Intercept list customization\r\n            if (listConfig && listConfig.listSetup && listConfig.listSetup.allowsusercustomization) {\r\n                const customizationOperationId = this.routeHelperService.getCustomizationOperationIdFromListConfigurationUri(this.router.url);\r\n                if (customizationOperationId && !this.allowedOperations.includes(customizationOperationId)) {\r\n                    listConfig.listSetup.allowsusercustomization = false;\r\n                }\r\n            }\r\n            // Intercept columns drill downs\r\n            if (listConfig && listConfig.listConfigSerialized) {\r\n                const config = JSON.parse(listConfig.listConfigSerialized);\r\n                for (const index in config) {\r\n                    if (config[index].drillDown && !config[index].uri) {\r\n                        if (updateOperationId && !this.allowedOperations.includes(updateOperationId)) {\r\n                            config[index].drillDown = false;\r\n                        }\r\n                    }\r\n                    else if (config[index].uri) {\r\n                        const operationId = this.routeHelperService.getOperationIdFromListConfigurationUri(config[index].uri);\r\n                        if (operationId && !this.allowedOperations.includes(operationId)) {\r\n                            config[index].uri = null;\r\n                        }\r\n                    }\r\n                }\r\n                listConfig.listConfigSerialized = JSON.stringify(config);\r\n            }\r\n        }\r\n        else {\r\n            this.exceptionHandlerService.showError({ status: 403 });\r\n        }\r\n    }\r\n    /**\r\n     * Check if role has access to at least one of the specified operation identifiers as promise\r\n     *\r\n     * @param operationIds The operation identifiers\r\n     */\r\n    checkOperationAccessPromise(operationIds) {\r\n        return new Promise((resolve) => {\r\n            resolve(this.checkOperationAccess(operationIds));\r\n        });\r\n    }\r\n    /**\r\n     * Check if role has access to at least one of the specified operation identifiers\r\n     *\r\n     * @param operationIds The operation identifiers\r\n     */\r\n    checkOperationAccess(operationIds) {\r\n        for (const id in operationIds) {\r\n            if (this.allowedOperations.includes(operationIds[id])) {\r\n                return true;\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n    /**\r\n     * Intercepts the view operation actions with the user's role definition\r\n     *\r\n     * @param operationActions The operation actions to be evaluated\r\n     */\r\n    interceptOperationActions(operationActions) {\r\n        // Context actions\r\n        if (operationActions.contextActions) {\r\n            for (const action in operationActions.contextActions) {\r\n                if (Object.prototype.hasOwnProperty.call(operationActions.contextActions, action)) {\r\n                    this.interceptContextAction(operationActions.contextActions[action]);\r\n                }\r\n            }\r\n        }\r\n        // Other actions\r\n        if (operationActions.otherActions && operationActions.otherActions.edit) {\r\n            for (const action in operationActions.otherActions) {\r\n                if (operationActions.otherActions[action]) {\r\n                    this.interceptOtherAction(operationActions.otherActions[action]);\r\n                }\r\n            }\r\n        }\r\n        // Secondary actions\r\n        if (operationActions.secondaryAction) {\r\n            for (const action in operationActions.secondaryAction) {\r\n                if (Object.prototype.hasOwnProperty.call(operationActions.secondaryAction, action)) {\r\n                    this.interceptSecondaryAction(operationActions.secondaryAction[action]);\r\n                }\r\n            }\r\n        }\r\n        // configuration Actions\r\n        if (operationActions.configurationActions) {\r\n            this.configurationActionsAllowed = [];\r\n            for (const action in operationActions.configurationActions) {\r\n                if (Object.prototype.hasOwnProperty.call(operationActions.configurationActions, action)) {\r\n                    this.interceptConfigurationAction(operationActions.configurationActions[action]);\r\n                }\r\n            }\r\n            operationActions.configurationActions = [];\r\n            Object.assign(operationActions.configurationActions, this.configurationActionsAllowed);\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given row with the user's role definition\r\n     *\r\n     * @param row The row to be evaluated\r\n     */\r\n    interceptViewRow(row) {\r\n        if (row.containerType && (row.containerType === 'Expander' || row.containerType === 'Stepper')) {\r\n            this.interceptViewExpander(row);\r\n        }\r\n        else {\r\n            if (row.columns) {\r\n                for (const column in row.columns) {\r\n                    if (Object.prototype.hasOwnProperty.call(row.columns, column)) {\r\n                        this.interceptViewColumn(row.columns[column]);\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given expander with the user's role definition\r\n     *\r\n     * @param expander The expander to be evaluated\r\n     */\r\n    interceptViewExpander(expander) {\r\n        if (expander.contentType === 'ReferencedView' && expander.expanderDefinition) {\r\n            for (const row in expander.expanderDefinition) {\r\n                if (Object.prototype.hasOwnProperty.call(expander.expanderDefinition, row)) {\r\n                    this.interceptViewRow(expander.expanderDefinition[row]);\r\n                }\r\n            }\r\n        }\r\n        else if (expander.contentType === 'Standard' && expander.columns) {\r\n            for (const column in expander.columns) {\r\n                if (Object.prototype.hasOwnProperty.call(expander.columns, column)) {\r\n                    this.interceptViewColumn(expander.columns[column]);\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given column with the user's role definition\r\n     *\r\n     * @param column The column to be evaluated\r\n     */\r\n    interceptViewColumn(column) {\r\n        if (column.fields) {\r\n            for (const field in column.fields) {\r\n                if (Object.prototype.hasOwnProperty.call(column.fields, field)) {\r\n                    this.interceptViewField(column.fields[field]);\r\n                    // Details\r\n                    if (column.fields[field].fields) {\r\n                        this.interceptViewColumn(column.fields[field]);\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given field with the user's role definition\r\n     *\r\n     * @param field The field to be evaluated\r\n     */\r\n    interceptViewField(field) {\r\n        if (field.drilldown) {\r\n            this.interceptViewDrilldown(field.drilldown);\r\n        }\r\n        if (field.extensibilityConfiguration) {\r\n            this.interceptViewDetailExtensibility(field);\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given drilldown information with the user's role definition\r\n     *\r\n     * @param drilldown The drilldown information to be evaluated\r\n     */\r\n    interceptViewDrilldown(drilldown) {\r\n        // Allows create\r\n        if (drilldown.create &&\r\n            drilldown.createOperationId &&\r\n            !this.allowedOperations.includes(drilldown.createOperationId)) {\r\n            drilldown.create = null;\r\n        }\r\n        // Allows update\r\n        if (drilldown.update &&\r\n            drilldown.viewOperationId &&\r\n            !this.allowedOperations.includes(drilldown.viewOperationId)) {\r\n            drilldown.update = null;\r\n        }\r\n    }\r\n    interceptViewDetailExtensibility(field) {\r\n        if (field.extensibilityConfiguration) {\r\n            let allowedOperationExtensibility = true;\r\n            if (field.extensibilityConfiguration.allowedOperationIds) {\r\n                const allowedOperationIds = field.extensibilityConfiguration.allowedOperationIds;\r\n                allowedOperationExtensibility =\r\n                    allowedOperationIds.length === 0\r\n                        ? false\r\n                        : allowedOperationIds.every((id) => this.allowedOperations.includes(id));\r\n            }\r\n            if (!allowedOperationExtensibility) {\r\n                field.extensibilityConfiguration = undefined;\r\n            }\r\n            else {\r\n                if (!this.appContextService.containsClaims(field.extensibilityConfiguration.allowExtensibilityClaim)) {\r\n                    field.extensibilityConfiguration = undefined;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given context action with the user's role definition\r\n     *\r\n     * @param action The action to be evaluated\r\n     */\r\n    interceptContextAction(action) {\r\n        // Allows create\r\n        if (action.createOperation &&\r\n            action.createOperationId &&\r\n            !this.allowedOperations.includes(action.createOperationId)) {\r\n            action.availableInEditMode = false;\r\n            action.availableInViewMode = false;\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given secondary action with the user's role definition\r\n     *\r\n     * @param action The action to be evaluated\r\n     */\r\n    interceptSecondaryAction(action) {\r\n        if (action.serviceActionId && !this.allowedOperations.includes(action.serviceActionId)) {\r\n            action.availableInEditMode = false;\r\n            action.availableInViewMode = false;\r\n        }\r\n        // Children actions\r\n        if (action.childrenActions) {\r\n            for (const childAction in action.childrenActions) {\r\n                if (Object.prototype.hasOwnProperty.call(action.childrenActions, childAction)) {\r\n                    this.interceptChildrenAction(action.childrenActions[childAction]);\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given configuration action with the user's role definition\r\n     *\r\n     * @param action The action to be evaluated\r\n     */\r\n    interceptConfigurationAction(action) {\r\n        let allowedOperationExtensibility = true;\r\n        if (action.allowedOperationIds) {\r\n            const allowedOperationIds = action.allowedOperationIds;\r\n            allowedOperationExtensibility =\r\n                allowedOperationIds.length === 0\r\n                    ? false\r\n                    : allowedOperationIds.every((id) => this.allowedOperations.includes(id));\r\n        }\r\n        if (allowedOperationExtensibility) {\r\n            this.configurationActionsAllowed.push(action);\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given children action with the user's role definition\r\n     *\r\n     * @param action The action to be evaluated\r\n     */\r\n    interceptChildrenAction(action) {\r\n        if (action.serviceActionId && !this.allowedOperations.includes(action.serviceActionId)) {\r\n            action.availableInEditMode = false;\r\n            action.availableInViewMode = false;\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts a given other action with the user's role definition\r\n     *\r\n     * @param action The action to be evaluated\r\n     */\r\n    interceptOtherAction(action) {\r\n        // Edit action\r\n        if (action.name === 'Edit' &&\r\n            action.editOperationId &&\r\n            !this.allowedOperations.includes(action.editOperationId)) {\r\n            action.availableInEditMode = false;\r\n            action.availableInViewMode = false;\r\n        }\r\n        // Cancel action\r\n        if (action.name === 'Cancel' &&\r\n            action.deleteOperationId &&\r\n            !this.allowedOperations.includes(action.deleteOperationId)) {\r\n            action.availableInEditMode = false;\r\n            action.availableInViewMode = false;\r\n        }\r\n    }\r\n    /**\r\n     * Gets a list of id's of the allowed operations based on role definition\r\n     *\r\n     * @param roleDefinition The role definition\r\n     */\r\n    extractAllowedOperationsFromDefinition(roleDefinition) {\r\n        if (roleDefinition) {\r\n            const json = JSON.parse(roleDefinition);\r\n            if (json) {\r\n                return json.map((o) => o.Id);\r\n            }\r\n        }\r\n        return;\r\n    }\r\n}\r\nRoleInterceptorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleInterceptorService, deps: [{ token: i1$2.AppContextService }, { token: i2$7.Router }, { token: ExceptionHandlerService }, { token: i1$2.RouteHelperService }, { token: i1$2.RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nRoleInterceptorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleInterceptorService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleInterceptorService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AppContextService }, { type: i2$7.Router }, { type: ExceptionHandlerService }, { type: i1$2.RouteHelperService }, { type: i1$2.RoleService }]; } });\n\nclass UsersInvitationEvents {\r\n    constructor(messagesService, formModelService, shellStateService, exceptionHandlerService, eventService, http) {\r\n        this.messagesService = messagesService;\r\n        this.formModelService = formModelService;\r\n        this.shellStateService = shellStateService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.eventService = eventService;\r\n        this.http = http;\r\n        this.destroy$ = new Subject();\r\n        eventService\r\n            .getOnEvent()\r\n            .pipe(filter((formEvent) => formEvent.key === 'ResendInvitation'), takeUntil$1(this.destroy$))\r\n            .subscribe((formEvent) => {\r\n            this.resendInvitation(formEvent);\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    resendInvitation(formEvent) {\r\n        const model = formEvent.model;\r\n        const endpoint = `/app/identity/users/resendInvitation/${model.id}`;\r\n        this.setLoading(true, model, formEvent);\r\n        this.http\r\n            .post(endpoint, undefined)\r\n            .toPromise()\r\n            .then((data) => {\r\n            this.messagesService.show(new MessageInfo(data.message, null, 2 /* MessageType.Success */));\r\n            this.refreshPage(formEvent);\r\n            this.setLoading(false, model, formEvent);\r\n        })\r\n            .catch((error) => {\r\n            this.exceptionHandlerService.showError(error, false);\r\n            this.setLoading(false, model, formEvent);\r\n        });\r\n    }\r\n    setLoading(value, model, formEvent) {\r\n        formEvent.formState.loading = value;\r\n        this.shellStateService.setLoadingState(value);\r\n        this.formModelService.onModelChange(model);\r\n    }\r\n    refreshPage(formEvent) {\r\n        formEvent.eventContext.show(false);\r\n    }\r\n}\r\nUsersInvitationEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UsersInvitationEvents, deps: [{ token: MessagesService }, { token: i1$2.FormModelService }, { token: i1$2.ShellStateService }, { token: ExceptionHandlerService }, { token: i1$2.EventService }, { token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nUsersInvitationEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UsersInvitationEvents, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UsersInvitationEvents, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: MessagesService }, { type: i1$2.FormModelService }, { type: i1$2.ShellStateService }, { type: ExceptionHandlerService }, { type: i1$2.EventService }, { type: i1$4.HttpClient }]; } });\n\nclass ViewDefinitionsService {\r\n    constructor(httpClient, i18nService, appContextService, exceptionHandlerService, shellStateService, roleInterceptorService, storageService, cacheHelperService, roleService, settingsService) {\r\n        this.httpClient = httpClient;\r\n        this.i18nService = i18nService;\r\n        this.appContextService = appContextService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.shellStateService = shellStateService;\r\n        this.roleInterceptorService = roleInterceptorService;\r\n        this.storageService = storageService;\r\n        this.cacheHelperService = cacheHelperService;\r\n        this.roleService = roleService;\r\n        this.settingsService = settingsService;\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.subscriberCurrentRole) {\r\n            this.subscriberCurrentRole.unsubscribe();\r\n        }\r\n        if (this.subscriberRoleDefinition) {\r\n            this.subscriberRoleDefinition.unsubscribe();\r\n        }\r\n    }\r\n    /*\r\n  gets the view definition(if it exists) for the current route\r\n  */\r\n    getCurrentUrlDefinition(activatedRoute) {\r\n        const promise = new Promise((resolve, reject) => {\r\n            // build view definition request url from current route\r\n            this.buildViewDefinitionUrl(activatedRoute)\r\n                .then((data) => {\r\n                // get operation id from parameters\r\n                this.getOperationId(activatedRoute).then((operationId) => {\r\n                    resolve(this.getDefinition(data, operationId));\r\n                });\r\n            })\r\n                .catch((error) => {\r\n                reject(error);\r\n            });\r\n        });\r\n        return promise;\r\n    }\r\n    /**\r\n     * Gets definition from file\r\n     *\r\n     * @param url operation\r\n     * @param [operationId] operation Id\r\n     * @returns view definition translated\r\n     */\r\n    getDefinition(url, operationId) {\r\n        const promise = new Promise((resolve, reject) => {\r\n            this.getDefinitionByRoleKey(url, operationId)\r\n                .then((def) => {\r\n                resolve(def);\r\n            })\r\n                .catch((error) => {\r\n                reject(error);\r\n            });\r\n        });\r\n        return promise;\r\n    }\r\n    /**\r\n     * Gets local disc configuration based on the operation.\r\n     *\r\n     * @return the json configuration already parsed\r\n     */\r\n    getConfiguration(operation) {\r\n        return new Promise((resolve, reject) => {\r\n            this.httpClient.get(operation).subscribe((d) => resolve(d), (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getLocalViewDefinitions(url, operationId) {\r\n        const promise = new Promise((resolve, reject) => {\r\n            const localViewDefinitionsPath = 'assets/view-definitions/';\r\n            const urlParts = url.split('/');\r\n            let localFilepath = localViewDefinitionsPath\r\n                .concat(urlParts[6], '-')\r\n                .concat(urlParts[7], '-')\r\n                .concat(urlParts[8], '.json')\r\n                .toLowerCase();\r\n            if (urlParts.length > 10) {\r\n                localFilepath = localViewDefinitionsPath\r\n                    .concat(urlParts[6], '-')\r\n                    .concat(urlParts[7], '-')\r\n                    .concat(urlParts[8], '-')\r\n                    .concat(urlParts[9], '.json')\r\n                    .toLowerCase();\r\n            }\r\n            // if the module is 'customentities' then is a customEntity\r\n            const isCustomEntity = urlParts[6].toLowerCase() === 'customentities';\r\n            if (isCustomEntity) {\r\n                // Local view definition doesn't exist, must be custom entity.\r\n                // Request to CorePatterns GetViewDefinitionAsync to return custom entity viewdefinition\r\n                this.getViewDefinitionWithExtensibility(url, '', operationId).then((data) => {\r\n                    resolve(data);\r\n                }, (err) => {\r\n                    if (err.error instanceof Error) {\r\n                        reject(err.error);\r\n                    }\r\n                    else {\r\n                        reject(err);\r\n                    }\r\n                });\r\n            }\r\n            else {\r\n                this.getConfiguration(localFilepath)\r\n                    .then((def) => {\r\n                    // Translate all view definitions with server side json resources\r\n                    this.i18nService.translateElements(def, urlParts[6]);\r\n                    //only get's viewDefinition with extensibility\r\n                    // if the entity allow extensibiliy otherwise it's just the def (viewDefinition system)\r\n                    const getViewDefinition = def && def.entityInfo && def.entityInfo.allowExtensibility;\r\n                    if (getViewDefinition) {\r\n                        // Request to CorePatterns GetViewDefinitionAsync to merge local viewdefinition with extensibility\r\n                        this.getViewDefinitionWithExtensibility(url, def, operationId).then((data) => {\r\n                            resolve(data);\r\n                        }, (err) => {\r\n                            if (err.error instanceof Error) {\r\n                                reject(err.error);\r\n                            }\r\n                            else {\r\n                                reject(err);\r\n                            }\r\n                        });\r\n                    }\r\n                    else {\r\n                        resolve(def);\r\n                    }\r\n                })\r\n                    .catch(() => {\r\n                    // Local view definition doesn't exist, must be custom entity.\r\n                    // Request to CorePatterns GetViewDefinitionAsync to return custom entity viewdefinition.\r\n                    this.getViewDefinitionWithExtensibility(url, '', operationId).then((data) => {\r\n                        resolve(data);\r\n                    }, (err) => {\r\n                        if (err.error instanceof Error) {\r\n                            reject(err.error);\r\n                        }\r\n                        else {\r\n                            reject(err);\r\n                        }\r\n                    });\r\n                });\r\n            }\r\n        });\r\n        return promise;\r\n    }\r\n    getViewDefinitionWithExtensibility(url, localViewDefinition, operationId) {\r\n        return new Promise((resolve, reject) => {\r\n            let options;\r\n            if (operationId) {\r\n                let headers = new HttpHeaders();\r\n                headers = headers.append('Restricted-Operation-Id', operationId);\r\n                headers = headers.set('Content-Type', 'application/json');\r\n                options = {\r\n                    headers\r\n                };\r\n            }\r\n            else {\r\n                let headers = new HttpHeaders();\r\n                headers = headers.set('Content-Type', 'application/json');\r\n                options = {\r\n                    headers\r\n                };\r\n            }\r\n            let viewDefinitionSystem = localViewDefinition;\r\n            if (localViewDefinition !== '') {\r\n                viewDefinitionSystem = JSON.stringify(localViewDefinition);\r\n            }\r\n            // Request to CorePatterns GetViewDefinitionAsync to merge master view definitions with extensibility\r\n            this.httpClient.post(url, viewDefinitionSystem, options).subscribe((data) => {\r\n                resolve(data);\r\n            }, (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    getDefinitionByRoleKey(url, operationId) {\r\n        const promise = new Promise((resolve) => {\r\n            const cacheKey = this.cacheHelperService.generateCacheKey(false, false, true, [\r\n                'view-definition',\r\n                url\r\n            ]);\r\n            const cacheKeyLowerCase = cacheKey.toLocaleLowerCase();\r\n            const definition = this.storageService.sessionGet(cacheKeyLowerCase);\r\n            if (!definition) {\r\n                this.getLocalViewDefinitions(url, operationId).then((data) => {\r\n                    this.roleInterceptorService.interceptViewDefinition(data);\r\n                    this.storageService.sessionSet(cacheKeyLowerCase, JSON.stringify(data));\r\n                    resolve(data);\r\n                });\r\n            }\r\n            else {\r\n                resolve(JSON.parse(definition));\r\n            }\r\n        });\r\n        return promise;\r\n    }\r\n    /*\r\n     * build the custom component view definition url\r\n     * @returns Promise for the url value\r\n     */\r\n    buildViewDefinitionUrl(activatedRoute) {\r\n        return new Promise((resolve, reject) => {\r\n            activatedRoute.url.subscribe((data) => {\r\n                if (data.length < 3) {\r\n                    reject();\r\n                }\r\n                // get module, service and operation names from the url\r\n                const module = data[0].path;\r\n                const service = data[1].path;\r\n                const operation = data[2].path;\r\n                // get tenant, organization and locale from the appContextService\r\n                const tenant = this.appContextService.tenantKey;\r\n                const organization = this.appContextService.organizationKey;\r\n                const locale = this.appContextService.user.culture;\r\n                // concat the url parts into an array\r\n                const urlParts = [\r\n                    '/app',\r\n                    tenant,\r\n                    organization,\r\n                    'corepatterns',\r\n                    'viewDefinitions',\r\n                    module.toLowerCase(),\r\n                    service.toLowerCase(),\r\n                    operation\r\n                ];\r\n                urlParts.push(locale);\r\n                // join the url parts into a single string\r\n                const url = urlParts.join('/');\r\n                resolve(url);\r\n            });\r\n        });\r\n    }\r\n    getOperationId(activatedRoute) {\r\n        return new Promise((resolve, reject) => {\r\n            activatedRoute.data.subscribe((data) => {\r\n                if (data['operationId']) {\r\n                    resolve(data['operationId']);\r\n                }\r\n                else {\r\n                    reject();\r\n                }\r\n            });\r\n        });\r\n    }\r\n}\r\nViewDefinitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewDefinitionsService, deps: [{ token: i1$4.HttpClient }, { token: i2$3.I18nService }, { token: i1$2.AppContextService }, { token: ExceptionHandlerService }, { token: i1$2.ShellStateService }, { token: RoleInterceptorService }, { token: i1$2.StorageService }, { token: i1$2.CacheHelperService }, { token: i1$2.RoleService }, { token: i1$2.SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nViewDefinitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewDefinitionsService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewDefinitionsService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: i2$3.I18nService }, { type: i1$2.AppContextService }, { type: ExceptionHandlerService }, { type: i1$2.ShellStateService }, { type: RoleInterceptorService }, { type: i1$2.StorageService }, { type: i1$2.CacheHelperService }, { type: i1$2.RoleService }, { type: i1$2.SettingsService }]; } });\n\n// Modal Services\n\nclass TableOptionsColumnsComponent {\r\n    constructor(messagesService, i18nService) {\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        this.isLoading = false;\r\n        this.columns = [];\r\n        this.columnsConfigChange = new EventEmitter();\r\n    }\r\n    /**\r\n     * Fires when a column is dropped in drag&drop.\r\n     *\r\n     * @param metadata - CdkDragDrop metadata..\r\n     * @param metadata.previousIndex - Index of the item when it was picked up.\r\n     * @param metadata.currentIndex - Current index of the item.\r\n     */\r\n    drop({ previousIndex, currentIndex }) {\r\n        const columnChanged = this.columns[previousIndex];\r\n        moveItemInArray(this.columns, previousIndex, currentIndex);\r\n        const newOrderedColumns = this.columns.map((columns, index) => ({ ...columns, order: index }));\r\n        this.columnsConfigChange.emit({ columns: newOrderedColumns, columnChanged, changeType: 'order' });\r\n    }\r\n    trackByColumnField(index, column) {\r\n        return column.field || index;\r\n    }\r\n    /**\r\n     * Fires when column visibility toggle value changes.\r\n     * Then, removes the outdated column object from array of columns and put the updated column object.\r\n     * At the end, emits \"columnsConfigChange\" output with new columns value.\r\n     */\r\n    onColumnVisibilityChange(columnChanged, columnVisible) {\r\n        if (!columnVisible && !columnChanged.canChangeColumnVisibility) {\r\n            this.messagesService.show(new MessageInfo(this.i18nService.get('RES_Table_Options_Cant_Hide_Column'), '', 9 /* MessageType.ErrorToast */));\r\n            return;\r\n        }\r\n        const columnsWithoutChanged = this.columns.filter(({ field }) => field !== columnChanged.field);\r\n        columnChanged.hidden = !columnVisible;\r\n        const columnsWithChanged = columnsWithoutChanged.concat(columnChanged).sort((a, b) => a.order - b.order);\r\n        this.columnsConfigChange.emit({ columns: columnsWithChanged, columnChanged, changeType: 'visibility' });\r\n    }\r\n}\r\nTableOptionsColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TableOptionsColumnsComponent, deps: [{ token: MessagesService }, { token: i2$3.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nTableOptionsColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TableOptionsColumnsComponent, selector: \"pri-table-options-columns\", inputs: { isLoading: \"isLoading\", columns: \"columns\" }, outputs: { columnsConfigChange: \"columnsConfigChange\" }, ngImport: i0, template: \"<div class=\\\"table-options-columns-container\\\" cdkDropList (cdkDropListDropped)=\\\"drop($event)\\\">\\r\\n\\t<pri-table-options-columns-field\\r\\n\\t\\t*ngFor=\\\"let column of columns; trackBy: trackByColumnField\\\"\\r\\n\\t\\tclass=\\\"table-options-columns-field\\\"\\r\\n\\t\\tcdkDrag\\r\\n\\t\\tcdkDragLockAxis=\\\"y\\\"\\r\\n\\t\\t[column]=\\\"column\\\"\\r\\n\\t\\t(columnVisibilityChange)=\\\"onColumnVisibilityChange(column, $event)\\\">\\r\\n\\t</pri-table-options-columns-field>\\r\\n</div>\\r\\n\", styles: [\".cdk-drag-preview{background-color:var(--grey-1);box-sizing:border-box;border-radius:4px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}.cdk-drag-placeholder{z-index:1010;opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}cdk-drop-list-dragging .attributes-wrapper:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);z-index:1090}pri-table-options-columns{display:flex;width:100%;height:100%;cursor:default}pri-table-options-columns .table-options-columns-container{width:100%;max-height:100%;overflow-y:auto;padding-bottom:8px}pri-table-options-columns .table-options-columns-container .table-options-columns-field:last-child{border:none;z-index:1010}pri-table-options-columns .table-options-columns-container.cdk-drop-list-dragging .table-options-columns-field:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);z-index:1010}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i4$2.CdkDropList, selector: \"[cdkDropList], cdk-drop-list\", inputs: [\"cdkDropListConnectedTo\", \"cdkDropListData\", \"cdkDropListOrientation\", \"id\", \"cdkDropListLockAxis\", \"cdkDropListDisabled\", \"cdkDropListSortingDisabled\", \"cdkDropListEnterPredicate\", \"cdkDropListSortPredicate\", \"cdkDropListAutoScrollDisabled\", \"cdkDropListAutoScrollStep\"], outputs: [\"cdkDropListDropped\", \"cdkDropListEntered\", \"cdkDropListExited\", \"cdkDropListSorted\"], exportAs: [\"cdkDropList\"] }, { kind: \"directive\", type: i4$2.CdkDrag, selector: \"[cdkDrag]\", inputs: [\"cdkDragData\", \"cdkDragLockAxis\", \"cdkDragRootElement\", \"cdkDragBoundary\", \"cdkDragStartDelay\", \"cdkDragFreeDragPosition\", \"cdkDragDisabled\", \"cdkDragConstrainPosition\", \"cdkDragPreviewClass\", \"cdkDragPreviewContainer\"], outputs: [\"cdkDragStarted\", \"cdkDragReleased\", \"cdkDragEnded\", \"cdkDragEntered\", \"cdkDragExited\", \"cdkDragDropped\", \"cdkDragMoved\"], exportAs: [\"cdkDrag\"] }, { kind: \"component\", type: TableOptionsColumnsFieldComponent, selector: \"pri-table-options-columns-field\", inputs: [\"column\"], outputs: [\"columnVisibilityChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TableOptionsColumnsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-table-options-columns', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"table-options-columns-container\\\" cdkDropList (cdkDropListDropped)=\\\"drop($event)\\\">\\r\\n\\t<pri-table-options-columns-field\\r\\n\\t\\t*ngFor=\\\"let column of columns; trackBy: trackByColumnField\\\"\\r\\n\\t\\tclass=\\\"table-options-columns-field\\\"\\r\\n\\t\\tcdkDrag\\r\\n\\t\\tcdkDragLockAxis=\\\"y\\\"\\r\\n\\t\\t[column]=\\\"column\\\"\\r\\n\\t\\t(columnVisibilityChange)=\\\"onColumnVisibilityChange(column, $event)\\\">\\r\\n\\t</pri-table-options-columns-field>\\r\\n</div>\\r\\n\", styles: [\".cdk-drag-preview{background-color:var(--grey-1);box-sizing:border-box;border-radius:4px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}.cdk-drag-placeholder{z-index:1010;opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}cdk-drop-list-dragging .attributes-wrapper:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);z-index:1090}pri-table-options-columns{display:flex;width:100%;height:100%;cursor:default}pri-table-options-columns .table-options-columns-container{width:100%;max-height:100%;overflow-y:auto;padding-bottom:8px}pri-table-options-columns .table-options-columns-container .table-options-columns-field:last-child{border:none;z-index:1010}pri-table-options-columns .table-options-columns-container.cdk-drop-list-dragging .table-options-columns-field:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);z-index:1010}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: MessagesService }, { type: i2$3.I18nService }]; }, propDecorators: { isLoading: [{\r\n                type: Input\r\n            }], columns: [{\r\n                type: Input\r\n            }], columnsConfigChange: [{\r\n                type: Output\r\n            }] } });\n\nclass TabsComponent {\r\n    constructor() {\r\n        /** Array of tabs */\r\n        this.tabs = [];\r\n        /** Will be triggered when selected tab changes */\r\n        this.changeSelectedTab = new EventEmitter();\r\n    }\r\n    ngOnInit() {\r\n        this.selectedTab = this.defaultSelectedTab\r\n            ? this.tabs.find(({ id }) => this.defaultSelectedTab.id === id)\r\n            : this.tabs[0];\r\n    }\r\n    /**\r\n     * Triggers the current selected tab to parent.\r\n     */\r\n    onSelectedTabChange(tab) {\r\n        this.selectedTab = tab;\r\n        this.changeSelectedTab.emit(this.selectedTab);\r\n    }\r\n}\r\nTabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TabsComponent, selector: \"pri-tabs-component\", inputs: { tabs: \"tabs\", defaultSelectedTab: \"defaultSelectedTab\", selectedTab: \"selectedTab\" }, outputs: { changeSelectedTab: \"changeSelectedTab\" }, ngImport: i0, template: \"<nav mat-tab-nav-bar disableRipple>\\r\\n    <a mat-tab-link *ngFor=\\\"let tab of tabs\\\" [active]=\\\"tab.label === selectedTab?.label\\\" (click)=\\\"onSelectedTabChange(tab)\\\">\\r\\n        <div class=\\\"tab-container\\\">\\r\\n            <div class=\\\"tab-label\\\">{{tab.label}}</div>\\r\\n        </div>\\r\\n    </a>\\r\\n</nav>\\r\\n<div class=\\\"tabs-fake-border\\\"></div>\", styles: [\".mat-ink-bar{background-color:var(--theme-100)!important;height:3px!important}pri-tabs-component{position:relative}pri-tabs-component .mat-tab-header{padding-left:10px;border-bottom:unset!important}pri-tabs-component .mat-tab-header .mat-tab-header-pagination{display:none}pri-tabs-component .mat-tab-header .mat-tab-link{min-width:auto;padding:0 12px;height:45px;line-height:1;opacity:1;border-bottom:3px solid transparent;transition:unset}pri-tabs-component .mat-tab-header .mat-tab-link:hover{border-bottom:3px solid var(--grey-7)}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container{display:flex;align-items:center}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container .tab-icon{font-size:14px;color:var(--grey-7);margin-right:5px}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container .tab-label{font-size:16px;color:var(--grey-7)}pri-tabs-component .mat-tab-header .mat-tab-link.mat-tab-label-active .tab-container .tab-icon{color:var(--grey-8)}pri-tabs-component .mat-tab-header .mat-tab-link.mat-tab-label-active .tab-container .tab-label{color:var(--grey-8);font-weight:700}pri-tabs-component .tabs-fake-border{width:100%;height:1px;position:absolute;bottom:0;background-color:var(--grey-4)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"component\", type: i2$8.MatTabNav, selector: \"[mat-tab-nav-bar]\", inputs: [\"color\"], exportAs: [\"matTabNavBar\", \"matTabNav\"] }, { kind: \"directive\", type: i2$8.MatTabLink, selector: \"[mat-tab-link], [matTabLink]\", inputs: [\"disabled\", \"disableRipple\", \"tabIndex\"], exportAs: [\"matTabLink\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TabsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tabs-component', encapsulation: ViewEncapsulation.None, template: \"<nav mat-tab-nav-bar disableRipple>\\r\\n    <a mat-tab-link *ngFor=\\\"let tab of tabs\\\" [active]=\\\"tab.label === selectedTab?.label\\\" (click)=\\\"onSelectedTabChange(tab)\\\">\\r\\n        <div class=\\\"tab-container\\\">\\r\\n            <div class=\\\"tab-label\\\">{{tab.label}}</div>\\r\\n        </div>\\r\\n    </a>\\r\\n</nav>\\r\\n<div class=\\\"tabs-fake-border\\\"></div>\", styles: [\".mat-ink-bar{background-color:var(--theme-100)!important;height:3px!important}pri-tabs-component{position:relative}pri-tabs-component .mat-tab-header{padding-left:10px;border-bottom:unset!important}pri-tabs-component .mat-tab-header .mat-tab-header-pagination{display:none}pri-tabs-component .mat-tab-header .mat-tab-link{min-width:auto;padding:0 12px;height:45px;line-height:1;opacity:1;border-bottom:3px solid transparent;transition:unset}pri-tabs-component .mat-tab-header .mat-tab-link:hover{border-bottom:3px solid var(--grey-7)}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container{display:flex;align-items:center}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container .tab-icon{font-size:14px;color:var(--grey-7);margin-right:5px}pri-tabs-component .mat-tab-header .mat-tab-link .tab-container .tab-label{font-size:16px;color:var(--grey-7)}pri-tabs-component .mat-tab-header .mat-tab-link.mat-tab-label-active .tab-container .tab-icon{color:var(--grey-8)}pri-tabs-component .mat-tab-header .mat-tab-link.mat-tab-label-active .tab-container .tab-label{color:var(--grey-8);font-weight:700}pri-tabs-component .tabs-fake-border{width:100%;height:1px;position:absolute;bottom:0;background-color:var(--grey-4)}\\n\"] }]\r\n        }], propDecorators: { tabs: [{\r\n                type: Input\r\n            }], defaultSelectedTab: [{\r\n                type: Input\r\n            }], selectedTab: [{\r\n                type: Input\r\n            }], changeSelectedTab: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Component for each item on array of dimensions selector\r\n */\r\nclass TagSelectorFilterItemComponent {\r\n    constructor() {\r\n        /** Allows to know if this component is removable */\r\n        this.removable = true;\r\n        /** Is trigger an event when click to remove item */\r\n        this.removeItem = new EventEmitter();\r\n    }\r\n    /**\r\n     * Remove the item\r\n     */\r\n    remove() {\r\n        if (!this.isDisabled) {\r\n            this.removeItem.emit();\r\n        }\r\n    }\r\n}\r\nTagSelectorFilterItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTagSelectorFilterItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TagSelectorFilterItemComponent, selector: \"pri-tag-selector-filter-item\", inputs: { value: \"value\", isDisabled: \"isDisabled\", isPath: \"isPath\", removable: \"removable\" }, outputs: { removeItem: \"removeItem\" }, ngImport: i0, template: \"<ng-container>\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"tag-selector-item\\\"\\r\\n\\t\\t[popover]=\\\"value.propertyDescription\\\"\\r\\n\\t\\tcontainerClass=\\\"popover-tag-filter\\\"\\r\\n\\t\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\t\\tplacement=\\\"top\\\"\\r\\n\\t\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t#priPopover=\\\"bs-popover\\\"\\r\\n\\t\\t[priPopover]=\\\"priPopover\\\">\\r\\n\\t\\t<div class=\\\"item-value\\\" container=\\\"body\\\" [innerHTML]=\\\"value.propertyName\\\"></div>\\r\\n\\t\\t<span *ngIf=\\\"removable\\\" (click)=\\\"remove()\\\" class=\\\"icon ti-ux-close\\\" [ngClass]=\\\"{ disabled: isDisabled }\\\"></span>\\r\\n\\t</div>\\r\\n\\t<span class=\\\"filters-content-separator icon ti-ux-chevron-right\\\" *ngIf=\\\"isPath && !value.isLeaf\\\"> </span>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-tag-selector-filter-item{display:flex;align-items:center;max-width:100%}pri-tag-selector-filter-item .tag-selector-item{height:22px;display:flex;align-items:center;margin-left:2px;padding:0 2px 0 6px;overflow:hidden;flex-shrink:0;border-radius:11px;margin-bottom:6px;border:1px solid transparent;background-color:var(--grey-4);color:var(--grey-8);flex:1;margin-right:10px}pri-tag-selector-filter-item .tag-selector-item:hover{border-color:var(--theme-100)}pri-tag-selector-filter-item .tag-selector-item:hover .icon{color:var(--theme-100)}pri-tag-selector-filter-item .tag-selector-item.disabled{opacity:.7}pri-tag-selector-filter-item .tag-selector-item .item-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:3px;font-size:9pt;cursor:default;line-height:normal}pri-tag-selector-filter-item .tag-selector-item .icon{cursor:pointer;font-size:12px;padding-right:5px;padding-left:3px}pri-tag-selector-filter-item .tag-selector-item .icon.disabled{pointer-events:none;display:none}pri-tag-selector-filter-item .filters-content-separator{font-size:11px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterItemComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tag-selector-filter-item', encapsulation: ViewEncapsulation.None, template: \"<ng-container>\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"tag-selector-item\\\"\\r\\n\\t\\t[popover]=\\\"value.propertyDescription\\\"\\r\\n\\t\\tcontainerClass=\\\"popover-tag-filter\\\"\\r\\n\\t\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\t\\tplacement=\\\"top\\\"\\r\\n\\t\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t#priPopover=\\\"bs-popover\\\"\\r\\n\\t\\t[priPopover]=\\\"priPopover\\\">\\r\\n\\t\\t<div class=\\\"item-value\\\" container=\\\"body\\\" [innerHTML]=\\\"value.propertyName\\\"></div>\\r\\n\\t\\t<span *ngIf=\\\"removable\\\" (click)=\\\"remove()\\\" class=\\\"icon ti-ux-close\\\" [ngClass]=\\\"{ disabled: isDisabled }\\\"></span>\\r\\n\\t</div>\\r\\n\\t<span class=\\\"filters-content-separator icon ti-ux-chevron-right\\\" *ngIf=\\\"isPath && !value.isLeaf\\\"> </span>\\r\\n</ng-container>\\r\\n\", styles: [\"pri-tag-selector-filter-item{display:flex;align-items:center;max-width:100%}pri-tag-selector-filter-item .tag-selector-item{height:22px;display:flex;align-items:center;margin-left:2px;padding:0 2px 0 6px;overflow:hidden;flex-shrink:0;border-radius:11px;margin-bottom:6px;border:1px solid transparent;background-color:var(--grey-4);color:var(--grey-8);flex:1;margin-right:10px}pri-tag-selector-filter-item .tag-selector-item:hover{border-color:var(--theme-100)}pri-tag-selector-filter-item .tag-selector-item:hover .icon{color:var(--theme-100)}pri-tag-selector-filter-item .tag-selector-item.disabled{opacity:.7}pri-tag-selector-filter-item .tag-selector-item .item-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:3px;font-size:9pt;cursor:default;line-height:normal}pri-tag-selector-filter-item .tag-selector-item .icon{cursor:pointer;font-size:12px;padding-right:5px;padding-left:3px}pri-tag-selector-filter-item .tag-selector-item .icon.disabled{pointer-events:none;display:none}pri-tag-selector-filter-item .filters-content-separator{font-size:11px}\\n\"] }]\r\n        }], propDecorators: { value: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], isPath: [{\r\n                type: Input\r\n            }], removable: [{\r\n                type: Input\r\n            }], removeItem: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Component that show a list with each item the array of dimensions selector\r\n */\r\nclass TagSelectorFilterPopoverListComponent {\r\n    constructor() {\r\n        /** The array of dimensions */\r\n        this.tagArray = new Array();\r\n    }\r\n}\r\nTagSelectorFilterPopoverListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterPopoverListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTagSelectorFilterPopoverListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TagSelectorFilterPopoverListComponent, selector: \"pri-tag-selector-filter-popover-list\", inputs: { tagArray: \"tagArray\", removeItemCallback: \"removeItemCallback\" }, ngImport: i0, template: \"<ng-container>\\r\\n    <pri-tag-selector-filter-item *ngFor=\\\"let item of tagArray\\\" [value]=\\\"item\\\" (removeItem)=\\\"removeItemCallback(item)\\\"></pri-tag-selector-filter-item>\\r\\n</ng-container>\", styles: [\"pri-tag-selector-filter-popover-list{display:flex;overflow:hidden;flex-wrap:wrap}pri-tag-selector-filter-popover-list pri-tag-selector-filter-item{margin-top:4px;margin-bottom:4px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"component\", type: TagSelectorFilterItemComponent, selector: \"pri-tag-selector-filter-item\", inputs: [\"value\", \"isDisabled\", \"isPath\", \"removable\"], outputs: [\"removeItem\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterPopoverListComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tag-selector-filter-popover-list', encapsulation: ViewEncapsulation.None, template: \"<ng-container>\\r\\n    <pri-tag-selector-filter-item *ngFor=\\\"let item of tagArray\\\" [value]=\\\"item\\\" (removeItem)=\\\"removeItemCallback(item)\\\"></pri-tag-selector-filter-item>\\r\\n</ng-container>\", styles: [\"pri-tag-selector-filter-popover-list{display:flex;overflow:hidden;flex-wrap:wrap}pri-tag-selector-filter-popover-list pri-tag-selector-filter-item{margin-top:4px;margin-bottom:4px}\\n\"] }]\r\n        }], propDecorators: { tagArray: [{\r\n                type: Input\r\n            }], removeItemCallback: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Component for search items\r\n */\r\nclass TagSelectorFilterSearchItemComponent {\r\n}\r\nTagSelectorFilterSearchItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterSearchItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nTagSelectorFilterSearchItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TagSelectorFilterSearchItemComponent, selector: \"pri-tag-selector-filter-search-item\", inputs: { item: \"item\" }, ngImport: i0, template: \"<ng-container>\\r\\n    <div class=\\\"search-header\\\" *ngIf=\\\"item.propertyName\\\">\\r\\n        <div class=\\\"search-item-name\\\" *ngIf=\\\"item.propertyName\\\">{{item.propertyName}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"search-item-description\\\" *ngIf=\\\"item.propertyDescription\\\">{{item.propertyDescription}}</div>\\r\\n</ng-container>\", styles: [\"pri-tag-selector-filter-search-item{display:flex;flex-direction:column;line-height:normal;font-size:8pt;padding:5px 10px}pri-tag-selector-filter-search-item .search-header{display:flex;justify-content:space-between;align-items:center;font-size:10pt;color:var(--grey-8);overflow:hidden;white-space:nowrap}pri-tag-selector-filter-search-item .search-header .search-item-name{overflow:hidden;text-overflow:ellipsis;margin-right:10px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterSearchItemComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tag-selector-filter-search-item', encapsulation: ViewEncapsulation.None, template: \"<ng-container>\\r\\n    <div class=\\\"search-header\\\" *ngIf=\\\"item.propertyName\\\">\\r\\n        <div class=\\\"search-item-name\\\" *ngIf=\\\"item.propertyName\\\">{{item.propertyName}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"search-item-description\\\" *ngIf=\\\"item.propertyDescription\\\">{{item.propertyDescription}}</div>\\r\\n</ng-container>\", styles: [\"pri-tag-selector-filter-search-item{display:flex;flex-direction:column;line-height:normal;font-size:8pt;padding:5px 10px}pri-tag-selector-filter-search-item .search-header{display:flex;justify-content:space-between;align-items:center;font-size:10pt;color:var(--grey-8);overflow:hidden;white-space:nowrap}pri-tag-selector-filter-search-item .search-header .search-item-name{overflow:hidden;text-overflow:ellipsis;margin-right:10px}\\n\"] }]\r\n        }], propDecorators: { item: [{\r\n                type: Input\r\n            }] } });\n\n/**\r\n * Represent a size of an 2D element\r\n */\r\nclass SizeModel {\r\n    /**\r\n     * @param width With of the element\r\n     * @param height Height of the element\r\n     */\r\n    constructor(width = -1, height = -1) {\r\n        this.width = width;\r\n        this.height = height;\r\n    }\r\n    /** Width in pixels format */\r\n    get widthInPixels() {\r\n        return `${this.width}px`;\r\n    }\r\n    ;\r\n    /** Height in pixels format */\r\n    get heightInPixels() {\r\n        return `${this.height}px`;\r\n    }\r\n    ;\r\n}\n\nclass PriTypeAheadComponent {\r\n    constructor(element, changeDetectorRef) {\r\n        this.element = element;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.onReady = new Subject();\r\n        this.items = new Array();\r\n        this.style = {};\r\n        this.selectedItemIndex = 0;\r\n    }\r\n    onDocumentClick(event) {\r\n        let clickedComponent = event.target;\r\n        let insideTypeAhead = false;\r\n        let insideParentElement = false;\r\n        // verify if the typeahead has been clicked\r\n        do {\r\n            if (clickedComponent === this.element.nativeElement) {\r\n                insideTypeAhead = true;\r\n            }\r\n            clickedComponent = clickedComponent.parentNode;\r\n        } while (clickedComponent);\r\n        // verify if the parent element has been clicked\r\n        if (!insideTypeAhead) {\r\n            clickedComponent = event.target;\r\n            do {\r\n                if (clickedComponent === this.inputElement) {\r\n                    insideParentElement = true;\r\n                }\r\n                clickedComponent = clickedComponent.parentNode;\r\n            } while (clickedComponent);\r\n        }\r\n        if (!(insideTypeAhead || insideParentElement)) {\r\n            // this.closeList(false);\r\n            this.onDismiss();\r\n        }\r\n    }\r\n    onWindowResize(event) {\r\n        const isMobile = /Android|iPhone/i.test(window.navigator.userAgent);\r\n        // when the keyboard is launched, the window will resize\r\n        if (!isMobile) {\r\n            this.onDismiss();\r\n        }\r\n    }\r\n    onDocumentScroll(event) {\r\n        if (!this.element.nativeElement.contains(event.target)) {\r\n            this.onDismiss();\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.inputElement = this.parentElement;\r\n        this.addInputEvents();\r\n        this.subscriberDataSource = this.dataSource.subscribe((matches) => {\r\n            this.updateItems(matches);\r\n        });\r\n        this.onReady.next(true);\r\n    }\r\n    /**\r\n     * A callback method that performs custom clean-up, invoked immediately after a directive, pipe, or service instance is destroyed.\r\n     */\r\n    ngOnDestroy() {\r\n        this.removeInputEvents();\r\n        if (this.subscriberDataSource) {\r\n            this.subscriberDataSource.unsubscribe();\r\n        }\r\n    }\r\n    /**\r\n     * A callback method that is invoked immediately after Angular has completed initialization of a component's view.\r\n     * It is invoked only once when the view is instantiated.\r\n     */\r\n    ngAfterViewInit() {\r\n        this.calculateAndSetsRowSizes();\r\n    }\r\n    getRowClass(rowIndex) {\r\n        let rowClass = 'pri-typeahead-row-' + rowIndex;\r\n        if (rowIndex === this.selectedItemIndex) {\r\n            rowClass += ' pri-typeahead-row-selected';\r\n        }\r\n        return rowClass;\r\n    }\r\n    onInputKeyUp(event) {\r\n        switch (event.keyCode) {\r\n            case 40: // ARROW DOWN\r\n                this.selectedItemIndex = (this.selectedItemIndex + 1) % this.items.length;\r\n                this.updateListElementPosition();\r\n                event.preventDefault();\r\n                break;\r\n            case 38: // ARROW UP\r\n                this.selectedItemIndex =\r\n                    this.selectedItemIndex === 0 ? this.items.length - 1 : this.selectedItemIndex - 1;\r\n                this.updateListElementPosition();\r\n                event.preventDefault();\r\n                break;\r\n            case 13: // ENTER\r\n                if (this.items.length > 0 && this.items.length > this.selectedItemIndex) {\r\n                    event.preventDefault();\r\n                    event.stopPropagation();\r\n                    this.onSelect(this.items[this.selectedItemIndex]);\r\n                }\r\n                break;\r\n        }\r\n    }\r\n    onInputKeyDown(event) {\r\n        switch (event.keyCode) {\r\n            case 9: // TAB\r\n                this.onDismiss();\r\n                break;\r\n        }\r\n    }\r\n    updateItems(items) {\r\n        this.items = items;\r\n        this.selectedItemIndex = this.selectedItemIndex < 0 ? 0 : this.selectedItemIndex;\r\n        if (this.selectedItemIndex > items.length - 1) {\r\n            this.selectedItemIndex = items.length - 1;\r\n        }\r\n        this.selectedItemIndex = items.findIndex((element) => element.selected);\r\n        // Detects the changes so the updates items be available on the DOM\r\n        // before scrolling to the selected element.\r\n        this.changeDetectorRef.detectChanges();\r\n        // Gets the selected DOM element.\r\n        const domElement = document.getElementById(`priTypeHeadItem${this.selectedItemIndex}`);\r\n        if (domElement && this.selectedItemIndex > 0) {\r\n            // Scrolls to the selected DOM element.\r\n            domElement.scrollIntoView();\r\n        }\r\n        // Reposition the lookup after its items are updated\r\n        this.calculatePosition();\r\n    }\r\n    onItemSelected(item) {\r\n        this.onSelect(item);\r\n    }\r\n    addInputEvents() {\r\n        const self = this;\r\n        const keyupFn = (event) => self.onInputKeyUp(event);\r\n        const keydownFn = (event) => self.onInputKeyDown(event);\r\n        this.inputEventFunctions = {\r\n            keyup: keyupFn,\r\n            keydown: keydownFn\r\n        };\r\n        this.inputElement.addEventListener('keyup', keyupFn);\r\n        this.inputElement.addEventListener('keydown', keydownFn);\r\n    }\r\n    removeInputEvents() {\r\n        this.inputElement.removeEventListener('keyup', this.inputEventFunctions.keyup);\r\n        this.inputElement.removeEventListener('keydown', this.inputEventFunctions.keydown);\r\n    }\r\n    calculatePosition() {\r\n        const anchorElement = this.anchorElement || this.inputElement;\r\n        // window is the dropdown\r\n        const dropdownHeight = window.scrollY == null ? document.documentElement.scrollTop : window.scrollY;\r\n        const dropdownWidth = window.scrollX == null ? document.documentElement.scrollLeft : window.scrollX;\r\n        // Get the parent position and size\r\n        const parentTop = anchorElement.getBoundingClientRect().top + dropdownHeight;\r\n        const parentLeft = anchorElement.getBoundingClientRect().left + dropdownWidth;\r\n        const parentWidth = anchorElement.offsetWidth;\r\n        const parentHeight = anchorElement.offsetHeight - 1; // -1 to overlap the last pixel of the input\r\n        // initialize position variables\r\n        let horizontalPos = parentLeft;\r\n        const verticalPos = this.setVerticalPosition(parentTop, parentHeight);\r\n        let width = parentWidth;\r\n        // In case of typeahead opens outside of window to the right, open it to the left\r\n        if (parentLeft + parseInt(this.minWidth, 10) > window.innerWidth) {\r\n            horizontalPos -= parseInt(this.minWidth, 10) - parentWidth;\r\n        }\r\n        if (this.minWidth) {\r\n            const minWidthValue = parseInt(this.minWidth, 10);\r\n            // verify if is not NaN\r\n            if (minWidthValue === minWidthValue) {\r\n                width = width < minWidthValue ? minWidthValue : width;\r\n            }\r\n        }\r\n        this.style.left = horizontalPos + 'px';\r\n        this.style.top = verticalPos + 'px';\r\n        this.style.width = width + 'px';\r\n    }\r\n    /**\r\n     * This function will find the optimal position based on available height,\r\n     * if the popover doesn't totally fit after the parent\r\n     */\r\n    setVerticalPosition(parentTop, parentHeight) {\r\n        const yMargin = 20; // the margin to add so it doesn't touch the page limits\r\n        const lookupHeight = this.findElementByClassName('pri-typeahead', this.element.nativeElement).offsetHeight;\r\n        let yStartPos = parentTop + parentHeight;\r\n        const spaceAfterParent = Math.trunc(window.innerHeight - (yStartPos + lookupHeight));\r\n        if (spaceAfterParent < yMargin) {\r\n            const availableSpaceBeforeParent = Math.trunc(parentTop - yMargin);\r\n            const availableSpaceAfterParent = Math.abs(lookupHeight + spaceAfterParent - yMargin);\r\n            if (availableSpaceBeforeParent > availableSpaceAfterParent) {\r\n                // open on top\r\n                yStartPos = yStartPos - lookupHeight - parentHeight;\r\n                if (yStartPos < 0) {\r\n                    yStartPos = yMargin;\r\n                    this.style['max-height'] = parentTop - yStartPos + 'px';\r\n                }\r\n                else {\r\n                    // limit max-height\r\n                    if (availableSpaceBeforeParent < lookupHeight) {\r\n                        this.style['max-height'] = availableSpaceBeforeParent + 'px';\r\n                    }\r\n                }\r\n            }\r\n            else {\r\n                // open on bottom, limiting max-height\r\n                this.style['max-height'] = availableSpaceAfterParent + 'px';\r\n            }\r\n        }\r\n        return yStartPos;\r\n    }\r\n    updateListElementPosition() {\r\n        const rowElement = this.element.nativeElement.querySelector('.pri-typeahead-row-' + this.selectedItemIndex);\r\n        const listContainerElement = this.element.nativeElement.querySelector('.pri-typeahead-align-row');\r\n        if (!rowElement) {\r\n            return;\r\n        }\r\n        if (rowElement.offsetTop >= listContainerElement.scrollTop &&\r\n            rowElement.offsetTop + rowElement.offsetHeight <=\r\n                listContainerElement.scrollTop + listContainerElement.offsetHeight) {\r\n        }\r\n        else {\r\n            if (rowElement.offsetTop - listContainerElement.scrollTop < 0) {\r\n                listContainerElement.scrollTop = rowElement.offsetTop;\r\n            }\r\n            else {\r\n                listContainerElement.scrollTop =\r\n                    rowElement.offsetTop + rowElement.offsetHeight - listContainerElement.offsetHeight;\r\n            }\r\n        }\r\n        this.calculateAndSetsRowSizes();\r\n    }\r\n    /**\r\n     * For layout purposes, this function will find out the size of the biggest row and will set all rows with that size\r\n     */\r\n    calculateAndSetsRowSizes() {\r\n        /** Because the parentElement of the rows does has a width define and it will influence the rows size,\r\n         * for calculate the real width of the rows, we need to set him to auto */\r\n        const parentElement = this.findElementByClassName('pri-typeahead', this.element.nativeElement);\r\n        /**Check if exists a horizontal scroll */\r\n        if (parentElement.clientWidth < parentElement.scrollWidth) {\r\n            const parentSize = new SizeModel(parentElement.clientWidth, parentElement.clientHeight);\r\n            parentElement.style.width = 'auto';\r\n            const rows = this.findElementsByClassName('row', this.element.nativeElement);\r\n            let size = new SizeModel(0, 0);\r\n            /** In here we will find out the size of the most big row*/\r\n            rows.forEach((row) => {\r\n                if (row.offsetWidth > size.width) {\r\n                    size = new SizeModel(row.offsetWidth, row.offsetHeight);\r\n                }\r\n            });\r\n            /** Then, we set all the rows with the size of the biggest one*/\r\n            rows.forEach((element) => (element.style.width = size.widthInPixels));\r\n            /** Now, we restore the previous width */\r\n            parentElement.style.width = parentSize.widthInPixels;\r\n        }\r\n    }\r\n    findElementByClassName(className, parentElement) {\r\n        const elements = this.findElementsByClassName(className, parentElement);\r\n        if (elements.length === 0) {\r\n            return null;\r\n        }\r\n        return elements[0];\r\n    }\r\n    findElementsByClassName(className, parentElement) {\r\n        return this.findElementsByQuery(`.${className}`, parentElement);\r\n    }\r\n    findElementsByQuery(query, parentElement) {\r\n        let elements;\r\n        if (!parentElement) {\r\n            elements = document.querySelectorAll(query);\r\n        }\r\n        else {\r\n            elements = parentElement.querySelectorAll(query);\r\n        }\r\n        return this.convertNodeListOfToArrayHTMLElement(elements);\r\n    }\r\n    convertNodeListOfToArrayHTMLElement(nodes) {\r\n        const htmlElements = new Array();\r\n        if (!nodes) {\r\n            return htmlElements;\r\n        }\r\n        let i = 0;\r\n        for (i = 0; i < nodes.length; i++) {\r\n            htmlElements.push(nodes[i]);\r\n        }\r\n        return htmlElements;\r\n    }\r\n}\r\nPriTypeAheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTypeAheadComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nPriTypeAheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriTypeAheadComponent, selector: \"pri-typeahead\", inputs: { dismissView: \"dismissView\", parentElement: \"parentElement\", anchorElement: \"anchorElement\", itemTemplate: \"itemTemplate\", footerTemplate: \"footerTemplate\", dataSource: \"dataSource\", customStyleClass: \"customStyleClass\", minWidth: \"minWidth\", onSelect: \"onSelect\", onDismiss: \"onDismiss\", onReady: \"onReady\" }, host: { listeners: { \"document:click\": \"onDocumentClick($event)\", \"window:resize\": \"onWindowResize($event)\", \"document:wheel\": \"onDocumentScroll($event)\" } }, ngImport: i0, template: \"<div class=\\\"pri-typeahead\\\" [ngClass]=\\\"customStyleClass\\\" [ngStyle]=\\\"style\\\">\\r\\n\\t<div *ngIf=\\\"this.items.length > 0\\\" class=\\\"pri-typeahead-align-row\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"row pri-typeahead-row\\\"\\r\\n\\t\\t\\t[id]=\\\"'priTypeHeadItem' + i\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"getRowClass(i)\\\"\\r\\n\\t\\t\\t*ngFor=\\\"let item of items; let i = index\\\"\\r\\n\\t\\t\\t(mousedown)=\\\"onItemSelected(item)\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"itemTemplate; context: item\\\"></ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-footer-typeahead-row\\\" *ngIf=\\\"footerTemplate\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"footerTemplate\\\"></ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-typeahead .pri-typeahead{position:absolute;z-index:1500;background:var(--grey-1);overflow:hidden;max-height:400px;border:1px solid var(--grey-4);flex-direction:column;display:flex;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);top:0}pri-typeahead .pri-typeahead .pri-typeahead-align-row{display:list-item;margin-top:-6px;position:relative;width:100%;overflow-y:auto}pri-typeahead .pri-typeahead .pri-typeahead-row{display:flex;flex-direction:column;background:var(--grey-1);color:var(--grey-8);min-height:45px;cursor:pointer;margin:2px 8px!important;border-radius:4px}pri-typeahead .pri-typeahead .pri-typeahead-row:hover,pri-typeahead .pri-typeahead .pri-typeahead-row-selected{background-color:var(--theme-10)}pri-typeahead .pri-typeahead .pri-typeahead-row:last-child{border-bottom:none}pri-typeahead .pri-typeahead .pri-footer-typeahead-row{background-color:var(--grey-1);width:100%;border-top:1px solid var(--grey-4);display:flex;align-items:center;min-height:56px}pri-typeahead .pri-search-typeahead .pri-typeahead-row{padding:4px 6px}pri-typeahead .pri-search-typeahead .pri-typeahead-row>div,pri-typeahead .pri-search-typeahead .pri-typeahead-row .line{font-size:12px;line-height:19px;color:var(--grey-8)}pri-typeahead .pri-search-typeahead .pri-typeahead-row>div:first-child,pri-typeahead .pri-search-typeahead .pri-typeahead-row .line:first-child{font-size:14px;color:var(--grey-8)}.modal-open .pri-typeahead{z-index:1044}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i1$1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTypeAheadComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-typeahead', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-typeahead\\\" [ngClass]=\\\"customStyleClass\\\" [ngStyle]=\\\"style\\\">\\r\\n\\t<div *ngIf=\\\"this.items.length > 0\\\" class=\\\"pri-typeahead-align-row\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"row pri-typeahead-row\\\"\\r\\n\\t\\t\\t[id]=\\\"'priTypeHeadItem' + i\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"getRowClass(i)\\\"\\r\\n\\t\\t\\t*ngFor=\\\"let item of items; let i = index\\\"\\r\\n\\t\\t\\t(mousedown)=\\\"onItemSelected(item)\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"itemTemplate; context: item\\\"></ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-footer-typeahead-row\\\" *ngIf=\\\"footerTemplate\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"footerTemplate\\\"></ng-container>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-typeahead .pri-typeahead{position:absolute;z-index:1500;background:var(--grey-1);overflow:hidden;max-height:400px;border:1px solid var(--grey-4);flex-direction:column;display:flex;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);top:0}pri-typeahead .pri-typeahead .pri-typeahead-align-row{display:list-item;margin-top:-6px;position:relative;width:100%;overflow-y:auto}pri-typeahead .pri-typeahead .pri-typeahead-row{display:flex;flex-direction:column;background:var(--grey-1);color:var(--grey-8);min-height:45px;cursor:pointer;margin:2px 8px!important;border-radius:4px}pri-typeahead .pri-typeahead .pri-typeahead-row:hover,pri-typeahead .pri-typeahead .pri-typeahead-row-selected{background-color:var(--theme-10)}pri-typeahead .pri-typeahead .pri-typeahead-row:last-child{border-bottom:none}pri-typeahead .pri-typeahead .pri-footer-typeahead-row{background-color:var(--grey-1);width:100%;border-top:1px solid var(--grey-4);display:flex;align-items:center;min-height:56px}pri-typeahead .pri-search-typeahead .pri-typeahead-row{padding:4px 6px}pri-typeahead .pri-search-typeahead .pri-typeahead-row>div,pri-typeahead .pri-search-typeahead .pri-typeahead-row .line{font-size:12px;line-height:19px;color:var(--grey-8)}pri-typeahead .pri-search-typeahead .pri-typeahead-row>div:first-child,pri-typeahead .pri-search-typeahead .pri-typeahead-row .line:first-child{font-size:14px;color:var(--grey-8)}.modal-open .pri-typeahead{z-index:1044}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dismissView: [{\r\n                type: Input\r\n            }], parentElement: [{\r\n                type: Input\r\n            }], anchorElement: [{\r\n                type: Input\r\n            }], itemTemplate: [{\r\n                type: Input\r\n            }], footerTemplate: [{\r\n                type: Input\r\n            }], dataSource: [{\r\n                type: Input\r\n            }], customStyleClass: [{\r\n                type: Input\r\n            }], minWidth: [{\r\n                type: Input\r\n            }], onSelect: [{\r\n                type: Input\r\n            }], onDismiss: [{\r\n                type: Input\r\n            }], onReady: [{\r\n                type: Input\r\n            }], onDocumentClick: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }], onWindowResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize', ['$event']]\r\n            }], onDocumentScroll: [{\r\n                type: HostListener,\r\n                args: ['document:wheel', ['$event']]\r\n            }] } });\n\nclass PriTypeAheadDirective {\r\n    constructor(element, appRef, componentFactoryResolver, injector) {\r\n        this.element = element;\r\n        this.appRef = appRef;\r\n        this.componentFactoryResolver = componentFactoryResolver;\r\n        this.injector = injector;\r\n        this.priTypeaheadOnSelect = new EventEmitter();\r\n        this.listDataSource = new Subject();\r\n        this.typeaheadReady = new Subject();\r\n        this.isOpen = false;\r\n    }\r\n    ngOnInit() {\r\n        this.subscriberDataSource = this.priTypeahead.subscribe((data) => {\r\n            if (data.length === 0) {\r\n                //support to not open typeAhead when is no results (by default is to open when no result)\r\n                this.priTypeaheadOpenOnNoResult =\r\n                    this.priTypeaheadOpenOnNoResult === undefined ? true : this.priTypeaheadOpenOnNoResult;\r\n                if (this.priTypeaheadOpenOnNoResult) {\r\n                    // Only open typeAhead with no results if it is onFocus.\r\n                    if (this.priTypeaheadFocus) {\r\n                        if (!this.isOpen) {\r\n                            this.open();\r\n                            this.typeaheadReadySubscription = this.typeaheadReady.subscribe(() => {\r\n                                this.listDataSource.next(data);\r\n                            });\r\n                        }\r\n                        else {\r\n                            this.listDataSource.next(data);\r\n                        }\r\n                    }\r\n                }\r\n                else {\r\n                    this.onDismiss();\r\n                }\r\n            }\r\n            else if (this.isOpen) {\r\n                this.listDataSource.next(data);\r\n            }\r\n            else {\r\n                const boundingElementRect = this.element.nativeElement.getBoundingClientRect();\r\n                if (boundingElementRect.width <= 0 || boundingElementRect.height <= 0) {\r\n                    this.onDismiss();\r\n                }\r\n                else {\r\n                    this.open();\r\n                    this.typeaheadReadySubscription = this.typeaheadReady.subscribe(() => {\r\n                        this.listDataSource.next(data);\r\n                    });\r\n                }\r\n            }\r\n        });\r\n        if (this.priTypeaheadDismiss) {\r\n            this.subscriberDismissEvent = this.priTypeaheadDismiss.subscribe(() => {\r\n                this.onDismiss();\r\n            });\r\n        }\r\n        if (this.priTypeaheadDestroy) {\r\n            this.subscriberDestroy = this.priTypeaheadDestroy.subscribe((callback) => {\r\n                this.onDismiss();\r\n                if (callback) {\r\n                    callback();\r\n                }\r\n            });\r\n        }\r\n    }\r\n    onDismiss() {\r\n        this.isOpen = false;\r\n        if (this.closeTypeAheadInstanceCallback) {\r\n            this.closeTypeAheadInstanceCallback();\r\n            this.closeTypeAheadInstanceCallback = null;\r\n        }\r\n        if (this.typeaheadReadySubscription) {\r\n            this.typeaheadReadySubscription.unsubscribe();\r\n        }\r\n    }\r\n    open() {\r\n        this.isOpen = true;\r\n        const self = this;\r\n        const properties = {\r\n            parentElement: this.element.nativeElement,\r\n            anchorElement: this.priTypeaheadAnchorElement,\r\n            dataSource: this.listDataSource,\r\n            onReady: this.typeaheadReady,\r\n            customStyleClass: this.priTypeaheadClass,\r\n            itemTemplate: this.priTypeaheadItemTemplate,\r\n            footerTemplate: this.priTypeaheadFooterTemplate,\r\n            minWidth: this.priTypeaheadMinWidth,\r\n            onSelect: (item) => {\r\n                self.onSelect(item);\r\n            },\r\n            onDismiss: () => {\r\n                self.onDismiss();\r\n            }\r\n        };\r\n        this.closeTypeAheadInstanceCallback = this.appendComponentToBody(PriTypeAheadComponent, properties);\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.closeTypeAheadInstanceCallback) {\r\n            this.closeTypeAheadInstanceCallback();\r\n            this.closeTypeAheadInstanceCallback = null;\r\n        }\r\n        if (this.subscriberDataSource) {\r\n            this.subscriberDataSource.unsubscribe();\r\n        }\r\n        if (this.subscriberDestroy) {\r\n            this.subscriberDestroy.unsubscribe();\r\n        }\r\n        if (this.subscriberDismissEvent) {\r\n            this.subscriberDismissEvent.unsubscribe();\r\n        }\r\n        if (this.subscriberTypeaheadReady) {\r\n            this.subscriberTypeaheadReady.unsubscribe();\r\n        }\r\n    }\r\n    onSelect(item) {\r\n        this.priTypeaheadOnSelect.emit(item);\r\n        this.onDismiss();\r\n    }\r\n    appendComponentToBody(component, properties = null, onDismissView, appendTo = null) {\r\n        // Keep local reference of ApplicationRef\r\n        const localAppRef = this.appRef;\r\n        // Create a component reference from the component\r\n        const componentRef = this.componentFactoryResolver.resolveComponentFactory(component).create(this.injector);\r\n        const dismissComponentInstanceCallback = () => {\r\n            localAppRef.detachView(componentRef.hostView);\r\n            componentRef.destroy();\r\n            if (domElem) {\r\n                // for the remove of the element from the body\r\n                // hack to work with IE\r\n                try {\r\n                    document.body.removeChild(domElem);\r\n                }\r\n                catch (Exception) { }\r\n            }\r\n            if (onDismissView) {\r\n                onDismissView.emit();\r\n            }\r\n        };\r\n        componentRef.instance.dismissView = dismissComponentInstanceCallback;\r\n        // Add properties to the component\r\n        if (properties != null) {\r\n            if (properties instanceof Map) {\r\n                properties.forEach((value, key) => (componentRef.instance[key] = value));\r\n            }\r\n            else {\r\n                for (const property in properties) {\r\n                    if (Object.prototype.hasOwnProperty.call(properties, property)) {\r\n                        componentRef.instance[property] = properties[property];\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        // Attach component to the appRef so that it's inside the ng component tree\r\n        this.appRef.attachView(componentRef.hostView);\r\n        // Get DOM element from component\r\n        const domElem = componentRef.hostView.rootNodes[0];\r\n        const elementToAppend = appendTo ? appendTo : document.body;\r\n        // Append Dom element\r\n        elementToAppend.appendChild(domElem);\r\n        // Return a function to dismiss the view\r\n        return dismissComponentInstanceCallback;\r\n    }\r\n}\r\nPriTypeAheadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTypeAheadDirective, deps: [{ token: i0.ElementRef }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });\r\nPriTypeAheadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriTypeAheadDirective, selector: \"[priTypeahead]\", inputs: { priTypeahead: \"priTypeahead\", priTypeaheadItemTemplate: \"priTypeaheadItemTemplate\", priTypeaheadFooterTemplate: \"priTypeaheadFooterTemplate\", priTypeaheadAnchorElement: \"priTypeaheadAnchorElement\", priTypeaheadClass: \"priTypeaheadClass\", priTypeaheadMinWidth: \"priTypeaheadMinWidth\", priTypeaheadFocus: \"priTypeaheadFocus\", priTypeaheadDestroy: \"priTypeaheadDestroy\", priTypeaheadDismiss: \"priTypeaheadDismiss\", priTypeaheadOpenOnNoResult: \"priTypeaheadOpenOnNoResult\" }, outputs: { priTypeaheadOnSelect: \"priTypeaheadOnSelect\" }, exportAs: [\"pri-typeahead\"], ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTypeAheadDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priTypeahead]',\r\n                    exportAs: 'pri-typeahead'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }]; }, propDecorators: { priTypeahead: [{\r\n                type: Input\r\n            }], priTypeaheadItemTemplate: [{\r\n                type: Input\r\n            }], priTypeaheadFooterTemplate: [{\r\n                type: Input\r\n            }], priTypeaheadAnchorElement: [{\r\n                type: Input\r\n            }], priTypeaheadClass: [{\r\n                type: Input\r\n            }], priTypeaheadMinWidth: [{\r\n                type: Input\r\n            }], priTypeaheadFocus: [{\r\n                type: Input\r\n            }], priTypeaheadDestroy: [{\r\n                type: Input\r\n            }], priTypeaheadDismiss: [{\r\n                type: Input\r\n            }], priTypeaheadOpenOnNoResult: [{\r\n                type: Input\r\n            }], priTypeaheadOnSelect: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Component responsible to dimensions selector filter\r\n */\r\nclass TagSelectorFilterComponent {\r\n    /**\r\n     * Constructs the TagSelectorFilterComponent\r\n     */\r\n    constructor(changeDetectorRef, popoverService) {\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.popoverService = popoverService;\r\n        /** The selected items */\r\n        this.model = [];\r\n        /** The tag selector type */\r\n        this.type = 0 /* TagSelector.Normal */;\r\n        /** The tag selector type */\r\n        this.maxNumber = 5;\r\n        /** The placeholder for search input */\r\n        this.placeholderSearch = 'Search tag';\r\n        /** Allows to know if the view is disabled\r\n         *\r\n         * @return true/false it case of the is disabled or not\r\n         */\r\n        this.isDisabled = false;\r\n        /** Variable to control the loading */\r\n        this.loading = false;\r\n        /** Variable to control if the text input is on focus */\r\n        this.isOnFocus = false;\r\n        /** Variable to check the visibility of the more filters button */\r\n        this.moreFiltersIsVisible = false;\r\n        /** The model that will be save on draft */\r\n        this.internalModel = undefined;\r\n        /** Event emitted on search */\r\n        this.doSearch = new EventEmitter();\r\n    }\r\n    /**\r\n     * A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive.\r\n     * Define an ngOnInit() method to handle any additional initialization tasks.\r\n     */\r\n    ngOnInit() {\r\n        if (!this.typeaheadDataSource) {\r\n            this.typeaheadDataSource = new EventEmitter();\r\n        }\r\n        if (!this.typeaheadDestroy) {\r\n            this.typeaheadDestroy = new EventEmitter();\r\n        }\r\n        this.doSearch.pipe(debounceTime$1(300), \r\n        // this will prevent the search to be made when only the capitalization has changed\r\n        distinctUntilChanged((ls, cs) => ls.toLowerCase() === cs.toLowerCase())).subscribe((searchTerm) => {\r\n            if (searchTerm) {\r\n                this.loading = true;\r\n                this.getSearchResult(searchTerm);\r\n            }\r\n            else {\r\n                // When the search term if empty, there are no need to perform the search request.\r\n                this.typeaheadDataSource.next([]);\r\n            }\r\n        });\r\n        const self = this;\r\n        const filtersAnimationFn = () => {\r\n            self.filtersAnimation();\r\n        };\r\n        this.inputContent?.nativeElement?.addEventListener('transitionend', filtersAnimationFn);\r\n        this.inputContent?.nativeElement?.addEventListener('webkitTransitionEnd', filtersAnimationFn);\r\n        this.subjectSearchResult = this.dataSource.onSearchCompleted.subscribe(data => {\r\n            const resultSearch = [];\r\n            data.forEach(element => {\r\n                resultSearch.push({ item: element });\r\n            });\r\n            this.typeaheadDataSource.next(resultSearch);\r\n        });\r\n        if (this.model.length === 0 && this.defaultValueTag) {\r\n            this.model.push(this.defaultValueTag);\r\n        }\r\n    }\r\n    /**\r\n     * A lifecycle hook that is called after the default change detector has completed checking all content of a directive.\r\n     */\r\n    ngAfterContentChecked() {\r\n        this.filtersAnimation();\r\n    }\r\n    /**\r\n     * A callback method that performs custom clean-up, invoked immediately\r\n     * after a directive, pipe, or service instance is destroyed.\r\n     */\r\n    ngOnDestroy() {\r\n        this.subjectSearchResult.unsubscribe();\r\n    }\r\n    /**\r\n     * Fires when the text input of the search is focus\r\n     *\r\n     * @param e keyboard event\r\n     */\r\n    onInputFocus(e) {\r\n        if (!this.isOnFocus) {\r\n            this.typeaheadDestroy.emit(() => {\r\n                this.clear(e.target);\r\n                this.isOnFocus = true;\r\n                this.input = e.target || e.srcElement;\r\n                this.typeaheadAnchorElement = this.typeaheadAnchor.nativeElement;\r\n            });\r\n        }\r\n        if (!e.target.value) {\r\n            this.doSearch.emit('?');\r\n        }\r\n    }\r\n    /**\r\n     * Fires when the text input of the search loses the focus\r\n     *\r\n     * @param e keyboard event\r\n     */\r\n    onInputFocusOut(e) {\r\n        this.isOnFocus = false;\r\n        setTimeout(() => {\r\n            if (!this.isOnFocus) {\r\n                this.typeaheadDestroy.emit(() => {\r\n                    this.clear(e.target);\r\n                });\r\n            }\r\n        }, 200);\r\n    }\r\n    /**\r\n     * Fires when is pressed a key\r\n     *\r\n     * @param e keyboard event\r\n     */\r\n    onInputKeyUp(e) {\r\n        // must ignore in case of Tab Key\r\n        // otherwise it will produce a search\r\n        // when a tab is hit to navigate between fields\r\n        if (e.keyCode === 9 || e.keyCode === 27) {\r\n            return;\r\n        }\r\n        if (e.target && e.target.value) {\r\n            if (e.target.value.includes('\\'') || e.target.value.includes('#')) {\r\n                this.input.value = this.input.value.replace('\\'', '').replace('#', '');\r\n                e.target.value = e.target.value.replace('\\'', '').replace('#', '');\r\n                return;\r\n            }\r\n        }\r\n        // The search event can be triggered every time,\r\n        // evan if the content has not changed (Enter|Tab|Arrow keys pressed)\r\n        // because the this observable has the \"distinctUntilChanged()\"\r\n        // that will prevent the request be performed until the value has really changed.\r\n        // This way we don't need to verify if the content has changed\r\n        let searchTerm = this.input.value;\r\n        if (!searchTerm && e.target && e.target.value !== searchTerm) {\r\n            searchTerm = e.target.value;\r\n        }\r\n        this.doSearch.emit(searchTerm);\r\n    }\r\n    /**\r\n     * Fires when a item of the search list is selected\r\n     *\r\n     * @param data the data to item selected\r\n     */\r\n    typeaheadOnSelect(data) {\r\n        this.input.blur();\r\n        this.input.value = '';\r\n        const item = data.item;\r\n        if (!this.model) {\r\n            this.model = [];\r\n            if (this.defaultValueTag) {\r\n                this.model.push(this.defaultValueTag);\r\n            }\r\n        }\r\n        this.model.push(data.item);\r\n        this.dataSource.onValueChanged.emit(this.model);\r\n        if (this.inputContent?.nativeElement) {\r\n            this.inputContent.nativeElement.children[0].value = '';\r\n            this.inputContent.nativeElement.children[0].focus();\r\n        }\r\n    }\r\n    /**\r\n     * Responsible to remove a item of the array\r\n     *\r\n     * @param item the item to removing\r\n     */\r\n    removeItem(item) {\r\n        const index = this.model.indexOf(item);\r\n        if (index > -1) {\r\n            if (this.type === 0 /* TagSelector.Normal */) {\r\n                this.model.splice(index, 1);\r\n            }\r\n            else {\r\n                this.model.splice(index, this.model.length - index);\r\n            }\r\n        }\r\n        this.dataSource.onValueChanged.emit(this.model);\r\n        this.filtersAnimation();\r\n    }\r\n    /**\r\n     * Fires when the more filters button is clicked\r\n     */\r\n    openMoreFilters() {\r\n        if (!this.isMoreFiltersOpen) {\r\n            this.isMoreFiltersOpen = true;\r\n            const self = this;\r\n            const context = {\r\n                tagArray: this.model,\r\n                removeItemCallback: (item) => {\r\n                    self.removeItem(item);\r\n                }\r\n            };\r\n            const size = new PopoverSize(300, 400);\r\n            this.popoverService.showPopover(this.moreFiltersButton, TagSelectorFilterPopoverListComponent, context, size).then(() => {\r\n                this.isMoreFiltersOpen = false;\r\n            }, () => {\r\n                this.isMoreFiltersOpen = false;\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Clean the text input\r\n     */\r\n    clear(e) {\r\n        if (this.input) {\r\n            this.input.value = '';\r\n        }\r\n        if (e) {\r\n            e.value = '';\r\n        }\r\n        // this will \"reset\" the observable \"distinctUntilChanged\".\r\n        // this will allow to make two searchs with the same value after you have selected an item.\r\n        // p.e. search \"a\", select the item and search \"a\" again.\r\n        this.doSearch.emit('');\r\n    }\r\n    /**\r\n     * Get the search results\r\n     *\r\n     * @param term the term to search\r\n     */\r\n    getSearchResult(term) {\r\n        this.loading = false;\r\n        this.dataSource.search(term);\r\n    }\r\n    /**\r\n     * Responsible to check if the more filters button is visible or not\r\n     */\r\n    filtersAnimation() {\r\n        if (this.changeDetectorRef != null) {\r\n            this.changeDetectorRef.detectChanges();\r\n        }\r\n        if (!this.isOnFocus && this.filtersContent &&\r\n            this.filtersContent.nativeElement.scrollWidth > this.filtersContent.nativeElement.clientWidth) {\r\n            this.moreFiltersIsVisible = true;\r\n        }\r\n        else {\r\n            this.moreFiltersIsVisible = false;\r\n        }\r\n    }\r\n}\r\nTagSelectorFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Component });\r\nTagSelectorFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TagSelectorFilterComponent, selector: \"pri-tag-selector-filter\", inputs: { model: \"model\", dataSource: \"dataSource\", type: \"type\", maxNumber: \"maxNumber\", placeholderSearch: \"placeholderSearch\", defaultValueTag: \"defaultValueTag\", isDisabled: \"isDisabled\" }, viewQueries: [{ propertyName: \"typeaheadItemTemplate\", first: true, predicate: [\"itemTemplate\"], descendants: true, static: true }, { propertyName: \"typeahead\", first: true, predicate: [\"typeahead\"], descendants: true, static: true }, { propertyName: \"typeaheadAnchor\", first: true, predicate: [\"typeaheadAnchor\"], descendants: true, static: true }, { propertyName: \"filtersContent\", first: true, predicate: [\"filtersContent\"], descendants: true }, { propertyName: \"inputContent\", first: true, predicate: [\"inputContent\"], descendants: true, static: true }, { propertyName: \"moreFiltersButton\", first: true, predicate: [\"moreFiltersButton\"], descendants: true }], ngImport: i0, template: \"<div class=\\\"filters-selector-container\\\"\\r\\n    [ngClass]=\\\"{'disabled': isDisabled, 'filters-selector-container-tags': type === 0}\\\" #typeaheadAnchor>\\r\\n    <div class=\\\"filters-selector\\\" [ngClass]=\\\"{'disabled': isDisabled, 'filters-selector-tags': type === 0}\\\"\\r\\n        #typeahead=\\\"pri-typeahead\\\" [priTypeahead]=\\\"typeaheadDataSource\\\" [priTypeaheadDestroy]=\\\"typeaheadDestroy\\\"\\r\\n        [priTypeaheadItemTemplate]=\\\"typeaheadItemTemplate\\\" [priTypeaheadAnchorElement]=\\\"typeaheadAnchorElement\\\"\\r\\n        (priTypeaheadOnSelect)=\\\"typeaheadOnSelect($event)\\\"\\r\\n        priTypeaheadClass=\\\"pri-search-typeahead filters-selector-typeahead\\\" priTypeaheadMinWidth=\\\"250px\\\">\\r\\n\\r\\n        <div #filtersContent class=\\\"filters-content\\\" *ngIf=\\\"model && model.length > 0\\\"\\r\\n            [ngClass]=\\\"{'filters-content-tags': type === 0}\\\">\\r\\n            <pri-tag-selector-filter-item *ngFor=\\\"let item of model\\\" [ngClass]=\\\"{'disabled': isDisabled}\\\"\\r\\n                [isPath]=\\\"type === 1 ? true : false\\\" [value]=\\\"item\\\" [isDisabled]=\\\"isDisabled\\\"\\r\\n                (removeItem)=\\\"removeItem(item)\\\">\\r\\n            </pri-tag-selector-filter-item>\\r\\n        </div>\\r\\n        <div #inputContent *ngIf=\\\"!isDisabled\\\" class=\\\"input-content\\\" [ngClass]=\\\"{onFocus: isOnFocus, empty: !model || model.length === 0, noSearch: model && model.length > 0 \\r\\n                && (model.length >= maxNumber || model[model.length -1].isLeaf), 'input-content-tags': type === 0}\\\">\\r\\n            <input class=\\\"form-control input-md\\\"\\r\\n                *ngIf=\\\"!model || (model.length < maxNumber && (model.length === 0 ||!model[model.length -1].isLeaf))\\\"\\r\\n                type=\\\"text\\\" (focus)=\\\"onInputFocus($event)\\\" (focusout)=\\\"onInputFocusOut($event)\\\"\\r\\n                (keyup)=\\\"onInputKeyUp($event)\\\" [attr.readonly]=\\\"isDisabled ? true : null\\\"\\r\\n                [attr.disabled]=\\\"isDisabled ? true : null\\\" [placeholder]=\\\"placeholderSearch\\\" />\\r\\n            <pri-loading-spinner *ngIf=\\\"loading\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<ng-template let-item=\\\"item\\\" #itemTemplate>\\r\\n    <pri-tag-selector-filter-search-item [item]=\\\"item\\\" [ngClass]=\\\"{selected: item.selected}\\\">\\r\\n    </pri-tag-selector-filter-search-item>\\r\\n</ng-template>\", styles: [\"pri-tag-selector-filter{display:flex}pri-tag-selector-filter .filters-selector-container{background-color:var(--grey-1);display:flex;width:100%}pri-tag-selector-filter .filters-selector-container .filters-selector{width:100%;float:left;position:relative;display:flex;align-items:center}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content{display:flex;align-items:center;width:170px;transition:width .6s ease}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.onFocus{width:150px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.empty{width:150px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.noSearch{width:0px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content .form-control{padding-right:5px}pri-tag-selector-filter .filters-selector-container .filters-selector .filters-content{display:flex;overflow:auto;padding-top:2px}pri-tag-selector-filter .filters-selector-container.disabled{background-color:var(--grey-1)}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags{display:block}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .filters-content-tags{overflow:hidden;flex-wrap:wrap}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .input-content-tags{width:100%}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .input-content-tags.onFocus{width:100%}.filters-selector-typeahead.pri-search-typeahead .pri-typeahead-row{padding:0}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"directive\", type: PriTypeAheadDirective, selector: \"[priTypeahead]\", inputs: [\"priTypeahead\", \"priTypeaheadItemTemplate\", \"priTypeaheadFooterTemplate\", \"priTypeaheadAnchorElement\", \"priTypeaheadClass\", \"priTypeaheadMinWidth\", \"priTypeaheadFocus\", \"priTypeaheadDestroy\", \"priTypeaheadDismiss\", \"priTypeaheadOpenOnNoResult\"], outputs: [\"priTypeaheadOnSelect\"], exportAs: [\"pri-typeahead\"] }, { kind: \"component\", type: TagSelectorFilterSearchItemComponent, selector: \"pri-tag-selector-filter-search-item\", inputs: [\"item\"] }, { kind: \"component\", type: TagSelectorFilterItemComponent, selector: \"pri-tag-selector-filter-item\", inputs: [\"value\", \"isDisabled\", \"isPath\", \"removable\"], outputs: [\"removeItem\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TagSelectorFilterComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tag-selector-filter', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"filters-selector-container\\\"\\r\\n    [ngClass]=\\\"{'disabled': isDisabled, 'filters-selector-container-tags': type === 0}\\\" #typeaheadAnchor>\\r\\n    <div class=\\\"filters-selector\\\" [ngClass]=\\\"{'disabled': isDisabled, 'filters-selector-tags': type === 0}\\\"\\r\\n        #typeahead=\\\"pri-typeahead\\\" [priTypeahead]=\\\"typeaheadDataSource\\\" [priTypeaheadDestroy]=\\\"typeaheadDestroy\\\"\\r\\n        [priTypeaheadItemTemplate]=\\\"typeaheadItemTemplate\\\" [priTypeaheadAnchorElement]=\\\"typeaheadAnchorElement\\\"\\r\\n        (priTypeaheadOnSelect)=\\\"typeaheadOnSelect($event)\\\"\\r\\n        priTypeaheadClass=\\\"pri-search-typeahead filters-selector-typeahead\\\" priTypeaheadMinWidth=\\\"250px\\\">\\r\\n\\r\\n        <div #filtersContent class=\\\"filters-content\\\" *ngIf=\\\"model && model.length > 0\\\"\\r\\n            [ngClass]=\\\"{'filters-content-tags': type === 0}\\\">\\r\\n            <pri-tag-selector-filter-item *ngFor=\\\"let item of model\\\" [ngClass]=\\\"{'disabled': isDisabled}\\\"\\r\\n                [isPath]=\\\"type === 1 ? true : false\\\" [value]=\\\"item\\\" [isDisabled]=\\\"isDisabled\\\"\\r\\n                (removeItem)=\\\"removeItem(item)\\\">\\r\\n            </pri-tag-selector-filter-item>\\r\\n        </div>\\r\\n        <div #inputContent *ngIf=\\\"!isDisabled\\\" class=\\\"input-content\\\" [ngClass]=\\\"{onFocus: isOnFocus, empty: !model || model.length === 0, noSearch: model && model.length > 0 \\r\\n                && (model.length >= maxNumber || model[model.length -1].isLeaf), 'input-content-tags': type === 0}\\\">\\r\\n            <input class=\\\"form-control input-md\\\"\\r\\n                *ngIf=\\\"!model || (model.length < maxNumber && (model.length === 0 ||!model[model.length -1].isLeaf))\\\"\\r\\n                type=\\\"text\\\" (focus)=\\\"onInputFocus($event)\\\" (focusout)=\\\"onInputFocusOut($event)\\\"\\r\\n                (keyup)=\\\"onInputKeyUp($event)\\\" [attr.readonly]=\\\"isDisabled ? true : null\\\"\\r\\n                [attr.disabled]=\\\"isDisabled ? true : null\\\" [placeholder]=\\\"placeholderSearch\\\" />\\r\\n            <pri-loading-spinner *ngIf=\\\"loading\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<ng-template let-item=\\\"item\\\" #itemTemplate>\\r\\n    <pri-tag-selector-filter-search-item [item]=\\\"item\\\" [ngClass]=\\\"{selected: item.selected}\\\">\\r\\n    </pri-tag-selector-filter-search-item>\\r\\n</ng-template>\", styles: [\"pri-tag-selector-filter{display:flex}pri-tag-selector-filter .filters-selector-container{background-color:var(--grey-1);display:flex;width:100%}pri-tag-selector-filter .filters-selector-container .filters-selector{width:100%;float:left;position:relative;display:flex;align-items:center}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content{display:flex;align-items:center;width:170px;transition:width .6s ease}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.onFocus{width:150px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.empty{width:150px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content.noSearch{width:0px}pri-tag-selector-filter .filters-selector-container .filters-selector .input-content .form-control{padding-right:5px}pri-tag-selector-filter .filters-selector-container .filters-selector .filters-content{display:flex;overflow:auto;padding-top:2px}pri-tag-selector-filter .filters-selector-container.disabled{background-color:var(--grey-1)}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags{display:block}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .filters-content-tags{overflow:hidden;flex-wrap:wrap}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .input-content-tags{width:100%}pri-tag-selector-filter .filters-selector-container-tags .filters-selector-tags .input-content-tags.onFocus{width:100%}.filters-selector-typeahead.pri-search-typeahead .pri-typeahead-row{padding:0}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: PopoverService }]; }, propDecorators: { typeaheadItemTemplate: [{\r\n                type: ViewChild,\r\n                args: ['itemTemplate', { static: true }]\r\n            }], typeahead: [{\r\n                type: ViewChild,\r\n                args: ['typeahead', { static: true }]\r\n            }], typeaheadAnchor: [{\r\n                type: ViewChild,\r\n                args: ['typeaheadAnchor', { static: true }]\r\n            }], filtersContent: [{\r\n                type: ViewChild,\r\n                args: ['filtersContent', { static: false }]\r\n            }], inputContent: [{\r\n                type: ViewChild,\r\n                args: ['inputContent', { static: true }]\r\n            }], moreFiltersButton: [{\r\n                type: ViewChild,\r\n                args: ['moreFiltersButton', { static: false }]\r\n            }], model: [{\r\n                type: Input\r\n            }], dataSource: [{\r\n                type: Input\r\n            }], type: [{\r\n                type: Input\r\n            }], maxNumber: [{\r\n                type: Input\r\n            }], placeholderSearch: [{\r\n                type: Input\r\n            }], defaultValueTag: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }] } });\n\nclass TaskCardComponent {\r\n    constructor(http, appContextService, i18nService, routeHelperService, amsService) {\r\n        this.http = http;\r\n        this.appContextService = appContextService;\r\n        this.i18nService = i18nService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n        this.status = '';\r\n        this.progress = 0;\r\n        this.stepsCollapsed = true;\r\n        this.completedStepsCount = 0;\r\n        this.collapsingSteps = false;\r\n        this.formattedDueDate = '';\r\n        this.statusResName = '';\r\n        this.expired = false;\r\n        this.stepCompletionEnabled = false;\r\n        this.userInitials = '';\r\n        this.newStatusValue = 1;\r\n        this.activeStatusValue = 2;\r\n        this.stalledStatusValue = 3;\r\n        this.completedStatusValue = 4;\r\n    }\r\n    onClickTask() {\r\n        if (this.configuration?.createOperation) {\r\n            if (this.configuration.createOperation.sideBar) {\r\n                this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, `corepatterns/assignments/editsidebarassignment`, {\r\n                    panelid: this.data.id\r\n                }, \"panel\" /* OutletEnum.Panel */);\r\n            }\r\n            else {\r\n                if (this.configuration.createOperation.externalOperations) {\r\n                    let outlet = \"primary\" /* OutletEnum.Primary */;\r\n                    let queryParams = {\r\n                        id: this.data.id\r\n                    };\r\n                    if (this.configuration.createOperation.externalOperations.outlet &&\r\n                        this.configuration.createOperation.externalOperations.outlet === \"panel\" /* OutletEnum.Panel */) {\r\n                        outlet = \"panel\" /* OutletEnum.Panel */;\r\n                        queryParams = {\r\n                            panelid: this.data.id\r\n                        };\r\n                    }\r\n                    else if (this.configuration.createOperation.externalOperations.outlet &&\r\n                        this.configuration.createOperation.externalOperations.outlet === \"popup\" /* OutletEnum.Popup */) {\r\n                        outlet = \"popup\" /* OutletEnum.Popup */;\r\n                        queryParams = {\r\n                            popupid: this.data.id\r\n                        };\r\n                    }\r\n                    this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, this.configuration.createOperation.externalOperations.edit, queryParams, outlet);\r\n                }\r\n                else {\r\n                    console.warn('Configuration external operations missing in JSON file');\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            /**\r\n             * In some cases, the files tasksWidget.json, tasksWidgetNoData.json or tasksWidgetNoFilters.json\r\n             * has no value set to \"createOperation\" property and this is not wrong/a bug. It can be a product choice.\r\n             */\r\n            console.warn('Configuration missing in JSON file');\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.calcProgress();\r\n        const loggedInUserId = this.appContextService.user.id.toUpperCase();\r\n        this.stepCompletionEnabled =\r\n            this.data.assignedToKey && this.data.assignedToKey.toUpperCase() === loggedInUserId;\r\n        // check if dueDate is today\r\n        if (isSameDay(new Date(this.data.dueDate), new Date())) {\r\n            this.formattedDueDate = this.i18nService.get('components.components.RES_Today');\r\n        }\r\n        else {\r\n            this.formattedDueDate = format(new Date(this.data.dueDate), 'MMM, dd');\r\n        }\r\n        switch (this.data.assignmentState) {\r\n            case 0:\r\n            case this.newStatusValue:\r\n                this.status = 'new';\r\n                break;\r\n            case this.activeStatusValue:\r\n                this.status = 'active';\r\n                break;\r\n            case this.stalledStatusValue:\r\n                this.status = 'stalled';\r\n                break;\r\n            case this.completedStatusValue:\r\n                this.status = 'completed';\r\n                break;\r\n        }\r\n        if (!this.data.assignedToPicture && this.data.assignedToDescription) {\r\n            const matches = this.data.assignedToDescription.match(/\\b(\\w)/g); // ['J','S','O','N']\r\n            if (matches) {\r\n                this.userInitials = matches.join('');\r\n            }\r\n        }\r\n        this.onStatusChanged();\r\n    }\r\n    toggleStepsVisibility(event) {\r\n        // To prevent from the host click happen, so the right bar does not open\r\n        event.stopPropagation();\r\n        if (this.collapsingSteps) {\r\n            return;\r\n        }\r\n        this.collapsingSteps = true;\r\n        // Had to use JS for this because css only wouldn't work (more info in the article linked bellow)\r\n        // more info: https://css-tricks.com/using-css-transitions-auto-dimensions/\r\n        this.stepsCollapsed = !this.stepsCollapsed;\r\n        const element = this.stepsContainer.nativeElement;\r\n        // get the height of the element's inner content, regardless of its actual size\r\n        const sectionHeight = element.scrollHeight;\r\n        if (this.stepsCollapsed) {\r\n            // temporarily disable all css transitions\r\n            const elementTransition = element.style.transition;\r\n            element.style.transition = '';\r\n            const self = this;\r\n            // on the next frame (as soon as the previous style change has taken effect),\r\n            // explicitly set the element's height to its current pixel height, so we\r\n            // aren't transitioning out of 'auto'\r\n            requestAnimationFrame(() => {\r\n                element.style.height = sectionHeight + 'px';\r\n                element.style.transition = elementTransition;\r\n                // on the next frame (as soon as the previous style change has taken effect),\r\n                // have the element transition to height: 0\r\n                requestAnimationFrame(() => {\r\n                    element.style.height = 0 + 'px';\r\n                    self.collapsingSteps = false;\r\n                });\r\n            });\r\n            // mark the section as \"currently collapsed\"\r\n            element.setAttribute('data-collapsed', 'true');\r\n        }\r\n        else {\r\n            // have the element transition to the height of its inner content\r\n            element.style.height = sectionHeight + 'px';\r\n            // https://stackoverflow.com/a/46907785/7586354\r\n            this.hideStepsHandler = this.hideStepsTransitionCallback.bind(this);\r\n            // listen to the next css transition finish\r\n            element.addEventListener('transitionend', this.hideStepsHandler, true);\r\n            // mark the section as \"currently not collapsed\"\r\n            element.setAttribute('data-collapsed', 'false');\r\n        }\r\n    }\r\n    updateStepState(stepId) {\r\n        const step = this.data.assignmentSteps.find((s) => s.id === stepId);\r\n        if (step && this.stepCompletionEnabled) {\r\n            step.completed = !step.completed;\r\n            let newStatus = 0;\r\n            if (step.completed === true) {\r\n                newStatus = this.completedStatusValue;\r\n            }\r\n            else {\r\n                newStatus = this.activeStatusValue;\r\n            }\r\n            this.onStepStatusChanged();\r\n            this.calcProgress();\r\n            // disable step completion during the http request\r\n            this.stepCompletionEnabled = false;\r\n            this.http\r\n                .put(`/api/corePatterns/assignments/${this.data.assignmentKey}/assignmentSteps/${stepId}/assignmentState`, newStatus)\r\n                .subscribe(() => {\r\n                this.stepCompletionEnabled = true;\r\n            }, (error) => console.log(error));\r\n        }\r\n    }\r\n    onClickStep(event) {\r\n        // To prevent from the host click happen, so the right bar does not open\r\n        event.stopPropagation();\r\n    }\r\n    onAssignedToImgError() {\r\n        // if the image failed to load, we set it as undefined to load the initials instead of the image\r\n        this.data.assignedToPicture = undefined;\r\n        // determine the users initials\r\n        const matches = this.data.assignedToDescription.match(/\\b(\\w)/g); // ['J','S','O','N']\r\n        if (matches) {\r\n            this.userInitials = matches.join('');\r\n        }\r\n    }\r\n    onStatusChanged() {\r\n        this.expired = this.status !== 'completed' && this.data.dueDate < new Date();\r\n        this.statusResName = 'components.components.RES_' + this.status.toUpperCase();\r\n    }\r\n    hideStepsTransitionCallback() {\r\n        this.stepsContainer.nativeElement.style.height = 'auto';\r\n        // remove this event listener so it only gets triggered once\r\n        this.stepsContainer.nativeElement.removeEventListener('transitionend', this.hideStepsHandler, true);\r\n        this.collapsingSteps = false;\r\n    }\r\n    calcProgress() {\r\n        if (this.data.assignmentSteps.length) {\r\n            this.completedStepsCount = this.data.assignmentSteps.filter((s) => s.completed === true).length;\r\n            this.progress = (this.completedStepsCount / this.data.assignmentSteps.length).toFixed(2) * 100;\r\n        }\r\n    }\r\n    onStepStatusChanged() {\r\n        if (this.data.assignmentSteps.length) {\r\n            const prevStatus = this.status;\r\n            const allStepsCompleted = this.data.assignmentSteps.filter((step) => step.completed === false).length === 0;\r\n            if (allStepsCompleted) {\r\n                this.status = 'completed';\r\n                this.onStatusChanged();\r\n            }\r\n            else if (prevStatus === 'new' || prevStatus === 'completed') {\r\n                // if the previous status was 'new' or 'completed' and we've not completed all the steps yet\r\n                this.status = 'active';\r\n                this.onStatusChanged();\r\n            }\r\n        }\r\n    }\r\n}\r\nTaskCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TaskCardComponent, deps: [{ token: i1$4.HttpClient }, { token: i1$2.AppContextService }, { token: i2$3.I18nService }, { token: i1$2.RouteHelperService }, { token: i1$2.AmsService }], target: i0.ɵɵFactoryTarget.Component });\r\nTaskCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TaskCardComponent, selector: \"pri-task-card\", inputs: { data: \"data\", configuration: \"configuration\" }, host: { listeners: { \"click\": \"onClickTask()\" } }, viewQueries: [{ propertyName: \"stepsContainer\", first: true, predicate: [\"stepsContainer\"], descendants: true }], ngImport: i0, template: \"<div class=\\\"task-card\\\" [class.expired]=\\\"expired\\\" [class.no-configured]=\\\"!configuration?.createOperation\\\">\\r\\n\\t<a *ngIf=\\\"data.url && data.url.length\\\" href=\\\"{{ data.url }}\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"titleTemplate\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\t<ng-container *ngIf=\\\"!(data.url && data.url.length)\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"titleTemplate\\\"></ng-container>\\r\\n\\t</ng-container>\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"data.notes\\\"\\r\\n\\t\\tclass=\\\"task-card-description\\\"\\r\\n\\t\\t[class.no-steps]=\\\"!data.assignmentSteps || !data.assignmentSteps.length\\\">\\r\\n\\t\\t{{ data.notes }}\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"expired\\\" class=\\\"task-card-expired-stamp\\\">\\r\\n\\t\\t<img src=\\\"/assets/images/task-expired.svg\\\" />\\r\\n\\t</div>\\r\\n\\t<div class=\\\"task-progress\\\" *ngIf=\\\"data.assignmentSteps && data.assignmentSteps.length\\\">\\r\\n\\t\\t<div class=\\\"task-progress-bar-title\\\">{{ 'components.components.RES_Task_Progress' | priI18n }}</div>\\r\\n\\r\\n\\t\\t<div class=\\\"task-progress-bar\\\">\\r\\n\\t\\t\\t<pri-progress-bar [status]=\\\"status\\\" [progress]=\\\"progress\\\" [alwaysVisible]=\\\"true\\\"> </pri-progress-bar>\\r\\n\\t\\t\\t<div class=\\\"task-steps-count\\\">{{ completedStepsCount }} / {{ data.assignmentSteps.length }}</div>\\r\\n\\t\\t\\t<div class=\\\"task-toggle-steps-btn\\\" (click)=\\\"toggleStepsVisibility($event)\\\">\\r\\n\\t\\t\\t\\t<i [@rotate]=\\\"stepsCollapsed ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"task-steps\\\" [class.collapsed]=\\\"stepsCollapsed\\\" #stepsContainer (click)=\\\"onClickStep($event)\\\">\\r\\n\\t\\t\\t<div class=\\\"task-step\\\" *ngFor=\\\"let step of data.assignmentSteps\\\">\\r\\n\\t\\t\\t\\t<mat-checkbox\\r\\n\\t\\t\\t\\t\\tclass=\\\"example-margin\\\"\\r\\n\\t\\t\\t\\t\\t[class.mat-checkbox-disabled]=\\\"!stepCompletionEnabled\\\"\\r\\n\\t\\t\\t\\t\\t(change)=\\\"updateStepState(step.id)\\\"\\r\\n\\t\\t\\t\\t\\t[checked]=\\\"step.completed\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"!stepCompletionEnabled\\\">\\r\\n\\t\\t\\t\\t\\t{{ step.title }}\\r\\n\\t\\t\\t\\t</mat-checkbox>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<div class=\\\"task-bottom-info\\\">\\r\\n\\t\\t<img\\r\\n\\t\\t\\t*ngIf=\\\"data.assignedToPicture\\\"\\r\\n\\t\\t\\tclass=\\\"task-user-image\\\"\\r\\n\\t\\t\\t[src]=\\\"data.assignedToPicture\\\"\\r\\n\\t\\t\\t(error)=\\\"onAssignedToImgError()\\\" />\\r\\n\\t\\t<div *ngIf=\\\"!data.assignedToPicture\\\" class=\\\"task-user-initials\\\">\\r\\n\\t\\t\\t{{ userInitials }}\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"task-info-container\\\">\\r\\n\\t\\t\\t<div class=\\\"task-date\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-calendar\\\"></i>\\r\\n\\t\\t\\t\\t{{ formattedDueDate }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"task-state\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"task-state-dot {{ status }}\\\"></div>\\r\\n\\t\\t\\t\\t{{ statusResName | priI18n }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<ng-template #titleTemplate>\\r\\n\\t<div class=\\\"task-card-title\\\">{{ data.title }}</div>\\r\\n</ng-template>\\r\\n\", styles: [\"pri-task-card .task-card{display:flex;flex-direction:column;border:1px solid var(--grey-4);border-radius:4px;padding:16px 20px;background-color:var(--grey-3);position:relative;justify-content:space-between;overflow:hidden}pri-task-card .task-card .task-card-expired-stamp{position:absolute;top:5px;right:5px;box-sizing:border-box}pri-task-card .task-card:not(.no-configured):hover{cursor:pointer;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-task-card .task-card .task-card-title{color:var(--grey-8);font-size:16px;margin-bottom:4px;pointer-events:none;font-weight:700}pri-task-card .task-card a .task-card-title{color:inherit}pri-task-card .task-card .task-card-description{color:var(--grey-7);font-size:14px;max-height:1.2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-task-card .task-card .task-card-description.no-steps{margin-bottom:16px}pri-task-card .task-card .task-progress{display:flex;flex-direction:column;width:100%;margin-top:16px}pri-task-card .task-card .task-progress .task-progress-bar-title{color:var(--grey-7);font-size:12px;font-weight:lighter;width:100%}pri-task-card .task-card .task-progress .task-progress-bar{display:flex;flex-direction:row;width:100%;height:28px}pri-task-card .task-card .task-progress .task-progress-bar .task-steps-count{display:flex;flex-shrink:0;height:100%;align-items:center;margin-left:8px;font-size:12px;font-weight:700;color:var(--grey-7)}pri-task-card .task-card .task-progress .task-progress-bar .task-toggle-steps-btn{margin-left:5px;display:flex;flex-shrink:0;justify-content:center;align-items:center;color:var(--grey-8);font-size:14px;background-color:var(--grey-3);height:100%;width:28px;border-radius:15px}pri-task-card .task-card .task-progress .task-progress-bar .task-toggle-steps-btn:hover{background:var(--grey-1);color:var(--grey-8);cursor:pointer}pri-task-card .task-card .task-progress .task-steps{display:flex;flex-direction:column;width:100%;margin-top:8px;overflow:hidden;transition:height .2s ease-out;margin-bottom:16px;height:0px}pri-task-card .task-card .task-progress .task-steps.collapsed{margin-bottom:0}pri-task-card .task-card .task-progress .task-steps .task-step{width:100%;font-size:14px;background-color:var(--grey-1);border-radius:4px;margin-bottom:4px;padding:10px}pri-task-card .task-card .task-progress .task-steps .task-step:last-child{margin-bottom:0}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-label{color:var(--grey-7)}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-disabled .mat-checkbox-frame:hover{cursor:not-allowed}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-frame,pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-background{border-radius:15px!important;border:1px solid var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-frame svg,pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-background svg{height:12px;margin-top:1px}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-checked .mat-checkbox-background{background-color:transparent!important;border:1px solid var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-checked .mat-checkbox-background .mat-checkbox-checkmark-path{stroke:var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-ripple-element{background-color:var(--grey-4)!important}pri-task-card .task-card .task-bottom-info{display:flex;flex-direction:row;align-items:center;overflow:hidden;width:100%;font-size:12px;color:var(--grey-7)}pri-task-card .task-card .task-bottom-info .task-user-image{width:30px;height:30px;border-radius:50%;border:1px solid var(--grey-4)}pri-task-card .task-card .task-bottom-info .task-user-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:50%;background-color:#fff;font-size:14px;font-weight:700;color:var(--grey-8);border:1px solid var(--grey-4)}pri-task-card .task-card .task-bottom-info .task-info-container{display:flex;flex-direction:column}pri-task-card .task-card .task-bottom-info .task-info-container .task-date{display:flex;flex-shrink:0;align-items:center;margin-left:16px}pri-task-card .task-card .task-bottom-info .task-info-container .task-date i{align-self:center;margin-right:4px}pri-task-card .task-card .task-bottom-info .task-info-container .task-state{display:flex;flex-shrink:0;align-items:center;margin-left:16px;margin-top:4px}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot{height:12px;width:12px;border-radius:100%;margin-right:4px;flex-shrink:0}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.new{background-color:var(--grey-5)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.active{background-color:var(--info-100)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.stalled{background-color:var(--warning-100)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.completed{background-color:var(--success-100)}pri-task-card .task-card.expired{min-height:120px;background-color:var(--grey-1)}pri-task-card .task-card.expired .task-progress .task-progress-bar .task-toggle-steps-btn{background-color:var(--grey-1);border:var(--grey-4);color:var(--grey-7)}pri-task-card .task-card.expired .task-progress .task-progress-bar .task-toggle-steps-btn:hover{background-color:var(--grey-3)}pri-task-card .task-card.expired .task-progress .task-steps .task-step{background-color:var(--grey-3)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"component\", type: i5$2.MatCheckbox, selector: \"mat-checkbox\", inputs: [\"disableRipple\", \"color\", \"tabIndex\"], exportAs: [\"matCheckbox\"] }, { kind: \"component\", type: ProgressBarComponent, selector: \"pri-progress-bar\", inputs: [\"status\", \"progress\", \"alwaysVisible\"] }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('rotate', [\r\n            state('initial', style({\r\n                transform: 'rotate(0deg)'\r\n            })),\r\n            state('rotated', style({\r\n                transform: 'rotate(180deg)'\r\n            })),\r\n            transition('initial => rotated', [animate('0.2s')]),\r\n            transition('rotated => initial', [animate('0.2s')])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TaskCardComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-task-card', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('rotate', [\r\n                            state('initial', style({\r\n                                transform: 'rotate(0deg)'\r\n                            })),\r\n                            state('rotated', style({\r\n                                transform: 'rotate(180deg)'\r\n                            })),\r\n                            transition('initial => rotated', [animate('0.2s')]),\r\n                            transition('rotated => initial', [animate('0.2s')])\r\n                        ])\r\n                    ], template: \"<div class=\\\"task-card\\\" [class.expired]=\\\"expired\\\" [class.no-configured]=\\\"!configuration?.createOperation\\\">\\r\\n\\t<a *ngIf=\\\"data.url && data.url.length\\\" href=\\\"{{ data.url }}\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"titleTemplate\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\t<ng-container *ngIf=\\\"!(data.url && data.url.length)\\\">\\r\\n\\t\\t<ng-container *ngTemplateOutlet=\\\"titleTemplate\\\"></ng-container>\\r\\n\\t</ng-container>\\r\\n\\t<div\\r\\n\\t\\t*ngIf=\\\"data.notes\\\"\\r\\n\\t\\tclass=\\\"task-card-description\\\"\\r\\n\\t\\t[class.no-steps]=\\\"!data.assignmentSteps || !data.assignmentSteps.length\\\">\\r\\n\\t\\t{{ data.notes }}\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"expired\\\" class=\\\"task-card-expired-stamp\\\">\\r\\n\\t\\t<img src=\\\"/assets/images/task-expired.svg\\\" />\\r\\n\\t</div>\\r\\n\\t<div class=\\\"task-progress\\\" *ngIf=\\\"data.assignmentSteps && data.assignmentSteps.length\\\">\\r\\n\\t\\t<div class=\\\"task-progress-bar-title\\\">{{ 'components.components.RES_Task_Progress' | priI18n }}</div>\\r\\n\\r\\n\\t\\t<div class=\\\"task-progress-bar\\\">\\r\\n\\t\\t\\t<pri-progress-bar [status]=\\\"status\\\" [progress]=\\\"progress\\\" [alwaysVisible]=\\\"true\\\"> </pri-progress-bar>\\r\\n\\t\\t\\t<div class=\\\"task-steps-count\\\">{{ completedStepsCount }} / {{ data.assignmentSteps.length }}</div>\\r\\n\\t\\t\\t<div class=\\\"task-toggle-steps-btn\\\" (click)=\\\"toggleStepsVisibility($event)\\\">\\r\\n\\t\\t\\t\\t<i [@rotate]=\\\"stepsCollapsed ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"task-steps\\\" [class.collapsed]=\\\"stepsCollapsed\\\" #stepsContainer (click)=\\\"onClickStep($event)\\\">\\r\\n\\t\\t\\t<div class=\\\"task-step\\\" *ngFor=\\\"let step of data.assignmentSteps\\\">\\r\\n\\t\\t\\t\\t<mat-checkbox\\r\\n\\t\\t\\t\\t\\tclass=\\\"example-margin\\\"\\r\\n\\t\\t\\t\\t\\t[class.mat-checkbox-disabled]=\\\"!stepCompletionEnabled\\\"\\r\\n\\t\\t\\t\\t\\t(change)=\\\"updateStepState(step.id)\\\"\\r\\n\\t\\t\\t\\t\\t[checked]=\\\"step.completed\\\"\\r\\n\\t\\t\\t\\t\\t[disabled]=\\\"!stepCompletionEnabled\\\">\\r\\n\\t\\t\\t\\t\\t{{ step.title }}\\r\\n\\t\\t\\t\\t</mat-checkbox>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<div class=\\\"task-bottom-info\\\">\\r\\n\\t\\t<img\\r\\n\\t\\t\\t*ngIf=\\\"data.assignedToPicture\\\"\\r\\n\\t\\t\\tclass=\\\"task-user-image\\\"\\r\\n\\t\\t\\t[src]=\\\"data.assignedToPicture\\\"\\r\\n\\t\\t\\t(error)=\\\"onAssignedToImgError()\\\" />\\r\\n\\t\\t<div *ngIf=\\\"!data.assignedToPicture\\\" class=\\\"task-user-initials\\\">\\r\\n\\t\\t\\t{{ userInitials }}\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"task-info-container\\\">\\r\\n\\t\\t\\t<div class=\\\"task-date\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-calendar\\\"></i>\\r\\n\\t\\t\\t\\t{{ formattedDueDate }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"task-state\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"task-state-dot {{ status }}\\\"></div>\\r\\n\\t\\t\\t\\t{{ statusResName | priI18n }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<ng-template #titleTemplate>\\r\\n\\t<div class=\\\"task-card-title\\\">{{ data.title }}</div>\\r\\n</ng-template>\\r\\n\", styles: [\"pri-task-card .task-card{display:flex;flex-direction:column;border:1px solid var(--grey-4);border-radius:4px;padding:16px 20px;background-color:var(--grey-3);position:relative;justify-content:space-between;overflow:hidden}pri-task-card .task-card .task-card-expired-stamp{position:absolute;top:5px;right:5px;box-sizing:border-box}pri-task-card .task-card:not(.no-configured):hover{cursor:pointer;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-task-card .task-card .task-card-title{color:var(--grey-8);font-size:16px;margin-bottom:4px;pointer-events:none;font-weight:700}pri-task-card .task-card a .task-card-title{color:inherit}pri-task-card .task-card .task-card-description{color:var(--grey-7);font-size:14px;max-height:1.2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-task-card .task-card .task-card-description.no-steps{margin-bottom:16px}pri-task-card .task-card .task-progress{display:flex;flex-direction:column;width:100%;margin-top:16px}pri-task-card .task-card .task-progress .task-progress-bar-title{color:var(--grey-7);font-size:12px;font-weight:lighter;width:100%}pri-task-card .task-card .task-progress .task-progress-bar{display:flex;flex-direction:row;width:100%;height:28px}pri-task-card .task-card .task-progress .task-progress-bar .task-steps-count{display:flex;flex-shrink:0;height:100%;align-items:center;margin-left:8px;font-size:12px;font-weight:700;color:var(--grey-7)}pri-task-card .task-card .task-progress .task-progress-bar .task-toggle-steps-btn{margin-left:5px;display:flex;flex-shrink:0;justify-content:center;align-items:center;color:var(--grey-8);font-size:14px;background-color:var(--grey-3);height:100%;width:28px;border-radius:15px}pri-task-card .task-card .task-progress .task-progress-bar .task-toggle-steps-btn:hover{background:var(--grey-1);color:var(--grey-8);cursor:pointer}pri-task-card .task-card .task-progress .task-steps{display:flex;flex-direction:column;width:100%;margin-top:8px;overflow:hidden;transition:height .2s ease-out;margin-bottom:16px;height:0px}pri-task-card .task-card .task-progress .task-steps.collapsed{margin-bottom:0}pri-task-card .task-card .task-progress .task-steps .task-step{width:100%;font-size:14px;background-color:var(--grey-1);border-radius:4px;margin-bottom:4px;padding:10px}pri-task-card .task-card .task-progress .task-steps .task-step:last-child{margin-bottom:0}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-label{color:var(--grey-7)}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-disabled .mat-checkbox-frame:hover{cursor:not-allowed}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-frame,pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-background{border-radius:15px!important;border:1px solid var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-frame svg,pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-background svg{height:12px;margin-top:1px}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-checked .mat-checkbox-background{background-color:transparent!important;border:1px solid var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-checkbox-checked .mat-checkbox-background .mat-checkbox-checkmark-path{stroke:var(--grey-4)!important}pri-task-card .task-card .task-progress .task-steps .task-step .mat-ripple-element{background-color:var(--grey-4)!important}pri-task-card .task-card .task-bottom-info{display:flex;flex-direction:row;align-items:center;overflow:hidden;width:100%;font-size:12px;color:var(--grey-7)}pri-task-card .task-card .task-bottom-info .task-user-image{width:30px;height:30px;border-radius:50%;border:1px solid var(--grey-4)}pri-task-card .task-card .task-bottom-info .task-user-initials{height:30px;width:30px;display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;border-radius:50%;background-color:#fff;font-size:14px;font-weight:700;color:var(--grey-8);border:1px solid var(--grey-4)}pri-task-card .task-card .task-bottom-info .task-info-container{display:flex;flex-direction:column}pri-task-card .task-card .task-bottom-info .task-info-container .task-date{display:flex;flex-shrink:0;align-items:center;margin-left:16px}pri-task-card .task-card .task-bottom-info .task-info-container .task-date i{align-self:center;margin-right:4px}pri-task-card .task-card .task-bottom-info .task-info-container .task-state{display:flex;flex-shrink:0;align-items:center;margin-left:16px;margin-top:4px}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot{height:12px;width:12px;border-radius:100%;margin-right:4px;flex-shrink:0}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.new{background-color:var(--grey-5)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.active{background-color:var(--info-100)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.stalled{background-color:var(--warning-100)}pri-task-card .task-card .task-bottom-info .task-info-container .task-state .task-state-dot.completed{background-color:var(--success-100)}pri-task-card .task-card.expired{min-height:120px;background-color:var(--grey-1)}pri-task-card .task-card.expired .task-progress .task-progress-bar .task-toggle-steps-btn{background-color:var(--grey-1);border:var(--grey-4);color:var(--grey-7)}pri-task-card .task-card.expired .task-progress .task-progress-bar .task-toggle-steps-btn:hover{background-color:var(--grey-3)}pri-task-card .task-card.expired .task-progress .task-steps .task-step{background-color:var(--grey-3)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: i1$2.AppContextService }, { type: i2$3.I18nService }, { type: i1$2.RouteHelperService }, { type: i1$2.AmsService }]; }, propDecorators: { data: [{\r\n                type: Input\r\n            }], configuration: [{\r\n                type: Input\r\n            }], stepsContainer: [{\r\n                type: ViewChild,\r\n                args: ['stepsContainer']\r\n            }], onClickTask: [{\r\n                type: HostListener,\r\n                args: ['click']\r\n            }] } });\n\nclass PriTextAlignComponent {\r\n    constructor() {\r\n        this.showAlignLeftBtn = true;\r\n        this.showAlignRightBtn = true;\r\n        this.showAlignCenterBtn = true;\r\n        this.showJustifyBtn = true;\r\n        this.disabled = false;\r\n        this.valueChange = new EventEmitter();\r\n    }\r\n    handleClick(value) {\r\n        this.value = value;\r\n        this.valueChange.emit(value);\r\n    }\r\n}\r\nPriTextAlignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTextAlignComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriTextAlignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriTextAlignComponent, selector: \"pri-textalign\", inputs: { value: \"value\", showAlignLeftBtn: \"showAlignLeftBtn\", showAlignRightBtn: \"showAlignRightBtn\", showAlignCenterBtn: \"showAlignCenterBtn\", showJustifyBtn: \"showJustifyBtn\", disabled: \"disabled\" }, outputs: { valueChange: \"valueChange\" }, ngImport: i0, template: \"<button *ngIf=\\\"showAlignLeftBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Left')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Left'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-left\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showAlignCenterBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Center')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Center'}\\\" [disabled]=\\\"disabled\\\"> \\r\\n    <i class=\\\"ti-ux-align-center\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showAlignRightBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Right')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Right'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-right\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showJustifyBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Justify')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Justify'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-justify\\\"></i>\\r\\n</button>\", styles: [\"pri-textalign{display:flex}pri-textalign .text-align-button{display:flex;padding:8px 12px 7px;margin-left:-1px;appearance:none;border-radius:0;color:var(--grey-8);border:1px solid var(--grey-4);box-shadow:none;cursor:pointer;background-color:var(--grey-1)}pri-textalign .text-align-button:disabled{cursor:default;background-color:var(--grey-3)}pri-textalign .text-align-button.active{background-color:var(--grey-3)}pri-textalign .text-align-button.active:disabled{background-color:var(--grey-1)}pri-textalign .text-align-button:focus{box-shadow:none;outline:none}pri-textalign .text-align-button [class^=ti-]{font-size:1em}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTextAlignComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-textalign', encapsulation: ViewEncapsulation.None, template: \"<button *ngIf=\\\"showAlignLeftBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Left')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Left'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-left\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showAlignCenterBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Center')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Center'}\\\" [disabled]=\\\"disabled\\\"> \\r\\n    <i class=\\\"ti-ux-align-center\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showAlignRightBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Right')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Right'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-right\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showJustifyBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Justify')\\\" class=\\\"text-align-button\\\" [ngClass]=\\\"{'active': value==='Justify'}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-align-justify\\\"></i>\\r\\n</button>\", styles: [\"pri-textalign{display:flex}pri-textalign .text-align-button{display:flex;padding:8px 12px 7px;margin-left:-1px;appearance:none;border-radius:0;color:var(--grey-8);border:1px solid var(--grey-4);box-shadow:none;cursor:pointer;background-color:var(--grey-1)}pri-textalign .text-align-button:disabled{cursor:default;background-color:var(--grey-3)}pri-textalign .text-align-button.active{background-color:var(--grey-3)}pri-textalign .text-align-button.active:disabled{background-color:var(--grey-1)}pri-textalign .text-align-button:focus{box-shadow:none;outline:none}pri-textalign .text-align-button [class^=ti-]{font-size:1em}\\n\"] }]\r\n        }], propDecorators: { value: [{\r\n                type: Input\r\n            }], showAlignLeftBtn: [{\r\n                type: Input\r\n            }], showAlignRightBtn: [{\r\n                type: Input\r\n            }], showAlignCenterBtn: [{\r\n                type: Input\r\n            }], showJustifyBtn: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass PriTextStyleComponent {\r\n    constructor() {\r\n        this.showBoldBtn = true;\r\n        this.showItalicBtn = true;\r\n        this.showUnderlineBtn = true;\r\n        this.disabled = false;\r\n        this.valueChange = new EventEmitter();\r\n    }\r\n    ngOnInit() {\r\n        if (!this.value) {\r\n            this.value = {\r\n                weight: false,\r\n                style: false,\r\n                decoration: false\r\n            };\r\n        }\r\n    }\r\n    handleClick(value) {\r\n        if (value === 'Bold') {\r\n            this.value.weight = this.value.weight ? false : true;\r\n        }\r\n        if (value === 'Italic') {\r\n            this.value.style = this.value.style ? false : true;\r\n        }\r\n        if (value === 'Underline') {\r\n            this.value.decoration = this.value.decoration ? false : true;\r\n        }\r\n        this.valueChange.emit(this.value);\r\n    }\r\n}\r\nPriTextStyleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTextStyleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriTextStyleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriTextStyleComponent, selector: \"pri-textstyle\", inputs: { value: \"value\", showBoldBtn: \"showBoldBtn\", showItalicBtn: \"showItalicBtn\", showUnderlineBtn: \"showUnderlineBtn\", disabled: \"disabled\" }, outputs: { valueChange: \"valueChange\" }, ngImport: i0, template: \"<button *ngIf=\\\"showBoldBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Bold')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.weight}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-bold\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showItalicBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Italic')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.style}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-italic\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showUnderlineBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Underline')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.decoration}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-underline\\\"></i>\\r\\n</button>\", styles: [\"pri-textstyle{display:flex}pri-textstyle .text-style-button{display:flex;padding:8px 12px 7px;margin-left:-1px;appearance:none;border-radius:0;color:var(--grey-8);border:1px solid var(--grey-4);box-shadow:none;cursor:pointer;background-color:var(--grey-1)}pri-textstyle .text-style-button:disabled{cursor:default;background-color:var(--grey-3)}pri-textstyle .text-style-button.active{background-color:var(--grey-3)}pri-textstyle .text-style-button.active:disabled{background-color:var(--grey-1)}pri-textstyle .text-style-button:focus{box-shadow:none;outline:none}pri-textstyle .text-style-button [class^=ti-]{font-size:1em}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriTextStyleComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-textstyle', encapsulation: ViewEncapsulation.None, template: \"<button *ngIf=\\\"showBoldBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Bold')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.weight}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-bold\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showItalicBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Italic')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.style}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-italic\\\"></i>\\r\\n</button>\\r\\n<button *ngIf=\\\"showUnderlineBtn\\\" type=\\\"button\\\" (click)=\\\"handleClick('Underline')\\\" class=\\\"text-style-button\\\" [ngClass]=\\\"{'active': value && value.decoration}\\\" [disabled]=\\\"disabled\\\">\\r\\n    <i class=\\\"ti-ux-underline\\\"></i>\\r\\n</button>\", styles: [\"pri-textstyle{display:flex}pri-textstyle .text-style-button{display:flex;padding:8px 12px 7px;margin-left:-1px;appearance:none;border-radius:0;color:var(--grey-8);border:1px solid var(--grey-4);box-shadow:none;cursor:pointer;background-color:var(--grey-1)}pri-textstyle .text-style-button:disabled{cursor:default;background-color:var(--grey-3)}pri-textstyle .text-style-button.active{background-color:var(--grey-3)}pri-textstyle .text-style-button.active:disabled{background-color:var(--grey-1)}pri-textstyle .text-style-button:focus{box-shadow:none;outline:none}pri-textstyle .text-style-button [class^=ti-]{font-size:1em}\\n\"] }]\r\n        }], propDecorators: { value: [{\r\n                type: Input\r\n            }], showBoldBtn: [{\r\n                type: Input\r\n            }], showItalicBtn: [{\r\n                type: Input\r\n            }], showUnderlineBtn: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\nclass ITranslation {\r\n}\n\nclass ICulture extends ITranslation {\r\n}\n\n/** The translation input options */\r\nclass TranslationInputOptions {\r\n    constructor(options) {\r\n        this.size = FieldsSizeEnum.Regular;\r\n        if (options) {\r\n            Object.assign(this, options);\r\n        }\r\n    }\r\n}\n\n/**\r\n * Returns the localized resource text based on the user culture.\r\n * If no user culture defined, fallbacks to en-US.\r\n * If no resource found for the en-US locale, returns the first resource.\r\n */\r\nclass TranslationResourceTextPipe {\r\n    constructor(appContextService) {\r\n        this.appContextService = appContextService;\r\n    }\r\n    transform(resources) {\r\n        if (resources.length < 1) {\r\n            return '';\r\n        }\r\n        const userLocale = this.appContextService?.user?.culture || 'en-US';\r\n        return resources.find((r) => r.key === userLocale)?.value || resources[0].value;\r\n    }\r\n}\r\nTranslationResourceTextPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationResourceTextPipe, deps: [{ token: i1$2.AppContextService }], target: i0.ɵɵFactoryTarget.Pipe });\r\nTranslationResourceTextPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationResourceTextPipe, isStandalone: true, name: \"translationResourceText\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationResourceTextPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'translationResourceText',\r\n                    standalone: true\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AppContextService }]; } });\n\nclass TranslationModalComponent {\r\n    constructor(bsModalRef, settingsService, appContextService, deviceService) {\r\n        this.bsModalRef = bsModalRef;\r\n        this.settingsService = settingsService;\r\n        this.appContextService = appContextService;\r\n        this.deviceService = deviceService;\r\n        this.saveTranslations = new EventEmitter();\r\n        this.isDisabled$ = new BehaviorSubject(false);\r\n        this.cultures = [];\r\n        this.ButtonTypeEnum = ButtonTypeEnum;\r\n        this.ButtonColorEnum = ButtonColorEnum;\r\n        this.isReady$ = new BehaviorSubject(false);\r\n        this.wasChanged = false;\r\n        this.isMobile = false;\r\n    }\r\n    async ngOnInit() {\r\n        this.userCulture = this.appContextService?.user?.culture || 'en-US';\r\n        this.languageNames = new Intl.DisplayNames([this.userCulture], {\r\n            type: 'language'\r\n        });\r\n        await this.getCultures();\r\n        this.focusFirstInput();\r\n        this.isReady$.next(true);\r\n    }\r\n    async getCultures() {\r\n        const cultures = await this.settingsService.getI18nDefaults();\r\n        this.mapTranslationsToCultures(cultures);\r\n    }\r\n    valueChange(value, key) {\r\n        if (this.cultures[key].value !== value) {\r\n            this.cultures[key].value = value;\r\n            this.wasChanged = true;\r\n        }\r\n    }\r\n    close() {\r\n        this.bsModalRef.hide();\r\n    }\r\n    reset() {\r\n        this.cultures.forEach((culture) => (culture.value = ''));\r\n        this.wasChanged = true;\r\n    }\r\n    /**\r\n     * Emits selected row data.\r\n     */\r\n    save() {\r\n        this.mapCulturesToTranslations();\r\n        this.saveTranslations.emit(this.translations);\r\n        this.close();\r\n    }\r\n    /**\r\n     * Shows the full language name or the short version\r\n     */\r\n    onResize() {\r\n        this.isMobile = this.deviceService.isMobileDevice();\r\n    }\r\n    /**\r\n     * The trackByFn to prevent memory leaks in ngFor\r\n     */\r\n    trackByKey(_, culture) {\r\n        return culture.key;\r\n    }\r\n    mapTranslationsToCultures(cultures) {\r\n        cultures.forEach((culture) => {\r\n            const data = this.translations.find((translation) => translation.key === culture.name);\r\n            this.cultures.push({\r\n                key: culture.name,\r\n                name: this.languageNames.of(culture.name) || culture.name,\r\n                value: data?.value || ''\r\n            });\r\n        });\r\n    }\r\n    mapCulturesToTranslations() {\r\n        this.translations = [];\r\n        this.cultures.forEach((culture) => {\r\n            if (culture.value) {\r\n                this.translations.push({\r\n                    key: culture.key,\r\n                    value: culture.value\r\n                });\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Detects when the InputComponents are loaded and\r\n     * focuses on the first writable input of the modal, if it is not disabled.\r\n     */\r\n    focusFirstInput() {\r\n        // listen for when the form inputs query list changes\r\n        this.inputsList.changes\r\n            .pipe(\r\n        // verify when there is data\r\n        filter$1((inputsList) => inputsList.length > 0), \r\n        // listen for 1 change only\r\n        take(1))\r\n            .subscribe(() => {\r\n            const input = this.inputsList?.get(1)?.input;\r\n            if (input && !this.isDisabled$.getValue()) {\r\n                input.nativeElement.focus();\r\n            }\r\n        });\r\n    }\r\n}\r\nTranslationModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationModalComponent, deps: [{ token: i1$5.BsModalRef }, { token: i1$2.SettingsService }, { token: i1$2.AppContextService }, { token: i1$2.DeviceService }], target: i0.ɵɵFactoryTarget.Component });\r\nTranslationModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TranslationModalComponent, isStandalone: true, selector: \"pri-translation-modal\", outputs: { saveTranslations: \"saveTranslations\" }, viewQueries: [{ propertyName: \"inputsList\", predicate: InputComponent, descendants: true }], ngImport: i0, template: \"<div priResizeObserver class=\\\"pri-modal\\\" *ngIf=\\\"isReady$ | async\\\" (sizeChanges)=\\\"onResize()\\\">\\r\\n\\t<div class=\\\"pri-modal-header\\\">\\r\\n\\t\\t<div class=\\\"pri-modal-header-title\\\">{{ 'components.components.RES_Translation_Modal_Title' | priI18n }}</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-modal-content\\\">\\r\\n\\t\\t<div class=\\\"fields\\\">\\r\\n\\t\\t\\t<div class=\\\"labels\\\">\\r\\n\\t\\t\\t\\t<label>{{ 'components.components.RES_Translation_Modal_Language_Label' | priI18n }}</label>\\r\\n\\t\\t\\t\\t<label>{{ fieldName }}</label>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"field\\\" *ngFor=\\\"let culture of cultures; index as key; trackBy: trackByKey\\\">\\r\\n\\t\\t\\t\\t<pri-input\\r\\n\\t\\t\\t\\t\\t[value]=\\\"isMobile ? culture.key : culture.name\\\"\\r\\n\\t\\t\\t\\t\\t[isDisabled]=\\\"true\\\"\\r\\n\\t\\t\\t\\t\\t[tooltip]=\\\"isMobile ? culture.name : null\\\"></pri-input>\\r\\n\\t\\t\\t\\t<pri-input\\r\\n\\t\\t\\t\\t\\t[value]=\\\"culture.value\\\"\\r\\n\\t\\t\\t\\t\\t(valueChange)=\\\"valueChange($event, key)\\\"\\r\\n\\t\\t\\t\\t\\t[options]=\\\"inputOptions\\\"\\r\\n\\t\\t\\t\\t\\t[isDisabled]=\\\"isDisabled$ | async\\\"></pri-input>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-modal-footer\\\">\\r\\n\\t\\t<pri-button\\r\\n\\t\\t\\t*ngIf=\\\"(isDisabled$ | async) === false\\\"\\r\\n\\t\\t\\t(click)=\\\"reset()\\\"\\r\\n\\t\\t\\t[options]=\\\"{\\r\\n\\t\\t\\t\\ttext: 'components.components.RES_Translation_Modal_Reset_Button' | priI18n,\\r\\n\\t\\t\\t\\ttype: ButtonTypeEnum.Tertiary,\\r\\n\\t\\t\\t\\tcolor: ButtonColorEnum.Grey,\\r\\n\\t\\t\\t\\ticon: 'ti-ux-revert'\\r\\n\\t\\t\\t}\\\">\\r\\n\\t\\t</pri-button>\\r\\n\\t\\t<div class=\\\"action-buttons\\\">\\r\\n\\t\\t\\t<pri-button\\r\\n\\t\\t\\t\\t(click)=\\\"close()\\\"\\r\\n\\t\\t\\t\\t[options]=\\\"{\\r\\n\\t\\t\\t\\t\\ttext: 'components.components.RES_Translation_Modal_Close_Button' | priI18n,\\r\\n\\t\\t\\t\\t\\ttype: ButtonTypeEnum.Tertiary,\\r\\n\\t\\t\\t\\t\\tcolor: ButtonColorEnum.Grey\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</pri-button>\\r\\n\\t\\t\\t<pri-button\\r\\n\\t\\t\\t\\t*ngIf=\\\"(isDisabled$ | async) === false\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"save()\\\"\\r\\n\\t\\t\\t\\t[options]=\\\"{ text: 'components.components.RES_Translation_Modal_Save_Button' | priI18n }\\\"\\r\\n\\t\\t\\t\\t[isDisabled]=\\\"!wasChanged\\\">\\r\\n\\t\\t\\t</pri-button>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".pri-modal-content .fields{display:flex;flex-direction:column;gap:16px;margin:20px 0}.pri-modal-content .fields .field,.pri-modal-content .fields .labels{display:flex;gap:16px}.pri-modal-content .fields .field pri-input:first-child,.pri-modal-content .fields .field label:first-child,.pri-modal-content .fields .labels pri-input:first-child,.pri-modal-content .fields .labels label:first-child{width:180px;min-width:180px}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper,.pri-modal-content .fields .field label:first-child .input-field-wrapper,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper,.pri-modal-content .fields .labels label:first-child .input-field-wrapper{background-color:var(--grey-2)}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .field label:first-child .input-field-wrapper input,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .labels label:first-child .input-field-wrapper input{text-transform:capitalize;color:var(--grey-8)}.pri-modal-content .fields .field pri-input:nth-child(2),.pri-modal-content .fields .field label:nth-child(2),.pri-modal-content .fields .labels pri-input:nth-child(2),.pri-modal-content .fields .labels label:nth-child(2){flex:0 1 100%;max-width:calc(100% - 196px)}.pri-modal-content .fields .field label,.pri-modal-content .fields .labels label{color:var(--grey-7)}.pri-modal-footer{display:flex;justify-content:space-between}.pri-modal-footer .action-buttons{display:flex;justify-content:flex-end;gap:12px;flex:100%}@media only screen and (max-width: 767px){.pri-modal-content .fields .field pri-input:first-child,.pri-modal-content .fields .field label:first-child,.pri-modal-content .fields .labels pri-input:first-child,.pri-modal-content .fields .labels label:first-child{width:80px;min-width:80px}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .field label:first-child .input-field-wrapper input,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .labels label:first-child .input-field-wrapper input{text-transform:none}.pri-modal-content .fields .field pri-input:nth-child(2),.pri-modal-content .fields .field label:nth-child(2),.pri-modal-content .fields .labels pri-input:nth-child(2),.pri-modal-content .fields .labels label:nth-child(2){max-width:calc(100% - 96px)}}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"component\", type: ButtonComponent, selector: \"pri-button\", inputs: [\"options\", \"count\", \"isDisabled\", \"loading\", \"extraClasses\"], outputs: [\"action\"] }, { kind: \"component\", type: InputComponent, selector: \"pri-input\", inputs: [\"options\", \"tooltip\", \"value\", \"isDisabled\"], outputs: [\"valueChange\", \"detailClick\"] }, { kind: \"directive\", type: ResizeObserverDirective, selector: \"[priResizeObserver]\", outputs: [\"sizeChanges\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationModalComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-translation-modal', encapsulation: ViewEncapsulation.None, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, PrimaveraI18nModule, ButtonComponent, InputComponent, ResizeObserverDirective], template: \"<div priResizeObserver class=\\\"pri-modal\\\" *ngIf=\\\"isReady$ | async\\\" (sizeChanges)=\\\"onResize()\\\">\\r\\n\\t<div class=\\\"pri-modal-header\\\">\\r\\n\\t\\t<div class=\\\"pri-modal-header-title\\\">{{ 'components.components.RES_Translation_Modal_Title' | priI18n }}</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-modal-content\\\">\\r\\n\\t\\t<div class=\\\"fields\\\">\\r\\n\\t\\t\\t<div class=\\\"labels\\\">\\r\\n\\t\\t\\t\\t<label>{{ 'components.components.RES_Translation_Modal_Language_Label' | priI18n }}</label>\\r\\n\\t\\t\\t\\t<label>{{ fieldName }}</label>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"field\\\" *ngFor=\\\"let culture of cultures; index as key; trackBy: trackByKey\\\">\\r\\n\\t\\t\\t\\t<pri-input\\r\\n\\t\\t\\t\\t\\t[value]=\\\"isMobile ? culture.key : culture.name\\\"\\r\\n\\t\\t\\t\\t\\t[isDisabled]=\\\"true\\\"\\r\\n\\t\\t\\t\\t\\t[tooltip]=\\\"isMobile ? culture.name : null\\\"></pri-input>\\r\\n\\t\\t\\t\\t<pri-input\\r\\n\\t\\t\\t\\t\\t[value]=\\\"culture.value\\\"\\r\\n\\t\\t\\t\\t\\t(valueChange)=\\\"valueChange($event, key)\\\"\\r\\n\\t\\t\\t\\t\\t[options]=\\\"inputOptions\\\"\\r\\n\\t\\t\\t\\t\\t[isDisabled]=\\\"isDisabled$ | async\\\"></pri-input>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"pri-modal-footer\\\">\\r\\n\\t\\t<pri-button\\r\\n\\t\\t\\t*ngIf=\\\"(isDisabled$ | async) === false\\\"\\r\\n\\t\\t\\t(click)=\\\"reset()\\\"\\r\\n\\t\\t\\t[options]=\\\"{\\r\\n\\t\\t\\t\\ttext: 'components.components.RES_Translation_Modal_Reset_Button' | priI18n,\\r\\n\\t\\t\\t\\ttype: ButtonTypeEnum.Tertiary,\\r\\n\\t\\t\\t\\tcolor: ButtonColorEnum.Grey,\\r\\n\\t\\t\\t\\ticon: 'ti-ux-revert'\\r\\n\\t\\t\\t}\\\">\\r\\n\\t\\t</pri-button>\\r\\n\\t\\t<div class=\\\"action-buttons\\\">\\r\\n\\t\\t\\t<pri-button\\r\\n\\t\\t\\t\\t(click)=\\\"close()\\\"\\r\\n\\t\\t\\t\\t[options]=\\\"{\\r\\n\\t\\t\\t\\t\\ttext: 'components.components.RES_Translation_Modal_Close_Button' | priI18n,\\r\\n\\t\\t\\t\\t\\ttype: ButtonTypeEnum.Tertiary,\\r\\n\\t\\t\\t\\t\\tcolor: ButtonColorEnum.Grey\\r\\n\\t\\t\\t\\t}\\\">\\r\\n\\t\\t\\t</pri-button>\\r\\n\\t\\t\\t<pri-button\\r\\n\\t\\t\\t\\t*ngIf=\\\"(isDisabled$ | async) === false\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"save()\\\"\\r\\n\\t\\t\\t\\t[options]=\\\"{ text: 'components.components.RES_Translation_Modal_Save_Button' | priI18n }\\\"\\r\\n\\t\\t\\t\\t[isDisabled]=\\\"!wasChanged\\\">\\r\\n\\t\\t\\t</pri-button>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\".pri-modal-content .fields{display:flex;flex-direction:column;gap:16px;margin:20px 0}.pri-modal-content .fields .field,.pri-modal-content .fields .labels{display:flex;gap:16px}.pri-modal-content .fields .field pri-input:first-child,.pri-modal-content .fields .field label:first-child,.pri-modal-content .fields .labels pri-input:first-child,.pri-modal-content .fields .labels label:first-child{width:180px;min-width:180px}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper,.pri-modal-content .fields .field label:first-child .input-field-wrapper,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper,.pri-modal-content .fields .labels label:first-child .input-field-wrapper{background-color:var(--grey-2)}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .field label:first-child .input-field-wrapper input,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .labels label:first-child .input-field-wrapper input{text-transform:capitalize;color:var(--grey-8)}.pri-modal-content .fields .field pri-input:nth-child(2),.pri-modal-content .fields .field label:nth-child(2),.pri-modal-content .fields .labels pri-input:nth-child(2),.pri-modal-content .fields .labels label:nth-child(2){flex:0 1 100%;max-width:calc(100% - 196px)}.pri-modal-content .fields .field label,.pri-modal-content .fields .labels label{color:var(--grey-7)}.pri-modal-footer{display:flex;justify-content:space-between}.pri-modal-footer .action-buttons{display:flex;justify-content:flex-end;gap:12px;flex:100%}@media only screen and (max-width: 767px){.pri-modal-content .fields .field pri-input:first-child,.pri-modal-content .fields .field label:first-child,.pri-modal-content .fields .labels pri-input:first-child,.pri-modal-content .fields .labels label:first-child{width:80px;min-width:80px}.pri-modal-content .fields .field pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .field label:first-child .input-field-wrapper input,.pri-modal-content .fields .labels pri-input:first-child .input-field-wrapper input,.pri-modal-content .fields .labels label:first-child .input-field-wrapper input{text-transform:none}.pri-modal-content .fields .field pri-input:nth-child(2),.pri-modal-content .fields .field label:nth-child(2),.pri-modal-content .fields .labels pri-input:nth-child(2),.pri-modal-content .fields .labels label:nth-child(2){max-width:calc(100% - 96px)}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$5.BsModalRef }, { type: i1$2.SettingsService }, { type: i1$2.AppContextService }, { type: i1$2.DeviceService }]; }, propDecorators: { saveTranslations: [{\r\n                type: Output\r\n            }], inputsList: [{\r\n                type: ViewChildren,\r\n                args: [InputComponent]\r\n            }] } });\n\nclass TranslationComponent {\r\n    constructor(modalService, changeDetection, i18nService) {\r\n        this.modalService = modalService;\r\n        this.changeDetection = changeDetection;\r\n        this.i18nService = i18nService;\r\n        this.valueChange = new EventEmitter();\r\n        this.isDisabled$ = new BehaviorSubject(false);\r\n        this.destroy$ = new Subject();\r\n        this._options = new TranslationInputOptions();\r\n    }\r\n    set options(options) {\r\n        this._options = new TranslationInputOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    set value(value) {\r\n        this._value = value;\r\n        this.changeDetection.detectChanges();\r\n    }\r\n    get value() {\r\n        return this._value;\r\n    }\r\n    set isDisabled(value) {\r\n        this.isDisabled$.next(value);\r\n    }\r\n    ngOnInit() {\r\n        // Set the pri-input options\r\n        this.inputOptions = new InputOptions({\r\n            detailLabel: this.i18nService.get('components.components.RES_Translation_Button_Label'),\r\n            maxLength: this.options.maxLength,\r\n            size: this.options.size,\r\n            placeholder: this.options.placeholder,\r\n            icon: this.options.icon\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    registerOnChange(fn) {\r\n        this.onChanged = fn;\r\n    }\r\n    registerOnTouched(fn) {\r\n        this.onTouched = fn;\r\n    }\r\n    writeValue(value) {\r\n        this.value = value;\r\n    }\r\n    onChange(value) {\r\n        this.valueChange.emit(value);\r\n        this.onChanged?.(value);\r\n        this.onTouched?.();\r\n    }\r\n    setDisabledState(isDisabled) {\r\n        this.isDisabled = isDisabled;\r\n        // Must performs change detection to ensure the rightly work of form value changes/reset\r\n        this.changeDetection.detectChanges();\r\n    }\r\n    // Open the translation modal with te provided settings\r\n    openModal() {\r\n        // Set the modal's config\r\n        const modalConfig = {\r\n            class: 'modal-lg popup-lookup',\r\n            ignoreBackdropClick: true\r\n        };\r\n        // init modal\r\n        const bsModalRef = this.modalService.show(TranslationModalComponent, modalConfig);\r\n        // Pass necessary variables into the modal's .ts\r\n        bsModalRef.content.fieldName = this.options.label;\r\n        bsModalRef.content.translations = this.value;\r\n        bsModalRef.content.isDisabled$ = this.isDisabled$;\r\n        bsModalRef.content.inputOptions = { maxLength: this.inputOptions.maxLength };\r\n        // Get the data emitted when the form inside the modal is saved\r\n        bsModalRef.content.saveTranslations.pipe(takeUntil(this.destroy$)).subscribe({\r\n            next: (data) => {\r\n                this.value = data;\r\n                this.onChange(data);\r\n            },\r\n            error: (error) => {\r\n                console.log(error);\r\n            }\r\n        });\r\n    }\r\n}\r\nTranslationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationComponent, deps: [{ token: i1$5.BsModalService }, { token: i0.ChangeDetectorRef }, { token: i2$3.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nTranslationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TranslationComponent, isStandalone: true, selector: \"pri-translation\", inputs: { options: \"options\", value: \"value\", isDisabled: \"isDisabled\" }, outputs: { valueChange: \"valueChange\" }, providers: [\r\n        {\r\n            provide: NG_VALUE_ACCESSOR,\r\n            useExisting: forwardRef(() => TranslationComponent),\r\n            multi: true\r\n        }\r\n    ], ngImport: i0, template: \"<pri-input\\r\\n\\t[value]=\\\"value | translationResourceText\\\"\\r\\n\\t[options]=\\\"inputOptions\\\"\\r\\n\\t[isDisabled]=\\\"isDisabled$ | async\\\"\\r\\n\\t(detailClick)=\\\"openModal()\\\"></pri-input>\\r\\n\", styles: [\"\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"component\", type: InputComponent, selector: \"pri-input\", inputs: [\"options\", \"tooltip\", \"value\", \"isDisabled\"], outputs: [\"valueChange\", \"detailClick\"] }, { kind: \"pipe\", type: TranslationResourceTextPipe, name: \"translationResourceText\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TranslationComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-translation', encapsulation: ViewEncapsulation.None, providers: [\r\n                        {\r\n                            provide: NG_VALUE_ACCESSOR,\r\n                            useExisting: forwardRef(() => TranslationComponent),\r\n                            multi: true\r\n                        }\r\n                    ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, InputComponent, TranslationResourceTextPipe], template: \"<pri-input\\r\\n\\t[value]=\\\"value | translationResourceText\\\"\\r\\n\\t[options]=\\\"inputOptions\\\"\\r\\n\\t[isDisabled]=\\\"isDisabled$ | async\\\"\\r\\n\\t(detailClick)=\\\"openModal()\\\"></pri-input>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i1$5.BsModalService }, { type: i0.ChangeDetectorRef }, { type: i2$3.I18nService }]; }, propDecorators: { options: [{\r\n                type: Input\r\n            }], value: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], valueChange: [{\r\n                type: Output\r\n            }] } });\n\n/* Defines the color of the button */\r\nvar TreeStyleEnum;\r\n(function (TreeStyleEnum) {\r\n    TreeStyleEnum[\"Transparent\"] = \"transparent\";\r\n    TreeStyleEnum[\"ShapedLight\"] = \"shaped-light\";\r\n    TreeStyleEnum[\"ShapedGrey\"] = \"shaped-grey\";\r\n})(TreeStyleEnum || (TreeStyleEnum = {}));\n\nclass TreeNodeAction {\r\n    constructor(treeNodeAction) {\r\n        if (treeNodeAction) {\r\n            Object.assign(this, treeNodeAction);\r\n        }\r\n        this.id ?? (this.id = GuidService.createUID());\r\n    }\r\n}\n\nclass TreeNode {\r\n    constructor(treeNode) {\r\n        this.children = [];\r\n        this.isExpanded = false;\r\n        this.hasMore = false;\r\n        if (treeNode) {\r\n            Object.assign(this, treeNode);\r\n        }\r\n        this.id ?? (this.id = GuidService.createUID());\r\n    }\r\n}\n\n/** The checkbox options */\r\nclass TreeOptions {\r\n    constructor(tree) {\r\n        /** The style of the tree view */\r\n        this.style = TreeStyleEnum.Transparent;\r\n        /** The size of the tree view */\r\n        this.size = FieldsSizeEnum.Regular;\r\n        /** Wether the tree can be sorted or not */\r\n        this.sortEnabled = false;\r\n        /** Wether to show alignment lines for expanded nodes or not */\r\n        this.showExpandLines = true;\r\n        if (tree) {\r\n            Object.assign(this, tree);\r\n        }\r\n    }\r\n}\n\n/* Defines the drop type of a tree's node item */\r\nvar DropTypeEnum;\r\n(function (DropTypeEnum) {\r\n    DropTypeEnum[\"After\"] = \"drop-after\";\r\n    DropTypeEnum[\"Before\"] = \"drop-before\";\r\n    DropTypeEnum[\"Inside\"] = \"drop-inside\";\r\n})(DropTypeEnum || (DropTypeEnum = {}));\n\n/** Checks if there are nodes that can be expanded at the first level of the provided Tree Nodes. */\r\nclass ReserveExpanderPipe {\r\n    /**\r\n     * For the first level of the provided data,\r\n     * returns true if there are any nodes that have children or the `hasMore` set to `true` and if the nodes are not in the loading state.\r\n     * This means that there are nodes that can be expanded on the same level.\r\n     *\r\n     * @param data The tree nodes to check if there are nodes that can be expanded, on the first level.\r\n     * @param loadingNodes The array with the IDs of the loading nodes.\r\n     * @returns True if there are nodes that can be expanded on the same level, false otherwise.\r\n     */\r\n    transform(data, loadingNodes) {\r\n        return data.some((node) => (node.hasMore || node.children?.length > 0) && !loadingNodes.includes(node.id));\r\n    }\r\n}\r\nReserveExpanderPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReserveExpanderPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nReserveExpanderPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ReserveExpanderPipe, isStandalone: true, name: \"reserveExpander\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ReserveExpanderPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'reserveExpander',\r\n                    standalone: true\r\n                }]\r\n        }] });\n\nclass TreeComponent {\r\n    constructor(document) {\r\n        this.document = document;\r\n        /** The event emitted when a node is dragged and dropped. */\r\n        this.nodeDrop = new EventEmitter();\r\n        /** The event emitted when the \"Load more\" button is clicked. */\r\n        this.loadMore = new EventEmitter();\r\n        /** The event emitted when a node is expanded. */\r\n        this.nodeExpand = new EventEmitter();\r\n        /** The event emitted when a node is collapsed. */\r\n        this.nodeCollapse = new EventEmitter();\r\n        this.LoadingSpinnerTypeEnum = LoadingSpinnerTypeEnum;\r\n        this.LoadingSpinnerSizeEnum = LoadingSpinnerSizeEnum;\r\n        /** An array of the IDs of the nodes that are potential drop targets */\r\n        this.dropTargetIds = [];\r\n        /** An object that maps a node's ID to the node itself */\r\n        this.nodeLookup = {};\r\n        /** The drop action to do - contains the target id and wether it is to drop before, after or inside the target */\r\n        this.dropActionTodo = null;\r\n        /** BehaviorSubject to track if a drag movement is being made */\r\n        this.isDragging$ = new BehaviorSubject$1(false);\r\n        /** BehaviorSubject to track the nodes that are being loaded */\r\n        this.loadingNodes$ = new BehaviorSubject$1([]);\r\n        /** The `TreeComponent` configuration options */\r\n        this._options = new TreeOptions();\r\n        /** Tracks if the Escape key was pressed */\r\n        this._canceledByEsc = false;\r\n        this._changeDetectorRef = inject(ChangeDetectorRef);\r\n    }\r\n    set options(options) {\r\n        this._options = new TreeOptions(options);\r\n    }\r\n    get options() {\r\n        return this._options;\r\n    }\r\n    set selectedNodeId(nodeId) {\r\n        this._selectedNodeId = nodeId;\r\n        this.expandNodeAscendants(nodeId, false);\r\n    }\r\n    get selectedNodeId() {\r\n        return this._selectedNodeId;\r\n    }\r\n    handleKeyboardEvent(event) {\r\n        if (event.key === 'Escape') {\r\n            this._canceledByEsc = true;\r\n            document.dispatchEvent(new Event('mouseup'));\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.prepareDragDrop(this.data);\r\n    }\r\n    /**\r\n     * Adds a node or nodes to the Tree's root.\r\n     *\r\n     * @param node The `TreeNode` or `TreeNode[]` to add to the Tree's root.\r\n     */\r\n    addRootNode(node) {\r\n        const nodes = Array.isArray(node) ? node : [node];\r\n        this.data.push(...nodes);\r\n        this.prepareDragDrop(nodes);\r\n        this._changeDetectorRef.markForCheck();\r\n    }\r\n    /**\r\n     * Adds nodes as children of another `TreeNode`.\r\n     *\r\n     * @param node - The `TreeNode` or `TreeNode[]` to add to the Tree.\r\n     * @param parentNode - The `TreeNode` to add the nodes to, as children.\r\n     */\r\n    addChildNode(node, parentNode) {\r\n        const nodes = Array.isArray(node) ? node : [node];\r\n        // If undefined, initialize the children array\r\n        parentNode.children ?? (parentNode.children = []);\r\n        parentNode.children.push(...nodes);\r\n        this.prepareDragDrop(nodes);\r\n        this._changeDetectorRef.markForCheck();\r\n    }\r\n    /**\r\n     * Deletes nodes from the tree.\r\n     *\r\n     * @param nodesIds - The ID of the `TreeNode` or `TreeNodes` to delete from the Tree.\r\n     */\r\n    deleteNode(nodeId, root = this.data) {\r\n        const ids = Array.isArray(nodeId) ? nodeId : [nodeId];\r\n        // Create a copy of root to iterate over the original data even when the root is being modified\r\n        const rootCopy = [...root];\r\n        rootCopy.forEach((node) => {\r\n            if (ids.includes(node.id)) {\r\n                // Delete from the tree\r\n                const indexOnRoot = root.indexOf(node);\r\n                root.splice(indexOnRoot, 1);\r\n                // Delete from the drop targets\r\n                const indexOnDropTargets = this.dropTargetIds.indexOf(node.id);\r\n                if (indexOnDropTargets !== -1) {\r\n                    this.dropTargetIds.splice(indexOnDropTargets, 1);\r\n                }\r\n                // Delete from the node lookup dictionary\r\n                delete this.nodeLookup[node.id];\r\n            }\r\n            else if (node.children?.length > 0) {\r\n                this.deleteNode(ids, node.children);\r\n            }\r\n        });\r\n        this._changeDetectorRef.markForCheck();\r\n    }\r\n    /**\r\n     * The trackByFn to prevent memory leaks in ngFor.\r\n     * Tracks by the action ID.\r\n     *\r\n     * @param index The index of the action in the array.\r\n     * @param action The action to track.\r\n     * @returns The action ID or the index, if the action has no ID.\r\n     */\r\n    trackById(index, action) {\r\n        return action.id ?? `${index}`;\r\n    }\r\n    /**\r\n     * The trackByFn to prevent memory leaks in ngFor.\r\n     * Tracks by the concatenation of the node ID/index with the number of its children, if any.\r\n     *\r\n     * @param index The index of the node in the array.\r\n     * @param node The node to track.\r\n     * @returns The node ID/index concatenated with the number of its children, if any.\r\n     */\r\n    trackByIdAndChildren(index, node) {\r\n        let result = node.id ?? `${index}`;\r\n        if (node.children?.length > 0) {\r\n            result += `_${node.children.length}`;\r\n        }\r\n        return result;\r\n    }\r\n    /**\r\n     * Toggles the node expanded state.\r\n     * If the node is currently not expanded, emits the `nodeExpand` event, if it is being observed.\r\n     * If the node is currently expanded, emits the `nodeCollapse` event, if it is being observed.\r\n     *\r\n     * @param node - The `TreeNode` to set as selected.\r\n     */\r\n    toggleNodeExpansion(node) {\r\n        // If the user expands the node and this event is being observed, emit the nodeExpand event\r\n        if (!node.isExpanded) {\r\n            if (this.nodeExpand.observed) {\r\n                this.nodeExpand.emit(this.getNodeExpandEvent(node));\r\n            }\r\n            if (this.loadMore.observed && node.children?.length === 0) {\r\n                this.loadMore.emit(this.getNodeExpandEvent(node));\r\n            }\r\n        }\r\n        // If the user collapses the node and this event is being observed, emit the nodeCollapse event\r\n        if (node.isExpanded && this.nodeCollapse.observed) {\r\n            this.nodeCollapse.emit(this.getNodeExpandEvent(node));\r\n        }\r\n        node.isExpanded = !node.isExpanded;\r\n    }\r\n    /**\r\n     * Sets a node as selected.\r\n     *\r\n     * @param node - The `TreeNode` to set as selected.\r\n     */\r\n    nodeClick(node) {\r\n        this.selectedNodeId = node.id;\r\n        node.onClick?.(node);\r\n    }\r\n    /**\r\n     * Emits the loadMore event, if it is being observed.\r\n     *\r\n     * @param node The `TreeNode` under which the loadMore event is being emitted.\r\n     */\r\n    loadMoreChildren(node) {\r\n        if (this.loadMore.observed && node.hasMore) {\r\n            this.loadMore.emit(this.getNodeExpandEvent(node));\r\n        }\r\n    }\r\n    /**\r\n     * Fired when a node is dragged.\r\n     * Finds the pointer's nearest node-item and creates an IDropActionTodo,\r\n     * containing the drop action to do - the target, and if it is to drop before, after or inside the target.\r\n     *\r\n     * @param event - The drag event\r\n     */\r\n    dragMoved(event) {\r\n        if (this.options.sortEnabled) {\r\n            this.isDragging$.next(true);\r\n            const element = this.document.elementFromPoint(event.pointerPosition.x, event.pointerPosition.y);\r\n            if (!element) {\r\n                this.clearDragClass();\r\n                return;\r\n            }\r\n            const container = element.classList.contains('node-item') ? element : element.closest('.node-item');\r\n            if (!container) {\r\n                return;\r\n            }\r\n            const targetRect = container.getBoundingClientRect();\r\n            const oneThird = targetRect.height / 3;\r\n            this.dropActionTodo = {\r\n                targetId: container.getAttribute('data-id')\r\n            };\r\n            if (event.pointerPosition.y - targetRect.top < oneThird) {\r\n                this.dropActionTodo.action = DropTypeEnum.Before;\r\n            }\r\n            else if (event.pointerPosition.y - targetRect.top > 2 * oneThird) {\r\n                this.dropActionTodo.action = DropTypeEnum.After;\r\n            }\r\n            else {\r\n                this.dropActionTodo.action = DropTypeEnum.Inside;\r\n            }\r\n            this.addDragClass();\r\n        }\r\n    }\r\n    /**\r\n     * Reorder the original nodes array to reflect the drag and drop actions\r\n     * If a nodeDrop action is set, execute it\r\n     *\r\n     * @param event - The event passed when dropping a node after dragging it\r\n     */\r\n    drop(event) {\r\n        var _a;\r\n        const rootId = 'main';\r\n        this.isDragging$.next(false);\r\n        if (this.options.sortEnabled && this.nodeDrop.observed) {\r\n            if (!this.dropActionTodo || this._canceledByEsc) {\r\n                this.clearDragClass(true);\r\n                return;\r\n            }\r\n            // A deep clone of the initial tree data, before the node drop\r\n            const initialData = deepClone(this.data);\r\n            const draggedItemId = event.item.data;\r\n            const draggedItem = this.nodeLookup[draggedItemId];\r\n            const parentItemId = event.previousContainer.id;\r\n            const parentItem = parentItemId !== rootId ? this.nodeLookup[parentItemId] : undefined;\r\n            // start searching from the root for the parent of the node where to drop\r\n            const targetListId = this.getParentNodeId(this.dropActionTodo.targetId, this.data, rootId);\r\n            const oldItemContainer = (parentItemId !== rootId ? parentItem.children : this.data) ?? [];\r\n            const newContainer = (targetListId !== rootId ? this.nodeLookup[targetListId].children : this.data) ?? [];\r\n            const indexAtOldContainer = oldItemContainer.findIndex((c) => c.id === draggedItemId);\r\n            oldItemContainer.splice(indexAtOldContainer, 1);\r\n            if (parentItem?.children?.length === 0) {\r\n                parentItem.isExpanded = false;\r\n            }\r\n            switch (this.dropActionTodo.action) {\r\n                case DropTypeEnum.Before:\r\n                case DropTypeEnum.After:\r\n                    const targetIndex = newContainer.findIndex((c) => c.id === this.dropActionTodo.targetId);\r\n                    if (this.dropActionTodo.action === DropTypeEnum.Before) {\r\n                        newContainer.splice(targetIndex, 0, draggedItem);\r\n                    }\r\n                    else {\r\n                        newContainer.splice(targetIndex + 1, 0, draggedItem);\r\n                    }\r\n                    break;\r\n                case DropTypeEnum.Inside:\r\n                    (_a = this.nodeLookup[this.dropActionTodo.targetId]).children ?? (_a.children = []);\r\n                    this.nodeLookup[this.dropActionTodo.targetId].children.push(draggedItem);\r\n                    if (!this.nodeLookup[this.dropActionTodo.targetId].isExpanded && this.nodeExpand.observed) {\r\n                        this.nodeExpand.emit(this.getNodeExpandEvent(this.nodeLookup[this.dropActionTodo.targetId]));\r\n                    }\r\n                    this.nodeLookup[this.dropActionTodo.targetId].isExpanded = true;\r\n                    break;\r\n            }\r\n            this.clearDragClass(true);\r\n            if (!isEqual(initialData, this.data)) {\r\n                this.nodeDrop.emit(this.data);\r\n            }\r\n        }\r\n        else {\r\n            this.clearDragClass(true);\r\n        }\r\n    }\r\n    /**\r\n     * Transforms tree node's sub-actions to DropDownMenuItems.\r\n     *\r\n     * @param subActions - The node sub-actions to transform to DropDownMenuItems.\r\n     * @param node - The `TreeNode` that contains the sub-actions.\r\n     * @returns An array of node sub-actions transformed to DropDownMenuItems.\r\n     */\r\n    getSubActions(subActions, node) {\r\n        const result = [];\r\n        subActions.forEach((subAction) => {\r\n            result.push({\r\n                title: subAction.label,\r\n                action: () => {\r\n                    subAction.onClick?.(node);\r\n                },\r\n                isDisabled: () => false\r\n            });\r\n        });\r\n        return result;\r\n    }\r\n    /**\r\n     * Sets the action as opened when its sub-actions dropdown menu is opened.\r\n     *\r\n     * @param action - The action to set as opened.\r\n     */\r\n    showDropDownAction(action) {\r\n        this.activeDropDownActionId = action.id;\r\n    }\r\n    /**\r\n     * When an action's sub-actions dropdown menu is closed or dismissed,\r\n     * unset the action from being opened.\r\n     *\r\n     * @param action - The action to unset from being opened.\r\n     */\r\n    closeDropDownAction(action) {\r\n        if (action.id === this.activeDropDownActionId) {\r\n            this.activeDropDownActionId = undefined;\r\n        }\r\n    }\r\n    /**\r\n     * Sets every tree node as potential drop targets.\r\n     *\r\n     * @param nodes - The nodes to add to drag and drop.\r\n     */\r\n    prepareDragDrop(nodes) {\r\n        if (this.options.sortEnabled) {\r\n            nodes?.forEach((node) => {\r\n                if (!this.dropTargetIds.includes(node.id)) {\r\n                    this.dropTargetIds.push(node.id);\r\n                }\r\n                this.nodeLookup[node.id] = node;\r\n                this.prepareDragDrop(node.children);\r\n            });\r\n        }\r\n        else {\r\n            this.nodeLookup = {};\r\n            this.dropTargetIds = [];\r\n        }\r\n    }\r\n    /**  Adds the correct drag class to the target node.\r\n     */\r\n    addDragClass() {\r\n        this.clearDragClass();\r\n        if (this.dropActionTodo) {\r\n            this.document\r\n                .getElementById(`node-${this.dropActionTodo.targetId}`)\r\n                .classList.add(this.dropActionTodo.action);\r\n        }\r\n    }\r\n    /**\r\n     * Clears all the drag classes.\r\n     */\r\n    clearDragClass(dropped = false) {\r\n        this._canceledByEsc = false;\r\n        if (dropped) {\r\n            this.dropActionTodo = null;\r\n        }\r\n        this.document\r\n            .querySelectorAll(`.${DropTypeEnum.Before}`)\r\n            .forEach((element) => element.classList.remove(DropTypeEnum.Before));\r\n        this.document\r\n            .querySelectorAll(`.${DropTypeEnum.After}`)\r\n            .forEach((element) => element.classList.remove(DropTypeEnum.After));\r\n        this.document\r\n            .querySelectorAll(`.${DropTypeEnum.Inside}`)\r\n            .forEach((element) => element.classList.remove(DropTypeEnum.Inside));\r\n    }\r\n    /**\r\n     * Recursively searches on an array of tree nodes for a node's parent ID.\r\n     *\r\n     * @param id - The ID of the node to get the parent.\r\n     * @param data - The array of tree nodes where to search for.\r\n     * @param parentId - The current parent ID.\r\n     * @returns A node's parent ID.\r\n     */\r\n    getParentNodeId(id, data, parentId) {\r\n        data ?? (data = []);\r\n        for (const node of data) {\r\n            if (node.id === id) {\r\n                return parentId;\r\n            }\r\n            const parent = this.getParentNodeId(id, node.children, node.id);\r\n            if (parent) {\r\n                return parent;\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    /**\r\n     * Find a node's the full path, using its ID.\r\n     *\r\n     * @param node - The `TreeNode` we're searching for.\r\n     * @param id - The ID we're searching for.\r\n     * @param parents - Tracker node, so we don't lose track of the parents as we go through them.\r\n     * @returns An array of the found nodes or null if no node was found.\r\n     */\r\n    findNodeById(node, id, parents = []) {\r\n        if (node.id === id) {\r\n            return [...parents, node];\r\n        }\r\n        if (node.children) {\r\n            for (const child of node.children) {\r\n                const found = this.findNodeById(child, id, [...parents, node]);\r\n                if (found) {\r\n                    return found;\r\n                }\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    /**\r\n     * Expands the entire node's hierarchy in the tree.\r\n     *\r\n     * @param nodeId - The node ID for which the ascendants must be expanded.\r\n     * @param expandItself - Wether the node must expand itself too, or not.\r\n     */\r\n    expandNodeAscendants(nodeId, expandItself) {\r\n        if (nodeId) {\r\n            this.data?.forEach((node) => {\r\n                let nodePath = this.findNodeById(node, nodeId);\r\n                if (nodePath) {\r\n                    // Don't set nodes with no children as expanded\r\n                    nodePath = nodePath.filter((path) => path.children?.length > 0);\r\n                    if (!expandItself) {\r\n                        // Exclude the target node from the list of nodes to expand\r\n                        nodePath = nodePath.filter((path) => path.id !== nodeId);\r\n                    }\r\n                    // Set the nodes as expanded\r\n                    nodePath.map((ascendantNode) => {\r\n                        if (!ascendantNode.isExpanded && this.nodeExpand.observed) {\r\n                            this.nodeExpand.emit(this.getNodeExpandEvent(ascendantNode));\r\n                        }\r\n                        ascendantNode.isExpanded = true;\r\n                    });\r\n                }\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Constructs the node expand event for the given node.\r\n     *\r\n     * @param node The `TreeNode` for which the event is being constructed.\r\n     * @returns The node expand event, as an `ITreeNodeEvent`.\r\n     */\r\n    getNodeExpandEvent(node) {\r\n        const nodeEvent = {\r\n            node,\r\n            startLoading: () => {\r\n                this.loadingNodes$.next([...this.loadingNodes$.getValue(), node.id]);\r\n            },\r\n            stopLoading: () => {\r\n                this.loadingNodes$.next(this.loadingNodes$.getValue().filter((loadingNodeId) => loadingNodeId !== node.id));\r\n            }\r\n        };\r\n        return nodeEvent;\r\n    }\r\n}\r\nTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TreeComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });\r\nTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TreeComponent, isStandalone: true, selector: \"pri-tree\", inputs: { data: \"data\", options: \"options\", selectedNodeId: \"selectedNodeId\" }, outputs: { nodeDrop: \"nodeDrop\", loadMore: \"loadMore\", nodeExpand: \"nodeExpand\", nodeCollapse: \"nodeCollapse\" }, host: { listeners: { \"window:keydown\": \"handleKeyboardEvent($event)\" } }, ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"tree-wrapper {{ options.size }} {{ options.style }}\\\"\\r\\n\\t[class.is-dragging]=\\\"isDragging$ | async\\\"\\r\\n\\t[class.is-sortable]=\\\"options.sortEnabled\\\">\\r\\n\\t<div\\r\\n\\t\\tid=\\\"main\\\"\\r\\n\\t\\tcdkDropList\\r\\n\\t\\t[cdkDropListData]=\\\"data\\\"\\r\\n\\t\\t[cdkDropListConnectedTo]=\\\"dropTargetIds\\\"\\r\\n\\t\\t(cdkDropListDropped)=\\\"drop($event)\\\"\\r\\n\\t\\tcdkDropListSortingDisabled>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t*ngFor=\\\"let node of data; trackBy: trackByIdAndChildren\\\"\\r\\n\\t\\t\\tcdkDrag\\r\\n\\t\\t\\t[cdkDragData]=\\\"node.id\\\"\\r\\n\\t\\t\\t(cdkDragMoved)=\\\"dragMoved($event)\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t*ngTemplateOutlet=\\\"\\r\\n\\t\\t\\t\\t\\ttmplNode;\\r\\n\\t\\t\\t\\t\\tcontext: {\\r\\n\\t\\t\\t\\t\\t\\tnode: node,\\r\\n\\t\\t\\t\\t\\t\\treserveExpander: data | reserveExpander : (loadingNodes$ | async),\\r\\n\\t\\t\\t\\t\\t\\toptions: options\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\\"></ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<ng-template #tmplNode let-node=\\\"node\\\" let-reserveExpander=\\\"reserveExpander\\\" let-options=\\\"options\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"node-item\\\"\\r\\n\\t\\t\\t[attr.data-id]=\\\"node.id\\\"\\r\\n\\t\\t\\t[attr.id]=\\\"'node-' + node.id\\\"\\r\\n\\t\\t\\t[class.node-expanded]=\\\"node.isExpanded\\\"\\r\\n\\t\\t\\t[class.selected]=\\\"selectedNodeId && selectedNodeId === node.id\\\">\\r\\n\\t\\t\\t<div class=\\\"node-container\\\">\\r\\n\\t\\t\\t\\t<!-- Expander / Loader -->\\r\\n\\t\\t\\t\\t<div class=\\\"toggle-expansion\\\" [ngClass]=\\\"{ 'do-not-reserve-expander': !reserveExpander }\\\">\\r\\n\\t\\t\\t\\t\\t<!-- Node expanding loader -->\\r\\n\\t\\t\\t\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"(loadingNodes$ | async).includes(node.id)\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t\\t\\t\\t[size]=\\\"LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t\\t\\t\\t</pri-loading-spinner>\\r\\n\\r\\n\\t\\t\\t\\t\\t<!-- Node expander button -->\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(node.hasMore || node.children?.length > 0) && !(loadingNodes$ | async).includes(node.id)\\r\\n\\t\\t\\t\\t\\t\\t\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"toggle-expansion-icon ti-ux-chevron-right\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"toggleNodeExpansion(node)\\\"></i>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<!-- Node content (icon + tag + label) -->\\r\\n\\t\\t\\t\\t<div class=\\\"content\\\" (click)=\\\"nodeClick(node)\\\">\\r\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"node.tag\\\" class=\\\"node-tag\\\">\\r\\n\\t\\t\\t\\t\\t\\t<span priTooltipHover>{{ node.tag }}</span>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t<i *ngIf=\\\"!node.isExpanded && node.collapsedIcon\\\" class=\\\"node-icon {{ node.collapsedIcon }}\\\"></i>\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"node.isExpanded && (node.expandedIcon || node.collapsedIcon)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"node-icon {{ node.expandedIcon || node.collapsedIcon }}\\\"></i>\\r\\n\\t\\t\\t\\t\\t<span class=\\\"node-label\\\" priTooltipHover>{{ node.label }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<!-- Node actions -->\\r\\n\\t\\t\\t\\t<div class=\\\"actions\\\" *ngIf=\\\"node.actions?.length > 0\\\">\\r\\n\\t\\t\\t\\t\\t<ng-container *ngFor=\\\"let action of node.actions; trackBy: trackById\\\">\\r\\n\\t\\t\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngIf=\\\"!action.subActions || action.subActions.length === 0\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tclass=\\\"icon-action-btn\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(click)=\\\"action.onClick?.(node)\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[class]=\\\"action.icon || 'ti-ux-asterisk'\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[matTooltip]=\\\"action.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!action.label\\\"></i>\\r\\n\\t\\t\\t\\t\\t\\t</button>\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t<ng-container *ngIf=\\\"action.subActions?.length > 0\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tclass=\\\"icon-action-btn dropdown-toggle\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{ opened: action.id === activeDropDownActionId }\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\taria-haspopup=\\\"true\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\taria-expanded=\\\"false\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tdata-toggle=\\\"dropdown\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpriDropDownMenu\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpriDropDownMenuPosition=\\\"left\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[priDropDownMenuItems]=\\\"getSubActions(action.subActions, node)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t(dropDownMenuShow)=\\\"showDropDownAction(action)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t(dropDownMenuHide)=\\\"closeDropDownAction(action)\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[class]=\\\"action.icon || 'ti-ux-more-vertical'\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[matTooltip]=\\\"action.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!action.label\\\"></i>\\r\\n\\t\\t\\t\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"node.isExpanded && node.children?.length > 0\\\"\\r\\n\\t\\t\\t\\tclass=\\\"node-children\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"{ 'show-expand-lines': options.showExpandLines }\\\"\\r\\n\\t\\t\\t\\tcdkDropList\\r\\n\\t\\t\\t\\t[cdkDropListData]=\\\"node.children\\\"\\r\\n\\t\\t\\t\\t[id]=\\\"node.id\\\"\\r\\n\\t\\t\\t\\t[cdkDropListConnectedTo]=\\\"dropTargetIds\\\"\\r\\n\\t\\t\\t\\t(cdkDropListDropped)=\\\"drop($event)\\\"\\r\\n\\t\\t\\t\\tcdkDropListSortingDisabled>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let child of node.children; trackBy: trackByIdAndChildren\\\"\\r\\n\\t\\t\\t\\t\\tcdkDrag\\r\\n\\t\\t\\t\\t\\t[cdkDragData]=\\\"child.id\\\"\\r\\n\\t\\t\\t\\t\\t(cdkDragMoved)=\\\"dragMoved($event)\\\">\\r\\n\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\ttmplNode;\\r\\n\\t\\t\\t\\t\\t\\t\\tcontext: {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tnode: child,\\r\\n\\t\\t\\t\\t\\t\\t\\t\\treserveExpander: node.children | reserveExpander : (loadingNodes$ | async),\\r\\n\\t\\t\\t\\t\\t\\t\\t\\toptions: options\\r\\n\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"node.isExpanded && node.hasMore\\\" class=\\\"load-more\\\">\\r\\n\\t\\t\\t\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"(loadingNodes$ | async).includes(node.id); else loadMoreBtn\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t\\t\\t\\t[size]=\\\"LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t\\t\\t\\t</pri-loading-spinner>\\r\\n\\r\\n\\t\\t\\t\\t\\t<ng-template #loadMoreBtn>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"load-more-btn\\\" (click)=\\\"loadMoreChildren(node)\\\" priTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'components.components.RES_Tree_LoadMore' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t</ng-template>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</ng-template>\\r\\n</div>\\r\\n\", styles: [\"pri-tree{overflow:auto}pri-tree .tree-wrapper{overflow:auto;border-radius:.2857142857rem;padding:.5714285714rem .8571428571rem .8571428571rem}pri-tree .tree-wrapper.size-small{font-size:.8em}pri-tree .tree-wrapper.size-large{font-size:1.2em}pri-tree .tree-wrapper.transparent{background-color:transparent}pri-tree .tree-wrapper.shaped-light{background-color:var(--grey-1)}pri-tree .tree-wrapper.shaped-grey{background-color:var(--grey-2)}pri-tree .tree-wrapper.is-sortable #main.cdk-drop-list{cursor:grab}pri-tree .tree-wrapper .drop-inside{border:.1428571429rem solid var(--theme-100)}pri-tree .tree-wrapper .drop-before{border-top:.1428571429rem solid var(--theme-100);border-top-left-radius:unset!important;border-top-right-radius:unset!important}pri-tree .tree-wrapper .drop-after{border-bottom:.1428571429rem solid var(--theme-100);border-bottom-left-radius:unset!important;border-bottom-right-radius:unset!important}pri-tree .tree-wrapper #main.cdk-drop-list .node-item{width:100%;margin-top:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item:hover .node-container:has(:hover) .actions{display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container:hover{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions:has(.opened){display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children{transition:height .2s;margin-left:2.5714285714rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children.show-expand-lines{position:relative}pri-tree .tree-wrapper #main.cdk-drop-list .node-children.show-expand-lines:before{height:100%;border-left:.0714285714rem solid var(--grey-4);content:\\\"\\\";position:absolute;top:0;transform:translate(-.8571428571rem)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item{width:100%;margin-top:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item:hover .node-container:has(:hover) .actions{display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container:hover{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions:has(.opened){display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more{display:flex;align-items:center;padding:.5714285714rem .8571428571rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more .load-more-btn{cursor:pointer;border-radius:.2857142857rem;color:var(--theme-80);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more .load-more-btn:hover{color:var(--theme-100);text-decoration:underline}.cdk-drag-placeholder{display:none}.cdk-drag-preview{background-color:var(--grey-1);height:unset!important;box-sizing:border-box;border-radius:.2857142857rem;box-shadow:0 0 .7142857143rem var(--shadow-5);opacity:.5}.cdk-drag-preview .node-item{width:100%;margin-top:.2857142857rem;margin-top:unset}.cdk-drag-preview .node-item:hover .node-container:has(:hover) .actions{display:flex}.cdk-drag-preview .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}.cdk-drag-preview .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}.cdk-drag-preview .node-item.selected>.node-container:hover{background-color:var(--theme-20)}.cdk-drag-preview .node-item.selected>.node-container .content{color:var(--theme-100)}.cdk-drag-preview .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}.cdk-drag-preview .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}.cdk-drag-preview .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}.cdk-drag-preview .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}.cdk-drag-preview .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}.cdk-drag-preview .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}.cdk-drag-preview .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}.cdk-drag-preview .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}.cdk-drag-preview .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdk-drag-preview .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}.cdk-drag-preview .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}.cdk-drag-preview .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}.cdk-drag-preview .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}.cdk-drag-preview .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}.cdk-drag-preview .node-item .node-container .actions:has(.opened){display:flex}.cdk-drag-preview .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}.cdk-drag-preview .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}.cdk-drag-preview .node-children{visibility:hidden;height:0}\\n\"], dependencies: [{ kind: \"ngmodule\", type: CommonModule }, { kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$1.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"ngmodule\", type: MatTooltipModule }, { kind: \"directive\", type: i2$1.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"directive\", type: TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"ngmodule\", type: DragDropModule }, { kind: \"directive\", type: i4$2.CdkDropList, selector: \"[cdkDropList], cdk-drop-list\", inputs: [\"cdkDropListConnectedTo\", \"cdkDropListData\", \"cdkDropListOrientation\", \"id\", \"cdkDropListLockAxis\", \"cdkDropListDisabled\", \"cdkDropListSortingDisabled\", \"cdkDropListEnterPredicate\", \"cdkDropListSortPredicate\", \"cdkDropListAutoScrollDisabled\", \"cdkDropListAutoScrollStep\"], outputs: [\"cdkDropListDropped\", \"cdkDropListEntered\", \"cdkDropListExited\", \"cdkDropListSorted\"], exportAs: [\"cdkDropList\"] }, { kind: \"directive\", type: i4$2.CdkDrag, selector: \"[cdkDrag]\", inputs: [\"cdkDragData\", \"cdkDragLockAxis\", \"cdkDragRootElement\", \"cdkDragBoundary\", \"cdkDragStartDelay\", \"cdkDragFreeDragPosition\", \"cdkDragDisabled\", \"cdkDragConstrainPosition\", \"cdkDragPreviewClass\", \"cdkDragPreviewContainer\"], outputs: [\"cdkDragStarted\", \"cdkDragReleased\", \"cdkDragEnded\", \"cdkDragEntered\", \"cdkDragExited\", \"cdkDragDropped\", \"cdkDragMoved\"], exportAs: [\"cdkDrag\"] }, { kind: \"directive\", type: DropDownMenuDirective, selector: \"[priDropDownMenu]\", inputs: [\"priDropDownMenuItems\", \"priDropDownMenuPosition\", \"priDropDownMenuMaxWidth\", \"priDropDownMenuCustomClass\", \"priDropDownMenuTrigger\", \"priDropDownMenuShow\", \"priDropDownMenuHide\", \"maxHeight\", \"menuSpacingY\", \"menuSpacingX\", \"menuPositionUpdater\", \"customPanelTemplate\"], outputs: [\"dropDownMenuShow\", \"dropDownMenuHide\", \"menuPositionYChange\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"ngmodule\", type: PrimaveraI18nModule }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: ReserveExpanderPipe, name: \"reserveExpander\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TreeComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-tree', encapsulation: ViewEncapsulation.None, standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [\r\n                        CommonModule,\r\n                        MatTooltipModule,\r\n                        TooltipHoverDirective,\r\n                        DragDropModule,\r\n                        DropDownMenuDirective,\r\n                        LoadingSpinnerComponent,\r\n                        PrimaveraI18nModule,\r\n                        ReserveExpanderPipe\r\n                    ], template: \"<div\\r\\n\\tclass=\\\"tree-wrapper {{ options.size }} {{ options.style }}\\\"\\r\\n\\t[class.is-dragging]=\\\"isDragging$ | async\\\"\\r\\n\\t[class.is-sortable]=\\\"options.sortEnabled\\\">\\r\\n\\t<div\\r\\n\\t\\tid=\\\"main\\\"\\r\\n\\t\\tcdkDropList\\r\\n\\t\\t[cdkDropListData]=\\\"data\\\"\\r\\n\\t\\t[cdkDropListConnectedTo]=\\\"dropTargetIds\\\"\\r\\n\\t\\t(cdkDropListDropped)=\\\"drop($event)\\\"\\r\\n\\t\\tcdkDropListSortingDisabled>\\r\\n\\t\\t<div\\r\\n\\t\\t\\t*ngFor=\\\"let node of data; trackBy: trackByIdAndChildren\\\"\\r\\n\\t\\t\\tcdkDrag\\r\\n\\t\\t\\t[cdkDragData]=\\\"node.id\\\"\\r\\n\\t\\t\\t(cdkDragMoved)=\\\"dragMoved($event)\\\">\\r\\n\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t*ngTemplateOutlet=\\\"\\r\\n\\t\\t\\t\\t\\ttmplNode;\\r\\n\\t\\t\\t\\t\\tcontext: {\\r\\n\\t\\t\\t\\t\\t\\tnode: node,\\r\\n\\t\\t\\t\\t\\t\\treserveExpander: data | reserveExpander : (loadingNodes$ | async),\\r\\n\\t\\t\\t\\t\\t\\toptions: options\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\\"></ng-container>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<ng-template #tmplNode let-node=\\\"node\\\" let-reserveExpander=\\\"reserveExpander\\\" let-options=\\\"options\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"node-item\\\"\\r\\n\\t\\t\\t[attr.data-id]=\\\"node.id\\\"\\r\\n\\t\\t\\t[attr.id]=\\\"'node-' + node.id\\\"\\r\\n\\t\\t\\t[class.node-expanded]=\\\"node.isExpanded\\\"\\r\\n\\t\\t\\t[class.selected]=\\\"selectedNodeId && selectedNodeId === node.id\\\">\\r\\n\\t\\t\\t<div class=\\\"node-container\\\">\\r\\n\\t\\t\\t\\t<!-- Expander / Loader -->\\r\\n\\t\\t\\t\\t<div class=\\\"toggle-expansion\\\" [ngClass]=\\\"{ 'do-not-reserve-expander': !reserveExpander }\\\">\\r\\n\\t\\t\\t\\t\\t<!-- Node expanding loader -->\\r\\n\\t\\t\\t\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"(loadingNodes$ | async).includes(node.id)\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t\\t\\t\\t[size]=\\\"LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t\\t\\t\\t</pri-loading-spinner>\\r\\n\\r\\n\\t\\t\\t\\t\\t<!-- Node expander button -->\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(node.hasMore || node.children?.length > 0) && !(loadingNodes$ | async).includes(node.id)\\r\\n\\t\\t\\t\\t\\t\\t\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"toggle-expansion-icon ti-ux-chevron-right\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"toggleNodeExpansion(node)\\\"></i>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<!-- Node content (icon + tag + label) -->\\r\\n\\t\\t\\t\\t<div class=\\\"content\\\" (click)=\\\"nodeClick(node)\\\">\\r\\n\\t\\t\\t\\t\\t<div *ngIf=\\\"node.tag\\\" class=\\\"node-tag\\\">\\r\\n\\t\\t\\t\\t\\t\\t<span priTooltipHover>{{ node.tag }}</span>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t<i *ngIf=\\\"!node.isExpanded && node.collapsedIcon\\\" class=\\\"node-icon {{ node.collapsedIcon }}\\\"></i>\\r\\n\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"node.isExpanded && (node.expandedIcon || node.collapsedIcon)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"node-icon {{ node.expandedIcon || node.collapsedIcon }}\\\"></i>\\r\\n\\t\\t\\t\\t\\t<span class=\\\"node-label\\\" priTooltipHover>{{ node.label }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<!-- Node actions -->\\r\\n\\t\\t\\t\\t<div class=\\\"actions\\\" *ngIf=\\\"node.actions?.length > 0\\\">\\r\\n\\t\\t\\t\\t\\t<ng-container *ngFor=\\\"let action of node.actions; trackBy: trackById\\\">\\r\\n\\t\\t\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngIf=\\\"!action.subActions || action.subActions.length === 0\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tclass=\\\"icon-action-btn\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(click)=\\\"action.onClick?.(node)\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[class]=\\\"action.icon || 'ti-ux-asterisk'\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[matTooltip]=\\\"action.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!action.label\\\"></i>\\r\\n\\t\\t\\t\\t\\t\\t</button>\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t<ng-container *ngIf=\\\"action.subActions?.length > 0\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<button\\r\\n\\t\\t\\t\\t\\t\\t\\t\\ttype=\\\"button\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tclass=\\\"icon-action-btn dropdown-toggle\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[ngClass]=\\\"{ opened: action.id === activeDropDownActionId }\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\taria-haspopup=\\\"true\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\taria-expanded=\\\"false\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tdata-toggle=\\\"dropdown\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpriDropDownMenu\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tpriDropDownMenuPosition=\\\"left\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t[priDropDownMenuItems]=\\\"getSubActions(action.subActions, node)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t(dropDownMenuShow)=\\\"showDropDownAction(action)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t(dropDownMenuHide)=\\\"closeDropDownAction(action)\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t<i\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[class]=\\\"action.icon || 'ti-ux-more-vertical'\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[matTooltip]=\\\"action.label\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmatTooltipPosition=\\\"above\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t[matTooltipDisabled]=\\\"!action.label\\\"></i>\\r\\n\\t\\t\\t\\t\\t\\t\\t</button>\\r\\n\\t\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"node.isExpanded && node.children?.length > 0\\\"\\r\\n\\t\\t\\t\\tclass=\\\"node-children\\\"\\r\\n\\t\\t\\t\\t[ngClass]=\\\"{ 'show-expand-lines': options.showExpandLines }\\\"\\r\\n\\t\\t\\t\\tcdkDropList\\r\\n\\t\\t\\t\\t[cdkDropListData]=\\\"node.children\\\"\\r\\n\\t\\t\\t\\t[id]=\\\"node.id\\\"\\r\\n\\t\\t\\t\\t[cdkDropListConnectedTo]=\\\"dropTargetIds\\\"\\r\\n\\t\\t\\t\\t(cdkDropListDropped)=\\\"drop($event)\\\"\\r\\n\\t\\t\\t\\tcdkDropListSortingDisabled>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let child of node.children; trackBy: trackByIdAndChildren\\\"\\r\\n\\t\\t\\t\\t\\tcdkDrag\\r\\n\\t\\t\\t\\t\\t[cdkDragData]=\\\"child.id\\\"\\r\\n\\t\\t\\t\\t\\t(cdkDragMoved)=\\\"dragMoved($event)\\\">\\r\\n\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\ttmplNode;\\r\\n\\t\\t\\t\\t\\t\\t\\tcontext: {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tnode: child,\\r\\n\\t\\t\\t\\t\\t\\t\\t\\treserveExpander: node.children | reserveExpander : (loadingNodes$ | async),\\r\\n\\t\\t\\t\\t\\t\\t\\t\\toptions: options\\r\\n\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\\">\\r\\n\\t\\t\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"node.isExpanded && node.hasMore\\\" class=\\\"load-more\\\">\\r\\n\\t\\t\\t\\t\\t<pri-loading-spinner\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"(loadingNodes$ | async).includes(node.id); else loadMoreBtn\\\"\\r\\n\\t\\t\\t\\t\\t\\t[type]=\\\"LoadingSpinnerTypeEnum.Circular\\\"\\r\\n\\t\\t\\t\\t\\t\\t[size]=\\\"LoadingSpinnerSizeEnum.Small\\\">\\r\\n\\t\\t\\t\\t\\t</pri-loading-spinner>\\r\\n\\r\\n\\t\\t\\t\\t\\t<ng-template #loadMoreBtn>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"load-more-btn\\\" (click)=\\\"loadMoreChildren(node)\\\" priTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'components.components.RES_Tree_LoadMore' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t</ng-template>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</ng-template>\\r\\n</div>\\r\\n\", styles: [\"pri-tree{overflow:auto}pri-tree .tree-wrapper{overflow:auto;border-radius:.2857142857rem;padding:.5714285714rem .8571428571rem .8571428571rem}pri-tree .tree-wrapper.size-small{font-size:.8em}pri-tree .tree-wrapper.size-large{font-size:1.2em}pri-tree .tree-wrapper.transparent{background-color:transparent}pri-tree .tree-wrapper.shaped-light{background-color:var(--grey-1)}pri-tree .tree-wrapper.shaped-grey{background-color:var(--grey-2)}pri-tree .tree-wrapper.is-sortable #main.cdk-drop-list{cursor:grab}pri-tree .tree-wrapper .drop-inside{border:.1428571429rem solid var(--theme-100)}pri-tree .tree-wrapper .drop-before{border-top:.1428571429rem solid var(--theme-100);border-top-left-radius:unset!important;border-top-right-radius:unset!important}pri-tree .tree-wrapper .drop-after{border-bottom:.1428571429rem solid var(--theme-100);border-bottom-left-radius:unset!important;border-bottom-right-radius:unset!important}pri-tree .tree-wrapper #main.cdk-drop-list .node-item{width:100%;margin-top:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item:hover .node-container:has(:hover) .actions{display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container:hover{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions:has(.opened){display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children{transition:height .2s;margin-left:2.5714285714rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children.show-expand-lines{position:relative}pri-tree .tree-wrapper #main.cdk-drop-list .node-children.show-expand-lines:before{height:100%;border-left:.0714285714rem solid var(--grey-4);content:\\\"\\\";position:absolute;top:0;transform:translate(-.8571428571rem)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item{width:100%;margin-top:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item:hover .node-container:has(:hover) .actions{display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container:hover{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions:has(.opened){display:flex}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more{display:flex;align-items:center;padding:.5714285714rem .8571428571rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more .load-more-btn{cursor:pointer;border-radius:.2857142857rem;color:var(--theme-80);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap;margin-left:.2857142857rem}pri-tree .tree-wrapper #main.cdk-drop-list .node-children .load-more .load-more-btn:hover{color:var(--theme-100);text-decoration:underline}.cdk-drag-placeholder{display:none}.cdk-drag-preview{background-color:var(--grey-1);height:unset!important;box-sizing:border-box;border-radius:.2857142857rem;box-shadow:0 0 .7142857143rem var(--shadow-5);opacity:.5}.cdk-drag-preview .node-item{width:100%;margin-top:.2857142857rem;margin-top:unset}.cdk-drag-preview .node-item:hover .node-container:has(:hover) .actions{display:flex}.cdk-drag-preview .node-item.node-expanded>.node-container .toggle-expansion .toggle-expansion-icon:before{content:\\\"\\\\e64b\\\"}.cdk-drag-preview .node-item.selected>.node-container{background-color:var(--theme-10);font-weight:700}.cdk-drag-preview .node-item.selected>.node-container:hover{background-color:var(--theme-20)}.cdk-drag-preview .node-item.selected>.node-container .content{color:var(--theme-100)}.cdk-drag-preview .node-item.selected>.node-container .content .node-tag{background-color:var(--theme-100);color:var(--grey-1)}.cdk-drag-preview .node-item.selected>.node-container .content:hover .node-tag{color:var(--grey-1);background-color:var(--theme-highlight)}.cdk-drag-preview .node-item .node-container{width:100%;display:flex;flex-direction:row;gap:.2857142857rem;align-items:center;padding:.5714285714rem .8571428571rem;border-radius:.2857142857rem;border:.0714285714rem solid transparent}.cdk-drag-preview .node-item .node-container .toggle-expansion{display:flex;justify-content:center;align-items:center;height:1.4285714286rem;min-width:1.4285714286rem;font-weight:700}.cdk-drag-preview .node-item .node-container .toggle-expansion:hover{color:var(--theme-100);cursor:pointer}.cdk-drag-preview .node-item .node-container .toggle-expansion.do-not-reserve-expander{display:none}.cdk-drag-preview .node-item .node-container .content{display:flex;flex:1 1 100%;overflow:hidden;align-items:center}.cdk-drag-preview .node-item .node-container .content .node-tag{display:flex;justify-content:center;margin-right:.5714285714rem;margin-left:.1428571429rem;border-radius:.2857142857rem;background-color:var(--grey-4);padding:.1428571429rem .5714285714rem;min-width:2rem;max-width:5.7142857143rem}.cdk-drag-preview .node-item .node-container .content .node-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cdk-drag-preview .node-item .node-container .content .node-icon{display:flex;align-items:center;width:1.4285714286rem;height:1.4285714286rem;margin-left:.1428571429rem;flex-shrink:0}.cdk-drag-preview .node-item .node-container .content .node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:.2857142857rem}.cdk-drag-preview .node-item .node-container .content:hover{color:var(--theme-100);cursor:pointer}.cdk-drag-preview .node-item .node-container .content:hover .node-tag{background-color:var(--theme-20)}.cdk-drag-preview .node-item .node-container .actions{gap:.5714285714rem;align-items:center;display:none}.cdk-drag-preview .node-item .node-container .actions:has(.opened){display:flex}.cdk-drag-preview .node-item .node-container .actions .icon-action-btn{padding:0;background:none;border:0}.cdk-drag-preview .node-item .node-container .actions .icon-action-btn:hover{color:var(--theme-100)}.cdk-drag-preview .node-children{visibility:hidden;height:0}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: Document, decorators: [{\r\n                    type: Inject,\r\n                    args: [DOCUMENT]\r\n                }] }]; }, propDecorators: { data: [{\r\n                type: Input\r\n            }], options: [{\r\n                type: Input\r\n            }], selectedNodeId: [{\r\n                type: Input\r\n            }], nodeDrop: [{\r\n                type: Output\r\n            }], loadMore: [{\r\n                type: Output\r\n            }], nodeExpand: [{\r\n                type: Output\r\n            }], nodeCollapse: [{\r\n                type: Output\r\n            }], handleKeyboardEvent: [{\r\n                type: HostListener,\r\n                args: ['window:keydown', ['$event']]\r\n            }] } });\n\nclass PriWebserviceTypeaheadComponent {\r\n    constructor(http, changeDetectorRef, i18nService) {\r\n        this.http = http;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.i18nService = i18nService;\r\n        this.valueChanged = new EventEmitter();\r\n        this.infoMessage = undefined;\r\n        this.isLoading = false;\r\n        // When is no result typehead do not open (to not show a empty list typehead)\r\n        this.openOnNoResult = false;\r\n        this.shouldDestroyTypeahead = false;\r\n        this.doSearch = new EventEmitter();\r\n        this.sendValue = new EventEmitter();\r\n        this.datatabstops = [];\r\n        // In case of typehead value is a json, sets which property should be used in order to show a string in the input dom element.\r\n        this._saveProperty = 'value';\r\n        // Wether the typehead value is a json.\r\n        this._saveAsJson = false;\r\n        this.stopSearch = false;\r\n        this.JsonPath = jsonPath;\r\n        this.lastSearchResults = [];\r\n        this.previousValue = undefined;\r\n        this.fieldModel = {\r\n            value: '',\r\n            description: ''\r\n        };\r\n    }\r\n    // In case of typehead value is a json, sets which property should be used in order to show a string in the input dom element.\r\n    set saveProperty(value) {\r\n        if (value && value.length > 0) {\r\n            this._saveProperty = value;\r\n        }\r\n        else {\r\n            this._saveProperty = 'value';\r\n        }\r\n    }\r\n    // Wether the typehead value is a json.\r\n    set saveAsJson(value) {\r\n        if (value) {\r\n            this._saveAsJson = value;\r\n        }\r\n        else {\r\n            this._saveAsJson = false;\r\n        }\r\n    }\r\n    set value(value) {\r\n        // HACK: In order for this component to detect fieldModel value changes.\r\n        this.fieldModel.value = value;\r\n    }\r\n    get value() {\r\n        return this.fieldModel.value;\r\n    }\r\n    // Input dom element value, which handles different types of typevalues, such as json or string\r\n    // in order to show always a string value in the input field.\r\n    get inputValue() {\r\n        if (this._saveAsJson) {\r\n            const value = this.fieldModel.value;\r\n            if (this.isJSON(value)) {\r\n                const jsonValue = JSON.parse(value);\r\n                if (jsonValue[this._saveProperty]) {\r\n                    return jsonValue[this._saveProperty];\r\n                }\r\n            }\r\n        }\r\n        return this.fieldModel.value || '';\r\n    }\r\n    reset(value) {\r\n        const valueToRestore = value === undefined ? '' : value;\r\n        this.previousValue = valueToRestore;\r\n        this.fieldModel.value = valueToRestore;\r\n        this.fieldModel.description = '';\r\n        if (this.fieldInput) {\r\n            this.fieldInput.value = valueToRestore;\r\n        }\r\n        this.clearInfoMessage();\r\n    }\r\n    ngOnInit() {\r\n        if (!this.typeaheadDataSource) {\r\n            this.typeaheadDataSource = new EventEmitter();\r\n        }\r\n        if (!this.typeaheadDestroy) {\r\n            this.typeaheadDestroy = new EventEmitter();\r\n        }\r\n        if (this.previousValue === undefined) {\r\n            this.previousValue = this.fieldModel.value;\r\n        }\r\n        this.doSearch.pipe(debounceTime$1(300)).subscribe((searchTerm) => {\r\n            if (searchTerm) {\r\n                this.stopSearch = false;\r\n                searchTerm = searchTerm === '?' ? '' : searchTerm;\r\n                this.isLoading = true;\r\n                this.changeDetectorRef.detectChanges();\r\n                this.getSearchResult(searchTerm);\r\n            }\r\n            else {\r\n                // When the search term if empty, there are no need to perform the search request.\r\n                this.typeaheadDataSource.next([]);\r\n            }\r\n        });\r\n        this.sendValue.pipe(debounceTime$1(300)).subscribe(() => {\r\n            const value = this.fieldModel.value;\r\n            if (this.limitValue === true && value) {\r\n                const valueIsInLastSearchResult = this.lastSearchResults.filter(r => r[this._saveProperty] === value).length > 0;\r\n                if (!valueIsInLastSearchResult) {\r\n                    this.reset(this.previousValue);\r\n                    return;\r\n                }\r\n            }\r\n            this.typeaheadDestroy.emit();\r\n            if (value !== this.previousValue) {\r\n                this.clearInfoMessage();\r\n                this.previousValue = value;\r\n                if (this._saveAsJson && value) {\r\n                    const myJSON = JSON.stringify(this.lastSelectedItem);\r\n                    this.valueChanged.emit(myJSON);\r\n                }\r\n                else {\r\n                    this.valueChanged.emit(value);\r\n                }\r\n            }\r\n        });\r\n    }\r\n    onInputFocus(e) {\r\n        this.fieldInput = e.target || e.srcElement;\r\n        this.typeaheadAnchorElement = this.fieldInput;\r\n        if (!e.target.value) {\r\n            this.doSearch.emit('?');\r\n        }\r\n    }\r\n    onInputFocusOut(e) {\r\n        this.stopSearch = true;\r\n        this.fieldModel.value = this.fieldInput.value;\r\n        this.fieldModel.description = null;\r\n        this.sendValue.emit();\r\n    }\r\n    onInputKeyUp(e) {\r\n        // must ignore in case of Tab Key\r\n        // otherwise it will produce a search\r\n        // when a tab is hit to navigate between fields\r\n        if (e.keyCode === 9 || e.keyCode === 27 || e.keyCode === 13) {\r\n            return;\r\n        }\r\n        const searchTerm = this.fieldInput.value;\r\n        // The search event can be triggered every time,\r\n        // evan if the content has not changed (Enter|Tab|Arrow keys pressed)\r\n        // because the this observable has the \"distinctUntilChanged()\"\r\n        // that will prevent the request be performed until the value has really changed.\r\n        // This way we don't need to verify if the content has changed\r\n        this.doSearch.emit(searchTerm);\r\n    }\r\n    typeaheadOnSelect(item) {\r\n        this.lastSelectedItem = item;\r\n        this.fieldInput.value = item[this._saveProperty].substr(0, this.inputFieldMaxLength);\r\n        this.fieldModel.value = item[this._saveProperty].substr(0, this.inputFieldMaxLength);\r\n        this.fieldModel.description = this.serviceResultDescriptionKey ? item.description : '';\r\n        this.sendValue.emit();\r\n    }\r\n    isJSON(value) {\r\n        if (value && value.length > 1 && value[0] === '{' && value[value.length - 1] === '}') {\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n    putSearchResult(data) {\r\n        this.lastSearchResults = this.parseSearchResult(data);\r\n        if (!this.stopSearch) {\r\n            this.typeaheadDataSource.next(this.lastSearchResults);\r\n            if (this.lastSearchResults.length === 0) {\r\n                const info = this.i18nService.get('components.components.RES_NoResults');\r\n                this.setInfoMessage(info);\r\n            }\r\n        }\r\n    }\r\n    parseSearchResult(data) {\r\n        const finalResult = new Array();\r\n        let value;\r\n        let description;\r\n        let title;\r\n        if (this.servicejsonPath) {\r\n            data = this.JsonPath.query(data, this.servicejsonPath);\r\n        }\r\n        for (const item of data) {\r\n            const finalItem = {\r\n                value: null,\r\n                description: null,\r\n                title: null\r\n            };\r\n            value = item[this.serviceResultValueKey];\r\n            description = this.serviceResultDescriptionKey ? item[this.serviceResultDescriptionKey] : '';\r\n            title = this.serviceResultTitleKey ? item[this.serviceResultTitleKey] : value;\r\n            finalItem.value = this.isStringOrNumber(value) ? value : '';\r\n            finalItem.description = this.isStringOrNumber(description) ? description : '';\r\n            finalItem.title = this.isStringOrNumber(title) ? title : '';\r\n            finalResult.push(finalItem);\r\n        }\r\n        return finalResult;\r\n    }\r\n    isStringOrNumber(input) {\r\n        return typeof (input) === 'string' ||\r\n            typeof (input) === 'number' ||\r\n            typeof (input) === 'bigint';\r\n    }\r\n    getSearchResult(term) {\r\n        this.getResultFromService(this.fieldModel, term).then(r => {\r\n            this.isLoading = false;\r\n            this.clearInfoMessage();\r\n            this.putSearchResult(r);\r\n            this.changeDetectorRef.detectChanges();\r\n        }).catch(error => {\r\n            this.isLoading = false;\r\n            this.changeDetectorRef.detectChanges();\r\n            if (error instanceof HttpErrorResponse) {\r\n                const httpError = error;\r\n                let infoMessage = 'HTTP error ' + httpError.status + '.';\r\n                if (this.errorTranslations[httpError.status]) {\r\n                    infoMessage = this.errorTranslations[httpError.status];\r\n                }\r\n                this.setInfoMessage(infoMessage);\r\n            }\r\n            this.typeaheadDestroy.emit();\r\n        });\r\n    }\r\n    getResultFromService(selector, term) {\r\n        const promise = new Promise((resolve, reject) => {\r\n            this.transformedUrl = this.serviceUrl;\r\n            term = this.removeInvalidCharacters(term);\r\n            if (this.serviceUrl.indexOf('{value}') !== -1) {\r\n                this.transformedUrl = this.serviceUrl.replace('{value}', term);\r\n            }\r\n            if (this.beforeSearch) {\r\n                this.beforeSearch();\r\n            }\r\n            this.http.get(this.transformedUrl).subscribe(item => {\r\n                const res = item;\r\n                resolve(res);\r\n            }, err => {\r\n                reject(err);\r\n            });\r\n        });\r\n        return promise;\r\n    }\r\n    removeInvalidCharacters(term) {\r\n        const characterNotExistOnSearch = '\\\\';\r\n        // if the url is odata and use the substringof the character ' and # is invalid (respond 500)\r\n        // replace the character by a character valid but dont exist o respond no data.\r\n        if (this.transformedUrl.indexOf('odata?') !== -1 && this.transformedUrl.indexOf('substringof') !== -1) {\r\n            if (term) {\r\n                return term.replace('\\'', characterNotExistOnSearch).replace('#', characterNotExistOnSearch);\r\n            }\r\n        }\r\n        return term;\r\n    }\r\n    clearInfoMessage() {\r\n        this.infoMessage = undefined;\r\n    }\r\n    setInfoMessage(message) {\r\n        this.infoMessage = message;\r\n    }\r\n}\r\nPriWebserviceTypeaheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriWebserviceTypeaheadComponent, deps: [{ token: i1$4.HttpClient }, { token: i0.ChangeDetectorRef }, { token: i2$3.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriWebserviceTypeaheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriWebserviceTypeaheadComponent, selector: \"pri-webservice-typeahead\", inputs: { isDisabled: \"isDisabled\", isDetail: \"isDetail\", serviceUrl: \"serviceUrl\", propertyPath: \"propertyPath\", saveProperty: \"saveProperty\", saveAsJson: \"saveAsJson\", servicejsonPath: \"servicejsonPath\", serviceResultValueKey: \"serviceResultValueKey\", serviceResultDescriptionKey: \"serviceResultDescriptionKey\", serviceResultTitleKey: \"serviceResultTitleKey\", limitValue: \"limitValue\", inputFieldId: \"inputFieldId\", inputFieldPlaceholder: \"inputFieldPlaceholder\", inputFieldMaxLength: \"inputFieldMaxLength\", errorTranslations: \"errorTranslations\", beforeSearch: \"beforeSearch\", transformedUrl: \"transformedUrl\", value: \"value\" }, outputs: { valueChanged: \"valueChanged\" }, viewQueries: [{ propertyName: \"typeaheadItemTemplate\", first: true, predicate: [\"itemTemplate\"], descendants: true, static: true }, { propertyName: \"typeahead\", first: true, predicate: [\"typeahead\"], descendants: true, static: true }], ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"webservice-typeahead-container\\\"\\r\\n\\t[ngClass]=\\\"{ disabled: isDisabled, 'pri-web-component-container-disabled': isDisabled, detail: isDetail }\\\">\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"webservice-typeahead\\\"\\r\\n\\t\\t#typeahead=\\\"pri-typeahead\\\"\\r\\n\\t\\t[priTypeahead]=\\\"typeaheadDataSource\\\"\\r\\n\\t\\t[priTypeaheadOpenOnNoResult]=\\\"openOnNoResult\\\"\\r\\n\\t\\t[priTypeaheadDestroy]=\\\"typeaheadDestroy\\\"\\r\\n\\t\\t[priTypeaheadItemTemplate]=\\\"typeaheadItemTemplate\\\"\\r\\n\\t\\t[priTypeaheadAnchorElement]=\\\"typeaheadAnchorElement\\\"\\r\\n\\t\\t(priTypeaheadOnSelect)=\\\"typeaheadOnSelect($event)\\\"\\r\\n\\t\\tpriTypeaheadClass=\\\"pri-search-typeahead\\\"\\r\\n\\t\\tpriTypeaheadMinWidth=\\\"250px\\\">\\r\\n\\t\\t<div class=\\\"inputfield-container\\\" [style.flex-grow]=\\\"1\\\">\\r\\n\\t\\t\\t<div class=\\\"value-edit\\\">\\r\\n\\t\\t\\t\\t<input\\r\\n\\t\\t\\t\\t\\tclass=\\\"form-control input-md\\\"\\r\\n\\t\\t\\t\\t\\ttype=\\\"text\\\"\\r\\n\\t\\t\\t\\t\\tautocomplete=\\\"nope\\\"\\r\\n\\t\\t\\t\\t\\t[attr.maxlength]=\\\"inputFieldMaxLength\\\"\\r\\n\\t\\t\\t\\t\\t(focus)=\\\"onInputFocus($event)\\\"\\r\\n\\t\\t\\t\\t\\t(focusout)=\\\"onInputFocusOut($event)\\\"\\r\\n\\t\\t\\t\\t\\t(keyup)=\\\"onInputKeyUp($event)\\\"\\r\\n\\t\\t\\t\\t\\t[value]=\\\"inputValue\\\"\\r\\n\\t\\t\\t\\t\\t[attr.readonly]=\\\"isDisabled ? true : null\\\"\\r\\n\\t\\t\\t\\t\\tplaceholder=\\\"{{ isDisabled ? '' : inputFieldPlaceholder }}\\\"\\r\\n\\t\\t\\t\\t\\t[attr.id]=\\\"inputFieldId\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"info-content\\\">\\r\\n\\t\\t\\t<pri-loading-spinner *ngIf=\\\"isLoading\\\"></pri-loading-spinner>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t[popover]=\\\"popoverTemplate\\\"\\r\\n\\t\\t\\t\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\t\\t\\t\\tclass=\\\"help-tooltip-trigger\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"!isLoading && !isDisabled && infoMessage\\\"\\r\\n\\t\\t\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t\\t\\tcontainerClass=\\\"popover-webservice-typeahead\\\"\\r\\n\\t\\t\\t\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\t\\t\\t\\t#priPopover=\\\"bs-popover\\\"\\r\\n\\t\\t\\t\\t[priPopover]=\\\"priPopover\\\">\\r\\n\\t\\t\\t\\t?\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<ng-template let-title=\\\"title\\\" let-description=\\\"description\\\" #itemTemplate>\\r\\n\\t<div class=\\\"col-xs-12\\\">{{ title }}</div>\\r\\n\\t<div class=\\\"col-xs-12\\\">{{ description }}</div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #popoverTemplate>\\r\\n\\t<div class=\\\"popover-container\\\">\\r\\n\\t\\t<div class=\\\"popover-container-row-info\\\">{{ infoMessage }}</div>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\", styles: [\"pri-webservice-typeahead .webservice-typeahead-container{display:flex;width:100%;background:var(--grey-1)}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead{width:100%;float:left;position:relative;display:flex;align-items:center;padding:0 22px 0 20px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container{display:flex;flex-basis:0%;overflow:hidden}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input{width:100%;border:none;padding:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input:focus{outline:none}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .value-edit{width:100%;overflow:hidden}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .value-view{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content{display:flex;align-items:center;flex-shrink:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content .separator{color:var(--grey-8);font-size:13px;font-weight:400;padding:0 3px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content .separator.last{visibility:hidden;opacity:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .info-content{display:flex;position:absolute;align-items:center;justify-content:center;flex-shrink:0;width:16px;right:4px;top:0;bottom:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .info-content .help-tooltip-trigger{margin:0}pri-webservice-typeahead .webservice-typeahead-container.disabled{background-color:var(--grey-3)}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container{pointer-events:none}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container .value-view{color:var(--grey-7)}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container .separator-arrow-content .separator{color:var(--grey-7)}pri-webservice-typeahead .webservice-typeahead-container.view .webservice-typeahead{padding:0 13px 0 0}pri-webservice-typeahead .webservice-typeahead-container.detail.disabled{background-color:var(--grey-3)}pri-webservice-typeahead .popover-webservice-typeahead{max-width:350px}pri-webservice-typeahead .popover-webservice-typeahead.popover-hidden{visibility:hidden}pri-webservice-typeahead .popover-webservice-typeahead .popover-container{display:flex;flex-direction:column;min-width:250px}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row{display:flex;flex-direction:row;width:100%;white-space:nowrap;overflow:hidden;color:var(--grey-8);margin-bottom:5px}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row .popover-container-row-title{font-weight:700;text-overflow:ellipsis}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row .popover-container-row-info{padding-left:5px;width:100%;overflow:hidden;text-overflow:ellipsis}.pri-table-flex-grid .webservice-typeahead-container .webservice-typeahead .inputfield-container input:read-only{background-color:transparent}@media only screen and (max-width: 991px){pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead{padding:0 24px 0 12px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input{padding:0!important}.popover-webservice-typeahead{max-width:300px}}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"component\", type: LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }, { kind: \"directive\", type: PriTypeAheadDirective, selector: \"[priTypeahead]\", inputs: [\"priTypeahead\", \"priTypeaheadItemTemplate\", \"priTypeaheadFooterTemplate\", \"priTypeaheadAnchorElement\", \"priTypeaheadClass\", \"priTypeaheadMinWidth\", \"priTypeaheadFocus\", \"priTypeaheadDestroy\", \"priTypeaheadDismiss\", \"priTypeaheadOpenOnNoResult\"], outputs: [\"priTypeaheadOnSelect\"], exportAs: [\"pri-typeahead\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriWebserviceTypeaheadComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-webservice-typeahead', encapsulation: ViewEncapsulation.None, template: \"<div\\r\\n\\tclass=\\\"webservice-typeahead-container\\\"\\r\\n\\t[ngClass]=\\\"{ disabled: isDisabled, 'pri-web-component-container-disabled': isDisabled, detail: isDetail }\\\">\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"webservice-typeahead\\\"\\r\\n\\t\\t#typeahead=\\\"pri-typeahead\\\"\\r\\n\\t\\t[priTypeahead]=\\\"typeaheadDataSource\\\"\\r\\n\\t\\t[priTypeaheadOpenOnNoResult]=\\\"openOnNoResult\\\"\\r\\n\\t\\t[priTypeaheadDestroy]=\\\"typeaheadDestroy\\\"\\r\\n\\t\\t[priTypeaheadItemTemplate]=\\\"typeaheadItemTemplate\\\"\\r\\n\\t\\t[priTypeaheadAnchorElement]=\\\"typeaheadAnchorElement\\\"\\r\\n\\t\\t(priTypeaheadOnSelect)=\\\"typeaheadOnSelect($event)\\\"\\r\\n\\t\\tpriTypeaheadClass=\\\"pri-search-typeahead\\\"\\r\\n\\t\\tpriTypeaheadMinWidth=\\\"250px\\\">\\r\\n\\t\\t<div class=\\\"inputfield-container\\\" [style.flex-grow]=\\\"1\\\">\\r\\n\\t\\t\\t<div class=\\\"value-edit\\\">\\r\\n\\t\\t\\t\\t<input\\r\\n\\t\\t\\t\\t\\tclass=\\\"form-control input-md\\\"\\r\\n\\t\\t\\t\\t\\ttype=\\\"text\\\"\\r\\n\\t\\t\\t\\t\\tautocomplete=\\\"nope\\\"\\r\\n\\t\\t\\t\\t\\t[attr.maxlength]=\\\"inputFieldMaxLength\\\"\\r\\n\\t\\t\\t\\t\\t(focus)=\\\"onInputFocus($event)\\\"\\r\\n\\t\\t\\t\\t\\t(focusout)=\\\"onInputFocusOut($event)\\\"\\r\\n\\t\\t\\t\\t\\t(keyup)=\\\"onInputKeyUp($event)\\\"\\r\\n\\t\\t\\t\\t\\t[value]=\\\"inputValue\\\"\\r\\n\\t\\t\\t\\t\\t[attr.readonly]=\\\"isDisabled ? true : null\\\"\\r\\n\\t\\t\\t\\t\\tplaceholder=\\\"{{ isDisabled ? '' : inputFieldPlaceholder }}\\\"\\r\\n\\t\\t\\t\\t\\t[attr.id]=\\\"inputFieldId\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"info-content\\\">\\r\\n\\t\\t\\t<pri-loading-spinner *ngIf=\\\"isLoading\\\"></pri-loading-spinner>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t[popover]=\\\"popoverTemplate\\\"\\r\\n\\t\\t\\t\\t[adaptivePosition]=\\\"false\\\"\\r\\n\\t\\t\\t\\tclass=\\\"help-tooltip-trigger\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"!isLoading && !isDisabled && infoMessage\\\"\\r\\n\\t\\t\\t\\tcontainer=\\\"body\\\"\\r\\n\\t\\t\\t\\tcontainerClass=\\\"popover-webservice-typeahead\\\"\\r\\n\\t\\t\\t\\ttriggers=\\\"mouseenter:mouseleave\\\"\\r\\n\\t\\t\\t\\t#priPopover=\\\"bs-popover\\\"\\r\\n\\t\\t\\t\\t[priPopover]=\\\"priPopover\\\">\\r\\n\\t\\t\\t\\t?\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<ng-template let-title=\\\"title\\\" let-description=\\\"description\\\" #itemTemplate>\\r\\n\\t<div class=\\\"col-xs-12\\\">{{ title }}</div>\\r\\n\\t<div class=\\\"col-xs-12\\\">{{ description }}</div>\\r\\n</ng-template>\\r\\n\\r\\n<ng-template #popoverTemplate>\\r\\n\\t<div class=\\\"popover-container\\\">\\r\\n\\t\\t<div class=\\\"popover-container-row-info\\\">{{ infoMessage }}</div>\\r\\n\\t</div>\\r\\n</ng-template>\\r\\n\", styles: [\"pri-webservice-typeahead .webservice-typeahead-container{display:flex;width:100%;background:var(--grey-1)}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead{width:100%;float:left;position:relative;display:flex;align-items:center;padding:0 22px 0 20px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container{display:flex;flex-basis:0%;overflow:hidden}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input{width:100%;border:none;padding:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input:focus{outline:none}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .value-edit{width:100%;overflow:hidden}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .value-view{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content{display:flex;align-items:center;flex-shrink:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content .separator{color:var(--grey-8);font-size:13px;font-weight:400;padding:0 3px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container .separator-arrow-content .separator.last{visibility:hidden;opacity:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .info-content{display:flex;position:absolute;align-items:center;justify-content:center;flex-shrink:0;width:16px;right:4px;top:0;bottom:0}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .info-content .help-tooltip-trigger{margin:0}pri-webservice-typeahead .webservice-typeahead-container.disabled{background-color:var(--grey-3)}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container{pointer-events:none}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container .value-view{color:var(--grey-7)}pri-webservice-typeahead .webservice-typeahead-container.disabled .webservice-typeahead .inputfield-container .separator-arrow-content .separator{color:var(--grey-7)}pri-webservice-typeahead .webservice-typeahead-container.view .webservice-typeahead{padding:0 13px 0 0}pri-webservice-typeahead .webservice-typeahead-container.detail.disabled{background-color:var(--grey-3)}pri-webservice-typeahead .popover-webservice-typeahead{max-width:350px}pri-webservice-typeahead .popover-webservice-typeahead.popover-hidden{visibility:hidden}pri-webservice-typeahead .popover-webservice-typeahead .popover-container{display:flex;flex-direction:column;min-width:250px}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row{display:flex;flex-direction:row;width:100%;white-space:nowrap;overflow:hidden;color:var(--grey-8);margin-bottom:5px}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row .popover-container-row-title{font-weight:700;text-overflow:ellipsis}pri-webservice-typeahead .popover-webservice-typeahead .popover-container .popover-container-row .popover-container-row-info{padding-left:5px;width:100%;overflow:hidden;text-overflow:ellipsis}.pri-table-flex-grid .webservice-typeahead-container .webservice-typeahead .inputfield-container input:read-only{background-color:transparent}@media only screen and (max-width: 991px){pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead{padding:0 24px 0 12px}pri-webservice-typeahead .webservice-typeahead-container .webservice-typeahead .inputfield-container input{padding:0!important}.popover-webservice-typeahead{max-width:300px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$3.I18nService }]; }, propDecorators: { typeaheadItemTemplate: [{\r\n                type: ViewChild,\r\n                args: ['itemTemplate', { static: true }]\r\n            }], typeahead: [{\r\n                type: ViewChild,\r\n                args: ['typeahead', { static: true }]\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], isDetail: [{\r\n                type: Input\r\n            }], serviceUrl: [{\r\n                type: Input\r\n            }], propertyPath: [{\r\n                type: Input\r\n            }], saveProperty: [{\r\n                type: Input\r\n            }], saveAsJson: [{\r\n                type: Input\r\n            }], servicejsonPath: [{\r\n                type: Input\r\n            }], serviceResultValueKey: [{\r\n                type: Input\r\n            }], serviceResultDescriptionKey: [{\r\n                type: Input\r\n            }], serviceResultTitleKey: [{\r\n                type: Input\r\n            }], limitValue: [{\r\n                type: Input\r\n            }], inputFieldId: [{\r\n                type: Input\r\n            }], inputFieldPlaceholder: [{\r\n                type: Input\r\n            }], inputFieldMaxLength: [{\r\n                type: Input\r\n            }], errorTranslations: [{\r\n                type: Input\r\n            }], beforeSearch: [{\r\n                type: Input\r\n            }], transformedUrl: [{\r\n                type: Input\r\n            }], value: [{\r\n                type: Input\r\n            }], valueChanged: [{\r\n                type: Output\r\n            }] } });\n\nvar YearCalendarMode;\r\n(function (YearCalendarMode) {\r\n    YearCalendarMode[YearCalendarMode[\"View\"] = 0] = \"View\";\r\n    YearCalendarMode[YearCalendarMode[\"Edit\"] = 1] = \"Edit\";\r\n})(YearCalendarMode || (YearCalendarMode = {}));\n\nclass PriCalendarDayComponent {\r\n    constructor() {\r\n        this.selectedDay = new EventEmitter();\r\n        this.mouseoverDay = new EventEmitter();\r\n        this.YearCalendarMode = YearCalendarMode;\r\n        this.onWindowBlur = (event) => {\r\n            this.elementActiveBlur.removeEventListener('blur', this.onWindowBlur);\r\n            event.preventDefault();\r\n            event.stopPropagation();\r\n            this.selectedDay.emit();\r\n        };\r\n    }\r\n    mouseover() {\r\n        if (this.mode === YearCalendarMode.Edit) {\r\n            if (this.day.allowEvent && !this.day.locked) {\r\n                this.hover = true;\r\n            }\r\n            this.disabled = this.isDisabled(this.day);\r\n            this.mouseoverDay.emit();\r\n        }\r\n    }\r\n    mouseout() {\r\n        if (this.mode === YearCalendarMode.Edit) {\r\n            this.hover = false;\r\n        }\r\n    }\r\n    mousedown(event) {\r\n        if (this.mode === YearCalendarMode.Edit) {\r\n            if (document.activeElement && document.activeElement instanceof HTMLInputElement && document.activeElement.type === 'text') {\r\n                this.elementActiveBlur = document.activeElement;\r\n                this.elementActiveBlur.addEventListener('blur', this.onWindowBlur);\r\n            }\r\n            else {\r\n                event.preventDefault();\r\n                event.stopPropagation();\r\n                this.selectedDay.emit();\r\n            }\r\n        }\r\n    }\r\n}\r\nPriCalendarDayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarDayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarDayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarDayComponent, selector: \"pri-calendar-day\", inputs: { day: \"day\", mode: \"mode\", selectionActive: \"selectionActive\", isDisabled: \"isDisabled\" }, outputs: { selectedDay: \"selectedDay\", mouseoverDay: \"mouseoverDay\" }, ngImport: i0, template: \"<div class=\\\"day-wrapper\\\" *ngIf=\\\"day.day > 0\\\"\\r\\n    [ngClass]=\\\"{'today': day.isToday, \\r\\n        'not-workable': !day.workingDay, \\r\\n        'not-allow' : ((!day.allowEvent || day.locked) && mode === YearCalendarMode.Edit) || mode === YearCalendarMode.View,\\r\\n        'disabled': disabled,\\r\\n        'hover': hover && !selectionActive && !disabled, \\r\\n        'selected': day.percentageEvent > 0}\\\"\\r\\n    (mouseover)=\\\"mouseover()\\\" (mouseout)=\\\"mouseout()\\\" (mousedown)=\\\"mousedown($event)\\\" container=\\\"body\\\"\\r\\n    popover=\\\"{{day.description ? day.description : null}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"\\r\\n    #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\" attr.data-testid=\\\"calendar-day-{{day.day}}\\\">\\r\\n    <div class=\\\"day-event\\\">\\r\\n        <div class=\\\"working-area\\\" *ngIf=\\\"day.percentageEvent > 0\\\" [style.height.%]=\\\"day.percentageEvent\\\"></div>\\r\\n    </div>\\r\\n    <div class=\\\"day-number\\\">\\r\\n        {{day.day}}\\r\\n    </div>\\r\\n    <div class=\\\"events-wrapper\\\">\\r\\n        <div *ngFor=\\\"let event of day.otherEvents\\\" class=\\\"rect-event\\\" [style.backgroundColor]=\\\"event.color\\\"></div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-calendar-day{display:flex;width:100%;height:100%;overflow:hidden;position:relative;background-color:var(--grey-1)}pri-calendar-day .day-wrapper{display:flex;width:100%;height:100%;background-color:var(--grey-2);color:var(--grey-8);cursor:pointer}pri-calendar-day .day-wrapper .day-event{display:flex;position:absolute;align-items:flex-end;left:0;top:0;width:100%;height:100%}pri-calendar-day .day-wrapper .day-event .working-area{width:100%;min-height:5%;background-color:var(--theme-40)}pri-calendar-day .day-wrapper .day-event .working-area:hover{background-color:var(--theme-60)}pri-calendar-day .day-wrapper .day-number{position:absolute;right:2px;top:4px;font-size:11px;line-height:1;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--grey-8)}pri-calendar-day .day-wrapper .events-wrapper{position:absolute;right:2px;bottom:2px;display:flex;flex-direction:row-reverse;flex-shrink:0}pri-calendar-day .day-wrapper .events-wrapper .rect-event{width:6px;height:6px;background-color:var(--theme-100)}pri-calendar-day .day-wrapper.not-workable{background-color:var(--grey-4)}pri-calendar-day .day-wrapper.not-workable .day-number{color:var(--grey-8);font-weight:500}pri-calendar-day .day-wrapper.not-allow{cursor:inherit}pri-calendar-day .day-wrapper.disabled{cursor:inherit}pri-calendar-day .day-wrapper.today .day-event{border:1px solid var(--theme-100)}pri-calendar-day .day-wrapper.today .day-number{color:var(--theme-100);font-weight:700}pri-calendar-day .day-wrapper.hover .day-event{background-color:var(--theme-20)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarDayComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-day', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"day-wrapper\\\" *ngIf=\\\"day.day > 0\\\"\\r\\n    [ngClass]=\\\"{'today': day.isToday, \\r\\n        'not-workable': !day.workingDay, \\r\\n        'not-allow' : ((!day.allowEvent || day.locked) && mode === YearCalendarMode.Edit) || mode === YearCalendarMode.View,\\r\\n        'disabled': disabled,\\r\\n        'hover': hover && !selectionActive && !disabled, \\r\\n        'selected': day.percentageEvent > 0}\\\"\\r\\n    (mouseover)=\\\"mouseover()\\\" (mouseout)=\\\"mouseout()\\\" (mousedown)=\\\"mousedown($event)\\\" container=\\\"body\\\"\\r\\n    popover=\\\"{{day.description ? day.description : null}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"\\r\\n    #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\" attr.data-testid=\\\"calendar-day-{{day.day}}\\\">\\r\\n    <div class=\\\"day-event\\\">\\r\\n        <div class=\\\"working-area\\\" *ngIf=\\\"day.percentageEvent > 0\\\" [style.height.%]=\\\"day.percentageEvent\\\"></div>\\r\\n    </div>\\r\\n    <div class=\\\"day-number\\\">\\r\\n        {{day.day}}\\r\\n    </div>\\r\\n    <div class=\\\"events-wrapper\\\">\\r\\n        <div *ngFor=\\\"let event of day.otherEvents\\\" class=\\\"rect-event\\\" [style.backgroundColor]=\\\"event.color\\\"></div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-calendar-day{display:flex;width:100%;height:100%;overflow:hidden;position:relative;background-color:var(--grey-1)}pri-calendar-day .day-wrapper{display:flex;width:100%;height:100%;background-color:var(--grey-2);color:var(--grey-8);cursor:pointer}pri-calendar-day .day-wrapper .day-event{display:flex;position:absolute;align-items:flex-end;left:0;top:0;width:100%;height:100%}pri-calendar-day .day-wrapper .day-event .working-area{width:100%;min-height:5%;background-color:var(--theme-40)}pri-calendar-day .day-wrapper .day-event .working-area:hover{background-color:var(--theme-60)}pri-calendar-day .day-wrapper .day-number{position:absolute;right:2px;top:4px;font-size:11px;line-height:1;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--grey-8)}pri-calendar-day .day-wrapper .events-wrapper{position:absolute;right:2px;bottom:2px;display:flex;flex-direction:row-reverse;flex-shrink:0}pri-calendar-day .day-wrapper .events-wrapper .rect-event{width:6px;height:6px;background-color:var(--theme-100)}pri-calendar-day .day-wrapper.not-workable{background-color:var(--grey-4)}pri-calendar-day .day-wrapper.not-workable .day-number{color:var(--grey-8);font-weight:500}pri-calendar-day .day-wrapper.not-allow{cursor:inherit}pri-calendar-day .day-wrapper.disabled{cursor:inherit}pri-calendar-day .day-wrapper.today .day-event{border:1px solid var(--theme-100)}pri-calendar-day .day-wrapper.today .day-number{color:var(--theme-100);font-weight:700}pri-calendar-day .day-wrapper.hover .day-event{background-color:var(--theme-20)}\\n\"] }]\r\n        }], ctorParameters: function () { return []; }, propDecorators: { day: [{\r\n                type: Input\r\n            }], mode: [{\r\n                type: Input\r\n            }], selectionActive: [{\r\n                type: Input\r\n            }], isDisabled: [{\r\n                type: Input\r\n            }], selectedDay: [{\r\n                type: Output\r\n            }], mouseoverDay: [{\r\n                type: Output\r\n            }] } });\n\nclass PriCalendarMonthEventsRowDayComponent {\r\n}\r\nPriCalendarMonthEventsRowDayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowDayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarMonthEventsRowDayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarMonthEventsRowDayComponent, selector: \"pri-calendar-month-events-row-day\", inputs: { day: \"day\", color: \"color\" }, ngImport: i0, template: \"<div class=\\\"event-day-wrapper\\\" *ngIf=\\\"day.day > 0\\\" [ngClass]=\\\"{'not-workable': !day.workingDay}\\\">\\r\\n    <div class=\\\"event-day-event\\\" *ngIf=\\\"day.percentageEvent > 0\\\">\\r\\n        <div class=\\\"working-area\\\" [style.height.%]=\\\"day.percentageEvent\\\" [style.backgroundColor]=\\\"color\\\"\\r\\n            popover=\\\"{{day.eventTime ? day.eventTime : null}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"\\r\\n            container=\\\"body\\\" #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\"></div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-calendar-month-events-row-day .event-day-wrapper{position:relative;display:flex;width:100%;height:100%}pri-calendar-month-events-row-day .event-day-wrapper.not-workable{background-color:var(--grey-5)}pri-calendar-month-events-row-day .event-day-wrapper .event-day-event{display:flex;position:absolute;align-items:flex-end;left:0;top:0;width:100%;height:100%}pri-calendar-month-events-row-day .event-day-wrapper .event-day-event .working-area{width:100%;background-color:var(--theme-100);min-height:30%}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowDayComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-month-events-row-day', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"event-day-wrapper\\\" *ngIf=\\\"day.day > 0\\\" [ngClass]=\\\"{'not-workable': !day.workingDay}\\\">\\r\\n    <div class=\\\"event-day-event\\\" *ngIf=\\\"day.percentageEvent > 0\\\">\\r\\n        <div class=\\\"working-area\\\" [style.height.%]=\\\"day.percentageEvent\\\" [style.backgroundColor]=\\\"color\\\"\\r\\n            popover=\\\"{{day.eventTime ? day.eventTime : null}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"\\r\\n            container=\\\"body\\\" #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\"></div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-calendar-month-events-row-day .event-day-wrapper{position:relative;display:flex;width:100%;height:100%}pri-calendar-month-events-row-day .event-day-wrapper.not-workable{background-color:var(--grey-5)}pri-calendar-month-events-row-day .event-day-wrapper .event-day-event{display:flex;position:absolute;align-items:flex-end;left:0;top:0;width:100%;height:100%}pri-calendar-month-events-row-day .event-day-wrapper .event-day-event .working-area{width:100%;background-color:var(--theme-100);min-height:30%}\\n\"] }]\r\n        }], propDecorators: { day: [{\r\n                type: Input\r\n            }], color: [{\r\n                type: Input\r\n            }] } });\n\nclass PriCalendarMonthEventsRowMonthComponent {\r\n    constructor() {\r\n        this.editEvent = new EventEmitter();\r\n        this.removeEvent = new EventEmitter();\r\n        this.YearCalendarMode = YearCalendarMode;\r\n    }\r\n    edit() {\r\n        this.editEvent.emit();\r\n    }\r\n    remove() {\r\n        this.removeEvent.emit();\r\n    }\r\n    onImgError() {\r\n        this.event.imageUrl = undefined; // if the image failed to load, we set it as undefined to load the initials instead of the image\r\n    }\r\n}\r\nPriCalendarMonthEventsRowMonthComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarMonthEventsRowMonthComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarMonthEventsRowMonthComponent, selector: \"pri-calendar-month-events-row-month\", inputs: { event: \"event\", mode: \"mode\" }, outputs: { editEvent: \"editEvent\", removeEvent: \"removeEvent\" }, ngImport: i0, template: \"<div class=\\\"title-wrapper\\\" popover=\\\"{{event.description ? event.description : null}}\\\" [adaptivePosition]=\\\"false\\\" container=\\\"body\\\" triggers=\\\"mouseenter:mouseleave\\\" \\r\\n    placement=\\\"top\\\" #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\">\\r\\n    <img class=\\\"event-avatar event-image\\\" *ngIf=\\\"event.imageUrl\\\" [attr.src]=\\\"event.imageUrl | imageSrc: true | async\\\" (error)=\\\"onImgError()\\\" />\\r\\n    <pri-text-initials class=\\\"event-avatar event-initials\\\" *ngIf=\\\"!event.imageUrl\\\" [text]=\\\"event.title\\\"></pri-text-initials>\\r\\n    <div class=\\\"event-row-title\\\">{{event.title}}</div>\\r\\n</div>\\r\\n<div class=\\\"event-row-actions-wrapper\\\" *ngIf=\\\"mode === YearCalendarMode.View && (event.isEditable || event.isRemovable)\\\">\\r\\n    <div *ngIf=\\\"event.isEditable\\\" class=\\\"event-row-action ti-ux-edit\\\" (click)=\\\"edit()\\\" container=\\\"body\\\"\\r\\n        popover=\\\"{{'components.components.RES_Events_Actions_Edit_Tooltip' | priI18n}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\"\\r\\n        placement=\\\"top\\\"></div>\\r\\n    <div *ngIf=\\\"event.isRemovable\\\" class=\\\"event-row-action ti-ux-trash\\\" (click)=\\\"remove()\\\" container=\\\"body\\\"\\r\\n        popover=\\\"{{'components.components.RES_Events_Actions_Remove_Tooltip' | priI18n}}\\\" [adaptivePosition]=\\\"false\\\"\\r\\n        triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"></div>\\r\\n</div>\", styles: [\"pri-calendar-month-events-row-month{display:flex;background-color:var(--grey-2);color:var(--grey-8);flex-direction:row;align-items:center;padding:0 6px 0 12px;justify-content:space-between;overflow:hidden}pri-calendar-month-events-row-month .title-wrapper{overflow:hidden;display:flex;align-items:center}pri-calendar-month-events-row-month .title-wrapper .event-avatar{width:20px;height:20px;border-radius:100%;border:1px solid var(--grey-4);margin-right:4px;flex-shrink:0;object-fit:cover}pri-calendar-month-events-row-month .title-wrapper .event-avatar.event-initials{font-size:10px}pri-calendar-month-events-row-month .title-wrapper .event-row-title{color:var(--grey-8);font-size:12px;line-height:20px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-calendar-month-events-row-month .event-row-actions-wrapper{display:flex;margin-left:4px;flex-shrink:0}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action{cursor:pointer;color:var(--grey-8);font-size:12px;padding:4px;border-radius:100%;margin-right:4px}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action:last-child{margin-right:0}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action:hover{background-color:var(--grey-4)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$6.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }, { kind: \"component\", type: TextInitialsComponent, selector: \"pri-text-initials\", inputs: [\"text\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i2$3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: ImageSourcePipe, name: \"imageSrc\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowMonthComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-month-events-row-month', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"title-wrapper\\\" popover=\\\"{{event.description ? event.description : null}}\\\" [adaptivePosition]=\\\"false\\\" container=\\\"body\\\" triggers=\\\"mouseenter:mouseleave\\\" \\r\\n    placement=\\\"top\\\" #pripopover=\\\"bs-popover\\\" [priPopover]=\\\"pripopover\\\">\\r\\n    <img class=\\\"event-avatar event-image\\\" *ngIf=\\\"event.imageUrl\\\" [attr.src]=\\\"event.imageUrl | imageSrc: true | async\\\" (error)=\\\"onImgError()\\\" />\\r\\n    <pri-text-initials class=\\\"event-avatar event-initials\\\" *ngIf=\\\"!event.imageUrl\\\" [text]=\\\"event.title\\\"></pri-text-initials>\\r\\n    <div class=\\\"event-row-title\\\">{{event.title}}</div>\\r\\n</div>\\r\\n<div class=\\\"event-row-actions-wrapper\\\" *ngIf=\\\"mode === YearCalendarMode.View && (event.isEditable || event.isRemovable)\\\">\\r\\n    <div *ngIf=\\\"event.isEditable\\\" class=\\\"event-row-action ti-ux-edit\\\" (click)=\\\"edit()\\\" container=\\\"body\\\"\\r\\n        popover=\\\"{{'components.components.RES_Events_Actions_Edit_Tooltip' | priI18n}}\\\" [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\"\\r\\n        placement=\\\"top\\\"></div>\\r\\n    <div *ngIf=\\\"event.isRemovable\\\" class=\\\"event-row-action ti-ux-trash\\\" (click)=\\\"remove()\\\" container=\\\"body\\\"\\r\\n        popover=\\\"{{'components.components.RES_Events_Actions_Remove_Tooltip' | priI18n}}\\\" [adaptivePosition]=\\\"false\\\"\\r\\n        triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"top\\\"></div>\\r\\n</div>\", styles: [\"pri-calendar-month-events-row-month{display:flex;background-color:var(--grey-2);color:var(--grey-8);flex-direction:row;align-items:center;padding:0 6px 0 12px;justify-content:space-between;overflow:hidden}pri-calendar-month-events-row-month .title-wrapper{overflow:hidden;display:flex;align-items:center}pri-calendar-month-events-row-month .title-wrapper .event-avatar{width:20px;height:20px;border-radius:100%;border:1px solid var(--grey-4);margin-right:4px;flex-shrink:0;object-fit:cover}pri-calendar-month-events-row-month .title-wrapper .event-avatar.event-initials{font-size:10px}pri-calendar-month-events-row-month .title-wrapper .event-row-title{color:var(--grey-8);font-size:12px;line-height:20px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-calendar-month-events-row-month .event-row-actions-wrapper{display:flex;margin-left:4px;flex-shrink:0}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action{cursor:pointer;color:var(--grey-8);font-size:12px;padding:4px;border-radius:100%;margin-right:4px}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action:last-child{margin-right:0}pri-calendar-month-events-row-month .event-row-actions-wrapper .event-row-action:hover{background-color:var(--grey-4)}\\n\"] }]\r\n        }], propDecorators: { event: [{\r\n                type: Input\r\n            }], mode: [{\r\n                type: Input\r\n            }], editEvent: [{\r\n                type: Output\r\n            }], removeEvent: [{\r\n                type: Output\r\n            }] } });\n\nclass PriCalendarMonthEventsRowComponent {\r\n    constructor() {\r\n        this.editEvent = new EventEmitter();\r\n        this.removeEvent = new EventEmitter();\r\n    }\r\n    edit() {\r\n        this.editEvent.emit();\r\n    }\r\n    remove() {\r\n        this.removeEvent.emit();\r\n    }\r\n}\r\nPriCalendarMonthEventsRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarMonthEventsRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarMonthEventsRowComponent, selector: \"pri-calendar-month-events-row\", inputs: { event: \"event\", mode: \"mode\" }, outputs: { editEvent: \"editEvent\", removeEvent: \"removeEvent\" }, ngImport: i0, template: \"<pri-calendar-month-events-row-month [event]=\\\"event\\\" [mode]=\\\"mode\\\" (editEvent)=\\\"edit()\\\" (removeEvent)=\\\"remove()\\\"></pri-calendar-month-events-row-month>\\r\\n<pri-calendar-month-events-row-day *ngFor=\\\"let day of event.days\\\" [day]=\\\"day\\\" [color]=\\\"event.color\\\"></pri-calendar-month-events-row-day>\", styles: [\"pri-calendar-month-events-row .calendar-row.month-expand-row{height:28px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"component\", type: PriCalendarMonthEventsRowDayComponent, selector: \"pri-calendar-month-events-row-day\", inputs: [\"day\", \"color\"] }, { kind: \"component\", type: PriCalendarMonthEventsRowMonthComponent, selector: \"pri-calendar-month-events-row-month\", inputs: [\"event\", \"mode\"], outputs: [\"editEvent\", \"removeEvent\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthEventsRowComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-month-events-row', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<pri-calendar-month-events-row-month [event]=\\\"event\\\" [mode]=\\\"mode\\\" (editEvent)=\\\"edit()\\\" (removeEvent)=\\\"remove()\\\"></pri-calendar-month-events-row-month>\\r\\n<pri-calendar-month-events-row-day *ngFor=\\\"let day of event.days\\\" [day]=\\\"day\\\" [color]=\\\"event.color\\\"></pri-calendar-month-events-row-day>\", styles: [\"pri-calendar-month-events-row .calendar-row.month-expand-row{height:28px}\\n\"] }]\r\n        }], propDecorators: { event: [{\r\n                type: Input\r\n            }], mode: [{\r\n                type: Input\r\n            }], editEvent: [{\r\n                type: Output\r\n            }], removeEvent: [{\r\n                type: Output\r\n            }] } });\n\nclass PriCalendarMonthComponent {\r\n}\r\nPriCalendarMonthComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarMonthComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarMonthComponent, selector: \"pri-calendar-month\", inputs: { name: \"name\", expand: \"expand\", eventsCount: \"eventsCount\", collapsed: \"collapsed\" }, ngImport: i0, template: \"<div class=\\\"month-name-wrapper\\\">\\r\\n    {{name | titlecase}}\\r\\n</div>\\r\\n<div class=\\\"events-wrapper\\\" *ngIf=\\\"eventsCount > 0\\\">\\r\\n    <div class=\\\"event-count\\\">{{eventsCount}}</div>\\r\\n    <i *ngIf=\\\"expand\\\" [@rotate]=\\\"collapsed ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n</div>\", styles: [\"pri-calendar-month{background-color:var(--grey-3);color:var(--grey-8);display:flex;align-items:center;padding:0 6px 0 12px;overflow:hidden;justify-content:space-between;-webkit-user-select:none;user-select:none}pri-calendar-month.expand{cursor:pointer}pri-calendar-month .month-name-wrapper{font-size:12px;font-weight:600;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-calendar-month .events-wrapper{display:flex;align-items:center}pri-calendar-month .events-wrapper .event-count{background-color:var(--theme-100);color:#fff;font-size:12px;width:16px;height:16px;line-height:16px;text-align:center;border-radius:100%;margin:0 8px;pointer-events:none}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1$1.TitleCasePipe, name: \"titlecase\" }], animations: [\r\n        trigger('rotate', [\r\n            state('initial', style({\r\n                transform: 'rotate(0deg)',\r\n            })),\r\n            state('rotated', style({\r\n                transform: 'rotate(180deg)',\r\n            })),\r\n            transition('initial => rotated', [\r\n                animate('0.2s')\r\n            ]),\r\n            transition('rotated => initial', [\r\n                animate('0.2s')\r\n            ]),\r\n        ]),\r\n    ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-month', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [\r\n                        trigger('rotate', [\r\n                            state('initial', style({\r\n                                transform: 'rotate(0deg)',\r\n                            })),\r\n                            state('rotated', style({\r\n                                transform: 'rotate(180deg)',\r\n                            })),\r\n                            transition('initial => rotated', [\r\n                                animate('0.2s')\r\n                            ]),\r\n                            transition('rotated => initial', [\r\n                                animate('0.2s')\r\n                            ]),\r\n                        ]),\r\n                    ], template: \"<div class=\\\"month-name-wrapper\\\">\\r\\n    {{name | titlecase}}\\r\\n</div>\\r\\n<div class=\\\"events-wrapper\\\" *ngIf=\\\"eventsCount > 0\\\">\\r\\n    <div class=\\\"event-count\\\">{{eventsCount}}</div>\\r\\n    <i *ngIf=\\\"expand\\\" [@rotate]=\\\"collapsed ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n</div>\", styles: [\"pri-calendar-month{background-color:var(--grey-3);color:var(--grey-8);display:flex;align-items:center;padding:0 6px 0 12px;overflow:hidden;justify-content:space-between;-webkit-user-select:none;user-select:none}pri-calendar-month.expand{cursor:pointer}pri-calendar-month .month-name-wrapper{font-size:12px;font-weight:600;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-calendar-month .events-wrapper{display:flex;align-items:center}pri-calendar-month .events-wrapper .event-count{background-color:var(--theme-100);color:#fff;font-size:12px;width:16px;height:16px;line-height:16px;text-align:center;border-radius:100%;margin:0 8px;pointer-events:none}\\n\"] }]\r\n        }], propDecorators: { name: [{\r\n                type: Input\r\n            }], expand: [{\r\n                type: Input\r\n            }], eventsCount: [{\r\n                type: Input\r\n            }], collapsed: [{\r\n                type: Input\r\n            }] } });\n\nclass PriCalendarMonthRowComponent {\r\n    constructor() {\r\n        this.daysSelectComplete = new EventEmitter();\r\n        this.daysChange = new EventEmitter();\r\n        this.editEvent = new EventEmitter();\r\n        this.removeEvent = new EventEmitter();\r\n        this.collapsed = true;\r\n        this.initDay = -1;\r\n        this.YearCalendarMode = YearCalendarMode;\r\n        this.calendarEventsDays = [];\r\n        this.dayDisabled = (day) => {\r\n            if (this.initDay === -1) {\r\n                const availableHours = this.availableHours();\r\n                if (availableHours === 0 && day.percentageEvent === 0) {\r\n                    return true;\r\n                }\r\n            }\r\n            else {\r\n                if (this.availableTime <= 0) {\r\n                    return true;\r\n                }\r\n            }\r\n            return false;\r\n        };\r\n    }\r\n    mouseUp() {\r\n        if (this.initDay > -1) {\r\n            if (this.mode === YearCalendarMode.Edit) {\r\n                this.daysSelectComplete.emit();\r\n            }\r\n            this.initDay = -1;\r\n        }\r\n    }\r\n    mouseWindowUp() {\r\n        this.mouseUp();\r\n    }\r\n    showMoreDetails() {\r\n        if (this.monthRow.expand && this.mode === YearCalendarMode.Edit) {\r\n            this.moreDetails();\r\n        }\r\n    }\r\n    daySelected(day) {\r\n        const percentageEvent = this.eventHours / this.workingHours * 100;\r\n        if (day.percentageEvent !== percentageEvent) {\r\n            this.selectPercentage = percentageEvent;\r\n        }\r\n        else {\r\n            this.selectPercentage = 0;\r\n        }\r\n        this.initAvailableTime = this.availableHours();\r\n        if (!(this.initAvailableTime === 0 && day.percentageEvent === 0)) {\r\n            this.differenceDays = [];\r\n            this.initDays = this.cloneDays;\r\n            this.initDay = day.day;\r\n            this.addRemoveEvent(day);\r\n        }\r\n    }\r\n    mouseoverDay(day) {\r\n        if (this.initDay > -1) {\r\n            this.addRemoveEvent(day);\r\n        }\r\n    }\r\n    expandDetails() {\r\n        if (this.monthRow.expand && this.mode === YearCalendarMode.View) {\r\n            this.moreDetails();\r\n        }\r\n    }\r\n    edit(event) {\r\n        this.editEvent.emit(event);\r\n    }\r\n    remove(event) {\r\n        this.removeEvent.emit(event);\r\n    }\r\n    moreDetails() {\r\n        this.collapsed = !this.collapsed;\r\n    }\r\n    addRemoveEvent(day) {\r\n        this.calendarEventsDays.forEach(c => {\r\n            this.monthRow.days.find(d => d.day === c).percentageEvent = this.initDays.find(d => d.day === c).percentageEvent;\r\n        });\r\n        this.calendarEventsDays = [];\r\n        this.availableTime = this.initAvailableTime;\r\n        this.differenceDays.forEach(f => {\r\n            f.percentageEvent = this.initDays.find(d => d.day === f.day).percentageEvent;\r\n        });\r\n        if (day.day >= this.initDay) {\r\n            for (let i = this.initDay; i <= day.day; i++) {\r\n                this.addToArray(i);\r\n            }\r\n        }\r\n        else {\r\n            for (let i = this.initDay; i >= day.day; i--) {\r\n                this.addToArray(i);\r\n            }\r\n        }\r\n    }\r\n    addToArray(day) {\r\n        const selectedDay = this.monthRow.days.find(d => d.day === day);\r\n        if (selectedDay.allowEvent && !selectedDay.locked) {\r\n            this.availableTime += (selectedDay.percentageEvent - this.selectPercentage) * this.workingHours / 100;\r\n            if (this.availableTime >= 0) {\r\n                this.calendarEventsDays.push(selectedDay.day);\r\n                selectedDay.percentageEvent = this.selectPercentage;\r\n                const diffDay = this.differenceDays.find(d => d.day === day);\r\n                if (diffDay) {\r\n                    diffDay.percentageEvent = this.selectPercentage;\r\n                }\r\n                else {\r\n                    this.differenceDays.push({\r\n                        day,\r\n                        percentageEvent: this.selectPercentage\r\n                    });\r\n                }\r\n            }\r\n        }\r\n        this.daysChange.emit(this.differenceDays);\r\n    }\r\n    get cloneDays() {\r\n        const days = [];\r\n        this.monthRow.days.forEach(d => {\r\n            days.push({\r\n                day: d.day,\r\n                percentageEvent: d.percentageEvent\r\n            });\r\n        });\r\n        return days;\r\n    }\r\n}\r\nPriCalendarMonthRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarMonthRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarMonthRowComponent, selector: \"pri-calendar-month-row\", inputs: { monthRow: \"monthRow\", mode: \"mode\", eventHours: \"eventHours\", workingHours: \"workingHours\", availableHours: \"availableHours\" }, outputs: { daysSelectComplete: \"daysSelectComplete\", daysChange: \"daysChange\", editEvent: \"editEvent\", removeEvent: \"removeEvent\" }, host: { listeners: { \"mouseup\": \"mouseUp()\", \"window:mouseup\": \"mouseWindowUp()\" } }, ngImport: i0, template: \"<div class=\\\"calendar-row month-wrapper\\\" (click)=expandDetails()>\\r\\n    <pri-calendar-month [name]=\\\"monthRow.name\\\" [eventsCount]=\\\"monthRow.events.length\\\" [collapsed]=\\\"collapsed\\\"\\r\\n        [expand]=\\\"monthRow.expand\\\" (click)=\\\"showMoreDetails()\\\"\\r\\n        [ngClass]=\\\"{'expand': monthRow.expand && monthRow.events.length > 0 && mode === YearCalendarMode.Edit}\\\"\\r\\n        attr.data-testid=\\\"calendar-month-{{monthRow.month}}\\\"></pri-calendar-month>\\r\\n    <pri-calendar-day *ngFor=\\\"let day of monthRow.days\\\" [day]=\\\"day\\\" [mode]=\\\"mode\\\" [selectionActive]=\\\"initDay !== -1\\\" [isDisabled]=\\\"dayDisabled\\\"\\r\\n        (selectedDay)=\\\"daySelected(day)\\\" (mouseoverDay)=\\\"mouseoverDay(day)\\\"></pri-calendar-day>\\r\\n</div>\\r\\n<div class=\\\"other-events-wrapper\\\" *ngIf=\\\"!collapsed\\\" [@expandCollapse]>\\r\\n    <pri-calendar-month-events-row *ngFor=\\\"let event of monthRow.events\\\" class=\\\"calendar-row month-expand-row\\\" [event]=\\\"event\\\" [mode]=\\\"mode\\\"\\r\\n        (editEvent)=\\\"edit(event)\\\" (removeEvent)=\\\"remove(event)\\\">\\r\\n    </pri-calendar-month-events-row>\\r\\n</div>\\r\\n\", styles: [\"pri-calendar-month-row.expand{cursor:pointer}pri-calendar-month-row .other-events-wrapper{display:grid;overflow:hidden;grid-gap:1px;margin-top:1px}pri-calendar-month-row .calendar-row{display:grid;grid-template-columns:minmax(164px,328px) repeat(var(--calendar-columns),minmax(24px,48px));grid-gap:1px;height:36px}pri-calendar-month-row .calendar-row.header-wrapper{height:36px}pri-calendar-month-row .calendar-row.month-expand-row{height:28px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: PriCalendarMonthComponent, selector: \"pri-calendar-month\", inputs: [\"name\", \"expand\", \"eventsCount\", \"collapsed\"] }, { kind: \"component\", type: PriCalendarMonthEventsRowComponent, selector: \"pri-calendar-month-events-row\", inputs: [\"event\", \"mode\"], outputs: [\"editEvent\", \"removeEvent\"] }, { kind: \"component\", type: PriCalendarDayComponent, selector: \"pri-calendar-day\", inputs: [\"day\", \"mode\", \"selectionActive\", \"isDisabled\"], outputs: [\"selectedDay\", \"mouseoverDay\"] }], animations: [\r\n        trigger('expandCollapse', [\r\n            transition(':enter', [\r\n                style({ height: 0, opacity: .5 }),\r\n                animate('0.2s ease', style({ height: '*', opacity: 1 }))\r\n            ]),\r\n            transition(':leave', [\r\n                animate('0.25s ease', style({ height: 0, opacity: .2 }))\r\n            ])\r\n        ])\r\n    ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarMonthRowComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-month-row', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [\r\n                        trigger('expandCollapse', [\r\n                            transition(':enter', [\r\n                                style({ height: 0, opacity: .5 }),\r\n                                animate('0.2s ease', style({ height: '*', opacity: 1 }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                animate('0.25s ease', style({ height: 0, opacity: .2 }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<div class=\\\"calendar-row month-wrapper\\\" (click)=expandDetails()>\\r\\n    <pri-calendar-month [name]=\\\"monthRow.name\\\" [eventsCount]=\\\"monthRow.events.length\\\" [collapsed]=\\\"collapsed\\\"\\r\\n        [expand]=\\\"monthRow.expand\\\" (click)=\\\"showMoreDetails()\\\"\\r\\n        [ngClass]=\\\"{'expand': monthRow.expand && monthRow.events.length > 0 && mode === YearCalendarMode.Edit}\\\"\\r\\n        attr.data-testid=\\\"calendar-month-{{monthRow.month}}\\\"></pri-calendar-month>\\r\\n    <pri-calendar-day *ngFor=\\\"let day of monthRow.days\\\" [day]=\\\"day\\\" [mode]=\\\"mode\\\" [selectionActive]=\\\"initDay !== -1\\\" [isDisabled]=\\\"dayDisabled\\\"\\r\\n        (selectedDay)=\\\"daySelected(day)\\\" (mouseoverDay)=\\\"mouseoverDay(day)\\\"></pri-calendar-day>\\r\\n</div>\\r\\n<div class=\\\"other-events-wrapper\\\" *ngIf=\\\"!collapsed\\\" [@expandCollapse]>\\r\\n    <pri-calendar-month-events-row *ngFor=\\\"let event of monthRow.events\\\" class=\\\"calendar-row month-expand-row\\\" [event]=\\\"event\\\" [mode]=\\\"mode\\\"\\r\\n        (editEvent)=\\\"edit(event)\\\" (removeEvent)=\\\"remove(event)\\\">\\r\\n    </pri-calendar-month-events-row>\\r\\n</div>\\r\\n\", styles: [\"pri-calendar-month-row.expand{cursor:pointer}pri-calendar-month-row .other-events-wrapper{display:grid;overflow:hidden;grid-gap:1px;margin-top:1px}pri-calendar-month-row .calendar-row{display:grid;grid-template-columns:minmax(164px,328px) repeat(var(--calendar-columns),minmax(24px,48px));grid-gap:1px;height:36px}pri-calendar-month-row .calendar-row.header-wrapper{height:36px}pri-calendar-month-row .calendar-row.month-expand-row{height:28px}\\n\"] }]\r\n        }], propDecorators: { monthRow: [{\r\n                type: Input\r\n            }], mode: [{\r\n                type: Input\r\n            }], eventHours: [{\r\n                type: Input\r\n            }], workingHours: [{\r\n                type: Input\r\n            }], availableHours: [{\r\n                type: Input\r\n            }], daysSelectComplete: [{\r\n                type: Output\r\n            }], daysChange: [{\r\n                type: Output\r\n            }], editEvent: [{\r\n                type: Output\r\n            }], removeEvent: [{\r\n                type: Output\r\n            }], mouseUp: [{\r\n                type: HostListener,\r\n                args: ['mouseup']\r\n            }], mouseWindowUp: [{\r\n                type: HostListener,\r\n                args: ['window:mouseup']\r\n            }] } });\n\nclass PriCalendarWeekdayComponent {\r\n}\r\nPriCalendarWeekdayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarWeekdayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarWeekdayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarWeekdayComponent, selector: \"pri-calendar-weekday\", inputs: { weekday: \"weekday\" }, ngImport: i0, template: \"<div class=\\\"weekday-wrapper\\\" [ngClass]=\\\"{'not-workable': !weekday.workingDay}\\\">\\r\\n    <span>{{weekday.name}}</span>\\r\\n</div>\", styles: [\"pri-calendar-weekday{display:flex;width:100%;height:100%;overflow:hidden}pri-calendar-weekday .weekday-wrapper{display:flex;width:100%;height:100%;align-items:center;justify-content:flex-end;padding-right:2px;background-color:var(--grey-3);color:var(--grey-8);font-size:12px;font-weight:700;cursor:default}pri-calendar-weekday .weekday-wrapper span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}pri-calendar-weekday .weekday-wrapper.not-workable{background-color:var(--grey-4);color:var(--grey-8)}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarWeekdayComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-weekday', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"weekday-wrapper\\\" [ngClass]=\\\"{'not-workable': !weekday.workingDay}\\\">\\r\\n    <span>{{weekday.name}}</span>\\r\\n</div>\", styles: [\"pri-calendar-weekday{display:flex;width:100%;height:100%;overflow:hidden}pri-calendar-weekday .weekday-wrapper{display:flex;width:100%;height:100%;align-items:center;justify-content:flex-end;padding-right:2px;background-color:var(--grey-3);color:var(--grey-8);font-size:12px;font-weight:700;cursor:default}pri-calendar-weekday .weekday-wrapper span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}pri-calendar-weekday .weekday-wrapper.not-workable{background-color:var(--grey-4);color:var(--grey-8)}\\n\"] }]\r\n        }], propDecorators: { weekday: [{\r\n                type: Input\r\n            }] } });\n\nclass PriCalendarYearSelectorComponent {\r\n    constructor() {\r\n        this.yearChange = new EventEmitter();\r\n    }\r\n    change(value) {\r\n        const newValue = this.year + value;\r\n        if (newValue >= this.interval.min && newValue <= this.interval.max) {\r\n            this.year = newValue;\r\n            this.yearChange.emit(this.year);\r\n        }\r\n    }\r\n}\r\nPriCalendarYearSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarYearSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nPriCalendarYearSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriCalendarYearSelectorComponent, selector: \"pri-calendar-year-selector\", inputs: { year: \"year\", interval: \"interval\" }, outputs: { yearChange: \"yearChange\" }, ngImport: i0, template: \"<div *ngIf=\\\"interval\\\" class=\\\"arrow-button left-button\\\" [ngClass]=\\\"{'disabled': year <= interval.min}\\\" (click)=\\\"change(-1)\\\" data-testid=\\\"calendar-year-selector-decrease\\\">\\r\\n    <i class=\\\"ti-ux-chevron-left\\\"></i>\\r\\n</div>\\r\\n<div class=\\\"year-label\\\">{{year}}</div>\\r\\n<div *ngIf=\\\"interval\\\" class=\\\"arrow-button right-button\\\" [ngClass]=\\\"{'disabled': year >= interval.max}\\\" (click)=\\\"change(+1)\\\" data-testid=\\\"calendar-year-selector-increase\\\">\\r\\n    <i class=\\\"ti-ux-chevron-right\\\"></i>\\r\\n</div>\", styles: [\"pri-calendar-year-selector{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--grey-3);color:var(--grey-8)}pri-calendar-year-selector .arrow-button{display:flex;margin:0 12px;font-size:16px;cursor:pointer}pri-calendar-year-selector .arrow-button.disabled{opacity:0;visibility:hidden;pointer-events:none}pri-calendar-year-selector .year-label{cursor:default}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriCalendarYearSelectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-calendar-year-selector', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div *ngIf=\\\"interval\\\" class=\\\"arrow-button left-button\\\" [ngClass]=\\\"{'disabled': year <= interval.min}\\\" (click)=\\\"change(-1)\\\" data-testid=\\\"calendar-year-selector-decrease\\\">\\r\\n    <i class=\\\"ti-ux-chevron-left\\\"></i>\\r\\n</div>\\r\\n<div class=\\\"year-label\\\">{{year}}</div>\\r\\n<div *ngIf=\\\"interval\\\" class=\\\"arrow-button right-button\\\" [ngClass]=\\\"{'disabled': year >= interval.max}\\\" (click)=\\\"change(+1)\\\" data-testid=\\\"calendar-year-selector-increase\\\">\\r\\n    <i class=\\\"ti-ux-chevron-right\\\"></i>\\r\\n</div>\", styles: [\"pri-calendar-year-selector{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--grey-3);color:var(--grey-8)}pri-calendar-year-selector .arrow-button{display:flex;margin:0 12px;font-size:16px;cursor:pointer}pri-calendar-year-selector .arrow-button.disabled{opacity:0;visibility:hidden;pointer-events:none}pri-calendar-year-selector .year-label{cursor:default}\\n\"] }]\r\n        }], propDecorators: { year: [{\r\n                type: Input\r\n            }], interval: [{\r\n                type: Input\r\n            }], yearChange: [{\r\n                type: Output\r\n            }] } });\n\nvar EventWorkingDayMode;\r\n(function (EventWorkingDayMode) {\r\n    EventWorkingDayMode[EventWorkingDayMode[\"None\"] = 0] = \"None\";\r\n    EventWorkingDayMode[EventWorkingDayMode[\"Default\"] = 1] = \"Default\";\r\n    EventWorkingDayMode[EventWorkingDayMode[\"Custom\"] = 2] = \"Custom\";\r\n})(EventWorkingDayMode || (EventWorkingDayMode = {}));\n\nclass ICalendarEventDay {\r\n}\n\nclass ICalendarEvent {\r\n}\n\nclass YearCalendarConfigModel {\r\n    constructor() {\r\n        this.initialYear = new Date().getFullYear();\r\n        this.workingHours = 8;\r\n        this.firstDayOfWeek = 0;\r\n        this.monthLabelWidth = TranslationWidth.Wide;\r\n        this.showExpandEventsOption = true;\r\n        this.showEditableEventsOption = true;\r\n        this.showDeleteEventsOption = true;\r\n        this.showTimeInformationOnEvent = true;\r\n        this.eventsWorkingDayMode = EventWorkingDayMode.Default;\r\n        this.weekdayLabelWidth = TranslationWidth.Narrow;\r\n        this.showActiveEventOnExpand = false;\r\n    }\r\n}\n\nclass ColorsUtil {\r\n    static isColor(strColor) {\r\n        const s = new Option().style;\r\n        s.color = strColor;\r\n        if (s.color && s.color.length > 0) {\r\n            return s.color;\r\n        }\r\n        return undefined;\r\n    }\r\n}\n\nclass PriYearCalendarComponent {\r\n    /**\r\n     * Builds the Year Calendar Component\r\n     *\r\n     * @param appContextService Service that allows to interact with the application context.\r\n     * @param changeDetectorRef Base class for Angular Views, provides change detection functionality.\r\n     * @param I18nService Service responsible to handle language translations.\r\n     * @param messagesService Service responsible to launch different type of messages.\r\n     */\r\n    constructor(appContextService, changeDetectorRef, i18nService, messagesService) {\r\n        this.appContextService = appContextService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.i18nService = i18nService;\r\n        this.messagesService = messagesService;\r\n        this.selectedYearChange = new EventEmitter();\r\n        this.eventsChange = new EventEmitter();\r\n        this.editEvent = new EventEmitter();\r\n        this.removeEvent = new EventEmitter();\r\n        this.YearCalendarMode = YearCalendarMode;\r\n        this.weekdays = new BehaviorSubject([]);\r\n        this.monthsRows = new BehaviorSubject([]);\r\n        this.mode = YearCalendarMode.View;\r\n        this.loading = true;\r\n        this.initComplete = false;\r\n        this.availableHours = () => {\r\n            const totalHours = this.maxSelectableDays * this.calendarConfig.workingHours;\r\n            const actualSelectedHours = this.activeEvent.dates\r\n                .filter(d => d.date.getFullYear() === this.selectedYear).reduce((a, b) => a + b.hours, 0);\r\n            return totalHours - actualSelectedHours;\r\n        };\r\n    }\r\n    set editingEventId(value) {\r\n        this._editingEventId = value;\r\n        if (this.editingEventId) {\r\n            this.activeEvent = this.events.find(e => e.id === this.editingEventId);\r\n            this.mode = YearCalendarMode.Edit;\r\n        }\r\n        else {\r\n            this.activeEvent = undefined;\r\n            this.mode = YearCalendarMode.View;\r\n        }\r\n    }\r\n    get editingEventId() {\r\n        return this._editingEventId;\r\n    }\r\n    ngOnInit() {\r\n        if (!this.calendarConfig) {\r\n            this.calendarConfig = new YearCalendarConfigModel();\r\n        }\r\n        this.selectedYear = this.calendarConfig.initialYear;\r\n        if (!this.notWorkingDays) {\r\n            this.notWorkingDays = [];\r\n        }\r\n        if (!this.weekWorkingDays) {\r\n            this.weekWorkingDays = [1, 2, 3, 4, 5];\r\n        }\r\n        if (!this.eventHours) {\r\n            this.eventHours = this.calendarConfig.workingHours;\r\n        }\r\n        if (!this.events) {\r\n            this.events = [];\r\n        }\r\n        if (!this.yearsInterval) {\r\n            this.setDefaultYearInterval();\r\n        }\r\n        this.setMaxSelectableDays();\r\n        this.monthName = [];\r\n        getLocaleMonthNames(this.appContextService.user.culture, FormStyle.Standalone, this.calendarConfig.monthLabelWidth).forEach(o => this.monthName.push(o));\r\n        this.dayName = [];\r\n        getLocaleDayNames(this.appContextService.user.culture, FormStyle.Standalone, this.calendarConfig.weekdayLabelWidth).forEach(o => this.dayName.push(o));\r\n        this.generateCalendar();\r\n        this.initComplete = true;\r\n        this.setLoading(false);\r\n    }\r\n    ngOnChanges(changes) {\r\n        if (this.initComplete) {\r\n            this.setLoading(true);\r\n            if (changes['allowOnNotWorkingDays'] || changes['notWorkingDays'] || changes['weekWorkingDays']) {\r\n                this.generateCalendar();\r\n            }\r\n            else if (changes['events'] || changes['editingEventId']) {\r\n                this.drawEvents();\r\n            }\r\n            if (changes['yearsInterval']) {\r\n                if (!this.yearsInterval) {\r\n                    this.setDefaultYearInterval();\r\n                }\r\n                else if (this.selectedYear < this.yearsInterval.min || this.selectedYear > this.yearsInterval.max) {\r\n                    this.selectedYear = this.yearsInterval.min;\r\n                }\r\n            }\r\n            if (changes['maxSelectableDays']) {\r\n                this.setMaxSelectableDays();\r\n            }\r\n            this.setLoading(false);\r\n        }\r\n    }\r\n    /**\r\n     * Calls when the year is changed\r\n     *\r\n     * @param year the year selected\r\n     */\r\n    yearChanged(year) {\r\n        this.selectedYear = year;\r\n        this.generateCalendar();\r\n        if (this.selectedYearChange) {\r\n            this.selectedYearChange.emit(this.selectedYear);\r\n        }\r\n        this.setLoading(false);\r\n    }\r\n    /**\r\n     * Fires when the day is selected\r\n     *\r\n     * @param eventDays the object with remove and add events\r\n     * @param month the selected month\r\n     */\r\n    daysChanged(eventDays, month) {\r\n        if (this.activeEvent) {\r\n            eventDays.forEach(d => {\r\n                const eventIndex = this.activeEvent.dates.findIndex(e => e.date.getFullYear() === this.selectedYear\r\n                    && e.date.getMonth() === month && e.date.getDate() === d.day);\r\n                if (eventIndex > -1) {\r\n                    const eventDay = this.activeEvent.dates[eventIndex];\r\n                    if (d.percentageEvent === 0) {\r\n                        this.activeEvent.dates.splice(eventIndex, 1);\r\n                    }\r\n                    else {\r\n                        eventDay.hours = (d.percentageEvent * this.calendarConfig.workingHours) / 100;\r\n                    }\r\n                }\r\n                else {\r\n                    if (d.percentageEvent > 0) {\r\n                        const eventDay = {\r\n                            date: new Date(this.selectedYear, month, d.day),\r\n                            hours: (d.percentageEvent * this.calendarConfig.workingHours) / 100\r\n                        };\r\n                        this.activeEvent.dates.push(eventDay);\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Fires when the selection is complete\r\n     */\r\n    daysSelectComplete() {\r\n        this.eventsChange.emit();\r\n    }\r\n    /**\r\n     * Edit Event\r\n     */\r\n    eventEdit(event) {\r\n        this.editingEventId = event.id;\r\n        this.drawEvents();\r\n        this.editEvent.emit(event.id);\r\n    }\r\n    /**\r\n     * Remove event\r\n     */\r\n    eventRemove(event) {\r\n        this.messagesService.showModal({\r\n            title: this.i18nService.get('components.components.RES_Events_Actions_Remove_DialogTitle'),\r\n            detail: this.calendarConfig.deleteEventsMessage ? this.calendarConfig.deleteEventsMessage : this.i18nService.get('components.components.RES_Events_Actions_Remove_DialogDetail'),\r\n            callbacks: {\r\n                yes: () => {\r\n                    const eventIndex = this.events.findIndex(e => e.id === event.id);\r\n                    this.events.splice(eventIndex, 1);\r\n                    this.drawEvents();\r\n                    this.removeEvent.emit(event.id);\r\n                },\r\n                no: () => { }\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Generate the calendar\r\n     */\r\n    generateCalendar() {\r\n        this.setLoading(true);\r\n        const numberOfColumns = this.numberOfColumns;\r\n        document.documentElement.style.setProperty('--calendar-columns', numberOfColumns.toString());\r\n        this.drawWeekdays(numberOfColumns);\r\n        this.drawDaysOfMonths(numberOfColumns);\r\n        this.drawNotWorkingDays();\r\n        this.drawEvents();\r\n    }\r\n    /**\r\n     * Draw the days for each month\r\n     *\r\n     * @param numberOfColumns number of columns by year\r\n     */\r\n    drawDaysOfMonths(numberOfColumns) {\r\n        const rows = [];\r\n        const todayYear = new Date().getFullYear();\r\n        const todayMonth = new Date().getMonth();\r\n        const todayDay = new Date().getDate();\r\n        this.monthName.forEach((value, index) => {\r\n            const days = [];\r\n            const daysInMonth = new Date(this.selectedYear, index + 1, 0).getDate();\r\n            let initWeekDay = new Date(this.selectedYear, index, 1).getDay();\r\n            if (this.calendarConfig.firstDayOfWeek > initWeekDay) {\r\n                initWeekDay += 7;\r\n            }\r\n            for (let i = this.calendarConfig.firstDayOfWeek; i < numberOfColumns + this.calendarConfig.firstDayOfWeek; i++) {\r\n                let day;\r\n                if (i < initWeekDay || i >= daysInMonth + initWeekDay) {\r\n                    day = -1;\r\n                }\r\n                else {\r\n                    day = i - initWeekDay + 1;\r\n                }\r\n                const workingDay = this.weekWorkingDays?.indexOf(new Date(this.selectedYear, index, day)\r\n                    .getDay()) > -1 && day > -1;\r\n                days.push({\r\n                    day,\r\n                    workingDay,\r\n                    isToday: todayYear === this.selectedYear && todayMonth === index && todayDay === day,\r\n                    allowEvent: !workingDay && !this.allowOnNotWorkingDays ? false : true,\r\n                    locked: false,\r\n                    otherEvents: [],\r\n                    percentageEvent: 0\r\n                });\r\n            }\r\n            rows.push({\r\n                month: index,\r\n                name: value,\r\n                days,\r\n                events: []\r\n            });\r\n        });\r\n        this.monthsRows.next(rows);\r\n    }\r\n    /**\r\n     * Draw the weekdays the all columns\r\n     *\r\n     * @param numberOfColumns number of columns by year\r\n     */\r\n    drawWeekdays(numberOfColumns) {\r\n        const weekdays = [];\r\n        for (let i = this.calendarConfig.firstDayOfWeek; i < numberOfColumns + this.calendarConfig.firstDayOfWeek; i++) {\r\n            const day = i % 7;\r\n            weekdays.push({\r\n                day,\r\n                name: this.dayName[day],\r\n                workingDay: this.weekWorkingDays?.indexOf(day) > -1\r\n            });\r\n        }\r\n        this.weekdays.next(weekdays);\r\n    }\r\n    /**\r\n     * Draw the not working days\r\n     */\r\n    drawNotWorkingDays() {\r\n        const notWorkingDaysOfYear = this.notWorkingDaysByYear;\r\n        const rows = [...this.monthsRows.value];\r\n        this.monthsRows = new BehaviorSubject([]);\r\n        this.changeDetectorRef.detectChanges();\r\n        rows.forEach(month => {\r\n            month.days.forEach(day => {\r\n                const notWorkingDay = notWorkingDaysOfYear\r\n                    .find(d => d.date.getMonth() === month.month && d.date.getDate() === day.day);\r\n                if (notWorkingDay) {\r\n                    day.description = notWorkingDay.description;\r\n                    day.workingDay = false;\r\n                    day.allowEvent = this.allowOnNotWorkingDays;\r\n                }\r\n            });\r\n        });\r\n        this.monthsRows.next(rows);\r\n    }\r\n    /**\r\n     * Draw the day events\r\n     */\r\n    drawEvents() {\r\n        const eventsByYear = this.getEventsByDate(this.events, this.selectedYear, 'getFullYear');\r\n        const rows = [...this.monthsRows.value];\r\n        this.monthsRows = new BehaviorSubject([]);\r\n        this.changeDetectorRef.detectChanges();\r\n        rows.forEach(month => {\r\n            const monthEvents = this.getEventsByDate(eventsByYear, month.month, 'getMonth');\r\n            month.expand = this.calendarConfig.showExpandEventsOption && monthEvents.length > 0;\r\n            month.events = [];\r\n            month.days.forEach(day => {\r\n                day.otherEvents = [];\r\n                day.percentageEvent = 0;\r\n                day.locked = false;\r\n                monthEvents.forEach(monthEvent => {\r\n                    const eventDay = monthEvent.dates.find(d => d.date.getDate() === day.day);\r\n                    // Add events to calendar days\r\n                    if (eventDay) {\r\n                        // Add active event\r\n                        if (this.editingEventId && monthEvent.id === this.editingEventId) {\r\n                            day.percentageEvent = eventDay ? (eventDay.hours / this.calendarConfig.workingHours) * 100 : 0;\r\n                            day.locked = eventDay.locked;\r\n                        }\r\n                        else { // Add others events\r\n                            const eventType = day.otherEvents.find(e => e.type === monthEvent.type);\r\n                            if (!eventType) {\r\n                                day.otherEvents.push({\r\n                                    type: monthEvent.type,\r\n                                    color: ColorsUtil.isColor(monthEvent.color)\r\n                                });\r\n                            }\r\n                        }\r\n                    }\r\n                    if (!(this.editingEventId && monthEvent.id === this.editingEventId && !this.calendarConfig.showActiveEventOnExpand)) {\r\n                        let rowEvent = month.events.find(e => e.id === monthEvent.id);\r\n                        if (!rowEvent) {\r\n                            rowEvent = {\r\n                                id: monthEvent.id,\r\n                                title: monthEvent.title,\r\n                                description: monthEvent.description,\r\n                                color: monthEvent.color,\r\n                                imageUrl: monthEvent.imageUrl,\r\n                                isEditable: this.calendarConfig.showEditableEventsOption === false ||\r\n                                    monthEvent.isEditable === false ? false : true,\r\n                                isRemovable: this.calendarConfig.showDeleteEventsOption === false ||\r\n                                    monthEvent.isRemovable === false ? false : true,\r\n                                days: []\r\n                            };\r\n                            month.events.push(rowEvent);\r\n                        }\r\n                        rowEvent.days.push({\r\n                            day: day.day,\r\n                            workingDay: this.getEventsWorkingDay(day, month.month, monthEvent),\r\n                            percentageEvent: eventDay ? (eventDay.hours / this.calendarConfig.workingHours) * 100 : 0,\r\n                            eventTime: eventDay &&\r\n                                this.calendarConfig.showTimeInformationOnEvent ? this.formatTime(eventDay.hours) : undefined\r\n                        });\r\n                    }\r\n                });\r\n            });\r\n        });\r\n        this.monthsRows.next(rows);\r\n    }\r\n    /**\r\n     * Get the number of maximum of columns by year\r\n     */\r\n    get numberOfColumns() {\r\n        let numberOfColumns = 0;\r\n        for (let i = 0; i < 12; i++) {\r\n            const daysInMonth = new Date(this.selectedYear, i + 1, 0).getDate();\r\n            const initWeekDay = new Date(this.selectedYear, i, 8 - this.calendarConfig.firstDayOfWeek).getDay();\r\n            const totalDays = initWeekDay + daysInMonth;\r\n            numberOfColumns = Math.max(numberOfColumns, totalDays);\r\n        }\r\n        return numberOfColumns;\r\n    }\r\n    /**\r\n     * Get events by date\r\n     *\r\n     * @param events the array of events\r\n     * @param target the target to compare\r\n     * @param method the method to filter\r\n     * @returns the filter elements\r\n     */\r\n    getEventsByDate(events, target, method) {\r\n        const result = [];\r\n        events.forEach(event => {\r\n            const days = event.dates.filter(d => d.date[method]() === target);\r\n            if (days.length > 0) {\r\n                const calendarEvent = { ...event };\r\n                calendarEvent.dates = days;\r\n                result.push(calendarEvent);\r\n            }\r\n        });\r\n        return result;\r\n    }\r\n    /**\r\n     * Get the not working days by year\r\n     */\r\n    get notWorkingDaysByYear() {\r\n        return this.notWorkingDays?.filter((element) => element.date.getFullYear() === this.selectedYear) || [];\r\n    }\r\n    /**\r\n     * Set the loading state\r\n     */\r\n    setLoading(value) {\r\n        this.loading = value;\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    /**\r\n     * Set default year interval\r\n     */\r\n    setDefaultYearInterval() {\r\n        this.yearsInterval = { min: this.selectedYear - 2, max: this.selectedYear + 2 };\r\n    }\r\n    /**\r\n     * Covert number to hours\r\n     *\r\n     * @param hours the event hours\r\n     * @returns the time formatted\r\n     */\r\n    formatTime(time) {\r\n        const minutes = Math.round((time % 1) * 60);\r\n        const formattedTime = `${Math.trunc(time)}:${minutes.toLocaleString(undefined, { minimumIntegerDigits: 2 })}`;\r\n        return this.i18nService.get('components.components.RES_Events_Information_ScheduledHours_Label').replace('{0}', formattedTime);\r\n    }\r\n    /**\r\n     * Set infinite days when the maxSelectableDays is undefined\r\n     */\r\n    setMaxSelectableDays() {\r\n        if (this.maxSelectableDays === undefined) {\r\n            this.maxSelectableDays = 0;\r\n            for (let year = this.yearsInterval.min; year <= this.yearsInterval.max; year++) {\r\n                this.maxSelectableDays += new Date(year, 1, 29).getDate() === 29 ? 366 : 365;\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Get not working days to events\r\n     *\r\n     * @param day the event day\r\n     * @param month the event month\r\n     * @param monthEvent the event\r\n     * @returns 'true' is working day\r\n     */\r\n    getEventsWorkingDay(day, month, monthEvent) {\r\n        switch (this.calendarConfig.eventsWorkingDayMode) {\r\n            case EventWorkingDayMode.None:\r\n                return true;\r\n            case EventWorkingDayMode.Default:\r\n            default:\r\n                return day.workingDay;\r\n            case EventWorkingDayMode.Custom:\r\n                if (day.day === -1) {\r\n                    return false;\r\n                }\r\n                if (monthEvent.weekWorkingDays || monthEvent.notWorkingDays) {\r\n                    const weekWorkingDay = monthEvent.weekWorkingDays?.indexOf(new Date(this.selectedYear, month, day.day)\r\n                        .getDay()) > -1;\r\n                    const notWorkingDay = monthEvent.notWorkingDays?.find(d => d.date.getFullYear() === this.selectedYear\r\n                        && d.date.getMonth() === month && d.date.getDate() === day.day) ? true : false;\r\n                    if (!weekWorkingDay || notWorkingDay) {\r\n                        return false;\r\n                    }\r\n                }\r\n                return true;\r\n        }\r\n    }\r\n}\r\nPriYearCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriYearCalendarComponent, deps: [{ token: i1$2.AppContextService }, { token: i0.ChangeDetectorRef }, { token: i2$3.I18nService }, { token: MessagesService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriYearCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriYearCalendarComponent, selector: \"pri-year-calendar\", inputs: { calendarConfig: \"calendarConfig\", notWorkingDays: \"notWorkingDays\", weekWorkingDays: \"weekWorkingDays\", events: \"events\", yearsInterval: \"yearsInterval\", maxSelectableDays: \"maxSelectableDays\", eventHours: \"eventHours\", allowOnNotWorkingDays: \"allowOnNotWorkingDays\", disabled: \"disabled\", editingEventId: \"editingEventId\" }, outputs: { selectedYearChange: \"selectedYearChange\", eventsChange: \"eventsChange\", editEvent: \"editEvent\", removeEvent: \"removeEvent\" }, usesOnChanges: true, ngImport: i0, template: \"<div *ngIf=\\\"initComplete\\\" class=\\\"calendar-wrapper\\\" [ngClass]=\\\"{'loading':loading}\\\" data-testid=\\\"pri-calendar\\\"\\r\\n    [attr.disabled]=\\\"disabled\\\">\\r\\n    <div class=\\\"calendar-row header-wrapper\\\">\\r\\n        <pri-calendar-year-selector [year]=\\\"selectedYear\\\" [interval]=\\\"yearsInterval\\\" (yearChange)=\\\"yearChanged($event)\\\"\\r\\n            data-testid=\\\"calendar-year-selector\\\"></pri-calendar-year-selector>\\r\\n        <pri-calendar-weekday *ngFor=\\\"let weekday of weekdays | async\\\" [weekday]=\\\"weekday\\\"></pri-calendar-weekday>\\r\\n    </div>\\r\\n    <pri-calendar-month-row *ngFor=\\\"let row of monthsRows | async\\\" [ngClass]=\\\"{'expand': row.expand && mode === YearCalendarMode.View}\\\" \\r\\n        [monthRow]=\\\"row\\\" [mode]=\\\"mode\\\" [eventHours]=\\\"eventHours\\\" [workingHours]=\\\"calendarConfig.workingHours\\\" [availableHours]=\\\"availableHours\\\"\\r\\n        (daysChange)=\\\"daysChanged($event, row.month)\\\" (daysSelectComplete)=\\\"daysSelectComplete()\\\" (editEvent)=\\\"eventEdit($event)\\\" (removeEvent)=\\\"eventRemove($event)\\\"\\r\\n        attr.data-testid=\\\"calendar-month-row-{{row.month}}\\\"></pri-calendar-month-row>\\r\\n</div>\", styles: [\"pri-year-calendar{display:flex;width:100%;overflow-x:auto}pri-year-calendar .calendar-wrapper{display:grid;grid-gap:1px}pri-year-calendar .calendar-wrapper[disabled]{opacity:.5;pointer-events:none}pri-year-calendar .calendar-wrapper.loading{pointer-events:none;opacity:.2}pri-year-calendar .calendar-wrapper .calendar-row{display:grid;grid-template-columns:minmax(164px,328px) repeat(var(--calendar-columns),minmax(24px,48px));grid-gap:1px;height:36px}pri-year-calendar .calendar-wrapper .calendar-row.header-wrapper{height:36px}pri-year-calendar .calendar-wrapper .calendar-row.month-expand-row{height:28px}\\n\"], dependencies: [{ kind: \"directive\", type: i1$1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: PriCalendarMonthRowComponent, selector: \"pri-calendar-month-row\", inputs: [\"monthRow\", \"mode\", \"eventHours\", \"workingHours\", \"availableHours\"], outputs: [\"daysSelectComplete\", \"daysChange\", \"editEvent\", \"removeEvent\"] }, { kind: \"component\", type: PriCalendarYearSelectorComponent, selector: \"pri-calendar-year-selector\", inputs: [\"year\", \"interval\"], outputs: [\"yearChange\"] }, { kind: \"component\", type: PriCalendarWeekdayComponent, selector: \"pri-calendar-weekday\", inputs: [\"weekday\"] }, { kind: \"pipe\", type: i1$1.AsyncPipe, name: \"async\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriYearCalendarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-year-calendar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div *ngIf=\\\"initComplete\\\" class=\\\"calendar-wrapper\\\" [ngClass]=\\\"{'loading':loading}\\\" data-testid=\\\"pri-calendar\\\"\\r\\n    [attr.disabled]=\\\"disabled\\\">\\r\\n    <div class=\\\"calendar-row header-wrapper\\\">\\r\\n        <pri-calendar-year-selector [year]=\\\"selectedYear\\\" [interval]=\\\"yearsInterval\\\" (yearChange)=\\\"yearChanged($event)\\\"\\r\\n            data-testid=\\\"calendar-year-selector\\\"></pri-calendar-year-selector>\\r\\n        <pri-calendar-weekday *ngFor=\\\"let weekday of weekdays | async\\\" [weekday]=\\\"weekday\\\"></pri-calendar-weekday>\\r\\n    </div>\\r\\n    <pri-calendar-month-row *ngFor=\\\"let row of monthsRows | async\\\" [ngClass]=\\\"{'expand': row.expand && mode === YearCalendarMode.View}\\\" \\r\\n        [monthRow]=\\\"row\\\" [mode]=\\\"mode\\\" [eventHours]=\\\"eventHours\\\" [workingHours]=\\\"calendarConfig.workingHours\\\" [availableHours]=\\\"availableHours\\\"\\r\\n        (daysChange)=\\\"daysChanged($event, row.month)\\\" (daysSelectComplete)=\\\"daysSelectComplete()\\\" (editEvent)=\\\"eventEdit($event)\\\" (removeEvent)=\\\"eventRemove($event)\\\"\\r\\n        attr.data-testid=\\\"calendar-month-row-{{row.month}}\\\"></pri-calendar-month-row>\\r\\n</div>\", styles: [\"pri-year-calendar{display:flex;width:100%;overflow-x:auto}pri-year-calendar .calendar-wrapper{display:grid;grid-gap:1px}pri-year-calendar .calendar-wrapper[disabled]{opacity:.5;pointer-events:none}pri-year-calendar .calendar-wrapper.loading{pointer-events:none;opacity:.2}pri-year-calendar .calendar-wrapper .calendar-row{display:grid;grid-template-columns:minmax(164px,328px) repeat(var(--calendar-columns),minmax(24px,48px));grid-gap:1px;height:36px}pri-year-calendar .calendar-wrapper .calendar-row.header-wrapper{height:36px}pri-year-calendar .calendar-wrapper .calendar-row.month-expand-row{height:28px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.AppContextService }, { type: i0.ChangeDetectorRef }, { type: i2$3.I18nService }, { type: MessagesService }]; }, propDecorators: { selectedYearChange: [{\r\n                type: Output\r\n            }], eventsChange: [{\r\n                type: Output\r\n            }], editEvent: [{\r\n                type: Output\r\n            }], removeEvent: [{\r\n                type: Output\r\n            }], calendarConfig: [{\r\n                type: Input\r\n            }], notWorkingDays: [{\r\n                type: Input\r\n            }], weekWorkingDays: [{\r\n                type: Input\r\n            }], events: [{\r\n                type: Input\r\n            }], yearsInterval: [{\r\n                type: Input\r\n            }], maxSelectableDays: [{\r\n                type: Input\r\n            }], eventHours: [{\r\n                type: Input\r\n            }], allowOnNotWorkingDays: [{\r\n                type: Input\r\n            }], disabled: [{\r\n                type: Input\r\n            }], editingEventId: [{\r\n                type: Input\r\n            }] } });\n\nclass ArraysUtil {\r\n    static cloneArrays(sourceArray) {\r\n        const targetArray = [];\r\n        [...sourceArray].forEach(array => targetArray.push({ ...array }));\r\n        return targetArray;\r\n    }\r\n}\n\nconst bsDropdownModule = BsDropdownModule.forRoot();\r\nconst popoverModule = PopoverModule.forRoot();\r\nconst toastrModule = ToastrModule.forRoot();\r\nclass ComponentsModule {\r\n    constructor(externalScriptsService, usersInvitationEvents) {\r\n        this.externalScriptsService = externalScriptsService;\r\n        this.usersInvitationEvents = usersInvitationEvents;\r\n        this.externalScriptsService.registerScripts(EXTERNAL_SCRIPTS);\r\n    }\r\n    static forRoot() {\r\n        return {\r\n            ngModule: ComponentsModule,\r\n            providers: [\r\n                CommandHandlerService,\r\n                DraftModelService,\r\n                ModalService,\r\n                FullScreenModalService,\r\n                PopoverService,\r\n                RoleInterceptorService,\r\n                ViewDefinitionsService,\r\n                FormNavigationService\r\n            ]\r\n        };\r\n    }\r\n}\r\nComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ComponentsModule, deps: [{ token: i1$2.ExternalScriptsService }, { token: UsersInvitationEvents }], target: i0.ɵɵFactoryTarget.NgModule });\r\nComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ComponentsModule, declarations: [HtmlEditorFieldComponent,\r\n        BulkActionsBannerComponent,\r\n        CircleCountComponent,\r\n        PriSliderComponent,\r\n        PriSliderToggleComponent,\r\n        PriTextAlignComponent,\r\n        PriTextStyleComponent,\r\n        PriColorPickerComponent,\r\n        PriTypeAheadComponent,\r\n        PriTypeAheadDirective,\r\n        PriWebserviceTypeaheadComponent,\r\n        PriDownloadProgressBarComponent,\r\n        ConnectionModalContentComponent,\r\n        FullScreenModalComponent,\r\n        ModalContentComponent,\r\n        MatSelectComponent,\r\n        MatSelectSearchComponent,\r\n        StepperComponent,\r\n        PopoverComponent,\r\n        FormButtonComponent,\r\n        LoaderComponent,\r\n        TaskCardComponent,\r\n        ProgressBarComponent,\r\n        TagSelectorFilterComponent,\r\n        TagSelectorFilterSearchItemComponent,\r\n        TagSelectorFilterItemComponent,\r\n        TagSelectorFilterPopoverListComponent,\r\n        ImageComponent,\r\n        TextInitialsComponent,\r\n        PriErrorComponent,\r\n        ImageSourcePipe,\r\n        SubscriptionPipe,\r\n        DateFieldViewPipe,\r\n        DropDownMenuComponent,\r\n        DropDownEditionHistoryDirective,\r\n        DropDownEditionHistoryComponent,\r\n        RecordSelectorComponent,\r\n        PriYearCalendarComponent,\r\n        PriCalendarMonthRowComponent,\r\n        PriCalendarMonthComponent,\r\n        PriCalendarMonthEventsRowComponent,\r\n        PriCalendarMonthEventsRowDayComponent,\r\n        PriCalendarMonthEventsRowMonthComponent,\r\n        PriCalendarDayComponent,\r\n        PriCalendarYearSelectorComponent,\r\n        PriCalendarWeekdayComponent,\r\n        MaskedInputComponent,\r\n        PriImportFileComponent,\r\n        DragDropDirective,\r\n        SuccessSvgComponent,\r\n        EmptyStateChecklistSvgComponent,\r\n        EmptyStateChartsSvgComponent,\r\n        EmptyStateTableSvgComponent,\r\n        EmptyStateBulletListSvgComponent,\r\n        ErrorSvgComponent,\r\n        ErrorPageSvgComponent,\r\n        InnerHTMLDirective,\r\n        AutofocusDirective,\r\n        DatatabstopDirective,\r\n        TabsComponent,\r\n        TableOptionsColumnsComponent,\r\n        TableOptionsColumnsFieldComponent], imports: [CommonModule,\r\n        ReactiveFormsModule,\r\n        FormsModule,\r\n        MatSliderModule,\r\n        MatTabsModule,\r\n        MatTooltipModule,\r\n        MatSlideToggleModule,\r\n        MatCheckboxModule,\r\n        MatSelectModule,\r\n        ColorChromeModule,\r\n        PrimaveraI18nModule,\r\n        PrimaveraServicesModule, i3$1.BsDropdownModule, i2$6.PopoverModule, i1$6.ToastrModule, CdkTreeModule,\r\n        DragDropModule,\r\n        InjectorComponentsModule,\r\n        RightPanelModule,\r\n        LoadingSpinnerComponent,\r\n        SelectBoxComponent,\r\n        TagBadgeComponent,\r\n        PriPopoverDirective,\r\n        HighlightPipe,\r\n        InputComponent,\r\n        ButtonComponent,\r\n        TranslationComponent,\r\n        TreeComponent,\r\n        CheckboxComponent,\r\n        FormFooterActionsComponent,\r\n        TooltipHoverDirective,\r\n        FormFieldComponent,\r\n        FormControlErrorComponent,\r\n        RadioButtonGroupComponent,\r\n        DropDownMenuDirective,\r\n        TemplateTypeDirective], exports: [BulkActionsBannerComponent,\r\n        CircleCountComponent,\r\n        HtmlEditorFieldComponent,\r\n        DropDownMenuDirective,\r\n        PriSliderComponent,\r\n        PriSliderToggleComponent,\r\n        PriTextAlignComponent,\r\n        PriTextStyleComponent,\r\n        PriTypeAheadComponent,\r\n        PriColorPickerComponent,\r\n        PriTypeAheadDirective,\r\n        PriWebserviceTypeaheadComponent,\r\n        PriDownloadProgressBarComponent,\r\n        ConnectionModalContentComponent,\r\n        FullScreenModalComponent,\r\n        ModalContentComponent,\r\n        MatSelectComponent,\r\n        MatSelectSearchComponent,\r\n        StepperComponent,\r\n        FormButtonComponent,\r\n        LoaderComponent,\r\n        TaskCardComponent,\r\n        ProgressBarComponent,\r\n        TagSelectorFilterComponent,\r\n        TagSelectorFilterSearchItemComponent,\r\n        TagSelectorFilterItemComponent,\r\n        ImageComponent,\r\n        TextInitialsComponent,\r\n        PriErrorComponent,\r\n        PriYearCalendarComponent,\r\n        PriCalendarMonthRowComponent,\r\n        PriCalendarDayComponent,\r\n        PriCalendarMonthComponent,\r\n        PriCalendarMonthEventsRowComponent,\r\n        PriCalendarMonthEventsRowDayComponent,\r\n        PriCalendarMonthEventsRowMonthComponent,\r\n        PriCalendarYearSelectorComponent,\r\n        PriCalendarWeekdayComponent,\r\n        ImageSourcePipe,\r\n        SubscriptionPipe,\r\n        MaskedInputComponent,\r\n        PriImportFileComponent,\r\n        DateFieldViewPipe,\r\n        PopoverComponent,\r\n        DropDownEditionHistoryDirective,\r\n        RecordSelectorComponent,\r\n        LoadingSpinnerComponent,\r\n        SuccessSvgComponent,\r\n        EmptyStateChecklistSvgComponent,\r\n        EmptyStateChartsSvgComponent,\r\n        EmptyStateTableSvgComponent,\r\n        EmptyStateBulletListSvgComponent,\r\n        ErrorSvgComponent,\r\n        ErrorPageSvgComponent,\r\n        TooltipHoverDirective,\r\n        InnerHTMLDirective,\r\n        AutofocusDirective,\r\n        DatatabstopDirective,\r\n        TabsComponent,\r\n        TableOptionsColumnsComponent,\r\n        TableOptionsColumnsFieldComponent,\r\n        InputComponent,\r\n        ButtonComponent,\r\n        TranslationComponent,\r\n        TreeComponent,\r\n        CheckboxComponent,\r\n        FormFooterActionsComponent,\r\n        RadioButtonGroupComponent,\r\n        TemplateTypeDirective] });\r\nComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ComponentsModule, providers: [\r\n        CommandHandlerService,\r\n        DraftModelService,\r\n        ModalService,\r\n        FullScreenModalService,\r\n        PopoverService,\r\n        RoleInterceptorService,\r\n        ViewDefinitionsService,\r\n        DownloadService,\r\n        BsModalService\r\n    ], imports: [CommonModule,\r\n        ReactiveFormsModule,\r\n        FormsModule,\r\n        MatSliderModule,\r\n        MatTabsModule,\r\n        MatTooltipModule,\r\n        MatSlideToggleModule,\r\n        MatCheckboxModule,\r\n        MatSelectModule,\r\n        ColorChromeModule,\r\n        PrimaveraI18nModule,\r\n        PrimaveraServicesModule,\r\n        bsDropdownModule,\r\n        popoverModule,\r\n        toastrModule,\r\n        CdkTreeModule,\r\n        DragDropModule,\r\n        InjectorComponentsModule,\r\n        RightPanelModule,\r\n        LoadingSpinnerComponent,\r\n        SelectBoxComponent,\r\n        TagBadgeComponent,\r\n        InputComponent,\r\n        ButtonComponent,\r\n        TranslationComponent,\r\n        TreeComponent,\r\n        CheckboxComponent,\r\n        FormFooterActionsComponent,\r\n        FormFieldComponent,\r\n        FormControlErrorComponent,\r\n        RadioButtonGroupComponent] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ComponentsModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [\r\n                        CommonModule,\r\n                        ReactiveFormsModule,\r\n                        FormsModule,\r\n                        MatSliderModule,\r\n                        MatTabsModule,\r\n                        MatTooltipModule,\r\n                        MatSlideToggleModule,\r\n                        MatCheckboxModule,\r\n                        MatSelectModule,\r\n                        ColorChromeModule,\r\n                        PrimaveraI18nModule,\r\n                        PrimaveraServicesModule,\r\n                        bsDropdownModule,\r\n                        popoverModule,\r\n                        toastrModule,\r\n                        CdkTreeModule,\r\n                        DragDropModule,\r\n                        InjectorComponentsModule,\r\n                        RightPanelModule,\r\n                        LoadingSpinnerComponent,\r\n                        SelectBoxComponent,\r\n                        TagBadgeComponent,\r\n                        PriPopoverDirective,\r\n                        HighlightPipe,\r\n                        InputComponent,\r\n                        ButtonComponent,\r\n                        TranslationComponent,\r\n                        TreeComponent,\r\n                        CheckboxComponent,\r\n                        FormFooterActionsComponent,\r\n                        TooltipHoverDirective,\r\n                        FormFieldComponent,\r\n                        FormControlErrorComponent,\r\n                        RadioButtonGroupComponent,\r\n                        DropDownMenuDirective,\r\n                        TemplateTypeDirective\r\n                    ],\r\n                    declarations: [\r\n                        HtmlEditorFieldComponent,\r\n                        BulkActionsBannerComponent,\r\n                        CircleCountComponent,\r\n                        PriSliderComponent,\r\n                        PriSliderToggleComponent,\r\n                        PriTextAlignComponent,\r\n                        PriTextStyleComponent,\r\n                        PriColorPickerComponent,\r\n                        PriTypeAheadComponent,\r\n                        PriTypeAheadDirective,\r\n                        PriWebserviceTypeaheadComponent,\r\n                        PriDownloadProgressBarComponent,\r\n                        ConnectionModalContentComponent,\r\n                        FullScreenModalComponent,\r\n                        ModalContentComponent,\r\n                        MatSelectComponent,\r\n                        MatSelectSearchComponent,\r\n                        StepperComponent,\r\n                        PopoverComponent,\r\n                        FormButtonComponent,\r\n                        LoaderComponent,\r\n                        TaskCardComponent,\r\n                        ProgressBarComponent,\r\n                        TagSelectorFilterComponent,\r\n                        TagSelectorFilterSearchItemComponent,\r\n                        TagSelectorFilterItemComponent,\r\n                        TagSelectorFilterPopoverListComponent,\r\n                        ImageComponent,\r\n                        TextInitialsComponent,\r\n                        PriErrorComponent,\r\n                        ImageSourcePipe,\r\n                        SubscriptionPipe,\r\n                        DateFieldViewPipe,\r\n                        DropDownMenuComponent,\r\n                        DropDownEditionHistoryDirective,\r\n                        DropDownEditionHistoryComponent,\r\n                        RecordSelectorComponent,\r\n                        PriYearCalendarComponent,\r\n                        PriCalendarMonthRowComponent,\r\n                        PriCalendarMonthComponent,\r\n                        PriCalendarMonthEventsRowComponent,\r\n                        PriCalendarMonthEventsRowDayComponent,\r\n                        PriCalendarMonthEventsRowMonthComponent,\r\n                        PriCalendarDayComponent,\r\n                        PriCalendarYearSelectorComponent,\r\n                        PriCalendarWeekdayComponent,\r\n                        MaskedInputComponent,\r\n                        PriImportFileComponent,\r\n                        DragDropDirective,\r\n                        SuccessSvgComponent,\r\n                        EmptyStateChecklistSvgComponent,\r\n                        EmptyStateChartsSvgComponent,\r\n                        EmptyStateTableSvgComponent,\r\n                        EmptyStateBulletListSvgComponent,\r\n                        ErrorSvgComponent,\r\n                        ErrorPageSvgComponent,\r\n                        InnerHTMLDirective,\r\n                        AutofocusDirective,\r\n                        DatatabstopDirective,\r\n                        TabsComponent,\r\n                        TableOptionsColumnsComponent,\r\n                        TableOptionsColumnsFieldComponent\r\n                    ],\r\n                    providers: [\r\n                        CommandHandlerService,\r\n                        DraftModelService,\r\n                        ModalService,\r\n                        FullScreenModalService,\r\n                        PopoverService,\r\n                        RoleInterceptorService,\r\n                        ViewDefinitionsService,\r\n                        DownloadService,\r\n                        BsModalService\r\n                    ],\r\n                    exports: [\r\n                        BulkActionsBannerComponent,\r\n                        CircleCountComponent,\r\n                        HtmlEditorFieldComponent,\r\n                        DropDownMenuDirective,\r\n                        PriSliderComponent,\r\n                        PriSliderToggleComponent,\r\n                        PriTextAlignComponent,\r\n                        PriTextStyleComponent,\r\n                        PriTypeAheadComponent,\r\n                        PriColorPickerComponent,\r\n                        PriTypeAheadDirective,\r\n                        PriWebserviceTypeaheadComponent,\r\n                        PriDownloadProgressBarComponent,\r\n                        ConnectionModalContentComponent,\r\n                        FullScreenModalComponent,\r\n                        ModalContentComponent,\r\n                        MatSelectComponent,\r\n                        MatSelectSearchComponent,\r\n                        StepperComponent,\r\n                        FormButtonComponent,\r\n                        LoaderComponent,\r\n                        TaskCardComponent,\r\n                        ProgressBarComponent,\r\n                        TagSelectorFilterComponent,\r\n                        TagSelectorFilterSearchItemComponent,\r\n                        TagSelectorFilterItemComponent,\r\n                        ImageComponent,\r\n                        TextInitialsComponent,\r\n                        PriErrorComponent,\r\n                        PriYearCalendarComponent,\r\n                        PriCalendarMonthRowComponent,\r\n                        PriCalendarDayComponent,\r\n                        PriCalendarMonthComponent,\r\n                        PriCalendarMonthEventsRowComponent,\r\n                        PriCalendarMonthEventsRowDayComponent,\r\n                        PriCalendarMonthEventsRowMonthComponent,\r\n                        PriCalendarYearSelectorComponent,\r\n                        PriCalendarWeekdayComponent,\r\n                        ImageSourcePipe,\r\n                        SubscriptionPipe,\r\n                        MaskedInputComponent,\r\n                        PriImportFileComponent,\r\n                        DateFieldViewPipe,\r\n                        PopoverComponent,\r\n                        DropDownEditionHistoryDirective,\r\n                        RecordSelectorComponent,\r\n                        LoadingSpinnerComponent,\r\n                        SuccessSvgComponent,\r\n                        EmptyStateChecklistSvgComponent,\r\n                        EmptyStateChartsSvgComponent,\r\n                        EmptyStateTableSvgComponent,\r\n                        EmptyStateBulletListSvgComponent,\r\n                        ErrorSvgComponent,\r\n                        ErrorPageSvgComponent,\r\n                        TooltipHoverDirective,\r\n                        InnerHTMLDirective,\r\n                        AutofocusDirective,\r\n                        DatatabstopDirective,\r\n                        TabsComponent,\r\n                        TableOptionsColumnsComponent,\r\n                        TableOptionsColumnsFieldComponent,\r\n                        InputComponent,\r\n                        ButtonComponent,\r\n                        TranslationComponent,\r\n                        TreeComponent,\r\n                        CheckboxComponent,\r\n                        FormFooterActionsComponent,\r\n                        RadioButtonGroupComponent,\r\n                        TemplateTypeDirective\r\n                    ]\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.ExternalScriptsService }, { type: UsersInvitationEvents }]; } });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { ArraysUtil, AutofocusDirective, BannerBulkActionType, BulkActionsBannerComponent, ButtonActionEnum, ButtonColorEnum, ButtonComponent, ButtonIconSideEnum, ButtonOptions, ButtonTypeEnum, CheckboxComponent, CheckboxOptions, CircleCountComponent, CommandHandlerService, ComponentsModule, ConnectionModalContentComponent, CustomValidationErrorTypeEnum, DatatabstopDirective, DateFieldViewPipe, DatesUtil, DownloadService, DraftModel, DraftModelService, DraftOperationEnum, DraftStoringStrategy, DropDownEditionHistoryDirective, DropDownEditionHistoryItemModel, DropDownMenuDirective, DropDownMenuItem, EditionHistoryEventModel, EditionHistoryEventService, EditionHistoryEventsModel, EmptyStateBulletListSvgComponent, EmptyStateChartsSvgComponent, EmptyStateChecklistSvgComponent, EmptyStateTableSvgComponent, ErrorPageSvgComponent, ErrorSvgComponent, EventWorkingDayMode, ExceptionHandlerService, FieldsSizeEnum, FormButtonComponent, FormButtonStyle, FormButtonType, FormControlErrorComponent, FormFieldComponent, FormFooterActionsComponent, FromComputedStylePipe, FullScreenModalComponent, FullScreenModalService, HTML_EDITOR_VALUE_ACCESSOR, HelpPageService, HighlightPipe, HtmlEditorFieldComponent, IBannerBulkActions, IButtonOption, ICalendarEvent, ICalendarEventDay, ICulture, IRadioButtonGroup, ITranslation, ImageComponent, ImageSourcePipe, InnerHTMLDirective, InputComponent, InputOptions, InputTypeEnum, IsLinkInputTypePipe, LinkInputHrefPipe, LoaderComponent, LoadingSpinnerComponent, LoadingSpinnerSizeEnum, LoadingSpinnerTypeEnum, LoadingStateEnum, MaskedInputComponent, MatSelectComponent, MatSelectSearchComponent, MessageInfo, MessagesService, ModalContentComponent, ModalService, PopoverComponent, PopoverService, PopoverSize, PriCalendarDayComponent, PriCalendarMonthComponent, PriCalendarMonthEventsRowComponent, PriCalendarMonthEventsRowDayComponent, PriCalendarMonthEventsRowMonthComponent, PriCalendarMonthRowComponent, PriCalendarWeekdayComponent, PriCalendarYearSelectorComponent, PriColorPickerComponent, PriDownloadProgressBarComponent, PriErrorComponent, PriImportFileComponent, PriPopoverDirective, PriSliderComponent, PriSliderToggleComponent, PriTextAlignComponent, PriTextStyleComponent, PriTypeAheadComponent, PriTypeAheadDirective, PriWebserviceTypeaheadComponent, PriYearCalendarComponent, ProgressBarComponent, RadioButtonGroupComponent, RadioButtonGroupOptions, RecordSelectorComponent, ReplacePipe, ResizeObserverDirective, RoleInterceptorService, SelectBoxComponent, SelectBoxMultiSelectModeEnum, SelectBoxUnselectedItemsPipe, Stepper, StepperComponent, SubscriptionPipe, SuccessSvgComponent, TableOptionsColumnsComponent, TableOptionsColumnsFieldComponent, TabsComponent, TagBadgeComponent, TagBadgeService, TagBadgeServiceProvider, TagSelectorFilterComponent, TagSelectorFilterItemComponent, TagSelectorFilterPopoverListComponent, TagSelectorFilterSearchItemComponent, TaskCardComponent, TemplateTypeDirective, TextInitialsComponent, ToFixedPipe, TooltipHoverDirective, TranslationComponent, TranslationInputOptions, TreeComponent, TreeNode, TreeNodeAction, TreeOptions, TreeStyleEnum, UsersInvitationEvents, ViewDefinitionsService, YearCalendarConfigModel, YearCalendarMode, bsDropdownModule, popoverModule, toastrModule };\n","import distanceInWords from \"../formatDistance/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now                                                   | Result              |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs                                                     | less than a minute  |\n * | 30 secs ... 1 min 30 secs                                         | 1 minute            |\n * | 1 min 30 secs ... 44 mins 30 secs                                 | [2..44] minutes     |\n * | 44 mins ... 30 secs ... 89 mins 30 secs                           | about 1 hour        |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs                        | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs                 | 1 day               |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs         | [2..30] days        |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month       |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months      |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr                           | [2..12] months      |\n * | 1 yr ... 1 yr 3 months                                            | about 1 year        |\n * | 1 yr 3 months ... 1 yr 9 month s                                  | over 1 year         |\n * | 1 yr 9 months ... 2 yrs                                           | almost 2 years      |\n * | N yrs ... N yrs 3 months                                          | about N years       |\n * | N yrs 3 months ... N yrs 9 months                                 | over N years        |\n * | N yrs 9 months ... N+1 yrs                                        | almost N+1 years    |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now     | Result               |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs   | less than 5 seconds  |\n * | 5 secs ... 10 secs  | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute        |\n * | 40 secs ... 60 secs | less than a minute   |\n * | 60 secs ... 90 secs | 1 minute             |\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - the object with options\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n *   new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n *   new Date(2015, 0, 1, 0, 0, 15),\n *   {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n *   new Date(2016, 0, 1),\n *   {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n *   new Date(2016, 7, 1),\n *   {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nexport default function formatDistanceToNow(dirtyDate, options) {\n  requiredArgs(1, arguments);\n  return distanceInWords(dirtyDate, Date.now(), options);\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.io/license\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}\nexport default [\"ca\", [[\"a. m.\", \"p. m.\"], u, u], u, [[\"dg\", \"dl\", \"dt\", \"dc\", \"dj\", \"dv\", \"ds\"], [\"dg.\", \"dl.\", \"dt.\", \"dc.\", \"dj.\", \"dv.\", \"ds.\"], [\"diumenge\", \"dilluns\", \"dimarts\", \"dimecres\", \"dijous\", \"divendres\", \"dissabte\"], [\"dg.\", \"dl.\", \"dt.\", \"dc.\", \"dj.\", \"dv.\", \"ds.\"]], u, [[\"GN\", \"FB\", \"MÇ\", \"AB\", \"MG\", \"JN\", \"JL\", \"AG\", \"ST\", \"OC\", \"NV\", \"DS\"], [\"de gen.\", \"de febr.\", \"de març\", \"d’abr.\", \"de maig\", \"de juny\", \"de jul.\", \"d’ag.\", \"de set.\", \"d’oct.\", \"de nov.\", \"de des.\"], [\"de gener\", \"de febrer\", \"de març\", \"d’abril\", \"de maig\", \"de juny\", \"de juliol\", \"d’agost\", \"de setembre\", \"d’octubre\", \"de novembre\", \"de desembre\"]], [[\"GN\", \"FB\", \"MÇ\", \"AB\", \"MG\", \"JN\", \"JL\", \"AG\", \"ST\", \"OC\", \"NV\", \"DS\"], [\"gen.\", \"febr.\", \"març\", \"abr.\", \"maig\", \"juny\", \"jul.\", \"ag.\", \"set.\", \"oct.\", \"nov.\", \"des.\"], [\"gener\", \"febrer\", \"març\", \"abril\", \"maig\", \"juny\", \"juliol\", \"agost\", \"setembre\", \"octubre\", \"novembre\", \"desembre\"]], [[\"aC\", \"dC\"], u, [\"abans de Crist\", \"després de Crist\"]], 1, [6, 0], [\"d/M/yy\", \"d MMM y\", \"d MMMM 'de' y\", \"EEEE, d MMMM 'de' y\"], [\"H:mm\", \"H:mm:ss\", \"H:mm:ss z\", \"H:mm:ss (zzzz)\"], [\"{1} {0}\", \"{1}, {0}\", \"{1}, 'a' 'les' {0}\", u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"AUD\": [\"AU$\", \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"р.\"], \"CAD\": [u, \"$\"], \"CNY\": [u, \"¥\"], \"ESP\": [\"₧\"], \"MXN\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"THB\": [\"฿\"], \"USD\": [u, \"$\"], \"VEF\": [u, \"Bs F\"], \"XCD\": [u, \"$\"], \"XXX\": [] }, \"ltr\", plural];\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.io/license\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}\nexport default [\"en-GB\", [[\"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\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"], [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"]], u, [[\"B\", \"A\"], [\"BC\", \"AD\"], [\"Before Christ\", \"Anno Domini\"]], 1, [6, 0], [\"dd/MM/y\", \"d MMM y\", \"d MMMM y\", \"EEEE, d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"GBP\", \"£\", \"British Pound\", { \"JPY\": [\"JP¥\", \"¥\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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}\nexport default [\"en-IE\", [[\"a\", \"p\"], [\"am\", \"pm\"], [\"a.m.\", \"p.m.\"]], [[\"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\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"], [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"]], u, [[\"B\", \"A\"], [\"BC\", \"AD\"], [\"Before Christ\", \"Anno Domini\"]], 1, [6, 0], [\"dd/MM/y\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"EUR\", \"€\", \"Euro\", { \"JPY\": [\"JP¥\", \"¥\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (n === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"es\", [[\"a. m.\", \"p. m.\"], u, u], u, [[\"D\", \"L\", \"M\", \"X\", \"J\", \"V\", \"S\"], [\"dom\", \"lun\", \"mar\", \"mié\", \"jue\", \"vie\", \"sáb\"], [\"domingo\", \"lunes\", \"martes\", \"miércoles\", \"jueves\", \"viernes\", \"sábado\"], [\"DO\", \"LU\", \"MA\", \"MI\", \"JU\", \"VI\", \"SA\"]], u, [[\"E\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ene\", \"feb\", \"mar\", \"abr\", \"may\", \"jun\", \"jul\", \"ago\", \"sept\", \"oct\", \"nov\", \"dic\"], [\"enero\", \"febrero\", \"marzo\", \"abril\", \"mayo\", \"junio\", \"julio\", \"agosto\", \"septiembre\", \"octubre\", \"noviembre\", \"diciembre\"]], u, [[\"a. C.\", \"d. C.\"], u, [\"antes de Cristo\", \"después de Cristo\"]], 1, [6, 0], [\"d/M/yy\", \"d MMM y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"H:mm\", \"H:mm:ss\", \"H:mm:ss z\", \"H:mm:ss (zzzz)\"], [\"{1}, {0}\", u, u, u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"AUD\": [u, \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"р.\"], \"CAD\": [u, \"$\"], \"CNY\": [u, \"¥\"], \"EGP\": [], \"ESP\": [\"₧\"], \"GBP\": [u, \"£\"], \"HKD\": [u, \"$\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MXN\": [u, \"$\"], \"NZD\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"RON\": [u, \"L\"], \"THB\": [\"฿\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"US$\", \"$\"], \"XAF\": [], \"XCD\": [u, \"$\"], \"XOF\": [] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (n === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"es-AR\", [[\"a. m.\", \"p. m.\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dom\", \"lun\", \"mar\", \"mié\", \"jue\", \"vie\", \"sáb\"], [\"domingo\", \"lunes\", \"martes\", \"miércoles\", \"jueves\", \"viernes\", \"sábado\"], [\"DO\", \"LU\", \"MA\", \"MI\", \"JU\", \"VI\", \"SA\"]], u, [[\"E\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ene\", \"feb\", \"mar\", \"abr\", \"may\", \"jun\", \"jul\", \"ago\", \"sept\", \"oct\", \"nov\", \"dic\"], [\"enero\", \"febrero\", \"marzo\", \"abril\", \"mayo\", \"junio\", \"julio\", \"agosto\", \"septiembre\", \"octubre\", \"noviembre\", \"diciembre\"]], u, [[\"a. C.\", \"d. C.\"], u, [\"antes de Cristo\", \"después de Cristo\"]], 1, [6, 0], [\"d/M/yy\", \"d MMM y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", \"{1} {0}\", \"{1}, {0}\", u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"¤ #,##0.00\", \"#E0\"], \"ARS\", \"$\", \"peso argentino\", { \"ARS\": [\"$\"], \"AUD\": [u, \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"р.\"], \"CAD\": [u, \"$\"], \"CNY\": [u, \"¥\"], \"ESP\": [\"₧\"], \"EUR\": [u, \"€\"], \"FKP\": [u, \"FK£\"], \"GBP\": [u, \"£\"], \"HKD\": [u, \"$\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MXN\": [u, \"$\"], \"NZD\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"RON\": [u, \"L\"], \"SSP\": [u, \"SD£\"], \"SYP\": [u, \"S£\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"US$\", \"$\"], \"VEF\": [u, \"BsF\"], \"VND\": [u, \"₫\"], \"XAF\": [], \"XCD\": [u, \"$\"], \"XOF\": [] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (n === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"es-CL\", [[\"a. m.\", \"p. m.\"], u, u], u, [[\"d\", \"l\", \"m\", \"m\", \"j\", \"v\", \"s\"], [\"dom\", \"lun\", \"mar\", \"mié\", \"jue\", \"vie\", \"sáb\"], [\"domingo\", \"lunes\", \"martes\", \"miércoles\", \"jueves\", \"viernes\", \"sábado\"], [\"do\", \"lu\", \"ma\", \"mi\", \"ju\", \"vi\", \"sá\"]], [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dom\", \"lun\", \"mar\", \"mié\", \"jue\", \"vie\", \"sáb\"], [\"domingo\", \"lunes\", \"martes\", \"miércoles\", \"jueves\", \"viernes\", \"sábado\"], [\"DO\", \"LU\", \"MA\", \"MI\", \"JU\", \"VI\", \"SA\"]], [[\"E\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ene\", \"feb\", \"mar\", \"abr\", \"may\", \"jun\", \"jul\", \"ago\", \"sept\", \"oct\", \"nov\", \"dic\"], [\"enero\", \"febrero\", \"marzo\", \"abril\", \"mayo\", \"junio\", \"julio\", \"agosto\", \"septiembre\", \"octubre\", \"noviembre\", \"diciembre\"]], [[\"E\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ene.\", \"feb.\", \"mar.\", \"abr.\", \"may.\", \"jun.\", \"jul.\", \"ago.\", \"sept.\", \"oct.\", \"nov.\", \"dic.\"], [\"enero\", \"febrero\", \"marzo\", \"abril\", \"mayo\", \"junio\", \"julio\", \"agosto\", \"septiembre\", \"octubre\", \"noviembre\", \"diciembre\"]], [[\"a. C.\", \"d. C.\"], u, [\"antes de Cristo\", \"después de Cristo\"]], 1, [6, 0], [\"dd-MM-yy\", \"dd-MM-y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", \"{1} {0}\", \"{1}, {0}\", u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"¤#,##0.00;¤-#,##0.00\", \"#E0\"], \"CLP\", \"$\", \"Peso chileno\", { \"AUD\": [u, \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"р.\"], \"CAD\": [u, \"$\"], \"CLP\": [\"$\"], \"CNY\": [u, \"¥\"], \"ESP\": [\"₧\"], \"EUR\": [u, \"€\"], \"FKP\": [u, \"FK£\"], \"GBP\": [u, \"£\"], \"HKD\": [u, \"$\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MXN\": [u, \"$\"], \"NZD\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"RON\": [u, \"L\"], \"SSP\": [u, \"SD£\"], \"SYP\": [u, \"S£\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"US$\", \"$\"], \"VEF\": [u, \"BsF\"], \"VND\": [u, \"₫\"], \"XAF\": [], \"XCD\": [u, \"$\"], \"XOF\": [] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (n === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"es-MX\", [[\"a. m.\", \"p. m.\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dom\", \"lun\", \"mar\", \"mié\", \"jue\", \"vie\", \"sáb\"], [\"domingo\", \"lunes\", \"martes\", \"miércoles\", \"jueves\", \"viernes\", \"sábado\"], [\"DO\", \"LU\", \"MA\", \"MI\", \"JU\", \"VI\", \"SA\"]], u, [[\"E\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ene\", \"feb\", \"mar\", \"abr\", \"may\", \"jun\", \"jul\", \"ago\", \"sept\", \"oct\", \"nov\", \"dic\"], [\"enero\", \"febrero\", \"marzo\", \"abril\", \"mayo\", \"junio\", \"julio\", \"agosto\", \"septiembre\", \"octubre\", \"noviembre\", \"diciembre\"]], u, [[\"a. C.\", \"d. C.\"], u, [\"antes de Cristo\", \"después de Cristo\"]], 0, [6, 0], [\"dd/MM/yy\", \"d MMM y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", \"{1} {0}\", \"{1}, {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"¤#,##0.00\", \"#E0\"], \"MXN\", \"$\", \"peso mexicano\", { \"AUD\": [u, \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"p.\"], \"CAD\": [u, \"$\"], \"CNY\": [u, \"¥\"], \"ESP\": [\"₧\"], \"EUR\": [u, \"€\"], \"GBP\": [u, \"£\"], \"HKD\": [u, \"$\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MRO\": [\"MRU\"], \"MRU\": [\"UM\"], \"MXN\": [\"$\"], \"NZD\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"TWD\": [u, \"NT$\"], \"USD\": [u, \"$\"], \"VND\": [u, \"₫\"], \"XAF\": [], \"XCD\": [u, \"$\"], \"XOF\": [] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === Math.floor(i) && (i >= 0 && i <= 1))\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"pt-AO\", [[\"a.m.\", \"p.m.\"], u, [\"da manhã\", \"da tarde\"]], [[\"a.m.\", \"p.m.\"], u, [\"manhã\", \"tarde\"]], [[\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"], [\"domingo\", \"segunda\", \"terça\", \"quarta\", \"quinta\", \"sexta\", \"sábado\"], [\"domingo\", \"segunda-feira\", \"terça-feira\", \"quarta-feira\", \"quinta-feira\", \"sexta-feira\", \"sábado\"], [\"dom.\", \"seg.\", \"ter.\", \"qua.\", \"qui.\", \"sex.\", \"sáb.\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"jan.\", \"fev.\", \"mar.\", \"abr.\", \"mai.\", \"jun.\", \"jul.\", \"ago.\", \"set.\", \"out.\", \"nov.\", \"dez.\"], [\"janeiro\", \"fevereiro\", \"março\", \"abril\", \"maio\", \"junho\", \"julho\", \"agosto\", \"setembro\", \"outubro\", \"novembro\", \"dezembro\"]], u, [[\"a.C.\", \"d.C.\"], u, [\"antes de Cristo\", \"depois de Cristo\"]], 1, [6, 0], [\"dd/MM/yy\", \"dd/MM/y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'às' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"AOA\", \"Kz\", \"kwanza angolano\", { \"AOA\": [\"Kz\"], \"AUD\": [\"AU$\", \"$\"], \"BYN\": [u, \"р.\"], \"JPY\": [\"JP¥\", \"¥\"], \"PHP\": [u, \"₱\"], \"PTE\": [\"​\"], \"RON\": [u, \"L\"], \"THB\": [\"฿\"], \"TWD\": [\"NT$\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === Math.floor(i) && (i >= 0 && i <= 1))\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"pt-CV\", [[\"a.m.\", \"p.m.\"], u, [\"da manhã\", \"da tarde\"]], [[\"a.m.\", \"p.m.\"], u, [\"manhã\", \"tarde\"]], [[\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"], [\"domingo\", \"segunda\", \"terça\", \"quarta\", \"quinta\", \"sexta\", \"sábado\"], [\"domingo\", \"segunda-feira\", \"terça-feira\", \"quarta-feira\", \"quinta-feira\", \"sexta-feira\", \"sábado\"], [\"dom.\", \"seg.\", \"ter.\", \"qua.\", \"qui.\", \"sex.\", \"sáb.\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"jan.\", \"fev.\", \"mar.\", \"abr.\", \"mai.\", \"jun.\", \"jul.\", \"ago.\", \"set.\", \"out.\", \"nov.\", \"dez.\"], [\"janeiro\", \"fevereiro\", \"março\", \"abril\", \"maio\", \"junho\", \"julho\", \"agosto\", \"setembro\", \"outubro\", \"novembro\", \"dezembro\"]], u, [[\"a.C.\", \"d.C.\"], u, [\"antes de Cristo\", \"depois de Cristo\"]], 1, [6, 0], [\"dd/MM/yy\", \"dd/MM/y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'às' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"CVE\", \"​\", \"escudo cabo-verdiano\", { \"AUD\": [\"AU$\", \"$\"], \"BYN\": [u, \"р.\"], \"CVE\": [\"​\"], \"JPY\": [\"JP¥\", \"¥\"], \"PHP\": [u, \"₱\"], \"RON\": [u, \"L\"], \"THB\": [\"฿\"], \"TWD\": [\"NT$\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === Math.floor(i) && (i >= 0 && i <= 1))\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"pt-MZ\", [[\"a.m.\", \"p.m.\"], u, [\"da manhã\", \"da tarde\"]], [[\"a.m.\", \"p.m.\"], u, [\"manhã\", \"tarde\"]], [[\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"], [\"domingo\", \"segunda\", \"terça\", \"quarta\", \"quinta\", \"sexta\", \"sábado\"], [\"domingo\", \"segunda-feira\", \"terça-feira\", \"quarta-feira\", \"quinta-feira\", \"sexta-feira\", \"sábado\"], [\"dom.\", \"seg.\", \"ter.\", \"qua.\", \"qui.\", \"sex.\", \"sáb.\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"jan.\", \"fev.\", \"mar.\", \"abr.\", \"mai.\", \"jun.\", \"jul.\", \"ago.\", \"set.\", \"out.\", \"nov.\", \"dez.\"], [\"janeiro\", \"fevereiro\", \"março\", \"abril\", \"maio\", \"junho\", \"julho\", \"agosto\", \"setembro\", \"outubro\", \"novembro\", \"dezembro\"]], u, [[\"a.C.\", \"d.C.\"], u, [\"antes de Cristo\", \"depois de Cristo\"]], 0, [6, 0], [\"dd/MM/yy\", \"dd/MM/y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'às' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"MZN\", \"MTn\", \"metical moçambicano\", { \"AUD\": [\"AU$\", \"$\"], \"BYN\": [u, \"р.\"], \"JPY\": [\"JP¥\", \"¥\"], \"MZN\": [\"MTn\"], \"PHP\": [u, \"₱\"], \"PTE\": [\"​\"], \"RON\": [u, \"L\"], \"THB\": [\"฿\"], \"TWD\": [\"NT$\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === Math.floor(i) && (i >= 0 && i <= 1))\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"pt-PT\", [[\"a.m.\", \"p.m.\"], u, [\"da manhã\", \"da tarde\"]], [[\"a.m.\", \"p.m.\"], u, [\"manhã\", \"tarde\"]], [[\"D\", \"S\", \"T\", \"Q\", \"Q\", \"S\", \"S\"], [\"domingo\", \"segunda\", \"terça\", \"quarta\", \"quinta\", \"sexta\", \"sábado\"], [\"domingo\", \"segunda-feira\", \"terça-feira\", \"quarta-feira\", \"quinta-feira\", \"sexta-feira\", \"sábado\"], [\"dom.\", \"seg.\", \"ter.\", \"qua.\", \"qui.\", \"sex.\", \"sáb.\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"jan.\", \"fev.\", \"mar.\", \"abr.\", \"mai.\", \"jun.\", \"jul.\", \"ago.\", \"set.\", \"out.\", \"nov.\", \"dez.\"], [\"janeiro\", \"fevereiro\", \"março\", \"abril\", \"maio\", \"junho\", \"julho\", \"agosto\", \"setembro\", \"outubro\", \"novembro\", \"dezembro\"]], u, [[\"a.C.\", \"d.C.\"], u, [\"antes de Cristo\", \"depois de Cristo\"]], 0, [6, 0], [\"dd/MM/yy\", \"dd/MM/y\", \"d 'de' MMMM 'de' y\", \"EEEE, d 'de' MMMM 'de' y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, \"{1} 'às' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"AUD\": [\"AU$\", \"$\"], \"BYN\": [u, \"р.\"], \"JPY\": [\"JP¥\", \"¥\"], \"PHP\": [u, \"₱\"], \"PTE\": [\"​\"], \"RON\": [u, \"L\"], \"THB\": [\"฿\"], \"TWD\": [\"NT$\"], \"USD\": [\"US$\", \"$\"] }, \"ltr\", plural];\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.io/license\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    if (!(v === 0) || (n === 0 || n % 100 === Math.floor(n % 100) && (n % 100 >= 2 && n % 100 <= 19)))\n        return 3;\n    return 5;\n}\nexport default [\"ro\", [[\"a.m.\", \"p.m.\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dum.\", \"lun.\", \"mar.\", \"mie.\", \"joi\", \"vin.\", \"sâm.\"], [\"duminică\", \"luni\", \"marți\", \"miercuri\", \"joi\", \"vineri\", \"sâmbătă\"], [\"du.\", \"lu.\", \"ma.\", \"mi.\", \"joi\", \"vi.\", \"sâ.\"]], u, [[\"I\", \"F\", \"M\", \"A\", \"M\", \"I\", \"I\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"ian.\", \"feb.\", \"mar.\", \"apr.\", \"mai\", \"iun.\", \"iul.\", \"aug.\", \"sept.\", \"oct.\", \"nov.\", \"dec.\"], [\"ianuarie\", \"februarie\", \"martie\", \"aprilie\", \"mai\", \"iunie\", \"iulie\", \"august\", \"septembrie\", \"octombrie\", \"noiembrie\", \"decembrie\"]], u, [[\"î.Hr.\", \"d.Hr.\"], u, [\"înainte de Hristos\", \"după Hristos\"]], 1, [6, 0], [\"dd.MM.y\", \"d MMM y\", \"d MMMM y\", \"EEEE, d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1}, {0}\", u, u, u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"RON\", \"RON\", \"leu românesc\", { \"AUD\": [u, \"$\"], \"BRL\": [u, \"R$\"], \"BYN\": [u, \"р.\"], \"CAD\": [u, \"$\"], \"CNY\": [u, \"¥\"], \"EUR\": [u, \"€\"], \"GBP\": [u, \"£\"], \"HKD\": [u, \"$\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"JPY\": [u, \"¥\"], \"KRW\": [u, \"₩\"], \"MXN\": [u, \"$\"], \"NZD\": [u, \"$\"], \"PHP\": [u, \"₱\"], \"TWD\": [u, \"NT$\"], \"USD\": [u, \"$\"], \"VND\": [u, \"₫\"], \"XCD\": [u, \"$\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 0 || i === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"fr\", [[\"AM\", \"PM\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 1, [6, 0], [\"dd/MM/y\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"ARS\": [\"$AR\", \"$\"], \"AUD\": [\"$AU\", \"$\"], \"BEF\": [\"FB\"], \"BMD\": [\"$BM\", \"$\"], \"BND\": [\"$BN\", \"$\"], \"BYN\": [u, \"р.\"], \"BZD\": [\"$BZ\", \"$\"], \"CAD\": [\"$CA\", \"$\"], \"CLP\": [\"$CL\", \"$\"], \"CNY\": [u, \"¥\"], \"COP\": [\"$CO\", \"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FJD\": [\"$FJ\", \"$\"], \"FKP\": [\"£FK\", \"£\"], \"FRF\": [\"F\"], \"GBP\": [\"£GB\", \"£\"], \"GIP\": [\"£GI\", \"£\"], \"HKD\": [u, \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ITL\": [\"₤IT\"], \"JPY\": [u, \"¥\"], \"KMF\": [u, \"FC\"], \"LBP\": [\"£LB\", \"£L\"], \"MTP\": [\"£MT\"], \"MXN\": [\"$MX\", \"$\"], \"NAD\": [\"$NA\", \"$\"], \"NIO\": [u, \"$C\"], \"NZD\": [\"$NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SBD\": [\"$SB\", \"$\"], \"SGD\": [\"$SG\", \"$\"], \"SRD\": [\"$SR\", \"$\"], \"TOP\": [u, \"$T\"], \"TTD\": [\"$TT\", \"$\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$US\", \"$\"], \"UYU\": [\"$UY\", \"$\"], \"WST\": [\"$WS\"], \"XCD\": [u, \"$\"], \"XPF\": [\"FCFP\"], \"ZMW\": [u, \"Kw\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 0 || i === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"fr-BE\", [[\"AM\", \"PM\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 1, [6, 0], [\"d/MM/yy\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"H 'h' mm 'min' ss 's' zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"ARS\": [\"$AR\", \"$\"], \"AUD\": [\"$AU\", \"$\"], \"BEF\": [\"FB\"], \"BMD\": [\"$BM\", \"$\"], \"BND\": [\"$BN\", \"$\"], \"BYN\": [u, \"р.\"], \"BZD\": [\"$BZ\", \"$\"], \"CAD\": [\"$CA\", \"$\"], \"CLP\": [\"$CL\", \"$\"], \"CNY\": [u, \"¥\"], \"COP\": [\"$CO\", \"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FJD\": [\"$FJ\", \"$\"], \"FKP\": [\"£FK\", \"£\"], \"FRF\": [\"F\"], \"GBP\": [\"£GB\", \"£\"], \"GIP\": [\"£GI\", \"£\"], \"HKD\": [u, \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ITL\": [\"₤IT\"], \"JPY\": [u, \"¥\"], \"KMF\": [u, \"FC\"], \"LBP\": [\"£LB\", \"£L\"], \"MTP\": [\"£MT\"], \"MXN\": [\"$MX\", \"$\"], \"NAD\": [\"$NA\", \"$\"], \"NIO\": [u, \"$C\"], \"NZD\": [\"$NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SBD\": [\"$SB\", \"$\"], \"SGD\": [\"$SG\", \"$\"], \"SRD\": [\"$SR\", \"$\"], \"TOP\": [u, \"$T\"], \"TTD\": [\"$TT\", \"$\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$US\", \"$\"], \"UYU\": [\"$UY\", \"$\"], \"WST\": [\"$WS\"], \"XCD\": [u, \"$\"], \"XPF\": [\"FCFP\"], \"ZMW\": [u, \"Kw\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 0 || i === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"fr-CA\", [[\"a\", \"p\"], [\"a.m.\", \"p.m.\"], u], [[\"a.m.\", \"p.m.\"], u, u], [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juill.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 0, [6, 0], [\"y-MM-dd\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH 'h' mm\", \"HH 'h' mm 'min' ss 's'\", \"HH 'h' mm 'min' ss 's' z\", \"HH 'h' mm 'min' ss 's' zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"CAD\", \"$\", \"dollar canadien\", { \"AUD\": [\"$ AU\", \"$\"], \"BEF\": [\"FB\"], \"BYN\": [u, \"Br\"], \"CAD\": [\"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FRF\": [\"F\"], \"GEL\": [], \"HKD\": [\"$ HK\", \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ILS\": [u, \"₪\"], \"INR\": [u, \"₹\"], \"ITL\": [\"₤IT\"], \"KRW\": [u, \"₩\"], \"LBP\": [u, \"£L\"], \"MTP\": [\"£MT\"], \"MXN\": [u, \"$\"], \"NZD\": [\"$ NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SGD\": [\"$ SG\", \"$\"], \"TOP\": [u, \"$T\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$ US\", \"$\"], \"VND\": [u, \"₫\"], \"XAF\": [], \"XCD\": [u, \"$\"], \"XOF\": [], \"XPF\": [] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 0 || i === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"fr-LU\", [[\"AM\", \"PM\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 1, [6, 0], [\"dd/MM/y\", \"d MMM y\", \"d MMMM y\", \"EEEE d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH:mm:ss zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \".\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0 %\", \"#,##0.00 ¤\", \"#E0\"], \"EUR\", \"€\", \"euro\", { \"ARS\": [\"$AR\", \"$\"], \"AUD\": [\"$AU\", \"$\"], \"BEF\": [\"FB\"], \"BMD\": [\"$BM\", \"$\"], \"BND\": [\"$BN\", \"$\"], \"BYN\": [u, \"р.\"], \"BZD\": [\"$BZ\", \"$\"], \"CAD\": [\"$CA\", \"$\"], \"CLP\": [\"$CL\", \"$\"], \"CNY\": [u, \"¥\"], \"COP\": [\"$CO\", \"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FJD\": [\"$FJ\", \"$\"], \"FKP\": [\"£FK\", \"£\"], \"GBP\": [\"£GB\", \"£\"], \"GIP\": [\"£GI\", \"£\"], \"HKD\": [u, \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ITL\": [\"₤IT\"], \"JPY\": [u, \"¥\"], \"KMF\": [u, \"FC\"], \"LBP\": [\"£LB\", \"£L\"], \"LUF\": [\"F\"], \"MTP\": [\"£MT\"], \"MXN\": [\"$MX\", \"$\"], \"NAD\": [\"$NA\", \"$\"], \"NIO\": [u, \"$C\"], \"NZD\": [\"$NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SBD\": [\"$SB\", \"$\"], \"SGD\": [\"$SG\", \"$\"], \"SRD\": [\"$SR\", \"$\"], \"TOP\": [u, \"$T\"], \"TTD\": [\"$TT\", \"$\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$US\", \"$\"], \"UYU\": [\"$UY\", \"$\"], \"WST\": [\"$WS\"], \"XCD\": [u, \"$\"], \"XPF\": [\"FCFP\"], \"ZMW\": [u, \"Kw\"] }, \"ltr\", plural];\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.io/license\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, e = parseInt(val.toString().replace(/^[^e]*(e([-+]?\\d+))?/, '$2')) || 0;\n    if (i === 0 || i === 1)\n        return 1;\n    if (e === 0 && (!(i === 0) && (i % 1000000 === 0 && v === 0)) || !(e >= 0 && e <= 5))\n        return 4;\n    return 5;\n}\nexport default [\"fr-CH\", [[\"AM\", \"PM\"], u, u], u, [[\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\"], [\"dim.\", \"lun.\", \"mar.\", \"mer.\", \"jeu.\", \"ven.\", \"sam.\"], [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"], [\"di\", \"lu\", \"ma\", \"me\", \"je\", \"ve\", \"sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"janv.\", \"févr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"août\", \"sept.\", \"oct.\", \"nov.\", \"déc.\"], [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]], u, [[\"av. J.-C.\", \"ap. J.-C.\"], u, [\"avant Jésus-Christ\", \"après Jésus-Christ\"]], 1, [6, 0], [\"dd.MM.yy\", \"d MMM y\", \"d MMMM y\", \"EEEE, d MMMM y\"], [\"HH:mm\", \"HH:mm:ss\", \"HH:mm:ss z\", \"HH.mm:ss 'h' zzzz\"], [\"{1} {0}\", \"{1}, {0}\", \"{1} 'à' {0}\", u], [\",\", \" \", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\", \".\"], [\"#,##0.###\", \"#,##0%\", \"#,##0.00 ¤\", \"#E0\"], \"CHF\", \"CHF\", \"franc suisse\", { \"ARS\": [\"$AR\", \"$\"], \"AUD\": [\"$AU\", \"$\"], \"BEF\": [\"FB\"], \"BMD\": [\"$BM\", \"$\"], \"BND\": [\"$BN\", \"$\"], \"BYN\": [u, \"р.\"], \"BZD\": [\"$BZ\", \"$\"], \"CAD\": [\"$CA\", \"$\"], \"CLP\": [\"$CL\", \"$\"], \"CNY\": [u, \"¥\"], \"COP\": [\"$CO\", \"$\"], \"CYP\": [\"£CY\"], \"EGP\": [u, \"£E\"], \"FJD\": [\"$FJ\", \"$\"], \"FKP\": [\"£FK\", \"£\"], \"FRF\": [\"F\"], \"GBP\": [\"£GB\", \"£\"], \"GIP\": [\"£GI\", \"£\"], \"HKD\": [u, \"$\"], \"IEP\": [\"£IE\"], \"ILP\": [\"£IL\"], \"ITL\": [\"₤IT\"], \"JPY\": [u, \"¥\"], \"KMF\": [u, \"FC\"], \"LBP\": [\"£LB\", \"£L\"], \"MTP\": [\"£MT\"], \"MXN\": [\"$MX\", \"$\"], \"NAD\": [\"$NA\", \"$\"], \"NIO\": [u, \"$C\"], \"NZD\": [\"$NZ\", \"$\"], \"PHP\": [u, \"₱\"], \"RHD\": [\"$RH\"], \"RON\": [u, \"L\"], \"RWF\": [u, \"FR\"], \"SBD\": [\"$SB\", \"$\"], \"SGD\": [\"$SG\", \"$\"], \"SRD\": [\"$SR\", \"$\"], \"TOP\": [u, \"$T\"], \"TTD\": [\"$TT\", \"$\"], \"TWD\": [u, \"NT$\"], \"USD\": [\"$US\", \"$\"], \"UYU\": [\"$UY\", \"$\"], \"WST\": [\"$WS\"], \"XCD\": [u, \"$\"], \"XPF\": [\"FCFP\"], \"ZMW\": [u, \"Kw\"] }, \"ltr\", plural];\n","import { registerLocaleData } from '@angular/common';\nimport * as i1 from '@angular/common/http';\nimport { HttpClientModule } from '@angular/common/http';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Inject, Directive, Input, Pipe, NgModule } from '@angular/core';\nimport * as i2 from '@primavera/services';\nimport { PrimaveraServicesModule } from '@primavera/services';\nimport localeCaES from '@angular/common/locales/ca';\nimport localeEnGB from '@angular/common/locales/en-GB';\nimport localeEnIE from '@angular/common/locales/en-IE';\nimport localeEsES from '@angular/common/locales/es';\nimport localeEsAR from '@angular/common/locales/es-AR';\nimport localeEsCL from '@angular/common/locales/es-CL';\nimport localeEsMX from '@angular/common/locales/es-MX';\nimport localeItIT from '@angular/common/locales/it';\nimport localePtAO from '@angular/common/locales/pt-AO';\nimport localePtCV from '@angular/common/locales/pt-CV';\nimport localePtMZ from '@angular/common/locales/pt-MZ';\nimport localePtPT from '@angular/common/locales/pt-PT';\nimport localeRoRO from '@angular/common/locales/ro';\nimport localeFr from '@angular/common/locales/fr';\nimport localeFrBE from '@angular/common/locales/fr-BE';\nimport localeFrCA from '@angular/common/locales/fr-CA';\nimport localeFrLU from '@angular/common/locales/fr-LU';\nimport localeFrCH from '@angular/common/locales/fr-CH';\n\nconst I18nServiceConfig = new InjectionToken('ContentfulConfig');\r\n/**\r\n * Language service\r\n */\r\nclass I18nService {\r\n    // #endregion\r\n    constructor(config, httpClient, appContextService, settingsService, storageService, cacheHelperService, errorsService, broadcastService) {\r\n        this.config = config;\r\n        this.httpClient = httpClient;\r\n        this.appContextService = appContextService;\r\n        this.settingsService = settingsService;\r\n        this.storageService = storageService;\r\n        this.cacheHelperService = cacheHelperService;\r\n        this.errorsService = errorsService;\r\n        this.broadcastService = broadcastService;\r\n        this._resources = {};\r\n    }\r\n    // #region public methods\r\n    /**\r\n     * Get resources from file.\r\n     */\r\n    getResourcesFromFile() {\r\n        return new Promise((resolve, reject) => {\r\n            // Tries to get framework resources generated files\r\n            const frameworkResources = this.httpClient\r\n                .get(this.config.resourcesFromFile)\r\n                .toPromise()\r\n                .catch((error) => {\r\n                console.error(`The elevation framework localization configuration file is missing!\\n${error.message}`);\r\n                this.broadcastService.emit('hasErrorInLoading', true);\r\n                this.errorsService.showErrorMessage({\r\n                    message: this.get('components.components.RES_Error_Lang_Loading'),\r\n                    canBackToHome: false,\r\n                    canBackToPreviousPage: false,\r\n                    canGoToSubscriptionsPage: true,\r\n                    errorType: 'loadingLangAsset'\r\n                });\r\n                reject(error);\r\n            });\r\n            // Tries to get custom resources files\r\n            const customResource = this.httpClient\r\n                .get(this.config.customResourceFromFile)\r\n                .toPromise()\r\n                .catch((error) => {\r\n                console.warn('There are no custom configuration file created. To avoid this error, please, create a file' +\r\n                    ` with an empty array under ${this.config.customResourceFromFile} path. Original Error: ${error.message}.`);\r\n                return [];\r\n            });\r\n            Promise.all([frameworkResources, customResource])\r\n                .then((values) => {\r\n                this._sources = [].concat(...values);\r\n                resolve();\r\n            })\r\n                .catch((error) => {\r\n                reject(error);\r\n            });\r\n        });\r\n    }\r\n    async getDefaultsFromFile() {\r\n        try {\r\n            this._defaults = await this.settingsService.getI18nDefaults();\r\n        }\r\n        catch (error) {\r\n            this.errorsService.showErrorMessage({\r\n                message: this.get('components.components.RES_Error_Suported_Cultures_Loading'),\r\n                canBackToHome: false,\r\n                canBackToPreviousPage: false,\r\n                canGoToSubscriptionsPage: true\r\n            });\r\n        }\r\n    }\r\n    get(key) {\r\n        const value = this._resources[key];\r\n        return value || (key?.indexOf('RES_') > -1 ? key?.substring(key.indexOf('RES_') + 4) : key);\r\n    }\r\n    async load() {\r\n        if (!this._locale) {\r\n            this._locale = await this.getDefault(this.appContextService.user.culture);\r\n            return this.getResources();\r\n        }\r\n    }\r\n    /**\r\n     * Translate JSON RES_* elements\r\n     *\r\n     * @param element JSON Object ex: ViewDefinition\r\n     * @param module module name from server side to get translations from json\r\n     */\r\n    translateElements(element, module) {\r\n        for (const attr in element) {\r\n            if (typeof element[attr] === 'object' && element[attr] != null) {\r\n                this.translateElements(element[attr], module);\r\n            }\r\n            else if (element[attr].toString().startsWith('RES_')) {\r\n                element[attr] = this.get(`${module}`.concat('.localization.').concat(element[attr]));\r\n            }\r\n        }\r\n    }\r\n    // #endregion\r\n    // #region private methods\r\n    async getResources() {\r\n        try {\r\n            if (!this._sources) {\r\n                await this.getResourcesFromFile();\r\n            }\r\n            let openRequestCounter = this._sources.length;\r\n            if (openRequestCounter === 0) {\r\n                Promise.resolve();\r\n                return;\r\n            }\r\n            const verifyLastRequest = (counter) => {\r\n                if (counter === 0) {\r\n                    Promise.resolve();\r\n                }\r\n            };\r\n            for (const source of this._sources) {\r\n                if (source) {\r\n                    await this.getResourcesFromSource(this._locale, source);\r\n                    openRequestCounter--;\r\n                    verifyLastRequest(openRequestCounter);\r\n                }\r\n            }\r\n        }\r\n        catch (ex) {\r\n            Promise.resolve();\r\n        }\r\n    }\r\n    updateResources(source, resources) {\r\n        const prefix = source.replace('.json', '').replace('.lang', '');\r\n        for (const prop in resources) {\r\n            if (resources.hasOwnProperty(prop)) {\r\n                const finalKey = `${prefix}.${prop}`;\r\n                this._resources[finalKey] = resources[prop];\r\n            }\r\n        }\r\n    }\r\n    async getDefault(locale) {\r\n        if (!this._defaults) {\r\n            await this.getDefaultsFromFile();\r\n        }\r\n        if (this._defaults && locale.length >= 2) {\r\n            const defaultLocale = this._defaults.find((c) => c.twoLetterISOLanguageName === locale.substr(0, 2) && c.isLanguageDefault) ??\r\n                this._defaults[0];\r\n            return defaultLocale?.name;\r\n        }\r\n        return null;\r\n    }\r\n    async getResourcesFromSource(locale, source, retry) {\r\n        // add '.json' if is missing\r\n        const finalSource = source.indexOf('.json') < 0 ? `${source}.json` : source;\r\n        const url = `${this.config.sourcePath}/${locale.toLowerCase()}/${finalSource}`;\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(false, true, false, ['lang', finalSource]);\r\n        const cacheKeyLowerCase = cacheKey.toLocaleLowerCase();\r\n        const cachedResource = this.storageService.get(cacheKeyLowerCase);\r\n        if (cachedResource) {\r\n            return new Promise((resolve) => {\r\n                this.updateResources(source, JSON.parse(cachedResource));\r\n                resolve();\r\n            });\r\n        }\r\n        else {\r\n            return new Promise((resolve) => {\r\n                this.httpClient.get(url).subscribe({\r\n                    next: (res) => {\r\n                        this.updateResources(source, res);\r\n                        this.storageService.set(cacheKeyLowerCase, JSON.stringify(res));\r\n                        resolve();\r\n                    },\r\n                    error: async (err) => {\r\n                        const defaultLocale = this.getDefault(locale);\r\n                        if (!retry && defaultLocale) {\r\n                            await this.getResourcesFromSource(await defaultLocale, source, true);\r\n                        }\r\n                        else {\r\n                            console.error(`For ${source}, the i18n files are missing! Please remove the configuration ` +\r\n                                `or add the localization files.\\n Original message: ${err.message}`);\r\n                        }\r\n                        resolve();\r\n                    }\r\n                });\r\n            });\r\n        }\r\n    }\r\n}\r\nI18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nService, deps: [{ token: I18nServiceConfig }, { token: i1.HttpClient }, { token: i2.AppContextService }, { token: i2.SettingsService }, { token: i2.StorageService }, { token: i2.CacheHelperService }, { token: i2.ErrorsService }, { token: i2.BroadcastService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nI18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: I18nService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [I18nServiceConfig]\r\n                }] }, { type: i1.HttpClient }, { type: i2.AppContextService }, { type: i2.SettingsService }, { type: i2.StorageService }, { type: i2.CacheHelperService }, { type: i2.ErrorsService }, { type: i2.BroadcastService }]; } });\n\nclass PriI18nDirective {\r\n    constructor(_elementRef, _i18nService) {\r\n        this._elementRef = _elementRef;\r\n        this._i18nService = _i18nService;\r\n    }\r\n    ngOnInit() {\r\n        const element = this._elementRef.nativeElement;\r\n        const value = this._i18nService.get(this.resourceKey);\r\n        if (element.tagName === 'INPUT') {\r\n            element.value = value;\r\n        }\r\n        else {\r\n            element.innerHTML = value;\r\n        }\r\n    }\r\n}\r\nPriI18nDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriI18nDirective, deps: [{ token: i0.ElementRef }, { token: I18nService }], target: i0.ɵɵFactoryTarget.Directive });\r\nPriI18nDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriI18nDirective, selector: \"[priI18n]\", inputs: { resourceKey: [\"priI18n\", \"resourceKey\"] }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriI18nDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priI18n]',\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: I18nService }]; }, propDecorators: { resourceKey: [{\r\n                type: Input,\r\n                args: ['priI18n']\r\n            }] } });\r\nclass PriI18nPipe {\r\n    constructor(_i18nService) {\r\n        this._i18nService = _i18nService;\r\n    }\r\n    transform(resourceKey) {\r\n        return this._i18nService.get(resourceKey);\r\n    }\r\n}\r\nPriI18nPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriI18nPipe, deps: [{ token: I18nService }], target: i0.ɵɵFactoryTarget.Pipe });\r\nPriI18nPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PriI18nPipe, name: \"priI18n\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriI18nPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{ name: 'priI18n' }]\r\n        }], ctorParameters: function () { return [{ type: I18nService }]; } });\n\nconst locales = [\r\n    localeEnIE,\r\n    localeEnGB,\r\n    localePtPT,\r\n    localePtMZ,\r\n    localePtAO,\r\n    localePtCV,\r\n    localeEsES,\r\n    localeEsAR,\r\n    localeEsCL,\r\n    localeEsMX,\r\n    localeCaES,\r\n    localeItIT,\r\n    localeRoRO,\r\n    localeFr,\r\n    localeFrBE,\r\n    localeFrCA,\r\n    localeFrLU,\r\n    localeFrCH\r\n];\n\n// Register new locales\r\nlocales.forEach((locale) => registerLocaleData(locale));\r\nclass PrimaveraI18nModule {\r\n    static forRoot(config = {\r\n        resourcesFromFile: 'assets/configurations/i18n/config-sources.json',\r\n        customResourceFromFile: 'assets/configurations/i18n/custom-config-sources.json',\r\n        sourcePath: 'assets/i18n'\r\n    }) {\r\n        return {\r\n            ngModule: PrimaveraI18nModule,\r\n            providers: [\r\n                {\r\n                    provide: I18nServiceConfig,\r\n                    useValue: config\r\n                }\r\n            ]\r\n        };\r\n    }\r\n}\r\nPrimaveraI18nModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraI18nModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nPrimaveraI18nModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraI18nModule, declarations: [PriI18nDirective, PriI18nPipe], imports: [HttpClientModule, PrimaveraServicesModule], exports: [PriI18nDirective, PriI18nPipe] });\r\nPrimaveraI18nModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraI18nModule, imports: [HttpClientModule, PrimaveraServicesModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraI18nModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [HttpClientModule, PrimaveraServicesModule],\r\n                    declarations: [PriI18nDirective, PriI18nPipe],\r\n                    exports: [PriI18nDirective, PriI18nPipe]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { I18nService, PriI18nDirective, PriI18nPipe, PrimaveraI18nModule };\n","import addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\n/**\n * @name subDays\n * @category Day Helpers\n * @summary Subtract the specified number of days from the given date.\n *\n * @description\n * Subtract the specified number of days from the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the days subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 10 days from 1 September 2014:\n * const result = subDays(new Date(2014, 8, 1), 10)\n * //=> Fri Aug 22 2014 00:00:00\n */\nexport default function subDays(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addDays(dirtyDate, -amount);\n}","import startOfWeek from \"../startOfWeek/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameWeek\n * @category Week Helpers\n * @summary Are the given dates in the same week (and month and year)?\n *\n * @description\n * Are the given dates in the same week (and month and year)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Boolean} the dates are in the same week (and month and year)\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // Are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))\n * //=> true\n *\n * @example\n * // If week starts with Monday,\n * // are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {\n *   weekStartsOn: 1\n * })\n * //=> false\n *\n * @example\n * // Are 1 January 2014 and 1 January 2015 in the same week?\n * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))\n * //=> false\n */\nexport default function isSameWeek(dirtyDateLeft, dirtyDateRight, options) {\n  requiredArgs(2, arguments);\n  var dateLeftStartOfWeek = startOfWeek(dirtyDateLeft, options);\n  var dateRightStartOfWeek = startOfWeek(dirtyDateRight, options);\n  return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();\n}","import startOfWeek from \"../startOfWeek/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Number} the local week-numbering year\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport default function getWeekYear(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var year = date.getFullYear();\n  var defaultOptions = getDefaultOptions();\n  var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n\n  // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n    throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n  }\n  var firstWeekOfNextYear = new Date(0);\n  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n  firstWeekOfNextYear.setHours(0, 0, 0, 0);\n  var startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n  var firstWeekOfThisYear = new Date(0);\n  firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n  firstWeekOfThisYear.setHours(0, 0, 0, 0);\n  var startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n  if (date.getTime() >= startOfNextYear.getTime()) {\n    return year + 1;\n  } else if (date.getTime() >= startOfThisYear.getTime()) {\n    return year;\n  } else {\n    return year - 1;\n  }\n}","import getWeekYear from \"../getWeekYear/index.js\";\nimport startOfWeek from \"../startOfWeek/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Date} the start of a week-numbering year\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n *   weekStartsOn: 1,\n *   firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport default function startOfWeekYear(dirtyDate, options) {\n  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n  requiredArgs(1, arguments);\n  var defaultOptions = getDefaultOptions();\n  var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n  var year = getWeekYear(dirtyDate, options);\n  var firstWeek = new Date(0);\n  firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n  firstWeek.setHours(0, 0, 0, 0);\n  var date = startOfWeek(firstWeek, options);\n  return date;\n}","import startOfWeek from \"../startOfWeek/index.js\";\nimport startOfWeekYear from \"../startOfWeekYear/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_WEEK = 604800000;\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @returns {Number} the week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n *   weekStartsOn: 1,\n *   firstWeekContainsDate: 4\n * })\n * //=> 53\n */\n\nexport default function getWeek(dirtyDate, options) {\n  requiredArgs(1, arguments);\n  var date = toDate(dirtyDate);\n  var diff = startOfWeek(date, options).getTime() - startOfWeekYear(date, options).getTime();\n\n  // Round the number of days to the nearest integer\n  // because the number of milliseconds in a week is not constant\n  // (e.g. it's different in the week of the daylight saving time clock shift)\n  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import * as i4 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Component, ViewEncapsulation, Input, Output, ViewChild, ElementRef, NgModule } from '@angular/core';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport * as i2 from '@primavera/components';\nimport { DateFieldViewPipe, MessageInfo, ComponentsModule } from '@primavera/components';\nimport * as i3 from '@primavera/localization';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport * as i1 from '@primavera/services';\nimport { NotificationTypeEnum, SignalRStateEnum, SignalRHelper, PrimaveraServicesModule } from '@primavera/services';\nimport { HubConnectionState } from '@microsoft/signalr';\nimport { trigger, transition, sequence, animate, style } from '@angular/animations';\nimport { isSameDay, differenceInMinutes, addWeeks, startOfWeek, getWeek, isThisWeek, isBefore, startOfYesterday, isYesterday, isToday } from 'date-fns';\nimport { Subject } from 'rxjs';\nimport { filter, takeUntil } from 'rxjs/operators';\nimport * as i4$1 from '@primavera/components/features/right-panel';\n\nclass BellComponent {\r\n    constructor() {\r\n        /** Will be triggered when the panel state changed */\r\n        this.panelIsOpenedChange = new EventEmitter();\r\n        /** Describes the current state of the signalR hub connection to the server */\r\n        this.signalRConnectionStates = HubConnectionState; // used to be available on the HTML\r\n    }\r\n    /**\r\n     * Open notifications panel\r\n     */\r\n    openNotifications() {\r\n        this.panelIsOpenedChange.emit();\r\n    }\r\n    /**\r\n     * Get the length of card array\r\n     */\r\n    get existsCriticalNotifications() {\r\n        const cards = this.cards.filter((card) => card.type === NotificationTypeEnum.error);\r\n        return cards.length > 0;\r\n    }\r\n}\r\nBellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nBellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: BellComponent, selector: \"pri-bell-component\", inputs: { signalRConnectionState: \"signalRConnectionState\", cards: \"cards\", panelIsOpened: \"panelIsOpened\", getNotificationsComplete: \"getNotificationsComplete\" }, outputs: { panelIsOpenedChange: \"panelIsOpenedChange\" }, ngImport: i0, template: \"<div class=\\\"bell-container\\\" (click)=\\\"openNotifications()\\\"\\r\\n    [attr.disabled]=\\\"(signalRConnectionState !== signalRConnectionStates.Connected || cards.length === 0 || !getNotificationsComplete) ? true : null\\\">\\r\\n    <i class=\\\"ti-ux-alerts\\\"></i>\\r\\n    <div class=\\\"count-container\\\" [ngClass]=\\\"{'error': existsCriticalNotifications}\\\" *ngIf=\\\"cards.length > 0 && getNotificationsComplete\\\">\\r\\n        <span class=\\\"count-container-span\\\" *ngIf=\\\"!(cards.length > 99)\\\">{{cards.length}}</span>\\r\\n        <span class=\\\"count-container-span plus\\\" *ngIf=\\\"(cards.length > 99)\\\">99+</span>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-bell-component{display:flex;width:100%;height:3.5714285714rem}pri-bell-component:not(:hover).open .bell-container{background:var(--header-60)}pri-bell-component:not(:hover).open .bell-container i{color:#fff}pri-bell-component .bell-container{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}pri-bell-component .bell-container[disabled=true]{background-color:var(--header-100);pointer-events:none}pri-bell-component .bell-container[disabled=true] i{color:var(--header-60)}pri-bell-component .bell-container .count-container{position:absolute;display:flex;align-items:center;justify-content:center;width:16px;height:16px;overflow:hidden;border-radius:4px;background-color:#fff;margin:auto;inset:0 0 14px 16px}pri-bell-component .bell-container .count-container.error{background-color:var(--error-100)}pri-bell-component .bell-container .count-container.error .count-container-span{color:#fff}pri-bell-component .bell-container .count-container .count-container-span{font-size:10px;color:var(--header-100)}pri-bell-component .bell-container .count-container .count-container-span.plus{font-size:8px}\\n\"], dependencies: [{ kind: \"directive\", type: i4.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i4.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BellComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-bell-component', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"bell-container\\\" (click)=\\\"openNotifications()\\\"\\r\\n    [attr.disabled]=\\\"(signalRConnectionState !== signalRConnectionStates.Connected || cards.length === 0 || !getNotificationsComplete) ? true : null\\\">\\r\\n    <i class=\\\"ti-ux-alerts\\\"></i>\\r\\n    <div class=\\\"count-container\\\" [ngClass]=\\\"{'error': existsCriticalNotifications}\\\" *ngIf=\\\"cards.length > 0 && getNotificationsComplete\\\">\\r\\n        <span class=\\\"count-container-span\\\" *ngIf=\\\"!(cards.length > 99)\\\">{{cards.length}}</span>\\r\\n        <span class=\\\"count-container-span plus\\\" *ngIf=\\\"(cards.length > 99)\\\">99+</span>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-bell-component{display:flex;width:100%;height:3.5714285714rem}pri-bell-component:not(:hover).open .bell-container{background:var(--header-60)}pri-bell-component:not(:hover).open .bell-container i{color:#fff}pri-bell-component .bell-container{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}pri-bell-component .bell-container[disabled=true]{background-color:var(--header-100);pointer-events:none}pri-bell-component .bell-container[disabled=true] i{color:var(--header-60)}pri-bell-component .bell-container .count-container{position:absolute;display:flex;align-items:center;justify-content:center;width:16px;height:16px;overflow:hidden;border-radius:4px;background-color:#fff;margin:auto;inset:0 0 14px 16px}pri-bell-component .bell-container .count-container.error{background-color:var(--error-100)}pri-bell-component .bell-container .count-container.error .count-container-span{color:#fff}pri-bell-component .bell-container .count-container .count-container-span{font-size:10px;color:var(--header-100)}pri-bell-component .bell-container .count-container .count-container-span.plus{font-size:8px}\\n\"] }]\r\n        }], propDecorators: { signalRConnectionState: [{\r\n                type: Input\r\n            }], cards: [{\r\n                type: Input\r\n            }], panelIsOpened: [{\r\n                type: Input\r\n            }], panelIsOpenedChange: [{\r\n                type: Output\r\n            }], getNotificationsComplete: [{\r\n                type: Input\r\n            }] } });\n\nclass CardComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     * @param appContextService Service that allows to interact with the application context\r\n     * @param messagesService Service responsible to launch different type of messages\r\n     * @param i18nService Language service\r\n     */\r\n    constructor(appContextService, messagesService, i18nService) {\r\n        this.appContextService = appContextService;\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        /** Will be triggered when the card disposed */\r\n        this.disposeCard = new EventEmitter();\r\n        this.notificationTypeEnum = NotificationTypeEnum;\r\n        /** The value to remove element when swipe */\r\n        this.maxSwipeValue = 170;\r\n    }\r\n    /** The card model */\r\n    set card(value) {\r\n        this.cardLocal = value;\r\n        this.cardFormattedDate = this.formatDateTime;\r\n    }\r\n    /** The card model */\r\n    get card() {\r\n        return this.cardLocal;\r\n    }\r\n    /**\r\n     * Dispose the card\r\n     *\r\n     * @param event Event to click\r\n     */\r\n    dispose(event) {\r\n        event.stopPropagation();\r\n        this.cleanCard();\r\n    }\r\n    /**\r\n     * Invoked when the touch event start\r\n     *\r\n     * @param event The touch event\r\n     */\r\n    touchstart(event) {\r\n        if (!this.isMobileDevice) {\r\n            return;\r\n        }\r\n        this.swipeStartX = event.touches[0].clientX;\r\n    }\r\n    /**\r\n     * Invoked when the touch event moved\r\n     *\r\n     * @param event The touch event\r\n     */\r\n    touchmove(event) {\r\n        if (!this.isMobileDevice) {\r\n            return;\r\n        }\r\n        this.swipeValueX = event.touches[0].clientX - this.swipeStartX;\r\n        if (this.swipeValueX > 0) {\r\n            const opacity = Math.max(1 - (this.swipeValueX / this.maxSwipeValue), 0.5);\r\n            this.animationCardMobileEnable = true;\r\n            this.style = {\r\n                transform: 'translateX(' + this.swipeValueX + 'px)',\r\n                opacity\r\n            };\r\n        }\r\n    }\r\n    /**\r\n     * Invoked when the touch event finished\r\n     *\r\n     * @param event The touch event\r\n     */\r\n    touchend() {\r\n        if (!this.isMobileDevice) {\r\n            return;\r\n        }\r\n        if (this.swipeValueX > this.maxSwipeValue) {\r\n            this.cleanCard();\r\n        }\r\n        else {\r\n            this.resetStyle();\r\n        }\r\n    }\r\n    /** Get the date formatted */\r\n    get formatDateTime() {\r\n        const isTodayCard = isSameDay(new Date(this.card.createdOn), new Date());\r\n        if (isTodayCard) {\r\n            const minutes = differenceInMinutes(new Date(), new Date(this.card.createdOn));\r\n            if (minutes === 1) {\r\n                return this.i18nService.get('pushnotifications.components.RES_Card_Minute_Ago');\r\n            }\r\n            else if (minutes < 60) {\r\n                return this.i18nService.get('pushnotifications.components.RES_Card_Minutes_Ago').replace('{0}', minutes.toString());\r\n            }\r\n            else {\r\n                return new DateFieldViewPipe(this.appContextService).transform(this.card.createdOn.toString(), 'LT');\r\n            }\r\n        }\r\n        else {\r\n            return new DateFieldViewPipe(this.appContextService).transform(this.card.createdOn.toString(), 'LL');\r\n        }\r\n    }\r\n    /**\r\n     * Reset the card style\r\n     */\r\n    resetStyle() {\r\n        this.style = {\r\n            transform: 'translateX(0)',\r\n            opacity: 1\r\n        };\r\n        this.animationCardMobileEnable = false;\r\n    }\r\n    /**\r\n     * Remove the card and respective notification\r\n     */\r\n    cleanCard() {\r\n        if (this.card.type === NotificationTypeEnum.error) {\r\n            const self = this;\r\n            this.messagesService.showModal({\r\n                title: this.i18nService.get('pushnotifications.components.RES_DeleteCriticalNotification_Title'),\r\n                detail: this.i18nService.get('pushnotifications.components.RES_DeleteCriticalNotification_Detail'),\r\n                callbacks: {\r\n                    yes: () => {\r\n                        self.removeCard();\r\n                    },\r\n                    no: () => {\r\n                        self.resetStyle();\r\n                    }\r\n                }\r\n            });\r\n        }\r\n        else {\r\n            this.removeCard();\r\n        }\r\n    }\r\n    /**\r\n     * Add animation and remove the card\r\n     */\r\n    removeCard() {\r\n        this.animationEnable = true;\r\n        setTimeout(() => {\r\n            this.disposeCard.emit();\r\n        }, 500);\r\n    }\r\n}\r\nCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CardComponent, deps: [{ token: i1.AppContextService }, { token: i2.MessagesService }, { token: i3.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: CardComponent, selector: \"pri-card-component\", inputs: { isMobileDevice: \"isMobileDevice\", card: \"card\" }, outputs: { disposeCard: \"disposeCard\" }, ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"card-container\\\"\\r\\n\\t[ngStyle]=\\\"style\\\"\\r\\n\\t[ngClass]=\\\"notificationTypeEnum[card.type]\\\"\\r\\n\\t(touchstart)=\\\"touchstart($event)\\\"\\r\\n\\t(touchmove)=\\\"touchmove($event)\\\"\\r\\n\\t(touchend)=\\\"touchend()\\\"\\r\\n\\t[@animCard]=\\\"animationEnable ? 'leave' : ''\\\">\\r\\n\\t<div class=\\\"body-card-container\\\">\\r\\n\\t\\t<div class=\\\"title-date-container\\\">\\r\\n\\t\\t\\t<div class=\\\"title\\\" *ngIf=\\\"card.title\\\" priTooltipHover>{{ card.title }}</div>\\r\\n\\t\\t\\t<div class=\\\"date-container\\\" [ngClass]=\\\"{ 'not-title': !card.title }\\\">{{ cardFormattedDate }}</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div priInnerHTML class=\\\"message\\\" *ngIf=\\\"card.body\\\" [innerHTML]=\\\"card.body\\\"></div>\\r\\n\\t</div>\\r\\n</div>\\r\\n<div *ngIf=\\\"!animationEnable && !isMobileDevice\\\" class=\\\"close-card ti-ux-close\\\" (click)=\\\"dispose($event)\\\"></div>\\r\\n<div\\r\\n\\t*ngIf=\\\"!animationEnable && isMobileDevice\\\"\\r\\n\\tclass=\\\"mobile-trash ti-ux-close\\\"\\r\\n\\t[@animTrash]=\\\"animationCardMobileEnable ? 'anime' : ''\\\"></div>\\r\\n\", styles: [\"pri-card-component{display:flex;width:100%;margin-bottom:12px;flex-shrink:0;position:relative}pri-card-component .card-container{display:flex;z-index:2;flex-direction:column;width:100%;height:100%;padding:6px 12px 11px 8px;border-left:4px solid transparent;border-radius:4px;background-color:var(--grey-2)}pri-card-component .card-container .body-card-container{display:flex;flex-direction:column;width:100%;height:100%;min-height:40px;overflow:hidden}pri-card-component .card-container .body-card-container .title-date-container{display:flex;width:100%;margin-bottom:7px;align-items:baseline}pri-card-component .card-container .body-card-container .title-date-container .title{width:100%;color:var(--grey-8);font-size:14px;font-weight:500;padding-right:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-card-component .card-container .body-card-container .title-date-container .date-container{display:flex;justify-content:flex-end;font-size:10px;color:var(--grey-7);font-weight:500;flex-shrink:0}pri-card-component .card-container .body-card-container .title-date-container .date-container.not-title{width:100%}pri-card-component .card-container .body-card-container .message{color:var(--grey-7);font-size:13px;line-height:16px;text-align:left}pri-card-component .card-container.success{border-left-color:var(--success-100)}pri-card-component .card-container.info{border-left-color:var(--info-100)}pri-card-component .card-container.warning{border-left-color:var(--warning-100)}pri-card-component .card-container.error{border-left-color:var(--error-100)}pri-card-component .close-card{position:absolute;font-size:16px;right:10px;top:8px;color:var(--grey-8);cursor:pointer;display:none;z-index:3}pri-card-component .mobile-trash{display:none;font-size:13px}pri-card-component.mobile .card-container{-webkit-user-select:none;user-select:none}pri-card-component.mobile .mobile-trash{position:absolute;display:flex;align-items:center;height:100%;left:12px;font-size:24px;color:var(--grey-8)}pri-card-component:not(.mobile):hover .card-container{background-color:var(--grey-1);box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-card-component:not(.mobile):hover .card-container .body-card-container .title-date-container .title{padding-right:22px}pri-card-component:not(.mobile):hover .card-container .body-card-container .title-date-container .date-container{display:none}pri-card-component:not(.mobile):hover .close-card{display:flex;font-size:13px}\\n\"], dependencies: [{ kind: \"directive\", type: i4.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i4.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"directive\", type: i2.InnerHTMLDirective, selector: \"[priInnerHTML]\" }], animations: [\r\n        trigger('animCard', [\r\n            transition('* => leave', [\r\n                sequence([\r\n                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                ])\r\n            ])\r\n        ]),\r\n        trigger('animTrash', [\r\n            transition('* => anime', [\r\n                style({ transform: 'translateX(-50px)' }),\r\n                animate('.5s ease', style({ transform: 'translateX(0)' }))\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CardComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-card-component', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('animCard', [\r\n                            transition('* => leave', [\r\n                                sequence([\r\n                                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                                ])\r\n                            ])\r\n                        ]),\r\n                        trigger('animTrash', [\r\n                            transition('* => anime', [\r\n                                style({ transform: 'translateX(-50px)' }),\r\n                                animate('.5s ease', style({ transform: 'translateX(0)' }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<div\\r\\n\\tclass=\\\"card-container\\\"\\r\\n\\t[ngStyle]=\\\"style\\\"\\r\\n\\t[ngClass]=\\\"notificationTypeEnum[card.type]\\\"\\r\\n\\t(touchstart)=\\\"touchstart($event)\\\"\\r\\n\\t(touchmove)=\\\"touchmove($event)\\\"\\r\\n\\t(touchend)=\\\"touchend()\\\"\\r\\n\\t[@animCard]=\\\"animationEnable ? 'leave' : ''\\\">\\r\\n\\t<div class=\\\"body-card-container\\\">\\r\\n\\t\\t<div class=\\\"title-date-container\\\">\\r\\n\\t\\t\\t<div class=\\\"title\\\" *ngIf=\\\"card.title\\\" priTooltipHover>{{ card.title }}</div>\\r\\n\\t\\t\\t<div class=\\\"date-container\\\" [ngClass]=\\\"{ 'not-title': !card.title }\\\">{{ cardFormattedDate }}</div>\\r\\n\\t\\t</div>\\r\\n\\t\\t<div priInnerHTML class=\\\"message\\\" *ngIf=\\\"card.body\\\" [innerHTML]=\\\"card.body\\\"></div>\\r\\n\\t</div>\\r\\n</div>\\r\\n<div *ngIf=\\\"!animationEnable && !isMobileDevice\\\" class=\\\"close-card ti-ux-close\\\" (click)=\\\"dispose($event)\\\"></div>\\r\\n<div\\r\\n\\t*ngIf=\\\"!animationEnable && isMobileDevice\\\"\\r\\n\\tclass=\\\"mobile-trash ti-ux-close\\\"\\r\\n\\t[@animTrash]=\\\"animationCardMobileEnable ? 'anime' : ''\\\"></div>\\r\\n\", styles: [\"pri-card-component{display:flex;width:100%;margin-bottom:12px;flex-shrink:0;position:relative}pri-card-component .card-container{display:flex;z-index:2;flex-direction:column;width:100%;height:100%;padding:6px 12px 11px 8px;border-left:4px solid transparent;border-radius:4px;background-color:var(--grey-2)}pri-card-component .card-container .body-card-container{display:flex;flex-direction:column;width:100%;height:100%;min-height:40px;overflow:hidden}pri-card-component .card-container .body-card-container .title-date-container{display:flex;width:100%;margin-bottom:7px;align-items:baseline}pri-card-component .card-container .body-card-container .title-date-container .title{width:100%;color:var(--grey-8);font-size:14px;font-weight:500;padding-right:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-card-component .card-container .body-card-container .title-date-container .date-container{display:flex;justify-content:flex-end;font-size:10px;color:var(--grey-7);font-weight:500;flex-shrink:0}pri-card-component .card-container .body-card-container .title-date-container .date-container.not-title{width:100%}pri-card-component .card-container .body-card-container .message{color:var(--grey-7);font-size:13px;line-height:16px;text-align:left}pri-card-component .card-container.success{border-left-color:var(--success-100)}pri-card-component .card-container.info{border-left-color:var(--info-100)}pri-card-component .card-container.warning{border-left-color:var(--warning-100)}pri-card-component .card-container.error{border-left-color:var(--error-100)}pri-card-component .close-card{position:absolute;font-size:16px;right:10px;top:8px;color:var(--grey-8);cursor:pointer;display:none;z-index:3}pri-card-component .mobile-trash{display:none;font-size:13px}pri-card-component.mobile .card-container{-webkit-user-select:none;user-select:none}pri-card-component.mobile .mobile-trash{position:absolute;display:flex;align-items:center;height:100%;left:12px;font-size:24px;color:var(--grey-8)}pri-card-component:not(.mobile):hover .card-container{background-color:var(--grey-1);box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1)}pri-card-component:not(.mobile):hover .card-container .body-card-container .title-date-container .title{padding-right:22px}pri-card-component:not(.mobile):hover .card-container .body-card-container .title-date-container .date-container{display:none}pri-card-component:not(.mobile):hover .close-card{display:flex;font-size:13px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1.AppContextService }, { type: i2.MessagesService }, { type: i3.I18nService }]; }, propDecorators: { isMobileDevice: [{\r\n                type: Input\r\n            }], disposeCard: [{\r\n                type: Output\r\n            }], card: [{\r\n                type: Input\r\n            }] } });\n\nclass TabsGroupsModel {\r\n    static groupsIntervals() {\r\n        const groups = [{\r\n                type: 0 /* IntervalsEnum.today */,\r\n                label: 'pushnotifications.components.RES_Interval_Group_Today'\r\n            }, {\r\n                type: 1 /* IntervalsEnum.yesterday */,\r\n                label: 'pushnotifications.components.RES_Interval_Group_Yesterday'\r\n            }, {\r\n                type: 2 /* IntervalsEnum.this_week */,\r\n                label: 'pushnotifications.components.RES_Interval_Group_This_Week'\r\n            }, {\r\n                type: 3 /* IntervalsEnum.last_week */,\r\n                label: 'pushnotifications.components.RES_Interval_Group_Last_week'\r\n            }, {\r\n                type: 4 /* IntervalsEnum.older */,\r\n                label: 'pushnotifications.components.RES_Interval_Group_Older'\r\n            }];\r\n        return groups;\r\n    }\r\n    static groupsLevel() {\r\n        const groups = [{\r\n                type: NotificationTypeEnum.error,\r\n                label: 'pushnotifications.components.RES_Level_Group_Error'\r\n            }, {\r\n                type: NotificationTypeEnum.warning,\r\n                label: 'pushnotifications.components.RES_Level_Group_Warning'\r\n            }, {\r\n                type: NotificationTypeEnum.success,\r\n                label: 'pushnotifications.components.RES_Level_Group_Success'\r\n            }, {\r\n                type: NotificationTypeEnum.info,\r\n                label: 'pushnotifications.components.RES_Level_Group_Info'\r\n            }];\r\n        return groups;\r\n    }\r\n}\n\nclass PanelComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     * @param messagesService Service responsible to launch different type of messages\r\n     * @param i18nService Service responsible to handle language translations\r\n     * @param deviceService Service responsible to handles all operations that are about the different devices that users could use\r\n     * @param changeDetectorRef Base class for Angular Views, provides change detection functionality\r\n     */\r\n    constructor(messagesService, i18nService, deviceService, changeDetectorRef) {\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        this.deviceService = deviceService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        /** Will be triggered when the card or group card disposed */\r\n        this.disposeCardGroup = new EventEmitter();\r\n        /** The length of cards visible  */\r\n        this.maxCardsVisible = 500;\r\n        /** List of tabs to use in TabsComponent */\r\n        this.tabs = [{\r\n                id: 1 /* TabsEnum.Date */,\r\n                label: this.i18nService.get('pushnotifications.components.RES_Tab_Date')\r\n            }, {\r\n                id: 2 /* TabsEnum.Level */,\r\n                label: this.i18nService.get('pushnotifications.components.RES_Tab_Level')\r\n            }];\r\n        /** Array the groups of time intervals */\r\n        this.intervals = TabsGroupsModel.groupsIntervals();\r\n        /** Array the groups of levels */\r\n        this.levels = TabsGroupsModel.groupsLevel();\r\n        this.isMobileDevice = this.deviceService.isMobileBrowser();\r\n    }\r\n    /**\r\n     * Lifecycle Hook executed when the component is created\r\n     */\r\n    ngOnInit() {\r\n        this.changeSelectedTab(this.tabs[0]);\r\n        this.refreshCards.subscribe(() => {\r\n            this.setGroupsCards();\r\n        });\r\n    }\r\n    /**\r\n     * Will be triggered when the selected tab changed\r\n     */\r\n    changeSelectedTab(selectedTab) {\r\n        this.selectedTab = selectedTab;\r\n        this.resetPanelScroll();\r\n        this.setGroupsCards();\r\n    }\r\n    /**\r\n     * Clean a card\r\n     *\r\n     * @param card the card\r\n     */\r\n    cleanCard(card, cardGroup) {\r\n        cardGroup.cards.splice(cardGroup.cards.indexOf(card), 1);\r\n        this.disposeCardGroup.emit([card]);\r\n        if (cardGroup.cards.length === 0) {\r\n            this.removeCardGroup(cardGroup);\r\n        }\r\n    }\r\n    /**\r\n     * Remove a card group\r\n     *\r\n     * @param cardGroup the group of cards\r\n     * @param event Event to click\r\n     */\r\n    cleanGroup(event, cardGroup) {\r\n        event.stopPropagation();\r\n        const cards = cardGroup.cards.filter((card) => card.type === NotificationTypeEnum.error);\r\n        if (cards.length > 0) {\r\n            const self = this;\r\n            this.messagesService.showModal({\r\n                title: this.i18nService.get('pushnotifications.components.RES_DeleteCriticalNotifications_Title'),\r\n                detail: this.i18nService.get('pushnotifications.components.RES_DeleteCriticalNotifications_Detail'),\r\n                callbacks: {\r\n                    yes: () => {\r\n                        self.removeCardGroup(cardGroup);\r\n                    },\r\n                    no: () => { }\r\n                }\r\n            });\r\n        }\r\n        else {\r\n            this.removeCardGroup(cardGroup);\r\n        }\r\n    }\r\n    /**\r\n     * Get the cards of groups\r\n     */\r\n    setGroupsCards() {\r\n        this.groupCards = this.selectedTab?.id === 1 /* TabsEnum.Date */ ? this.createIntervalGroups() : this.createLevelGroups();\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    /**\r\n     * Remove the card group\r\n     *\r\n     * @param cardGroup the group of cards\r\n     */\r\n    removeCardGroup(cardGroup) {\r\n        cardGroup.animationEnable = true;\r\n        this.changeDetectorRef.detectChanges();\r\n        setTimeout(() => {\r\n            this.groupCards.splice(this.groupCards.indexOf(cardGroup), 1);\r\n            this.disposeCardGroup.emit(cardGroup.cards);\r\n        }, 500);\r\n    }\r\n    /**\r\n     * Create the groups when the tab selected is the time interval\r\n     */\r\n    createIntervalGroups() {\r\n        const cardGroups = [];\r\n        this.intervals.forEach((interval) => {\r\n            const cards = this.cards.filter((card) => {\r\n                const date = new Date(card.createdOn);\r\n                switch (interval.type) {\r\n                    case 0 /* IntervalsEnum.today */:\r\n                        return isToday(date);\r\n                    case 1 /* IntervalsEnum.yesterday */:\r\n                        return isYesterday(date);\r\n                    case 2 /* IntervalsEnum.this_week */:\r\n                        return isThisWeek(date) && isBefore(date, startOfYesterday());\r\n                    case 3 /* IntervalsEnum.last_week */:\r\n                        return getWeek(date) === getWeek(new Date()) - 1;\r\n                    case 4 /* IntervalsEnum.older */:\r\n                        return date < addWeeks(startOfWeek(new Date()), -1);\r\n                }\r\n            });\r\n            if (cards.length > 0) {\r\n                cardGroups.push({\r\n                    title: this.i18nService.get(interval.label),\r\n                    cards\r\n                });\r\n            }\r\n        });\r\n        return cardGroups;\r\n    }\r\n    /**\r\n     * Create the groups when the tab selected is the criticality level\r\n     */\r\n    createLevelGroups() {\r\n        const cardGroups = [];\r\n        this.levels.forEach((level) => {\r\n            const cards = this.cards.filter((card) => card.type === level.type);\r\n            if (cards.length > 0) {\r\n                cardGroups.push({\r\n                    title: this.i18nService.get(level.label),\r\n                    cards\r\n                });\r\n            }\r\n        });\r\n        return cardGroups;\r\n    }\r\n    /**\r\n     * Reset the position of scroll\r\n     */\r\n    resetPanelScroll() {\r\n        if (this.cardsPanel) {\r\n            this.cardsPanel.nativeElement.scrollTop = 0;\r\n        }\r\n    }\r\n}\r\nPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelComponent, deps: [{ token: i2.MessagesService }, { token: i3.I18nService }, { token: i1.DeviceService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PanelComponent, selector: \"pri-panel-component\", inputs: { refreshCards: \"refreshCards\", cards: \"cards\" }, outputs: { disposeCardGroup: \"disposeCardGroup\" }, viewQueries: [{ propertyName: \"cardsPanel\", first: true, predicate: [\"cardsPanel\"], descendants: true }], ngImport: i0, template: \"<pri-tabs-component \\r\\n    [tabs]=\\\"tabs\\\" \\r\\n    [defaultSelectedTab]=\\\"selectedTab\\\" \\r\\n    (changeSelectedTab)=\\\"changeSelectedTab($event)\\\"\\r\\n>\\r\\n</pri-tabs-component>\\r\\n<div #cardsPanel class=\\\"cards-panel\\\">\\r\\n    <div class=\\\"cards-group-container\\\" *ngFor=\\\"let group of groupCards\\\"\\r\\n        [@animCardGroup]=\\\"group.animationEnable ? 'animate' : ''\\\">\\r\\n        <div class=\\\"cards-group-header\\\">\\r\\n            <div class=\\\"cards-group-header-title\\\">{{group.title}}</div>\\r\\n            <div class=\\\"cards-group-header-clean\\\" (click)=\\\"cleanGroup($event, group)\\\">\\r\\n                {{'pushnotifications.components.RES_Clean_Notifications' | priI18n}}</div>\\r\\n        </div>\\r\\n        <ng-container>\\r\\n            <ng-container *ngFor=\\\"let card of group.cards | slice:0:maxCardsVisible\\\">\\r\\n                <ng-container [ngTemplateOutlet]=\\\"cardTemplate\\\" [ngTemplateOutletContext]=\\\"{card: card, group: group}\\\">\\r\\n                </ng-container>\\r\\n            </ng-container>\\r\\n        </ng-container>\\r\\n        <!-- NOT SUPPORT ANGULAR 11 -->\\r\\n        <!--<virtual-scroller *ngIf=\\\"cards.length > maxCardsVisible\\\" #scroll [items]=\\\"group.cards\\\" [parentScroll]=\\\"cardsPanel\\\" [enableUnequalChildrenSizes]=\\\"true\\\" [modifyOverflowStyleOfParentScroll]=\\\"false\\\">\\r\\n            <ng-container *ngFor=\\\"let card of scroll.viewPortItems\\\">\\r\\n                <ng-container [ngTemplateOutlet]=\\\"cardTemplate\\\" [ngTemplateOutletContext]=\\\"{card: card, group: group}\\\"></ng-container>\\r\\n            </ng-container>\\r\\n        </virtual-scroller>-->\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<ng-template #cardTemplate let-card=\\\"card\\\" let-group=\\\"group\\\">\\r\\n    <pri-card-component [card]=\\\"card\\\" [class.mobile]=\\\"isMobileDevice\\\" [isMobileDevice]=\\\"isMobileDevice\\\"\\r\\n        (disposeCard)=\\\"cleanCard(card, group)\\\"></pri-card-component>\\r\\n</ng-template>\", styles: [\"pri-panel-component{display:flex;width:100%;height:100%;flex-direction:column}pri-panel-component .cards-panel{display:flex;flex-direction:column;width:100%;height:100%;padding:0 12px;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}pri-panel-component .cards-panel .cards-group-container{display:flex;flex-direction:column;width:100%;flex-shrink:0}pri-panel-component .cards-panel .cards-group-container .cards-group-header{display:flex;flex-direction:row;flex-shrink:0;width:100%;overflow:hidden;margin-top:20px;margin-bottom:12px;align-items:baseline}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-title{width:100%;margin-right:2px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 12px;color:var(--grey-8);font-size:20px;font-weight:500}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-clean{display:flex;flex-shrink:0;color:var(--theme-100);font-size:12px;font-weight:400;cursor:pointer;padding:5px;border-radius:4px}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-clean:hover{background-color:var(--theme-10)}\\n\"], dependencies: [{ kind: \"directive\", type: i4.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i4.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"component\", type: i2.TabsComponent, selector: \"pri-tabs-component\", inputs: [\"tabs\", \"defaultSelectedTab\", \"selectedTab\"], outputs: [\"changeSelectedTab\"] }, { kind: \"component\", type: CardComponent, selector: \"pri-card-component\", inputs: [\"isMobileDevice\", \"card\"], outputs: [\"disposeCard\"] }, { kind: \"pipe\", type: i4.SlicePipe, name: \"slice\" }, { kind: \"pipe\", type: i3.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('animCardGroup', [\r\n            transition('* => animate', [\r\n                sequence([\r\n                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                ])\r\n            ])\r\n        ]),\r\n        trigger('animCard', [\r\n            transition(':leave', [\r\n                sequence([\r\n                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                ])\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PanelComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-panel-component', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('animCardGroup', [\r\n                            transition('* => animate', [\r\n                                sequence([\r\n                                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                                ])\r\n                            ])\r\n                        ]),\r\n                        trigger('animCard', [\r\n                            transition(':leave', [\r\n                                sequence([\r\n                                    animate('.35s ease', style({ height: '*', opacity: 0, transform: 'translateX(500px)' })),\r\n                                    animate('.15s ease', style({ height: '0', opacity: 0, transform: 'translateX(500px)' }))\r\n                                ])\r\n                            ])\r\n                        ])\r\n                    ], template: \"<pri-tabs-component \\r\\n    [tabs]=\\\"tabs\\\" \\r\\n    [defaultSelectedTab]=\\\"selectedTab\\\" \\r\\n    (changeSelectedTab)=\\\"changeSelectedTab($event)\\\"\\r\\n>\\r\\n</pri-tabs-component>\\r\\n<div #cardsPanel class=\\\"cards-panel\\\">\\r\\n    <div class=\\\"cards-group-container\\\" *ngFor=\\\"let group of groupCards\\\"\\r\\n        [@animCardGroup]=\\\"group.animationEnable ? 'animate' : ''\\\">\\r\\n        <div class=\\\"cards-group-header\\\">\\r\\n            <div class=\\\"cards-group-header-title\\\">{{group.title}}</div>\\r\\n            <div class=\\\"cards-group-header-clean\\\" (click)=\\\"cleanGroup($event, group)\\\">\\r\\n                {{'pushnotifications.components.RES_Clean_Notifications' | priI18n}}</div>\\r\\n        </div>\\r\\n        <ng-container>\\r\\n            <ng-container *ngFor=\\\"let card of group.cards | slice:0:maxCardsVisible\\\">\\r\\n                <ng-container [ngTemplateOutlet]=\\\"cardTemplate\\\" [ngTemplateOutletContext]=\\\"{card: card, group: group}\\\">\\r\\n                </ng-container>\\r\\n            </ng-container>\\r\\n        </ng-container>\\r\\n        <!-- NOT SUPPORT ANGULAR 11 -->\\r\\n        <!--<virtual-scroller *ngIf=\\\"cards.length > maxCardsVisible\\\" #scroll [items]=\\\"group.cards\\\" [parentScroll]=\\\"cardsPanel\\\" [enableUnequalChildrenSizes]=\\\"true\\\" [modifyOverflowStyleOfParentScroll]=\\\"false\\\">\\r\\n            <ng-container *ngFor=\\\"let card of scroll.viewPortItems\\\">\\r\\n                <ng-container [ngTemplateOutlet]=\\\"cardTemplate\\\" [ngTemplateOutletContext]=\\\"{card: card, group: group}\\\"></ng-container>\\r\\n            </ng-container>\\r\\n        </virtual-scroller>-->\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<ng-template #cardTemplate let-card=\\\"card\\\" let-group=\\\"group\\\">\\r\\n    <pri-card-component [card]=\\\"card\\\" [class.mobile]=\\\"isMobileDevice\\\" [isMobileDevice]=\\\"isMobileDevice\\\"\\r\\n        (disposeCard)=\\\"cleanCard(card, group)\\\"></pri-card-component>\\r\\n</ng-template>\", styles: [\"pri-panel-component{display:flex;width:100%;height:100%;flex-direction:column}pri-panel-component .cards-panel{display:flex;flex-direction:column;width:100%;height:100%;padding:0 12px;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}pri-panel-component .cards-panel .cards-group-container{display:flex;flex-direction:column;width:100%;flex-shrink:0}pri-panel-component .cards-panel .cards-group-container .cards-group-header{display:flex;flex-direction:row;flex-shrink:0;width:100%;overflow:hidden;margin-top:20px;margin-bottom:12px;align-items:baseline}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-title{width:100%;margin-right:2px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 12px;color:var(--grey-8);font-size:20px;font-weight:500}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-clean{display:flex;flex-shrink:0;color:var(--theme-100);font-size:12px;font-weight:400;cursor:pointer;padding:5px;border-radius:4px}pri-panel-component .cards-panel .cards-group-container .cards-group-header .cards-group-header-clean:hover{background-color:var(--theme-10)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i2.MessagesService }, { type: i3.I18nService }, { type: i1.DeviceService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { disposeCardGroup: [{\r\n                type: Output\r\n            }], refreshCards: [{\r\n                type: Input\r\n            }], cards: [{\r\n                type: Input\r\n            }], cardsPanel: [{\r\n                type: ViewChild,\r\n                args: ['cardsPanel', { static: false }]\r\n            }] } });\n\nclass PriNotificationsComponent {\r\n    constructor(signalRService, messagesService, i18nService, appContextService, broadcastService, rightPanelService, roleService) {\r\n        this.signalRService = signalRService;\r\n        this.messagesService = messagesService;\r\n        this.i18nService = i18nService;\r\n        this.appContextService = appContextService;\r\n        this.broadcastService = broadcastService;\r\n        this.rightPanelService = rightPanelService;\r\n        this.roleService = roleService;\r\n        /** Will be triggered when the array of cards changed */\r\n        this.refreshCards = new EventEmitter();\r\n        /** Describes the current state of the signalR hub connection to the server */\r\n        this.signalRConnectionStates = HubConnectionState; // used to be available on the HTML\r\n        /** The array of cards */\r\n        this.cards = [];\r\n        /** The panel title */\r\n        this.panelTitle = '';\r\n        /** The attempts to reconnect to signalR */\r\n        this.attempts = 1;\r\n        /** The default time to reconnect */\r\n        this.timeToReconnect = 10000;\r\n        /** The array with notifications to dispose */\r\n        this.notificationsToDisposed = [];\r\n        /** The maximum of notifications send to dispose */\r\n        this.maxNotificationsToDisposed = 200;\r\n        this.destroy$ = new Subject();\r\n    }\r\n    /**\r\n     * Lifecycle Hook executed when the component is created\r\n     */\r\n    ngOnInit() {\r\n        /** Invoked when is received a new notification */\r\n        this.signalRService.notification.subscribe((notification) => {\r\n            this.convertToCard(notification);\r\n        });\r\n        /** Invoked when the connection with signalR is completed */\r\n        this.signalRService.connectionComplete.subscribe(() => {\r\n            this.getNotifications();\r\n        });\r\n        /** Invoked when the get all notifications is completed */\r\n        this.signalRService.getNotificationsComplete.subscribe(() => {\r\n            this.getNotificationsComplete = true;\r\n        });\r\n        /** Invoked when is received a signalR error */\r\n        this.signalRService.disposedComplete.subscribe((data) => {\r\n            this.sendToDispose();\r\n        });\r\n        /** Invoked when is received a signalR error */\r\n        this.signalRService.signalRStatus.subscribe((state) => {\r\n            console.log('NOTIFICATIONS ERROR: ' + SignalRStateEnum[state]);\r\n            switch (state) {\r\n                case SignalRStateEnum.connectError:\r\n                case SignalRStateEnum.connectionClose:\r\n                    this.rightPanelService.closeRightPanel$.next({\r\n                        componentRef: this.rightPanelService.currentOpenComponentRef\r\n                    });\r\n                    clearTimeout(this._timeout);\r\n                    this.attempts++;\r\n                    const time = this.timeToReconnect * this.attempts;\r\n                    this._timeout = setTimeout(() => {\r\n                        this._timeout = undefined;\r\n                        this.initSignalR();\r\n                    }, time);\r\n                    break;\r\n                case SignalRStateEnum.disposedError:\r\n                    this.getNotifications();\r\n                    break;\r\n                case SignalRStateEnum.reconnecting:\r\n                    this.rightPanelService.closeRightPanel$.next({\r\n                        componentRef: this.rightPanelService.currentOpenComponentRef\r\n                    });\r\n                    break;\r\n            }\r\n        });\r\n        this.initSignalR();\r\n        this.rightPanelService.closeRightPanel$\r\n            .pipe(filter(({ componentRef }) => componentRef?.instance?.config?.bodyID === 'notifications-wrapper'), takeUntil(this.destroy$))\r\n            .subscribe(() => {\r\n            this.panelIsOpened = false;\r\n        });\r\n        this.panelTitle = this.i18nService.get('pushnotifications.components.RES_Notifications_Central_Title');\r\n        this.rightPanelModel = {\r\n            body: this.body,\r\n            bodyID: 'notifications-wrapper',\r\n            parent: this.bell,\r\n            class: 'under-modal'\r\n        };\r\n    }\r\n    /**\r\n     * This lifecycle hook will be executed when the component is destroyed\r\n     */\r\n    ngOnDestroy() {\r\n        this.rightPanelService.title$.next('');\r\n        if (this.roleSubscription) {\r\n            this.roleSubscription.unsubscribe();\r\n        }\r\n    }\r\n    /**\r\n     * Change the panel state\r\n     */\r\n    onTogglePanel() {\r\n        if (!this.panelIsOpened) {\r\n            this.rightPanelService.title$.next(this.panelTitle);\r\n            this.rightPanelService.openRightPanel$.next(this.rightPanelModel);\r\n            this.panelIsOpened = true;\r\n        }\r\n        else {\r\n            this.rightPanelService.closeRightPanel$.next({\r\n                componentRef: this.rightPanelService.currentOpenComponentRef\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Dispose the array of notifications\r\n     */\r\n    disposeNotifications(cards) {\r\n        cards.forEach((card) => {\r\n            this.notificationsToDisposed.push({\r\n                id: card.id,\r\n                target: card.target\r\n            });\r\n            this.removeCard(card);\r\n        });\r\n        this.sendToDispose();\r\n    }\r\n    /**\r\n     * Initialize connect to signalR\r\n     */\r\n    initSignalR() {\r\n        const context = this.appContextService.getContext();\r\n        const productName = context.productName;\r\n        const accountKey = this.appContextService.tenantKey;\r\n        const subscriptionKey = this.appContextService.organizationKey;\r\n        const roleKey = this.roleService.roleKey;\r\n        const userId = context.user.id;\r\n        const groups = [\r\n            SignalRHelper.buildTarget([productName]),\r\n            SignalRHelper.buildTarget([productName, userId])\r\n        ];\r\n        if (roleKey) {\r\n            groups.push(SignalRHelper.buildTarget([productName, roleKey]));\r\n        }\r\n        if (accountKey && subscriptionKey) {\r\n            groups.push(SignalRHelper.buildTarget([productName, accountKey]));\r\n            groups.push(SignalRHelper.buildTarget([productName, accountKey, subscriptionKey]));\r\n            groups.push(SignalRHelper.buildTarget([productName, accountKey, subscriptionKey, userId]));\r\n            if (roleKey) {\r\n                groups.push(SignalRHelper.buildTarget([productName, accountKey, subscriptionKey, roleKey]));\r\n            }\r\n        }\r\n        const signalRGroups = {\r\n            groups,\r\n            userId\r\n        };\r\n        this.signalRService.init(signalRGroups, this.pnsUri);\r\n    }\r\n    /**\r\n     * Get user notifications\r\n     */\r\n    getNotifications() {\r\n        this.cards = [];\r\n        this.getNotificationsComplete = false;\r\n        // get all users notifications\r\n        this.signalRService.getAllNotifications();\r\n    }\r\n    /**\r\n     * Dispose notifications on signalR\r\n     */\r\n    sendToDispose() {\r\n        if (this.notificationsToDisposed.length) {\r\n            const disposedItems = this.notificationsToDisposed.splice(0, this.maxNotificationsToDisposed);\r\n            this.signalRService.disposedNotification({\r\n                disposedBy: this.appContextService.user.id,\r\n                disposedItems\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Convert signalR notification to push notification card\r\n     *\r\n     * @param notification the signalR notification\r\n     */\r\n    convertToCard(notification) {\r\n        const title = this.getMessageByCulture(notification.message, 'title');\r\n        const body = this.getMessageByCulture(notification.message, 'message');\r\n        if (title || body) {\r\n            const card = {\r\n                id: notification.id,\r\n                target: notification.target,\r\n                type: notification.notificationType,\r\n                title: title ? title.value : undefined,\r\n                body: body ? body.value : undefined,\r\n                createdOn: notification.createdOn\r\n            };\r\n            if (notification.notificationType === NotificationTypeEnum.error && body && this.getNotificationsComplete) {\r\n                this.messagesService.show(new MessageInfo(body.value, null, 8 /* MessageType.Error */));\r\n            }\r\n            this.addCard(card);\r\n        }\r\n    }\r\n    /**\r\n     * Get the message by user culture\r\n     *\r\n     * @param messages the array of messages\r\n     * @param key the key to filter the message\r\n     */\r\n    getMessageByCulture(messages, key) {\r\n        const messagesByKey = messages.filter((m) => m.key.toLowerCase() === key);\r\n        if (!messagesByKey) {\r\n            return undefined;\r\n        }\r\n        let message = messagesByKey.find((m) => m.culture === this.appContextService.user.culture);\r\n        if (!message) {\r\n            message = messagesByKey.find((m) => m.culture.split('-')[0].toUpperCase() ===\r\n                this.appContextService.user.culture.split('-')[0].toUpperCase());\r\n            if (!message) {\r\n                message = messagesByKey.find((m) => m.culture === 'en-US');\r\n                if (!message) {\r\n                    message = messagesByKey[0];\r\n                }\r\n            }\r\n        }\r\n        return message;\r\n    }\r\n    /**\r\n     * Add new card\r\n     */\r\n    addCard(card) {\r\n        this.cards.push(card);\r\n        this.sortCards();\r\n        this.refreshCards.emit();\r\n    }\r\n    /**\r\n     * Remove a cards array\r\n     */\r\n    removeCard(card) {\r\n        this.cards.splice(this.cards.indexOf(card), 1);\r\n        if (this.cards.length === 0) {\r\n            this.rightPanelService.closeRightPanel$.next({\r\n                componentRef: this.rightPanelService.currentOpenComponentRef\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Sort notifications by date\r\n     */\r\n    sortCards() {\r\n        this.cards.sort((a, b) => new Date(b.createdOn).getTime() - new Date(a.createdOn).getTime());\r\n    }\r\n}\r\nPriNotificationsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriNotificationsComponent, deps: [{ token: i1.SignalRService }, { token: i2.MessagesService }, { token: i3.I18nService }, { token: i1.AppContextService }, { token: i1.BroadcastService }, { token: i4$1.RightPanelService }, { token: i1.RoleService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriNotificationsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriNotificationsComponent, selector: \"pri-notifications\", inputs: { pnsUri: \"pnsUri\" }, viewQueries: [{ propertyName: \"body\", first: true, predicate: [\"body\"], descendants: true, static: true }, { propertyName: \"bell\", first: true, predicate: [\"bell\"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: \"<pri-bell-component #bell [ngClass]=\\\"{'open': panelIsOpened}\\\"\\r\\n    [signalRConnectionState]=\\\"(signalRService && signalRService.hubMessageConnection) ? signalRService.hubMessageConnection.state : signalRConnectionStates.Disconnected\\\"\\r\\n    [cards]=\\\"cards\\\" [panelIsOpened]=\\\"panelIsOpened\\\" [getNotificationsComplete]=\\\"getNotificationsComplete\\\"\\r\\n    (panelIsOpenedChange)=\\\"onTogglePanel()\\\"></pri-bell-component>\\r\\n<ng-template #body>\\r\\n    <pri-panel-component *ngIf=\\\"panelIsOpened\\\" [cards]=\\\"cards\\\" [refreshCards]=\\\"refreshCards\\\"\\r\\n        (disposeCardGroup)=\\\"disposeNotifications($event)\\\"></pri-panel-component>\\r\\n</ng-template>\", styles: [\"pri-notifications{width:100%;height:100%;cursor:default}\\n\"], dependencies: [{ kind: \"directive\", type: i4.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i4.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: BellComponent, selector: \"pri-bell-component\", inputs: [\"signalRConnectionState\", \"cards\", \"panelIsOpened\", \"getNotificationsComplete\"], outputs: [\"panelIsOpenedChange\"] }, { kind: \"component\", type: PanelComponent, selector: \"pri-panel-component\", inputs: [\"refreshCards\", \"cards\"], outputs: [\"disposeCardGroup\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriNotificationsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-notifications', encapsulation: ViewEncapsulation.None, template: \"<pri-bell-component #bell [ngClass]=\\\"{'open': panelIsOpened}\\\"\\r\\n    [signalRConnectionState]=\\\"(signalRService && signalRService.hubMessageConnection) ? signalRService.hubMessageConnection.state : signalRConnectionStates.Disconnected\\\"\\r\\n    [cards]=\\\"cards\\\" [panelIsOpened]=\\\"panelIsOpened\\\" [getNotificationsComplete]=\\\"getNotificationsComplete\\\"\\r\\n    (panelIsOpenedChange)=\\\"onTogglePanel()\\\"></pri-bell-component>\\r\\n<ng-template #body>\\r\\n    <pri-panel-component *ngIf=\\\"panelIsOpened\\\" [cards]=\\\"cards\\\" [refreshCards]=\\\"refreshCards\\\"\\r\\n        (disposeCardGroup)=\\\"disposeNotifications($event)\\\"></pri-panel-component>\\r\\n</ng-template>\", styles: [\"pri-notifications{width:100%;height:100%;cursor:default}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1.SignalRService }, { type: i2.MessagesService }, { type: i3.I18nService }, { type: i1.AppContextService }, { type: i1.BroadcastService }, { type: i4$1.RightPanelService }, { type: i1.RoleService }]; }, propDecorators: { pnsUri: [{\r\n                type: Input\r\n            }], body: [{\r\n                type: ViewChild,\r\n                args: ['body', { static: true }]\r\n            }], bell: [{\r\n                type: ViewChild,\r\n                args: ['bell', { static: true, read: ElementRef }]\r\n            }] } });\n\n/**\r\n * Defines the card filter types.\r\n */\r\n// eslint-disable-next-line no-shadow\r\nvar CardFiltersEnum;\r\n(function (CardFiltersEnum) {\r\n    CardFiltersEnum[CardFiltersEnum[\"insights\"] = 0] = \"insights\";\r\n    CardFiltersEnum[CardFiltersEnum[\"taskbox\"] = 1] = \"taskbox\";\r\n    CardFiltersEnum[CardFiltersEnum[\"alerts\"] = 2] = \"alerts\";\r\n})(CardFiltersEnum || (CardFiltersEnum = {}));\n\nclass PushNotificationsModule {\r\n    static forRoot() {\r\n        return {\r\n            ngModule: PushNotificationsModule\r\n        };\r\n    }\r\n}\r\nPushNotificationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PushNotificationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nPushNotificationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PushNotificationsModule, declarations: [PriNotificationsComponent, BellComponent, PanelComponent, CardComponent], imports: [CommonModule,\r\n        ComponentsModule, i3.PrimaveraI18nModule, PrimaveraServicesModule,\r\n        MatTooltipModule,\r\n        MatTabsModule], exports: [PriNotificationsComponent] });\r\nPushNotificationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PushNotificationsModule, imports: [CommonModule,\r\n        ComponentsModule,\r\n        PrimaveraI18nModule.forRoot(),\r\n        PrimaveraServicesModule,\r\n        MatTooltipModule,\r\n        MatTabsModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PushNotificationsModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [\r\n                        CommonModule,\r\n                        ComponentsModule,\r\n                        PrimaveraI18nModule.forRoot(),\r\n                        PrimaveraServicesModule,\r\n                        MatTooltipModule,\r\n                        MatTabsModule\r\n                    ],\r\n                    declarations: [PriNotificationsComponent, BellComponent, PanelComponent, CardComponent],\r\n                    providers: [],\r\n                    exports: [PriNotificationsComponent]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { BellComponent, CardComponent, CardFiltersEnum, PanelComponent, PriNotificationsComponent, PushNotificationsModule, TabsGroupsModel };\n","import { millisecondsInMinute } from \"../constants/index.js\";\nimport differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getRoundingMethod } from \"../_lib/roundingMethods/index.js\";\n/**\n * @name differenceInMinutes\n * @category Minute Helpers\n * @summary Get the number of minutes between the given dates.\n *\n * @description\n * Get the signed number of full (rounded towards 0) minutes between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of minutes\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?\n * const result = differenceInMinutes(\n *   new Date(2014, 6, 2, 12, 20, 0),\n *   new Date(2014, 6, 2, 12, 7, 59)\n * )\n * //=> 12\n *\n * @example\n * // How many minutes are between 10:01:59 and 10:00:00\n * const result = differenceInMinutes(\n *   new Date(2000, 0, 1, 10, 0, 0),\n *   new Date(2000, 0, 1, 10, 1, 59)\n * )\n * //=> -1\n */\nexport default function differenceInMinutes(dateLeft, dateRight, options) {\n  requiredArgs(2, arguments);\n  var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;\n  return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}","import isSameDay from \"../isSameDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isToday\n * @category Day Helpers\n * @summary Is the given date today?\n * @pure false\n *\n * @description\n * Is the given date today?\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is today\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 6 October 14:00:00 today?\n * const result = isToday(new Date(2014, 9, 6, 14, 0))\n * //=> true\n */\nexport default function isToday(dirtyDate) {\n  requiredArgs(1, arguments);\n  return isSameDay(dirtyDate, Date.now());\n}","import isSameDay from \"../isSameDay/index.js\";\nimport subDays from \"../subDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isYesterday\n * @category Day Helpers\n * @summary Is the given date yesterday?\n * @pure false\n *\n * @description\n * Is the given date yesterday?\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is yesterday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // If today is 6 October 2014, is 5 October 14:00:00 yesterday?\n * const result = isYesterday(new Date(2014, 9, 5, 14, 0))\n * //=> true\n */\nexport default function isYesterday(dirtyDate) {\n  requiredArgs(1, arguments);\n  return isSameDay(dirtyDate, subDays(Date.now(), 1));\n}","import isSameWeek from \"../isSameWeek/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isThisWeek\n * @category Week Helpers\n * @summary Is the given date in the same week as the current date?\n * @pure false\n *\n * @description\n * Is the given date in the same week as the current date?\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @param {Date|Number} date - the date to check\n * @param {Object} [options] - the object with options\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Boolean} the date is in this week\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n *\n * @example\n * // If today is 25 September 2014, is 21 September 2014 in this week?\n * const result = isThisWeek(new Date(2014, 8, 21))\n * //=> true\n *\n * @example\n * // If today is 25 September 2014 and week starts with Monday\n * // is 21 September 2014 in this week?\n * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 })\n * //=> false\n */\n\nexport default function isThisWeek(dirtyDate, options) {\n  requiredArgs(1, arguments);\n  return isSameWeek(dirtyDate, Date.now(), options);\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param {Date|Number} date - the date that should be before the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport default function isBefore(dirtyDate, dirtyDateToCompare) {\n  requiredArgs(2, arguments);\n  var date = toDate(dirtyDate);\n  var dateToCompare = toDate(dirtyDateToCompare);\n  return date.getTime() < dateToCompare.getTime();\n}","/**\n * @name startOfYesterday\n * @category Day Helpers\n * @summary Return the start of yesterday.\n * @pure false\n *\n * @description\n * Return the start of yesterday.\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `new Date()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the start of yesterday\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfYesterday()\n * //=> Sun Oct 5 2014 00:00:00\n */\nexport default function startOfYesterday() {\n  var now = new Date();\n  var year = now.getFullYear();\n  var month = now.getMonth();\n  var day = now.getDate();\n  var date = new Date(0);\n  date.setFullYear(year, month, day - 1);\n  date.setHours(0, 0, 0, 0);\n  return date;\n}","import * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, HostBinding, Injectable, Pipe, ElementRef, ViewEncapsulation, ViewChild, ViewChildren, Input, HostListener, NgModule } from '@angular/core';\nimport * as i6 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport * as i5 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from '@primavera/localization';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport * as i4 from '@primavera/services';\nimport { PrimaveraServicesModule } from '@primavera/services';\nimport * as i7 from '@primavera/components';\nimport { ComponentsModule } from '@primavera/components';\nimport { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { ESCAPE, ENTER, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';\nimport { ReplaySubject } from 'rxjs';\nimport * as i1 from '@angular/common/http';\nimport { HttpParams } from '@angular/common/http';\nimport * as i1$1 from '@angular/platform-browser';\n\nclass ListItemComponent {\r\n    constructor() {\r\n        this._isActive = false;\r\n    }\r\n    // This component allows to wrap search results and navigate with results,\r\n    // (Used in app search results, allow navigate with uparrow and downarrow in results)\r\n    get isActive() {\r\n        return this._isActive;\r\n    }\r\n    setActiveStyles() {\r\n        this._isActive = true;\r\n    }\r\n    setInactiveStyles() {\r\n        this._isActive = false;\r\n    }\r\n}\r\nListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ListItemComponent, selector: \"pri-list-item\", host: { properties: { \"class.active\": \"this.isActive\" } }, ngImport: i0, template: \"<ng-content></ng-content>\", changeDetection: i0.ChangeDetectionStrategy.OnPush });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ListItemComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-list-item', changeDetection: ChangeDetectionStrategy.OnPush, template: \"<ng-content></ng-content>\" }]\r\n        }], propDecorators: { isActive: [{\r\n                type: HostBinding,\r\n                args: ['class.active']\r\n            }] } });\n\nclass SearchService {\r\n    constructor() {\r\n        this._providers = [];\r\n    }\r\n    get providers() {\r\n        return this._providers;\r\n    }\r\n    registerProvider(provider) {\r\n        const existing = this._providers.filter(p => p.name === provider.name);\r\n        if (existing && existing.length > 0) {\r\n            console.error(`The search provider ${existing[0].name} is already registered!`);\r\n        }\r\n        this._providers.push(provider);\r\n    }\r\n    search(searchTerm) {\r\n        const subject = new ReplaySubject(1);\r\n        this.reading = true;\r\n        let providersCount = this.providers.length;\r\n        this._providers.forEach(p => {\r\n            p.search(searchTerm).then(data => {\r\n                providersCount--;\r\n                if (providersCount === 0) {\r\n                    this.reading = false;\r\n                }\r\n                subject.next(data);\r\n            });\r\n        });\r\n        return subject;\r\n    }\r\n}\r\nSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return []; } });\n\nclass SearchProvider {\r\n}\n\nclass SearchEngineService extends SearchProvider {\r\n    constructor(httpClient, searchService, i18nService, settingsService) {\r\n        super();\r\n        this.httpClient = httpClient;\r\n        this.searchService = searchService;\r\n        this.i18nService = i18nService;\r\n        this.settingsService = settingsService;\r\n        this.searchService.registerProvider(this);\r\n        this.name = 'SearchEngineService';\r\n        this.title = this.i18nService.get('search.components.RES_SearchEngine_Title');\r\n    }\r\n    async search(searchTerm) {\r\n        const queryResults = await this.query(searchTerm);\r\n        const searchResults = queryResults.map((element) => ({\r\n            title: element.title,\r\n            authorityTitle: this.title,\r\n            authorityName: this.name,\r\n            url: element.action?.detail,\r\n            snippet: element.description\r\n        }));\r\n        return searchResults;\r\n    }\r\n    async query(searchTerm) {\r\n        const { readFactsUrl } = await this.settingsService.getShellGeneralSettings();\r\n        if (!searchTerm || !readFactsUrl || readFactsUrl.length === 0) {\r\n            return [];\r\n        }\r\n        return await this.httpClient.get(readFactsUrl, {\r\n            params: this.getParameters(searchTerm)\r\n        }).toPromise();\r\n    }\r\n    getParameters(searchTerm) {\r\n        let params = new HttpParams();\r\n        if (searchTerm) {\r\n            params = params.append('searchTerm', searchTerm);\r\n        }\r\n        return params;\r\n    }\r\n}\r\nSearchEngineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchEngineService, deps: [{ token: i1.HttpClient }, { token: SearchService }, { token: i3.I18nService }, { token: i4.SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nSearchEngineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchEngineService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchEngineService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: SearchService }, { type: i3.I18nService }, { type: i4.SettingsService }]; } });\n\nclass SanitizeHtmlPipe {\r\n    constructor(sanitizer) {\r\n        this.sanitizer = sanitizer;\r\n    }\r\n    transform(value) {\r\n        return this.sanitizer.bypassSecurityTrustHtml(value);\r\n    }\r\n}\r\nSanitizeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SanitizeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });\r\nSanitizeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: SanitizeHtmlPipe, name: \"sanitizeHtml\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SanitizeHtmlPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'sanitizeHtml'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });\n\nclass SearchComponent {\r\n    constructor(searchService, searchEngineService, i18nService, hotkeysService, changeDetectorRef, routeHelperService, amsService) {\r\n        this.searchService = searchService;\r\n        this.searchEngineService = searchEngineService;\r\n        this.i18nService = i18nService;\r\n        this.hotkeysService = hotkeysService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n        this.title = 'Results';\r\n        /** Disables the focus from a tab key press */\r\n        this.disableKeyFocus = false;\r\n        //#region Public Properties\r\n        this.isClearSearchKeyDown = true;\r\n        this.noResultsLength = 10;\r\n        this.searchResults = new Array();\r\n        this.maxNoResultsDefaultLength = 30;\r\n        /** Holds the mouse down event state */\r\n        this.mouseDown = false;\r\n        // Add hotkeys\r\n        this.addHotKeys();\r\n    }\r\n    /** Gets the tab index number, allowing an element to be focusable or not via tabbing. */\r\n    get tabIndex() {\r\n        if (this.disableKeyFocus) {\r\n            return -1;\r\n        }\r\n        else {\r\n            return undefined;\r\n        }\r\n    }\r\n    /*\r\n     *\r\n     * Mouse down event listener which will call this function each time a mouse up is performed on the document.\r\n     * @param event Mouse up event.\r\n     */\r\n    onMouseUp(event) {\r\n        if (!this.rootElement.nativeElement.contains(event.target) && this.mouseDown) {\r\n            this.searchIsActive = false;\r\n            this.searchText = '';\r\n        }\r\n        this.mouseDown = false;\r\n    }\r\n    /*\r\n     *\r\n     * Mouse down event listener which will call this function each time a mouse down is performed on the document.\r\n     * @param event Mouse down event.\r\n     */\r\n    onMouseDown(event) {\r\n        if (!this.rootElement.nativeElement.contains(event.target)) {\r\n            this.mouseDown = true;\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.unsubscribeHotkeys) {\r\n            this.unsubscribeHotkeys();\r\n        }\r\n    }\r\n    ngAfterViewInit() {\r\n        this.keyManager = new ActiveDescendantKeyManager(this.items).withWrap().withTypeAhead();\r\n    }\r\n    /**\r\n     * Adds hot keys to hotkeys service, with set focus search box key combination\r\n     */\r\n    addHotKeys() {\r\n        const hotkeysDefinitions = [\r\n            {\r\n                // Ctrl + Alt + F => Search Input\r\n                hotkey: [17 /* HotkeysKeys.Ctrl */, 18 /* HotkeysKeys.Alt */, 70 /* HotkeysKeys.F */],\r\n                action: () => {\r\n                    this.onSearchKeyBoard();\r\n                }\r\n            }\r\n        ];\r\n        // add hotkeys\r\n        this.unsubscribeHotkeys = this.hotkeysService.addHotkeys(hotkeysDefinitions);\r\n    }\r\n    /**\r\n     * Set focus in search input with keyboard\r\n     */\r\n    onSearchKeyBoard() {\r\n        this.searchField.nativeElement.click();\r\n    }\r\n    /*\r\n     *\r\n     * Determines whether keydown on navigate in search results\r\n     * @param event KeyboardEvent to capture ESCAPE/ENTER/UP_ARROW/DOWN_ARROW\r\n     */\r\n    onKeydown(event) {\r\n        this.searchField.nativeElement.focus();\r\n        if (event.keyCode === ESCAPE) {\r\n            this.cleanText();\r\n            event.preventDefault();\r\n        }\r\n        else if (!event.ctrlKey && !event.altKey && event.keyCode === ENTER) {\r\n            // here add the item selected to the value\r\n            const index = this.keyManager.activeItemIndex;\r\n            const result = this.searchResults[index];\r\n            if (result && result.url) {\r\n                event.preventDefault();\r\n                this.navigateUrl(result.url, result.useCustomUri);\r\n                this.cleanText();\r\n            }\r\n        }\r\n        else if (event.keyCode === UP_ARROW || event.keyCode === DOWN_ARROW) {\r\n            if (!this.isResultEmpty) {\r\n                this.keyManager.onKeydown(event);\r\n                this.scrollByKeyCode(event.keyCode);\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Function to scroll search results elements by keycode\r\n     *\r\n     * @param keyCode\r\n     */\r\n    scrollByKeyCode(keyCode) {\r\n        // For the first 4 elements don´t scroll\r\n        if (this.keyManager.activeItemIndex < 4) {\r\n            this.searchResultsList.nativeElement.scrollTop = 0;\r\n            return;\r\n        }\r\n        // Moving down increment the element scroll\r\n        if (keyCode === DOWN_ARROW) {\r\n            const elHeight = document.getElementById(`searchResult_${this.keyManager.activeItemIndex}`).offsetHeight;\r\n            this.searchResultsList.nativeElement.scrollTop += elHeight;\r\n        }\r\n        // Moving up decrement the element scroll\r\n        if (keyCode === UP_ARROW) {\r\n            try {\r\n                // If the user move up and the current position is the first one this should throw an error\r\n                const elHeight = document.getElementById(`searchResult_${this.keyManager.activeItemIndex + 1}`).offsetHeight;\r\n                this.searchResultsList.nativeElement.scrollTop -= elHeight;\r\n            }\r\n            catch {\r\n                // Set the scroll to the last element (maximum height)\r\n                const elMaxHeight = document.getElementById('searchResultsListId').scrollHeight;\r\n                this.searchResultsList.nativeElement.scrollTop = elMaxHeight;\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * keyup event to search with search service the existing routes from menu\r\n     */\r\n    onSearchTextChanged() {\r\n        clearTimeout(this.timeout);\r\n        this.timeout = setTimeout(() => {\r\n            this.timeout = undefined;\r\n            this.performSearch();\r\n        }, 300);\r\n    }\r\n    performSearch() {\r\n        this.isClearSearchKeyDown = false;\r\n        if (this.searchText) {\r\n            const searchValue = this.searchText.trim().normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\r\n            this.searchResults = [];\r\n            this.searchService.search(searchValue).subscribe((values) => {\r\n                this.searchResults = [...this.searchResults, ...values];\r\n                if (this.searchResults && this.searchResults.length === 0 && !this.searchService.reading) {\r\n                    this.onSearchHasNoResults();\r\n                }\r\n                else {\r\n                    this.isResultEmpty = false;\r\n                }\r\n                this.changeDetectorRef.detectChanges();\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Shows \"no results\" message\r\n     */\r\n    onSearchHasNoResults() {\r\n        this.isResultEmpty = true;\r\n        this.searchNoResults = this.i18nService.get('search.components.RES_Search_No_Results_Message');\r\n        this.noResultsLength = Math.abs(this.maxNoResultsDefaultLength - this.searchNoResults.length);\r\n        // sets index active value to zero, (keyboard arrows navigate) (-1) when reloads/restarts search\r\n        this.keyManager.setActiveItem(-1);\r\n    }\r\n    /*\r\n     *\r\n     * Navigates to the clicked list results\r\n     * @param event From HTML\r\n     * @param item From search result\r\n     */\r\n    navigateTo(event, item) {\r\n        event.preventDefault();\r\n        this.navigateUrl(item.url, item.useCustomUri);\r\n    }\r\n    /*\r\n     *\r\n     * Navigates url\r\n     * @param url to navigate\r\n     * @param useCustomUri indicates whether this is a custom uri\r\n     */\r\n    navigateUrl(url, useCustomUri) {\r\n        if (url.includes('#/')) {\r\n            // remove the content preceding the '#/'\r\n            url = url.split('#/')[1];\r\n        }\r\n        if (useCustomUri) {\r\n            window.open(url, '_blank');\r\n        }\r\n        else {\r\n            this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, url);\r\n        }\r\n        this.searchIsActive = false;\r\n        this.searchText = '';\r\n        this.searchField.nativeElement.blur();\r\n    }\r\n    /**\r\n     * Sets search as active\r\n     */\r\n    setSearchAsActive() {\r\n        this.searchIsActive = true;\r\n        if (this.searchIsActive && this.searchField != null) {\r\n            const elemFocus = (elem) => { elem.focus(); };\r\n            const inputElem = this.searchField.nativeElement;\r\n            setTimeout(() => {\r\n                elemFocus(inputElem);\r\n                inputElem.select();\r\n            }, 0);\r\n        }\r\n    }\r\n    /**\r\n     * Sets search as inactive\r\n     */\r\n    setSearchAsInactive(event) {\r\n        if (this.allowLeave(event)) {\r\n            this.searchIsActive = false;\r\n            this.cleanText();\r\n        }\r\n    }\r\n    /**\r\n     * Clear input text\r\n     */\r\n    cleanText() {\r\n        this.searchText = '';\r\n        // sets index active value to zero, (keyboard arrows navigate) (-1) when reloads/restarts search\r\n        this.keyManager.setActiveItem(-1);\r\n    }\r\n    /*\r\n     *\r\n     * Allows leave or lostfocus\r\n     * @param event dom Event\r\n     * @returns true if is out the rootElement and lostfocus\r\n     */\r\n    allowLeave(event) {\r\n        return !this.searchText && this.rootElement.nativeElement.contains(event.target);\r\n    }\r\n}\r\nSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchComponent, deps: [{ token: SearchService }, { token: SearchEngineService }, { token: i3.I18nService }, { token: i4.HotkeysService }, { token: i0.ChangeDetectorRef }, { token: i4.RouteHelperService }, { token: i4.AmsService }], target: i0.ɵɵFactoryTarget.Component });\r\nSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SearchComponent, selector: \"pri-search\", inputs: { title: \"title\", disableKeyFocus: \"disableKeyFocus\" }, host: { listeners: { \"document:mouseup\": \"onMouseUp($event)\", \"document:mousedown\": \"onMouseDown($event)\" } }, viewQueries: [{ propertyName: \"rootElement\", first: true, predicate: [\"rootElement\"], descendants: true }, { propertyName: \"searchField\", first: true, predicate: [\"searchInput\"], descendants: true, static: true }, { propertyName: \"searchResultsList\", first: true, predicate: [\"searchResultsList\"], descendants: true, read: ElementRef }, { propertyName: \"items\", predicate: ListItemComponent, descendants: true }], ngImport: i0, template: \"<!-- Search -->\\r\\n<div #rootElement data-testid=\\\"search-wrapper\\\" class=\\\"search-wrapper\\\" [ngClass]=\\\"searchIsActive ? 'active' : ''\\\"\\r\\n    id=\\\"search-wrapper\\\">\\r\\n    <div class=\\\"search-box\\\">\\r\\n        <i class=\\\"search-icon ti-ux-search pdd-right-10\\\"></i>\\r\\n    </div>\\r\\n    <div class=\\\"search-input\\\">\\r\\n        <input #searchInput [(ngModel)]=\\\"searchText\\\" (keyup)=\\\"onSearchTextChanged()\\\" (keydown)=\\\"onKeydown($event)\\\"\\r\\n            class=\\\"form-control\\\" type=\\\"text\\\" data-testid=\\\"search-input\\\"\\r\\n            placeholder=\\\"{{'search.components.RES_Search_Placeholder' | priI18n}}\\\" [attr.tabIndex]=\\\"tabIndex\\\"\\r\\n            (focus)=\\\"setSearchAsActive()\\\" (click)=\\\"setSearchAsActive()\\\" (focusout)=\\\"setSearchAsInactive($event)\\\">\\r\\n    </div>\\r\\n    <div data-testid=\\\"search-close\\\" class=\\\"search-close\\\" (click)=\\\"cleanText()\\\"\\r\\n        *ngIf=\\\"searchText && searchText.length > 0\\\">\\r\\n        <i class=\\\"search-icon-close ti-ux-close pdd-right-10\\\"></i>\\r\\n    </div>\\r\\n    <div data-testid=\\\"search-dropdown-results\\\" class=\\\"dropdown-results\\\"\\r\\n        [ngClass]=\\\"{'show' : searchIsActive && searchText && searchText.length > 0 }\\\">\\r\\n        <div i class=\\\"search-title\\\">\\r\\n            <i class=\\\"pR-10\\\"></i>\\r\\n            <span class=\\\"title\\\">{{'search.components.RES_Search_Results_Window_Title' | priI18n}}</span>\\r\\n            <pri-loading-spinner *ngIf=\\\"this.searchService.reading\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n        <ul #searchResultsList id=\\\"searchResultsListId\\\" class=\\\"ovY-a pos-r lis-n p-0 m-0 fsz-sm scrollable\\\"\\r\\n            data-testid=\\\"search-list-wrapper-results\\\" *ngIf=\\\"!isResultEmpty\\\">\\r\\n            <pri-list-item class=\\\"pri-list-item-result\\\" *ngFor=\\\"let item of searchResults; let i = index;\\\">\\r\\n                <li id=\\\"searchResult_{{i}}\\\" [ngClass]=\\\"{'active': keyManager.activeItemIndex === i }\\\">\\r\\n                    <div class=\\\"item\\\" (click)=\\\"navigateTo($event, item)\\\">\\r\\n                        <div *ngIf=\\\"item.thumbnailImageSrc\\\" class=\\\"peer mR-15\\\">\\r\\n                            <img class=\\\"w-3r bdrs-50p\\\" [src]=\\\"item.thumbnailImageSrc\\\" alt=\\\"\\\">\\r\\n                        </div>\\r\\n                        <div class=\\\"peer result-contents\\\">\\r\\n                            <span>\\r\\n                                <span class=\\\"title\\\">{{item.title}}</span>&nbsp;\\r\\n                                <span class=\\\"snippet\\\" [innerHTML]=\\\"item.snippet | sanitizeHtml\\\">\\r\\n                                </span>\\r\\n                            </span>\\r\\n                            <div class=\\\"authority\\\">\\r\\n                                <span>{{item.authorityTitle}}</span>\\r\\n                            </div>\\r\\n                        </div>\\r\\n                    </div>\\r\\n                </li>\\r\\n            </pri-list-item>\\r\\n        </ul>\\r\\n        <ul class=\\\"ovY-a pos-r lis-n p-0 m-0 fsz-sm\\\" data-testid=\\\"search-list-wrapper-empty\\\" *ngIf=\\\"isResultEmpty\\\">\\r\\n            <li class=\\\"search-no-results\\\">\\r\\n                <div class=\\\"peer result-contents\\\">\\r\\n                    <span class=\\\"title\\\">\\\"{{ (searchText.length > noResultsLength) ? (searchText |\\r\\n                        slice:0:noResultsLength)+'...': (searchText) }}\\\"\\r\\n                        {{ searchNoResults }}</span>\\r\\n                </div>\\r\\n            </li>\\r\\n        </ul>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-search .search-no-results{padding-left:8px}pri-search .search-wrapper{display:flex;height:calc(100% - 20px);width:275px;margin:10px 16px 10px 0;background-color:var(--header-80);border-radius:25px;transition:all .2s ease-in}pri-search .search-wrapper:hover{background-color:var(--header-60)}pri-search .search-wrapper .search-box{display:flex;align-items:center;cursor:pointer;font-size:15px;margin-left:13px;margin-right:13px;transition:all .2s ease-in}pri-search .search-wrapper .search-box i{color:#fff}pri-search .search-wrapper .search-close{display:none;align-items:center;cursor:pointer;font-size:12px;width:22px;height:22px;color:var(--grey-8);border-radius:15px;padding:8px;position:relative;right:4px;top:3px}pri-search .search-wrapper .search-close i{position:relative;right:3px}pri-search .search-wrapper .search-close:hover{background-color:var(--grey-4)}pri-search .search-wrapper .search-input{display:flex;width:100%}pri-search .search-wrapper .search-input input{background-color:transparent;color:var(--grey-5);border:0;box-shadow:none;font-size:.8125rem;height:29px;outline:none;font-weight:400;padding-left:0}@media only screen and (max-width: 767px){pri-search .search-wrapper .search-input input{max-width:85px}}pri-search .search-wrapper .search-input input ::placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input::-webkit-input-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input:-moz-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input::-moz-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input:-ms-input-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper.active{width:375px;background-color:var(--grey-1)}pri-search .search-wrapper.active .search-input input{color:var(--grey-8)}pri-search .search-wrapper.active .search-input input ::placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input::-webkit-input-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input:-moz-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input::-moz-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input:-ms-input-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-box{pointer-events:none}pri-search .search-wrapper.active .search-box i{color:var(--header-60)}pri-search .search-wrapper.active .search-close{display:flex}pri-search .search-wrapper .dropdown-results{display:block;position:absolute;top:calc(100% - 6px);z-index:1000;width:375px;height:auto;padding:0;background:var(--grey-1);font-size:.875rem;color:var(--grey-8);border:1px solid var(--grey-4);border-radius:.25rem;transform-origin:top;transform:scaleY(0);transition:transform .15s ease-out;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){pri-search .search-wrapper .dropdown-results{left:280px}}pri-search .search-wrapper .dropdown-results .search-title{display:flex;flex-direction:row;margin:10px 10px 0;padding-bottom:3px;border-bottom:1px solid var(--grey-4)}pri-search .search-wrapper .dropdown-results .search-title pri-loading-spinner{margin-left:auto}pri-search .search-wrapper .dropdown-results.show{transform:scale(1)}@media only screen and (max-width: 767px){pri-search .search-wrapper .dropdown-results{max-width:300px}}pri-search .search-wrapper .dropdown-results .divider{border-bottom:1px solid var(--grey-4);height:1px;overflow:hidden}pri-search .search-wrapper .dropdown-results .result-contents{position:relative;width:100%}pri-search .search-wrapper .dropdown-results .result-contents .title{font-size:1.07rem;float:left;clear:left}pri-search .search-wrapper .dropdown-results .result-contents .snippet{float:left;clear:left}pri-search .search-wrapper .dropdown-results .result-contents .authority{background:var(--grey-3);color:var(--grey-8);z-index:1100;padding:2px 4px;font-size:.6rem;position:absolute;right:0;top:0}pri-search .search-wrapper .dropdown-results .result-contents .authority span{font-size:.75rem}pri-search .search-wrapper .dropdown-results>ul{list-style:none;padding-inline-start:0;max-height:275px;max-width:375px;overflow-x:hidden;overflow-y:auto;padding:10px!important;margin:0}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li{left:auto;right:0}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li.active{background-color:var(--grey-3)}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item{transition:all .2s ease-out;line-height:1.5;min-height:auto;display:flex;padding:10px;cursor:pointer}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item .title{color:var(--grey-8)}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item:hover{background-color:var(--grey-3)}\\n\"], dependencies: [{ kind: \"directive\", type: i5.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i5.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i6.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i6.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i6.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"component\", type: i7.LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"component\", type: ListItemComponent, selector: \"pri-list-item\" }, { kind: \"pipe\", type: i5.SlicePipe, name: \"slice\" }, { kind: \"pipe\", type: i3.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: SanitizeHtmlPipe, name: \"sanitizeHtml\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SearchComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-search', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<!-- Search -->\\r\\n<div #rootElement data-testid=\\\"search-wrapper\\\" class=\\\"search-wrapper\\\" [ngClass]=\\\"searchIsActive ? 'active' : ''\\\"\\r\\n    id=\\\"search-wrapper\\\">\\r\\n    <div class=\\\"search-box\\\">\\r\\n        <i class=\\\"search-icon ti-ux-search pdd-right-10\\\"></i>\\r\\n    </div>\\r\\n    <div class=\\\"search-input\\\">\\r\\n        <input #searchInput [(ngModel)]=\\\"searchText\\\" (keyup)=\\\"onSearchTextChanged()\\\" (keydown)=\\\"onKeydown($event)\\\"\\r\\n            class=\\\"form-control\\\" type=\\\"text\\\" data-testid=\\\"search-input\\\"\\r\\n            placeholder=\\\"{{'search.components.RES_Search_Placeholder' | priI18n}}\\\" [attr.tabIndex]=\\\"tabIndex\\\"\\r\\n            (focus)=\\\"setSearchAsActive()\\\" (click)=\\\"setSearchAsActive()\\\" (focusout)=\\\"setSearchAsInactive($event)\\\">\\r\\n    </div>\\r\\n    <div data-testid=\\\"search-close\\\" class=\\\"search-close\\\" (click)=\\\"cleanText()\\\"\\r\\n        *ngIf=\\\"searchText && searchText.length > 0\\\">\\r\\n        <i class=\\\"search-icon-close ti-ux-close pdd-right-10\\\"></i>\\r\\n    </div>\\r\\n    <div data-testid=\\\"search-dropdown-results\\\" class=\\\"dropdown-results\\\"\\r\\n        [ngClass]=\\\"{'show' : searchIsActive && searchText && searchText.length > 0 }\\\">\\r\\n        <div i class=\\\"search-title\\\">\\r\\n            <i class=\\\"pR-10\\\"></i>\\r\\n            <span class=\\\"title\\\">{{'search.components.RES_Search_Results_Window_Title' | priI18n}}</span>\\r\\n            <pri-loading-spinner *ngIf=\\\"this.searchService.reading\\\"></pri-loading-spinner>\\r\\n        </div>\\r\\n        <ul #searchResultsList id=\\\"searchResultsListId\\\" class=\\\"ovY-a pos-r lis-n p-0 m-0 fsz-sm scrollable\\\"\\r\\n            data-testid=\\\"search-list-wrapper-results\\\" *ngIf=\\\"!isResultEmpty\\\">\\r\\n            <pri-list-item class=\\\"pri-list-item-result\\\" *ngFor=\\\"let item of searchResults; let i = index;\\\">\\r\\n                <li id=\\\"searchResult_{{i}}\\\" [ngClass]=\\\"{'active': keyManager.activeItemIndex === i }\\\">\\r\\n                    <div class=\\\"item\\\" (click)=\\\"navigateTo($event, item)\\\">\\r\\n                        <div *ngIf=\\\"item.thumbnailImageSrc\\\" class=\\\"peer mR-15\\\">\\r\\n                            <img class=\\\"w-3r bdrs-50p\\\" [src]=\\\"item.thumbnailImageSrc\\\" alt=\\\"\\\">\\r\\n                        </div>\\r\\n                        <div class=\\\"peer result-contents\\\">\\r\\n                            <span>\\r\\n                                <span class=\\\"title\\\">{{item.title}}</span>&nbsp;\\r\\n                                <span class=\\\"snippet\\\" [innerHTML]=\\\"item.snippet | sanitizeHtml\\\">\\r\\n                                </span>\\r\\n                            </span>\\r\\n                            <div class=\\\"authority\\\">\\r\\n                                <span>{{item.authorityTitle}}</span>\\r\\n                            </div>\\r\\n                        </div>\\r\\n                    </div>\\r\\n                </li>\\r\\n            </pri-list-item>\\r\\n        </ul>\\r\\n        <ul class=\\\"ovY-a pos-r lis-n p-0 m-0 fsz-sm\\\" data-testid=\\\"search-list-wrapper-empty\\\" *ngIf=\\\"isResultEmpty\\\">\\r\\n            <li class=\\\"search-no-results\\\">\\r\\n                <div class=\\\"peer result-contents\\\">\\r\\n                    <span class=\\\"title\\\">\\\"{{ (searchText.length > noResultsLength) ? (searchText |\\r\\n                        slice:0:noResultsLength)+'...': (searchText) }}\\\"\\r\\n                        {{ searchNoResults }}</span>\\r\\n                </div>\\r\\n            </li>\\r\\n        </ul>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-search .search-no-results{padding-left:8px}pri-search .search-wrapper{display:flex;height:calc(100% - 20px);width:275px;margin:10px 16px 10px 0;background-color:var(--header-80);border-radius:25px;transition:all .2s ease-in}pri-search .search-wrapper:hover{background-color:var(--header-60)}pri-search .search-wrapper .search-box{display:flex;align-items:center;cursor:pointer;font-size:15px;margin-left:13px;margin-right:13px;transition:all .2s ease-in}pri-search .search-wrapper .search-box i{color:#fff}pri-search .search-wrapper .search-close{display:none;align-items:center;cursor:pointer;font-size:12px;width:22px;height:22px;color:var(--grey-8);border-radius:15px;padding:8px;position:relative;right:4px;top:3px}pri-search .search-wrapper .search-close i{position:relative;right:3px}pri-search .search-wrapper .search-close:hover{background-color:var(--grey-4)}pri-search .search-wrapper .search-input{display:flex;width:100%}pri-search .search-wrapper .search-input input{background-color:transparent;color:var(--grey-5);border:0;box-shadow:none;font-size:.8125rem;height:29px;outline:none;font-weight:400;padding-left:0}@media only screen and (max-width: 767px){pri-search .search-wrapper .search-input input{max-width:85px}}pri-search .search-wrapper .search-input input ::placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input::-webkit-input-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input:-moz-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input::-moz-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper .search-input input:-ms-input-placeholder{color:#fff!important;font-style:italic}pri-search .search-wrapper.active{width:375px;background-color:var(--grey-1)}pri-search .search-wrapper.active .search-input input{color:var(--grey-8)}pri-search .search-wrapper.active .search-input input ::placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input::-webkit-input-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input:-moz-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input::-moz-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-input input:-ms-input-placeholder{color:var(--grey-6)!important}pri-search .search-wrapper.active .search-box{pointer-events:none}pri-search .search-wrapper.active .search-box i{color:var(--header-60)}pri-search .search-wrapper.active .search-close{display:flex}pri-search .search-wrapper .dropdown-results{display:block;position:absolute;top:calc(100% - 6px);z-index:1000;width:375px;height:auto;padding:0;background:var(--grey-1);font-size:.875rem;color:var(--grey-8);border:1px solid var(--grey-4);border-radius:.25rem;transform-origin:top;transform:scaleY(0);transition:transform .15s ease-out;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){pri-search .search-wrapper .dropdown-results{left:280px}}pri-search .search-wrapper .dropdown-results .search-title{display:flex;flex-direction:row;margin:10px 10px 0;padding-bottom:3px;border-bottom:1px solid var(--grey-4)}pri-search .search-wrapper .dropdown-results .search-title pri-loading-spinner{margin-left:auto}pri-search .search-wrapper .dropdown-results.show{transform:scale(1)}@media only screen and (max-width: 767px){pri-search .search-wrapper .dropdown-results{max-width:300px}}pri-search .search-wrapper .dropdown-results .divider{border-bottom:1px solid var(--grey-4);height:1px;overflow:hidden}pri-search .search-wrapper .dropdown-results .result-contents{position:relative;width:100%}pri-search .search-wrapper .dropdown-results .result-contents .title{font-size:1.07rem;float:left;clear:left}pri-search .search-wrapper .dropdown-results .result-contents .snippet{float:left;clear:left}pri-search .search-wrapper .dropdown-results .result-contents .authority{background:var(--grey-3);color:var(--grey-8);z-index:1100;padding:2px 4px;font-size:.6rem;position:absolute;right:0;top:0}pri-search .search-wrapper .dropdown-results .result-contents .authority span{font-size:.75rem}pri-search .search-wrapper .dropdown-results>ul{list-style:none;padding-inline-start:0;max-height:275px;max-width:375px;overflow-x:hidden;overflow-y:auto;padding:10px!important;margin:0}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li{left:auto;right:0}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li.active{background-color:var(--grey-3)}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item{transition:all .2s ease-out;line-height:1.5;min-height:auto;display:flex;padding:10px;cursor:pointer}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item .title{color:var(--grey-8)}pri-search .search-wrapper .dropdown-results>ul>pri-list-item>li .item:hover{background-color:var(--grey-3)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SearchService }, { type: SearchEngineService }, { type: i3.I18nService }, { type: i4.HotkeysService }, { type: i0.ChangeDetectorRef }, { type: i4.RouteHelperService }, { type: i4.AmsService }]; }, propDecorators: { rootElement: [{\r\n                type: ViewChild,\r\n                args: ['rootElement', { static: false }]\r\n            }], searchField: [{\r\n                type: ViewChild,\r\n                args: ['searchInput', { static: true }]\r\n            }], searchResultsList: [{\r\n                type: ViewChild,\r\n                args: ['searchResultsList', { read: ElementRef }]\r\n            }], items: [{\r\n                type: ViewChildren,\r\n                args: [ListItemComponent]\r\n            }], title: [{\r\n                type: Input\r\n            }], disableKeyFocus: [{\r\n                type: Input\r\n            }], \r\n        /*\r\n         *\r\n         * Mouse down event listener which will call this function each time a mouse up is performed on the document.\r\n         * @param event Mouse up event.\r\n         */\r\n        onMouseUp: [{\r\n                type: HostListener,\r\n                args: ['document:mouseup', ['$event']]\r\n            }], onMouseDown: [{\r\n                type: HostListener,\r\n                args: ['document:mousedown', ['$event']]\r\n            }] } });\n\nconst primaveraI18nModule = PrimaveraI18nModule.forRoot();\r\nclass PrimaveraSearchModule {\r\n    static forRoot() {\r\n        return {\r\n            ngModule: PrimaveraSearchModule\r\n        };\r\n    }\r\n}\r\nPrimaveraSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nPrimaveraSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraSearchModule, declarations: [SearchComponent,\r\n        ListItemComponent,\r\n        SanitizeHtmlPipe], imports: [CommonModule,\r\n        FormsModule,\r\n        PrimaveraServicesModule, i3.PrimaveraI18nModule, ComponentsModule], exports: [SearchComponent] });\r\nPrimaveraSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraSearchModule, imports: [CommonModule,\r\n        FormsModule,\r\n        PrimaveraServicesModule,\r\n        primaveraI18nModule,\r\n        ComponentsModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraSearchModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [\r\n                        CommonModule,\r\n                        FormsModule,\r\n                        PrimaveraServicesModule,\r\n                        primaveraI18nModule,\r\n                        ComponentsModule\r\n                    ],\r\n                    declarations: [\r\n                        SearchComponent,\r\n                        ListItemComponent,\r\n                        SanitizeHtmlPipe\r\n                    ],\r\n                    exports: [\r\n                        SearchComponent\r\n                    ]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { ListItemComponent, PrimaveraSearchModule, SearchComponent, SearchProvider, SearchService, primaveraI18nModule };\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// 0, 2, 10, 30 second delays before reconnect attempts.\r\nconst DEFAULT_RETRY_DELAYS_IN_MILLISECONDS = [0, 2000, 10000, 30000, null];\r\n/** @private */\r\nexport class DefaultReconnectPolicy {\r\n    constructor(retryDelays) {\r\n        this._retryDelays = retryDelays !== undefined ? [...retryDelays, null] : DEFAULT_RETRY_DELAYS_IN_MILLISECONDS;\r\n    }\r\n    nextRetryDelayInMilliseconds(retryContext) {\r\n        return this._retryDelays[retryContext.previousRetryCount];\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Error thrown when an HTTP request fails. */\r\nexport class HttpError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.HttpError}.\r\n     *\r\n     * @param {string} errorMessage A descriptive error message.\r\n     * @param {number} statusCode The HTTP status code represented by this error.\r\n     */\r\n    constructor(errorMessage, statusCode) {\r\n        const trueProto = new.target.prototype;\r\n        super(`${errorMessage}: Status code '${statusCode}'`);\r\n        this.statusCode = statusCode;\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when a timeout elapses. */\r\nexport class TimeoutError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.\r\n     *\r\n     * @param {string} errorMessage A descriptive error message.\r\n     */\r\n    constructor(errorMessage = \"A timeout occurred.\") {\r\n        const trueProto = new.target.prototype;\r\n        super(errorMessage);\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when an action is aborted. */\r\nexport class AbortError extends Error {\r\n    /** Constructs a new instance of {@link AbortError}.\r\n     *\r\n     * @param {string} errorMessage A descriptive error message.\r\n     */\r\n    constructor(errorMessage = \"An abort occurred.\") {\r\n        const trueProto = new.target.prototype;\r\n        super(errorMessage);\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when the selected transport is unsupported by the browser. */\r\n/** @private */\r\nexport class UnsupportedTransportError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.\r\n     *\r\n     * @param {string} message A descriptive error message.\r\n     * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occured on.\r\n     */\r\n    constructor(message, transport) {\r\n        const trueProto = new.target.prototype;\r\n        super(message);\r\n        this.transport = transport;\r\n        this.errorType = 'UnsupportedTransportError';\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when the selected transport is disabled by the browser. */\r\n/** @private */\r\nexport class DisabledTransportError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.\r\n     *\r\n     * @param {string} message A descriptive error message.\r\n     * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occured on.\r\n     */\r\n    constructor(message, transport) {\r\n        const trueProto = new.target.prototype;\r\n        super(message);\r\n        this.transport = transport;\r\n        this.errorType = 'DisabledTransportError';\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when the selected transport cannot be started. */\r\n/** @private */\r\nexport class FailedToStartTransportError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.\r\n     *\r\n     * @param {string} message A descriptive error message.\r\n     * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occured on.\r\n     */\r\n    constructor(message, transport) {\r\n        const trueProto = new.target.prototype;\r\n        super(message);\r\n        this.transport = transport;\r\n        this.errorType = 'FailedToStartTransportError';\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when the negotiation with the server failed to complete. */\r\n/** @private */\r\nexport class FailedToNegotiateWithServerError extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.\r\n     *\r\n     * @param {string} message A descriptive error message.\r\n     */\r\n    constructor(message) {\r\n        const trueProto = new.target.prototype;\r\n        super(message);\r\n        this.errorType = 'FailedToNegotiateWithServerError';\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n/** Error thrown when multiple errors have occured. */\r\n/** @private */\r\nexport class AggregateErrors extends Error {\r\n    /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.\r\n     *\r\n     * @param {string} message A descriptive error message.\r\n     * @param {Error[]} innerErrors The collection of errors this error is aggregating.\r\n     */\r\n    constructor(message, innerErrors) {\r\n        const trueProto = new.target.prototype;\r\n        super(message);\r\n        this.innerErrors = innerErrors;\r\n        // Workaround issue in Typescript compiler\r\n        // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n        this.__proto__ = trueProto;\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Represents an HTTP response. */\r\nexport class HttpResponse {\r\n    constructor(statusCode, statusText, content) {\r\n        this.statusCode = statusCode;\r\n        this.statusText = statusText;\r\n        this.content = content;\r\n    }\r\n}\r\n/** Abstraction over an HTTP client.\r\n *\r\n * This class provides an abstraction over an HTTP client so that a different implementation can be provided on different platforms.\r\n */\r\nexport class HttpClient {\r\n    get(url, options) {\r\n        return this.send({\r\n            ...options,\r\n            method: \"GET\",\r\n            url,\r\n        });\r\n    }\r\n    post(url, options) {\r\n        return this.send({\r\n            ...options,\r\n            method: \"POST\",\r\n            url,\r\n        });\r\n    }\r\n    delete(url, options) {\r\n        return this.send({\r\n            ...options,\r\n            method: \"DELETE\",\r\n            url,\r\n        });\r\n    }\r\n    /** Gets all cookies that apply to the specified URL.\r\n     *\r\n     * @param url The URL that the cookies are valid for.\r\n     * @returns {string} A string containing all the key-value cookie pairs for the specified URL.\r\n     */\r\n    // @ts-ignore\r\n    getCookieString(url) {\r\n        return \"\";\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError, HttpError, TimeoutError } from \"./Errors\";\r\nimport { HttpClient, HttpResponse } from \"./HttpClient\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { Platform, getGlobalThis } from \"./Utils\";\r\nexport class FetchHttpClient extends HttpClient {\r\n    constructor(logger) {\r\n        super();\r\n        this._logger = logger;\r\n        if (typeof fetch === \"undefined\") {\r\n            // In order to ignore the dynamic require in webpack builds we need to do this magic\r\n            // @ts-ignore: TS doesn't know about these names\r\n            const requireFunc = typeof __webpack_require__ === \"function\" ? __non_webpack_require__ : require;\r\n            // Cookies aren't automatically handled in Node so we need to add a CookieJar to preserve cookies across requests\r\n            this._jar = new (requireFunc(\"tough-cookie\")).CookieJar();\r\n            this._fetchType = requireFunc(\"node-fetch\");\r\n            // node-fetch doesn't have a nice API for getting and setting cookies\r\n            // fetch-cookie will wrap a fetch implementation with a default CookieJar or a provided one\r\n            this._fetchType = requireFunc(\"fetch-cookie\")(this._fetchType, this._jar);\r\n        }\r\n        else {\r\n            this._fetchType = fetch.bind(getGlobalThis());\r\n        }\r\n        if (typeof AbortController === \"undefined\") {\r\n            // In order to ignore the dynamic require in webpack builds we need to do this magic\r\n            // @ts-ignore: TS doesn't know about these names\r\n            const requireFunc = typeof __webpack_require__ === \"function\" ? __non_webpack_require__ : require;\r\n            // Node needs EventListener methods on AbortController which our custom polyfill doesn't provide\r\n            this._abortControllerType = requireFunc(\"abort-controller\");\r\n        }\r\n        else {\r\n            this._abortControllerType = AbortController;\r\n        }\r\n    }\r\n    /** @inheritDoc */\r\n    async send(request) {\r\n        // Check that abort was not signaled before calling send\r\n        if (request.abortSignal && request.abortSignal.aborted) {\r\n            throw new AbortError();\r\n        }\r\n        if (!request.method) {\r\n            throw new Error(\"No method defined.\");\r\n        }\r\n        if (!request.url) {\r\n            throw new Error(\"No url defined.\");\r\n        }\r\n        const abortController = new this._abortControllerType();\r\n        let error;\r\n        // Hook our abortSignal into the abort controller\r\n        if (request.abortSignal) {\r\n            request.abortSignal.onabort = () => {\r\n                abortController.abort();\r\n                error = new AbortError();\r\n            };\r\n        }\r\n        // If a timeout has been passed in, setup a timeout to call abort\r\n        // Type needs to be any to fit window.setTimeout and NodeJS.setTimeout\r\n        let timeoutId = null;\r\n        if (request.timeout) {\r\n            const msTimeout = request.timeout;\r\n            timeoutId = setTimeout(() => {\r\n                abortController.abort();\r\n                this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);\r\n                error = new TimeoutError();\r\n            }, msTimeout);\r\n        }\r\n        let response;\r\n        try {\r\n            response = await this._fetchType(request.url, {\r\n                body: request.content,\r\n                cache: \"no-cache\",\r\n                credentials: request.withCredentials === true ? \"include\" : \"same-origin\",\r\n                headers: {\r\n                    \"Content-Type\": \"text/plain;charset=UTF-8\",\r\n                    \"X-Requested-With\": \"XMLHttpRequest\",\r\n                    ...request.headers,\r\n                },\r\n                method: request.method,\r\n                mode: \"cors\",\r\n                redirect: \"follow\",\r\n                signal: abortController.signal,\r\n            });\r\n        }\r\n        catch (e) {\r\n            if (error) {\r\n                throw error;\r\n            }\r\n            this._logger.log(LogLevel.Warning, `Error from HTTP request. ${e}.`);\r\n            throw e;\r\n        }\r\n        finally {\r\n            if (timeoutId) {\r\n                clearTimeout(timeoutId);\r\n            }\r\n            if (request.abortSignal) {\r\n                request.abortSignal.onabort = null;\r\n            }\r\n        }\r\n        if (!response.ok) {\r\n            const errorMessage = await deserializeContent(response, \"text\");\r\n            throw new HttpError(errorMessage || response.statusText, response.status);\r\n        }\r\n        const content = deserializeContent(response, request.responseType);\r\n        const payload = await content;\r\n        return new HttpResponse(response.status, response.statusText, payload);\r\n    }\r\n    getCookieString(url) {\r\n        let cookies = \"\";\r\n        if (Platform.isNode && this._jar) {\r\n            // @ts-ignore: unused variable\r\n            this._jar.getCookies(url, (e, c) => cookies = c.join(\"; \"));\r\n        }\r\n        return cookies;\r\n    }\r\n}\r\nfunction deserializeContent(response, responseType) {\r\n    let content;\r\n    switch (responseType) {\r\n        case \"arraybuffer\":\r\n            content = response.arrayBuffer();\r\n            break;\r\n        case \"text\":\r\n            content = response.text();\r\n            break;\r\n        case \"blob\":\r\n        case \"document\":\r\n        case \"json\":\r\n            throw new Error(`${responseType} is not supported.`);\r\n        default:\r\n            content = response.text();\r\n            break;\r\n    }\r\n    return content;\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError, HttpError, TimeoutError } from \"./Errors\";\r\nimport { HttpClient, HttpResponse } from \"./HttpClient\";\r\nimport { LogLevel } from \"./ILogger\";\r\nexport class XhrHttpClient extends HttpClient {\r\n    constructor(logger) {\r\n        super();\r\n        this._logger = logger;\r\n    }\r\n    /** @inheritDoc */\r\n    send(request) {\r\n        // Check that abort was not signaled before calling send\r\n        if (request.abortSignal && request.abortSignal.aborted) {\r\n            return Promise.reject(new AbortError());\r\n        }\r\n        if (!request.method) {\r\n            return Promise.reject(new Error(\"No method defined.\"));\r\n        }\r\n        if (!request.url) {\r\n            return Promise.reject(new Error(\"No url defined.\"));\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            const xhr = new XMLHttpRequest();\r\n            xhr.open(request.method, request.url, true);\r\n            xhr.withCredentials = request.withCredentials === undefined ? true : request.withCredentials;\r\n            xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\r\n            // Explicitly setting the Content-Type header for React Native on Android platform.\r\n            xhr.setRequestHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\r\n            const headers = request.headers;\r\n            if (headers) {\r\n                Object.keys(headers)\r\n                    .forEach((header) => {\r\n                    xhr.setRequestHeader(header, headers[header]);\r\n                });\r\n            }\r\n            if (request.responseType) {\r\n                xhr.responseType = request.responseType;\r\n            }\r\n            if (request.abortSignal) {\r\n                request.abortSignal.onabort = () => {\r\n                    xhr.abort();\r\n                    reject(new AbortError());\r\n                };\r\n            }\r\n            if (request.timeout) {\r\n                xhr.timeout = request.timeout;\r\n            }\r\n            xhr.onload = () => {\r\n                if (request.abortSignal) {\r\n                    request.abortSignal.onabort = null;\r\n                }\r\n                if (xhr.status >= 200 && xhr.status < 300) {\r\n                    resolve(new HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText));\r\n                }\r\n                else {\r\n                    reject(new HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status));\r\n                }\r\n            };\r\n            xhr.onerror = () => {\r\n                this._logger.log(LogLevel.Warning, `Error from HTTP request. ${xhr.status}: ${xhr.statusText}.`);\r\n                reject(new HttpError(xhr.statusText, xhr.status));\r\n            };\r\n            xhr.ontimeout = () => {\r\n                this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);\r\n                reject(new TimeoutError());\r\n            };\r\n            xhr.send(request.content || \"\");\r\n        });\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError } from \"./Errors\";\r\nimport { FetchHttpClient } from \"./FetchHttpClient\";\r\nimport { HttpClient } from \"./HttpClient\";\r\nimport { Platform } from \"./Utils\";\r\nimport { XhrHttpClient } from \"./XhrHttpClient\";\r\n/** Default implementation of {@link @microsoft/signalr.HttpClient}. */\r\nexport class DefaultHttpClient extends HttpClient {\r\n    /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */\r\n    constructor(logger) {\r\n        super();\r\n        if (typeof fetch !== \"undefined\" || Platform.isNode) {\r\n            this._httpClient = new FetchHttpClient(logger);\r\n        }\r\n        else if (typeof XMLHttpRequest !== \"undefined\") {\r\n            this._httpClient = new XhrHttpClient(logger);\r\n        }\r\n        else {\r\n            throw new Error(\"No usable HttpClient found.\");\r\n        }\r\n    }\r\n    /** @inheritDoc */\r\n    send(request) {\r\n        // Check that abort was not signaled before calling send\r\n        if (request.abortSignal && request.abortSignal.aborted) {\r\n            return Promise.reject(new AbortError());\r\n        }\r\n        if (!request.method) {\r\n            return Promise.reject(new Error(\"No method defined.\"));\r\n        }\r\n        if (!request.url) {\r\n            return Promise.reject(new Error(\"No url defined.\"));\r\n        }\r\n        return this._httpClient.send(request);\r\n    }\r\n    getCookieString(url) {\r\n        return this._httpClient.getCookieString(url);\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nexport class HeaderNames {\r\n}\r\nHeaderNames.Authorization = \"Authorization\";\r\nHeaderNames.Cookie = \"Cookie\";\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// This will be treated as a bit flag in the future, so we keep it using power-of-two values.\r\n/** Specifies a specific HTTP transport type. */\r\nexport var HttpTransportType;\r\n(function (HttpTransportType) {\r\n    /** Specifies no transport preference. */\r\n    HttpTransportType[HttpTransportType[\"None\"] = 0] = \"None\";\r\n    /** Specifies the WebSockets transport. */\r\n    HttpTransportType[HttpTransportType[\"WebSockets\"] = 1] = \"WebSockets\";\r\n    /** Specifies the Server-Sent Events transport. */\r\n    HttpTransportType[HttpTransportType[\"ServerSentEvents\"] = 2] = \"ServerSentEvents\";\r\n    /** Specifies the Long Polling transport. */\r\n    HttpTransportType[HttpTransportType[\"LongPolling\"] = 4] = \"LongPolling\";\r\n})(HttpTransportType || (HttpTransportType = {}));\r\n/** Specifies the transfer format for a connection. */\r\nexport var TransferFormat;\r\n(function (TransferFormat) {\r\n    /** Specifies that only text data will be transmitted over the connection. */\r\n    TransferFormat[TransferFormat[\"Text\"] = 1] = \"Text\";\r\n    /** Specifies that binary data will be transmitted over the connection. */\r\n    TransferFormat[TransferFormat[\"Binary\"] = 2] = \"Binary\";\r\n})(TransferFormat || (TransferFormat = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// Rough polyfill of https://developer.mozilla.org/en-US/docs/Web/API/AbortController\r\n// We don't actually ever use the API being polyfilled, we always use the polyfill because\r\n// it's a very new API right now.\r\n// Not exported from index.\r\n/** @private */\r\nexport class AbortController {\r\n    constructor() {\r\n        this._isAborted = false;\r\n        this.onabort = null;\r\n    }\r\n    abort() {\r\n        if (!this._isAborted) {\r\n            this._isAborted = true;\r\n            if (this.onabort) {\r\n                this.onabort();\r\n            }\r\n        }\r\n    }\r\n    get signal() {\r\n        return this;\r\n    }\r\n    get aborted() {\r\n        return this._isAborted;\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortController } from \"./AbortController\";\r\nimport { HttpError, TimeoutError } from \"./Errors\";\r\nimport { HeaderNames } from \"./HeaderNames\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, sendMessage } from \"./Utils\";\r\n// Not exported from 'index', this type is internal.\r\n/** @private */\r\nexport class LongPollingTransport {\r\n    constructor(httpClient, accessTokenFactory, logger, options) {\r\n        this._httpClient = httpClient;\r\n        this._accessTokenFactory = accessTokenFactory;\r\n        this._logger = logger;\r\n        this._pollAbort = new AbortController();\r\n        this._options = options;\r\n        this._running = false;\r\n        this.onreceive = null;\r\n        this.onclose = null;\r\n    }\r\n    // This is an internal type, not exported from 'index' so this is really just internal.\r\n    get pollAborted() {\r\n        return this._pollAbort.aborted;\r\n    }\r\n    async connect(url, transferFormat) {\r\n        Arg.isRequired(url, \"url\");\r\n        Arg.isRequired(transferFormat, \"transferFormat\");\r\n        Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n        this._url = url;\r\n        this._logger.log(LogLevel.Trace, \"(LongPolling transport) Connecting.\");\r\n        // Allow binary format on Node and Browsers that support binary content (indicated by the presence of responseType property)\r\n        if (transferFormat === TransferFormat.Binary &&\r\n            (typeof XMLHttpRequest !== \"undefined\" && typeof new XMLHttpRequest().responseType !== \"string\")) {\r\n            throw new Error(\"Binary protocols over XmlHttpRequest not implementing advanced features are not supported.\");\r\n        }\r\n        const [name, value] = getUserAgentHeader();\r\n        const headers = { [name]: value, ...this._options.headers };\r\n        const pollOptions = {\r\n            abortSignal: this._pollAbort.signal,\r\n            headers,\r\n            timeout: 100000,\r\n            withCredentials: this._options.withCredentials,\r\n        };\r\n        if (transferFormat === TransferFormat.Binary) {\r\n            pollOptions.responseType = \"arraybuffer\";\r\n        }\r\n        const token = await this._getAccessToken();\r\n        this._updateHeaderToken(pollOptions, token);\r\n        // Make initial long polling request\r\n        // Server uses first long polling request to finish initializing connection and it returns without data\r\n        const pollUrl = `${url}&_=${Date.now()}`;\r\n        this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);\r\n        const response = await this._httpClient.get(pollUrl, pollOptions);\r\n        if (response.statusCode !== 200) {\r\n            this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);\r\n            // Mark running as false so that the poll immediately ends and runs the close logic\r\n            this._closeError = new HttpError(response.statusText || \"\", response.statusCode);\r\n            this._running = false;\r\n        }\r\n        else {\r\n            this._running = true;\r\n        }\r\n        this._receiving = this._poll(this._url, pollOptions);\r\n    }\r\n    async _getAccessToken() {\r\n        if (this._accessTokenFactory) {\r\n            return await this._accessTokenFactory();\r\n        }\r\n        return null;\r\n    }\r\n    _updateHeaderToken(request, token) {\r\n        if (!request.headers) {\r\n            request.headers = {};\r\n        }\r\n        if (token) {\r\n            request.headers[HeaderNames.Authorization] = `Bearer ${token}`;\r\n            return;\r\n        }\r\n        if (request.headers[HeaderNames.Authorization]) {\r\n            delete request.headers[HeaderNames.Authorization];\r\n        }\r\n    }\r\n    async _poll(url, pollOptions) {\r\n        try {\r\n            while (this._running) {\r\n                // We have to get the access token on each poll, in case it changes\r\n                const token = await this._getAccessToken();\r\n                this._updateHeaderToken(pollOptions, token);\r\n                try {\r\n                    const pollUrl = `${url}&_=${Date.now()}`;\r\n                    this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);\r\n                    const response = await this._httpClient.get(pollUrl, pollOptions);\r\n                    if (response.statusCode === 204) {\r\n                        this._logger.log(LogLevel.Information, \"(LongPolling transport) Poll terminated by server.\");\r\n                        this._running = false;\r\n                    }\r\n                    else if (response.statusCode !== 200) {\r\n                        this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);\r\n                        // Unexpected status code\r\n                        this._closeError = new HttpError(response.statusText || \"\", response.statusCode);\r\n                        this._running = false;\r\n                    }\r\n                    else {\r\n                        // Process the response\r\n                        if (response.content) {\r\n                            this._logger.log(LogLevel.Trace, `(LongPolling transport) data received. ${getDataDetail(response.content, this._options.logMessageContent)}.`);\r\n                            if (this.onreceive) {\r\n                                this.onreceive(response.content);\r\n                            }\r\n                        }\r\n                        else {\r\n                            // This is another way timeout manifest.\r\n                            this._logger.log(LogLevel.Trace, \"(LongPolling transport) Poll timed out, reissuing.\");\r\n                        }\r\n                    }\r\n                }\r\n                catch (e) {\r\n                    if (!this._running) {\r\n                        // Log but disregard errors that occur after stopping\r\n                        this._logger.log(LogLevel.Trace, `(LongPolling transport) Poll errored after shutdown: ${e.message}`);\r\n                    }\r\n                    else {\r\n                        if (e instanceof TimeoutError) {\r\n                            // Ignore timeouts and reissue the poll.\r\n                            this._logger.log(LogLevel.Trace, \"(LongPolling transport) Poll timed out, reissuing.\");\r\n                        }\r\n                        else {\r\n                            // Close the connection with the error as the result.\r\n                            this._closeError = e;\r\n                            this._running = false;\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        finally {\r\n            this._logger.log(LogLevel.Trace, \"(LongPolling transport) Polling complete.\");\r\n            // We will reach here with pollAborted==false when the server returned a response causing the transport to stop.\r\n            // If pollAborted==true then client initiated the stop and the stop method will raise the close event after DELETE is sent.\r\n            if (!this.pollAborted) {\r\n                this._raiseOnClose();\r\n            }\r\n        }\r\n    }\r\n    async send(data) {\r\n        if (!this._running) {\r\n            return Promise.reject(new Error(\"Cannot send until the transport is connected\"));\r\n        }\r\n        return sendMessage(this._logger, \"LongPolling\", this._httpClient, this._url, this._accessTokenFactory, data, this._options);\r\n    }\r\n    async stop() {\r\n        this._logger.log(LogLevel.Trace, \"(LongPolling transport) Stopping polling.\");\r\n        // Tell receiving loop to stop, abort any current request, and then wait for it to finish\r\n        this._running = false;\r\n        this._pollAbort.abort();\r\n        try {\r\n            await this._receiving;\r\n            // Send DELETE to clean up long polling on the server\r\n            this._logger.log(LogLevel.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);\r\n            const headers = {};\r\n            const [name, value] = getUserAgentHeader();\r\n            headers[name] = value;\r\n            const deleteOptions = {\r\n                headers: { ...headers, ...this._options.headers },\r\n                timeout: this._options.timeout,\r\n                withCredentials: this._options.withCredentials,\r\n            };\r\n            const token = await this._getAccessToken();\r\n            this._updateHeaderToken(deleteOptions, token);\r\n            await this._httpClient.delete(this._url, deleteOptions);\r\n            this._logger.log(LogLevel.Trace, \"(LongPolling transport) DELETE request sent.\");\r\n        }\r\n        finally {\r\n            this._logger.log(LogLevel.Trace, \"(LongPolling transport) Stop finished.\");\r\n            // Raise close event here instead of in polling\r\n            // It needs to happen after the DELETE request is sent\r\n            this._raiseOnClose();\r\n        }\r\n    }\r\n    _raiseOnClose() {\r\n        if (this.onclose) {\r\n            let logMessage = \"(LongPolling transport) Firing onclose event.\";\r\n            if (this._closeError) {\r\n                logMessage += \" Error: \" + this._closeError;\r\n            }\r\n            this._logger.log(LogLevel.Trace, logMessage);\r\n            this.onclose(this._closeError);\r\n        }\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, Platform, sendMessage } from \"./Utils\";\r\n/** @private */\r\nexport class ServerSentEventsTransport {\r\n    constructor(httpClient, accessTokenFactory, logger, options) {\r\n        this._httpClient = httpClient;\r\n        this._accessTokenFactory = accessTokenFactory;\r\n        this._logger = logger;\r\n        this._options = options;\r\n        this.onreceive = null;\r\n        this.onclose = null;\r\n    }\r\n    async connect(url, transferFormat) {\r\n        Arg.isRequired(url, \"url\");\r\n        Arg.isRequired(transferFormat, \"transferFormat\");\r\n        Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n        this._logger.log(LogLevel.Trace, \"(SSE transport) Connecting.\");\r\n        // set url before accessTokenFactory because this.url is only for send and we set the auth header instead of the query string for send\r\n        this._url = url;\r\n        if (this._accessTokenFactory) {\r\n            const token = await this._accessTokenFactory();\r\n            if (token) {\r\n                url += (url.indexOf(\"?\") < 0 ? \"?\" : \"&\") + `access_token=${encodeURIComponent(token)}`;\r\n            }\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            let opened = false;\r\n            if (transferFormat !== TransferFormat.Text) {\r\n                reject(new Error(\"The Server-Sent Events transport only supports the 'Text' transfer format\"));\r\n                return;\r\n            }\r\n            let eventSource;\r\n            if (Platform.isBrowser || Platform.isWebWorker) {\r\n                eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials });\r\n            }\r\n            else {\r\n                // Non-browser passes cookies via the dictionary\r\n                const cookies = this._httpClient.getCookieString(url);\r\n                const headers = {};\r\n                headers.Cookie = cookies;\r\n                const [name, value] = getUserAgentHeader();\r\n                headers[name] = value;\r\n                eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials, headers: { ...headers, ...this._options.headers } });\r\n            }\r\n            try {\r\n                eventSource.onmessage = (e) => {\r\n                    if (this.onreceive) {\r\n                        try {\r\n                            this._logger.log(LogLevel.Trace, `(SSE transport) data received. ${getDataDetail(e.data, this._options.logMessageContent)}.`);\r\n                            this.onreceive(e.data);\r\n                        }\r\n                        catch (error) {\r\n                            this._close(error);\r\n                            return;\r\n                        }\r\n                    }\r\n                };\r\n                // @ts-ignore: not using event on purpose\r\n                eventSource.onerror = (e) => {\r\n                    // EventSource doesn't give any useful information about server side closes.\r\n                    if (opened) {\r\n                        this._close();\r\n                    }\r\n                    else {\r\n                        reject(new Error(\"EventSource failed to connect. The connection could not be found on the server,\"\r\n                            + \" either the connection ID is not present on the server, or a proxy is refusing/buffering the connection.\"\r\n                            + \" If you have multiple servers check that sticky sessions are enabled.\"));\r\n                    }\r\n                };\r\n                eventSource.onopen = () => {\r\n                    this._logger.log(LogLevel.Information, `SSE connected to ${this._url}`);\r\n                    this._eventSource = eventSource;\r\n                    opened = true;\r\n                    resolve();\r\n                };\r\n            }\r\n            catch (e) {\r\n                reject(e);\r\n                return;\r\n            }\r\n        });\r\n    }\r\n    async send(data) {\r\n        if (!this._eventSource) {\r\n            return Promise.reject(new Error(\"Cannot send until the transport is connected\"));\r\n        }\r\n        return sendMessage(this._logger, \"SSE\", this._httpClient, this._url, this._accessTokenFactory, data, this._options);\r\n    }\r\n    stop() {\r\n        this._close();\r\n        return Promise.resolve();\r\n    }\r\n    _close(e) {\r\n        if (this._eventSource) {\r\n            this._eventSource.close();\r\n            this._eventSource = undefined;\r\n            if (this.onclose) {\r\n                this.onclose(e);\r\n            }\r\n        }\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { HeaderNames } from \"./HeaderNames\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, Platform } from \"./Utils\";\r\n/** @private */\r\nexport class WebSocketTransport {\r\n    constructor(httpClient, accessTokenFactory, logger, logMessageContent, webSocketConstructor, headers) {\r\n        this._logger = logger;\r\n        this._accessTokenFactory = accessTokenFactory;\r\n        this._logMessageContent = logMessageContent;\r\n        this._webSocketConstructor = webSocketConstructor;\r\n        this._httpClient = httpClient;\r\n        this.onreceive = null;\r\n        this.onclose = null;\r\n        this._headers = headers;\r\n    }\r\n    async connect(url, transferFormat) {\r\n        Arg.isRequired(url, \"url\");\r\n        Arg.isRequired(transferFormat, \"transferFormat\");\r\n        Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n        this._logger.log(LogLevel.Trace, \"(WebSockets transport) Connecting.\");\r\n        if (this._accessTokenFactory) {\r\n            const token = await this._accessTokenFactory();\r\n            if (token) {\r\n                url += (url.indexOf(\"?\") < 0 ? \"?\" : \"&\") + `access_token=${encodeURIComponent(token)}`;\r\n            }\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            url = url.replace(/^http/, \"ws\");\r\n            let webSocket;\r\n            const cookies = this._httpClient.getCookieString(url);\r\n            let opened = false;\r\n            if (Platform.isNode) {\r\n                const headers = {};\r\n                const [name, value] = getUserAgentHeader();\r\n                headers[name] = value;\r\n                if (cookies) {\r\n                    headers[HeaderNames.Cookie] = `${cookies}`;\r\n                }\r\n                // Only pass headers when in non-browser environments\r\n                webSocket = new this._webSocketConstructor(url, undefined, {\r\n                    headers: { ...headers, ...this._headers },\r\n                });\r\n            }\r\n            if (!webSocket) {\r\n                // Chrome is not happy with passing 'undefined' as protocol\r\n                webSocket = new this._webSocketConstructor(url);\r\n            }\r\n            if (transferFormat === TransferFormat.Binary) {\r\n                webSocket.binaryType = \"arraybuffer\";\r\n            }\r\n            webSocket.onopen = (_event) => {\r\n                this._logger.log(LogLevel.Information, `WebSocket connected to ${url}.`);\r\n                this._webSocket = webSocket;\r\n                opened = true;\r\n                resolve();\r\n            };\r\n            webSocket.onerror = (event) => {\r\n                let error = null;\r\n                // ErrorEvent is a browser only type we need to check if the type exists before using it\r\n                if (typeof ErrorEvent !== \"undefined\" && event instanceof ErrorEvent) {\r\n                    error = event.error;\r\n                }\r\n                else {\r\n                    error = \"There was an error with the transport\";\r\n                }\r\n                this._logger.log(LogLevel.Information, `(WebSockets transport) ${error}.`);\r\n            };\r\n            webSocket.onmessage = (message) => {\r\n                this._logger.log(LogLevel.Trace, `(WebSockets transport) data received. ${getDataDetail(message.data, this._logMessageContent)}.`);\r\n                if (this.onreceive) {\r\n                    try {\r\n                        this.onreceive(message.data);\r\n                    }\r\n                    catch (error) {\r\n                        this._close(error);\r\n                        return;\r\n                    }\r\n                }\r\n            };\r\n            webSocket.onclose = (event) => {\r\n                // Don't call close handler if connection was never established\r\n                // We'll reject the connect call instead\r\n                if (opened) {\r\n                    this._close(event);\r\n                }\r\n                else {\r\n                    let error = null;\r\n                    // ErrorEvent is a browser only type we need to check if the type exists before using it\r\n                    if (typeof ErrorEvent !== \"undefined\" && event instanceof ErrorEvent) {\r\n                        error = event.error;\r\n                    }\r\n                    else {\r\n                        error = \"WebSocket failed to connect. The connection could not be found on the server,\"\r\n                            + \" either the endpoint may not be a SignalR endpoint,\"\r\n                            + \" the connection ID is not present on the server, or there is a proxy blocking WebSockets.\"\r\n                            + \" If you have multiple servers check that sticky sessions are enabled.\";\r\n                    }\r\n                    reject(new Error(error));\r\n                }\r\n            };\r\n        });\r\n    }\r\n    send(data) {\r\n        if (this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN) {\r\n            this._logger.log(LogLevel.Trace, `(WebSockets transport) sending data. ${getDataDetail(data, this._logMessageContent)}.`);\r\n            this._webSocket.send(data);\r\n            return Promise.resolve();\r\n        }\r\n        return Promise.reject(\"WebSocket is not in the OPEN state\");\r\n    }\r\n    stop() {\r\n        if (this._webSocket) {\r\n            // Manually invoke onclose callback inline so we know the HttpConnection was closed properly before returning\r\n            // This also solves an issue where websocket.onclose could take 18+ seconds to trigger during network disconnects\r\n            this._close(undefined);\r\n        }\r\n        return Promise.resolve();\r\n    }\r\n    _close(event) {\r\n        // webSocket will be null if the transport did not start successfully\r\n        if (this._webSocket) {\r\n            // Clear websocket handlers because we are considering the socket closed now\r\n            this._webSocket.onclose = () => { };\r\n            this._webSocket.onmessage = () => { };\r\n            this._webSocket.onerror = () => { };\r\n            this._webSocket.close();\r\n            this._webSocket = undefined;\r\n        }\r\n        this._logger.log(LogLevel.Trace, \"(WebSockets transport) socket closed.\");\r\n        if (this.onclose) {\r\n            if (this._isCloseEvent(event) && (event.wasClean === false || event.code !== 1000)) {\r\n                this.onclose(new Error(`WebSocket closed with status code: ${event.code} (${event.reason || \"no reason given\"}).`));\r\n            }\r\n            else if (event instanceof Error) {\r\n                this.onclose(event);\r\n            }\r\n            else {\r\n                this.onclose();\r\n            }\r\n        }\r\n    }\r\n    _isCloseEvent(event) {\r\n        return event && typeof event.wasClean === \"boolean\" && typeof event.code === \"number\";\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { DefaultHttpClient } from \"./DefaultHttpClient\";\r\nimport { AggregateErrors, DisabledTransportError, FailedToNegotiateWithServerError, FailedToStartTransportError, HttpError, UnsupportedTransportError } from \"./Errors\";\r\nimport { HeaderNames } from \"./HeaderNames\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { HttpTransportType, TransferFormat } from \"./ITransport\";\r\nimport { LongPollingTransport } from \"./LongPollingTransport\";\r\nimport { ServerSentEventsTransport } from \"./ServerSentEventsTransport\";\r\nimport { Arg, createLogger, getUserAgentHeader, Platform } from \"./Utils\";\r\nimport { WebSocketTransport } from \"./WebSocketTransport\";\r\nconst MAX_REDIRECTS = 100;\r\n/** @private */\r\nexport class HttpConnection {\r\n    constructor(url, options = {}) {\r\n        this._stopPromiseResolver = () => { };\r\n        this.features = {};\r\n        this._negotiateVersion = 1;\r\n        Arg.isRequired(url, \"url\");\r\n        this._logger = createLogger(options.logger);\r\n        this.baseUrl = this._resolveUrl(url);\r\n        options = options || {};\r\n        options.logMessageContent = options.logMessageContent === undefined ? false : options.logMessageContent;\r\n        if (typeof options.withCredentials === \"boolean\" || options.withCredentials === undefined) {\r\n            options.withCredentials = options.withCredentials === undefined ? true : options.withCredentials;\r\n        }\r\n        else {\r\n            throw new Error(\"withCredentials option was not a 'boolean' or 'undefined' value\");\r\n        }\r\n        options.timeout = options.timeout === undefined ? 100 * 1000 : options.timeout;\r\n        let webSocketModule = null;\r\n        let eventSourceModule = null;\r\n        if (Platform.isNode && typeof require !== \"undefined\") {\r\n            // In order to ignore the dynamic require in webpack builds we need to do this magic\r\n            // @ts-ignore: TS doesn't know about these names\r\n            const requireFunc = typeof __webpack_require__ === \"function\" ? __non_webpack_require__ : require;\r\n            webSocketModule = requireFunc(\"ws\");\r\n            eventSourceModule = requireFunc(\"eventsource\");\r\n        }\r\n        if (!Platform.isNode && typeof WebSocket !== \"undefined\" && !options.WebSocket) {\r\n            options.WebSocket = WebSocket;\r\n        }\r\n        else if (Platform.isNode && !options.WebSocket) {\r\n            if (webSocketModule) {\r\n                options.WebSocket = webSocketModule;\r\n            }\r\n        }\r\n        if (!Platform.isNode && typeof EventSource !== \"undefined\" && !options.EventSource) {\r\n            options.EventSource = EventSource;\r\n        }\r\n        else if (Platform.isNode && !options.EventSource) {\r\n            if (typeof eventSourceModule !== \"undefined\") {\r\n                options.EventSource = eventSourceModule;\r\n            }\r\n        }\r\n        this._httpClient = options.httpClient || new DefaultHttpClient(this._logger);\r\n        this._connectionState = \"Disconnected\" /* Disconnected */;\r\n        this._connectionStarted = false;\r\n        this._options = options;\r\n        this.onreceive = null;\r\n        this.onclose = null;\r\n    }\r\n    async start(transferFormat) {\r\n        transferFormat = transferFormat || TransferFormat.Binary;\r\n        Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n        this._logger.log(LogLevel.Debug, `Starting connection with transfer format '${TransferFormat[transferFormat]}'.`);\r\n        if (this._connectionState !== \"Disconnected\" /* Disconnected */) {\r\n            return Promise.reject(new Error(\"Cannot start an HttpConnection that is not in the 'Disconnected' state.\"));\r\n        }\r\n        this._connectionState = \"Connecting\" /* Connecting */;\r\n        this._startInternalPromise = this._startInternal(transferFormat);\r\n        await this._startInternalPromise;\r\n        // The TypeScript compiler thinks that connectionState must be Connecting here. The TypeScript compiler is wrong.\r\n        if (this._connectionState === \"Disconnecting\" /* Disconnecting */) {\r\n            // stop() was called and transitioned the client into the Disconnecting state.\r\n            const message = \"Failed to start the HttpConnection before stop() was called.\";\r\n            this._logger.log(LogLevel.Error, message);\r\n            // We cannot await stopPromise inside startInternal since stopInternal awaits the startInternalPromise.\r\n            await this._stopPromise;\r\n            return Promise.reject(new Error(message));\r\n        }\r\n        else if (this._connectionState !== \"Connected\" /* Connected */) {\r\n            // stop() was called and transitioned the client into the Disconnecting state.\r\n            const message = \"HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!\";\r\n            this._logger.log(LogLevel.Error, message);\r\n            return Promise.reject(new Error(message));\r\n        }\r\n        this._connectionStarted = true;\r\n    }\r\n    send(data) {\r\n        if (this._connectionState !== \"Connected\" /* Connected */) {\r\n            return Promise.reject(new Error(\"Cannot send data if the connection is not in the 'Connected' State.\"));\r\n        }\r\n        if (!this._sendQueue) {\r\n            this._sendQueue = new TransportSendQueue(this.transport);\r\n        }\r\n        // Transport will not be null if state is connected\r\n        return this._sendQueue.send(data);\r\n    }\r\n    async stop(error) {\r\n        if (this._connectionState === \"Disconnected\" /* Disconnected */) {\r\n            this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnected state.`);\r\n            return Promise.resolve();\r\n        }\r\n        if (this._connectionState === \"Disconnecting\" /* Disconnecting */) {\r\n            this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);\r\n            return this._stopPromise;\r\n        }\r\n        this._connectionState = \"Disconnecting\" /* Disconnecting */;\r\n        this._stopPromise = new Promise((resolve) => {\r\n            // Don't complete stop() until stopConnection() completes.\r\n            this._stopPromiseResolver = resolve;\r\n        });\r\n        // stopInternal should never throw so just observe it.\r\n        await this._stopInternal(error);\r\n        await this._stopPromise;\r\n    }\r\n    async _stopInternal(error) {\r\n        // Set error as soon as possible otherwise there is a race between\r\n        // the transport closing and providing an error and the error from a close message\r\n        // We would prefer the close message error.\r\n        this._stopError = error;\r\n        try {\r\n            await this._startInternalPromise;\r\n        }\r\n        catch (e) {\r\n            // This exception is returned to the user as a rejected Promise from the start method.\r\n        }\r\n        // The transport's onclose will trigger stopConnection which will run our onclose event.\r\n        // The transport should always be set if currently connected. If it wasn't set, it's likely because\r\n        // stop was called during start() and start() failed.\r\n        if (this.transport) {\r\n            try {\r\n                await this.transport.stop();\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `HttpConnection.transport.stop() threw error '${e}'.`);\r\n                this._stopConnection();\r\n            }\r\n            this.transport = undefined;\r\n        }\r\n        else {\r\n            this._logger.log(LogLevel.Debug, \"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.\");\r\n        }\r\n    }\r\n    async _startInternal(transferFormat) {\r\n        // Store the original base url and the access token factory since they may change\r\n        // as part of negotiating\r\n        let url = this.baseUrl;\r\n        this._accessTokenFactory = this._options.accessTokenFactory;\r\n        try {\r\n            if (this._options.skipNegotiation) {\r\n                if (this._options.transport === HttpTransportType.WebSockets) {\r\n                    // No need to add a connection ID in this case\r\n                    this.transport = this._constructTransport(HttpTransportType.WebSockets);\r\n                    // We should just call connect directly in this case.\r\n                    // No fallback or negotiate in this case.\r\n                    await this._startTransport(url, transferFormat);\r\n                }\r\n                else {\r\n                    throw new Error(\"Negotiation can only be skipped when using the WebSocket transport directly.\");\r\n                }\r\n            }\r\n            else {\r\n                let negotiateResponse = null;\r\n                let redirects = 0;\r\n                do {\r\n                    negotiateResponse = await this._getNegotiationResponse(url);\r\n                    // the user tries to stop the connection when it is being started\r\n                    if (this._connectionState === \"Disconnecting\" /* Disconnecting */ || this._connectionState === \"Disconnected\" /* Disconnected */) {\r\n                        throw new Error(\"The connection was stopped during negotiation.\");\r\n                    }\r\n                    if (negotiateResponse.error) {\r\n                        throw new Error(negotiateResponse.error);\r\n                    }\r\n                    if (negotiateResponse.ProtocolVersion) {\r\n                        throw new Error(\"Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.\");\r\n                    }\r\n                    if (negotiateResponse.url) {\r\n                        url = negotiateResponse.url;\r\n                    }\r\n                    if (negotiateResponse.accessToken) {\r\n                        // Replace the current access token factory with one that uses\r\n                        // the returned access token\r\n                        const accessToken = negotiateResponse.accessToken;\r\n                        this._accessTokenFactory = () => accessToken;\r\n                    }\r\n                    redirects++;\r\n                } while (negotiateResponse.url && redirects < MAX_REDIRECTS);\r\n                if (redirects === MAX_REDIRECTS && negotiateResponse.url) {\r\n                    throw new Error(\"Negotiate redirection limit exceeded.\");\r\n                }\r\n                await this._createTransport(url, this._options.transport, negotiateResponse, transferFormat);\r\n            }\r\n            if (this.transport instanceof LongPollingTransport) {\r\n                this.features.inherentKeepAlive = true;\r\n            }\r\n            if (this._connectionState === \"Connecting\" /* Connecting */) {\r\n                // Ensure the connection transitions to the connected state prior to completing this.startInternalPromise.\r\n                // start() will handle the case when stop was called and startInternal exits still in the disconnecting state.\r\n                this._logger.log(LogLevel.Debug, \"The HttpConnection connected successfully.\");\r\n                this._connectionState = \"Connected\" /* Connected */;\r\n            }\r\n            // stop() is waiting on us via this.startInternalPromise so keep this.transport around so it can clean up.\r\n            // This is the only case startInternal can exit in neither the connected nor disconnected state because stopConnection()\r\n            // will transition to the disconnected state. start() will wait for the transition using the stopPromise.\r\n        }\r\n        catch (e) {\r\n            this._logger.log(LogLevel.Error, \"Failed to start the connection: \" + e);\r\n            this._connectionState = \"Disconnected\" /* Disconnected */;\r\n            this.transport = undefined;\r\n            // if start fails, any active calls to stop assume that start will complete the stop promise\r\n            this._stopPromiseResolver();\r\n            return Promise.reject(e);\r\n        }\r\n    }\r\n    async _getNegotiationResponse(url) {\r\n        const headers = {};\r\n        if (this._accessTokenFactory) {\r\n            const token = await this._accessTokenFactory();\r\n            if (token) {\r\n                headers[HeaderNames.Authorization] = `Bearer ${token}`;\r\n            }\r\n        }\r\n        const [name, value] = getUserAgentHeader();\r\n        headers[name] = value;\r\n        const negotiateUrl = this._resolveNegotiateUrl(url);\r\n        this._logger.log(LogLevel.Debug, `Sending negotiation request: ${negotiateUrl}.`);\r\n        try {\r\n            const response = await this._httpClient.post(negotiateUrl, {\r\n                content: \"\",\r\n                headers: { ...headers, ...this._options.headers },\r\n                timeout: this._options.timeout,\r\n                withCredentials: this._options.withCredentials,\r\n            });\r\n            if (response.statusCode !== 200) {\r\n                return Promise.reject(new Error(`Unexpected status code returned from negotiate '${response.statusCode}'`));\r\n            }\r\n            const negotiateResponse = JSON.parse(response.content);\r\n            if (!negotiateResponse.negotiateVersion || negotiateResponse.negotiateVersion < 1) {\r\n                // Negotiate version 0 doesn't use connectionToken\r\n                // So we set it equal to connectionId so all our logic can use connectionToken without being aware of the negotiate version\r\n                negotiateResponse.connectionToken = negotiateResponse.connectionId;\r\n            }\r\n            return negotiateResponse;\r\n        }\r\n        catch (e) {\r\n            let errorMessage = \"Failed to complete negotiation with the server: \" + e;\r\n            if (e instanceof HttpError) {\r\n                if (e.statusCode === 404) {\r\n                    errorMessage = errorMessage + \" Either this is not a SignalR endpoint or there is a proxy blocking the connection.\";\r\n                }\r\n            }\r\n            this._logger.log(LogLevel.Error, errorMessage);\r\n            return Promise.reject(new FailedToNegotiateWithServerError(errorMessage));\r\n        }\r\n    }\r\n    _createConnectUrl(url, connectionToken) {\r\n        if (!connectionToken) {\r\n            return url;\r\n        }\r\n        return url + (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + `id=${connectionToken}`;\r\n    }\r\n    async _createTransport(url, requestedTransport, negotiateResponse, requestedTransferFormat) {\r\n        let connectUrl = this._createConnectUrl(url, negotiateResponse.connectionToken);\r\n        if (this._isITransport(requestedTransport)) {\r\n            this._logger.log(LogLevel.Debug, \"Connection was provided an instance of ITransport, using that directly.\");\r\n            this.transport = requestedTransport;\r\n            await this._startTransport(connectUrl, requestedTransferFormat);\r\n            this.connectionId = negotiateResponse.connectionId;\r\n            return;\r\n        }\r\n        const transportExceptions = [];\r\n        const transports = negotiateResponse.availableTransports || [];\r\n        let negotiate = negotiateResponse;\r\n        for (const endpoint of transports) {\r\n            const transportOrError = this._resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat);\r\n            if (transportOrError instanceof Error) {\r\n                // Store the error and continue, we don't want to cause a re-negotiate in these cases\r\n                transportExceptions.push(`${endpoint.transport} failed:`);\r\n                transportExceptions.push(transportOrError);\r\n            }\r\n            else if (this._isITransport(transportOrError)) {\r\n                this.transport = transportOrError;\r\n                if (!negotiate) {\r\n                    try {\r\n                        negotiate = await this._getNegotiationResponse(url);\r\n                    }\r\n                    catch (ex) {\r\n                        return Promise.reject(ex);\r\n                    }\r\n                    connectUrl = this._createConnectUrl(url, negotiate.connectionToken);\r\n                }\r\n                try {\r\n                    await this._startTransport(connectUrl, requestedTransferFormat);\r\n                    this.connectionId = negotiate.connectionId;\r\n                    return;\r\n                }\r\n                catch (ex) {\r\n                    this._logger.log(LogLevel.Error, `Failed to start the transport '${endpoint.transport}': ${ex}`);\r\n                    negotiate = undefined;\r\n                    transportExceptions.push(new FailedToStartTransportError(`${endpoint.transport} failed: ${ex}`, HttpTransportType[endpoint.transport]));\r\n                    if (this._connectionState !== \"Connecting\" /* Connecting */) {\r\n                        const message = \"Failed to select transport before stop() was called.\";\r\n                        this._logger.log(LogLevel.Debug, message);\r\n                        return Promise.reject(new Error(message));\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        if (transportExceptions.length > 0) {\r\n            return Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${transportExceptions.join(\" \")}`, transportExceptions));\r\n        }\r\n        return Promise.reject(new Error(\"None of the transports supported by the client are supported by the server.\"));\r\n    }\r\n    _constructTransport(transport) {\r\n        switch (transport) {\r\n            case HttpTransportType.WebSockets:\r\n                if (!this._options.WebSocket) {\r\n                    throw new Error(\"'WebSocket' is not supported in your environment.\");\r\n                }\r\n                return new WebSocketTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});\r\n            case HttpTransportType.ServerSentEvents:\r\n                if (!this._options.EventSource) {\r\n                    throw new Error(\"'EventSource' is not supported in your environment.\");\r\n                }\r\n                return new ServerSentEventsTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options);\r\n            case HttpTransportType.LongPolling:\r\n                return new LongPollingTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options);\r\n            default:\r\n                throw new Error(`Unknown transport: ${transport}.`);\r\n        }\r\n    }\r\n    _startTransport(url, transferFormat) {\r\n        this.transport.onreceive = this.onreceive;\r\n        this.transport.onclose = (e) => this._stopConnection(e);\r\n        return this.transport.connect(url, transferFormat);\r\n    }\r\n    _resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat) {\r\n        const transport = HttpTransportType[endpoint.transport];\r\n        if (transport === null || transport === undefined) {\r\n            this._logger.log(LogLevel.Debug, `Skipping transport '${endpoint.transport}' because it is not supported by this client.`);\r\n            return new Error(`Skipping transport '${endpoint.transport}' because it is not supported by this client.`);\r\n        }\r\n        else {\r\n            if (transportMatches(requestedTransport, transport)) {\r\n                const transferFormats = endpoint.transferFormats.map((s) => TransferFormat[s]);\r\n                if (transferFormats.indexOf(requestedTransferFormat) >= 0) {\r\n                    if ((transport === HttpTransportType.WebSockets && !this._options.WebSocket) ||\r\n                        (transport === HttpTransportType.ServerSentEvents && !this._options.EventSource)) {\r\n                        this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it is not supported in your environment.'`);\r\n                        return new UnsupportedTransportError(`'${HttpTransportType[transport]}' is not supported in your environment.`, transport);\r\n                    }\r\n                    else {\r\n                        this._logger.log(LogLevel.Debug, `Selecting transport '${HttpTransportType[transport]}'.`);\r\n                        try {\r\n                            return this._constructTransport(transport);\r\n                        }\r\n                        catch (ex) {\r\n                            return ex;\r\n                        }\r\n                    }\r\n                }\r\n                else {\r\n                    this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it does not support the requested transfer format '${TransferFormat[requestedTransferFormat]}'.`);\r\n                    return new Error(`'${HttpTransportType[transport]}' does not support ${TransferFormat[requestedTransferFormat]}.`);\r\n                }\r\n            }\r\n            else {\r\n                this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it was disabled by the client.`);\r\n                return new DisabledTransportError(`'${HttpTransportType[transport]}' is disabled by the client.`, transport);\r\n            }\r\n        }\r\n    }\r\n    _isITransport(transport) {\r\n        return transport && typeof (transport) === \"object\" && \"connect\" in transport;\r\n    }\r\n    _stopConnection(error) {\r\n        this._logger.log(LogLevel.Debug, `HttpConnection.stopConnection(${error}) called while in state ${this._connectionState}.`);\r\n        this.transport = undefined;\r\n        // If we have a stopError, it takes precedence over the error from the transport\r\n        error = this._stopError || error;\r\n        this._stopError = undefined;\r\n        if (this._connectionState === \"Disconnected\" /* Disconnected */) {\r\n            this._logger.log(LogLevel.Debug, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is already in the disconnected state.`);\r\n            return;\r\n        }\r\n        if (this._connectionState === \"Connecting\" /* Connecting */) {\r\n            this._logger.log(LogLevel.Warning, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is still in the connecting state.`);\r\n            throw new Error(`HttpConnection.stopConnection(${error}) was called while the connection is still in the connecting state.`);\r\n        }\r\n        if (this._connectionState === \"Disconnecting\" /* Disconnecting */) {\r\n            // A call to stop() induced this call to stopConnection and needs to be completed.\r\n            // Any stop() awaiters will be scheduled to continue after the onclose callback fires.\r\n            this._stopPromiseResolver();\r\n        }\r\n        if (error) {\r\n            this._logger.log(LogLevel.Error, `Connection disconnected with error '${error}'.`);\r\n        }\r\n        else {\r\n            this._logger.log(LogLevel.Information, \"Connection disconnected.\");\r\n        }\r\n        if (this._sendQueue) {\r\n            this._sendQueue.stop().catch((e) => {\r\n                this._logger.log(LogLevel.Error, `TransportSendQueue.stop() threw error '${e}'.`);\r\n            });\r\n            this._sendQueue = undefined;\r\n        }\r\n        this.connectionId = undefined;\r\n        this._connectionState = \"Disconnected\" /* Disconnected */;\r\n        if (this._connectionStarted) {\r\n            this._connectionStarted = false;\r\n            try {\r\n                if (this.onclose) {\r\n                    this.onclose(error);\r\n                }\r\n            }\r\n            catch (e) {\r\n                this._logger.log(LogLevel.Error, `HttpConnection.onclose(${error}) threw error '${e}'.`);\r\n            }\r\n        }\r\n    }\r\n    _resolveUrl(url) {\r\n        // startsWith is not supported in IE\r\n        if (url.lastIndexOf(\"https://\", 0) === 0 || url.lastIndexOf(\"http://\", 0) === 0) {\r\n            return url;\r\n        }\r\n        if (!Platform.isBrowser) {\r\n            throw new Error(`Cannot resolve '${url}'.`);\r\n        }\r\n        // Setting the url to the href propery of an anchor tag handles normalization\r\n        // for us. There are 3 main cases.\r\n        // 1. Relative path normalization e.g \"b\" -> \"http://localhost:5000/a/b\"\r\n        // 2. Absolute path normalization e.g \"/a/b\" -> \"http://localhost:5000/a/b\"\r\n        // 3. Networkpath reference normalization e.g \"//localhost:5000/a/b\" -> \"http://localhost:5000/a/b\"\r\n        const aTag = window.document.createElement(\"a\");\r\n        aTag.href = url;\r\n        this._logger.log(LogLevel.Information, `Normalizing '${url}' to '${aTag.href}'.`);\r\n        return aTag.href;\r\n    }\r\n    _resolveNegotiateUrl(url) {\r\n        const index = url.indexOf(\"?\");\r\n        let negotiateUrl = url.substring(0, index === -1 ? url.length : index);\r\n        if (negotiateUrl[negotiateUrl.length - 1] !== \"/\") {\r\n            negotiateUrl += \"/\";\r\n        }\r\n        negotiateUrl += \"negotiate\";\r\n        negotiateUrl += index === -1 ? \"\" : url.substring(index);\r\n        if (negotiateUrl.indexOf(\"negotiateVersion\") === -1) {\r\n            negotiateUrl += index === -1 ? \"?\" : \"&\";\r\n            negotiateUrl += \"negotiateVersion=\" + this._negotiateVersion;\r\n        }\r\n        return negotiateUrl;\r\n    }\r\n}\r\nfunction transportMatches(requestedTransport, actualTransport) {\r\n    return !requestedTransport || ((actualTransport & requestedTransport) !== 0);\r\n}\r\n/** @private */\r\nexport class TransportSendQueue {\r\n    constructor(_transport) {\r\n        this._transport = _transport;\r\n        this._buffer = [];\r\n        this._executing = true;\r\n        this._sendBufferedData = new PromiseSource();\r\n        this._transportResult = new PromiseSource();\r\n        this._sendLoopPromise = this._sendLoop();\r\n    }\r\n    send(data) {\r\n        this._bufferData(data);\r\n        if (!this._transportResult) {\r\n            this._transportResult = new PromiseSource();\r\n        }\r\n        return this._transportResult.promise;\r\n    }\r\n    stop() {\r\n        this._executing = false;\r\n        this._sendBufferedData.resolve();\r\n        return this._sendLoopPromise;\r\n    }\r\n    _bufferData(data) {\r\n        if (this._buffer.length && typeof (this._buffer[0]) !== typeof (data)) {\r\n            throw new Error(`Expected data to be of type ${typeof (this._buffer)} but was of type ${typeof (data)}`);\r\n        }\r\n        this._buffer.push(data);\r\n        this._sendBufferedData.resolve();\r\n    }\r\n    async _sendLoop() {\r\n        while (true) {\r\n            await this._sendBufferedData.promise;\r\n            if (!this._executing) {\r\n                if (this._transportResult) {\r\n                    this._transportResult.reject(\"Connection stopped.\");\r\n                }\r\n                break;\r\n            }\r\n            this._sendBufferedData = new PromiseSource();\r\n            const transportResult = this._transportResult;\r\n            this._transportResult = undefined;\r\n            const data = typeof (this._buffer[0]) === \"string\" ?\r\n                this._buffer.join(\"\") :\r\n                TransportSendQueue._concatBuffers(this._buffer);\r\n            this._buffer.length = 0;\r\n            try {\r\n                await this._transport.send(data);\r\n                transportResult.resolve();\r\n            }\r\n            catch (error) {\r\n                transportResult.reject(error);\r\n            }\r\n        }\r\n    }\r\n    static _concatBuffers(arrayBuffers) {\r\n        const totalLength = arrayBuffers.map((b) => b.byteLength).reduce((a, b) => a + b);\r\n        const result = new Uint8Array(totalLength);\r\n        let offset = 0;\r\n        for (const item of arrayBuffers) {\r\n            result.set(new Uint8Array(item), offset);\r\n            offset += item.byteLength;\r\n        }\r\n        return result.buffer;\r\n    }\r\n}\r\nclass PromiseSource {\r\n    constructor() {\r\n        this.promise = new Promise((resolve, reject) => [this._resolver, this._rejecter] = [resolve, reject]);\r\n    }\r\n    resolve() {\r\n        this._resolver();\r\n    }\r\n    reject(reason) {\r\n        this._rejecter(reason);\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { MessageType } from \"./IHubProtocol\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { NullLogger } from \"./Loggers\";\r\nimport { TextMessageFormat } from \"./TextMessageFormat\";\r\nconst JSON_HUB_PROTOCOL_NAME = \"json\";\r\n/** Implements the JSON Hub Protocol. */\r\nexport class JsonHubProtocol {\r\n    constructor() {\r\n        /** @inheritDoc */\r\n        this.name = JSON_HUB_PROTOCOL_NAME;\r\n        /** @inheritDoc */\r\n        this.version = 1;\r\n        /** @inheritDoc */\r\n        this.transferFormat = TransferFormat.Text;\r\n    }\r\n    /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.\r\n     *\r\n     * @param {string} input A string containing the serialized representation.\r\n     * @param {ILogger} logger A logger that will be used to log messages that occur during parsing.\r\n     */\r\n    parseMessages(input, logger) {\r\n        // The interface does allow \"ArrayBuffer\" to be passed in, but this implementation does not. So let's throw a useful error.\r\n        if (typeof input !== \"string\") {\r\n            throw new Error(\"Invalid input for JSON hub protocol. Expected a string.\");\r\n        }\r\n        if (!input) {\r\n            return [];\r\n        }\r\n        if (logger === null) {\r\n            logger = NullLogger.instance;\r\n        }\r\n        // Parse the messages\r\n        const messages = TextMessageFormat.parse(input);\r\n        const hubMessages = [];\r\n        for (const message of messages) {\r\n            const parsedMessage = JSON.parse(message);\r\n            if (typeof parsedMessage.type !== \"number\") {\r\n                throw new Error(\"Invalid payload.\");\r\n            }\r\n            switch (parsedMessage.type) {\r\n                case MessageType.Invocation:\r\n                    this._isInvocationMessage(parsedMessage);\r\n                    break;\r\n                case MessageType.StreamItem:\r\n                    this._isStreamItemMessage(parsedMessage);\r\n                    break;\r\n                case MessageType.Completion:\r\n                    this._isCompletionMessage(parsedMessage);\r\n                    break;\r\n                case MessageType.Ping:\r\n                    // Single value, no need to validate\r\n                    break;\r\n                case MessageType.Close:\r\n                    // All optional values, no need to validate\r\n                    break;\r\n                default:\r\n                    // Future protocol changes can add message types, old clients can ignore them\r\n                    logger.log(LogLevel.Information, \"Unknown message type '\" + parsedMessage.type + \"' ignored.\");\r\n                    continue;\r\n            }\r\n            hubMessages.push(parsedMessage);\r\n        }\r\n        return hubMessages;\r\n    }\r\n    /** Writes the specified {@link @microsoft/signalr.HubMessage} to a string and returns it.\r\n     *\r\n     * @param {HubMessage} message The message to write.\r\n     * @returns {string} A string containing the serialized representation of the message.\r\n     */\r\n    writeMessage(message) {\r\n        return TextMessageFormat.write(JSON.stringify(message));\r\n    }\r\n    _isInvocationMessage(message) {\r\n        this._assertNotEmptyString(message.target, \"Invalid payload for Invocation message.\");\r\n        if (message.invocationId !== undefined) {\r\n            this._assertNotEmptyString(message.invocationId, \"Invalid payload for Invocation message.\");\r\n        }\r\n    }\r\n    _isStreamItemMessage(message) {\r\n        this._assertNotEmptyString(message.invocationId, \"Invalid payload for StreamItem message.\");\r\n        if (message.item === undefined) {\r\n            throw new Error(\"Invalid payload for StreamItem message.\");\r\n        }\r\n    }\r\n    _isCompletionMessage(message) {\r\n        if (message.result && message.error) {\r\n            throw new Error(\"Invalid payload for Completion message.\");\r\n        }\r\n        if (!message.result && message.error) {\r\n            this._assertNotEmptyString(message.error, \"Invalid payload for Completion message.\");\r\n        }\r\n        this._assertNotEmptyString(message.invocationId, \"Invalid payload for Completion message.\");\r\n    }\r\n    _assertNotEmptyString(value, errorMessage) {\r\n        if (typeof value !== \"string\" || value === \"\") {\r\n            throw new Error(errorMessage);\r\n        }\r\n    }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { DefaultReconnectPolicy } from \"./DefaultReconnectPolicy\";\r\nimport { HttpConnection } from \"./HttpConnection\";\r\nimport { HubConnection } from \"./HubConnection\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { JsonHubProtocol } from \"./JsonHubProtocol\";\r\nimport { NullLogger } from \"./Loggers\";\r\nimport { Arg, ConsoleLogger } from \"./Utils\";\r\nconst LogLevelNameMapping = {\r\n    trace: LogLevel.Trace,\r\n    debug: LogLevel.Debug,\r\n    info: LogLevel.Information,\r\n    information: LogLevel.Information,\r\n    warn: LogLevel.Warning,\r\n    warning: LogLevel.Warning,\r\n    error: LogLevel.Error,\r\n    critical: LogLevel.Critical,\r\n    none: LogLevel.None,\r\n};\r\nfunction parseLogLevel(name) {\r\n    // Case-insensitive matching via lower-casing\r\n    // Yes, I know case-folding is a complicated problem in Unicode, but we only support\r\n    // the ASCII strings defined in LogLevelNameMapping anyway, so it's fine -anurse.\r\n    const mapping = LogLevelNameMapping[name.toLowerCase()];\r\n    if (typeof mapping !== \"undefined\") {\r\n        return mapping;\r\n    }\r\n    else {\r\n        throw new Error(`Unknown log level: ${name}`);\r\n    }\r\n}\r\n/** A builder for configuring {@link @microsoft/signalr.HubConnection} instances. */\r\nexport class HubConnectionBuilder {\r\n    configureLogging(logging) {\r\n        Arg.isRequired(logging, \"logging\");\r\n        if (isLogger(logging)) {\r\n            this.logger = logging;\r\n        }\r\n        else if (typeof logging === \"string\") {\r\n            const logLevel = parseLogLevel(logging);\r\n            this.logger = new ConsoleLogger(logLevel);\r\n        }\r\n        else {\r\n            this.logger = new ConsoleLogger(logging);\r\n        }\r\n        return this;\r\n    }\r\n    withUrl(url, transportTypeOrOptions) {\r\n        Arg.isRequired(url, \"url\");\r\n        Arg.isNotEmpty(url, \"url\");\r\n        this.url = url;\r\n        // Flow-typing knows where it's at. Since HttpTransportType is a number and IHttpConnectionOptions is guaranteed\r\n        // to be an object, we know (as does TypeScript) this comparison is all we need to figure out which overload was called.\r\n        if (typeof transportTypeOrOptions === \"object\") {\r\n            this.httpConnectionOptions = { ...this.httpConnectionOptions, ...transportTypeOrOptions };\r\n        }\r\n        else {\r\n            this.httpConnectionOptions = {\r\n                ...this.httpConnectionOptions,\r\n                transport: transportTypeOrOptions,\r\n            };\r\n        }\r\n        return this;\r\n    }\r\n    /** Configures the {@link @microsoft/signalr.HubConnection} to use the specified Hub Protocol.\r\n     *\r\n     * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.\r\n     */\r\n    withHubProtocol(protocol) {\r\n        Arg.isRequired(protocol, \"protocol\");\r\n        this.protocol = protocol;\r\n        return this;\r\n    }\r\n    withAutomaticReconnect(retryDelaysOrReconnectPolicy) {\r\n        if (this.reconnectPolicy) {\r\n            throw new Error(\"A reconnectPolicy has already been set.\");\r\n        }\r\n        if (!retryDelaysOrReconnectPolicy) {\r\n            this.reconnectPolicy = new DefaultReconnectPolicy();\r\n        }\r\n        else if (Array.isArray(retryDelaysOrReconnectPolicy)) {\r\n            this.reconnectPolicy = new DefaultReconnectPolicy(retryDelaysOrReconnectPolicy);\r\n        }\r\n        else {\r\n            this.reconnectPolicy = retryDelaysOrReconnectPolicy;\r\n        }\r\n        return this;\r\n    }\r\n    /** Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder.\r\n     *\r\n     * @returns {HubConnection} The configured {@link @microsoft/signalr.HubConnection}.\r\n     */\r\n    build() {\r\n        // If httpConnectionOptions has a logger, use it. Otherwise, override it with the one\r\n        // provided to configureLogger\r\n        const httpConnectionOptions = this.httpConnectionOptions || {};\r\n        // If it's 'null', the user **explicitly** asked for null, don't mess with it.\r\n        if (httpConnectionOptions.logger === undefined) {\r\n            // If our logger is undefined or null, that's OK, the HttpConnection constructor will handle it.\r\n            httpConnectionOptions.logger = this.logger;\r\n        }\r\n        // Now create the connection\r\n        if (!this.url) {\r\n            throw new Error(\"The 'HubConnectionBuilder.withUrl' method must be called before building the connection.\");\r\n        }\r\n        const connection = new HttpConnection(this.url, httpConnectionOptions);\r\n        return HubConnection.create(connection, this.logger || NullLogger.instance, this.protocol || new JsonHubProtocol(), this.reconnectPolicy);\r\n    }\r\n}\r\nfunction isLogger(logger) {\r\n    return logger.log !== undefined;\r\n}\r\n","import * as i1 from '@angular/common/http';\nimport { HttpErrorResponse, HttpContextToken, HTTP_INTERCEPTORS } from '@angular/common/http';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Pipe, InjectionToken, Inject, Output, InjectFlags, Injector, NgModule } from '@angular/core';\nimport * as i1$1 from 'angular-oauth2-oidc';\nimport { NullValidationHandler, OAuthModule } from 'angular-oauth2-oidc';\nimport { BehaviorSubject, Observable, ReplaySubject, Subject, throwError, of, fromEvent, merge, map as map$1 } from 'rxjs';\nimport { filter, take as take$1, map, catchError } from 'rxjs/operators';\nimport { take } from 'rxjs/internal/operators/take';\nimport { Location, DOCUMENT } from '@angular/common';\nimport * as i6 from '@angular/router';\nimport { Router, NavigationEnd, NavigationStart } from '@angular/router';\nimport * as i1$2 from '@angular/platform-browser';\nimport { Userpilot } from 'userpilot';\nimport { format, addDays, startOfDay, endOfDay, startOfWeek, addWeeks, endOfWeek, startOfMonth, addMonths, endOfMonth, startOfYear, addYears, endOfYear, parseISO, addHours } from 'date-fns';\nimport * as signalR from '@microsoft/signalr';\nimport equal from 'fast-deep-equal';\n\n/**\r\n * Service used to helper the signalR\r\n */\r\nclass SignalRHelper {\r\n    /**\r\n     * Function that build the targets\r\n     *\r\n     * @param values The values to build the target\r\n     */\r\n    static buildTarget(values) {\r\n        const target = values.join(this.separator);\r\n        return target;\r\n    }\r\n}\r\nSignalRHelper.separator = '$';\r\nSignalRHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSignalRHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRHelper });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRHelper, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Represent a size of an 2D element\r\n */\r\nclass SizeModel {\r\n    /**\r\n     * @param width With of the element\r\n     * @param height Height of the element\r\n     */\r\n    constructor(width = -1, height = -1) {\r\n        this.width = width;\r\n        this.height = height;\r\n    }\r\n    /** Width in pixels format */\r\n    get widthInPixels() {\r\n        return `${this.width}px`;\r\n    }\r\n    ;\r\n    /** Height in pixels format */\r\n    get heightInPixels() {\r\n        return `${this.height}px`;\r\n    }\r\n    ;\r\n    /**\r\n     * Allows to verify if two SizeModel are equals\r\n     *\r\n     * @param size size that will be used to compare with this size\r\n     */\r\n    isEqual(size) {\r\n        return size.width === this.width && size.height === this.height;\r\n    }\r\n    /**\r\n     * Allows to verify if two SizeModel are differents\r\n     *\r\n     * @param size size that will be used to compare with this size\r\n     */\r\n    notEqual(size) {\r\n        return !this.isEqual(size);\r\n    }\r\n    /**\r\n     * Gets the size orientation base on the width and height\r\n     *\r\n     * @return Orientations of the device, dom element etc.\r\n     */\r\n    getOrientation() {\r\n        if (this.width > this.height) {\r\n            return \"Landscape\" /* OrientationEnum.Landscape */;\r\n        }\r\n        return \"Portrait\" /* OrientationEnum.Portrait */;\r\n    }\r\n    /**\r\n     * Verifies if the two sizes models has the same orienttion\r\n     *\r\n     * @param size size model to compare with this size model\r\n     * @return true if the two orientations are equals\r\n     */\r\n    isOrientationEqual(size) {\r\n        return this.getOrientation() === size.getOrientation();\r\n    }\r\n    /**\r\n     * Verifies if the two sizes models has not the same orienttion\r\n     *\r\n     * @param size size model to compare with this size model\r\n     * @return true if the two orientations are not equals\r\n     */\r\n    isOrientationNotEqual(size) {\r\n        return !this.isOrientationEqual(size);\r\n    }\r\n}\n\n/**\r\n * Represents a cartesian coordinate system\r\n */\r\nclass CoordinatesModel {\r\n    /**\r\n     * Constructor of coordinates model\r\n     *\r\n     * @param x X-axis coordinate\r\n     * @param y Y-axis coordinate\r\n     * @param z Z-axis coordinate\r\n     */\r\n    constructor(x, y, z = -1) {\r\n        this.x = x;\r\n        this.y = y;\r\n        this.z = z;\r\n    }\r\n}\n\n/**\r\n * Service that allows to interact with the browser window object\r\n */\r\nclass WindowService {\r\n    /**\r\n     * Gets the window object\r\n     */\r\n    get window() {\r\n        // return\r\n        return window;\r\n    }\r\n    /**\r\n     * Gets the href from the window.location\r\n     */\r\n    get href() {\r\n        return window.location.href;\r\n    }\r\n    /**\r\n     * Sets the href for the window.location\r\n     */\r\n    set href(url) {\r\n        window.location.href = url;\r\n    }\r\n    /**\r\n     * Get window content size\r\n     *\r\n     * @return size of the window\r\n     */\r\n    getSize() {\r\n        return new SizeModel(this.window.innerWidth, this.window.innerHeight);\r\n    }\r\n    /**\r\n     * Gets the values coordinates values in pixeis for the window scroll\r\n     *\r\n     * @return window scroll coordinates values\r\n     */\r\n    getScrollValues() {\r\n        return new CoordinatesModel(this.window.scrollX || this.window.pageXOffset, this.window.scrollY || this.window.pageYOffset);\r\n    }\r\n}\r\nWindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nWindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WindowService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WindowService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Manager general events, allowing the creation and subscription of new events.\r\n * Applies the pattern publish-subscribe (https://www.enterpriseintegrationpatterns.com/patterns/messaging/PublishSubscribeChannel.html)\r\n */\r\nclass BroadcastService {\r\n    /**\r\n     * Constructs the broadcast service\r\n     *\r\n     * @param windowService Service that allows to interact with the browser window object\r\n     */\r\n    constructor(windowService) {\r\n        this.windowService = windowService;\r\n        this.load();\r\n    }\r\n    /**\r\n     * Loads the BroadCast service. Without loading, the service will not work\r\n     *\r\n     * @return a promise that it return true if everything goes well.\r\n     */\r\n    load() {\r\n        if (!this.windowService.window.broadcastCenter) {\r\n            this.broadcastCenter = new BroadcastCenter();\r\n            this.windowService.window.broadcastCenter = this.broadcastCenter;\r\n        }\r\n    }\r\n    /**\r\n     * Allows the subscription of an event\r\n     *\r\n     * @param key identifier of the event\r\n     * @param listener function that will be called each time the event is emitted.\r\n     *                it will be passed data as a parameter to this function.\r\n     * @returns Function that allows to an unsubscribe an event\r\n     */\r\n    subscribe(key, listener) {\r\n        if (!this.broadcastCenter) {\r\n            if (!this.windowService.window.broadcastCenter) {\r\n                this.broadcastCenter = new BroadcastCenter();\r\n                this.windowService.window.broadcastCenter = this.broadcastCenter;\r\n            }\r\n            else {\r\n                this.broadcastCenter = this.windowService.window.broadcastCenter;\r\n            }\r\n        }\r\n        return this.broadcastCenter.subscribe(key, listener);\r\n    }\r\n    /**\r\n     * Allows the emit an event\r\n     *\r\n     * @param key identifier of the event\r\n     * @param data data that will passed to all subscribers\r\n     */\r\n    emit(key, data) {\r\n        this.broadcastCenter.emit(key, data);\r\n    }\r\n}\r\nBroadcastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BroadcastService, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nBroadcastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BroadcastService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: BroadcastService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: WindowService }]; } });\r\n/**\r\n * Managers the business rules of the broadcast service\r\n */\r\nclass BroadcastCenter {\r\n    /**\r\n     * Constructs the BroadcastCenter\r\n     */\r\n    constructor() {\r\n        this.subscriptions = {};\r\n    }\r\n    /**\r\n     * Allows to emit an event to all subscribers, passing some data\r\n     *\r\n     * @param key event identifier\r\n     * @param data data that will be passed to all subscribers\r\n     */\r\n    emit(key, data) {\r\n        const listeners = this.subscriptions[key];\r\n        if (!listeners) {\r\n            return;\r\n        }\r\n        for (const listner of listeners) {\r\n            listner(data);\r\n        }\r\n    }\r\n    /**\r\n     * Allows the subscription of an event\r\n     *\r\n     * @param key identifier of the event\r\n     * @param listner function that will be called each time the event is emitted.\r\n     *                it will be passed data as a parameter to this function.\r\n     * @returns Function that allows to an unsubscribe an event\r\n     */\r\n    subscribe(key, listner) {\r\n        if (!key || !listner) {\r\n            return null;\r\n        }\r\n        if (!this.subscriptions[key]) {\r\n            this.subscriptions[key] = [];\r\n        }\r\n        this.subscriptions[key].push(listner);\r\n        return () => {\r\n            this.unsubscribe(key, listner);\r\n        };\r\n    }\r\n    /**\r\n     * Allows to unsubscribe an event\r\n     *\r\n     * @param key identifier of the event\r\n     * @param listner function that will be called each time the event is emitted.\r\n     *                it will be passed data as a parameter to this function.\r\n     * @returns Function that allows to an unsubscribe an event\r\n     */\r\n    unsubscribe(key, listner) {\r\n        if (this.subscriptions[key]) {\r\n            const index = this.subscriptions[key].indexOf(listner);\r\n            if (index >= 0) {\r\n                this.subscriptions[key].splice(index, 1);\r\n            }\r\n            if (this.subscriptions[key].length === 0) {\r\n                delete this.subscriptions[key];\r\n            }\r\n        }\r\n    }\r\n}\n\nvar ThemesEnum;\r\n(function (ThemesEnum) {\r\n    ThemesEnum[\"Light\"] = \"light\";\r\n    ThemesEnum[\"Dark\"] = \"dark\";\r\n})(ThemesEnum || (ThemesEnum = {}));\n\nclass SettingsService {\r\n    constructor(httpClient) {\r\n        this.httpClient = httpClient;\r\n        this.shellGeneralSettingsSubject = new BehaviorSubject(null);\r\n    }\r\n    /**\r\n     * Server api url of settings service.\r\n     */\r\n    get serverApiUrl() {\r\n        return this.localServerApiUrl;\r\n    }\r\n    /**\r\n     * Initializes the settings service.\r\n     *\r\n     * @param environment General application environment settings.\r\n     */\r\n    init(environment) {\r\n        this.localServerApiUrl = environment.apiEndpoint;\r\n        this.environmentSettings = environment;\r\n    }\r\n    /**\r\n     * Retrieves the shell general settings\r\n     */\r\n    async getShellGeneralSettings() {\r\n        if (!this.localShellGeneralSettings) {\r\n            this.localShellGeneralSettings = await this.getMergedConfiguration('shell', 'general');\r\n            this.shellGeneralSettingsSubject.next(this.localShellGeneralSettings);\r\n        }\r\n        return this.localShellGeneralSettings;\r\n    }\r\n    getShellGeneralSettingsObservable() {\r\n        return this.shellGeneralSettingsSubject.asObservable();\r\n    }\r\n    /**\r\n     * Retrieves the current general settings\r\n     */\r\n    getCurrentShellGeneralSettings() {\r\n        return this.localShellGeneralSettings;\r\n    }\r\n    /**\r\n     * Retrieves the applications configuration\r\n     */\r\n    async getApplicationsConfiguration() {\r\n        return this.getConfiguration('shell', 'applications');\r\n    }\r\n    /**\r\n     * Retrieves the about configuration\r\n     */\r\n    async getAboutConfiguration() {\r\n        return this.getConfiguration('shell', 'about');\r\n    }\r\n    /**\r\n     * Retrieves the applications configuration\r\n     */\r\n    async getUserPilotConfiguration() {\r\n        return this.getConfiguration('shell', 'userpilot');\r\n    }\r\n    /**\r\n     * Retrieves from configurations wether the Shell type is Elevation or not.\r\n     */\r\n    async isElevationFW() {\r\n        let type;\r\n        await this.getShellGeneralSettings().then((settings) => (type = settings.shellResources.isElevation || false));\r\n        return type;\r\n    }\r\n    /**\r\n     * Retrieves the configuration for the specified component\r\n     *\r\n     * @param componentId The component identifier\r\n     */\r\n    async getContextPageConfiguration(componentId) {\r\n        return this.getConfiguration('contextpages', componentId);\r\n    }\r\n    /**\r\n     * Retrieves the configuration for the specified custom view\r\n     *\r\n     * @param customViewId The custom view identifier\r\n     */\r\n    async getCustomViewConfiguration(customViewId) {\r\n        return this.getConfiguration('customviews', customViewId);\r\n    }\r\n    /**\r\n     * Retrieves the configuration for the specified widget\r\n     *\r\n     * @param widgetId The widget identifier\r\n     */\r\n    async getWidgetConfiguration(widgetId) {\r\n        return this.getConfiguration('dashboards', widgetId);\r\n    }\r\n    /**\r\n     * Retrieves the i18n default locales\r\n     */\r\n    async getI18nDefaults() {\r\n        return this.getConfiguration('i18n', 'supported-cultures');\r\n    }\r\n    /**\r\n     * Gets a configuration file.\r\n     *\r\n     * @param folder The folder where the file is in (if is in assets/configurations/context-pages, then you should pass context-pages).\r\n     * @param file The file name.\r\n     * @return the parsed json configuration.\r\n     */\r\n    getConfiguration(folder, file) {\r\n        const url = `assets/configurations/${folder}/${file}.json`;\r\n        return this.httpClient.get(url).toPromise();\r\n    }\r\n    /**\r\n     *\r\n     *\r\n     * Gets the merged configuration between the base shell settings and the environment dependent shell settings\r\n     *\r\n     *\r\n     *\r\n     * @param folder The folder name\r\n     * @param file The file name\r\n     * @returns Promise with the merged settings\r\n     */\r\n    async getMergedConfiguration(folder, file) {\r\n        const baseSettings = await this.getConfiguration(folder, file);\r\n        const mergedSettings = this.mergeSettings(baseSettings, this.environmentSettings);\r\n        return mergedSettings;\r\n    }\r\n    /**\r\n     * Merges the the base settings and the environment dependent settings\r\n     *\r\n     * @param baseSettings The base settings.\r\n     * @param environmentSettings The environment dependent settings.\r\n     * @returns The settings merged.\r\n     */\r\n    mergeSettings(baseSettings, environmentSettings) {\r\n        for (const key of Object.keys(environmentSettings)) {\r\n            const value = environmentSettings[key];\r\n            if (value != null && !(typeof value === 'string' && value === '')) {\r\n                baseSettings[key] = value;\r\n            }\r\n        }\r\n        return baseSettings;\r\n    }\r\n}\r\nSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SettingsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SettingsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });\n\n/**\r\n * Responsible to handles the communication between the application and the localStorage and sessionStorage\r\n */\r\nclass StorageService {\r\n    constructor() {\r\n        /** Separator */\r\n        this.versionSeparator = '_version_';\r\n    }\r\n    /**\r\n     * Gets a value saved on the local storage\r\n     *\r\n     * @param key key of the value\r\n     * @return value saved on the local storage\r\n     */\r\n    get(key) {\r\n        if (key != null) {\r\n            const value = window.localStorage.getItem(key);\r\n            if (value) {\r\n                return value;\r\n            }\r\n            else {\r\n                const prefix = key.split(this.versionSeparator)[0];\r\n                this.removeByPrefix(prefix);\r\n                return null;\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    /**\r\n     * Sets a value on the local storage\r\n     *\r\n     * @param key identifier of the value\r\n     * @param value value that will be saved\r\n     */\r\n    set(key, value) {\r\n        try {\r\n            window.localStorage.setItem(key, value);\r\n        }\r\n        catch (e) {\r\n            // handle exception e, provide fallback, ..\r\n        }\r\n    }\r\n    /**\r\n     * Removes a value from the localStorage\r\n     *\r\n     * @param key identifier of the value\r\n     */\r\n    remove(key) {\r\n        if (key != null) {\r\n            window.localStorage.removeItem(key);\r\n        }\r\n    }\r\n    /**\r\n     * Removes several value, which the key the starts with some prefix\r\n     *\r\n     * @param prefix prefix that will use to remove items\r\n     */\r\n    removeByPrefix(prefix) {\r\n        for (const item in window.localStorage) {\r\n            if (item.startsWith(prefix)) {\r\n                this.remove(item);\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Gets a value from the sessionStorage\r\n     *\r\n     * @param key identifier ofthe value\r\n     * @return value stored on the session Storage\r\n     */\r\n    sessionGet(key) {\r\n        if (key != null) {\r\n            let value = window.sessionStorage.getItem(key);\r\n            if (value === undefined) {\r\n                value = null;\r\n            }\r\n            return value;\r\n        }\r\n        return null;\r\n    }\r\n    /**\r\n     * Sets a value on the sessionStorage\r\n     *\r\n     * @param key identifier of the value\r\n     * @param value value that will be saved\r\n     */\r\n    sessionSet(key, value) {\r\n        if (value != null && key != null) {\r\n            window.sessionStorage.setItem(key, value);\r\n        }\r\n    }\r\n    /**\r\n     * Removes a value from the sessionStorage\r\n     *\r\n     * @param key identifier of the value\r\n     */\r\n    sessionRemove(key) {\r\n        if (key != null) {\r\n            window.sessionStorage.removeItem(key);\r\n        }\r\n    }\r\n    /**\r\n     * Removes several value, which the key the starts with some prefix\r\n     *\r\n     * @param prefix prefix that will use to remove items\r\n     */\r\n    sessionRemoveByPrefix(prefix) {\r\n        for (const item in window.sessionStorage) {\r\n            if (item.startsWith(prefix)) {\r\n                this.sessionRemove(item);\r\n            }\r\n        }\r\n    }\r\n}\r\nStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StorageService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: StorageService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Responsible to manage the user settings\r\n */\r\nclass UserSettingsService {\r\n    constructor(httpClient, settingsService, storageService, appContext) {\r\n        this.httpClient = httpClient;\r\n        this.settingsService = settingsService;\r\n        this.storageService = storageService;\r\n        this.appContext = appContext;\r\n    }\r\n    setCurrentUserSetting(definition) {\r\n        return new Promise(async (resolve, reject) => {\r\n            // If solution is non Elevation, use local storage\r\n            if (!(await this.settingsService.isElevationFW())) {\r\n                const storageKey = definition?.clientId\r\n                    ? `userSettingsStorage-${definition.clientId}-${definition.settingKey}`\r\n                    : `userSettingsStorage-${definition.settingKey}`;\r\n                this.storageService.set(storageKey, JSON.stringify(definition));\r\n                resolve(true);\r\n                return;\r\n            }\r\n            this.httpClient\r\n                .post(this.buildUrl('setCurrentUserSetting'), definition)\r\n                .pipe(take(1))\r\n                .subscribe({\r\n                next: (result) => resolve(result),\r\n                error: (err) => (err.error instanceof Error ? reject(err.error) : reject(err))\r\n            });\r\n        });\r\n    }\r\n    resetCurrentUserSetting(settingKey, clientId) {\r\n        return new Promise(async (resolve, reject) => {\r\n            // If solution if non Elevation, use local storage\r\n            if (!(await this.settingsService.isElevationFW())) {\r\n                const storageKey = clientId\r\n                    ? `userSettingsStorage-${clientId}-${settingKey}`\r\n                    : `userSettingsStorage-${settingKey}`;\r\n                this.storageService.remove(storageKey);\r\n                resolve(true);\r\n                return;\r\n            }\r\n            this.httpClient\r\n                .post(this.buildUrl('resetCurrentUserSetting', clientId, settingKey), '')\r\n                .pipe(take(1))\r\n                .subscribe({\r\n                next: (result) => resolve(result),\r\n                error: (err) => (err.error instanceof Error ? reject(err.error) : reject(err))\r\n            });\r\n        });\r\n    }\r\n    getCurrentUserSettings() {\r\n        return new Promise(async (resolve, reject) => {\r\n            // If solution is non Elevation, use local storage\r\n            if (!(await this.settingsService.isElevationFW())) {\r\n                resolve(JSON.parse(this.storageService.get('userSettingsStorage')));\r\n                return;\r\n            }\r\n            this.httpClient\r\n                .get(this.buildUrl('getCurrentUserSettings'))\r\n                .pipe(take(1))\r\n                .subscribe({\r\n                next: (result) => resolve(result),\r\n                error: (err) => (err.error instanceof Error ? reject(err.error) : reject(err))\r\n            });\r\n        });\r\n    }\r\n    getCurrentUserSetting(settingKey, clientId) {\r\n        return new Promise(async (resolve, reject) => {\r\n            // If solution is non Elevation, use local storage\r\n            if (!(await this.settingsService.isElevationFW())) {\r\n                const storageKey = clientId\r\n                    ? `userSettingsStorage-${clientId}-${settingKey}`\r\n                    : `userSettingsStorage-${settingKey}`;\r\n                resolve(JSON.parse(this.storageService.get(storageKey)));\r\n                return;\r\n            }\r\n            this.httpClient\r\n                .get(this.buildUrl('getCurrentUserSetting', clientId, settingKey))\r\n                .pipe(take(1))\r\n                .subscribe({\r\n                next: (result) => resolve(result),\r\n                error: (err) => (err.error instanceof Error ? reject(err.error) : reject(err))\r\n            });\r\n        });\r\n    }\r\n    buildUrl(...path) {\r\n        const p = path.filter(Boolean).join('/');\r\n        return `/app/${this.appContext.tenantKey}/${this.appContext.organizationKey}/identity/userSettings`\r\n            .concat('/')\r\n            .concat(p);\r\n    }\r\n}\r\nUserSettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserSettingsService, deps: [{ token: i1.HttpClient }, { token: SettingsService }, { token: StorageService }, { token: AppContextService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nUserSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserSettingsService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserSettingsService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: SettingsService }, { type: StorageService }, { type: AppContextService }]; } });\n\n/**\r\n *Service used to perform all role related requests to server\r\n */\r\nclass RoleService {\r\n    constructor(httpClient, broadcastService, appContextService, settingsService, userSettings) {\r\n        this.httpClient = httpClient;\r\n        this.broadcastService = broadcastService;\r\n        this.appContextService = appContextService;\r\n        this.settingsService = settingsService;\r\n        this.userSettings = userSettings;\r\n        this.userSubscriptionRolesValue = [];\r\n    }\r\n    /**\r\n     *Gets the current user default role key\r\n     */\r\n    get userSubscriptionRoles() {\r\n        return this.userSubscriptionRolesValue;\r\n    }\r\n    /**\r\n     *Gets the current user default role key\r\n     */\r\n    get roleKey() {\r\n        return this.roleKeyValue;\r\n    }\r\n    /**\r\n     *Gets roles definition\r\n     */\r\n    get roleDefinition() {\r\n        return this.roleDefinitionValue;\r\n    }\r\n    /**\r\n     *Initialize SubscriptionRoles, CurrentUserRoleKey and RolesDefinition\r\n     */\r\n    async initialize() {\r\n        const isElevation = await this.settingsService.isElevationFW();\r\n        if (isElevation) {\r\n            this.userSubscriptionRolesValue = await this.getUserSubscriptionRolesAsync();\r\n            this.setRoleKeyValue(await this.getCurrentUserRoleKeyAsync());\r\n            const isCurrentRoleStillValid = await this.isCurrentRoleStillValidAsync();\r\n            if (!isCurrentRoleStillValid || !this.roleKeyValue) {\r\n                await this.setCurrentRoleToDefaultAsync();\r\n            }\r\n            this.roleDefinitionValue = await this.getRoleDefinitionAsync(this.roleKeyValue);\r\n        }\r\n    }\r\n    /**\r\n     *Sets the current user default role key async\r\n     *\r\n     *@param roleKey The role key\r\n     */\r\n    async setCurrentUserRoleKeyAsync(roleKey) {\r\n        const settingsResult = await this.setCurrentRoleKeySettingAsync(roleKey);\r\n        if (settingsResult) {\r\n            this.setRoleKeyValue(roleKey);\r\n        }\r\n    }\r\n    /**\r\n     *Check if the current role still valid async.\r\n     *\r\n     * @param refreshUserRoles  flag if is to refresh userSubscriptionRolesValue\r\n     * @returns  if is valid or not.\r\n     */\r\n    async isCurrentRoleStillValidAsync(refreshUserRoles = false) {\r\n        if (refreshUserRoles) {\r\n            this.userSubscriptionRolesValue = await this.getUserSubscriptionRolesAsync();\r\n        }\r\n        return !(this.userSubscriptionRolesValue != null &&\r\n            !this.userSubscriptionRolesValue.find((r) => r.roleKey === this.roleKeyValue));\r\n    }\r\n    /**\r\n     * Set the role key value.\r\n     *\r\n     * @param key the role key value.\r\n     */\r\n    setRoleKeyValue(key) {\r\n        this.roleKeyValue = key;\r\n    }\r\n    async setCurrentRoleToDefaultAsync() {\r\n        this.setRoleKeyValue(this.userSubscriptionRoles.find((roles) => roles.isDefault)?.roleKey);\r\n        if (!this.roleKeyValue && this.userSubscriptionRoles.length > 0) {\r\n            this.setRoleKeyValue(this.userSubscriptionRoles[0]?.roleKey);\r\n        }\r\n        await this.setCurrentUserRoleKeyAsync(this.roleKeyValue);\r\n    }\r\n    async getCurrentUserRoleKeyAsync() {\r\n        const promise = new Promise((resolve, reject) => {\r\n            // make this request without x-role header to ensure that the request is successful even\r\n            // if the current role was removed from server side, assuming all the remaining user roles.\r\n            const backupRoleKey = this.roleKeyValue;\r\n            this.setRoleKeyValue(undefined);\r\n            this.userSettings\r\n                .getCurrentUserSetting(this.settingKey, this.appContextService.getContext().clientId)\r\n                .then((userSetting) => {\r\n                if (userSetting) {\r\n                    this.setRoleKeyValue(backupRoleKey);\r\n                    resolve(userSetting.value);\r\n                }\r\n                else {\r\n                    this.setRoleKeyValue(backupRoleKey);\r\n                    resolve(undefined);\r\n                }\r\n            });\r\n        });\r\n        return promise;\r\n    }\r\n    async getUserSubscriptionRolesAsync() {\r\n        // make this request without x-role header to ensure that the request is successful even\r\n        // if the current role was removed from server side, assuming all the remaining user roles.\r\n        const backupRoleKey = this.roleKeyValue;\r\n        this.setRoleKeyValue(undefined);\r\n        const getUserSubscriptionRolesUrl = '/app/identity/subscriptions/getUserSubscriptionRoles/';\r\n        return new Promise((resolve, reject) => {\r\n            this.httpClient\r\n                .get(getUserSubscriptionRolesUrl + this.appContextService.user.id)\r\n                .subscribe((data) => {\r\n                this.setRoleKeyValue(backupRoleKey);\r\n                resolve(data);\r\n            }, (err) => {\r\n                this.setRoleKeyValue(backupRoleKey);\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    async setCurrentRoleKeySettingAsync(roleKey) {\r\n        const settingDefinition = {\r\n            settingKey: this.settingKey,\r\n            value: roleKey,\r\n            clientId: this.appContextService.getContext().clientId\r\n        };\r\n        return this.userSettings.setCurrentUserSetting(settingDefinition);\r\n    }\r\n    /**\r\n     *Gets the role definition of the specified role\r\n     *\r\n     * @param roleKey The role key\r\n     */\r\n    async getRoleDefinitionAsync(roleKey) {\r\n        const url = `/app/${this.appContextService.tenantKey}/${this.appContextService.organizationKey}` +\r\n            `/identity/roles/getRoleDefinition/${roleKey}`;\r\n        const promise = new Promise((resolve, reject) => {\r\n            this.httpClient.get(url).subscribe((data) => {\r\n                this.roleDefinitionValue = data;\r\n                resolve(data);\r\n            }, (err) => {\r\n                if (err.error instanceof Error) {\r\n                    reject(err.error);\r\n                }\r\n                else {\r\n                    reject(err);\r\n                }\r\n            });\r\n        });\r\n        return promise;\r\n    }\r\n    get settingKey() {\r\n        return this.appContextService.organizationKey.concat('_').concat('role_key');\r\n    }\r\n}\r\nRoleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleService, deps: [{ token: i1.HttpClient }, { token: BroadcastService }, { token: AppContextService }, { token: SettingsService }, { token: UserSettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nRoleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RoleService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: BroadcastService }, { type: AppContextService }, { type: SettingsService }, { type: UserSettingsService }]; } });\n\n/**\r\n * Service used to helper the cache\r\n */\r\nclass CacheHelperService {\r\n    /**\r\n     * Constructs the service\r\n     *\r\n     * @param appContextService Service that allows to interact with the application context.\r\n     * @param settingsService Service responsible for retrieving configurations.\r\n     */\r\n    constructor(appContextService, settingsService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.settingsService = settingsService;\r\n        this.roleService = roleService;\r\n        /** All subscriptions key */\r\n        this.allSubscriptionsCacheKeyPart = 'ALL-SUBSCRIPTIONS';\r\n        /** Separator */\r\n        this.versionSeparator = '_version_';\r\n    }\r\n    /**\r\n     * Generates the cache key, including product name and version (optionally account, subscription, culture and role).\r\n     *\r\n     * @param subscriptionAware if set to <c>true</c> account key and subscription are included.\r\n     * @param cultureAware if set to <c>true</c> user culture is included.</param>\r\n     * @param roleAware if set to <c>true</c> user role is included.</param>\r\n     * @param keyParts The key parts.\r\n     * @param versionParts The key to version parts.\r\n     * @returns The cache key to use next.\r\n     */\r\n    generateCacheKey(subscriptionAware, cultureAware, roleAware, keyParts, versionParts) {\r\n        let keyArray = [];\r\n        let versionArray = [];\r\n        // Item specific\r\n        keyArray = keyArray.concat(keyParts);\r\n        // Isolation Key isolation\r\n        if (this.settingsService.environmentSettings.caching.isolationKey) {\r\n            keyArray.push(this.settingsService.environmentSettings.caching.isolationKey.toLowerCase());\r\n        }\r\n        // Product name\r\n        keyArray.push(this.settingsService.environmentSettings.productName.toLowerCase());\r\n        // Subscription\r\n        if (subscriptionAware) {\r\n            if (!this.appContextService.tenantKey || !this.appContextService.organizationKey) {\r\n                console.warn(\"'generateCacheKey' was called with flag subscriptionAware set to true,\" +\r\n                    ' but the tenantKey or the organizationKey are not defined');\r\n            }\r\n            else {\r\n                keyArray.push(this.appContextService.tenantKey.toLowerCase());\r\n                keyArray.push(this.appContextService.organizationKey.toLowerCase());\r\n            }\r\n        }\r\n        else {\r\n            keyArray.push(this.allSubscriptionsCacheKeyPart.toLowerCase());\r\n        }\r\n        // Role\r\n        if (roleAware && this.roleService.roleKey) {\r\n            keyArray.push(this.roleService.roleKey);\r\n        }\r\n        // Culture\r\n        if (cultureAware) {\r\n            keyArray.push(this.appContextService?.user.culture.toLowerCase());\r\n        }\r\n        // Isolation Cache Version\r\n        if (this.settingsService.environmentSettings.caching.version) {\r\n            versionArray.push(this.settingsService.environmentSettings.caching.version.toLowerCase());\r\n        }\r\n        // Database version\r\n        if (this.appContextService?.getContext().databaseVersion) {\r\n            versionArray.push(this.appContextService.getContext().databaseVersion.toLowerCase());\r\n        }\r\n        // Version specific\r\n        versionArray = versionArray.concat(versionParts);\r\n        const key = keyArray.join('.');\r\n        const version = versionArray.join('.');\r\n        return `${key}${this.versionSeparator}${version}`.toLowerCase();\r\n    }\r\n}\r\nCacheHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CacheHelperService, deps: [{ token: AppContextService }, { token: SettingsService }, { token: RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nCacheHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CacheHelperService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CacheHelperService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: SettingsService }, { type: RoleService }]; } });\n\nclass RouteInfoModel {\r\n    /**\r\n     * @param moduleName Name of the module\r\n     * @param serviceName Name of Service\r\n     * @param action Name of the action\r\n     * @param path Route path\r\n     * @param listName Name of the List\r\n     */\r\n    constructor(moduleName, serviceName, actionName, path, listName) {\r\n        this.moduleName = moduleName;\r\n        this.serviceName = serviceName;\r\n        this.actionName = actionName;\r\n        this.path = path;\r\n        this.listName = listName;\r\n    }\r\n    /**\r\n     * Whether two route info objects are equals.\r\n     *\r\n     * @param routeInfo The route info.\r\n     */\r\n    isEqual(routeInfo) {\r\n        return routeInfo.moduleName === this.moduleName &&\r\n            routeInfo.serviceName === this.serviceName &&\r\n            routeInfo.actionName === this.actionName &&\r\n            routeInfo.path === this.path &&\r\n            routeInfo.listName === this.listName;\r\n    }\r\n}\n\n/**\r\n * Service used to retrieve data from the Route/Url\r\n */\r\nclass RouteHelperService {\r\n    constructor(injector, settingsService) {\r\n        this.injector = injector;\r\n        this.settingsService = settingsService;\r\n        /**\r\n         * The route history log.\r\n         */\r\n        this.history = [];\r\n        /**\r\n         * Close outlet event of route helper service.\r\n         */\r\n        this.closeOutletEvent = new EventEmitter();\r\n        this.startSaveHistory();\r\n    }\r\n    /** The current router. */\r\n    get router() {\r\n        return this.injector.get(Router);\r\n    }\r\n    /** Return the current location. */\r\n    get location() {\r\n        return this.injector.get(Location);\r\n    }\r\n    /**\r\n     * Provides the history of visited routes url.\r\n     */\r\n    getHistory() {\r\n        return this.history;\r\n    }\r\n    /**\r\n     * Gets previous visited route url.\r\n     */\r\n    getPreviousUrl() {\r\n        if (this.history.length > 0) {\r\n            return this.history[this.history.length - 2];\r\n        }\r\n        return '';\r\n    }\r\n    /**\r\n     * Gets the current route url.\r\n     *\r\n     * @param account The account.\r\n     * @param subscription The subscription.\r\n     * @param withQueryParams Wether should return the url with query parameters. The default value is true.\r\n     * @returns url The url.\r\n     */\r\n    getUrl(account, subscription, withQueryParams = true) {\r\n        let url = window.location.pathname;\r\n        // remove account and subscription alias\r\n        url = url.replace(new RegExp(`/${account}/${subscription}`, 'i'), '');\r\n        if (!withQueryParams) {\r\n            url = this.removeQueryParameters(url);\r\n        }\r\n        return url;\r\n    }\r\n    /**\r\n     * Removes query parameters from a given url.\r\n     *\r\n     * @url Original Url.\r\n     * @return Url without query parameters;\r\n     */\r\n    removeQueryParameters(url) {\r\n        const char = '?';\r\n        if (url.indexOf(char) === -1) {\r\n            return url;\r\n        }\r\n        else {\r\n            return url.split('?')[0];\r\n        }\r\n    }\r\n    /**\r\n     * Emits an event each time the popup visibility change.\r\n     * This visibility change state is based on whether the popup outlet is activate.\r\n     *\r\n     * @activatedRoute Provides access to information about a route associated with a component.\r\n     */\r\n    popupVisibilityChangedEvent(activatedRoute) {\r\n        return new Observable((subscriber) => {\r\n            if (typeof this.isPopupVisible === 'undefined') {\r\n                this.isPopupVisible = this.isOutletActive(activatedRoute, \"popup\" /* OutletEnum.Popup */);\r\n            }\r\n            subscriber.next(this.isPopupVisible);\r\n            this.navigationEndEvent().subscribe(() => {\r\n                const popupActivatedRoute = this.isOutletActive(activatedRoute, \"popup\" /* OutletEnum.Popup */);\r\n                if (popupActivatedRoute !== this.isPopupVisible) {\r\n                    this.isPopupVisible = popupActivatedRoute;\r\n                    subscriber.next(this.isPopupVisible);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Emits a event each time a navigation is performed (can be sean as a url change).\r\n     * The event is emitted only when the navigation process is ended.\r\n     */\r\n    navigationEndEvent() {\r\n        return new Observable((subscribe) => {\r\n            this.router.events.subscribe((event) => {\r\n                if (event instanceof NavigationEnd) {\r\n                    subscribe.next();\r\n                }\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Emits a event each time a navigation is performed (can be sean as a url change).\r\n     * The event is emitted only when the navigation process is ended.\r\n     */\r\n    navigationStartEvent() {\r\n        return new Observable((subscribe) => {\r\n            this.router.events.subscribe((event) => {\r\n                if (event instanceof NavigationStart) {\r\n                    subscribe.next(event);\r\n                }\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Gets routing information based on a given url.\r\n     *\r\n     * @param url Url which will be inferred routing information.\r\n     * By default, uses the current application url.\r\n     */\r\n    getRouteInfo(url = window.location.href) {\r\n        let urlParts;\r\n        let path;\r\n        if (url.includes('#') && url.split('#').length > 1 && url.split('#')[1].split('/').length > 2) {\r\n            let localUrl = url.split('#')[1];\r\n            if (localUrl[0] === '/') {\r\n                localUrl = localUrl.substring(1, localUrl.length);\r\n            }\r\n            urlParts = localUrl.split('/');\r\n            path = url.split('#')[1];\r\n        }\r\n        else {\r\n            if (url[0] === '/') {\r\n                urlParts = url.substring(1, url.length).split('/');\r\n            }\r\n            else {\r\n                urlParts = url.split('/');\r\n            }\r\n            path = url;\r\n        }\r\n        if (urlParts[urlParts.length - 1].includes('?')) {\r\n            urlParts[urlParts.length - 1] = urlParts[urlParts.length - 1].split('?')[0];\r\n        }\r\n        if (path.includes('?')) {\r\n            path = path.split('?')[0];\r\n        }\r\n        // Get listName parameter (if exists)\r\n        const listName = this.getParametersFromUri(url)['listname'];\r\n        if (urlParts.length === 3) {\r\n            return new RouteInfoModel(urlParts[0], urlParts[1], urlParts[2], path, listName);\r\n        }\r\n        else {\r\n            return new RouteInfoModel(urlParts[5], urlParts[6], urlParts[7], [urlParts[5], urlParts[6], urlParts[7]].join('/'), listName);\r\n        }\r\n    }\r\n    /**\r\n     * Get the OperationId of the current route\r\n     */\r\n    getCurrentRouteOperationId() {\r\n        const routeInfo = this.getRouteInfo();\r\n        // if the path starts with a \"/\" we remove it to match the path in the routes file\r\n        if (routeInfo.path[0] === '/') {\r\n            routeInfo.path = routeInfo.path.substr(1);\r\n        }\r\n        return this.getOperationIdFromRoute(routeInfo.path, routeInfo.listName);\r\n    }\r\n    /**\r\n     * Get an operation id from a registered route with the respective path\r\n     *\r\n     * @param path The route path\r\n     * @param listName The list name (optional)\r\n     */\r\n    getOperationIdFromRoute(path, listName) {\r\n        let operationId;\r\n        let matching;\r\n        if (listName) {\r\n            matching = this.getAppRoutes().find((element) => element.path &&\r\n                element.path === path &&\r\n                element.data.listName.toLocaleUpperCase() === listName.toLocaleUpperCase());\r\n        }\r\n        else {\r\n            matching = this.getAppRoutes().find((element) => element.path && element.path.toLocaleUpperCase() === path.toLocaleUpperCase());\r\n        }\r\n        if (matching?.data) {\r\n            operationId = matching?.data['operationId'];\r\n        }\r\n        return operationId;\r\n    }\r\n    /**\r\n     * Get an operation id from a registered route with the respective path\r\n     *\r\n     * @param path The route path\r\n     */\r\n    getRouteFromOperationId(id) {\r\n        let route;\r\n        const matching = this.getAppRoutes().find((element) => element.data && element.data.operationId === id);\r\n        if (matching?.path) {\r\n            route = matching.path;\r\n            // If the route contains a list name, we put it in the querystring\r\n            if (matching.data['listName']) {\r\n                route += `?listname=${matching.data['listName']}`;\r\n            }\r\n        }\r\n        return route;\r\n    }\r\n    /**\r\n     * Gets the customization operation id from a registered route with the respective path\r\n     *\r\n     * @param path The route path\r\n     * @param listName The list name (optional)\r\n     */\r\n    getCustomizationOperationIdFromRoutes(path, listName) {\r\n        let customizationOperationId;\r\n        let matching;\r\n        if (listName) {\r\n            matching = this.getAppRoutes().find((element) => element.path && element.path === path && element.data.listName === listName);\r\n        }\r\n        else {\r\n            matching = this.getAppRoutes().find((element) => element.path && element.path === path);\r\n        }\r\n        if (matching?.data) {\r\n            customizationOperationId = matching.data['customizationOperationId'];\r\n        }\r\n        return customizationOperationId;\r\n    }\r\n    /**\r\n     * Gets the operation id from a registered route with the respective path\r\n     *\r\n     * @param path The route path\r\n     * @param listName The list name (optional)\r\n     */\r\n    getOperationIdFromRoutes(path, listName) {\r\n        let operationId;\r\n        let matching;\r\n        path = path.split('?')[0];\r\n        if (listName) {\r\n            matching = this.getAppRoutes().find((element) => element.path && element.path === path && element.data.listName === listName);\r\n        }\r\n        else {\r\n            matching = this.getAppRoutes().find((element) => element.path && element.path === path);\r\n        }\r\n        if (matching?.data) {\r\n            operationId = matching.data['operationId'];\r\n        }\r\n        return operationId;\r\n    }\r\n    /**\r\n     * Helper function that parses an uri retrieved from the list configuration\r\n     *\r\n     * @param uri The uri to be parsed\r\n     */\r\n    parseUriFromListConfiguration(uri) {\r\n        let parsedUri;\r\n        if (uri) {\r\n            // Remove query string if exists\r\n            parsedUri = uri.split('?')[0];\r\n            // Take module, service and operation\r\n            const tokens = parsedUri.split('/', 4);\r\n            // Build new uri\r\n            parsedUri = `${tokens[1]}/${tokens[2]}/${tokens[3]}`;\r\n        }\r\n        return parsedUri;\r\n    }\r\n    /**\r\n     * Get the operation id from a registered route with the respective uri (from list configuration)\r\n     *\r\n     * @param uri The operation's uri\r\n     */\r\n    getOperationIdFromListConfigurationUri(uri) {\r\n        let operationId;\r\n        if (uri) {\r\n            const listname = uri.split('listname=')[1] ? uri.split('listname=')[1] : null;\r\n            uri = this.parseUriFromListConfiguration(uri);\r\n            operationId = this.getOperationIdFromRoute(uri, listname);\r\n        }\r\n        return operationId;\r\n    }\r\n    /**\r\n     * Gets the customization operation id from a registered route with the respective uri (from list configuration)\r\n     *\r\n     * @param uri The operation's uri\r\n     */\r\n    getCustomizationOperationIdFromListConfigurationUri(uri) {\r\n        let customizationOperationId;\r\n        if (uri) {\r\n            const listname = uri.split('listname=')[1] ? uri.split('listname=')[1] : null;\r\n            uri = this.parseUriFromListConfiguration(uri);\r\n            customizationOperationId = this.getCustomizationOperationIdFromRoutes(uri, listname);\r\n        }\r\n        return customizationOperationId;\r\n    }\r\n    /**\r\n     * Gets parameters all uri query parameters from a given url\r\n     *\r\n     * @param uri Url which is used to infer the query parameters key and values.\r\n     * @returns Dictionary of key/value pairs containing the query parameters keys and values.\r\n     */\r\n    getParametersFromUri(uri = window.location.href) {\r\n        const params = {};\r\n        try {\r\n            const parametersString = uri.split('?')[1];\r\n            if (!parametersString) {\r\n                return params;\r\n            }\r\n            else {\r\n                const pairs = parametersString.split('&');\r\n                pairs.forEach((element) => {\r\n                    const keyValuePairs = element.split('=');\r\n                    params[keyValuePairs[0]] = decodeURIComponent(keyValuePairs[1]);\r\n                });\r\n                return params;\r\n            }\r\n        }\r\n        catch {\r\n            return params;\r\n        }\r\n    }\r\n    /**\r\n     * Changes current url parameters.\r\n     *\r\n     * @param parameters The query parameters.\r\n     * @param parametersToRemove The removed parameters.\r\n     * @param [saveInBrowserHistory=\"false\"] Whether saves as a url navigation in the browser history.\r\n     */\r\n    changeCurrentUrlParameters(parameters, parametersToRemove = undefined, saveInBrowserHistory = false) {\r\n        let url = window.location.pathname;\r\n        const parametersFromUri = this.getParametersFromUri();\r\n        if (parametersToRemove) {\r\n            parametersToRemove.forEach((p) => {\r\n                delete parametersFromUri[p];\r\n            });\r\n        }\r\n        parameters = this.mergeQueryParam(parametersFromUri, parameters);\r\n        url = this.addParametersToUrl(url, parameters);\r\n        return this.router.navigateByUrl(url, { replaceUrl: !saveInBrowserHistory });\r\n    }\r\n    /**\r\n     * Navigates to a given route.\r\n     *\r\n     * @param account The account.\r\n     * @param subscription The subscription.\r\n     * @param url Url used to perform the navigation.\r\n     * @param queryParams Query parameters associated with the url.\r\n     * @param outlet Outlet associated with the navigation.\r\n     * @param preserveQueryParam Whether the current queryParameters present on the window.location.href should be preserved.\r\n     * If true and if the window.location.href has query parameters with same key as the url or the queryParams, the value from\r\n     * the url or queryParams will be taken.\r\n     * @param saveInBrowserHistory Whether the navigation should be saved in the browser history\r\n     * If the url has query parameters with the same key as @queryParams, the queryParams values will be used over\r\n     * the url query parameters.\r\n     * @param extractRouteInfo Whether should extract RouteInfoModel information and use it to navigate, or the url as it is.\r\n     * @param emitNavigationEvent Whether should emit a navigation event, or make the navigation silently.\r\n     */\r\n    async navigate(account, subscription, url = window.location.href, queryParams = {}, outlet = \"primary\" /* OutletEnum.Primary */, preserveQueryParam = true, saveInBrowserHistory = true, extractRouteInfo = true, emitNavigationEvent = true, state) {\r\n        let localQueryParams;\r\n        if (preserveQueryParam) {\r\n            localQueryParams = this.mergeQueryParam(this.getParametersFromUri(), this.getParametersFromUri(url));\r\n        }\r\n        localQueryParams = this.mergeQueryParam(localQueryParams, queryParams);\r\n        const isElevation = await this.settingsService.isElevationFW();\r\n        if (isElevation && extractRouteInfo) {\r\n            const routeInfo = this.getRouteInfo(url);\r\n            this.navigateToRoute(account, subscription, routeInfo, localQueryParams, outlet, saveInBrowserHistory, emitNavigationEvent, state);\r\n        }\r\n        else {\r\n            if (account && subscription && !url.includes(`${account}/${subscription}`)) {\r\n                url = `${account}/${subscription}/` + url;\r\n            }\r\n            this.navigateToRouteUsingUrl(url, queryParams, outlet, saveInBrowserHistory, emitNavigationEvent, state);\r\n        }\r\n    }\r\n    /**\r\n     * Navigates to a given route.\r\n     *\r\n     * @param account The account.\r\n     * @param subscription The subscription.\r\n     * @param url Route information used to perform the navigation.\r\n     * @param queryParams Query parameters associated with the url.\r\n     * @param outlet Outlet associated with the navigation.\r\n     * @param preserveQueryParam Whether the current queryParameters present on the window.location.href should be preserved.\r\n     * @param saveInBrowserHistory Whether the navigation should be saved in the browser history\r\n     * If true and if the window.location.href has query parameters with same key as the @url or the @queryParams, the value from\r\n     * the @url or @queryParams will be taken.\r\n     */\r\n    navigateUsingRouteInfo(account, subscription, routeInfo, queryParams, outlet = \"primary\" /* OutletEnum.Primary */, preserveQueryParam = true, saveInBrowserHistory = true) {\r\n        if (preserveQueryParam) {\r\n            queryParams = this.mergeQueryParam(this.getParametersFromUri(), queryParams);\r\n        }\r\n        this.navigateToRoute(account, subscription, routeInfo, queryParams, outlet, saveInBrowserHistory);\r\n    }\r\n    /**\r\n     * Navigate on Application Init\r\n     *\r\n     * @param account The account.\r\n     * @param subscription The subscription.\r\n     */\r\n    navigateOnInit(account, subscription) {\r\n        const url = this.getUrl(account, subscription, false);\r\n        if (['', '/', '/start', '/index', '/error'].includes(url)) {\r\n            this.navigateToRoot(account, subscription);\r\n        }\r\n        else {\r\n            this.navigate(account, subscription, url, this.getParametersFromUri(url), \"primary\" /* OutletEnum.Primary */, true, true, false, true);\r\n        }\r\n    }\r\n    /**\r\n     * Navigate to Root\r\n     */\r\n    navigateToRoot(account, subscription) {\r\n        let rootUrl = '/';\r\n        if (account?.length > 0 && subscription?.length > 0) {\r\n            rootUrl = `/${account}/${subscription}/`;\r\n        }\r\n        this.router.navigate([rootUrl]);\r\n    }\r\n    /**\r\n     * Navigate to Root\r\n     */\r\n    navigateBack() {\r\n        this.location.back();\r\n    }\r\n    /**\r\n     * Closes a given outlet.\r\n     *\r\n     * @param [outlet] outlet to be close.\r\n     * @param emitEventOnly Will only emit the close event, without perform the navigation.\r\n     * @param data the data to send when close the outlet.\r\n     */\r\n    closeOutlet(outlet = \"primary\" /* OutletEnum.Primary */, emitEventOnly = false, data) {\r\n        if (!emitEventOnly) {\r\n            const commands = [\r\n                {\r\n                    outlets: {\r\n                        [outlet]: null\r\n                    }\r\n                }\r\n            ];\r\n            const queryParams = this.getParametersFromUri();\r\n            Object.keys(queryParams).forEach((key) => {\r\n                if (key.toLowerCase().includes(outlet)) {\r\n                    delete queryParams[key];\r\n                }\r\n            });\r\n            this.router.navigate(commands, { queryParams });\r\n        }\r\n        this.closeOutletEvent.emit({\r\n            outlet,\r\n            data\r\n        });\r\n    }\r\n    /**\r\n     * Emits an event each time any outlet is closed.\r\n     * Allows also to restrict the events emission to a specific outlet.\r\n     *\r\n     * @param [outlet] Outlet which will be the target of the close event listener.\r\n     * @returns Outlet which was closed.\r\n     */\r\n    onOutletClose(outlet) {\r\n        return new Observable((obs) => {\r\n            const subscription = this.closeOutletEvent.subscribe((value) => {\r\n                if (typeof outlet === 'undefined' || outlet === value.outlet) {\r\n                    obs.next(value);\r\n                }\r\n            });\r\n            return {\r\n                unsubscribe: () => {\r\n                    subscription.unsubscribe();\r\n                }\r\n            };\r\n        });\r\n    }\r\n    /**\r\n     * Gets the number of active outlets\r\n     *\r\n     * @param activatedRoute Component activated route.\r\n     * @returns Number of active outlets.\r\n     */\r\n    getNumberOfActiveOutlets(activatedRoute) {\r\n        let count = 0;\r\n        activatedRoute.root.children.forEach((element) => {\r\n            if (element.outlet === \"panel\" /* OutletEnum.Panel */ ||\r\n                element.outlet === \"popup\" /* OutletEnum.Popup */ ||\r\n                element.outlet === \"primary\" /* OutletEnum.Primary */) {\r\n                count++;\r\n            }\r\n        });\r\n        return count;\r\n    }\r\n    /**\r\n     * Given an outlet, infers if that outlet is current active.\r\n     *\r\n     * @param activatedRoute Original component activated route.\r\n     * @param [outlet] The outlet.\r\n     * @returns true if the outlet is active.\r\n     */\r\n    isOutletActive(activatedRoute, outlet = \"primary\" /* OutletEnum.Primary */) {\r\n        if (activatedRoute.outlet === outlet ||\r\n            activatedRoute.root.children.find((element) => element.outlet === outlet)) {\r\n            return true;\r\n        }\r\n        else {\r\n            return false;\r\n        }\r\n    }\r\n    /**\r\n     * Gets activated for a given outlet\r\n     *\r\n     * @param activatedRoute Original component activated route.\r\n     * @param [outlet] The outlet.\r\n     * @returns Activated route associated with a given outlet.\r\n     */\r\n    getRouteFromOutlet(activatedRoute, outlet) {\r\n        if (!outlet) {\r\n            outlet = this.getActiveOutlet(activatedRoute);\r\n        }\r\n        switch (outlet) {\r\n            case \"popup\" /* OutletEnum.Popup */:\r\n            case \"panel\" /* OutletEnum.Panel */:\r\n                let currentRoute = activatedRoute.root.children.find((element) => element.outlet === outlet);\r\n                if (currentRoute) {\r\n                    while (currentRoute.children.length > 0) {\r\n                        currentRoute = currentRoute.children[0];\r\n                    }\r\n                    return currentRoute;\r\n                }\r\n                const outletRoutes = activatedRoute.pathFromRoot.reduce((arr, elem) => arr.concat(elem.children.reduce((a, e) => a.concat(e.children), [])), []);\r\n                return outletRoutes.reverse().find((element) => element.outlet === outlet);\r\n            default:\r\n                const routes = activatedRoute.pathFromRoot.reduce((arr, elem) => arr.concat(elem.children.reduce((a, e) => a.concat(e.children), [])), []);\r\n                return routes.reverse().find((element) => element.outlet === outlet);\r\n        }\r\n    }\r\n    /**\r\n     * Gets the outlet name in a capitalized form.\r\n     *\r\n     * @outletName Outlet name.\r\n     * @return Capitalized form of the outlet name.\r\n     */\r\n    getOutletNameCapitalized(outlet) {\r\n        let outletName;\r\n        if (outlet) {\r\n            outletName = outlet.toString();\r\n            outletName = outletName[0].toLocaleUpperCase() + outletName.substr(1);\r\n        }\r\n        return outletName;\r\n    }\r\n    /**\r\n     * Gets the activated given outlet\r\n     *\r\n     * @param activatedRoute Original component activated route.\r\n     */\r\n    getActiveOutlet(activatedRoute) {\r\n        if (this.isOutletActive(activatedRoute, \"popup\" /* OutletEnum.Popup */)) {\r\n            return \"popup\" /* OutletEnum.Popup */;\r\n        }\r\n        else if (this.isOutletActive(activatedRoute, \"panel\" /* OutletEnum.Panel */)) {\r\n            return \"panel\" /* OutletEnum.Panel */;\r\n        }\r\n        else {\r\n            return \"primary\" /* OutletEnum.Primary */;\r\n        }\r\n    }\r\n    /**\r\n     * Destroy View and refresh self page\r\n     */\r\n    destroyAndRefreshPage(account, subscription) {\r\n        const url = this.router.url;\r\n        this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => {\r\n            this.navigate(account, subscription, url, undefined, \"primary\" /* OutletEnum.Primary */, true, false, false);\r\n        });\r\n    }\r\n    /**\r\n     * Refresh View\r\n     */\r\n    refreshPage() {\r\n        const params = {\r\n            nocache: new Date().getTime()\r\n        };\r\n        this.changeCurrentUrlParameters(params).then(() => {\r\n            this.changeCurrentUrlParameters({}, ['nocache']);\r\n        });\r\n    }\r\n    getAppRoutes() {\r\n        const result = [];\r\n        const innerConfigRoutes = (r, routes) => {\r\n            if (r?._loadedRoutes) {\r\n                r?._loadedRoutes?.forEach((element) => {\r\n                    result.push(element);\r\n                    innerConfigRoutes(element, routes);\r\n                });\r\n            }\r\n        };\r\n        this.router.config.forEach((r) => {\r\n            innerConfigRoutes(r, result);\r\n        });\r\n        return result;\r\n    }\r\n    /**\r\n     * Add query parameters to a given url.\r\n     *\r\n     * @url Original Url.\r\n     * @parameters Parameters to add.\r\n     * @return The url with added parameters.\r\n     */\r\n    addParametersToUrl(url, parameters) {\r\n        const urlParameters = this.getParametersFromUri(url);\r\n        url = this.removeQueryParameters(url);\r\n        parameters = {\r\n            ...urlParameters,\r\n            ...parameters\r\n        };\r\n        let first = true;\r\n        for (const parameter in parameters) {\r\n            if (first) {\r\n                url = `${url}?${parameter}=${parameters[parameter]}`;\r\n                first = false;\r\n            }\r\n            else {\r\n                url = `${url}&${parameter}=${parameters[parameter]}`;\r\n            }\r\n        }\r\n        return url;\r\n    }\r\n    /**\r\n     * Navigates to a given route.\r\n     *\r\n     * @param account The account.\r\n     * @param subscription The subscription.\r\n     * @param url Route information used to perform the navigation.\r\n     * @param queryParams Query parameters associated with the url.\r\n     * @param outlet Outlet associated with the navigation.\r\n     * @param saveInBrowserHistory Wether the navigation should be saved in the browser history.\r\n     * @param emitNavigationEvent Whether should emit a navigation event, or make the navigation silently.\r\n     */\r\n    navigateToRoute(account, subscription, routeInfo, queryParams, outlet, saveInBrowserHistory = true, emitNavigationEvent = true, state) {\r\n        let outletInfo = [];\r\n        if (outlet === \"primary\" /* OutletEnum.Primary */) {\r\n            outletInfo = [account, subscription, routeInfo.moduleName, routeInfo.serviceName, routeInfo.actionName];\r\n        }\r\n        else {\r\n            outletInfo = [outlet, routeInfo.moduleName, routeInfo.serviceName, routeInfo.actionName];\r\n        }\r\n        const commands = [\r\n            {\r\n                outlets: {\r\n                    [outlet]: outletInfo\r\n                }\r\n            }\r\n        ];\r\n        if (emitNavigationEvent) {\r\n            this.router.navigate(commands, { queryParams, state, replaceUrl: !saveInBrowserHistory });\r\n        }\r\n        else {\r\n            this.location.go(this.router.createUrlTree(commands, { queryParams }).toString());\r\n        }\r\n    }\r\n    /**\r\n     * Navigates to a given route.\r\n     *\r\n     * @param url Route information used to perform the navigation.\r\n     * @param queryParams Query parameters associated with the url.\r\n     * @param outlet Outlet associated with the navigation.\r\n     * @param saveInBrowserHistory Wether the navigation should be saved in the browser history.\r\n     * @param emitNavigationEvent Whether should emit a navigation event, or make the navigation silently.\r\n     */\r\n    navigateToRouteUsingUrl(url, queryParams, outlet, saveInBrowserHistory = true, emitNavigationEvent = true, state) {\r\n        url = url.split('?')[0];\r\n        const outletInfo = url.split('/').filter((elem) => elem && elem.length > 0);\r\n        if (outlet !== \"primary\" /* OutletEnum.Primary */) {\r\n            outletInfo.unshift(outlet);\r\n        }\r\n        const commands = [\r\n            {\r\n                outlets: {\r\n                    [outlet]: outletInfo\r\n                }\r\n            }\r\n        ];\r\n        if (emitNavigationEvent) {\r\n            this.router.navigate(commands, { queryParams, state, replaceUrl: !saveInBrowserHistory });\r\n        }\r\n        else {\r\n            this.location.go(this.router.createUrlTree(commands, { queryParams }).toString());\r\n        }\r\n    }\r\n    /**\r\n     * Merges two different query parameters objects.\r\n     * If any key exists in the two parameters, the value return will be the target query parameter.\r\n     *\r\n     * @param source Source query parameters object.\r\n     * @param target Target query parameters object.\r\n     * @returns Query parameters object merged.\r\n     */\r\n    mergeQueryParam(source, target) {\r\n        let queryParameters = target;\r\n        if (source && target) {\r\n            Object.keys(source).forEach((sourceKey) => {\r\n                const targetKey = Object.keys(target).find((tgKey) => tgKey === sourceKey);\r\n                if (!targetKey) {\r\n                    queryParameters[sourceKey] = source[sourceKey];\r\n                }\r\n            });\r\n        }\r\n        else {\r\n            if (!target && source) {\r\n                queryParameters = source;\r\n            }\r\n        }\r\n        return queryParameters;\r\n    }\r\n    /**\r\n     * Inits the subscribe that register in history all visited routes.\r\n     */\r\n    startSaveHistory() {\r\n        this.router.events.subscribe((event) => {\r\n            if (event instanceof NavigationEnd) {\r\n                this.history.push(event.urlAfterRedirects);\r\n            }\r\n        });\r\n    }\r\n}\r\nRouteHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouteHelperService, deps: [{ token: i0.Injector }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nRouteHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouteHelperService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RouteHelperService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.Injector }, { type: SettingsService }]; } });\n\n/**\r\n * Service responsible to handle user authentication and authorization logic.\r\n */\r\nclass IdentityService {\r\n    constructor(oauthService, storageService) {\r\n        this.oauthService = oauthService;\r\n        this.storageService = storageService;\r\n        this.isEnabled = false;\r\n        this.onLogoutEvent = new EventEmitter();\r\n        /** Identity claims key */\r\n        this.CLAIMS_KEY = 'claims';\r\n        /** Whether identity service is initialized. */\r\n        this.isInitialized = false;\r\n        this.applyRedirectUrl = '';\r\n    }\r\n    /**\r\n     * Determines whether the user is authenticated.\r\n     *\r\n     * @returns True when user is authenticated.\r\n     */\r\n    isAuthenticated() {\r\n        const hasIdToken = this.oauthService.hasValidIdToken();\r\n        const hasAccessToken = this.oauthService.hasValidAccessToken();\r\n        return this.isEnabled && this.isInitialized && hasIdToken && hasAccessToken;\r\n    }\r\n    /**\r\n     * Initialize the identity service based on the current application environment settings.\r\n     *\r\n     * @param environment Application environment settings.\r\n     */\r\n    init(environment) {\r\n        // was it initialized before?\r\n        if (this.isInitialized) {\r\n            return Promise.resolve(true);\r\n        }\r\n        // get/read config from environment\r\n        const authConfig = this.getAuthConfigFromEnvironmentSettings(environment);\r\n        // if disabled in environment settings\r\n        if (!this.isEnabled) {\r\n            this.isInitialized = true;\r\n            return Promise.resolve(true);\r\n        }\r\n        // init service\r\n        this.authConfig = authConfig;\r\n        this.oauthService.configure(authConfig);\r\n        this.oauthService.setStorage(localStorage);\r\n        this.oauthService.tokenValidationHandler = new NullValidationHandler();\r\n        // handle sessionChecksEnabled logout\r\n        this.oauthService.events.pipe(filter((e) => ['session_changed'].includes(e.type))).subscribe((_) => {\r\n            this.logout();\r\n        });\r\n        // Verifies if the user is authenticated. If not, initializing the authentication process.\r\n        return this.oauthService\r\n            .loadDiscoveryDocumentAndTryLogin({\r\n            onTokenReceived: (info) => {\r\n                this.applyRedirectUrl = info.state;\r\n            }\r\n        })\r\n            .then((auth) => {\r\n            // is there a redirect?\r\n            if (this.applyRedirectUrl.length > 0) {\r\n                window.location.href = this.applyRedirectUrl;\r\n                this.applyRedirectUrl = '';\r\n                return false;\r\n            }\r\n            // setup single sign out\r\n            if (environment.identity.singleSignOutEnabled) {\r\n                this.oauthService.setupAutomaticSilentRefresh();\r\n            }\r\n            // finish identity service set up\r\n            this.isInitialized = true;\r\n            if (this.isAuthenticated()) {\r\n                return true;\r\n            }\r\n            else {\r\n                this.login();\r\n                return false;\r\n            }\r\n        }, (err) => {\r\n            console.error('Error thrown at loadDiscoveryDocument:');\r\n            console.error(err);\r\n            return false;\r\n        });\r\n    }\r\n    /**\r\n     * Triggers the user login process.\r\n     *\r\n     * Will be triggered only if the identity service is enabled and initialized.\r\n     */\r\n    login() {\r\n        if (this.isEnabled && this.isInitialized) {\r\n            this.oauthService.initImplicitFlow(window.location.href);\r\n        }\r\n        else {\r\n            console.warn(\"Identity service login was triggered but there the service isn't enabled or initialized.\");\r\n        }\r\n    }\r\n    /**\r\n     * Show the user profile page in a new browser tab.\r\n     */\r\n    profile() {\r\n        window.open(this.authConfig.issuer, '_blank');\r\n    }\r\n    /**\r\n     * Gets the jwt identity token.\r\n     *\r\n     * @returns The jwt token.\r\n     */\r\n    getToken() {\r\n        if (this.isAuthenticated()) {\r\n            return localStorage.getItem('access_token');\r\n        }\r\n        return '';\r\n    }\r\n    /**\r\n     * Triggers the user logout process.\r\n     *\r\n     */\r\n    logout() {\r\n        // clear claims keys\r\n        this.storageService.remove(this.CLAIMS_KEY);\r\n        this.onLogoutEvent.emit();\r\n        // trigger logout\r\n        this.oauthService.logOut({\r\n            redirect_uri: window.location.href\r\n        });\r\n    }\r\n    /**\r\n     * Gets the login user information\r\n     *\r\n     * @returns The user.\r\n     */\r\n    getUser() {\r\n        const result = {};\r\n        result.culture = 'pt-PT';\r\n        if (this.isEnabled && this.oauthService.getIdentityClaims()) {\r\n            const tokenInfo = this.oauthService.getIdentityClaims();\r\n            result.id = tokenInfo.sub;\r\n            result.name = tokenInfo.name;\r\n            result.displayName = tokenInfo.display_name;\r\n            result.email = tokenInfo.email;\r\n            result.culture = tokenInfo.culture;\r\n            result.picture = tokenInfo.picture;\r\n        }\r\n        return result;\r\n    }\r\n    /**\r\n     * Gets all the session claims\r\n     *\r\n     * @param returnAsJsonText determines the return type\r\n     * @returns the session claims\r\n     */\r\n    getSessionClaims(returnAsJsonText) {\r\n        const claims = this.oauthService.getIdentityClaims();\r\n        if (returnAsJsonText) {\r\n            return JSON.stringify(claims);\r\n        }\r\n        else {\r\n            return claims;\r\n        }\r\n    }\r\n    /**\r\n     * Gets auth configuration from application environment settings.\r\n     *\r\n     * @param environment Application environment settings.\r\n     * @returns Auth config from environment settings.\r\n     */\r\n    getAuthConfigFromEnvironmentSettings(environment) {\r\n        this.isEnabled = environment.identity.enabled;\r\n        if (!this.isEnabled) {\r\n            return null;\r\n        }\r\n        else {\r\n            return {\r\n                issuer: environment.identity.endpoint,\r\n                redirectUri: environment.identity.callbackEndpoint,\r\n                silentRefreshRedirectUri: environment.identity.callbackEndpoint,\r\n                loginUrl: environment.identity.authorizationEndpoint,\r\n                clientId: environment.identity.clientId,\r\n                scope: environment.identity.scopes,\r\n                requestAccessToken: true,\r\n                logoutUrl: `${environment.identity.endpoint}`,\r\n                postLogoutRedirectUri: environment.identity.postLogoutUri,\r\n                oidc: true,\r\n                requireHttps: environment.requireHttps,\r\n                responseType: 'id_token token',\r\n                customQueryParams: {\r\n                    acr_values: 'showregistrationpage:false'\r\n                },\r\n                sessionChecksEnabled: environment.identity.singleSignOutEnabled,\r\n                sessionCheckIFrameName: 'oauth-sc-iframe',\r\n                sessionCheckIntervall: 5000\r\n            };\r\n        }\r\n    }\r\n}\r\nIdentityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityService, deps: [{ token: i1$1.OAuthService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nIdentityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.OAuthService }, { type: StorageService }]; } });\n\n/**\r\n * Account management service.\r\n */\r\nclass AmsService {\r\n    constructor(routeHelperService, storageService, identityService, settingsService) {\r\n        this.routeHelperService = routeHelperService;\r\n        this.storageService = storageService;\r\n        this.identityService = identityService;\r\n        this.settingsService = settingsService;\r\n    }\r\n    set account(value) {\r\n        if (!value) {\r\n            return;\r\n        }\r\n        this._account = value.toLowerCase();\r\n    }\r\n    get account() {\r\n        return this._account;\r\n    }\r\n    set subscription(value) {\r\n        if (!value) {\r\n            return;\r\n        }\r\n        this._subscription = value.toLowerCase();\r\n    }\r\n    get subscription() {\r\n        return this._subscription;\r\n    }\r\n    /**\r\n     * Initialize account management service based on the application environment settings.\r\n     *\r\n     * @param environmentSettings Application environment settings.\r\n     * @returns True if was successfully initialized.\r\n     */\r\n    async init(environmentSettings) {\r\n        if (environmentSettings.accountManagement?.domainUrl?.length > 0) {\r\n            this.environmentSettings = environmentSettings;\r\n            // Uses a default account and subscription, avoiding the redirect to subscription choose page.\r\n            if (this.environmentSettings.accountManagement.useDefaultSubscription) {\r\n                this.account = this.environmentSettings.accountManagement.defaultAccount;\r\n                this.subscription = this.environmentSettings.accountManagement.defaultSubscription;\r\n            }\r\n            if (this.account && this.subscription) {\r\n                this.handleSessionStorageData();\r\n                return true;\r\n            }\r\n            if (this.setAccountAndSubscriptionFromUrl()) {\r\n                this.handleSessionStorageData();\r\n                return true;\r\n            }\r\n            const parameters = this.routeHelperService.getParametersFromUri();\r\n            // Gets the account and subscription from query parameters.\r\n            if (parameters['account'] && parameters['subscription']) {\r\n                this.account = parameters['account'];\r\n                this.subscription = parameters['subscription'];\r\n                this.handleSessionStorageData();\r\n                return true;\r\n            }\r\n            // Gets the subscription from the session storage.\r\n            // For more info, check the handleSessionStorageData documentation.\r\n            const account = this.storageService.get(this.getStorageKey('ams_account'));\r\n            const subscription = this.storageService.get(this.getStorageKey('ams_subscription'));\r\n            if (account || subscription) {\r\n                this.account = account;\r\n                this.subscription = subscription;\r\n                this.handleSessionStorageData();\r\n                return true;\r\n            }\r\n            // If the account and subscription is not defined, the user is redirect to subscription choose page.\r\n            this.redirectToSetAccountAndSubscriptionPage();\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    /**\r\n     * Redirects to account and subscription choosing page.\r\n     */\r\n    redirectToSetAccountAndSubscriptionPage() {\r\n        const domainUrl = this.environmentSettings.accountManagement.domainUrl;\r\n        const product = this.environmentSettings.accountManagement.product;\r\n        const origin = window.location.origin;\r\n        window.location.href = `${domainUrl}/${product}/subscriptions?redirectUri=${origin}`;\r\n    }\r\n    /**\r\n     * Determines whether has an account and subscription defined.\r\n     *\r\n     * @returns True if account and subscription are defined.\r\n     */\r\n    hasAccountAndSubscription() {\r\n        return this.account && this.account.length > 0 && this.subscription && this.subscription.length > 0;\r\n    }\r\n    /**\r\n     * Adds an account and a subscription to a given url\r\n     *\r\n     * @param url The url.\r\n     * @returns Url with account and subscription query parameter.\r\n     */\r\n    addAccountAndSubscriptionToUrl(url) {\r\n        url = `${url.replace(/^(#\\/)/, '').replace(/^(\\/)/, '')}`;\r\n        if (this.account && this.subscription) {\r\n            const accountSubscription = `${this.account}/${this.subscription}`;\r\n            if (!url.startsWith('http') &&\r\n                !url.startsWith(accountSubscription) &&\r\n                !url.toLowerCase().startsWith(`app/${accountSubscription}`) &&\r\n                !url.toLowerCase().startsWith(`api/${accountSubscription}`)) {\r\n                url = `${accountSubscription}/${url}`;\r\n            }\r\n        }\r\n        return url;\r\n    }\r\n    /**\r\n     * Sets the internal account and subscription from a given url.\r\n     *\r\n     * @param [url] The url. By default will be used the window.location.href.\r\n     * @returns True if the account and subscription as extract successfully from the url.\r\n     */\r\n    setAccountAndSubscriptionFromUrl(url = window.location.href) {\r\n        const hostSplit = window.location.href.split(`${window.location.host}/`);\r\n        if (hostSplit && hostSplit.length > 1) {\r\n            const accountSubscriptionString = hostSplit[1].split('#')[0];\r\n            if (accountSubscriptionString) {\r\n                const split = accountSubscriptionString.split('/');\r\n                if (split && split.length > 1) {\r\n                    this.account = split[0];\r\n                    this.subscription = split[1];\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n    /**\r\n     * Handles account and subscription saved in the session store.\r\n     *\r\n     */\r\n    handleSessionStorageData() {\r\n        this.storageService.set(this.getStorageKey('ams_account'), this.account);\r\n        this.storageService.set(this.getStorageKey('ams_subscription'), this.subscription);\r\n        this.identityService.onLogoutEvent.subscribe(() => {\r\n            this.storageService.remove(this.getStorageKey('ams_account'));\r\n            this.storageService.remove(this.getStorageKey('ams_subscription'));\r\n        });\r\n        this.routeHelperService.navigateOnInit(this.account, this.subscription);\r\n    }\r\n    getStorageKey(key) {\r\n        return new CacheHelperService(undefined, this.settingsService, undefined).generateCacheKey(false, false, false, [key]);\r\n    }\r\n}\r\nAmsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsService, deps: [{ token: RouteHelperService }, { token: StorageService }, { token: IdentityService }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nAmsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: RouteHelperService }, { type: StorageService }, { type: IdentityService }, { type: SettingsService }]; } });\n\nclass ErrorsService {\r\n    constructor(routeHelperService, amsService, storageService) {\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n        this.storageService = storageService;\r\n    }\r\n    showErrorMessage(errorState) {\r\n        this.storageService.sessionSet('error-state', JSON.stringify(errorState));\r\n        this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, '/error', null, undefined, false, true, false, true, errorState);\r\n    }\r\n}\r\nErrorsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorsService, deps: [{ token: RouteHelperService }, { token: AmsService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nErrorsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ErrorsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: RouteHelperService }, { type: AmsService }, { type: StorageService }]; } });\n\n/**\r\n * Service that allows to interact with the application context\r\n */\r\nclass AppContextService {\r\n    //#endregion\r\n    //#region Constructor\r\n    /**\r\n     * Creates an instance of app context service.\r\n     *\r\n     * @param broadcastService Broadcast Service.\r\n     * @param httpClient Http service.\r\n     */\r\n    constructor(broadcastService, httpClient, amsService, settingsService, identityService, errorsService) {\r\n        this.broadcastService = broadcastService;\r\n        this.httpClient = httpClient;\r\n        this.amsService = amsService;\r\n        this.settingsService = settingsService;\r\n        this.identityService = identityService;\r\n        this.errorsService = errorsService;\r\n        this.currentCompanySubject = new ReplaySubject(1);\r\n        this.subscriptionsClaimsSubject = new ReplaySubject();\r\n        /** Event responsible to notify when the app context load has finished. */\r\n        this.contextAvailableEvent = new EventEmitter();\r\n    }\r\n    //#region Public Variables\r\n    set user(value) {\r\n        this._user = value;\r\n    }\r\n    get user() {\r\n        return this._user;\r\n    }\r\n    get subscriptionClaimsObservable() {\r\n        return this.subscriptionsClaimsSubject.asObservable();\r\n    }\r\n    //#endregion\r\n    //#region Public Properties\r\n    /**\r\n     * Gets the organization key from the url\r\n     */\r\n    get organizationKey() {\r\n        return this.amsService.subscription;\r\n    }\r\n    /**\r\n     * Gets the tenant key from the url\r\n     */\r\n    get tenantKey() {\r\n        return this.amsService.account;\r\n    }\r\n    /**\r\n     * Return true if context loading thrown an error\r\n     */\r\n    get hasErrorInContextLoading() {\r\n        return this._hasErrorInContextLoading;\r\n    }\r\n    //#endregion\r\n    //#region Lifecycle Methods\r\n    /**\r\n     * Life cycle hook called when the service is destroyed\r\n     */\r\n    ngOnDestroy() {\r\n        this.currentCompanySubject.unsubscribe();\r\n        if (this.companySubscribe) {\r\n            this.companySubscribe();\r\n        }\r\n    }\r\n    //#endregion\r\n    //#region Public Methods\r\n    /**\r\n     * Gets the application context.\r\n     *\r\n     * @return return an object that represents the appContext\r\n     */\r\n    getContext() {\r\n        return this.appContextModel;\r\n    }\r\n    async loadContextFromServer() {\r\n        /*\r\n         * ELEVATION : get(/shell/clientContextValues/getClientContext)\r\n         * DEFAULT   : get(only(user))\r\n         */\r\n        this.appContextModel = await this.loadContext();\r\n        this.subscriptionsClaimsSubject.next(this.appContextModel.subscriptionClaims);\r\n        this.loadCompany();\r\n        this.user = this.appContextModel ? this.appContextModel.user : this.getDefaultUser();\r\n        this.contextAvailableEvent.emit(this._user);\r\n    }\r\n    /**\r\n     * Returns a observable to be notified of changes on the selected company\r\n     */\r\n    selectedCompany() {\r\n        return this.currentCompanySubject.asObservable();\r\n    }\r\n    /**\r\n     * Get the actual company key\r\n     * return undefined in case the appContext doesn't exist\r\n     * return null in case there isn't any created company\r\n     * or return the companyKey\r\n     */\r\n    getCurrentCompany() {\r\n        return this.companyKey;\r\n    }\r\n    getCurrentCompanyId() {\r\n        return this.companyId;\r\n    }\r\n    /**\r\n     * Get all subscriptions claims\r\n     *\r\n     * @return Array of strings with all subscriptions claims\r\n     */\r\n    getSubscriptionClaims() {\r\n        return this.appContextModel.subscriptionClaims;\r\n    }\r\n    /**\r\n     * Get the subscription alias\r\n     *\r\n     * @return the subscription alias\r\n     */\r\n    getSubscriptionAlias() {\r\n        return new Promise((resolve) => {\r\n            const subscriptionAlias = this.getContext();\r\n            resolve(subscriptionAlias ? subscriptionAlias : '');\r\n        });\r\n    }\r\n    /**\r\n     * Verifies if set of claims exists in the application context\r\n     *\r\n     * @param requiredClaims string with a set of claims. the string needs to be without spaces and each claims\r\n     *                       should be separator by the char ','\r\n     * @example containsClaims('module_stocks,operation_openshippingrequests,setting_allowattachment')\r\n     * @return if find out the claim or if the requiredClaims param === '', it will return true\r\n     */\r\n    containsClaims(requiredClaims) {\r\n        let parametersClaim = [];\r\n        const ctx = this.getContext();\r\n        if (ctx.subscriptionClaims) {\r\n            parametersClaim = ctx.subscriptionClaims;\r\n        }\r\n        if (!requiredClaims) {\r\n            requiredClaims = '';\r\n        }\r\n        requiredClaims = requiredClaims.trim();\r\n        let isAllowed = requiredClaims === '';\r\n        if (!isAllowed) {\r\n            const res = requiredClaims.split(',');\r\n            const claimCount = res.length;\r\n            let index = 0;\r\n            if (claimCount > 0) {\r\n                do {\r\n                    isAllowed = parametersClaim.includes(res[index]);\r\n                    index++;\r\n                } while (isAllowed && index < claimCount);\r\n            }\r\n        }\r\n        return isAllowed;\r\n    }\r\n    /**\r\n     * Gets all the session claims\r\n     *\r\n     * @param returnAsJsonText determines the return type\r\n     * @returns the session claims\r\n     */\r\n    getSessionClaims(returnAsJsonText) {\r\n        let claims = [];\r\n        if (this.user && this.user.claims) {\r\n            claims = this.appContextModel.user.claims;\r\n        }\r\n        if (returnAsJsonText) {\r\n            return JSON.stringify(claims);\r\n        }\r\n        else {\r\n            return claims;\r\n        }\r\n    }\r\n    hasAlerts() {\r\n        const alerts = this.appContextModel?.alerts;\r\n        return alerts && (alerts.hasPendingPayments || alerts.hasProductWarning || alerts.isDemonstrationSubscription);\r\n    }\r\n    getMenuVersion() {\r\n        return this.appContextModel.menuLastModifiedDate\r\n            ? new Date(this.appContextModel.menuLastModifiedDate).getTime().toString()\r\n            : undefined;\r\n    }\r\n    getHelpCenterBaseUrl() {\r\n        return this.appContextModel.helpCenterBaseUrl || undefined;\r\n    }\r\n    //#endregion\r\n    //#region Private Methods\r\n    async loadContext() {\r\n        try {\r\n            const isElevation = await this.settingsService.isElevationFW();\r\n            if (isElevation) {\r\n                const context = await this.httpClient\r\n                    .get(`/app/shell/clientContextValues/getClientContext`)\r\n                    .toPromise();\r\n                if (context?.user?.claims) {\r\n                    context.user.claims = JSON.parse(context.user.claims);\r\n                }\r\n                return Promise.resolve(context);\r\n            }\r\n            else {\r\n                return Promise.resolve(this.getDefaultAppContext());\r\n            }\r\n        }\r\n        catch (ex) {\r\n            if (ex instanceof HttpErrorResponse) {\r\n                const message = ex?.error?.exceptionMessage;\r\n                this.errorsService.showErrorMessage({\r\n                    message,\r\n                    canBackToHome: false,\r\n                    canBackToPreviousPage: false,\r\n                    canGoToSubscriptionsPage: true\r\n                });\r\n                this._hasErrorInContextLoading = true;\r\n            }\r\n            return Promise.resolve(this.getDefaultAppContext());\r\n        }\r\n    }\r\n    getDefaultAppContext() {\r\n        /* rational:\r\n         *\t1. when:  2021/12/14 16:00\r\n         *\t2. where: grooming session\r\n         *\t3. whom:  TOEC\r\n         *\t4. what:\r\n         *\t\t1. yes:\t\tfields required by the client-app of type default\r\n         *\t\t\t1. get from other sources\r\n         *\t\t\t2. appTheme:    must have the default value white theme\r\n         *\t\t\t3. productName: get from environmentSettingsService\r\n         *\t\t\t4. clientId: can't be undefined because UserSettingsService use it.\r\n         *\t\t2. no:\t\tfields NOT required by the client-app of type default\r\n         *\t\t\t1. leave undefined\r\n         *\t\t3. not in use: fields that are not in use by the application\r\n         *\t\t\t1. leave undefined\r\n         */\r\n        const appContext = {\r\n            // 1. yes\r\n            appTheme: ThemesEnum.Light,\r\n            productName: this.settingsService.environmentSettings.productName,\r\n            clientId: this.settingsService.environmentSettings.productName,\r\n            user: this.getDefaultUser(),\r\n            // 2. no\r\n            zopim: undefined,\r\n            alerts: undefined,\r\n            countryKey: undefined,\r\n            databaseVersion: undefined,\r\n            fileUploadSettings: undefined,\r\n            helpCenterBaseUrl: this.settingsService.environmentSettings.helpCenterUrl,\r\n            menuLastModifiedDate: undefined,\r\n            pnsExternalUri: this.settingsService.environmentSettings.pnsExternalUri,\r\n            productBrand: undefined,\r\n            subscriptionAlias: `${this.amsService.subscription}`,\r\n            subscriptionEndDate: undefined,\r\n            subscriptionId: undefined,\r\n            subscriptionKey: undefined,\r\n            subscriptionManagementUrl: undefined,\r\n            subscriptionClaims: undefined,\r\n            subscriptionPlan: undefined,\r\n            subscriptionStartDate: undefined,\r\n            allowInviteTechnician: false\r\n        };\r\n        return appContext;\r\n    }\r\n    getDefaultUser() {\r\n        /* rational:\r\n         *   1. when:  2021/12/14 16:00\r\n         *   2. where: grooming session\r\n         *   3. whom:  TOEC\r\n         *   4. what:\r\n         *     1. only set the fields that exist in identity\r\n         *     2. the other fields are not required\r\n         */\r\n        const identityUser = this.identityService.getUser();\r\n        const contextUser = {\r\n            claims: undefined,\r\n            creationDate: undefined,\r\n            culture: identityUser.culture,\r\n            cultureSupported: undefined,\r\n            displayName: identityUser.displayName,\r\n            email: identityUser.email,\r\n            fallbackCulture: undefined,\r\n            id: identityUser.id,\r\n            name: identityUser.name,\r\n            picture: identityUser.picture,\r\n            userProfileUrl: this.settingsService?.environmentSettings?.identity?.endpoint\r\n        };\r\n        return contextUser;\r\n    }\r\n    loadCompany() {\r\n        // subscribe to the company event\r\n        this.companySubscribe = this.broadcastService.subscribe('company', (data) => {\r\n            if (data !== undefined &&\r\n                data.key === 'currentCompany' &&\r\n                data.key !== this.companyKey &&\r\n                this.appContextModel) {\r\n                this.emitSelectedCompany(data.value);\r\n                // in case there isn't any created company\r\n            }\r\n            else if (data === undefined && this.appContextModel) {\r\n                this.emitSelectedCompany(undefined);\r\n            }\r\n        });\r\n    }\r\n    emitSelectedCompany(company) {\r\n        this.companyKey = company.key;\r\n        this.companyId = company.id;\r\n        this.currentCompanySubject.next(company.key);\r\n    }\r\n}\r\nAppContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppContextService, deps: [{ token: BroadcastService }, { token: i1.HttpClient }, { token: AmsService }, { token: SettingsService }, { token: IdentityService }, { token: ErrorsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nAppContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppContextService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppContextService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: BroadcastService }, { type: i1.HttpClient }, { type: AmsService }, { type: SettingsService }, { type: IdentityService }, { type: ErrorsService }]; } });\n\n/**\r\n * Service responsible to expose a group of events that allows the comunication between\r\n * the company component and other components of the application\r\n */\r\nclass CompanyDependentService {\r\n    /**\r\n     * Constructs the CompanyDependentService\r\n     */\r\n    constructor(broadcastService, appContext, userSettings, http) {\r\n        this.broadcastService = broadcastService;\r\n        this.appContext = appContext;\r\n        this.userSettings = userSettings;\r\n        this.http = http;\r\n        /**\r\n         * Select company event.\r\n         * Manages the communication between components, each time a new company is selected\r\n         */\r\n        this.selectCompany = new Subject();\r\n        /**\r\n         * Lock company event.\r\n         * Manages the communication between components, each time a lock or a unlock\r\n         * of the select company feature is made\r\n         */\r\n        this.lockCompany = new Subject();\r\n        /**\r\n         * Refresh company event.\r\n         * Manages the communication between components, each time a refresh\r\n         * of the available companies is made\r\n         */\r\n        this.refreshCompanies = new Subject();\r\n        /**\r\n         * Companies count event.\r\n         * Manages the communication between components, each time a new\r\n         * count of the available companies is made\r\n         */\r\n        this.companiesCount = new ReplaySubject(1);\r\n        this.companyEndPoint = new ReplaySubject(1);\r\n        this.selectCompany = new Subject();\r\n    }\r\n    /**\r\n     * Is called each time this service is destroyed.\r\n     */\r\n    ngOnDestroy() {\r\n        this.selectCompany.unsubscribe();\r\n    }\r\n    /**\r\n     * Retrieves an event that could be subscribe to be notified\r\n     * each time that a lock or unlock on the select company feature is made\r\n     *\r\n     * @return event to be subscribed\r\n     */\r\n    getLockCompanyDependent() {\r\n        return this.lockCompany.asObservable();\r\n    }\r\n    /**\r\n     * Retrieves an event that could be subscribe to be notified\r\n     * each time that a refresh on the available companies is made\r\n     *\r\n     * @return event to be subscribed\r\n     */\r\n    getRefreshCompanies() {\r\n        return this.refreshCompanies.asObservable();\r\n    }\r\n    /**\r\n     * Retrieves an event that could be subscribe to be notified\r\n     * each time that a company is selected\r\n     *\r\n     * @return event to be subscribed\r\n     */\r\n    getSelectCompany() {\r\n        return this.selectCompany.asObservable();\r\n    }\r\n    /**\r\n     * Retrieves an event that could be subscribe to be notified\r\n     * each time a count on companies is made\r\n     *\r\n     * @return event to be subscribed\r\n     */\r\n    getCompaniesCount() {\r\n        return this.companiesCount.asObservable();\r\n    }\r\n    /**\r\n     * Responsible to notify all components that subscribed the RefreshCompanies event\r\n     * that an refresh on the available companies was made\r\n     *\r\n     * @param service service that was used to refresh the available companies\r\n     */\r\n    onRefreshCompanies(service) {\r\n        if (service === 'companies') {\r\n            this.refreshCompanies.next(true);\r\n        }\r\n    }\r\n    /**\r\n     * Responsible to notify all components that subscribed the SelectCompany event,\r\n     * that a company was selected\r\n     *\r\n     * @param company data relative to the company selected\r\n     */\r\n    onSelectCompany(company) {\r\n        this.currentCompany = company;\r\n        this.selectCompany.next(company);\r\n        this.broadcastService.emit('company', { key: 'currentCompany', value: company });\r\n        // update server-side lastUsedCompany setting\r\n        const settingDefinition = {\r\n            settingKey: this.appContext.organizationKey.concat('_').concat('lastUsedCompany'),\r\n            value: company.key,\r\n            clientId: this.appContext.getContext().productName\r\n        };\r\n        this.userSettings.setCurrentUserSetting(settingDefinition);\r\n    }\r\n    /**\r\n     * Responsible to notify all components that subscribed the LockCompany event,\r\n     * that a lock or unlock of the select companies feature was made\r\n     *\r\n     * @param lock sets if a lock (true) or unlock (false) of the select companies feature was made\r\n     */\r\n    onLockCompanyDependent(lock) {\r\n        this.lockCompany.next(lock);\r\n    }\r\n    /**\r\n     * Responsible to notify all components that subscribed the CompaniesCount event\r\n     * that a count of the number of companies was made.\r\n     *\r\n     * @param company number of companies counted.\r\n     */\r\n    onCompaniesCount(companiesCount) {\r\n        this.companiesCount.next(companiesCount);\r\n    }\r\n    /**\r\n     * Gets the data relative to the current selected company.\r\n     *\r\n     * @return returns the data relative to the current selected company.\r\n     */\r\n    getCurrentCompany() {\r\n        return this.currentCompany;\r\n    }\r\n    /**\r\n     * Gets the companies associated with the current account and subscription keys.\r\n     *\r\n     * @returns Array of companies.\r\n     */\r\n    getCompanies() {\r\n        return new Observable((obs) => {\r\n            this.companyEndPoint.subscribe((url) => {\r\n                url = url.replace('{{AccountKey}}', this.appContext.tenantKey);\r\n                url = url.replace('{{SubscriptionKey}}', this.appContext.organizationKey);\r\n                url = url.replace('{{SearchTerm}}', '');\r\n                this.http\r\n                    .get(url)\r\n                    .pipe(take$1(1))\r\n                    .subscribe((companies) => {\r\n                    obs.next(companies);\r\n                });\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Sets the company dependent url endpoint.\r\n     *\r\n     * @param url The company url.\r\n     */\r\n    setCompanyDependentUrlEndpoint(url) {\r\n        if (url && url.length > 0) {\r\n            this.companyEndPoint.next(url);\r\n        }\r\n    }\r\n}\r\nCompanyDependentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyDependentService, deps: [{ token: BroadcastService }, { token: AppContextService }, { token: UserSettingsService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nCompanyDependentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyDependentService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyDependentService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: BroadcastService }, { type: AppContextService }, { type: UserSettingsService }, { type: i1.HttpClient }]; } });\n\nclass CompanyInterceptor {\r\n    constructor(companyDependentService) {\r\n        this.companyDependentService = companyDependentService;\r\n    }\r\n    intercept(request, next) {\r\n        const company = this.companyDependentService.getCurrentCompany();\r\n        if (company?.key) {\r\n            request = request.clone({\r\n                headers: request.headers.set('X-Company', company.key)\r\n            });\r\n        }\r\n        return next.handle(request);\r\n    }\r\n}\r\nCompanyInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyInterceptor, deps: [{ token: CompanyDependentService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nCompanyInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CompanyInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: CompanyDependentService }]; } });\n\nclass CorsInterceptor {\r\n    constructor() { }\r\n    intercept(request, next) {\r\n        request = request.clone({\r\n            headers: request.headers\r\n                .set('access-control-allow-origin', '*')\r\n                .set('access-control-allow-credentials', 'true')\r\n                .set('access-control-allow-headers', 'access-control-allow-headers, access-control-allow-origin, access-control-request-method')\r\n        });\r\n        return next.handle(request);\r\n    }\r\n}\r\nCorsInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CorsInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nCorsInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CorsInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: CorsInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\n/**\r\n * Intercepts request and responses in order to handle account management logic.\r\n */\r\nclass EnvironmentInterceptor {\r\n    constructor(amsService, settingsService) {\r\n        this.amsService = amsService;\r\n        this.settingsService = settingsService;\r\n    }\r\n    /**\r\n     * Intercepts http requests and handles account management logic.\r\n     */\r\n    intercept(request, next) {\r\n        request = request.clone({\r\n            url: this.appUrl(request.url)\r\n        });\r\n        return next.handle(request).pipe(map((event) => event), catchError((error) => throwError(error)));\r\n    }\r\n    appUrl(url) {\r\n        return url\r\n            .replace('{{apiurl}}', this.settingsService.serverApiUrl)\r\n            .replace('{{accountkey}}', this.amsService.account)\r\n            .replace('{{subscriptionalias}}', this.amsService.subscription);\r\n    }\r\n}\r\nEnvironmentInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EnvironmentInterceptor, deps: [{ token: AmsService }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nEnvironmentInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EnvironmentInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EnvironmentInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AmsService }, { type: SettingsService }]; } });\n\nclass FrameworkInterceptors {\r\n    constructor() {\r\n        this.skipAuthentication = false;\r\n        this.skipErrors = false;\r\n    }\r\n}\r\nconst FrameworkInterceptorsOptions = new HttpContextToken(() => new FrameworkInterceptors());\n\n/**\r\n * Gets the error message from an error that may have different structures.\r\n */\r\nclass TreatErrorMessagePipe {\r\n    transform(errorResponse) {\r\n        let message = '';\r\n        if (errorResponse['error']) {\r\n            if (errorResponse['error'].message) {\r\n                message = errorResponse['error'].message;\r\n            }\r\n            else if (errorResponse['error'].title) {\r\n                message = errorResponse['error'].title;\r\n            }\r\n            else if (errorResponse['error'].length > 0 && errorResponse['error'][0].message) {\r\n                message = errorResponse['error'][0].message;\r\n            }\r\n        }\r\n        else if (errorResponse['message']) {\r\n            message = errorResponse['message'];\r\n        }\r\n        return message;\r\n    }\r\n}\r\nTreatErrorMessagePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TreatErrorMessagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nTreatErrorMessagePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: TreatErrorMessagePipe, name: \"treatErrorMessage\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TreatErrorMessagePipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'treatErrorMessage'\r\n                }]\r\n        }] });\n\nclass HttpConfigInterceptor {\r\n    constructor(amsService, settingsService, errorsService, treatErrorMessagePipe) {\r\n        this.amsService = amsService;\r\n        this.settingsService = settingsService;\r\n        this.errorsService = errorsService;\r\n        this.treatErrorMessagePipe = treatErrorMessagePipe;\r\n    }\r\n    intercept(request, next) {\r\n        request = this.formatUrl(request);\r\n        return next.handle(request).pipe(catchError((error) => {\r\n            if (error && error.status) {\r\n                if (request.context.get(FrameworkInterceptorsOptions)?.skipErrors) {\r\n                    return throwError(error);\r\n                }\r\n                switch (error.status) {\r\n                    case 403: {\r\n                        this.errorsService.showErrorMessage({\r\n                            message: this.treatErrorMessagePipe.transform(error),\r\n                            canBackToHome: true,\r\n                            canBackToPreviousPage: false,\r\n                            canGoToSubscriptionsPage: true\r\n                        });\r\n                        break;\r\n                    }\r\n                    case 404: {\r\n                        // Redirect to the error page\r\n                        // Ignore assets requests\r\n                        if (!error.url.includes('/assets/')) {\r\n                            this.errorsService.showErrorMessage({\r\n                                message: this.treatErrorMessagePipe.transform(error),\r\n                                canBackToHome: true,\r\n                                canBackToPreviousPage: false,\r\n                                canGoToSubscriptionsPage: false\r\n                            });\r\n                        }\r\n                        break;\r\n                    }\r\n                    case 500: {\r\n                        this.errorsService.showErrorMessage({\r\n                            message: this.treatErrorMessagePipe.transform(error),\r\n                            canBackToHome: true,\r\n                            canBackToPreviousPage: true,\r\n                            canGoToSubscriptionsPage: false\r\n                        });\r\n                        break;\r\n                    }\r\n                    default: {\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            // The error is not related with authentication/authorization\r\n            return throwError(error);\r\n        }));\r\n    }\r\n    /**\r\n     * Adds necessary parameters to the request url\r\n     *\r\n     * @param request The HttpRequest\r\n     * @returns The HttpRequest\r\n     * @memberof HttpConfigInterceptor\r\n     */\r\n    formatUrl(request) {\r\n        const account = this.amsService?.account?.toLowerCase();\r\n        const subscription = this.amsService?.subscription?.toLowerCase();\r\n        const requestUrl = request.url;\r\n        const requestUrlLower = request.url.toLowerCase();\r\n        // Delete params with undefined value\r\n        if (request?.params?.keys?.()?.length) {\r\n            request.params.keys().forEach((key) => {\r\n                if (request.params.get(key) === undefined) {\r\n                    const params = request.params.delete(key);\r\n                    request = request.clone({\r\n                        params\r\n                    });\r\n                }\r\n            });\r\n        }\r\n        // If it's an internal request and the tenant or organization key is not in the request url we add them.\r\n        // We do this to have control over the delivered static content in the server side.\r\n        // When the request is external (it doesn't start with /app/ or /assets/) we skip this step\r\n        if (requestUrlLower.startsWith('/app/') || requestUrlLower.startsWith('/api/')) {\r\n            let url = '';\r\n            if (requestUrlLower.indexOf('/' + account + '/') === -1) {\r\n                if (requestUrlLower.startsWith('/app/')) {\r\n                    // eslint-disable-next-line max-len\r\n                    url = `${this.trimSlashes(this.settingsService.serverApiUrl)}/app/${account}/${subscription}/${this.trimSlashes(requestUrl.slice(4))}`;\r\n                }\r\n                else {\r\n                    url = `${this.settingsService.serverApiUrl}/api/${account}/${subscription}${requestUrl.slice(4)}`;\r\n                }\r\n            }\r\n            else {\r\n                url = `${this.settingsService.serverApiUrl}${requestUrl}`;\r\n            }\r\n            request = request.clone({\r\n                url\r\n            });\r\n        }\r\n        return request;\r\n    }\r\n    trimSlashes(str) {\r\n        if (str.startsWith('/') || str.startsWith('\\\\')) {\r\n            str = str.substring(1);\r\n            str = this.trimSlashes(str);\r\n        }\r\n        if (str.endsWith('/') || str.endsWith('\\\\')) {\r\n            str = str.slice(0, -1);\r\n        }\r\n        return str;\r\n    }\r\n}\r\nHttpConfigInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpConfigInterceptor, deps: [{ token: AmsService }, { token: SettingsService }, { token: ErrorsService }, { token: TreatErrorMessagePipe }], target: i0.ɵɵFactoryTarget.Injectable });\r\nHttpConfigInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpConfigInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HttpConfigInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AmsService }, { type: SettingsService }, { type: ErrorsService }, { type: TreatErrorMessagePipe }]; } });\n\n/**\r\n * Intercepts request and responses in order to handle authorization logic.\r\n */\r\nclass IdentityInterceptor {\r\n    constructor(identityService, appContextService, roleService) {\r\n        this.identityService = identityService;\r\n        this.appContextService = appContextService;\r\n        this.roleService = roleService;\r\n    }\r\n    /**\r\n     * Intercepts http requests and handles authorization logic.\r\n     */\r\n    intercept(request, next) {\r\n        if (request.context.get(FrameworkInterceptorsOptions)?.skipAuthentication) {\r\n            return next.handle(request);\r\n        }\r\n        const currentRoleKey = this.roleService.roleKey;\r\n        if (currentRoleKey) {\r\n            const headers = request.headers.set('X-Role', currentRoleKey);\r\n            request = request.clone({\r\n                headers\r\n            });\r\n        }\r\n        if (this.identityService.isEnabled && this.identityService.oauthService.getAccessToken()) {\r\n            const headers = request.headers\r\n                .set('Authorization', `Bearer ${this.identityService.oauthService.getAccessToken()}`)\r\n                .set('claims', this.appContextService.getSessionClaims(true));\r\n            request = request.clone({\r\n                headers\r\n            });\r\n        }\r\n        // Continues request execution\r\n        return next.handle(request).pipe(catchError((error, caught) => {\r\n            // intercept the response error and displays it to the console\r\n            this.handleAuthError(request, error);\r\n            return of(error);\r\n        }));\r\n    }\r\n    /**\r\n     * Handles authorization errors.\r\n     */\r\n    handleAuthError(request, err) {\r\n        if (this.identityService.isEnabled && err.status === 401) {\r\n            // if you've caught / handled the error, you don't want to\r\n            // rethrow it unless you also want downstream consumers want to handle it as well.\r\n            if (request.context.get(FrameworkInterceptorsOptions)?.skipErrors) {\r\n                throw err;\r\n            }\r\n            this.identityService.login();\r\n            return of(err.message);\r\n        }\r\n        throw err;\r\n    }\r\n}\r\nIdentityInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityInterceptor, deps: [{ token: IdentityService }, { token: AppContextService }, { token: RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nIdentityInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: IdentityService }, { type: AppContextService }, { type: RoleService }]; } });\n\nconst DEPLOY_URL = new InjectionToken('deployUrl');\r\nconst deployUrl = (() => {\r\n    const scripts = document.getElementsByTagName('script');\r\n    const index = scripts.length - 1;\r\n    const mainScript = scripts[index];\r\n    const deployVersionRegex = '\\/v[0-9]{2,5}\\/';\r\n    const matches = mainScript.src.match(deployVersionRegex);\r\n    return matches ? matches[0] : '';\r\n})();\r\nconst DEPLOY_URL_PROVIDER = {\r\n    provide: DEPLOY_URL,\r\n    useValue: deployUrl,\r\n};\n\n/**\r\n * Intercepts request and responses in order to simulate IIS re-write rules.\r\n * For more information consult\r\n * https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module.\r\n */\r\nclass RewriteRulesInterceptor {\r\n    constructor(amsService, settingsService, deployUrl) {\r\n        this.amsService = amsService;\r\n        this.settingsService = settingsService;\r\n        this.appDeployVersionUrl = '';\r\n        if (deployUrl && deployUrl.length > 0) {\r\n            this.appDeployVersionUrl = deployUrl;\r\n        }\r\n    }\r\n    /**\r\n     * Intercepts http requests and handles re-write rules logic.\r\n     * For more information consult\r\n     * https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module.\r\n     */\r\n    intercept(request, next) {\r\n        const account = this.amsService.account;\r\n        const subscription = this.amsService.subscription;\r\n        // check version and append to request if required\r\n        if ((request.url.startsWith('assets') || request.url.startsWith('/assets')) &&\r\n            this.appDeployVersionUrl &&\r\n            this.appDeployVersionUrl.length > 0) {\r\n            // check if appDeployVersionUrl is not duplicated\r\n            if (request.url.indexOf(this.appDeployVersionUrl) === -1) {\r\n                // avoid multiple slashes when combining paths\r\n                // and combine request url with the appDeployVersionUrl\r\n                const combinedPath = this.appDeployVersionUrl\r\n                    .split('/')\r\n                    .concat(request.url.split('/'))\r\n                    .filter((part) => part.length > 0)\r\n                    .join('/');\r\n                request = request.clone({\r\n                    url: combinedPath\r\n                });\r\n            }\r\n        }\r\n        return next.handle(request).pipe(map((event) => event), catchError((error) => throwError(error)));\r\n    }\r\n    /**\r\n     * Determines whether the angular application is running in debug mode\r\n     *\r\n     * @returns True if angular application is running in debugging mode.\r\n     */\r\n    get isDebuggingMode() {\r\n        if (this.settingsService.environmentSettings && !this.settingsService.environmentSettings.production) {\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n}\r\nRewriteRulesInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RewriteRulesInterceptor, deps: [{ token: AmsService }, { token: SettingsService }, { token: DEPLOY_URL }], target: i0.ɵɵFactoryTarget.Injectable });\r\nRewriteRulesInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RewriteRulesInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RewriteRulesInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AmsService }, { type: SettingsService }, { type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [DEPLOY_URL]\r\n                }] }]; } });\n\nclass IframeSecurityPipe {\r\n    constructor(domSanitizer) {\r\n        this.domSanitizer = domSanitizer;\r\n    }\r\n    transform(url) {\r\n        return this.domSanitizer.bypassSecurityTrustResourceUrl(url);\r\n    }\r\n}\r\nIframeSecurityPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IframeSecurityPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });\r\nIframeSecurityPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: IframeSecurityPipe, name: \"iframeSecurity\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IframeSecurityPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'iframeSecurity'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });\n\n/**\r\n * A pipe that returns true if a given variable is of a specific type using \"typeof\" operator.\r\n *\r\n * @example\r\n * ```\r\n * <p *ngIf=\"myVariable | typeOf:'string'\">myVariable is a string</p>\r\n * ```\r\n */\r\nclass TypeOfPipe {\r\n    /**\r\n     * Transforms a value into a boolean indicating whether it is of the specified type.\r\n     *\r\n     * @param value The value to test.\r\n     * @param type The type to check for. Must be a string representing a valid JavaScript type,\r\n     * such as \"object\", \"string\", \"number\", or \"boolean\".\r\n     * @returns True if the value is of the specified type; false otherwise.\r\n     */\r\n    transform(value, type) {\r\n        return value && typeof value === type;\r\n    }\r\n}\r\nTypeOfPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TypeOfPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nTypeOfPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: TypeOfPipe, name: \"typeOf\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TypeOfPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{ name: 'typeOf' }]\r\n        }] });\n\nclass GuidService {\r\n    /**\r\n     * Check if input value is a guid\r\n     *\r\n     * @return boolean\r\n     */\r\n    isGuid(value) {\r\n        const guidRegex = /[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}/i;\r\n        if (guidRegex.exec(value)) {\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n    /**\r\n     * Create a unique identification string\r\n     *\r\n     * @return the guid\r\n     */\r\n    static createUID() {\r\n        return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\r\n            // eslint-disable-next-line no-bitwise\r\n            const r = (Math.random() * 16) | 0;\r\n            // eslint-disable-next-line no-bitwise\r\n            const v = c === 'x' ? r : (r & 0x3) | 0x8;\r\n            return v.toString(16);\r\n        });\r\n    }\r\n}\r\nGuidService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: GuidService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nGuidService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: GuidService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: GuidService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass AppInitializerCustomBaseService {\r\n}\n\n/**\r\n * This service must be overridden by the product when need add custom methods at app initialize\r\n */\r\nclass AppInitializerCustomService extends AppInitializerCustomBaseService {\r\n    async initialize() { }\r\n}\r\nAppInitializerCustomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializerCustomService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nAppInitializerCustomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializerCustomService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializerCustomService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }] });\n\n/**************************************************************************\r\n ****       This file contains a group of models which defines all     ****\r\n ****   environment settings for infrastructure purpose. For instance, ****\r\n ****         allows to define different setting for running apps      ****\r\n ****              in development or production environments.          ****\r\n **************************************************************************/\r\n// General application environment settings.\r\nclass EnvironmentSettings {\r\n}\n\nclass WildcardService {\r\n    /*\r\n     * Constructs the Wildcard service.\r\n     */\r\n    constructor(appContextService, companyDependentService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.companyDependentService = companyDependentService;\r\n        this.roleService = roleService;\r\n        /** culture tag placeholder */\r\n        this.culturePlaceholder = '{culture}';\r\n        /** culture tag placeholder */\r\n        this.cultureTwoLetterISOPlaceholder = '{cultureTwoLetterISO}';\r\n        /** Company tag placeholder */\r\n        this.companyPlaceholder = '{company}';\r\n        /** Account tag placeholder */\r\n        this.accountPlaceholder = '{account}';\r\n        /** Subscription tag placeholder */\r\n        this.subscriptionPlaceholder = '{subscription}';\r\n        /** Audience tag placeholder */\r\n        this.audiencePlaceholder = '{audience}';\r\n        /** Help Center Url tag placeholder */\r\n        this.helpCenterBaseUrl = '{helpCenterBaseUrl}';\r\n        /** Temporal date placeholder*/\r\n        this.datePlaceholder = '{currentDate'; // This is the correct form (without the })\r\n        /** Temporal dateTime placeholder */\r\n        this.dateTimePlaceholder = '{currentDateTime'; // This is the correct form (without the })\r\n        /** Temporal next day date placeholder */\r\n        this.dateNextDayPlaceholder = '{nextDayDate';\r\n        /** Temporal nextDayStartDate placeholder */\r\n        this.todayStartDateTimePlaceholder = '{todayStartDateTime';\r\n        /** Temporal nextEndStartDate placeholder */\r\n        this.todayEndDateTimePlaceholder = '{todayEndDateTime';\r\n        /** Temporal previousWeekStartDate placeholder */\r\n        this.previousWeekStartDatePlaceholder = '{previousWeekStartDate';\r\n        /** Temporal previousWeekEndDate placeholder */\r\n        this.previousWeekEndDatePlaceholder = '{previousWeekEndDate';\r\n        /** Temporal previousWeekStartDateTime placeholder */\r\n        this.previousWeekStartDateTimePlaceholder = '{previousWeekStartDateTime';\r\n        /** Temporal previousWeekEndDateTime placeholder */\r\n        this.previousWeekEndDateTimePlaceholder = '{previousWeekEndDateTime';\r\n        /** Temporal currentWeekStartDate placeholder */\r\n        this.currentWeekStartDatePlaceholder = '{currentWeekStartDate';\r\n        /** Temporal currentWeekEndDate placeholder */\r\n        this.currentWeekEndDatePlaceholder = '{currentWeekEndDate';\r\n        /** Temporal currentWeekStartDateTime placeholder */\r\n        this.currentWeekStartDateTimePlaceholder = '{currentWeekStartDateTime';\r\n        /** Temporal currentWeekEndDateTime placeholder */\r\n        this.currentWeekEndDateTimePlaceholder = '{currentWeekEndDateTime';\r\n        /** Temporal nextWeekStartDate placeholder */\r\n        this.nextWeekStartDatePlaceholder = '{nextWeekStartDate';\r\n        /** Temporal nextWeekEndDate placeholder */\r\n        this.nextWeekEndDatePlaceholder = '{nextWeekEndDate';\r\n        /** Temporal nextWeekStartDateTime placeholder */\r\n        this.nextWeekStartDateTimePlaceholder = '{nextWeekStartDateTime';\r\n        /** Temporal nextWeekEndDateTime placeholder */\r\n        this.nextWeekEndDateTimePlaceholder = '{nextWeekEndDateTime';\r\n        /** Temporal previousMonthStartDate placeholder */\r\n        this.previousMonthStartDatePlaceholder = '{previousMonthStartDate';\r\n        /** Temporal previousMonthEndDate placeholder */\r\n        this.previousMonthEndDatePlaceholder = '{previousMonthEndDate';\r\n        /** Temporal currentMonthStartDate placeholder */\r\n        this.currentMonthStartDatePlaceholder = '{currentMonthStartDate';\r\n        /** Temporal currentMonthEndDate placeholder */\r\n        this.currentMonthEndDatePlaceholder = '{currentMonthEndDate';\r\n        /** Temporal nextMonthStartDate placeholder */\r\n        this.nextMonthStartDatePlaceholder = '{nextMonthStartDate';\r\n        /** Temporal nextMonthEndDate placeholder */\r\n        this.nextMonthEndDatePlaceholder = '{nextMonthEndDate';\r\n        /** Temporal previousYearStartDate placeholder */\r\n        this.previousYearStartDatePlaceholder = '{previousYearStartDate';\r\n        /** Temporal previousYearEndDate placeholder */\r\n        this.previousYearEndDatePlaceholder = '{previousYearEndDate';\r\n        /** Temporal currentYearStartDate placeholder */\r\n        this.currentYearStartDatePlaceholder = '{currentYearStartDate';\r\n        /** Temporal currentYearEndDate placeholder */\r\n        this.currentYearEndDatePlaceholder = '{currentYearEndDate';\r\n        /** Temporal nextYearStartDate placeholder */\r\n        this.nextYearStartDatePlaceholder = '{nextYearStartDate';\r\n        /** Temporal nextYearEndDate placeholder */\r\n        this.nextYearEndDatePlaceholder = '{nextYearEndDate';\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.getCompaniesCountSubscription) {\r\n            this.getCompaniesCountSubscription.unsubscribe();\r\n        }\r\n        if (this.getCompaniesCountSubscription) {\r\n            this.selectedCompanySubscription.unsubscribe();\r\n        }\r\n    }\r\n    /**\r\n     * Formats an operation based on its tags and the application context\r\n     * Also, will emit a new operation each time the application context changes (such as the company or audience)\r\n     *\r\n     * @param operation operation with the tags that will be replaced with the application context values.\r\n     */\r\n    formatOperation(operation) {\r\n        const isCompanyDependent = this.verifyCompanyDependency(operation);\r\n        const isRoleDependent = this.verifyRoleDependency(operation);\r\n        return new Observable((obs) => {\r\n            let companyKey = '';\r\n            let roleKey = '';\r\n            operation = this.replaceOperationTags(operation, companyKey, roleKey);\r\n            if (isCompanyDependent) {\r\n                this.getCompaniesCountSubscription = this.companyDependentService\r\n                    .getCompaniesCount()\r\n                    .pipe(take$1(1))\r\n                    .subscribe((count) => {\r\n                    if (count > 0) {\r\n                        this.selectedCompanySubscription = this.appContextService\r\n                            .selectedCompany()\r\n                            .subscribe((key) => {\r\n                            companyKey = key;\r\n                            // in case there isn't any created company\r\n                            if (companyKey === undefined) {\r\n                                obs.error();\r\n                            }\r\n                            const newOperation = this.replaceOperationTags(operation, companyKey, roleKey);\r\n                            if (!this.operationHasTags(newOperation)) {\r\n                                obs.next(newOperation);\r\n                            }\r\n                        });\r\n                    }\r\n                    if (count !== undefined && count === 0) {\r\n                        obs.error();\r\n                    }\r\n                });\r\n            }\r\n            if (isRoleDependent) {\r\n                roleKey = this.roleService.roleKey;\r\n                // in case there ins't any created role\r\n                if (roleKey === undefined) {\r\n                    obs.error();\r\n                }\r\n                const newOperation = this.replaceOperationTags(operation, companyKey, roleKey);\r\n                if (!this.operationHasTags(newOperation)) {\r\n                    obs.next(newOperation);\r\n                }\r\n            }\r\n            if (!isRoleDependent && !isCompanyDependent) {\r\n                const newOperation = this.replaceOperationTags(operation, companyKey, roleKey);\r\n                obs.next(newOperation);\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Verifies if a given operation isCompanyDependent\r\n     *\r\n     * @param operation operation to be checked\r\n     * @return return true if is company dependent\r\n     */\r\n    verifyCompanyDependency(operation) {\r\n        return operation.indexOf(this.companyPlaceholder) !== -1;\r\n    }\r\n    /**\r\n     * Replace the tags present on the operation url based on the application context\r\n     *\r\n     * @param operation operation url\r\n     * @param companyKey current company key selected\r\n     * @param roleKey current role key selected\r\n     */\r\n    replaceOperationTags(operation, companyKey, roleKey) {\r\n        operation = this.replaceTemporalOperationTags(this.replaceOperationSubscriptionTags(operation));\r\n        if (companyKey) {\r\n            operation = operation.replace(this.companyPlaceholder, companyKey);\r\n        }\r\n        if (roleKey) {\r\n            operation = operation.replace(this.audiencePlaceholder, roleKey);\r\n        }\r\n        operation = operation.replace(this.helpCenterBaseUrl, this.appContextService.getHelpCenterBaseUrl());\r\n        operation = operation.replace(this.culturePlaceholder, this.appContextService.user?.culture);\r\n        operation = operation.replace(this.cultureTwoLetterISOPlaceholder, this.appContextService.user?.culture?.substring(3));\r\n        return operation;\r\n    }\r\n    /**\r\n     * Replace the tags present on the operation url that dependents on the application context but\r\n     * not change during the application usage\r\n     *\r\n     * @param operation operation url\r\n     * @return operation with the tags replaced\r\n     */\r\n    replaceOperationSubscriptionTags(operation) {\r\n        return operation\r\n            .replace(this.accountPlaceholder, this.appContextService.tenantKey)\r\n            .replace(this.subscriptionPlaceholder, this.appContextService.organizationKey);\r\n    }\r\n    /**\r\n     * Replace temporal tags on a given operation\r\n     * Tags for dateTime -> {currentDateTime} + {currentDateTime+h+0} + {currentDateTime+d+0}\r\n     * Tags for date -> {currentDate} + {currentDateTime+d+0}\r\n     *\r\n     * @param operation that will have the tags replaced\r\n     * @return operation with the tags replaced\r\n     */\r\n    replaceTemporalOperationTags(operation) {\r\n        const date = new Date();\r\n        const dictionaryDates = {};\r\n        let isDateTime = false;\r\n        // Handle Next day date\r\n        const indexNextDayDate = operation.indexOf(this.dateNextDayPlaceholder);\r\n        if (indexNextDayDate !== -1) {\r\n            dictionaryDates[this.dateNextDayPlaceholder] = format(addDays(date, 1), 'yyyy-MM-dd');\r\n        }\r\n        // Handle today Start Date\r\n        const indexTodayStartDateTimePlaceholder = operation.indexOf(this.todayStartDateTimePlaceholder);\r\n        if (indexTodayStartDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.todayStartDateTimePlaceholder] = startOfDay(date).toISOString();\r\n        }\r\n        // Handle today End Date\r\n        const indexTodayEndDateTimePlaceholder = operation.indexOf(this.todayEndDateTimePlaceholder);\r\n        if (indexTodayEndDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.todayEndDateTimePlaceholder] = endOfDay(date).toISOString();\r\n        }\r\n        // Handle Previous week Start Date\r\n        const indexPreviousWeekStartDatePlaceholder = operation.indexOf(this.previousWeekStartDatePlaceholder);\r\n        if (indexPreviousWeekStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousWeekStartDatePlaceholder] = format(startOfWeek(addWeeks(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Previous week End Date\r\n        const indexPreviousWeekEndDatePlaceholder = operation.indexOf(this.previousWeekEndDatePlaceholder);\r\n        if (indexPreviousWeekEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousWeekEndDatePlaceholder] = format(endOfWeek(addWeeks(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Previous week Start Date Time\r\n        const indexPreviousWeekStartDateTimePlaceholder = operation.indexOf(this.previousWeekStartDateTimePlaceholder);\r\n        if (indexPreviousWeekStartDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.previousWeekStartDateTimePlaceholder] = startOfWeek(addWeeks(date, -1)).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Previous week End Date Time\r\n        const indexPreviousWeekEndDateTimePlaceholder = operation.indexOf(this.previousWeekEndDateTimePlaceholder);\r\n        if (indexPreviousWeekEndDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.previousWeekEndDateTimePlaceholder] = endOfWeek(addWeeks(date, -1)).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Current week Start Date\r\n        const indexCurrentWeekStartDatePlaceholder = operation.indexOf(this.currentWeekStartDatePlaceholder);\r\n        if (indexCurrentWeekStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentWeekStartDatePlaceholder] = format(startOfWeek(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current week End Date\r\n        const indexCurrentWeekEndDatePlaceholder = operation.indexOf(this.currentWeekEndDatePlaceholder);\r\n        if (indexCurrentWeekEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentWeekEndDatePlaceholder] = format(endOfWeek(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current week Start Date Time\r\n        const indexCurrentWeekStartDateTimePlaceholder = operation.indexOf(this.currentWeekStartDateTimePlaceholder);\r\n        if (indexCurrentWeekStartDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.currentWeekStartDateTimePlaceholder] = startOfWeek(date).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Current week End Date Time\r\n        const indexCurrentWeekEndDateTimePlaceholder = operation.indexOf(this.currentWeekEndDateTimePlaceholder);\r\n        if (indexCurrentWeekEndDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.currentWeekEndDateTimePlaceholder] = endOfWeek(date).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Next week Start Date\r\n        const indexNextWeekStartDatePlaceholder = operation.indexOf(this.nextWeekStartDatePlaceholder);\r\n        if (indexNextWeekStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextWeekStartDatePlaceholder] = format(startOfWeek(addWeeks(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next week End Date\r\n        const indexNextWeekEndDatePlaceholder = operation.indexOf(this.nextWeekEndDatePlaceholder);\r\n        if (indexNextWeekEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextWeekEndDatePlaceholder] = format(endOfWeek(addWeeks(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next week Start Date Time\r\n        const indexNextWeekStartDateTimePlaceholder = operation.indexOf(this.nextWeekStartDateTimePlaceholder);\r\n        if (indexNextWeekStartDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.nextWeekStartDateTimePlaceholder] = startOfWeek(addWeeks(date, 1)).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Next week End Date Time\r\n        const indexNextWeekEndDateTimePlaceholder = operation.indexOf(this.nextWeekEndDateTimePlaceholder);\r\n        if (indexNextWeekEndDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.nextWeekEndDateTimePlaceholder] = endOfWeek(addWeeks(date, 1)).toISOString();\r\n            isDateTime = true;\r\n        }\r\n        // Handle Previous Month Start Date\r\n        const indexPreviousMonthStartDatePlaceholder = operation.indexOf(this.previousMonthStartDatePlaceholder);\r\n        if (indexPreviousMonthStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousMonthStartDatePlaceholder] = format(startOfMonth(addMonths(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Previous Month End Date\r\n        const indexPreviousMonthEndDatePlaceholder = operation.indexOf(this.previousMonthEndDatePlaceholder);\r\n        if (indexPreviousMonthEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousMonthEndDatePlaceholder] = format(endOfMonth(addMonths(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Month Start Date\r\n        const indexCurrentMonthStartDatePlaceholder = operation.indexOf(this.currentMonthStartDatePlaceholder);\r\n        if (indexCurrentMonthStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentMonthStartDatePlaceholder] = format(startOfMonth(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Month End Date\r\n        const indexCurrentMonthEndDatePlaceholder = operation.indexOf(this.currentMonthEndDatePlaceholder);\r\n        if (indexCurrentMonthEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentMonthEndDatePlaceholder] = format(endOfMonth(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next Month Start Date\r\n        const indexNextMonthStartDatePlaceholder = operation.indexOf(this.nextMonthStartDatePlaceholder);\r\n        if (indexNextMonthStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextMonthStartDatePlaceholder] = format(startOfMonth(addMonths(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next Month End Date\r\n        const indexNextMonthEndDatePlaceholder = operation.indexOf(this.nextMonthEndDatePlaceholder);\r\n        if (indexNextMonthEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextMonthEndDatePlaceholder] = format(endOfMonth(addMonths(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Previous Year Start Date\r\n        const indexPreviousYearStartDatePlaceholder = operation.indexOf(this.previousYearStartDatePlaceholder);\r\n        if (indexPreviousYearStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousYearStartDatePlaceholder] = format(startOfYear(addYears(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Previous Year End Date\r\n        const indexPreviousYearEndDatePlaceholder = operation.indexOf(this.previousYearEndDatePlaceholder);\r\n        if (indexPreviousYearEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.previousYearEndDatePlaceholder] = format(endOfYear(addYears(date, -1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Year Start Date\r\n        const indexCurrentYearStartDatePlaceholder = operation.indexOf(this.currentYearStartDatePlaceholder);\r\n        if (indexCurrentYearStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentYearStartDatePlaceholder] = format(startOfYear(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Year End Date\r\n        const indexCurrentYearEndDatePlaceholder = operation.indexOf(this.currentYearEndDatePlaceholder);\r\n        if (indexCurrentYearEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.currentYearEndDatePlaceholder] = format(endOfYear(date), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next Year Start Date\r\n        const indexNextYearStartDatePlaceholder = operation.indexOf(this.nextYearStartDatePlaceholder);\r\n        if (indexNextYearStartDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextYearStartDatePlaceholder] = format(startOfYear(addYears(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Next Year End Date\r\n        const indexNextYearEndDatePlaceholder = operation.indexOf(this.nextYearEndDatePlaceholder);\r\n        if (indexNextYearEndDatePlaceholder !== -1) {\r\n            dictionaryDates[this.nextYearEndDatePlaceholder] = format(endOfYear(addYears(date, 1)), 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Date\r\n        const indexDatePlaceholder = operation.indexOf(this.datePlaceholder);\r\n        if (indexDatePlaceholder !== -1) {\r\n            dictionaryDates[this.datePlaceholder] = format(date, 'yyyy-MM-dd');\r\n        }\r\n        // Handle Current Date Time\r\n        const indexDateTimePlaceholder = operation.indexOf(this.dateTimePlaceholder);\r\n        if (indexDateTimePlaceholder !== -1) {\r\n            dictionaryDates[this.dateTimePlaceholder] = date.toISOString();\r\n            isDateTime = true;\r\n        }\r\n        for (const returnPlaceholder in dictionaryDates) {\r\n            // check if the property/key is defined in the object itself, not in parent\r\n            if (dictionaryDates.hasOwnProperty(returnPlaceholder)) {\r\n                operation = operation.replace(returnPlaceholder + '}', dictionaryDates[returnPlaceholder]);\r\n            }\r\n        }\r\n        const numberRegex = /\\-?\\d+/;\r\n        const operationRegex = new RegExp('[+][hdwmy][+-][0-9]+', 'g');\r\n        const arrayReplaceOperations = operation.match(operationRegex);\r\n        if (arrayReplaceOperations) {\r\n            arrayReplaceOperations.forEach((replaceOperation) => {\r\n                const returnPlaceholder = operation.substring(operation.indexOf(replaceOperation), operation.lastIndexOf('{', operation.indexOf(replaceOperation)));\r\n                // check if the property/key is defined in the object itself, not in parent\r\n                if (dictionaryDates.hasOwnProperty(returnPlaceholder)) {\r\n                    let returnDate = parseISO(dictionaryDates[returnPlaceholder]);\r\n                    const dateTimeRegex = `${returnPlaceholder}${replaceOperation}}`;\r\n                    const unit = replaceOperation.charAt(1);\r\n                    const numberToAdd = parseInt(replaceOperation.match(numberRegex)[0], 10);\r\n                    switch (unit) {\r\n                        case 'h':\r\n                            returnDate = addHours(returnDate, numberToAdd);\r\n                            break;\r\n                        case 'd':\r\n                            returnDate = addDays(returnDate, numberToAdd);\r\n                            break;\r\n                        case 'w':\r\n                            returnDate = addWeeks(returnDate, numberToAdd);\r\n                            break;\r\n                        case 'm':\r\n                            returnDate = addMonths(returnDate, numberToAdd);\r\n                            break;\r\n                        case 'y':\r\n                            returnDate = addYears(returnDate, numberToAdd);\r\n                            break;\r\n                    }\r\n                    if (isDateTime) {\r\n                        operation = operation.replace(dateTimeRegex, returnDate.toISOString());\r\n                    }\r\n                    else {\r\n                        operation = operation.replace(dateTimeRegex, format(returnDate, 'yyyy-MM-dd'));\r\n                    }\r\n                }\r\n            });\r\n        }\r\n        return operation;\r\n    }\r\n    /**\r\n     * Verifies if an operation has tags that depends on the application context\r\n     *\r\n     * @param operation operation url\r\n     * @return returns true if is application context dependent\r\n     */\r\n    operationHasTags(operation) {\r\n        return (this.verifyCompanyDependency(operation) ||\r\n            this.verifyRoleDependency(operation) ||\r\n            this.verifyAccountDependency(operation) ||\r\n            this.verifySubscriptionDependency(operation) ||\r\n            this.verifyTemporalDependency(operation));\r\n    }\r\n    /**\r\n     * Verifies if an operation is subscription dependent\r\n     *\r\n     * @param operation operation that will be checked if is subscription dependent\r\n     * @return return true if is subscription dependent\r\n     */\r\n    verifySubscriptionDependency(operation) {\r\n        return operation.indexOf(this.subscriptionPlaceholder) > -1;\r\n    }\r\n    /**\r\n     * Verifies if an operation is account dependent\r\n     *\r\n     * @param operation operation that will be checked if is account dependent\r\n     * @return return true if is account dependent\r\n     */\r\n    verifyAccountDependency(operation) {\r\n        return operation.indexOf(this.accountPlaceholder) > -1;\r\n    }\r\n    /**\r\n     * Verifies if an operation is role/audience dependent\r\n     *\r\n     * @param operation operation that will be checked if is role/audience dependent\r\n     * @return return true if is role dependent\r\n     */\r\n    verifyRoleDependency(operation) {\r\n        return operation.indexOf(this.audiencePlaceholder) > -1;\r\n    }\r\n    /**\r\n     * Verifies if an operation is role/audience dependent\r\n     *\r\n     * @param operation operation that will be checked if is role/audience dependent\r\n     * @return return true if is role dependent\r\n     */\r\n    verifyTemporalDependency(operation) {\r\n        return operation.indexOf(this.datePlaceholder) > -1;\r\n    }\r\n}\r\nWildcardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WildcardService, deps: [{ token: AppContextService }, { token: CompanyDependentService }, { token: RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nWildcardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WildcardService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: WildcardService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: CompanyDependentService }, { type: RoleService }]; } });\n\n/**\r\n * User Pilot Library service.\r\n * Official website: https://userpilot.com/\r\n * Docs page: https://docs.userpilot.com/\r\n * Npm package https://www.npmjs.com/package/userpilot\r\n */\r\nclass UserPilotService {\r\n    constructor(appContextService, routeHelperService, windowService, settingsService, httpClient, router, wildcardService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.windowService = windowService;\r\n        this.settingsService = settingsService;\r\n        this.httpClient = httpClient;\r\n        this.router = router;\r\n        this.wildcardService = wildcardService;\r\n        this.roleService = roleService;\r\n        this.userPilotConfiguration = undefined;\r\n        this.userPilotNavigateToActionStr = 'userPilot-navigateTo:';\r\n    }\r\n    handleWindowPostMessage(event) {\r\n        const message = event;\r\n        // Only trust messages from the below origin.\r\n        if (message.origin !== this.windowService.window.origin) {\r\n            return;\r\n        }\r\n        // message contains userPilotNavigateToActionStr\r\n        // window.postMessage(\"userPilot-navigateTo:/{{accountkey}}/{{subscriptionalias}}/salescore/salesitems/list?listname=salesitems\")\r\n        if (message.data &&\r\n            typeof message.data === 'string' &&\r\n            message.data.startsWith(this.userPilotNavigateToActionStr)) {\r\n            let navigateToRoute = message.data.split(this.userPilotNavigateToActionStr)[1];\r\n            navigateToRoute = navigateToRoute\r\n                .toLowerCase()\r\n                .replace('{{accountKey}}'.toLowerCase(), this.appContextService.tenantKey)\r\n                .replace('{{subscriptionAlias}}'.toLowerCase(), this.appContextService.organizationKey);\r\n            this.router.navigateByUrl(navigateToRoute);\r\n        }\r\n    }\r\n    /**\r\n     * Initialize the userpilot library\r\n     */\r\n    async initialize(settings) {\r\n        const context = this.appContextService.getContext();\r\n        const about = await this.settingsService.getAboutConfiguration();\r\n        if (settings && settings.applicationId && context) {\r\n            // UserPilot application initialization\r\n            Userpilot.initialize(settings.applicationId);\r\n            // add event listener for userpilot events\r\n            this.windowService.window.addEventListener('message', this.handleWindowPostMessage.bind(this));\r\n            const productName = context.clientId;\r\n            const account = this.appContextService.tenantKey;\r\n            const subscription = context.subscriptionAlias;\r\n            const userId = this.appContextService.user.id;\r\n            const userPilotId = `${productName}_${userId}`;\r\n            const subscriptionStartDate = context.subscriptionStartDate\r\n                ? new Date(parseInt(context.subscriptionStartDate, 10))\r\n                : undefined;\r\n            const subscriptionEndDate = context.subscriptionStartDate\r\n                ? new Date(parseInt(context.subscriptionEndDate, 10))\r\n                : undefined;\r\n            const creationDate = this.appContextService.user.creationDate\r\n                ? new Date(parseInt(this.appContextService.user.creationDate, 10))\r\n                : undefined;\r\n            let theme = 'light';\r\n            if (context.appTheme && context.appTheme.toLowerCase().includes('dark')) {\r\n                theme = 'dark';\r\n            }\r\n            const user = {\r\n                name: this.appContextService.user.displayName,\r\n                email: this.appContextService.user.email,\r\n                created_at: creationDate,\r\n                culture: this.appContextService.user.culture != null\r\n                    ? this.appContextService.user.culture.split('-')[0]\r\n                    : 'en',\r\n                country: context.countryKey,\r\n                product: productName,\r\n                subscription,\r\n                role: this.roleService.roleKey,\r\n                account,\r\n                theme,\r\n                plan: context.subscriptionPlan,\r\n                segment: undefined,\r\n                subscriptionStartDate,\r\n                subscriptionEndDate,\r\n                frameworkVersion: about?.elevationFwVersion,\r\n                productVersion: about?.productVersion\r\n            };\r\n            this.addCounters(user, () => {\r\n                // Clear User info from local storage\r\n                Userpilot.clean();\r\n                // Product user identification\r\n                Userpilot.identify(userPilotId, user);\r\n                // Product user role identification\r\n                Userpilot.identify(userPilotId, { role: this.roleService.roleKey });\r\n                // Fires a page reload event each time a navigation occurs.\r\n                this.routeHelperService.navigationEndEvent().subscribe(() => {\r\n                    this.tryAgainReloadUserPilot(10);\r\n                });\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Publishes a custom event that can be tracked on UserPilot's backoffice.\r\n     *\r\n     * @param eventType The type of the custom event.\r\n     * @param eventInfo The meta informations related to the custom event.\r\n     */\r\n    publishEntityEvent(eventType, eventInfo) {\r\n        // @ts-ignore\r\n        if (Userpilot.loaded() && this.userPilotConfiguration !== undefined) {\r\n            const eventConfiguration = this.userPilotConfiguration[eventType];\r\n            if (eventConfiguration !== undefined) {\r\n                const entityConfiguration = eventConfiguration.find((e) => e.module === eventInfo.module &&\r\n                    e.entity === eventInfo.entity &&\r\n                    e.service === eventInfo.service);\r\n                if (entityConfiguration !== undefined) {\r\n                    Userpilot.track(entityConfiguration.eventName, (eventInfo = undefined));\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Publishes a custom event that can be tracked on UserPilot's backoffice.\r\n     *\r\n     * @param eventType The type of the custom event.\r\n     * @param templateKey The import template.\r\n     */\r\n    publishImportEvent(eventType, templateKey) {\r\n        // @ts-ignore\r\n        if (Userpilot.loaded() && this.userPilotConfiguration !== undefined) {\r\n            const eventConfiguration = this.userPilotConfiguration[eventType];\r\n            if (eventConfiguration !== undefined) {\r\n                const importConfiguration = eventConfiguration.find((e) => e.templateKey === templateKey);\r\n                if (importConfiguration !== undefined) {\r\n                    Userpilot.track(importConfiguration.eventName, undefined);\r\n                }\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Publishes a custom event that can be tracked on UserPilot's backoffice.\r\n     *\r\n     * @param eventName The name of the custom event.\r\n     */\r\n    publishEvent(eventName) {\r\n        // @ts-ignore\r\n        if (Userpilot.loaded() && this.userPilotConfiguration !== undefined) {\r\n            Userpilot.track(eventName, undefined);\r\n        }\r\n    }\r\n    /**\r\n     * Force a certain Userpilot content to show for the current user.\r\n     * This method completely overrides any targeting conditions that have been set for that content.\r\n     */\r\n    trigger(contentId) {\r\n        Userpilot.trigger(contentId);\r\n    }\r\n    /**\r\n     * Add counters to the user pilot user information.\r\n     *\r\n     * @param user The user pilot information object.\r\n     */\r\n    async addCounters(user, resolve) {\r\n        await this.settingsService.getUserPilotConfiguration().then(async (data) => {\r\n            this.userPilotConfiguration = data;\r\n            let i = 0;\r\n            if (this.userPilotConfiguration.counters === undefined ||\r\n                this.userPilotConfiguration.counters - length === 0) {\r\n                resolve();\r\n            }\r\n            this.userPilotConfiguration.counters?.forEach((counter) => {\r\n                const uri = counter.url;\r\n                this.wildcardService.formatOperation(uri).subscribe((formattedUri) => {\r\n                    this.httpClient\r\n                        .request('GET', formattedUri)\r\n                        .subscribe((d) => {\r\n                        i++;\r\n                        counter.values.forEach((value) => {\r\n                            const valuePath = value.valuePath;\r\n                            if (valuePath == null) {\r\n                                if (d != null) {\r\n                                    user[value.name] = d;\r\n                                }\r\n                            }\r\n                            else {\r\n                                user[value.name] = this.GetObjectPathValue(data, valuePath);\r\n                            }\r\n                        });\r\n                    }, (error) => {\r\n                        i++;\r\n                        console.log(error);\r\n                    })\r\n                        .add(() => {\r\n                        if (i === this.userPilotConfiguration.counters.length) {\r\n                            resolve();\r\n                        }\r\n                    });\r\n                });\r\n            });\r\n        }, async (error) => {\r\n            resolve();\r\n        });\r\n    }\r\n    /**\r\n     * Finds path value inside an object.\r\n     *\r\n     * @param obj The object.\r\n     * @param path The path.\r\n     */\r\n    GetObjectPathValue(obj, path) {\r\n        path = path.replace(/\\[(\\w+)\\]/g, '.$1'); // convert indexes to properties\r\n        path = path.replace(/^\\./, ''); // strip a leading dot\r\n        const a = path.split('.');\r\n        for (let i = 0, n = a.length; i < n; ++i) {\r\n            const k = a[i];\r\n            if (k in obj) {\r\n                obj = obj[k];\r\n            }\r\n            else {\r\n                return;\r\n            }\r\n        }\r\n        return obj;\r\n    }\r\n    /**\r\n     * Tries to emit the reload page event until succeeds or a given number of try times.\r\n     *\r\n     * @param maxNumberOfTimes Max number of times which will be an attempt of emitting a reload page event.\r\n     * @param [numberOfTimes] Number of times already attempted.\r\n     */\r\n    tryAgainReloadUserPilot(maxNumberOfTimes, numberOfTimes = 0) {\r\n        const time = numberOfTimes === 0 ? 1 : 1000;\r\n        setTimeout(() => {\r\n            if (this.windowService.window.userpilot && this.windowService.window.userpilot.reload) {\r\n                this.windowService.window.userpilot.reload();\r\n            }\r\n            else {\r\n                numberOfTimes++;\r\n                if (numberOfTimes < maxNumberOfTimes) {\r\n                    this.tryAgainReloadUserPilot(maxNumberOfTimes, numberOfTimes);\r\n                }\r\n            }\r\n        }, time);\r\n    }\r\n}\r\nUserPilotService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserPilotService, deps: [{ token: AppContextService }, { token: RouteHelperService }, { token: WindowService }, { token: SettingsService }, { token: i1.HttpClient }, { token: i6.Router }, { token: WildcardService }, { token: RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nUserPilotService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserPilotService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserPilotService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: RouteHelperService }, { type: WindowService }, { type: SettingsService }, { type: i1.HttpClient }, { type: i6.Router }, { type: WildcardService }, { type: RoleService }]; } });\n\n/**\r\n * AppCues Library service.\r\n * Official website: https://www.appcues.com/\r\n * Docs page: https://docs.appcues.com/\r\n */\r\nclass AppCueService {\r\n    constructor(routeHelperService, appContextService, windowService) {\r\n        this.routeHelperService = routeHelperService;\r\n        this.appContextService = appContextService;\r\n        this.windowService = windowService;\r\n    }\r\n    /**\r\n     * Initialize the userpilot library\r\n     */\r\n    initialize(settings) {\r\n        if (settings && settings.accountId) {\r\n            if (this.appContextService?.user?.id === `c7f427a0-2be7-4a4a-823e-b1843524424a`) {\r\n                this.loadScript(`//fast.appcues.com/${settings.accountId}.js`).pipe(take$1(1)).subscribe(() => {\r\n                    const context = this.appContextService.getContext();\r\n                    const userId = this.appContextService.user.id;\r\n                    const user = {\r\n                        name: this.appContextService.user.displayName,\r\n                        email: this.appContextService.user.email,\r\n                        created_at: undefined,\r\n                        culture: this.appContextService.user.culture,\r\n                        countryKey: context.countryKey,\r\n                        subscriptionId: context.subscriptionId,\r\n                        clientId: context.clientId,\r\n                        subscriptionAlias: context.subscriptionAlias,\r\n                        subscriptionKey: context.subscriptionKey\r\n                    };\r\n                    this.windowService.window.Appcues.identify(userId, user);\r\n                    this.routeHelperService.navigationEndEvent().subscribe(() => {\r\n                        this.tryAgainReloadAppCues(10);\r\n                    });\r\n                });\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Tries to emit the reload page event until succeeds or a given number of try times.\r\n     *\r\n     * @param maxNumberOfTimes Max number of times which will be an attempt of emitting a reload page event.\r\n     * @param [numberOfTimes] Number of times already attempted.\r\n     */\r\n    tryAgainReloadAppCues(maxNumberOfTimes, numberOfTimes = 0) {\r\n        const time = numberOfTimes === 0 ? 1 : 1000;\r\n        setTimeout(() => {\r\n            if (this.windowService.window.Appcues && this.windowService.window.Appcues.page) {\r\n                this.windowService.window.Appcues.page();\r\n            }\r\n            else {\r\n                numberOfTimes++;\r\n                if (numberOfTimes < maxNumberOfTimes) {\r\n                    this.tryAgainReloadAppCues(maxNumberOfTimes, numberOfTimes);\r\n                }\r\n            }\r\n        }, time);\r\n    }\r\n    /**\r\n     * Loads the library script.\r\n     *\r\n     * @param url Url from which the library script will be downloaded.\r\n     */\r\n    loadScript(url) {\r\n        return new Observable((obs) => {\r\n            const node = document.createElement('script');\r\n            node.src = url;\r\n            node.type = 'text/javascript';\r\n            node.async = true;\r\n            node.charset = 'utf-8';\r\n            node.onload = () => {\r\n                obs.next();\r\n            };\r\n            document.getElementsByTagName('head')[0].appendChild(node);\r\n        });\r\n    }\r\n}\r\nAppCueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppCueService, deps: [{ token: RouteHelperService }, { token: AppContextService }, { token: WindowService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nAppCueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppCueService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppCueService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: RouteHelperService }, { type: AppContextService }, { type: WindowService }]; } });\n\nclass HeapService {\r\n    constructor(appContextService, settingsService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.settingsService = settingsService;\r\n        this.roleService = roleService;\r\n    }\r\n    async initialize(settings) {\r\n        if (settings && settings.applicationId) {\r\n            this.loadScript();\r\n            await this.init(settings.applicationId);\r\n        }\r\n    }\r\n    loadScript() {\r\n        const node = document.createElement('script');\r\n        node.append(\r\n        // eslint-disable-next-line max-len\r\n        'window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement(\"script\");r.type=\"text/javascript\",r.async=!0,r.src=\"https://cdn.heapanalytics.com/js/heap-\"+e+\".js\";var a=document.getElementsByTagName(\"script\")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=[\"addEventProperties\",\"addUserProperties\",\"clearEventProperties\",\"identify\",\"resetIdentity\",\"removeEventProperty\",\"setEventProperties\",\"track\",\"unsetEventProperty\"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};');\r\n        node.type = 'text/javascript';\r\n        document.getElementsByTagName('head')[0].appendChild(node);\r\n    }\r\n    async init(applicationId) {\r\n        const context = this.appContextService.getContext();\r\n        const about = await this.settingsService.getAboutConfiguration();\r\n        const subscriptionStartDate = context.subscriptionStartDate\r\n            ? new Date(parseInt(context.subscriptionStartDate, 10))\r\n            : undefined;\r\n        const subscriptionEndDate = context.subscriptionStartDate\r\n            ? new Date(parseInt(context.subscriptionEndDate, 10))\r\n            : undefined;\r\n        const creationDate = this.appContextService.user.creationDate\r\n            ? new Date(parseInt(this.appContextService.user.creationDate, 10))\r\n            : undefined;\r\n        heap.load(applicationId);\r\n        heap.identify(this.appContextService.user.id);\r\n        heap.addUserProperties({\r\n            id: this.appContextService.user.id,\r\n            name: this.appContextService.user.displayName,\r\n            email: this.appContextService.user.email,\r\n            culture: this.appContextService.user.culture ? this.appContextService.user.culture.split('-')[0] : 'en',\r\n            country: context.countryKey,\r\n            product: context.clientId,\r\n            role: this.roleService.roleKey,\r\n            theme: context.appTheme,\r\n            account: this.appContextService.tenantKey,\r\n            created_at: creationDate?.toISOString(),\r\n            subscription: this.appContextService.organizationKey,\r\n            subscriptionStartDate: subscriptionStartDate?.toISOString(),\r\n            subscriptionEndDate: subscriptionEndDate?.toISOString(),\r\n            plan: context.subscriptionPlan,\r\n            frameworkVersion: about?.elevationFwVersion,\r\n            productVersion: about?.productVersion,\r\n            viewportHeight: window?.innerHeight,\r\n            viewportWidth: window?.innerWidth\r\n        });\r\n    }\r\n}\r\nHeapService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HeapService, deps: [{ token: AppContextService }, { token: SettingsService }, { token: RoleService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nHeapService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HeapService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HeapService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: SettingsService }, { type: RoleService }]; } });\n\nclass InspectletService {\r\n    async initialize(settings) {\r\n        if (settings && settings.applicationId) {\r\n            this.loadScript(settings.applicationId);\r\n        }\r\n    }\r\n    loadScript(id) {\r\n        const node = document.createElement('script');\r\n        // eslint-disable-next-line max-len\r\n        node.append(`(function() {window.__insp = window.__insp || [];__insp.push(['wid', ${id}]);var ldinsp = function() {if (typeof window.__inspld != \"undefined\") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = \"inspsync\"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js?wid=${id}&r=' + Math.floor(new Date().getTime() / 3600000); var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x);};setTimeout(ldinsp, 0);})();`);\r\n        node.type = 'text/javascript';\r\n        document.getElementsByTagName('head')[0].appendChild(node);\r\n    }\r\n}\r\nInspectletService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InspectletService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nInspectletService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InspectletService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: InspectletService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Responsible to initialize and setup user engagement libraries\r\n */\r\nclass UserEngagementService {\r\n    constructor(appContextService, settingsService, userPilotService, appCueService, heapService, inspectletService) {\r\n        this.appContextService = appContextService;\r\n        this.settingsService = settingsService;\r\n        this.userPilotService = userPilotService;\r\n        this.appCueService = appCueService;\r\n        this.heapService = heapService;\r\n        this.inspectletService = inspectletService;\r\n    }\r\n    /**\r\n     * Initializes user engagement service.\r\n     *\r\n     * @param environmentSettings User engagement settings.\r\n     */\r\n    async initialize(environmentSettings) {\r\n        // Gets configurations defined together with shell configurations\r\n        if (environmentSettings && environmentSettings.userEngagement) {\r\n            this.init(environmentSettings);\r\n        }\r\n    }\r\n    init(environmentSettings) {\r\n        if (environmentSettings.userEngagement.userpilot) {\r\n            this.userPilotService.initialize(environmentSettings.userEngagement.userpilot);\r\n        }\r\n        if (environmentSettings.userEngagement.appcues) {\r\n            this.appCueService.initialize(environmentSettings.userEngagement.appcues);\r\n        }\r\n        if (environmentSettings.userEngagement.heap) {\r\n            this.heapService.initialize(environmentSettings.userEngagement.heap);\r\n        }\r\n        if (environmentSettings.userEngagement.inspectlet) {\r\n            this.inspectletService.initialize(environmentSettings.userEngagement.inspectlet);\r\n        }\r\n    }\r\n}\r\nUserEngagementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserEngagementService, deps: [{ token: AppContextService }, { token: SettingsService }, { token: UserPilotService }, { token: AppCueService }, { token: HeapService }, { token: InspectletService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nUserEngagementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserEngagementService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserEngagementService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: SettingsService }, { type: UserPilotService }, { type: AppCueService }, { type: HeapService }, { type: InspectletService }]; } });\n\nclass TelemetryService {\r\n    constructor(injector, settingsService) {\r\n        this.injector = injector;\r\n        this.settingsService = settingsService;\r\n        this.hasEnvironmentTelemetry = false;\r\n        this.telemetryEventSource = new Subject();\r\n        this.telemetryEvent$ = this.telemetryEventSource.asObservable();\r\n        const params = {};\r\n    }\r\n    get document() {\r\n        return this.injector.get(DOCUMENT);\r\n    }\r\n    ngOnDestroy() {\r\n        this.telemetryEventSource.complete();\r\n    }\r\n    init() {\r\n        if (this.settingsService.environmentSettings.telemetry) {\r\n            this.hasEnvironmentTelemetry = true;\r\n            this.telemetryEventSource.next({\r\n                init: {\r\n                    EnvironmentTelemetrySettings: this.settingsService.environmentSettings.telemetry\r\n                }\r\n            });\r\n        }\r\n    }\r\n    setAuthenticatedUserContext(accountId, userId) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            this.telemetryEventSource.next({\r\n                context: {\r\n                    account: accountId,\r\n                    user: userId\r\n                }\r\n            });\r\n        }\r\n    }\r\n    logPageView(name, url) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            this.telemetryEventSource.next({\r\n                pageView: {\r\n                    name,\r\n                    url\r\n                }\r\n            });\r\n        }\r\n    }\r\n    logEvent(name, properties) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            this.telemetryEventSource.next({\r\n                event: {\r\n                    name,\r\n                    properties\r\n                }\r\n            });\r\n        }\r\n    }\r\n    logMetric(name, average, properties) {\r\n        this.telemetryEventSource.next({\r\n            metric: {\r\n                name,\r\n                average,\r\n                properties\r\n            }\r\n        });\r\n    }\r\n    logException(exception, severityLevel) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            this.telemetryEventSource.next({\r\n                exception: {\r\n                    exception,\r\n                    severityLevel\r\n                }\r\n            });\r\n        }\r\n    }\r\n    logTrace(message, properties) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            this.telemetryEventSource.next({\r\n                trace: {\r\n                    message,\r\n                    properties\r\n                }\r\n            });\r\n        }\r\n    }\r\n    mark(markName) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            performance.mark(markName);\r\n        }\r\n    }\r\n    measure(metricName, fromMark, includeRequestsInfo = false) {\r\n        if (this.hasEnvironmentTelemetry) {\r\n            fromMark = fromMark ? fromMark : 'navigationStart'; // @see Performance WebAPI\r\n            const endMark = `${metricName}#end`;\r\n            performance.mark(endMark);\r\n            performance.measure(metricName, fromMark, endMark);\r\n            const measure = performance.getEntriesByName(metricName)[0];\r\n            const eventProperties = {\r\n                origin: this.document.location.origin,\r\n                hash: this.document.location.hash,\r\n                pathName: this.document.location.pathname,\r\n                startTime: measure.startTime,\r\n                duration: measure.duration,\r\n                resourcesList: []\r\n            };\r\n            if (includeRequestsInfo) {\r\n                const resourcesList = [];\r\n                const resourceListEntries = performance.getEntriesByType('resource');\r\n                resourceListEntries\r\n                    .filter((entry) => entry.startTime >= measure.startTime)\r\n                    .forEach((entry) => {\r\n                    let resourceItem = resourcesList.find((resource) => resource.name === entry.initiatorType);\r\n                    if (!resourceItem) {\r\n                        resourceItem = {\r\n                            name: entry.initiatorType,\r\n                            count: 0,\r\n                            totalTransferSize: 0,\r\n                            totalDuration: 0\r\n                        };\r\n                        resourcesList.push(resourceItem);\r\n                    }\r\n                    resourceItem.count++;\r\n                    resourceItem.totalTransferSize += entry.transferSize;\r\n                    resourceItem.totalDuration += entry.duration;\r\n                });\r\n                eventProperties.resourcesList = resourcesList;\r\n            }\r\n            this.logEvent(metricName, eventProperties);\r\n        }\r\n    }\r\n}\r\nTelemetryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TelemetryService, deps: [{ token: i0.Injector }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nTelemetryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TelemetryService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TelemetryService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.Injector }, { type: SettingsService }]; } });\n\nclass ThemeService {\r\n    constructor(deployUrl, errorsService, broadcastService) {\r\n        this.errorsService = errorsService;\r\n        this.broadcastService = broadcastService;\r\n        this.theme = ThemesEnum.Light;\r\n        this.appDeployVersionUrl = '';\r\n        if (deployUrl && deployUrl.length > 0) {\r\n            this.appDeployVersionUrl = deployUrl;\r\n        }\r\n    }\r\n    addTheme(value) {\r\n        this.theme = value ?? ThemesEnum.Light;\r\n        return new Promise((resolve) => {\r\n            const styleId = 'pri-theme';\r\n            const oldStyle = document.getElementById(styleId);\r\n            const style = document.createElement('link');\r\n            style.rel = 'stylesheet';\r\n            style.id = styleId;\r\n            style.onload = () => {\r\n                if (oldStyle) {\r\n                    document.head.removeChild(oldStyle);\r\n                }\r\n                resolve(true);\r\n            };\r\n            style.onerror = () => {\r\n                this.broadcastService.emit('hasErrorInLoading', true);\r\n                this.errorsService.showErrorMessage({\r\n                    message: 'Error on load theme style file from server.',\r\n                    canBackToHome: false,\r\n                    canBackToPreviousPage: false,\r\n                    canGoToSubscriptionsPage: true,\r\n                    errorType: 'loadingStyle'\r\n                });\r\n                resolve(true);\r\n            };\r\n            const file = `${this.theme}.theme.css`;\r\n            if (this.appDeployVersionUrl && this.appDeployVersionUrl.length > 0) {\r\n                style.href = this.appDeployVersionUrl + file;\r\n            }\r\n            else {\r\n                style.href = file;\r\n            }\r\n            document.head.appendChild(style);\r\n        });\r\n    }\r\n}\r\nThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ThemeService, deps: [{ token: DEPLOY_URL }, { token: ErrorsService }, { token: BroadcastService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ThemeService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ThemeService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [DEPLOY_URL]\r\n                }] }, { type: ErrorsService }, { type: BroadcastService }]; } });\n\nclass AppInitializer {\r\n    constructor(identityService, environmentSettings, settingsService, appContextService, amsService, userEngagementService, roleService, telemetry, themeService, userSettingsService, appInitializerCustomService) {\r\n        this.identityService = identityService;\r\n        this.environmentSettings = environmentSettings;\r\n        this.settingsService = settingsService;\r\n        this.appContextService = appContextService;\r\n        this.amsService = amsService;\r\n        this.userEngagementService = userEngagementService;\r\n        this.roleService = roleService;\r\n        this.telemetry = telemetry;\r\n        this.themeService = themeService;\r\n        this.userSettingsService = userSettingsService;\r\n        this.appInitializerCustomService = appInitializerCustomService;\r\n        this.ready$ = new BehaviorSubject(false);\r\n    }\r\n    async init() {\r\n        // Initialize settings service\r\n        this.settingsService.init(this.environmentSettings);\r\n        // Initializes the identity server and caches the application context data\r\n        if (!(await this.identityService.init(this.settingsService.environmentSettings))) {\r\n            return Promise.resolve(false);\r\n        }\r\n        // Initialize the ams service\r\n        if (!(await this.amsService.init(this.settingsService.environmentSettings))) {\r\n            return Promise.resolve(false);\r\n        }\r\n        this.ready$.next(true);\r\n        return Promise.resolve(true);\r\n    }\r\n    /*\r\n     * Responsible to configure and check everything needed to run the application.\r\n     * @param environment Environment configurations.\r\n     */\r\n    async initialize() {\r\n        // Initialize telemetry service\r\n        this.telemetry.init();\r\n        // Initialize app context service\r\n        await this.appContextService.loadContextFromServer();\r\n        // Initialize theme\r\n        await this.initializeTheme();\r\n        // Initialize roles\r\n        await this.roleService.initialize();\r\n        // Initialize user engagement service\r\n        await this.userEngagementService.initialize(this.settingsService.environmentSettings);\r\n        // Initialize custom app initialize service\r\n        await this.appInitializerCustomService.initialize();\r\n    }\r\n    /**\r\n     * Base on the app context configuration, selects the user theme.\r\n     */\r\n    async initializeTheme() {\r\n        const isElevation = await this.settingsService.isElevationFW();\r\n        let appTheme;\r\n        if (isElevation) {\r\n            appTheme = this.appContextService?.getContext()?.appTheme;\r\n        }\r\n        else {\r\n            const setting = await this.userSettingsService.getCurrentUserSetting('appTheme');\r\n            appTheme = setting?.value;\r\n        }\r\n        const theme = Object.values(ThemesEnum).find((v) => v === appTheme);\r\n        await this.themeService.addTheme(theme);\r\n    }\r\n}\r\nAppInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializer, deps: [{ token: IdentityService }, { token: EnvironmentSettings }, { token: SettingsService }, { token: AppContextService }, { token: AmsService }, { token: UserEngagementService }, { token: RoleService }, { token: TelemetryService }, { token: ThemeService }, { token: UserSettingsService }, { token: AppInitializerCustomService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nAppInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializer, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AppInitializer, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: IdentityService }, { type: EnvironmentSettings }, { type: SettingsService }, { type: AppContextService }, { type: AmsService }, { type: UserEngagementService }, { type: RoleService }, { type: TelemetryService }, { type: ThemeService }, { type: UserSettingsService }, { type: AppInitializerCustomService }]; } });\n\nclass ConverterService {\r\n    constructor(appContextService) {\r\n        this.appContextService = appContextService;\r\n    }\r\n    get culture() {\r\n        return this.appContextService.user.culture.split('-')[0].toLowerCase();\r\n    }\r\n    parseFloat(value, decimalSeparatorChar) {\r\n        if (!value) {\r\n            return 0;\r\n        }\r\n        if (typeof value !== 'string') {\r\n            return parseFloat(value);\r\n        }\r\n        if (!decimalSeparatorChar) {\r\n            switch (this.culture) {\r\n                case 'pt':\r\n                case 'es':\r\n                case 'it':\r\n                case 'ca':\r\n                case 'ro':\r\n                case 'fr':\r\n                default: {\r\n                    decimalSeparatorChar = ',';\r\n                    break;\r\n                }\r\n                case 'en': {\r\n                    decimalSeparatorChar = '.';\r\n                    break;\r\n                }\r\n            }\r\n        }\r\n        const valueParts = value.split(decimalSeparatorChar);\r\n        let intPart = valueParts[0] || '0';\r\n        const decimalPart = valueParts[1] || '0';\r\n        intPart = intPart.replace(/[.\\s]/g, '');\r\n        value = `${intPart}.${decimalPart}`;\r\n        return parseFloat(value);\r\n    }\r\n    parseInt(value) {\r\n        if (!value) {\r\n            return 0;\r\n        }\r\n        return parseInt(value, 10);\r\n    }\r\n    parseFloatToNumberWithoutSeparators(value) {\r\n        switch (this.culture) {\r\n            case 'pt':\r\n            case 'es':\r\n            case 'it': {\r\n                value = value.replace(/\\s/g, ''); // remove white spaces\r\n                break;\r\n            }\r\n            case 'en': {\r\n                value = value.replace(/[,\\s]/g, ''); // remove ','\r\n                break;\r\n            }\r\n        }\r\n        return value;\r\n    }\r\n}\r\nConverterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ConverterService, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nConverterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ConverterService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ConverterService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: AppContextService }]; } });\n\n/**\r\n * Service that allows to interact with the browser window object\r\n */\r\nclass DocumentService {\r\n    /**\r\n     * Constructs the window service\r\n     */\r\n    constructor() { }\r\n    /**\r\n     * Gets the window object\r\n     */\r\n    get document() {\r\n        return document;\r\n    }\r\n    /**\r\n     * Get window content size\r\n     *\r\n     * @return size of the window\r\n     */\r\n    getSize() {\r\n        return new SizeModel(this.document.documentElement.offsetWidth, this.document.documentElement.offsetHeight);\r\n    }\r\n}\r\nDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DocumentService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DocumentService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\n/**\r\n * Service responsible to interact with DOM\r\n */\r\nclass DomService {\r\n    /**\r\n     * Constructs the DomService\r\n     *\r\n     * @param appRef A reference to an Angular application running on a page\r\n     * @param componentFactoryResolver\r\n     * @param injector\r\n     * @param DocumentService Service that allows to interact with the browser window object\r\n     */\r\n    constructor(appRef, componentFactoryResolver, injector, documentService) {\r\n        this.appRef = appRef;\r\n        this.componentFactoryResolver = componentFactoryResolver;\r\n        this.injector = injector;\r\n        this.documentService = documentService;\r\n    }\r\n    /**\r\n     * Appends the component to the body dom element\r\n     *\r\n     * @param component component that will be added to the body dom element\r\n     * @param properties properties that will be added to the component\r\n     * @param onDismissView Event that will be trigger if the component is dismiss (closed/removed)\r\n     * @param appendTo element that the component will be append to\r\n     */\r\n    appendComponentToBody(component, properties = null, onDismissView, appendTo = null) {\r\n        // Keep local reference of ApplicationRef\r\n        const localAppRef = this.appRef;\r\n        // Create a component reference from the component\r\n        const componentRef = this.componentFactoryResolver.resolveComponentFactory(component).create(this.injector);\r\n        componentRef.instance.dismissView = dismissComponentInstanceCallback;\r\n        // Add properties to the component\r\n        if (properties != null) {\r\n            if (properties instanceof Map) {\r\n                properties.forEach((value, key) => (componentRef.instance[key] = value));\r\n            }\r\n            else {\r\n                Object.keys(properties).forEach((property) => {\r\n                    componentRef.instance[property] = properties[property];\r\n                });\r\n            }\r\n        }\r\n        // Attach component to the appRef so that it's inside the ng component tree\r\n        this.appRef.attachView(componentRef.hostView);\r\n        // Get DOM element from component\r\n        const domElem = componentRef.hostView.rootNodes[0];\r\n        const elementToAppend = appendTo ? appendTo : document.body;\r\n        // Append Dom element\r\n        elementToAppend.appendChild(domElem);\r\n        // Return a function to dismiss the view\r\n        return dismissComponentInstanceCallback;\r\n        // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\r\n        function dismissComponentInstanceCallback() {\r\n            localAppRef.detachView(componentRef.hostView);\r\n            componentRef.destroy();\r\n            if (domElem) {\r\n                // for the remove of the element from the body\r\n                // hack to work with IE\r\n                try {\r\n                    document.body.removeChild(domElem);\r\n                }\r\n                catch (Exception) { }\r\n            }\r\n            if (onDismissView) {\r\n                onDismissView.emit();\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Appends the component to the body dom element and returns the ComponentRef\r\n     *\r\n     * @param component Component that will be added to the body dom element\r\n     * @param properties Properties that will be added to the component\r\n     * @param appendTo Element that the component will be append to\r\n     * @param allowMultiplesInstances If true, allow multiples instances of this component on DOM.\r\n      If false, remove of the DOM the last added node with same tag name of the component.\r\n     * @returns The ref of the added node\r\n     */\r\n    appendComponentToBodyAndGetReference(component, properties, appendTo, allowMultiplesInstances = false, customInjector) {\r\n        // Keep local reference of ApplicationRef\r\n        const localAppRef = this.appRef;\r\n        // Create a component reference from the component\r\n        const componentRef = this.componentFactoryResolver\r\n            .resolveComponentFactory(component)\r\n            .create(customInjector || this.injector);\r\n        // Add properties to the component\r\n        if (properties) {\r\n            Object.keys(properties).forEach((componentProp) => {\r\n                componentRef.instance[componentProp] = properties[componentProp];\r\n            });\r\n        }\r\n        // Attach component to the appRef so that it's inside the ng component tree\r\n        this.appRef.attachView(componentRef.hostView);\r\n        // Get DOM element from component\r\n        const domElem = componentRef.hostView.rootNodes[0];\r\n        const elementToAppend = appendTo || document.body;\r\n        if (!allowMultiplesInstances) {\r\n            const elementAlreadyAppended = Boolean(elementToAppend.getElementsByTagName(domElem.tagName).length);\r\n            if (elementAlreadyAppended) {\r\n                const duplicatedElement = elementToAppend.getElementsByTagName(domElem.tagName).item(0);\r\n                document.body.removeChild(duplicatedElement);\r\n            }\r\n        }\r\n        // Append Dom element\r\n        elementToAppend.appendChild(domElem);\r\n        return componentRef;\r\n    }\r\n    /**\r\n     * Remove a component from DOM tree\r\n     *\r\n     * @param componentRef The reference of the component which will be removed\r\n     */\r\n    removeComponentFromBody(componentRef) {\r\n        const domElem = componentRef.hostView.rootNodes[0];\r\n        if (document.body.contains(domElem)) {\r\n            document.body.removeChild(domElem);\r\n        }\r\n    }\r\n    /**\r\n     * Converts a Node type element to a HtmlElement type element\r\n     *\r\n     * @param node Node type element to be converted\r\n     * @return Node type element converted\r\n     */\r\n    convertNodeToHtmlElement(node) {\r\n        return node;\r\n    }\r\n    /**\r\n     * Delegates the subscription of any event and assign the subscription to a particulary domElement.\r\n     * Each Time the event is trigger, the handler function will be call\r\n     * Ex: delegate(domElement, \"focus\", \"input\", (focus) => console.log(focus))\r\n     *\r\n     * @param domElement The dom element. Ex: document\r\n     * @param eventType The event type. Ex.\"focus\"\r\n     * @param domElementType The dom element type. Ex. \"input\"\r\n     * @param author The handler function. Ex. (focus) => console.log(focus)\r\n     */\r\n    // eslint-disable-next-line @typescript-eslint/ban-types\r\n    delegate(domElement, eventType, domElementType, handler) {\r\n        domElement.eventListenerHandler = domElement.eventListenerHandler || {};\r\n        if (domElement.eventListenerHandler[domElementType]) {\r\n            domElement.removeEventListener(domElementType, domElement.eventListenerHandler[domElementType], eventType === 'focus');\r\n        }\r\n        domElement.eventListenerHandler[domElementType] = (event) => {\r\n            let t = event.target;\r\n            while (t && t !== this) {\r\n                if (t.matches && t.matches(domElementType)) {\r\n                    handler.call(t, event);\r\n                }\r\n                t = t.parentNode;\r\n            }\r\n        };\r\n        domElement.addEventListener(eventType, domElement.eventListenerHandler[domElementType], eventType === 'focus');\r\n    }\r\n    /**\r\n     * Find the ancestor dom element by given the start dom element and the dom element name (tag name) of the ancestor.\r\n     * Ex: findAncestorByDomElementName(element, \"div\", \"body\")\r\n     *\r\n     * @param element The dom element. Ex: document\r\n     * @param domElementName The dom element name that will be return if find it.\r\n     *                       Can in a regular expression format.\r\n     * @param stopInDomParentElementName The dom element name which the function will stop to looking at. In not defined,\r\n     * will stop at body element\r\n     * Can be in a regular expression format.\r\n     */\r\n    findAncestorByDomElementName(element, domElementName, stopInDomParentElementName = '') {\r\n        if (!element) {\r\n            return null;\r\n        }\r\n        if (element.nodeName) {\r\n            if (element.nodeName.toLowerCase().match(domElementName)) {\r\n                return element;\r\n            }\r\n            if (stopInDomParentElementName && element.nodeName.toLowerCase().match(stopInDomParentElementName)) {\r\n                return null;\r\n            }\r\n        }\r\n        return this.findAncestorByDomElementName(element.parentElement, domElementName, stopInDomParentElementName);\r\n    }\r\n    /**\r\n     * Finds elements using a css query (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors)\r\n     *\r\n     * @param query css query that allows to find the elements (more info https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors)\r\n     * @param parentElement parent element of the elements that the query will try to find it and put\r\n     * it as the root element of the search. If does not exists, will look in all elements of the document\r\n     * @return array of elements that matches with the query\r\n     */\r\n    findElementsByQuery(query, parentElement) {\r\n        let elements;\r\n        if (!parentElement) {\r\n            elements = document.querySelectorAll(query);\r\n        }\r\n        else {\r\n            elements = parentElement.querySelectorAll(query);\r\n        }\r\n        return this.convertNodeListOfToArrayHTMLElement(elements);\r\n    }\r\n    /**\r\n     * Finds an element using a css query (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).\r\n     * If more than one element is find, it will be return the first one.\r\n     * See the findElementsByCssQuery function of this class to get all elements.\r\n     *\r\n     * @param query css query that allows to find the element (more info https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors)\r\n     * @param parentElement parent element of the element that the query will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return element that matches with the query\r\n     */\r\n    findElementByQuery(query, parentElement) {\r\n        const arrayOfElements = this.findElementsByQuery(query, parentElement);\r\n        if (arrayOfElements.length === 0) {\r\n            return null;\r\n        }\r\n        return arrayOfElements[0];\r\n    }\r\n    /**\r\n     * Gets a HTML element base on is tag.\r\n     * If it's find more than one, return the first element found\r\n     *\r\n     * @param domName name of the dom element\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return Html element\r\n     */\r\n    findElementByDomName(domName, parentElement) {\r\n        return this.findElementByQuery(domName, parentElement);\r\n    }\r\n    /**\r\n     * Finds all elements which has some given attribute and value\r\n     *\r\n     * @param attributeName name of the attribute to looking for\r\n     * @param attributeValue value of the attribute to looking fo\r\n     * @param findOperation type of find operation that will be performed\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return elements that has the given attribute and value\r\n     */\r\n    findElementsByAttributeProperty(attributeName, attributeValue, findOperation = \"=\" /* DomFindOperation.Equals */, parentElement) {\r\n        attributeValue += '';\r\n        return this.findElementsByQuery(`[${attributeName}${findOperation}\"${attributeValue}\"]`, parentElement);\r\n    }\r\n    /**\r\n     * Finds the first found element which has some given attribute and value\r\n     *\r\n     * @param attributeName name of the attribute to looking for\r\n     * @param attributeValue value of the attribute to looking for\r\n     * @param findOperation type of find operation that will be performed\r\n     * @param parentElement parent element of the elements that the function will try to find it and put it\r\n     * as the root element of the search. If does not exists, will look in all elements of the document\r\n     * @return first found element that has the given attribute and value\r\n     */\r\n    findElementByAttributeProperty(attributeName, attributeValue, findOperation = \"=\" /* DomFindOperation.Equals */, parentElement) {\r\n        const elements = this.findElementsByAttributeProperty(attributeName, attributeValue, findOperation, parentElement);\r\n        if (elements.length === 0) {\r\n            return null;\r\n        }\r\n        return elements[0];\r\n    }\r\n    /**\r\n     * Finds all elements which has a given class\r\n     *\r\n     * @param className name of the class to looking for\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return elements that has the given class name\r\n     */\r\n    findElementsByClassName(className, parentElement) {\r\n        return this.findElementsByQuery(`.${className}`, parentElement);\r\n    }\r\n    /**\r\n     * Finds the first found element which has a given class\r\n     *\r\n     * @param className name of the class to looking for\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return first found element that has the given class name\r\n     */\r\n    findElementByClassName(className, parentElement) {\r\n        const elements = this.findElementsByClassName(className, parentElement);\r\n        if (elements.length === 0) {\r\n            return null;\r\n        }\r\n        return elements[0];\r\n    }\r\n    /**\r\n     * Finds all elements which has a given id\r\n     *\r\n     * @param id element identifier\r\n     * @param findOperation type of find operation that will be performed\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return elements that has the given id\r\n     */\r\n    findElementsById(id, findOperation = \"=\" /* DomFindOperation.Equals */, parentElement) {\r\n        return this.findElementsByAttributeProperty('id', id, findOperation, parentElement);\r\n    }\r\n    /**\r\n     * Finds the last found element which has a given id\r\n     *\r\n     * @param id name of the class to looking for\r\n     * @param findOperation type of find operation that will be performed\r\n     * @param parentElement parent element of the elements that the function will try to find it. If does not exists,\r\n     *                      will look in all elements of the document\r\n     * @return last found element that has the given id\r\n     */\r\n    findElementById(id, findOperation = \"=\" /* DomFindOperation.Equals */, parentElement) {\r\n        const elements = this.findElementsById(id, findOperation, parentElement);\r\n        if (elements.length === 0) {\r\n            return null;\r\n        }\r\n        return elements[elements.length - 1];\r\n    }\r\n    /**\r\n     * Get the coordinates of an element relative to the document\r\n     *\r\n     * @param element element to get the coordenites relative to the document\r\n     * @return coordinates of the element\r\n     */\r\n    getCoordinatesRelativeToDocument(element) {\r\n        const box = element.getBoundingClientRect();\r\n        const body = document.body;\r\n        const docEl = document.documentElement;\r\n        const scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;\r\n        const scrollLeft = window.pageXOffset || docEl.scrollLeft || body.scrollLeft;\r\n        const clientTop = docEl.clientTop || body.clientTop || 0;\r\n        const clientLeft = docEl.clientLeft || body.clientLeft || 0;\r\n        const top = box.top + scrollTop - clientTop;\r\n        const left = box.left + scrollLeft - clientLeft;\r\n        return new CoordinatesModel(Math.round(left), Math.round(top));\r\n    }\r\n    /**\r\n     * Scrolls to a particular set of coordinates in the document\r\n     *\r\n     * @param x: Is the pixel along the horizontal axis of the document that you want displayed in the upper left\r\n     * @param y: is the pixel along the vertical axis of the document that you want displayed in the upper left\r\n     * @param behavior sets the way that the scroll will be made\r\n     */\r\n    scrollToPosition(x, y, behavior) {\r\n        y = y < 0 ? 0 : y;\r\n        x = x < 0 ? 0 : x;\r\n        window.scrollTo({\r\n            top: y,\r\n            left: x,\r\n            behavior: !behavior ? \"auto\" /* ScrollBehaviorEnum.Auto */ : behavior\r\n        });\r\n    }\r\n    /**\r\n     * Scrolls a given element to the middle of the page.\r\n     *\r\n     * @param element HTML element that will be used as reference to be scroll to\r\n     * @param behavior sets the way that the scroll will be made\r\n     */\r\n    scrollToElement(element, behavior) {\r\n        const elementCoordenates = this.getCoordinatesRelativeToDocument(element);\r\n        const elementSize = this.getElementSize(element);\r\n        const nvarSize = this.getElementSizeByElementClassName('content-header');\r\n        if (!behavior) {\r\n            behavior = \"auto\" /* ScrollBehaviorEnum.Auto */;\r\n        }\r\n        /** The scroll will take in account the nvarsize and the element size to scroll the element to the center of the visible area */\r\n        const scrollTop = elementCoordenates.y - this.getScreenSize().height / 2 + nvarSize.height + elementSize.height / 2;\r\n        this.scrollToPosition(elementCoordenates.x, scrollTop, behavior);\r\n    }\r\n    /**\r\n     * Returns the body dom element\r\n     *\r\n     * @return body element\r\n     */\r\n    getBodyElement() {\r\n        return this.findElementByDomName('body');\r\n    }\r\n    /**\r\n     * Gets the size of an HTMLElement (paddings counts to element size, margins don't)\r\n     *\r\n     * @param element element which will be extract the size\r\n     * @return returns a model that contains the size\r\n     */\r\n    getElementSize(element) {\r\n        const size = new SizeModel();\r\n        if (!element) {\r\n            return size;\r\n        }\r\n        /**\r\n         * more info about getBoundingClientRect, check this link\r\n         * https://stackoverflow.com/questions/43537559/javascript-getboundingclientrect-vs-offsetheight-while-calculate-element-heigh\r\n         */\r\n        size.height = element.getBoundingClientRect().height;\r\n        size.width = element.getBoundingClientRect().width;\r\n        return size;\r\n    }\r\n    /**\r\n     * Gets the size of an HTMLElement by givin is className (paddings counts to element size, margins don't).\r\n     * If there is more than one element with the same className on the dom, it will be return the size of the first element found.\r\n     *\r\n     * @param className class name of the element which will be extract the size\r\n     * @return returns a model that contains the size\r\n     */\r\n    getElementSizeByElementClassName(className) {\r\n        const element = this.findElementByQuery(`.${className}`);\r\n        return this.getElementSize(element);\r\n    }\r\n    /**\r\n     * Gets the size of the body element. It is not the same as the visible area.\r\n     * (paddings counts to element size, margins don't)\r\n     *\r\n     * @return size of the body size in pixels\r\n     */\r\n    getBodySize() {\r\n        return this.getElementSize(this.getBodyElement());\r\n    }\r\n    /**\r\n     * Gets the screen size of the browser. Represents the visible area of the browser\r\n     *\r\n     * @return size of the screen in pixels\r\n     */\r\n    getScreenSize(withScrollSize = false) {\r\n        if (withScrollSize) {\r\n            return this.documentService.getSize();\r\n        }\r\n        else {\r\n            return new SizeModel(screen.width, screen.height);\r\n        }\r\n    }\r\n    /**\r\n     * This function will return all dom elements (childs, childs of the childs and so one) from a given element\r\n     *\r\n     * @param parentElement element which will be extract all dom elements\r\n     * @param domName name of the dom element\r\n     */\r\n    getAllChildElements(parentElement, domName = '') {\r\n        return this.getAllChildElementsRecursive(parentElement, new Array(), domName);\r\n    }\r\n    /**\r\n     * Put the scroll of the element at the bottom (at is maximum height)\r\n     *\r\n     * @param elementToScroll Element that will have the scroll at the bottom\r\n     */\r\n    scrollBottom(elementToScroll) {\r\n        if (elementToScroll) {\r\n            elementToScroll.scrollTop = elementToScroll.scrollHeight;\r\n        }\r\n    }\r\n    /**\r\n     * Converts a plain html (in string format) to a HtmlElement\r\n     *\r\n     * @param plainHtml html in string format\r\n     * @return returns the html string format converted\r\n     */\r\n    convertPlainHtmlToHtmlElement(plainHtml) {\r\n        const div = document.createElement('div');\r\n        div.innerHTML = plainHtml.trim();\r\n        return this.convertNodeToHtmlElement(div.firstChild);\r\n    }\r\n    /**\r\n     * Hides the scroll bar, but only the horizontal one, by setting the overflowY=\"hidden\"\r\n     */\r\n    hideBodyScrollBar() {\r\n        const body = this.getBodyElement();\r\n        body.style.overflowY = 'hidden';\r\n    }\r\n    /**\r\n     * Shows the scroll bar, but only the horizontal one, by setting the overflowY=\"auto\".\r\n     */\r\n    showBodyScrollBar() {\r\n        const body = this.getBodyElement();\r\n        body.style.overflowY = 'auto';\r\n    }\r\n    /**\r\n     * Scrolls a given element taking as reference a given child element\r\n     *\r\n     * @param elementScrollable Element that will be scrolled\r\n     * @param childElement Child element that will be taken as reference\r\n     */\r\n    scrollToChildElement(elementScrollable, childElement) {\r\n        let elementSize = 0;\r\n        const childrens = elementScrollable.children;\r\n        Object.keys(childrens).forEach((children) => (elementSize += childrens[children].clientWidth));\r\n        const scrollRatio = elementScrollable.scrollHeight / elementSize;\r\n        elementScrollable.scrollTop = childElement.offsetTop - childElement.clientWidth;\r\n    }\r\n    /**\r\n     * This function is responsible to help find all child element\r\n     *\r\n     * @param parentElement parent element which will be the start point to find the childs elements\r\n     * @param childElements child element already found\r\n     * @param domName name of the dom element\r\n     */\r\n    getAllChildElementsRecursive(parentElement, childElements, domName = '') {\r\n        if (!parentElement || !parentElement.children) {\r\n            return childElements;\r\n        }\r\n        const childNodes = parentElement.childNodes;\r\n        Object.keys(childNodes).forEach((node) => {\r\n            const child = childNodes[node];\r\n            if (!domName || domName.toLocaleLowerCase() === child.nodeName.toLocaleLowerCase()) {\r\n                childElements.push(child);\r\n            }\r\n            this.getAllChildElementsRecursive(child, childElements, domName);\r\n        });\r\n        return childElements;\r\n    }\r\n    /**\r\n     * Converts a list of Elements to a array of HTMLElements\r\n     *\r\n     * @param nodes List of Elements\r\n     * @returns array of HTMLElements\r\n     */\r\n    convertNodeListOfToArrayHTMLElement(nodes) {\r\n        const htmlElements = new Array();\r\n        if (!nodes) {\r\n            return htmlElements;\r\n        }\r\n        Object.keys(nodes).forEach((node) => htmlElements.push(nodes[node]));\r\n        return htmlElements;\r\n    }\r\n}\r\nDomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomService, deps: [{ token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: DocumentService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DomService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: DocumentService }]; } });\n\n/**\r\n * Service responsible to handles all operations that are about\r\n * the diferente devices that users could use\r\n */\r\nclass DeviceService {\r\n    /**\r\n     * Constructs the device service\r\n     *\r\n     * @param domService Service responsible to interact with DOM\r\n     */\r\n    constructor(domService) {\r\n        this.domService = domService;\r\n    }\r\n    /**\r\n     * Gets the device that the user is using\r\n     *\r\n     * @return Enums all devices suported by the application\r\n     */\r\n    getDevice() {\r\n        const size = this.domService.getBodySize();\r\n        if (size.width <= 600) {\r\n            return \"ExtraSmallDevices\" /* DevicesEnum.ExtraSmallDevices */;\r\n        }\r\n        if (size.width <= 768) {\r\n            return \"SmallDevices\" /* DevicesEnum.SmallDevices */;\r\n        }\r\n        if (size.width <= 991) {\r\n            return \"MediumDevices\" /* DevicesEnum.MediumDevices */;\r\n        }\r\n        if (size.width <= 1200) {\r\n            return \"LargeDevices\" /* DevicesEnum.LargeDevices */;\r\n        }\r\n        return \"ExtraLargeDevices\" /* DevicesEnum.ExtraLargeDevices */;\r\n    }\r\n    /**\r\n     * Gets the device that the user is using in a detail form\r\n     *\r\n     * @return Enums all devices suported by the application in a detailed form\r\n     */\r\n    getDetailedDevice() {\r\n        const size = this.domService.getBodySize();\r\n        if (size.width <= 300) {\r\n            return \"SmallestDevices\" /* DetailedDeviceEnum.SmallestDevices */;\r\n        }\r\n        if (size.width <= 600) {\r\n            return \"ExtraSmallDevices\" /* DetailedDeviceEnum.ExtraSmallDevices */;\r\n        }\r\n        if (size.width <= 683) {\r\n            return \"SmallDevices\" /* DetailedDeviceEnum.SmallDevices */;\r\n        }\r\n        if (size.width <= 767) {\r\n            return \"AlmostMediumDevices\" /* DetailedDeviceEnum.AlmostMediumDevices */;\r\n        }\r\n        if (size.width <= 882) {\r\n            return \"MediumDevices\" /* DetailedDeviceEnum.MediumDevices */;\r\n        }\r\n        if (size.width <= 991) {\r\n            return \"AlmostLargeDevice\" /* DetailedDeviceEnum.AlmostLargeDevices */;\r\n        }\r\n        if (size.width <= 1199) {\r\n            return \"LargeDevices\" /* DetailedDeviceEnum.LargeDevices */;\r\n        }\r\n        if (size.width <= 1999) {\r\n            return \"ExtraLargeDevices\" /* DetailedDeviceEnum.ExtraLargeDevices */;\r\n        }\r\n        return \"BiggestDevices\" /* DetailedDeviceEnum.BiggestDevices */;\r\n    }\r\n    /**\r\n     * Allows to know if the browser is a mobile one\r\n     * Note: Base on this post https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser\r\n     */\r\n    isMobileBrowser() {\r\n        let check = false;\r\n        ((a) => {\r\n            if (\r\n            // eslint-disable-next-line max-len\r\n            /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) ||\r\n                // eslint-disable-next-line max-len\r\n                /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) {\r\n                check = true;\r\n            }\r\n        })(navigator.userAgent || navigator.vendor);\r\n        return check;\r\n    }\r\n    /**\r\n     * Checks if the user is using the app in a mobile device.\r\n     *\r\n     * @returns true if is mobile device; false otherwise\r\n     */\r\n    isMobileDevice() {\r\n        const devicesEnum = this.getDevice();\r\n        return (this.isMobileBrowser() ||\r\n            devicesEnum === \"ExtraSmallDevices\" /* DevicesEnum.ExtraSmallDevices */ ||\r\n            devicesEnum === \"SmallDevices\" /* DevicesEnum.SmallDevices */);\r\n    }\r\n}\r\nDeviceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DeviceService, deps: [{ token: DomService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDeviceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DeviceService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DeviceService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: DomService }]; } });\n\nclass ElectronicCertificateService {\r\n    constructor(appContextService, httpClient) {\r\n        this.appContextService = appContextService;\r\n        this.httpClient = httpClient;\r\n    }\r\n    async getElectronicCertificateStatusByCompany() {\r\n        // eslint-disable-next-line max-len\r\n        const url = `/app/reporting/electronicCertificates/getElectronicCertificateStatusByCompany/${this.appContextService.getCurrentCompanyId()}`;\r\n        const result = await this.httpClient.get(url).toPromise();\r\n        return result || 'Inactive';\r\n    }\r\n}\r\nElectronicCertificateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ElectronicCertificateService, deps: [{ token: AppContextService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nElectronicCertificateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ElectronicCertificateService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ElectronicCertificateService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: i1.HttpClient }]; } });\n\nclass EventService {\r\n    constructor() {\r\n        this.event = new Subject();\r\n    }\r\n    onEvent(event) {\r\n        this.event.next(event);\r\n    }\r\n    onFormEvent(key, event) {\r\n        event.key = key;\r\n        this.event.next(event);\r\n    }\r\n    getOnEvent() {\r\n        return this.event.asObservable();\r\n    }\r\n    getOnFormEvent() {\r\n        return this.event.asObservable();\r\n    }\r\n}\r\nEventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nEventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: EventService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }] });\r\nclass FormEvent {\r\n    constructor(key, model, formState, operationInfo, eventContext) {\r\n        this.data = [];\r\n        // response\r\n        this.response = new FormEventResponse();\r\n        this.key = key;\r\n        this.model = model;\r\n        this.formState = formState;\r\n        this.operationInfo = operationInfo;\r\n        this.eventContext = eventContext;\r\n    }\r\n    setValue(key, value) {\r\n        this.data.push({ key, value });\r\n    }\r\n    getValue(key) {\r\n        const result = this.data.find((o) => o.key === key);\r\n        if (result) {\r\n            return result.value;\r\n        }\r\n        else {\r\n            return undefined;\r\n        }\r\n    }\r\n}\r\nclass FormEventResponse {\r\n}\r\nclass FormEventOperation {\r\n    constructor(module, service, operation, entity = undefined) {\r\n        this.service = service;\r\n        this.module = module;\r\n        this.operation = operation;\r\n        this.entity = entity;\r\n    }\r\n}\n\nclass ExternalScriptsService {\r\n    constructor(deployUrl) {\r\n        this.scripts = {};\r\n        this.deployUrl = deployUrl;\r\n    }\r\n    registerScripts(externalScripts) {\r\n        externalScripts.forEach((script) => {\r\n            if (this.scripts[script.name] === undefined) {\r\n                this.scripts[script.name] = {\r\n                    loaded: false,\r\n                    src: script.src.startsWith('http') ? script.src : this.deployUrl + script.src\r\n                };\r\n            }\r\n        });\r\n    }\r\n    load(...scripts) {\r\n        const promises = [];\r\n        scripts.forEach((script) => promises.push(this.loadScript(script)));\r\n        return Promise.all(promises);\r\n    }\r\n    loadScript(name) {\r\n        return new Promise((resolve, reject) => {\r\n            // resolve if already loaded\r\n            if (this.scripts[name].loaded) {\r\n                resolve({ script: name, loaded: true, status: 'Already Loaded' });\r\n            }\r\n            else {\r\n                // load script\r\n                const script = document.createElement('script');\r\n                script.type = 'text/javascript';\r\n                script.src = this.scripts[name].src;\r\n                if (script.readyState) {\r\n                    // IE\r\n                    script.onreadystatechange = () => {\r\n                        if (script.readyState === 'loaded' || script.readyState === 'complete') {\r\n                            script.onreadystatechange = null;\r\n                            this.scripts[name].loaded = true;\r\n                            resolve({ script: name, loaded: true, status: 'Loaded' });\r\n                        }\r\n                    };\r\n                }\r\n                else {\r\n                    // Others\r\n                    script.onload = () => {\r\n                        this.scripts[name].loaded = true;\r\n                        resolve({ script: name, loaded: true, status: 'Loaded' });\r\n                    };\r\n                }\r\n                script.onerror = (error) => resolve({ script: name, loaded: false, status: 'Loaded' });\r\n                document.getElementsByTagName('head')[0].appendChild(script);\r\n            }\r\n        });\r\n    }\r\n}\r\nExternalScriptsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExternalScriptsService, deps: [{ token: DEPLOY_URL }], target: i0.ɵɵFactoryTarget.Injectable });\r\nExternalScriptsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExternalScriptsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ExternalScriptsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [DEPLOY_URL]\r\n                }] }]; } });\n\nclass FormModelService {\r\n    constructor() {\r\n        this.modelChangeEvent = new Subject();\r\n        this.formFieldsChangeEvent = new Subject();\r\n    }\r\n    onModelChange(model) {\r\n        this.modelChangeEvent.next(model);\r\n    }\r\n    getOnModelChanged() {\r\n        return this.modelChangeEvent.asObservable();\r\n    }\r\n    onFormFieldsChange(fields) {\r\n        this.formFieldsChangeEvent.next(fields);\r\n    }\r\n    getOnFormFieldsChanged() {\r\n        return this.formFieldsChangeEvent.asObservable();\r\n    }\r\n}\r\nFormModelService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormModelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nFormModelService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormModelService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FormModelService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass HotkeysService {\r\n    constructor(windowService) {\r\n        this.windowService = windowService;\r\n        this._lastPressedKeyCode = null;\r\n        this._hotkeys = [];\r\n        this._hotkeysDefinitions = {};\r\n        this._onWindowKeyDown = (e) => {\r\n            this.keyDown(e);\r\n        };\r\n        this._onWindowKeyUp = (e) => {\r\n            this.keyUp(e);\r\n        };\r\n        this.windowService.window.addEventListener('keydown', this._onWindowKeyDown);\r\n        this.windowService.window.addEventListener('keyup', this._onWindowKeyUp);\r\n    }\r\n    ngOnDestroy() {\r\n        this.windowService.window.removeEventListener('keydown', this._onWindowKeyDown);\r\n        this.windowService.window.removeEventListener('keyup', this._onWindowKeyUp);\r\n    }\r\n    addHotkeys(hotkeysDefintions) {\r\n        const subscriptionKey = `${Math.floor((Math.random() * 100000000000000000))}`;\r\n        for (const hotkeyDefinition of hotkeysDefintions) {\r\n            const hotkeyString = hotkeyDefinition.hotkey.join('.');\r\n            if (!this._hotkeysDefinitions[hotkeyString]) {\r\n                this._hotkeysDefinitions[hotkeyString] = [];\r\n            }\r\n            this._hotkeysDefinitions[hotkeyString].push({\r\n                subscriptionKey,\r\n                action: hotkeyDefinition.action\r\n            });\r\n        }\r\n        this._hotkeys = this.buildHotkeysList(this._hotkeysDefinitions);\r\n        return () => {\r\n            this.removeHotkey(subscriptionKey, this._hotkeysDefinitions);\r\n        };\r\n    }\r\n    keyDown(e) {\r\n        if (e.keyCode === this._lastPressedKeyCode) {\r\n            return;\r\n        }\r\n        this._lastPressedKeyCode = e.keyCode;\r\n        // All hotkeys must start with Ctrl, Ctrl+Alt or be only Esc(27)\r\n        if (!e.ctrlKey && !e.altKey && e.keyCode !== 27) {\r\n            return;\r\n        }\r\n        const keys = [];\r\n        if (e.ctrlKey) {\r\n            keys.push(17);\r\n        }\r\n        if (e.altKey) {\r\n            keys.push(18);\r\n        }\r\n        keys.push(e.keyCode);\r\n        const hotKeys = keys.join('.');\r\n        if (this._hotkeys.indexOf(hotKeys) >= 0) {\r\n            const actions = this._hotkeysDefinitions[hotKeys];\r\n            if (actions && actions.length > 0) {\r\n                const action = actions[actions.length - 1];\r\n                if (action && action.action) {\r\n                    const focusedElement = document.activeElement;\r\n                    if (focusedElement) {\r\n                        focusedElement.blur();\r\n                    }\r\n                    setTimeout(() => {\r\n                        action.action(e);\r\n                        e.stopPropagation();\r\n                        e.stopImmediatePropagation();\r\n                        e.preventDefault();\r\n                    });\r\n                }\r\n            }\r\n        }\r\n    }\r\n    keyUp(e) {\r\n        this._lastPressedKeyCode = null;\r\n    }\r\n    removeHotkey(subscriptionKey, hotkeysDefinitions) {\r\n        for (const hotKey in hotkeysDefinitions) {\r\n            if (hotkeysDefinitions.hasOwnProperty(hotKey)) {\r\n                const hotKeyActionsDefinitions = hotkeysDefinitions[hotKey];\r\n                for (let i = hotKeyActionsDefinitions.length - 1; i >= 0; i--) {\r\n                    if (hotKeyActionsDefinitions[i].subscriptionKey === subscriptionKey) {\r\n                        hotKeyActionsDefinitions.splice(i, 1);\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        this._hotkeys = this.buildHotkeysList(this._hotkeysDefinitions);\r\n    }\r\n    buildHotkeysList(hotkeysDefinitions) {\r\n        const hotkeys = [];\r\n        for (const hotKey in hotkeysDefinitions) {\r\n            if (hotkeysDefinitions[hotKey].length > 0) {\r\n                hotkeys.push(hotKey);\r\n            }\r\n        }\r\n        return hotkeys;\r\n    }\r\n}\r\nHotkeysService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HotkeysService, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nHotkeysService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HotkeysService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: HotkeysService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: WindowService }]; } });\n\n/**\r\n * Service responsible to handle image related logic.\r\n */\r\nclass ImageService {\r\n    constructor(http, settingsService) {\r\n        this.http = http;\r\n        this.settingsService = settingsService;\r\n    }\r\n    /**\r\n     * Gets image blob url\r\n     *\r\n     * @param url The image url.\r\n     * @returns The blob image url.\r\n     */\r\n    async getImageBlob(url) {\r\n        // There is no need for dataUrl's or blobUrl's be injected the authorization token.\r\n        if (!url ||\r\n            url.startsWith('data:') ||\r\n            url.startsWith('blob:') ||\r\n            (url.startsWith('http') && url.indexOf(this.settingsService.serverApiUrl) === -1)) {\r\n            return url;\r\n        }\r\n        else {\r\n            // For all urls that does not starts with http, the server api\r\n            // url will be added at the beginning.\r\n            const isElevation = await this.settingsService.isElevationFW();\r\n            if (isElevation) {\r\n                if (!url.toLowerCase().startsWith('http')) {\r\n                    url = `${this.trimSlashes(this.settingsService.serverApiUrl)}/app/${this.trimSlashes(url)}`;\r\n                }\r\n                const response = await this.getImage(url).toPromise();\r\n                return URL.createObjectURL(response);\r\n            }\r\n            else {\r\n                return url;\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * Gets an image.\r\n     *\r\n     * @param url The image url.\r\n     * @returns The image.\r\n     */\r\n    getImage(url) {\r\n        return this.http.get(url, { responseType: 'blob' });\r\n    }\r\n    trimSlashes(str) {\r\n        if (str.startsWith('/') || str.startsWith('\\\\')) {\r\n            str = str.substring(1);\r\n        }\r\n        if (str.endsWith('/') || str.endsWith('\\\\')) {\r\n            str = str.slice(0, -1);\r\n        }\r\n        return str;\r\n    }\r\n}\r\nImageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageService, deps: [{ token: i1.HttpClient }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nImageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ImageService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: SettingsService }]; } });\n\nclass PendingRequestsService {\r\n    constructor() {\r\n        this.pendingRequest = 0;\r\n        this.pendingSelectedFields = [];\r\n        this.readingSelectedFields = [];\r\n        this.pendingServicesCount = new Subject();\r\n    }\r\n    registerPendingRequest() {\r\n        this.pendingRequest++;\r\n        this.pendingServicesCount.next(this.pendingRequest);\r\n    }\r\n    onPendingRequestCompleted() {\r\n        if (this.pendingRequest > 0) {\r\n            this.pendingRequest--;\r\n            this.pendingServicesCount.next(this.pendingRequest);\r\n        }\r\n    }\r\n    clearPendingRequests() {\r\n        this.pendingRequest = 0;\r\n        this.pendingServicesCount.next(this.pendingRequest);\r\n    }\r\n    getPendingRequestsCount() {\r\n        return this.pendingServicesCount.asObservable();\r\n    }\r\n    addSelectedFieldRequests(object) {\r\n        const index = this.pendingSelectedFields.findIndex(value => value.model.id === object.model.id &&\r\n            value.propertyName === object.propertyName);\r\n        if (index === -1) {\r\n            this.pendingSelectedFields.push(object);\r\n        }\r\n        else {\r\n            this.pendingSelectedFields.splice(index, 1);\r\n        }\r\n    }\r\n    getSelectedFields(propertyName) {\r\n        if (this.pendingSelectedFields.length === 0) {\r\n            return [];\r\n        }\r\n        if (!propertyName) {\r\n            propertyName = this.pendingSelectedFields[0].propertyName;\r\n        }\r\n        this.readingSelectedFields = this.pendingSelectedFields.filter(o => o.propertyName === propertyName);\r\n        this.pendingSelectedFields = this.pendingSelectedFields.filter(o => o.propertyName !== propertyName);\r\n        this.readingSelectedFields.sort((a, b) => (a.model.selected === b.model.selected) ? 0 : a.model.selected ? -1 : 1);\r\n        return this.readingSelectedFields.map(data => {\r\n            data.model.selected = !data.value;\r\n            return data.model;\r\n        });\r\n    }\r\n}\r\nPendingRequestsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PendingRequestsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nPendingRequestsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PendingRequestsService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PendingRequestsService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass ProductInitialization {\r\n    constructor(routeHelperService, router, amsService) {\r\n        this.routeHelperService = routeHelperService;\r\n        this.router = router;\r\n        this.amsService = amsService;\r\n    }\r\n    requiresInitialization() {\r\n        return this.initializationUri && this.initializationUri.length > 0 ? true : false;\r\n    }\r\n    requiresLoadViewFromInitialization() {\r\n        const routeParameters = this.routeHelperService.getParametersFromUri();\r\n        return routeParameters['fromProductInitialization'] ? true : false;\r\n    }\r\n    /**\r\n     * Navigates to the initialization popup.\r\n     */\r\n    navigateToInitializationPopup() {\r\n        const routeParameters = this.routeHelperService.getParametersFromUri();\r\n        if (!routeParameters['fromProductInitialization']) {\r\n            this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, this.initializationUri, { fromProductInitialization: true }, \"popup\" /* OutletEnum.Popup */);\r\n        }\r\n    }\r\n}\r\nProductInitialization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ProductInitialization, deps: [{ token: RouteHelperService }, { token: i6.Router }, { token: AmsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nProductInitialization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ProductInitialization });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ProductInitialization, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: RouteHelperService }, { type: i6.Router }, { type: AmsService }]; } });\n\nclass SequentialRequest {\r\n    constructor() {\r\n        this.queue = [];\r\n    }\r\n    /** Call this method to add your http request to queue */\r\n    invoke(observable) {\r\n        return this.addRequestToQueue(observable);\r\n    }\r\n    execute(requestData) {\r\n        requestData.observable.subscribe({\r\n            next: (res) => {\r\n                requestData.subscription.next(res);\r\n                this.queue.shift();\r\n                this.startNextRequest();\r\n            },\r\n            error: (error) => {\r\n                requestData.subscription.next(error);\r\n                this.queue.shift();\r\n                this.startNextRequest();\r\n            }\r\n        });\r\n    }\r\n    addRequestToQueue(observable) {\r\n        const sub = new Subject();\r\n        const request = {\r\n            observable,\r\n            subscription: sub\r\n        };\r\n        this.queue.push(request);\r\n        if (this.queue.length === 1) {\r\n            this.startNextRequest();\r\n        }\r\n        return sub;\r\n    }\r\n    startNextRequest() {\r\n        // get next request, if any.\r\n        if (this.queue.length > 0) {\r\n            this.execute(this.queue[0]);\r\n        }\r\n    }\r\n}\r\nSequentialRequest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SequentialRequest, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nSequentialRequest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SequentialRequest });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SequentialRequest, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Responsible to manager the shell state\r\n */\r\nclass ShellStateService {\r\n    /**\r\n     * Constructs the service\r\n     */\r\n    constructor() {\r\n        /** Loading state of the shell */\r\n        this.isLoadingState = false;\r\n        /** Lock view content */\r\n        this.lockViewContent = false;\r\n    }\r\n    /**\r\n     * sets the loading state of the shell\r\n     *\r\n     * @param value\r\n     */\r\n    setLoadingState(value) {\r\n        setTimeout(() => {\r\n            this.isLoadingState = value;\r\n        });\r\n    }\r\n    /**\r\n     * sets the loading state of the shell\r\n     *\r\n     * @param value\r\n     */\r\n    setlockViewContent(value) {\r\n        setTimeout(() => {\r\n            this.lockViewContent = value;\r\n        });\r\n    }\r\n}\r\nShellStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nShellStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellStateService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellStateService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root',\r\n                }]\r\n        }], ctorParameters: function () { return []; } });\n\n/**\r\n * Defines all of the errors of a signalR connection\r\n */\r\n// eslint-disable-next-line no-shadow\r\nvar SignalRStateEnum;\r\n(function (SignalRStateEnum) {\r\n    SignalRStateEnum[SignalRStateEnum[\"connectError\"] = 0] = \"connectError\";\r\n    SignalRStateEnum[SignalRStateEnum[\"registerError\"] = 1] = \"registerError\";\r\n    SignalRStateEnum[SignalRStateEnum[\"getNotificationError\"] = 2] = \"getNotificationError\";\r\n    SignalRStateEnum[SignalRStateEnum[\"disposedError\"] = 3] = \"disposedError\";\r\n    SignalRStateEnum[SignalRStateEnum[\"connectionClose\"] = 4] = \"connectionClose\";\r\n    SignalRStateEnum[SignalRStateEnum[\"reconnecting\"] = 5] = \"reconnecting\";\r\n    SignalRStateEnum[SignalRStateEnum[\"reconnected\"] = 6] = \"reconnected\";\r\n})(SignalRStateEnum || (SignalRStateEnum = {}));\n\nclass SignalRService {\r\n    constructor(identityService) {\r\n        this.identityService = identityService;\r\n        /** Will be triggered on new notification */\r\n        this.notification = new EventEmitter();\r\n        /** Will be triggered when the connection is completed */\r\n        this.connectionComplete = new EventEmitter();\r\n        /** Will be triggered when the notification is disposed */\r\n        this.disposedComplete = new EventEmitter();\r\n        /** Will be triggered when the get all notifications is completed */\r\n        this.getNotificationsComplete = new EventEmitter();\r\n        /** Will be triggered on error */\r\n        this.signalRStatus = new EventEmitter();\r\n    }\r\n    /**\r\n     * Initialize the signalR Connection\r\n     *\r\n     * @param contextData the connection data.\r\n     */\r\n    init(contextData, signalRUrl) {\r\n        this.groups = contextData;\r\n        this.connectContextId = undefined;\r\n        this.hubMessageConnection = undefined;\r\n        this.configureSignalR(signalRUrl);\r\n        this.connectSignalR();\r\n    }\r\n    /**\r\n     * Get notifications for specific groups\r\n     *\r\n     * @param groups The groups\r\n     */\r\n    getNotificationsByGroup(groups) {\r\n        this.getNotifications(groups);\r\n    }\r\n    /**\r\n     * Get notifications for all groups\r\n     */\r\n    getAllNotifications() {\r\n        this.getNotifications(this.groups);\r\n    }\r\n    /**\r\n     * Dispose one notification\r\n     *\r\n     * @param disposed The notification information\r\n     */\r\n    disposedNotification(disposed) {\r\n        this.hubMessageConnection.invoke('DisposeNotificationsAsync', disposed)\r\n            .then(() => {\r\n            this.disposedComplete.emit(disposed);\r\n        })\r\n            .catch((ex) => {\r\n            this.signalRStatus.emit(SignalRStateEnum.disposedError);\r\n        });\r\n    }\r\n    /**\r\n     * Configure signalR events\r\n     */\r\n    configureSignalR(signalRUrl) {\r\n        this.hubMessageConnection = new signalR.HubConnectionBuilder()\r\n            .configureLogging(signalR.LogLevel.Error).withUrl(signalRUrl + '/notifications', {\r\n            accessTokenFactory: () => this.identityService.getToken()\r\n        })\r\n            .withAutomaticReconnect()\r\n            .build();\r\n        this.hubMessageConnection.onclose(() => {\r\n            this.connectionClose();\r\n        });\r\n        this.hubMessageConnection.on('BroadcastMessageAsync', (data) => {\r\n            this.newNotification(data);\r\n        });\r\n        this.hubMessageConnection.onreconnecting(() => {\r\n            this.signalRStatus.emit(SignalRStateEnum.reconnecting);\r\n        });\r\n        this.hubMessageConnection.onreconnected(() => {\r\n            this.signalRStatus.emit(SignalRStateEnum.reconnected);\r\n            this.registerApplication();\r\n        });\r\n    }\r\n    /**\r\n     * Connect signalR\r\n     */\r\n    async connectSignalR() {\r\n        await this.hubMessageConnection.start()\r\n            .then(() => {\r\n            // Register application\r\n            this.registerApplication();\r\n        }).catch(() => {\r\n            this.signalRStatus.emit(SignalRStateEnum.connectError);\r\n        });\r\n    }\r\n    /**\r\n     * Register application on signalR\r\n     */\r\n    async registerApplication() {\r\n        // invoke server side method to pass AppContext data.\r\n        await this.hubMessageConnection.invoke('RegisterApplicationGroupsAsync', this.groups)\r\n            .then((connectionId) => {\r\n            this.connectContextId = connectionId;\r\n            this.connectionComplete.emit();\r\n        }).catch(() => {\r\n            this.signalRStatus.emit(SignalRStateEnum.registerError);\r\n        });\r\n    }\r\n    /**\r\n     * Get notifications for respective groups\r\n     *\r\n     * @param groups The groups\r\n     */\r\n    async getNotifications(groups) {\r\n        await this.hubMessageConnection.invoke('GetNotificationsAsync', groups)\r\n            .then(() => {\r\n            this.notificationsComplete = true;\r\n            this.getNotificationsComplete.emit();\r\n        })\r\n            .catch(() => {\r\n            this.signalRStatus.emit(SignalRStateEnum.getNotificationError);\r\n        });\r\n    }\r\n    /**\r\n     * Call when connection close\r\n     */\r\n    connectionClose() {\r\n        this.signalRStatus.emit(SignalRStateEnum.connectionClose);\r\n    }\r\n    /**\r\n     * On new notification\r\n     *\r\n     * @param notification The notification\r\n     */\r\n    newNotification(notification) {\r\n        this.notification.emit(notification);\r\n    }\r\n}\r\nSignalRService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRService, deps: [{ token: IdentityService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nSignalRService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SignalRService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root',\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: IdentityService }]; }, propDecorators: { notification: [{\r\n                type: Output\r\n            }], connectionComplete: [{\r\n                type: Output\r\n            }], disposedComplete: [{\r\n                type: Output\r\n            }], getNotificationsComplete: [{\r\n                type: Output\r\n            }], signalRStatus: [{\r\n                type: Output\r\n            }] } });\n\nclass TaskModel {\r\n    constructor() {\r\n        this.value = undefined;\r\n        this.detailId = undefined;\r\n        this.detailAttribute = undefined;\r\n        this.isActive = true;\r\n    }\r\n}\n\nclass TaskService {\r\n    /**\r\n     * Construct the TaskService\r\n     */\r\n    constructor(storageService, cacheHelperService) {\r\n        this.storageService = storageService;\r\n        this.cacheHelperService = cacheHelperService;\r\n        /** Prefix of the cache identifier */\r\n        this.prefix = 'task_service';\r\n    }\r\n    /**\r\n     *\r\n     * @param key Unique id that will represent the task\r\n     * @param id Draft id\r\n     * @param attribute key of the dom element associated with this task\r\n     * @param type\r\n     * @param definition\r\n     * @param outlet Holds the angular oultet which is associated with the pending task.\r\n     * @param value\r\n     * @param detailId\r\n     * @param detailAttribute\r\n     */\r\n    registerPendingTask(key, id, attribute, type, definition, outlet = \"primary\" /* OutletEnum.Primary */, isSaveAndReturn, value = undefined, detailId = undefined, detailAttribute = undefined, defaultExtension = undefined, allowSameIDsFirstTimeRegisterTask = false) {\r\n        const task = new TaskModel();\r\n        task.attribute = attribute;\r\n        task.id = id;\r\n        task.allowSameIDsFirstTimeRegisterTask = allowSameIDsFirstTimeRegisterTask;\r\n        task.type = type;\r\n        task.detailId = detailId;\r\n        task.detailAttribute = detailAttribute;\r\n        task.value = value;\r\n        task.definition = definition;\r\n        task.outlet = outlet;\r\n        task.isSaveAndReturn = isSaveAndReturn;\r\n        task.defaultExtension = defaultExtension;\r\n        this.cacheTask(key, task);\r\n    }\r\n    /**\r\n     * Gets the pending task\r\n     *\r\n     * @param key key of the task\r\n     * @return return a task\r\n     */\r\n    getPendingTask(key) {\r\n        return this.getTask(key);\r\n    }\r\n    removePendingTask(key) {\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, key]);\r\n        this.storageService.sessionRemove(cacheKey);\r\n    }\r\n    disablePendingTask(key) {\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, key]);\r\n        const obj = this.storageService.sessionGet(cacheKey);\r\n        if (obj) {\r\n            JSON.parse(obj).isActive = false;\r\n            this.storageService.sessionSet(cacheKey, JSON.stringify(obj));\r\n        }\r\n    }\r\n    /**\r\n     * Responsible to cache a given pending task\r\n     *\r\n     * @param key key of the task\r\n     * @param pendingTask object that represents the cache\r\n     */\r\n    cacheTask(key, pendingTask) {\r\n        if (pendingTask && key) {\r\n            const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, key]);\r\n            this.storageService.sessionSet(cacheKey, JSON.stringify(pendingTask));\r\n        }\r\n    }\r\n    /**\r\n     * Get the task cached\r\n     *\r\n     * @param key key of the task\r\n     * @return returns the task\r\n     */\r\n    getTask(key) {\r\n        if (key) {\r\n            const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, key]);\r\n            const obj = this.storageService.sessionGet(cacheKey);\r\n            if (obj) {\r\n                return JSON.parse(obj);\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n}\r\nTaskService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TaskService, deps: [{ token: StorageService }, { token: CacheHelperService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nTaskService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TaskService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TaskService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: StorageService }, { type: CacheHelperService }]; } });\n\nclass UpgradeApplicationBaseService {\r\n}\n\nclass UpgradeApplicationService extends UpgradeApplicationBaseService {\r\n    /**\r\n     * Constructs the application\r\n     *\r\n     * @param httpClient Service responsible to manage http communications\r\n     */\r\n    constructor(httpClient) {\r\n        super();\r\n        this.httpClient = httpClient;\r\n    }\r\n    /** Check if the application needs to update */\r\n    async upgradeApplication() {\r\n        return await this.httpClient\r\n            .post('/app/operations/upgradeVersions/upgradeApplication', null)\r\n            .toPromise();\r\n    }\r\n    /** Check the status of upgrade */\r\n    async checkApplicationUpgradesStatus() {\r\n        return await this.httpClient\r\n            .get('/app/operations/upgradeVersions/checkUpgradeStatus')\r\n            .toPromise();\r\n    }\r\n}\r\nUpgradeApplicationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UpgradeApplicationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nUpgradeApplicationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UpgradeApplicationService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UpgradeApplicationService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });\n\n/*\r\n* Class that represents a state of the view\r\n*/\r\nclass ViewState {\r\n    /**\r\n     * Id of the draft that the view state is associated with\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param domElementId DOM Id element which the view is focus\r\n     * @param openedExpanders List of expanders that are open\r\n     * @param extensionId Extension Id that is visible\r\n     * @param gridLineIndex Index line in case of the dom Element is inside of a grid\r\n     * @param gridId Identifier of the grid\r\n     */\r\n    constructor(draftId, domElementId = '', openedExpanders = new Array(), extensionId = '', gridLineIndex = -1, gridId = '') {\r\n        this.domElementId = domElementId;\r\n        this.draftId = draftId;\r\n        this.extensionId = extensionId;\r\n        this.gridLineIndex = gridLineIndex;\r\n        this.gridId = gridId;\r\n        if (openedExpanders) {\r\n            this.openedExpanders = openedExpanders;\r\n        }\r\n        else {\r\n            this.openedExpanders = new Array();\r\n        }\r\n    }\r\n    /**\r\n     * Verifies if two view states are equal\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     * @param fullEquals if true, instead of comparing only the draftId, compares all the fields\r\n     * @return true/false it case of the two view states are equal or not\r\n     */\r\n    equals(viewState, fullEquals = false) {\r\n        if (!fullEquals) {\r\n            return viewState && this.draftId === viewState.draftId;\r\n        }\r\n        return viewState &&\r\n            this.draftId === viewState.draftId &&\r\n            this.domElementId === viewState.domElementId &&\r\n            this.extensionId === viewState.extensionId &&\r\n            this.gridId === viewState.gridId &&\r\n            this.gridLineIndex === viewState.gridLineIndex &&\r\n            this.compare(this.openedExpanders, viewState.openedExpanders);\r\n    }\r\n    /**\r\n     * Verifies if two view states are not equal\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     * @param fullEquals if true, instead of comparing only the draftId, compares all the fields\r\n     * @return true/false it case of the two view states are equal or not\r\n     */\r\n    notEquals(viewState, fullEquals = false) {\r\n        return !this.equals(viewState, fullEquals);\r\n    }\r\n    /**\r\n     * Removes an expander by it's Id\r\n     *\r\n     * @param expanderID Id of the expander\r\n     */\r\n    removeOpenedExpander(expanderId) {\r\n        this.openedExpanders = this.openedExpanders.filter(exId => exId !== expanderId);\r\n    }\r\n    /**\r\n     * Adds an expander by it's Id\r\n     *\r\n     * @param expanderID Id of the expander\r\n     */\r\n    addOpenedExpander(expanderID) {\r\n        if (expanderID) {\r\n            this.removeOpenedExpander(expanderID);\r\n            this.openedExpanders.push(expanderID);\r\n        }\r\n    }\r\n    /**\r\n     * Verifies if the expander is opened.\r\n     *\r\n     * @param expanderID Id of the expander\r\n     * @return true/false meaning if it is open or not.\r\n     */\r\n    isExpanderOpened(expanderID) {\r\n        return this.openedExpanders.find(id => id === expanderID) !== undefined;\r\n    }\r\n    compare(array1, array2) {\r\n        if (!array1 || !array2 || array1.length !== array2.length) {\r\n            return false;\r\n        }\r\n        for (let i = 0; i < array1.length; i++) {\r\n            if (array1[i] !== array2[i]) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n}\n\n/**\r\n * Class resposible to help the manipulation of a view state stack\r\n */\r\nclass ViewStateStack {\r\n    /**\r\n     * Constructs the ViewStateStack\r\n     */\r\n    constructor() {\r\n        /** Stack of view states*/\r\n        this.stack = new Array();\r\n    }\r\n    /**\r\n     * Converts a view state stack that is typeless for an one that as a type\r\n     *\r\n     * @param object Object that represents a view state stack\r\n     * @return Object that represents a view state stack\r\n     */\r\n    static ConvertAnyToStack(object) {\r\n        const viewCacheStack = new ViewStateStack();\r\n        if (object) {\r\n            object.stack.forEach(element => viewCacheStack.addNode(new ViewState(element.draftId, element.domElementId, element.openedExpanders, element.extensionId, element.gridLineIndex, element.gridId)));\r\n        }\r\n        return viewCacheStack;\r\n    }\r\n    /**\r\n     * Get a node by view state draft Id\r\n     *\r\n     * @param draftId Draf id that is associated with the view state\r\n     * @param removeNode Option parameter that allows to remove the view state from the stack\r\n     * @return object that represents a viewstate\r\n     */\r\n    getNode(draftId, removeNode = false) {\r\n        const viewState = this.stack.find(_viewState => _viewState.draftId === draftId);\r\n        if (viewState && removeNode) {\r\n            this.removeNodeByViewState(viewState);\r\n        }\r\n        return viewState;\r\n    }\r\n    /**\r\n     * Add a new viewstate to the stack\r\n     *\r\n     * @param viewState Object that represents a viewstate\r\n     */\r\n    addNode(viewState) {\r\n        if (viewState) {\r\n            this.removeNodeByViewState(viewState);\r\n            this.stack.push(viewState);\r\n        }\r\n    }\r\n    /**\r\n     * Removes a node by the draf id that is associated with the view state\r\n     *\r\n     * @param draftId Draf id that is associated with the view state\r\n     */\r\n    removeNodeByDraftID(draftId) {\r\n        const viewState = this.stack.find(_viewState => _viewState.draftId === draftId);\r\n        this.removeNodeByViewState(viewState);\r\n    }\r\n    /**\r\n     * Removes a node by the view state\r\n     *\r\n     * @param viewState Object that represents a viewstate\r\n     */\r\n    removeNodeByViewState(viewState) {\r\n        this.stack = this.stack.filter(_viewState => _viewState.notEquals(viewState));\r\n    }\r\n}\n\n/**\r\n * Service responsible to persiste a view state\r\n */\r\nclass ViewStatePersisteService {\r\n    /**\r\n     * Constructs the ViewStatePersisteService\r\n     */\r\n    constructor(storageService, cacheHelperService) {\r\n        this.storageService = storageService;\r\n        this.cacheHelperService = cacheHelperService;\r\n        /** Key of the cache identifier */\r\n        this.key = 'cache';\r\n        /** Prefix of the cache identifier*/\r\n        this.prefix = 'view';\r\n    }\r\n    /**\r\n     * Adds a new view state\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     *\r\n     */\r\n    add(viewState) {\r\n        const viewFifoStack = this.getViewStateStack();\r\n        viewFifoStack.addNode(viewState);\r\n        this.setViewStack(viewFifoStack);\r\n    }\r\n    /**\r\n     * Adds or sets (if exists) a new focus dom element id\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     * @param domElementId DOM Id element which the view is focus\r\n     */\r\n    addOrSetDomElement(draftId, domElementId) {\r\n        let viewState = this.get(draftId);\r\n        if (!viewState) {\r\n            viewState = new ViewState(draftId, domElementId);\r\n        }\r\n        else {\r\n            viewState.domElementId = domElementId;\r\n        }\r\n        this.addOrSet(viewState);\r\n    }\r\n    /**\r\n     * Adds or sets (if exists) a new focus grid line index\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param gridLineIndex Index line in case of the dom element is inside of a grid\r\n     */\r\n    addOrSetGridLineIndex(draftId, gridLineIndex) {\r\n        let viewState = this.get(draftId);\r\n        if (!viewState) {\r\n            viewState = new ViewState(draftId);\r\n        }\r\n        viewState.gridLineIndex = gridLineIndex;\r\n        this.addOrSet(viewState);\r\n    }\r\n    /**\r\n     * Adds or sets (if exists) a new focus grid id\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param gridId Grid Id in case of the dom element is inside of a grid\r\n     */\r\n    addOrSetGridId(draftId, gridId) {\r\n        let viewState = this.get(draftId);\r\n        if (!viewState) {\r\n            viewState = new ViewState(draftId);\r\n        }\r\n        viewState.gridId = gridId;\r\n        this.addOrSet(viewState);\r\n    }\r\n    /**\r\n     * Adds or sets (if exists) a new focus grid id\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param extensionId Extension Id that is visible\r\n     */\r\n    addOrSetExtensionSelected(draftId, extensionId) {\r\n        let viewState = this.get(draftId);\r\n        if (!viewState) {\r\n            viewState = new ViewState(draftId);\r\n        }\r\n        viewState.extensionId = extensionId;\r\n        this.addOrSet(viewState);\r\n    }\r\n    /**\r\n     * Adds or sets (if exists) a new view state\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     */\r\n    addOrSet(viewState) {\r\n        const _viewState = this.get(viewState.draftId);\r\n        if (!_viewState) {\r\n            this.add(viewState);\r\n        }\r\n        else {\r\n            this.set(viewState);\r\n        }\r\n    }\r\n    /**\r\n     * Gets a viewstate from the view state stack\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param removeNode flag that allows to remove the node if exists\r\n     * @return if the viewState does not exists, it will be return a new ViewState only with the draftId filled\r\n     */\r\n    get(draftId, removeNode = false) {\r\n        const viewFifoStack = this.getViewStateStack();\r\n        const viewState = viewFifoStack.getNode(draftId, removeNode);\r\n        if (removeNode) {\r\n            this.setViewStack(viewFifoStack);\r\n        }\r\n        return viewState || new ViewState(draftId);\r\n    }\r\n    /**\r\n     * Removes a viewstate from the view state stack\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     */\r\n    remove(draftId) {\r\n        const viewFifoStack = this.getViewStateStack();\r\n        viewFifoStack.removeNodeByDraftID(draftId);\r\n        this.setViewStack(viewFifoStack);\r\n    }\r\n    /**\r\n     * Sets a viewstate from the view state stack. If not exists, will be added.\r\n     *\r\n     * @param viewState Object that represents the view state\r\n     */\r\n    set(viewState) {\r\n        this.getViewStateStack().removeNodeByViewState(viewState);\r\n        this.add(viewState);\r\n    }\r\n    /**\r\n     * Adds a new open expander to a view state\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param expanderId Id of the expander that is opened\r\n     */\r\n    addOpenedExpander(draftId, expanderId) {\r\n        let viewState = this.get(draftId, false);\r\n        if (!viewState) {\r\n            viewState = new ViewState(draftId);\r\n        }\r\n        viewState.addOpenedExpander(expanderId);\r\n        this.set(viewState);\r\n    }\r\n    /**\r\n     * Removes a new open expander to a view state\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     * @param expanderId Id of the expander that is opened\r\n     */\r\n    removeOpenedExpander(draftId, expanderId) {\r\n        const viewState = this.get(draftId, false);\r\n        if (!viewState) {\r\n            return false;\r\n        }\r\n        viewState.removeOpenedExpander(expanderId);\r\n        this.set(viewState);\r\n        return true;\r\n    }\r\n    /**\r\n     * Removes an extension from the view state\r\n     *\r\n     * @param draftID Id of the draft that the view state is associated with\r\n     */\r\n    removeExtension(draftID) {\r\n        const viewState = this.get(draftID, false);\r\n        viewState.extensionId = '';\r\n        this.set(viewState);\r\n        return true;\r\n    }\r\n    /**\r\n     * Verifies if the view state exists\r\n     *\r\n     * @param draftId Id of the draft that the view state is associated with\r\n     */\r\n    exists(draftId) {\r\n        return this.get(draftId, false) ? true : false;\r\n    }\r\n    /** Gets a view state stack from the cache */\r\n    getViewStateStack() {\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, this.key]);\r\n        const obj = this.storageService.sessionGet(cacheKey);\r\n        return ViewStateStack.ConvertAnyToStack(JSON.parse(obj));\r\n    }\r\n    /** Sets a view state stack to the cache */\r\n    setViewStack(viewFifoStack) {\r\n        if (viewFifoStack) {\r\n            const cacheKey = this.cacheHelperService.generateCacheKey(true, false, false, [this.prefix, this.key]);\r\n            this.storageService.sessionSet(cacheKey, JSON.stringify(viewFifoStack));\r\n        }\r\n    }\r\n}\r\nViewStatePersisteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStatePersisteService, deps: [{ token: StorageService }, { token: CacheHelperService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nViewStatePersisteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStatePersisteService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStatePersisteService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: StorageService }, { type: CacheHelperService }]; } });\n\n/** Class resposible to interact with the DOM, only for the ViewState cenarios */\r\nclass ViewStateService {\r\n    /**\r\n     * @param domService Service that allows interactions with DOM\r\n     */\r\n    constructor(domService) {\r\n        this.domService = domService;\r\n    }\r\n    /**\r\n     * Som dom elements have non unique id cross the dom tree.\r\n     * This function allows to find the closes ancestors that has a unique id\r\n     * IMPORTANTE: THIS FUNCTION SHOULD BE USE ONLY FOR LOOKING FORMLY FIELDS IDS\r\n     *\r\n     * @param element The dom element. Ex: document\r\n     * @return the id of the element\r\n     */\r\n    findValidIDFromDOMElementOrAncestors(element) {\r\n        /** Parte of the id is created dynamic on each time the dom elements are created.\r\n            We need to split the dynamic part from the fixed on to get an truthly Id. */\r\n        let id = element.id.split('_').slice(2).join('_');\r\n        /* Sometimes domElements does have a properly ID\r\n           In that cases, we need to find an parent DOM element that has one. */\r\n        if (!id) {\r\n            const domElement = this.domService.findAncestorByDomElementName(element, '.*(pri).*(field)', 'pri-formly-field');\r\n            if (domElement) {\r\n                id = domElement.id.split('_').slice(2).join('_');\r\n            }\r\n            else {\r\n                id = element.id;\r\n            }\r\n        }\r\n        return id;\r\n    }\r\n    /**\r\n     * In case of the dom element is inside of a grid, the function return the line index\r\n     * which the dom element is insert.\r\n     *\r\n     * @param element dom element which will be the start point of the search\r\n     * @return return the grid line index if finds it or -1 if not\r\n     */\r\n    findGridLineIndex(element) {\r\n        const domElement = this.domService.findAncestorByDomElementName(element, 'pri-formly-form', 'pri-formly-group');\r\n        const gridLineIndex = domElement && domElement.getAttribute('data-line-index');\r\n        return gridLineIndex ? +gridLineIndex : -1;\r\n    }\r\n    /**\r\n     * In case of the dom element is inside of a grid, the function return the grid id\r\n     * which the dom element is insert.\r\n     *\r\n     * @param element dom element which will be the start point of the search\r\n     * @return return the grid id or empty string if not\r\n     */\r\n    findGridId(element) {\r\n        const domElement = this.domService.findAncestorByDomElementName(element, 'pri-formly-form', 'pri-formly-group');\r\n        const gridId = domElement && domElement.getAttribute('data-grid-id');\r\n        return gridId ? gridId : '';\r\n    }\r\n}\r\nViewStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStateService, deps: [{ token: DomService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nViewStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStateService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewStateService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: DomService }]; } });\n\nclass ViewTitleService {\r\n    constructor(broadcastService, routeHelperService) {\r\n        this.broadcastService = broadcastService;\r\n        this.routeHelperService = routeHelperService;\r\n    }\r\n    /**\r\n     * Updates the view title.\r\n     */\r\n    setViewTitle(activatedRoute, title) {\r\n        this.broadcastService.emit('view_title', {\r\n            title,\r\n            outlet: this.routeHelperService.getActiveOutlet(activatedRoute)\r\n        });\r\n    }\r\n}\r\nViewTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewTitleService, deps: [{ token: BroadcastService }, { token: RouteHelperService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nViewTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewTitleService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewTitleService, decorators: [{\r\n            type: Injectable,\r\n            args: [{ providedIn: 'root' }]\r\n        }], ctorParameters: function () { return [{ type: BroadcastService }, { type: RouteHelperService }]; } });\n\n/**\r\n * Adapter class that convert File objects into other types.\r\n */\r\nclass FileAdapter {\r\n    /**\r\n     * Converts a File object to a base64-encoded string.\r\n     *\r\n     * @param file - The File object to be converted.\r\n     * @param keepPrefix - `false`as default. Set this to true if you need to keep the prefix \"data:\\*\\/*;base64,\" for your use case.\r\n     * @returns A Promise that resolves with the base64-encoded string, or null if the file is not valid or could not be read.\r\n     */\r\n    static toBase64(file, keepPrefix = false) {\r\n        return new Promise((resolve, reject) => {\r\n            const reader = new FileReader();\r\n            reader.readAsDataURL(file);\r\n            reader.onload = () => {\r\n                const _result = keepPrefix ? reader.result.toString() : reader.result.toString().split(',')[1];\r\n                resolve(_result);\r\n            };\r\n            reader.onerror = (error) => reject(error);\r\n        });\r\n    }\r\n}\n\n/**\r\n * A facade file that provides a simplified interface for comparing objects deeply using the `fast-deep-equal` library.\r\n */\r\n/**\r\n * Determines whether two objects/arrays are deeply equal.\r\n *\r\n * @param element1 - The first element to compare.\r\n * @param element2 - The second element to compare.\r\n * @returns `true` if the element are deeply equal, `false` otherwise.\r\n * @example\r\n * ```typescript\r\n * const obj1 = { a: 1, b: 2, c: { d: 3 } };\r\n * const obj2 = { a: 1, b: 2, c: { d: 3 } };\r\n * const result = isEqual(obj1, obj2);\r\n * console.log(result); // true\r\n * ```\r\n */\r\nconst isEqual = (element1, element2) => equal(element1, element2);\n\n/**\r\n * Allows to identify routes with account and subscription dependency,\r\n * redirecting to the AMS page if necessary.\r\n */\r\nclass AmsGuard {\r\n    constructor(amsService) {\r\n        this.amsService = amsService;\r\n    }\r\n    /**\r\n     * Determines whether a given route has all information needed to be accessed.\r\n     *\r\n     * @returns True if access is allowed.\r\n     */\r\n    canActivate(_route, _state) {\r\n        if (this.amsService.hasAccountAndSubscription()) {\r\n            return true;\r\n        }\r\n        else {\r\n            // Redirects to ams in order to be choose the correspond account and subscription.\r\n            this.amsService.redirectToSetAccountAndSubscriptionPage();\r\n        }\r\n        return false;\r\n    }\r\n}\r\nAmsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsGuard, deps: [{ token: AmsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nAmsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsGuard, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AmsGuard, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AmsService }]; } });\n\n/**\r\n * Allows to identify routes that need special authorized access.\r\n * If not, will be redirect to identity in order to identify the user.\r\n */\r\nclass IdentityGuard {\r\n    constructor(broadcastService, oAuthService) {\r\n        this.broadcastService = broadcastService;\r\n        this.oAuthService = oAuthService;\r\n        oAuthService.setStorage(localStorage);\r\n    }\r\n    /**\r\n     * Determines whether route access as a valid authorize jwt token.\r\n     * If not, a redirection to the identity page will be made.\r\n     *\r\n     * @returns True if access is allowed.\r\n     */\r\n    canActivate(route, state) {\r\n        // has valid token?\r\n        if (!this.oAuthService.hasValidAccessToken()) {\r\n            // invalid token, init authentication flow.\r\n            this.oAuthService.initImplicitFlow(window.location.href);\r\n            // cannot access this route.\r\n            return false;\r\n        }\r\n        else {\r\n            // token is valid.\r\n            return true;\r\n        }\r\n    }\r\n}\r\nIdentityGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityGuard, deps: [{ token: BroadcastService }, { token: i1$1.OAuthService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nIdentityGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityGuard, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IdentityGuard, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: BroadcastService }, { type: i1$1.OAuthService }]; } });\n\n/**\r\n * Allows to identify routes with account and subscription dependency,\r\n * redirecting to the AMS page if necessary.\r\n */\r\nclass ClaimGuard {\r\n    constructor(appContext, errorsService) {\r\n        this.appContext = appContext;\r\n        this.errorsService = errorsService;\r\n    }\r\n    /**\r\n     * Determines whether a given route has all information needed to be accessed.\r\n     *\r\n     * @returns True if access is allowed.\r\n     */\r\n    canActivate(route, state) {\r\n        const canActivateSubject = new BehaviorSubject(true);\r\n        this.appContext.subscriptionClaimsObservable.subscribe((subscriptionClaims) => {\r\n            let canActivate = true;\r\n            if (route.data && route.data['claims'] && route.data['claims'].length > 0) {\r\n                const intersectArray = subscriptionClaims.filter(value => route.data['claims'].includes(value));\r\n                canActivate = intersectArray ? intersectArray.length > 0 ? true : false : false;\r\n                canActivateSubject.next(canActivate);\r\n                if (!canActivate) {\r\n                    // eslint-disable-next-line max-len\r\n                    const message = 'The requested operation is not allowed based on your current access permissions or the acquired product configuration.';\r\n                    this.errorsService.showErrorMessage({\r\n                        message,\r\n                        canBackToHome: true,\r\n                        canBackToPreviousPage: true,\r\n                        canGoToSubscriptionsPage: false,\r\n                        errorType: 'loadingStyle'\r\n                    });\r\n                }\r\n            }\r\n        });\r\n        return canActivateSubject.asObservable();\r\n    }\r\n}\r\nClaimGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ClaimGuard, deps: [{ token: AppContextService }, { token: ErrorsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nClaimGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ClaimGuard, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ClaimGuard, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: AppContextService }, { type: ErrorsService }]; } });\n\nclass CaseStylesHelper {\r\n    static camelCase(str) {\r\n        const firstChar = str.charAt(0);\r\n        const firstCharUpper = firstChar.toLowerCase();\r\n        const restOfTheString = str.substring(1);\r\n        const result = firstCharUpper + restOfTheString;\r\n        return result;\r\n    }\r\n    static camelCaseUriAttributes(uri) {\r\n        if (uri) {\r\n            const attributesMatched = uri.matchAll(/{(.*?)}/gi);\r\n            const firstElements = Array.from(attributesMatched, (match) => match[1]);\r\n            firstElements.forEach((attr) => {\r\n                const attrConverted = CaseStylesHelper.camelCase(attr);\r\n                uri = uri.replace(attr, attrConverted);\r\n            });\r\n        }\r\n        return uri;\r\n    }\r\n    static pascalCase(str) {\r\n        return str.charAt(0).toUpperCase() + str.substring(1);\r\n    }\r\n}\n\n/**\r\n * An alternative to structuredClone()/JSON.parse(JSON.stringify(obj)) methods to deep copy an object.\r\n * A new object is instantiated with the source object prototype,\r\n * and the reduce operator is used to recursively copy each property over.\r\n *\r\n * It supports Date data type, and keeps the original object class constructor and methods\r\n * in its prototype chain. It is also compact and efficient.\r\n *\r\n * Source: https://javascript.plainenglish.io/deep-clone-an-object-and-preserve-its-type-with-typescript-d488c35e5574\r\n *\r\n * @param source - The object to deep clone.\r\n * @returns The deep cloned object.\r\n */\r\nconst deepClone = (source) => Array.isArray(source)\r\n    ? source.map((item) => deepClone(item))\r\n    : source instanceof Date\r\n        ? new Date(source.getTime())\r\n        : source && typeof source === 'object'\r\n            ? Object.getOwnPropertyNames(source).reduce((o, prop) => {\r\n                // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\r\n                Object.defineProperty(o, prop, Object.getOwnPropertyDescriptor(source, prop));\r\n                o[prop] = deepClone(source[prop]);\r\n                return o;\r\n            }, \r\n            // This creates a new Object from the source, pointing to the same prototype of the source object\r\n            Object.create(Object.getPrototypeOf(source)))\r\n            : source;\n\n/**\r\n * This class facilitates the observation of scroll events.\r\n * The default Angular mode, `@HostListener('window:scroll')`, proves ineffective as the scroll event doesn't\r\n * originate from the `window` object, but rather from the `router-wrapper` element.\r\n */\r\nclass ScrollObserver {\r\n    /**\r\n     * Returns an observable that emits whenever the user scrolls the window.\r\n     *\r\n     * @param element The element to start the search for a scroll event.\r\n     */\r\n    static fromScrollableParents(element) {\r\n        const hasScrollBar = (el) => {\r\n            const style = window.getComputedStyle(el);\r\n            if (style.overflow === 'hidden' || style.overflowY === 'hidden') {\r\n                return false;\r\n            }\r\n            const hasScroll = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;\r\n            return hasScroll;\r\n        };\r\n        const scrollableParents = [];\r\n        let parentElement = element.parentElement;\r\n        while (parentElement) {\r\n            if (hasScrollBar(parentElement)) {\r\n                scrollableParents.push(parentElement);\r\n            }\r\n            parentElement = parentElement.parentElement;\r\n        }\r\n        const observables = scrollableParents.map((el) => fromEvent(el, 'scroll'));\r\n        const unifiedObs = merge(...observables).pipe(map$1(() => null));\r\n        return unifiedObs;\r\n    }\r\n}\n\n/**\r\n * Defines the notification types.\r\n */\r\n// eslint-disable-next-line no-shadow\r\nvar NotificationTypeEnum;\r\n(function (NotificationTypeEnum) {\r\n    NotificationTypeEnum[NotificationTypeEnum[\"info\"] = 0] = \"info\";\r\n    NotificationTypeEnum[NotificationTypeEnum[\"success\"] = 1] = \"success\";\r\n    NotificationTypeEnum[NotificationTypeEnum[\"warning\"] = 2] = \"warning\";\r\n    NotificationTypeEnum[NotificationTypeEnum[\"error\"] = 3] = \"error\";\r\n})(NotificationTypeEnum || (NotificationTypeEnum = {}));\n\n/**\r\n * Defines upgrade status\r\n */\r\nvar UpgradeStatusEnum;\r\n(function (UpgradeStatusEnum) {\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"None\"] = 0] = \"None\";\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"Init\"] = 1] = \"Init\";\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"Progress\"] = 2] = \"Progress\";\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"Completed\"] = 3] = \"Completed\";\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"Error\"] = 4] = \"Error\";\r\n    UpgradeStatusEnum[UpgradeStatusEnum[\"CompletedWithError\"] = 5] = \"CompletedWithError\";\r\n})(UpgradeStatusEnum || (UpgradeStatusEnum = {}));\n\nclass Lock {\r\n    constructor(isLocked = false, lockReasonDescription = '', outlet = \"primary\" /* OutletEnum.Primary */) {\r\n        this.isLocked = isLocked;\r\n        this.lockReasonDescription = lockReasonDescription;\r\n        this.outlet = outlet;\r\n    }\r\n}\n\n/**\r\n * Classes that represent action made after a view state restore\r\n */\r\nclass ViewStateRestoreProperties {\r\n    constructor() {\r\n        this.madeFocus = false;\r\n    }\r\n}\n\n/**\r\n * Checks if an array is empty.\r\n */\r\nclass IsEmptyArrayPipe {\r\n    constructor() { }\r\n    /**\r\n     * Checks if an array is empty.\r\n     *\r\n     * @param value - The array to check.\r\n     * @returns - `true` if the array is empty, `false` otherwise.\r\n     * @throws  - If the provided value is not an array.\r\n     */\r\n    transform(value) {\r\n        if (value instanceof Array) {\r\n            return value.length === 0;\r\n        }\r\n        throw new Error('The provided value is not an Array.');\r\n    }\r\n}\r\nIsEmptyArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IsEmptyArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nIsEmptyArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: IsEmptyArrayPipe, isStandalone: true, name: \"isEmptyArray\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: IsEmptyArrayPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{\r\n                    name: 'isEmptyArray',\r\n                    standalone: true\r\n                }]\r\n        }], ctorParameters: function () { return []; } });\n\n/**\r\n * Generic instance provider that creates to DI container a scoped instance for some dependency.\r\n * The first component which reads this provider is a \"@Host\" provider for its child\r\n * and all the other components that read this provider after the first one will have an \"@SkipSelf\" instance.\r\n *\r\n * @param instance The class instance to get/create.\r\n * @param deps The dependencies of class that will be instantiated.\r\n * @returns Returns a \"@SkipSelf\" service instance when found it in DI container.\r\n * Otherwise, creates a new instance and returns it as an \"@Host\" instance;\r\n */\r\nconst ScopedDependencyResolver = (instance, deps = []) => ({\r\n    provide: instance,\r\n    useFactory: (injector) => {\r\n        const currentInstance = injector.get(instance, null, InjectFlags.SkipSelf);\r\n        if (currentInstance) {\r\n            return currentInstance;\r\n        }\r\n        const createdInstance = Injector.create({\r\n            providers: [{ provide: instance, useClass: instance, deps }],\r\n            parent: injector\r\n        }).get(instance, null, InjectFlags.Host);\r\n        return createdInstance;\r\n    },\r\n    deps: [Injector]\r\n});\n\nclass PrimaveraServicesModule {\r\n    static forRoot() {\r\n        return {\r\n            ngModule: PrimaveraServicesModule\r\n        };\r\n    }\r\n}\r\nPrimaveraServicesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nPrimaveraServicesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraServicesModule, declarations: [IframeSecurityPipe, TypeOfPipe, TreatErrorMessagePipe], imports: [i1$1.OAuthModule], exports: [IframeSecurityPipe, TypeOfPipe, TreatErrorMessagePipe] });\r\nPrimaveraServicesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraServicesModule, providers: [\r\n        DocumentService,\r\n        DomService,\r\n        SignalRHelper,\r\n        StorageService,\r\n        WindowService,\r\n        UserSettingsService,\r\n        ProductInitialization,\r\n        DeviceService,\r\n        GuidService,\r\n        ConverterService,\r\n        ImageService,\r\n        SequentialRequest,\r\n        FormModelService,\r\n        TypeOfPipe,\r\n        TreatErrorMessagePipe,\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: EnvironmentInterceptor,\r\n            multi: true\r\n        },\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: HttpConfigInterceptor,\r\n            multi: true\r\n        },\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: CompanyInterceptor,\r\n            multi: true\r\n        },\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: CorsInterceptor,\r\n            multi: true\r\n        },\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: IdentityInterceptor,\r\n            multi: true\r\n        },\r\n        {\r\n            provide: HTTP_INTERCEPTORS,\r\n            useClass: RewriteRulesInterceptor,\r\n            multi: true\r\n        },\r\n        UserPilotService,\r\n        AppCueService,\r\n        HeapService,\r\n        InspectletService,\r\n        HotkeysService,\r\n        PendingRequestsService,\r\n        ViewStateService,\r\n        ViewStatePersisteService,\r\n        TaskService\r\n    ], imports: [OAuthModule.forRoot()] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PrimaveraServicesModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [OAuthModule.forRoot()],\r\n                    declarations: [IframeSecurityPipe, TypeOfPipe, TreatErrorMessagePipe],\r\n                    providers: [\r\n                        DocumentService,\r\n                        DomService,\r\n                        SignalRHelper,\r\n                        StorageService,\r\n                        WindowService,\r\n                        UserSettingsService,\r\n                        ProductInitialization,\r\n                        DeviceService,\r\n                        GuidService,\r\n                        ConverterService,\r\n                        ImageService,\r\n                        SequentialRequest,\r\n                        FormModelService,\r\n                        TypeOfPipe,\r\n                        TreatErrorMessagePipe,\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: EnvironmentInterceptor,\r\n                            multi: true\r\n                        },\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: HttpConfigInterceptor,\r\n                            multi: true\r\n                        },\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: CompanyInterceptor,\r\n                            multi: true\r\n                        },\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: CorsInterceptor,\r\n                            multi: true\r\n                        },\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: IdentityInterceptor,\r\n                            multi: true\r\n                        },\r\n                        {\r\n                            provide: HTTP_INTERCEPTORS,\r\n                            useClass: RewriteRulesInterceptor,\r\n                            multi: true\r\n                        },\r\n                        UserPilotService,\r\n                        AppCueService,\r\n                        HeapService,\r\n                        InspectletService,\r\n                        HotkeysService,\r\n                        PendingRequestsService,\r\n                        ViewStateService,\r\n                        ViewStatePersisteService,\r\n                        TaskService\r\n                    ],\r\n                    exports: [IframeSecurityPipe, TypeOfPipe, TreatErrorMessagePipe]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { AmsGuard, AmsService, AppContextService, AppCueService, AppInitializer, AppInitializerCustomBaseService, AppInitializerCustomService, BroadcastService, CacheHelperService, CaseStylesHelper, ClaimGuard, CompanyDependentService, ConverterService, CoordinatesModel, DEPLOY_URL, DEPLOY_URL_PROVIDER, DeviceService, DocumentService, DomService, ElectronicCertificateService, EnvironmentSettings, ErrorsService, EventService, ExternalScriptsService, FileAdapter, FormEvent, FormEventOperation, FormEventResponse, FormModelService, FrameworkInterceptors, FrameworkInterceptorsOptions, GuidService, HeapService, HotkeysService, IdentityGuard, IdentityService, IframeSecurityPipe, ImageService, InspectletService, IsEmptyArrayPipe, Lock, NotificationTypeEnum, PendingRequestsService, PrimaveraServicesModule, ProductInitialization, RoleService, RouteHelperService, RouteInfoModel, ScopedDependencyResolver, ScrollObserver, SequentialRequest, SettingsService, ShellStateService, SignalRHelper, SignalRService, SignalRStateEnum, SizeModel, StorageService, TaskModel, TaskService, TelemetryService, ThemeService, ThemesEnum, TreatErrorMessagePipe, TypeOfPipe, UpgradeApplicationBaseService, UpgradeApplicationService, UpgradeStatusEnum, UserEngagementService, UserPilotService, UserSettingsService, ViewState, ViewStatePersisteService, ViewStateRestoreProperties, ViewStateService, ViewTitleService, WildcardService, WindowService, deepClone, deployUrl, isEqual };\n","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMilliseconds from \"../addMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_HOUR = 3600000;\n\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the hours added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * const result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\nexport default function addHours(dirtyDate, dirtyAmount) {\n  requiredArgs(2, arguments);\n  var amount = toInteger(dirtyAmount);\n  return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_HOUR);\n}","import { A11yModule } from '@angular/cdk/a11y';\nimport { ScrollingModule, ScrollDispatcher } from '@angular/cdk/scrolling';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Component, ViewEncapsulation, ViewContainerRef, Input, ViewChild, EventEmitter, ChangeDetectionStrategy, Output, HostListener, Inject, HostBinding, Directive, Pipe, NgModule } from '@angular/core';\nimport * as i4$1 from '@angular/forms';\nimport { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport * as i8 from '@angular/material/tabs';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport * as i6 from '@angular/material/tooltip';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport * as i1$2 from '@angular/router';\nimport { NavigationEnd, NavigationStart, RouterModule } from '@angular/router';\nimport * as i2 from '@primavera/components';\nimport { MessageInfo, LoadingSpinnerSizeEnum, LoadingSpinnerTypeEnum, ComponentsModule, PriPopoverDirective } from '@primavera/components';\nimport * as i4 from '@primavera/localization';\nimport { PrimaveraI18nModule } from '@primavera/localization';\nimport * as i7 from '@primavera/pushnotifications';\nimport { PushNotificationsModule } from '@primavera/pushnotifications';\nimport * as i5 from '@primavera/search';\nimport { SearchProvider, PrimaveraSearchModule } from '@primavera/search';\nimport * as i1$1 from '@primavera/services';\nimport { UpgradeStatusEnum, ThemesEnum, DEPLOY_URL, FrameworkInterceptors, FrameworkInterceptorsOptions, Lock, PrimaveraServicesModule } from '@primavera/services';\nimport * as i4$2 from 'ngx-bootstrap/popover';\nimport { PopoverModule } from 'ngx-bootstrap/popover';\nimport * as i1 from '@angular/common/http';\nimport { HttpContext } from '@angular/common/http';\nimport { trigger, transition, style, animate, state } from '@angular/animations';\nimport { BehaviorSubject, Observable, Subject, filter, takeUntil, retry } from 'rxjs';\nimport * as i7$1 from '@primavera/components/features/right-panel';\nimport { RightPanelComponent } from '@primavera/components/features/right-panel';\nimport { take, takeUntil as takeUntil$1, filter as filter$1 } from 'rxjs/operators';\n\nclass SubscriptionsService {\r\n    /**\r\n     * Constructs the application\r\n     *\r\n     * @param httpClient Service responsible to manage http communications\r\n     * @param i18nService Service responsible to handle language translations\r\n     * @param messagesService Service responsible for showing messages\r\n     */\r\n    constructor(httpClient, i18nService, messagesService) {\r\n        this.httpClient = httpClient;\r\n        this.i18nService = i18nService;\r\n        this.messagesService = messagesService;\r\n    }\r\n    /**\r\n     * Gets the currnet subscription users\r\n     *\r\n     * @returns SubscriptionUsers collection\r\n     */\r\n    getSubscriptionUsers() {\r\n        return this.httpClient.get('/app/identity/subscriptions/getSubscriptionUsers').toPromise();\r\n    }\r\n    /**\r\n     * Checks if current user is subscription manager\r\n     *\r\n     * @returns True if current user is manager of the subscription\r\n     */\r\n    isCurrentUserSubscriptionManager() {\r\n        return this.httpClient.get('/app/identity/subscriptions/isCurrentUserManagerOfSubscription').toPromise();\r\n    }\r\n    /**\r\n     * Checks if the product is single user\r\n     *\r\n     * @returns True if the product is single user\r\n     */\r\n    isSingleUserProduct() {\r\n        return this.httpClient.get('/app/identity/subscriptions/isSingleUserProduct').toPromise();\r\n    }\r\n    /**\r\n     * Gets the current subscription roles\r\n     *\r\n     * @returns Collection of the current subscription roles\r\n     */\r\n    getSubscriptionRoles() {\r\n        return this.httpClient.get('/app/identity/subscriptions/getSubscriptionRoles').toPromise();\r\n    }\r\n    /**\r\n     * Sends invitation to the specified user\r\n     *\r\n     * @param name User display name\r\n     * @param email User email\r\n     * @param roleKey? User assigned role key\r\n     */\r\n    sendInvitation(name, email, roleKey, isTechnician) {\r\n        const invitationObject = { name, email, roleKey, isTechnician };\r\n        return this.httpClient.post('/app/identity/subscriptions/sendInvitation', invitationObject).toPromise();\r\n    }\r\n    /**\r\n     * Removes access to the user in the current subscription\r\n     *\r\n     * @param userName The userName of the user\r\n     */\r\n    removeAccess(id, userName) {\r\n        const userReference = { userId: id, userName };\r\n        return this.httpClient.post('/app/identity/subscriptions/removeUserFromSubscription', userReference).toPromise();\r\n    }\r\n}\r\nSubscriptionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionsService, deps: [{ token: i1.HttpClient }, { token: i4.I18nService }, { token: i2.MessagesService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nSubscriptionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i4.I18nService }, { type: i2.MessagesService }]; } });\n\nclass AlertBarComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     * @param appContextService App Context Service responsible to load default from server\r\n     * @param subscriptionsService Service responsible for retrieving subscription information\r\n     */\r\n    constructor(appContextService, subscriptionsService) {\r\n        this.appContextService = appContextService;\r\n        this.subscriptionsService = subscriptionsService;\r\n        this.hasProductWarning = false;\r\n        this.hasPendingPayments = false;\r\n        this.isDemonstrationSubscription = false;\r\n    }\r\n    ngOnInit() {\r\n        this.loadAlerts();\r\n    }\r\n    /**\r\n     * Load all alerts from appcontext\r\n     */\r\n    loadAlerts() {\r\n        const result = this.appContextService.getContext();\r\n        if (result) {\r\n            const alerts = result.alerts;\r\n            this.hasPendingPayments = alerts.hasPendingPayments;\r\n            this.hasProductWarning = alerts.hasProductWarning;\r\n            this.isDemonstrationSubscription = alerts.isDemonstrationSubscription;\r\n            if (this.isDemonstrationSubscription) {\r\n                this.message = alerts.demonstrationMessage;\r\n            }\r\n            else {\r\n                if (this.hasProductWarning) {\r\n                    this.productWarningLevel = alerts.productWarningLevel;\r\n                    this.message = alerts.productWarningMessage;\r\n                }\r\n                if (this.hasPendingPayments) {\r\n                    const parser = new DOMParser();\r\n                    const document = parser.parseFromString(alerts.paymentGatewayGetFirstPaymentUrl, 'text/html');\r\n                    this.gatewayPaymentUrl = document.body.textContent;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    get subscriptionManagementUrl() {\r\n        return this.appContextService.getContext().subscriptionManagementUrl;\r\n    }\r\n}\r\nAlertBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AlertBarComponent, deps: [{ token: i1$1.AppContextService }, { token: SubscriptionsService }], target: i0.ɵɵFactoryTarget.Component });\r\nAlertBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: AlertBarComponent, selector: \"pri-alert-bar\", ngImport: i0, template: \"<div class=\\\"alerts-container\\\">\\r\\n    <!-- PENDING PAYMENTS - 1st priority -->\\r\\n    <div *ngIf=\\\"hasPendingPayments\\\" class=\\\"shell-banner shell-banner-critical\\\">\\r\\n        <div class=\\\"banner-message\\\">\\r\\n            {{'shell.components.RES_MyAccountView_ThereArePendingPayments' | priI18n}}\\r\\n            <strong><a id=\\\"paymentsLink\\\" href=\\\"{{ subscriptionManagementUrl }}\\\" target=\\\"_blank\\\">{{'shell.components.RES_MyAccountView_HerePendingPayments' | priI18n}}</a></strong>\\r\\n            {{'shell.components.RES_MyAccountView_ThereArePendingPaymentsSettleThem' | priI18n}}\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- DEMONSTRATION - 2nd priority -->\\r\\n    <div *ngIf=\\\"isDemonstrationSubscription && !hasPendingPayments\\\" class=\\\"shell-banner shell-banner-critical\\\">\\r\\n        <div class=\\\"banner-message\\\" [innerHTML]=\\\"message\\\"></div>\\r\\n    </div>\\r\\n\\r\\n    <!-- PRODUCT WARNINGS - 3rd priority -->\\r\\n    <div *ngIf=\\\"hasProductWarning && !hasPendingPayments && !isDemonstrationSubscription\\\" class=\\\"shell-banner\\\" \\r\\n        [ngClass]=\\\"{'shell-banner-info' : productWarningLevel === 'Info', 'shell-banner-warning': productWarningLevel === 'Warning' , 'shell-banner-critical': productWarningLevel === 'Critical'}\\\">\\r\\n        <div class=\\\"banner-message\\\" [innerHTML]=\\\"message\\\"></div>\\r\\n    </div>\\r\\n    \\r\\n </div>\", styles: [\"pri-alert-bar .alerts-container{display:flex}pri-alert-bar .alerts-container .shell-banner{padding:0 16px;color:#fff;height:2.2857142857rem;flex-shrink:0;text-align:right;z-index:1000;font-size:14px;width:100%;overflow-x:auto;overflow-y:scroll;display:flex;align-items:center}pri-alert-bar .alerts-container .shell-banner::-webkit-scrollbar{width:4px}pri-alert-bar .alerts-container .shell-banner::-webkit-scrollbar-thumb{opacity:1;border-radius:4px}pri-alert-bar .alerts-container .shell-banner-critical{background:var(--error-60)}pri-alert-bar .alerts-container .shell-banner-warning{background:var(--warning-60)}pri-alert-bar .alerts-container .shell-banner-info{background:var(--info-60)}pri-alert-bar .alerts-container .shell-banner .banner-message{width:100%;float:right;position:relative;text-overflow:ellipsis}pri-alert-bar .alerts-container .shell-banner .banner-message a{color:#fff;font-weight:700}pri-alert-bar .alerts-container .shell-banner .banner-message a:hover{text-decoration:underline}pri-alert-bar .alerts-container .shell-banner .banner-message a:visited{color:#fff}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AlertBarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-alert-bar', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"alerts-container\\\">\\r\\n    <!-- PENDING PAYMENTS - 1st priority -->\\r\\n    <div *ngIf=\\\"hasPendingPayments\\\" class=\\\"shell-banner shell-banner-critical\\\">\\r\\n        <div class=\\\"banner-message\\\">\\r\\n            {{'shell.components.RES_MyAccountView_ThereArePendingPayments' | priI18n}}\\r\\n            <strong><a id=\\\"paymentsLink\\\" href=\\\"{{ subscriptionManagementUrl }}\\\" target=\\\"_blank\\\">{{'shell.components.RES_MyAccountView_HerePendingPayments' | priI18n}}</a></strong>\\r\\n            {{'shell.components.RES_MyAccountView_ThereArePendingPaymentsSettleThem' | priI18n}}\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- DEMONSTRATION - 2nd priority -->\\r\\n    <div *ngIf=\\\"isDemonstrationSubscription && !hasPendingPayments\\\" class=\\\"shell-banner shell-banner-critical\\\">\\r\\n        <div class=\\\"banner-message\\\" [innerHTML]=\\\"message\\\"></div>\\r\\n    </div>\\r\\n\\r\\n    <!-- PRODUCT WARNINGS - 3rd priority -->\\r\\n    <div *ngIf=\\\"hasProductWarning && !hasPendingPayments && !isDemonstrationSubscription\\\" class=\\\"shell-banner\\\" \\r\\n        [ngClass]=\\\"{'shell-banner-info' : productWarningLevel === 'Info', 'shell-banner-warning': productWarningLevel === 'Warning' , 'shell-banner-critical': productWarningLevel === 'Critical'}\\\">\\r\\n        <div class=\\\"banner-message\\\" [innerHTML]=\\\"message\\\"></div>\\r\\n    </div>\\r\\n    \\r\\n </div>\", styles: [\"pri-alert-bar .alerts-container{display:flex}pri-alert-bar .alerts-container .shell-banner{padding:0 16px;color:#fff;height:2.2857142857rem;flex-shrink:0;text-align:right;z-index:1000;font-size:14px;width:100%;overflow-x:auto;overflow-y:scroll;display:flex;align-items:center}pri-alert-bar .alerts-container .shell-banner::-webkit-scrollbar{width:4px}pri-alert-bar .alerts-container .shell-banner::-webkit-scrollbar-thumb{opacity:1;border-radius:4px}pri-alert-bar .alerts-container .shell-banner-critical{background:var(--error-60)}pri-alert-bar .alerts-container .shell-banner-warning{background:var(--warning-60)}pri-alert-bar .alerts-container .shell-banner-info{background:var(--info-60)}pri-alert-bar .alerts-container .shell-banner .banner-message{width:100%;float:right;position:relative;text-overflow:ellipsis}pri-alert-bar .alerts-container .shell-banner .banner-message a{color:#fff;font-weight:700}pri-alert-bar .alerts-container .shell-banner .banner-message a:hover{text-decoration:underline}pri-alert-bar .alerts-container .shell-banner .banner-message a:visited{color:#fff}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.AppContextService }, { type: SubscriptionsService }]; } });\n\nclass ContextComponentContainerComponent {\r\n    constructor(componentFactoryResolver, broadcastService) {\r\n        this.componentFactoryResolver = componentFactoryResolver;\r\n        this.broadcastService = broadcastService;\r\n    }\r\n    ngOnInit() {\r\n        this.loadComponent();\r\n        if (!this._unsubscribeBroadcastService) {\r\n            this._unsubscribeBroadcastService = this.broadcastService.subscribe('contextPropertyChanged', (data) => {\r\n                if (this.componentRef && data) {\r\n                    const component = this.componentRef.instance;\r\n                    if (component && component.componentId) {\r\n                        if (component.componentId === data.componentId) {\r\n                            if (!data.properties.length) {\r\n                                this.destroyComponent();\r\n                                this.loadComponent();\r\n                            }\r\n                            else {\r\n                                component.onPropertyUpdated(data);\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        if (this._unsubscribeBroadcastService) {\r\n            this._unsubscribeBroadcastService();\r\n            this._unsubscribeBroadcastService = null;\r\n        }\r\n        if (this.componentRef) {\r\n            this.componentRef.destroy();\r\n        }\r\n    }\r\n    /* gets the widget type from the route parameters and loads it to the DOM using the ComponentFactoryResolver*/\r\n    loadComponent() {\r\n        if (this.componentRef == null) {\r\n            this.container.clear();\r\n            const factory = this.componentFactoryResolver.resolveComponentFactory(this.config.type);\r\n            this.componentRef = this.container.createComponent(factory);\r\n            this.componentRef.instance.componentId = this.config.name;\r\n            this.componentRef.changeDetectorRef.detectChanges();\r\n        }\r\n    }\r\n    /* If an item is deleted the component should be destroyed so that the old data doesn't get displayed */\r\n    destroyComponent() {\r\n        if (this.componentRef) {\r\n            this.componentRef.destroy();\r\n            this.componentRef = null;\r\n        }\r\n    }\r\n}\r\nContextComponentContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextComponentContainerComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i1$1.BroadcastService }], target: i0.ɵɵFactoryTarget.Component });\r\nContextComponentContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ContextComponentContainerComponent, selector: \"pri-context-component-container\", inputs: { config: \"config\" }, viewQueries: [{ propertyName: \"container\", first: true, predicate: [\"componentContainer\"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: \"<ng-container #componentContainer></ng-container>\\r\\n\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextComponentContainerComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-context-component-container', template: \"<ng-container #componentContainer></ng-container>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i1$1.BroadcastService }]; }, propDecorators: { config: [{\r\n                type: Input\r\n            }], container: [{\r\n                type: ViewChild,\r\n                args: ['componentContainer', { read: ViewContainerRef, static: true }]\r\n            }] } });\n\nclass ContextPageComponent {\r\n}\r\nContextPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nContextPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ContextPageComponent, selector: \"pri-context-page\", inputs: { components: \"components\" }, ngImport: i0, template: \"<div *ngFor=\\\"let component of components\\\">\\r\\n    <pri-context-component-container [config]=component></pri-context-component-container>\\r\\n</div>\", dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"component\", type: ContextComponentContainerComponent, selector: \"pri-context-component-container\", inputs: [\"config\"] }] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextPageComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-context-page', template: \"<div *ngFor=\\\"let component of components\\\">\\r\\n    <pri-context-component-container [config]=component></pri-context-component-container>\\r\\n</div>\" }]\r\n        }], propDecorators: { components: [{\r\n                type: Input\r\n            }] } });\n\nclass ContextBarComponent {\r\n    constructor(broadcastService, appContextService, router, routeHelperService, storageService) {\r\n        this.broadcastService = broadcastService;\r\n        this.appContextService = appContextService;\r\n        this.router = router;\r\n        this.routeHelperService = routeHelperService;\r\n        this.storageService = storageService;\r\n        this.currentPageTitle = '';\r\n        this.pages = [];\r\n        this.selected = 0;\r\n        this.isOpen = false;\r\n        this.nextPageTitle = '';\r\n        this.previousPageTitle = '';\r\n        this.showPageNavigator = false;\r\n        this.openFirstTime = true;\r\n    }\r\n    ngOnInit() {\r\n        this.ctxComponents = this.loadCtxComponents();\r\n        this.broadcastService.subscribe('contextBarRouteChanges', (components) => {\r\n            if (components) {\r\n                this.ctxComponents = components;\r\n                this.storageService.set('contextBarRouteChanges', JSON.stringify(this.ctxComponents));\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('contextBarInfo', (info) => {\r\n            // reset all variables\r\n            this.pages = [];\r\n            this.dataCache = new Map();\r\n            this.mappings = new Map();\r\n            this.isOpen = false;\r\n            this.pageLoad = true;\r\n            this.currentActivator = undefined;\r\n            if (info && info.data && info.data.bindings) {\r\n                this.bindings = info.data.bindings;\r\n                this.startWithConfiguration();\r\n                this.initializePages(info);\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('contextBarChanges', (changes) => {\r\n            this.entityModelChanges(changes);\r\n        });\r\n        this.broadcastService.subscribe('contextBarOpen', (activator) => {\r\n            this.isOpen = true;\r\n            if (activator) {\r\n                this.currentActivator = activator;\r\n            }\r\n            this.notifyComponents();\r\n            this.showPageWithActivator(this.currentActivator);\r\n        });\r\n        this.broadcastService.subscribe('contextBarToggle', () => {\r\n            this.isOpen = !this.isOpen;\r\n        });\r\n        this.broadcastService.subscribe('contextBarReset', () => {\r\n            this.close();\r\n        });\r\n        this.broadcastService.subscribe('contextBarOnlyClose', () => {\r\n            this.isOpen = false;\r\n        });\r\n    }\r\n    showPageOnIndex(index) {\r\n        const totalPages = this.pages.length;\r\n        if (index >= totalPages) {\r\n            return;\r\n        }\r\n        for (let i = 0; i < totalPages; i++) {\r\n            const page = this.pages[i];\r\n            if (i === index) {\r\n                this.selected = index;\r\n                this.currentPage = page;\r\n                this.currentPageTitle = page.title;\r\n                this.broadcastService.emit('contextBarShowComponent', this.currentPage);\r\n            }\r\n            else {\r\n                // page.elem.addClass('ng-hide');\r\n            }\r\n        }\r\n        const rightPageIndex = (index + 1) % totalPages;\r\n        let leftPageIndex = (index - 1) % totalPages;\r\n        leftPageIndex = leftPageIndex < 0 ? totalPages - 1 : leftPageIndex;\r\n        this.nextPageTitle = this.pages[rightPageIndex].title;\r\n        this.previousPageTitle = this.pages[leftPageIndex].title;\r\n    }\r\n    showNextPage() {\r\n        this.selected = (this.selected + 1) % this.pages.length;\r\n        this.showPageOnIndex(this.selected);\r\n    }\r\n    showPreviousPage() {\r\n        this.selected = (this.selected - 1) % this.pages.length;\r\n        this.selected = this.selected < 0 ? this.pages.length - 1 : this.selected;\r\n        this.showPageOnIndex(this.selected);\r\n    }\r\n    close() {\r\n        this.isOpen = false;\r\n        this.broadcastService.emit('contextBarClose');\r\n    }\r\n    startWithConfiguration() {\r\n        if (this.bindings) {\r\n            for (const componentId in this.bindings) {\r\n                if (this.bindings.hasOwnProperty(componentId)) {\r\n                    const componentBinding = this.bindings[componentId];\r\n                    for (const propertyInfo in componentBinding) {\r\n                        if (componentBinding.hasOwnProperty(propertyInfo)) {\r\n                            const entityProperty = componentBinding[propertyInfo];\r\n                            const componentsList = this.mappings.get(entityProperty);\r\n                            if (componentsList) {\r\n                                componentsList.push(componentId);\r\n                            }\r\n                            else {\r\n                                const newComponentsList = [];\r\n                                newComponentsList.push(componentId);\r\n                                this.mappings.set(entityProperty, newComponentsList);\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n    initializePages(info) {\r\n        info.contextPages.forEach((page) => {\r\n            page.components.forEach((component) => {\r\n                const typedComponent = this.ctxComponents.filter((cc) => cc.id.toLowerCase() === component.name.toLowerCase())[0];\r\n                if (typedComponent) {\r\n                    component.type = typedComponent.type;\r\n                }\r\n            });\r\n            this.pages.push(page);\r\n            this.showPageOnIndex(0);\r\n        });\r\n    }\r\n    entityModelChanges(changes) {\r\n        const changedProperties = [];\r\n        if (this.mappings) {\r\n            this.mappings.forEach((componentsList, property, map) => {\r\n                let value = null;\r\n                try {\r\n                    // eslint-disable-next-line no-eval\r\n                    value = eval('changes.' + property);\r\n                }\r\n                catch (e) { }\r\n                // Prepare data cache (so the components can be notified when the context bar opens)\r\n                if (value != null) {\r\n                    if (!this.currentActivator || !this.pageLoad) {\r\n                        this.currentActivator = this.findActivator(property);\r\n                    }\r\n                    if (componentsList) {\r\n                        changedProperties.push(property);\r\n                        for (const component of componentsList) {\r\n                            const props = this.dataCache.get(component);\r\n                            if (props) {\r\n                                props.set(property, value);\r\n                            }\r\n                            else {\r\n                                const newProps = new Map();\r\n                                newProps.set(property, value);\r\n                                this.dataCache.set(component, newProps);\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            });\r\n            // Do not notify the widgets if the context bar is closed (this will prevent unnecessary work done by the widget)\r\n            // If the context bar is open, we can notify the components (and clean the dataCache that is no longer needed)\r\n            if (this.isOpen) {\r\n                this.notifyComponents();\r\n                this.dataCache = new Map();\r\n            }\r\n            // we only want to highlight the context change if any of the context pages was affected by the changed properties\r\n            if (this.isAnyAffectedContextPageReady(changedProperties)) {\r\n                if (!this.isOpen) {\r\n                    this.broadcastService.emit('contextBarHighlight');\r\n                }\r\n                if (this.currentActivator) {\r\n                    this.showPageWithActivator(this.currentActivator);\r\n                }\r\n            }\r\n        }\r\n        if (this.pageLoad) {\r\n            this.pageLoad = !this.pageLoad;\r\n        }\r\n    }\r\n    findActivator(property) {\r\n        if (this.pages && this.mappings) {\r\n            for (const page of this.pages) {\r\n                this.mappings.forEach((componentsList, mappingProperty, map) => {\r\n                    if (property === mappingProperty) {\r\n                        return page.activator;\r\n                    }\r\n                    return undefined;\r\n                });\r\n            }\r\n        }\r\n        return property;\r\n    }\r\n    notifyComponents() {\r\n        const propsData = [];\r\n        this.dataCache.forEach((propertiesList, componentId, map1) => {\r\n            if (propertiesList && componentId) {\r\n                const props = [];\r\n                propertiesList.forEach((propertyValue, propertyName, map2) => {\r\n                    if (propertyValue && propertyName) {\r\n                        const prop = {\r\n                            key: propertyName,\r\n                            value: propertyValue\r\n                        };\r\n                        props.push(prop);\r\n                    }\r\n                });\r\n                propsData.push({\r\n                    componentId,\r\n                    properties: props\r\n                });\r\n            }\r\n        });\r\n        propsData.forEach((prop) => {\r\n            this.broadcastService.emit('contextPropertyChanged', prop);\r\n        });\r\n    }\r\n    showPageWithActivator(activator) {\r\n        const totalPages = this.pages.length;\r\n        if (totalPages <= 1) {\r\n            return;\r\n        }\r\n        let activatorPageIndex = 0;\r\n        for (let i = 0; i < totalPages; i++) {\r\n            const page = this.pages[i];\r\n            if (page.activator === activator) {\r\n                activatorPageIndex = i;\r\n                break;\r\n            }\r\n        }\r\n        this.selected = activatorPageIndex;\r\n        this.showPageOnIndex(activatorPageIndex);\r\n    }\r\n    // checks if any of the context pages affected by the changes are ready to display data\r\n    isAnyAffectedContextPageReady(changedProperties) {\r\n        let returnValue = false;\r\n        if (!changedProperties || !this.bindings || !this.mappings) {\r\n            return false;\r\n        }\r\n        // get the affected bindings\r\n        const affectedBindings = [];\r\n        for (const prop of changedProperties) {\r\n            for (const bindingId in this.bindings) {\r\n                if (this.bindings.hasOwnProperty(bindingId)) {\r\n                    const binding = this.bindings[bindingId];\r\n                    for (const propertyInfo in binding) {\r\n                        // if the binding has this property, we add it to the affectedBindings array\r\n                        if (binding[propertyInfo] === prop) {\r\n                            affectedBindings.push({ bindingId, bindings: binding });\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        // for each of the affected data bindings\r\n        // we'll check if they have all the properties defined and therefore if they are ready to get data from the server\r\n        for (const bindingId in affectedBindings) {\r\n            if (affectedBindings.hasOwnProperty(bindingId)) {\r\n                // by default we'll say the binding is ready, if we find any property in\r\n                // this binding that is not in the dataCache, we'll set this as false\r\n                let isBindingReady = true;\r\n                const binding = affectedBindings[bindingId];\r\n                const dataCacheElement = this.dataCache.get(binding.bindingId);\r\n                if (dataCacheElement) {\r\n                    for (const propertyInfo in binding.bindings) {\r\n                        if (binding.bindings.hasOwnProperty(propertyInfo)) {\r\n                            const entityProperty = binding.bindings[propertyInfo];\r\n                            const propertyValue = dataCacheElement.get(entityProperty);\r\n                            if (!propertyValue) {\r\n                                isBindingReady = false;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n                else {\r\n                    isBindingReady = false;\r\n                }\r\n                if (isBindingReady === true) {\r\n                    // we just need one of the bindings that was affected by the changes to\r\n                    // be ready to get data to display the context pages highlight animation\r\n                    returnValue = true;\r\n                }\r\n            }\r\n        }\r\n        return returnValue;\r\n    }\r\n    loadCtxComponents() {\r\n        let currentRoute = this.routeHelperService.getRouteFromOutlet(this.router, \"primary\" /* OutletEnum.Primary */);\r\n        if (currentRoute) {\r\n            while (currentRoute.children.length > 0) {\r\n                currentRoute = currentRoute.children[0];\r\n            }\r\n        }\r\n        // eslint-disable-next-line @typescript-eslint/dot-notation\r\n        return currentRoute?.snapshot?.data['contextComponents'];\r\n    }\r\n}\r\nContextBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextBarComponent, deps: [{ token: i1$1.BroadcastService }, { token: i1$1.AppContextService }, { token: i1$2.ActivatedRoute }, { token: i1$1.RouteHelperService }, { token: i1$1.StorageService }], target: i0.ɵɵFactoryTarget.Component });\r\nContextBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ContextBarComponent, selector: \"pri-contextbar\", ngImport: i0, template: \"<div class=\\\"contextbar\\\" [ngClass]=\\\"{ 'contextbar-open': isOpen, 'showing-alerts': appContextService.hasAlerts() }\\\">\\r\\n\\t<div class=\\\"wrapper\\\">\\r\\n\\t\\t<div class=\\\"title\\\">\\r\\n\\t\\t\\t<div class=\\\"title-text\\\" priTooltipHover>\\r\\n\\t\\t\\t\\t{{ currentPageTitle }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"title-close-icon ti-ux-close\\\" (click)=\\\"close()\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"body\\\">\\r\\n\\t\\t\\t<div class=\\\"carousel-body\\\" enter-animation>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"text\\\"\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let page of pages; let i = index\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ active: i === selected, hide: pages.length === 0 }\\\">\\r\\n\\t\\t\\t\\t\\t<pri-context-page [hidden]=\\\"i !== selected\\\" [components]=\\\"page.components\\\"></pri-context-page>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"controllers\\\" *ngIf=\\\"pages.length > 1\\\" enter-animation>\\r\\n\\t\\t\\t<div class=\\\"carousel\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"previous-side ti-ux-chevron-left\\\" (click)=\\\"showPreviousPage()\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"slide-number\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"pages-tabs\\\" *ngFor=\\\"let page of pages; let i = index\\\" (click)=\\\"showPageOnIndex(i)\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"pages-tab\\\" [ngClass]=\\\"{ active: i === selected }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"next-side ti-ux-chevron-right\\\" (click)=\\\"showNextPage()\\\"></div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-contextbar .contextbar{position:fixed;top:3.5714285714rem;bottom:44px;right:-320px;width:320px;background-color:var(--grey-1);z-index:1043;overflow:hidden;transition:all .35s;border-left:1px solid var(--grey-4);border-bottom:1px solid var(--grey-4);box-shadow:0}pri-contextbar .contextbar.contextbar-open{right:0;box-shadow:-.2857142857rem 0 1.0714285714rem var(--shadow-4)}pri-contextbar .contextbar.showing-alerts{top:calc(3.5714285714rem + 2.2857142857rem)}pri-contextbar .contextbar>.wrapper.contextbar-open{width:320px;display:flex;flex-direction:column}pri-contextbar .contextbar>.wrapper.contextbar-closed{width:0;box-shadow:0}pri-contextbar .contextbar>.wrapper{display:flex;flex-direction:column;width:100%;height:100%}pri-contextbar .contextbar>.wrapper .title{height:50px;background-color:var(--grey-3);color:var(--theme-100);font-size:12pt;text-align:center;display:flex;align-items:center;justify-content:center}pri-contextbar .contextbar>.wrapper .title .title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 28px 0 20px}pri-contextbar .contextbar>.wrapper .title .title-close-icon{position:absolute;top:14px;right:10px;cursor:pointer;color:var(--grey-7)}pri-contextbar .contextbar>.wrapper>.page-selector{height:30px}pri-contextbar .contextbar>.wrapper>.page-selector>div{cursor:pointer;height:100%}pri-contextbar .contextbar>.wrapper>.page-selector>div>.arrow{font-size:12pt}pri-contextbar .contextbar>.wrapper>.page-selector>div>.text{font-size:8pt;margin-top:-1px;text-transform:uppercase}pri-contextbar .contextbar>.wrapper>.page-selector>div>div{position:relative;top:50%;transform:translateY(-50%)}pri-contextbar .contextbar>.wrapper>.page-selector>.next{float:right}pri-contextbar .contextbar>.wrapper>.page-selector>.next>div{float:right}pri-contextbar .contextbar>.wrapper>.page-selector>.previous{float:left}pri-contextbar .contextbar>.wrapper>.page-selector>.previous>div{float:left}pri-contextbar .contextbar>.wrapper>.content{margin:5px 15px;overflow-y:auto;height:calc(100% - 70px)}pri-contextbar .contextbar>.wrapper .body{width:100%;height:100%;color:var(--grey-7);font-size:14px;line-height:22px;padding:0 20px 10px;overflow-y:auto}pri-contextbar .contextbar>.wrapper .body .carousel-body .text{word-wrap:break-word}pri-contextbar .contextbar>.wrapper .body .carousel-body .text.active{width:100%;height:100%}pri-contextbar .contextbar>.wrapper .controllers{width:100%;height:50px;flex-shrink:0}pri-contextbar .contextbar>.wrapper .controllers .carousel{width:100%;height:100%;display:flex}pri-contextbar .contextbar>.wrapper .controllers .carousel .hide{opacity:0}pri-contextbar .contextbar>.wrapper .controllers .carousel .previous-side,pri-contextbar .contextbar>.wrapper .controllers .carousel .next-side{height:100%;align-items:center;display:flex;font-size:14px;justify-content:center;cursor:pointer;color:var(--grey-8);padding-right:20px;padding-left:20px}pri-contextbar .contextbar>.wrapper .controllers .carousel .previous-side:hover,pri-contextbar .contextbar>.wrapper .controllers .carousel .next-side:hover{font-size:16px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number{width:100%;float:left;display:flex;align-items:center;justify-content:center}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs{display:flex;align-items:center;justify-content:center;padding-left:8px;padding-right:8px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs .pages-tab{width:8px;height:8px;border:1px solid var(--grey-4);background-color:var(--grey-3);border-radius:42px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs .pages-tab.active{background-color:var(--grey-1)}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs:hover .pages-tab{width:10px;height:10px}@media only screen and (max-width: 767px){pri-contextbar .contextbar.contextbar-open{width:100%}pri-contextbar .contextbar>.wrapper.contextbar{width:100%}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"component\", type: ContextPageComponent, selector: \"pri-context-page\", inputs: [\"components\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ContextBarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-contextbar', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"contextbar\\\" [ngClass]=\\\"{ 'contextbar-open': isOpen, 'showing-alerts': appContextService.hasAlerts() }\\\">\\r\\n\\t<div class=\\\"wrapper\\\">\\r\\n\\t\\t<div class=\\\"title\\\">\\r\\n\\t\\t\\t<div class=\\\"title-text\\\" priTooltipHover>\\r\\n\\t\\t\\t\\t{{ currentPageTitle }}\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"title-close-icon ti-ux-close\\\" (click)=\\\"close()\\\"></div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"body\\\">\\r\\n\\t\\t\\t<div class=\\\"carousel-body\\\" enter-animation>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"text\\\"\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let page of pages; let i = index\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ active: i === selected, hide: pages.length === 0 }\\\">\\r\\n\\t\\t\\t\\t\\t<pri-context-page [hidden]=\\\"i !== selected\\\" [components]=\\\"page.components\\\"></pri-context-page>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<div class=\\\"controllers\\\" *ngIf=\\\"pages.length > 1\\\" enter-animation>\\r\\n\\t\\t\\t<div class=\\\"carousel\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"previous-side ti-ux-chevron-left\\\" (click)=\\\"showPreviousPage()\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"slide-number\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"pages-tabs\\\" *ngFor=\\\"let page of pages; let i = index\\\" (click)=\\\"showPageOnIndex(i)\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"pages-tab\\\" [ngClass]=\\\"{ active: i === selected }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"next-side ti-ux-chevron-right\\\" (click)=\\\"showNextPage()\\\"></div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-contextbar .contextbar{position:fixed;top:3.5714285714rem;bottom:44px;right:-320px;width:320px;background-color:var(--grey-1);z-index:1043;overflow:hidden;transition:all .35s;border-left:1px solid var(--grey-4);border-bottom:1px solid var(--grey-4);box-shadow:0}pri-contextbar .contextbar.contextbar-open{right:0;box-shadow:-.2857142857rem 0 1.0714285714rem var(--shadow-4)}pri-contextbar .contextbar.showing-alerts{top:calc(3.5714285714rem + 2.2857142857rem)}pri-contextbar .contextbar>.wrapper.contextbar-open{width:320px;display:flex;flex-direction:column}pri-contextbar .contextbar>.wrapper.contextbar-closed{width:0;box-shadow:0}pri-contextbar .contextbar>.wrapper{display:flex;flex-direction:column;width:100%;height:100%}pri-contextbar .contextbar>.wrapper .title{height:50px;background-color:var(--grey-3);color:var(--theme-100);font-size:12pt;text-align:center;display:flex;align-items:center;justify-content:center}pri-contextbar .contextbar>.wrapper .title .title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 28px 0 20px}pri-contextbar .contextbar>.wrapper .title .title-close-icon{position:absolute;top:14px;right:10px;cursor:pointer;color:var(--grey-7)}pri-contextbar .contextbar>.wrapper>.page-selector{height:30px}pri-contextbar .contextbar>.wrapper>.page-selector>div{cursor:pointer;height:100%}pri-contextbar .contextbar>.wrapper>.page-selector>div>.arrow{font-size:12pt}pri-contextbar .contextbar>.wrapper>.page-selector>div>.text{font-size:8pt;margin-top:-1px;text-transform:uppercase}pri-contextbar .contextbar>.wrapper>.page-selector>div>div{position:relative;top:50%;transform:translateY(-50%)}pri-contextbar .contextbar>.wrapper>.page-selector>.next{float:right}pri-contextbar .contextbar>.wrapper>.page-selector>.next>div{float:right}pri-contextbar .contextbar>.wrapper>.page-selector>.previous{float:left}pri-contextbar .contextbar>.wrapper>.page-selector>.previous>div{float:left}pri-contextbar .contextbar>.wrapper>.content{margin:5px 15px;overflow-y:auto;height:calc(100% - 70px)}pri-contextbar .contextbar>.wrapper .body{width:100%;height:100%;color:var(--grey-7);font-size:14px;line-height:22px;padding:0 20px 10px;overflow-y:auto}pri-contextbar .contextbar>.wrapper .body .carousel-body .text{word-wrap:break-word}pri-contextbar .contextbar>.wrapper .body .carousel-body .text.active{width:100%;height:100%}pri-contextbar .contextbar>.wrapper .controllers{width:100%;height:50px;flex-shrink:0}pri-contextbar .contextbar>.wrapper .controllers .carousel{width:100%;height:100%;display:flex}pri-contextbar .contextbar>.wrapper .controllers .carousel .hide{opacity:0}pri-contextbar .contextbar>.wrapper .controllers .carousel .previous-side,pri-contextbar .contextbar>.wrapper .controllers .carousel .next-side{height:100%;align-items:center;display:flex;font-size:14px;justify-content:center;cursor:pointer;color:var(--grey-8);padding-right:20px;padding-left:20px}pri-contextbar .contextbar>.wrapper .controllers .carousel .previous-side:hover,pri-contextbar .contextbar>.wrapper .controllers .carousel .next-side:hover{font-size:16px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number{width:100%;float:left;display:flex;align-items:center;justify-content:center}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs{display:flex;align-items:center;justify-content:center;padding-left:8px;padding-right:8px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs .pages-tab{width:8px;height:8px;border:1px solid var(--grey-4);background-color:var(--grey-3);border-radius:42px}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs .pages-tab.active{background-color:var(--grey-1)}pri-contextbar .contextbar>.wrapper .controllers .carousel .slide-number .pages-tabs:hover .pages-tab{width:10px;height:10px}@media only screen and (max-width: 767px){pri-contextbar .contextbar.contextbar-open{width:100%}pri-contextbar .contextbar>.wrapper.contextbar{width:100%}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.BroadcastService }, { type: i1$1.AppContextService }, { type: i1$2.ActivatedRoute }, { type: i1$1.RouteHelperService }, { type: i1$1.StorageService }]; } });\n\nclass DownloadsPanelComponent {\r\n    constructor(appContextService) {\r\n        this.appContextService = appContextService;\r\n        this.progressBars = [];\r\n    }\r\n    /**\r\n     * Fires when the download is complete\r\n     *\r\n     * @param uid the progress bar uid\r\n     */\r\n    downloadComplete(uid) {\r\n        const progressBar = this.progressBars.find((item) => item.uid === uid);\r\n        progressBar.count++;\r\n    }\r\n    /**\r\n     * Fires when all download is complete\r\n     *\r\n     * @param uid the progress bar uid\r\n     */\r\n    allDownloadComplete(uid) {\r\n        const index = this.progressBars.findIndex((item) => item.uid === uid);\r\n        this.progressBars.splice(index, 1);\r\n    }\r\n}\r\nDownloadsPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DownloadsPanelComponent, deps: [{ token: i1$1.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nDownloadsPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DownloadsPanelComponent, selector: \"pri-downloads-panel-component\", ngImport: i0, template: \"<div class=\\\"downloads-panel-container\\\" [ngClass]=\\\"{'overlay': overlay, 'showing-alerts': appContextService.hasAlerts()}\\\">\\r\\n    <pri-download-progress-bar @animProgressBar *ngFor=\\\"let progressBar of progressBars\\\" [data]=\\\"progressBar\\\"></pri-download-progress-bar>\\r\\n</div>\", styles: [\"pri-downloads-panel-component{display:flex}pri-downloads-panel-component .downloads-panel-container{display:flex;align-items:flex-end;flex-direction:column;position:fixed;width:100%;height:100%;left:0;top:0;z-index:99999;padding:62px 20px 50px;pointer-events:none}pri-downloads-panel-component .downloads-panel-container.overlay{pointer-events:auto;background-color:#ffffff4d}pri-downloads-panel-component .downloads-panel-container.showing-alerts{padding-top:calc(downloadsPanelPaddingTop + 2.2857142857rem)}pri-downloads-panel-component .downloads-panel-container pri-download-progress-bar{margin-bottom:10px;width:200px}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"component\", type: i2.PriDownloadProgressBarComponent, selector: \"pri-download-progress-bar\", inputs: [\"data\"] }], animations: [\r\n        trigger('animProgressBar', [\r\n            transition(':enter', [\r\n                style({ opacity: 0, transform: 'translateY(100px)' }),\r\n                animate('.5s ease', style({ opacity: 1, transform: 'translateY(0)' }))\r\n            ]),\r\n            transition(':leave', [\r\n                animate('.5s ease', style({ opacity: 0, transform: 'translateY(-100px)' }))\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DownloadsPanelComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-downloads-panel-component', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('animProgressBar', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0, transform: 'translateY(100px)' }),\r\n                                animate('.5s ease', style({ opacity: 1, transform: 'translateY(0)' }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                animate('.5s ease', style({ opacity: 0, transform: 'translateY(-100px)' }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<div class=\\\"downloads-panel-container\\\" [ngClass]=\\\"{'overlay': overlay, 'showing-alerts': appContextService.hasAlerts()}\\\">\\r\\n    <pri-download-progress-bar @animProgressBar *ngFor=\\\"let progressBar of progressBars\\\" [data]=\\\"progressBar\\\"></pri-download-progress-bar>\\r\\n</div>\", styles: [\"pri-downloads-panel-component{display:flex}pri-downloads-panel-component .downloads-panel-container{display:flex;align-items:flex-end;flex-direction:column;position:fixed;width:100%;height:100%;left:0;top:0;z-index:99999;padding:62px 20px 50px;pointer-events:none}pri-downloads-panel-component .downloads-panel-container.overlay{pointer-events:auto;background-color:#ffffff4d}pri-downloads-panel-component .downloads-panel-container.showing-alerts{padding-top:calc(downloadsPanelPaddingTop + 2.2857142857rem)}pri-downloads-panel-component .downloads-panel-container pri-download-progress-bar{margin-bottom:10px;width:200px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.AppContextService }]; } });\n\nclass MenuItem {\r\n    constructor(initialValue) {\r\n        if (initialValue) {\r\n            const { id, uri, caption, useCustomUri = false, extraClass = '', menuItems = [], subscriptionClaims = [], type, icon, isSearchable, isVisible = true, operationId } = initialValue;\r\n            this.id = id;\r\n            this.uri = uri;\r\n            this.caption = caption;\r\n            this.useCustomUri = useCustomUri;\r\n            this.extraClass = extraClass;\r\n            this.menuItems = menuItems;\r\n            this.subscriptionClaims = subscriptionClaims;\r\n            this.type = type;\r\n            this.isSearchable = isSearchable;\r\n            this.isVisible = isVisible;\r\n            this.icon = icon;\r\n            this.operationId = operationId;\r\n        }\r\n        else {\r\n            this.useCustomUri = false;\r\n            this.extraClass = '';\r\n            this.isVisible = true;\r\n            this.menuItems = [];\r\n            this.subscriptionClaims = [];\r\n            this.operationId = null;\r\n        }\r\n    }\r\n    static getIcon(menuItem, isSelected) {\r\n        if (menuItem.icon) {\r\n            return menuItem.icon;\r\n        }\r\n        const icon = this.getDefaultIcon(menuItem);\r\n        if (isSelected) {\r\n            return this.getSelectedIcon(icon);\r\n        }\r\n        return icon;\r\n    }\r\n    static getCaptionKey(menuItem) {\r\n        return `menu-${this.replaceDiacritics(menuItem.caption).replace(/\\s+/g, '-').toLowerCase()}`;\r\n    }\r\n    static getSelectedIcon(icon) {\r\n        return icon.replace('-outline', '-fill');\r\n    }\r\n    static getDefaultIcon(menuItem) {\r\n        return menuItem.menuItems.length > 0 ? 'ti-ux-folder-outline' : 'ti-ux-line';\r\n    }\r\n    static replaceDiacritics(text) {\r\n        let s = text;\r\n        const diacritics = [\r\n            /[\\300-\\306]/g,\r\n            /[\\340-\\346]/g,\r\n            /[\\310-\\313]/g,\r\n            /[\\350-\\353]/g,\r\n            /[\\314-\\317]/g,\r\n            /[\\354-\\357]/g,\r\n            /[\\322-\\330]/g,\r\n            /[\\362-\\370]/g,\r\n            /[\\331-\\334]/g,\r\n            /[\\371-\\374]/g,\r\n            /[\\321]/g,\r\n            /[\\361]/g,\r\n            /[\\307]/g,\r\n            /[\\347]/g // C, c\r\n        ];\r\n        const chars = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u', 'N', 'n', 'C', 'c'];\r\n        for (let i = 0; i < diacritics.length; i++) {\r\n            s = s.replace(diacritics[i], chars[i]);\r\n        }\r\n        return s;\r\n    }\r\n}\r\nMenuItem.OverviewMenuId = 'fcedbb41-033b-46d3-9e5f-111cf53ec43f';\n\nclass MenuDefinition {\r\n    constructor(menuDefinition) {\r\n        // contextUri: string;\r\n        this.flatMenu = false;\r\n        this.useDefaultIcons = true;\r\n        this.defaultActions = [];\r\n        this.menuItems = [];\r\n        if (menuDefinition) {\r\n            Object.assign(this, menuDefinition);\r\n        }\r\n    }\r\n}\n\nclass MenuService extends SearchProvider {\r\n    constructor(httpClient, router, appContext, i18n, searchService, broadcastService, routeHelperService, cacheHelperService, storageService, roleService, amsService) {\r\n        super();\r\n        this.httpClient = httpClient;\r\n        this.router = router;\r\n        this.appContext = appContext;\r\n        this.i18n = i18n;\r\n        this.searchService = searchService;\r\n        this.broadcastService = broadcastService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.cacheHelperService = cacheHelperService;\r\n        this.storageService = storageService;\r\n        this.roleService = roleService;\r\n        this.amsService = amsService;\r\n        this.globalMenuDefinition = new MenuDefinition();\r\n        this.MenuItemDefaultType = 'standard';\r\n        this.name = 'menu';\r\n        this.menuDefinition = new BehaviorSubject(new MenuDefinition());\r\n        this.searchService.registerProvider(this);\r\n    }\r\n    getMenuDefinition(url) {\r\n        const menuVersion = this.appContext.getMenuVersion();\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(true, true, true, ['menu-definition'], menuVersion ? [menuVersion] : []);\r\n        const menu = this.storageService.get(cacheKey);\r\n        if (menu) {\r\n            const storedMenuDefinition = JSON.parse(menu);\r\n            this.globalMenuDefinition = this.applyClaimsRestriction(storedMenuDefinition);\r\n            this.menuDefinition.next(this.globalMenuDefinition);\r\n        }\r\n        else {\r\n            const roleKey = this.roleService.roleKey;\r\n            url = url.replace('{{role}}', roleKey ? roleKey.toLowerCase() : 'root'); // If no role, use root application menu\r\n            this.httpClient.get(url).subscribe((definition) => {\r\n                this.globalMenuDefinition = this.applyClaimsRestriction(definition);\r\n                if (!this.globalMenuDefinition.flatMenu) {\r\n                    // Place the overview menu at first position\r\n                    const overviewMenu = this.createOverviewMenu(this.globalMenuDefinition);\r\n                    this.globalMenuDefinition.menuItems.unshift(overviewMenu);\r\n                }\r\n                if (this.globalMenuDefinition.useDefaultIcons === undefined) {\r\n                    // Show default menu icons\r\n                    this.globalMenuDefinition.useDefaultIcons = true;\r\n                }\r\n                this.storageService.set(cacheKey, JSON.stringify(this.globalMenuDefinition));\r\n                this.menuDefinition.next(this.globalMenuDefinition);\r\n            }, (err) => {\r\n                console.error(`Failed to get menu contents from '${url}'`);\r\n            });\r\n        }\r\n        return this.menuDefinition.asObservable();\r\n    }\r\n    getCustomMenu(url) {\r\n        this.httpClient.get(url).subscribe((definition) => {\r\n            definition.forEach((menusToSearch) => {\r\n                // Search in the first level of menu\r\n                const menuFoundIndex = this.globalMenuDefinition.menuItems.findIndex((child) => child.id === menusToSearch.id);\r\n                if (menuFoundIndex !== -1) {\r\n                    menusToSearch.menuItems.forEach((menuItem) => {\r\n                        this.globalMenuDefinition.menuItems[menuFoundIndex].menuItems.push(menuItem);\r\n                    });\r\n                }\r\n                else {\r\n                    let controlFlag = false;\r\n                    // Search in the child menus\r\n                    this.globalMenuDefinition.menuItems.forEach((subMenuItem) => {\r\n                        if (!controlFlag) {\r\n                            controlFlag = this.findMenuRecursive(menusToSearch, subMenuItem);\r\n                        }\r\n                    });\r\n                }\r\n            });\r\n            this.menuDefinition.next(this.globalMenuDefinition);\r\n        }, (err) => {\r\n            console.error(`Failed to get custom menus from '${url}'`);\r\n        });\r\n        return this.menuDefinition.asObservable();\r\n    }\r\n    getQuickActions(url) {\r\n        const cacheKey = this.cacheHelperService.generateCacheKey(true, true, true, ['quick-actions']);\r\n        const menu = this.storageService.get(cacheKey);\r\n        if (menu) {\r\n            return new Promise((resolve) => {\r\n                const quickActions = JSON.parse(menu);\r\n                resolve(quickActions);\r\n            });\r\n        }\r\n        else {\r\n            return new Promise((resolve, reject) => {\r\n                const roleKey = this.roleService.roleKey;\r\n                url = url.replace('{{role}}', roleKey ? roleKey.toLowerCase() : 'root'); // If no role, use root application menu\r\n                this.httpClient.get(url).subscribe((quickActions) => {\r\n                    this.storageService.set(cacheKey, JSON.stringify(quickActions));\r\n                    resolve(quickActions);\r\n                }, (err) => {\r\n                    reject(err);\r\n                });\r\n            });\r\n        }\r\n    }\r\n    search(searchTerm) {\r\n        return new Promise((resolve) => {\r\n            let searchResult = new Array();\r\n            this.menuDefinition.value.menuItems.forEach((m) => {\r\n                const deepFindResult = this.deepFind(searchTerm, m.menuItems, m.caption);\r\n                if (deepFindResult && deepFindResult.length > 0) {\r\n                    searchResult = [...searchResult, ...deepFindResult];\r\n                }\r\n            });\r\n            resolve(searchResult);\r\n        });\r\n    }\r\n    navigateToHomePage() {\r\n        const defaultAction = this.menuDefinition.value.defaultActions.length > 0 ? this.menuDefinition.value.defaultActions[0] : null;\r\n        // check if we're not already in the defaultUri\r\n        if (!this.router.url.includes(defaultAction?.contextUri) ||\r\n            defaultAction?.contextUri === '/' ||\r\n            defaultAction?.contextUri === '') {\r\n            // clear title\r\n            this.broadcastService.emit('eventTitleChanged', { value: '' });\r\n            if (defaultAction?.contextUri) {\r\n                this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, defaultAction.contextUri, {}, \"primary\" /* OutletEnum.Primary */, false);\r\n            }\r\n            else {\r\n                this.routeHelperService.navigateToRoot(this.amsService.account, this.amsService.subscription);\r\n            }\r\n        }\r\n    }\r\n    findParentMenuItem(operationId) {\r\n        for (const menuItem of this.menuDefinition.value.menuItems) {\r\n            const result = this.findMenuItemRecursive(operationId, menuItem);\r\n            if (result) {\r\n                return result;\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    findMenuRecursive(menuToSearch, subMenuItem) {\r\n        const result = subMenuItem.menuItems.findIndex((child) => child.id === menuToSearch.id);\r\n        if (result !== -1) {\r\n            menuToSearch.menuItems.forEach((menuItem) => {\r\n                subMenuItem.menuItems[result].menuItems.push(menuItem);\r\n                return true;\r\n            });\r\n        }\r\n        for (const childMenuItem of subMenuItem.menuItems) {\r\n            this.findMenuRecursive(menuToSearch, childMenuItem);\r\n        }\r\n        return false;\r\n    }\r\n    findMenuItemRecursive(operationId, menuItem) {\r\n        const result = menuItem.menuItems.find((child) => child.operationId === operationId);\r\n        if (result) {\r\n            return menuItem;\r\n        }\r\n        for (const childMenuItem of menuItem.menuItems) {\r\n            const childResult = this.findMenuItemRecursive(operationId, childMenuItem);\r\n            if (childResult) {\r\n                return childResult;\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    createOverviewMenu(menuDefinition) {\r\n        const overviewMenu = new MenuItem({\r\n            id: MenuItem.OverviewMenuId,\r\n            caption: 'shell.components.RES_Shell_Menu_Overview_Heading',\r\n            icon: 'ti-ux-overview-outline',\r\n            menuItems: [],\r\n            isVisible: true\r\n        });\r\n        const defaultAction = menuDefinition.defaultActions.length > 0 ? menuDefinition.defaultActions[0] : null;\r\n        if (defaultAction) {\r\n            const dashboardHeading = new MenuItem({\r\n                id: '20d94f03-4fa6-4672-a91c-5e725ddf8e75',\r\n                caption: 'shell.components.RES_Shell_Menu_Overview_Dashboard_Heading',\r\n                uri: defaultAction.contextUri?.toLowerCase(),\r\n                type: 'standard',\r\n                icon: 'ti-ux-dashboard-outline',\r\n                extraClass: 'dashboard'\r\n            });\r\n            overviewMenu.menuItems.unshift(dashboardHeading);\r\n        }\r\n        return overviewMenu;\r\n    }\r\n    deepFind(searchTerm, items, parentName) {\r\n        searchTerm = searchTerm.toLowerCase();\r\n        const match = items.filter((it) => (it.type == null || it.type === this.MenuItemDefaultType) &&\r\n            it.uri != null &&\r\n            it.caption != null &&\r\n            it.isSearchable &&\r\n            this.i18n\r\n                .get(it.caption)\r\n                .toLowerCase()\r\n                .normalize('NFD')\r\n                .replace(/[\\u0300-\\u036f]/g, '')\r\n                .includes(searchTerm));\r\n        let res = match.map((o) => {\r\n            const snippet = `<div><span>${this.i18n.get(parentName)}</span></div>`;\r\n            const r = {\r\n                id: o.uri,\r\n                url: o.uri,\r\n                useCustomUri: o.useCustomUri,\r\n                authorityName: 'menus',\r\n                authorityTitle: 'Menus',\r\n                title: this.i18n.get(o.caption),\r\n                snippet\r\n            };\r\n            return r;\r\n        });\r\n        const subMenus = items.filter((it) => it.menuItems != null);\r\n        if (subMenus && subMenus.length > 0) {\r\n            subMenus.forEach((m) => {\r\n                if (m.menuItems && m.menuItems.length > 0) {\r\n                    const breadcrumb = this.i18n.get(parentName) + '/' + this.i18n.get(m.caption);\r\n                    const deepFindResults = this.deepFind(searchTerm, m.menuItems, breadcrumb);\r\n                    if (deepFindResults) {\r\n                        res = [...res, ...deepFindResults];\r\n                    }\r\n                }\r\n            });\r\n        }\r\n        return res;\r\n    }\r\n    applyClaimsRestriction(menuDefinition) {\r\n        const subscriptionClaims = this.appContext.getSubscriptionClaims();\r\n        menuDefinition.defaultActions = this.applyDefaultActionsClaimsRestriction(menuDefinition.defaultActions, subscriptionClaims);\r\n        menuDefinition.menuItems = this.applyClaimsRestrictionRecursive(menuDefinition.menuItems, subscriptionClaims);\r\n        return menuDefinition;\r\n    }\r\n    applyClaimsRestrictionRecursive(menuItems, subscriptionClaims) {\r\n        const allowedMenuItems = menuItems.filter((m) => {\r\n            if (m.subscriptionClaims && m.subscriptionClaims.length > 0) {\r\n                const matchClaimResult = m.subscriptionClaims.some((claimString) => {\r\n                    // For single claims, just check if it exists in subscriptionClaims\r\n                    if (subscriptionClaims.includes(claimString)) {\r\n                        return true;\r\n                    }\r\n                    // Split each claimString by space\r\n                    const splitClaims = claimString.split(' ');\r\n                    // For space-separated claims, check if every individual claim from splitClaims exists in subscriptionClaims\r\n                    if (splitClaims.length > 1) {\r\n                        return splitClaims.every((claim) => subscriptionClaims.includes(claim));\r\n                    }\r\n                    return false;\r\n                });\r\n                return matchClaimResult;\r\n            }\r\n            return true;\r\n        });\r\n        const parentMenuItemsToRemove = [];\r\n        allowedMenuItems.forEach((childMenuItem) => {\r\n            const childMenuItems = this.applyClaimsRestrictionRecursive(childMenuItem.menuItems, subscriptionClaims);\r\n            if (childMenuItem.menuItems.length > 0 && childMenuItems.length === 0) {\r\n                parentMenuItemsToRemove.push(childMenuItem);\r\n            }\r\n            else {\r\n                childMenuItem.menuItems = childMenuItems;\r\n            }\r\n        });\r\n        return allowedMenuItems.filter((allowedMenuItem) => !parentMenuItemsToRemove.find((menuToRemove) => menuToRemove === allowedMenuItem));\r\n    }\r\n    applyDefaultActionsClaimsRestriction(defaultActions, subscriptionClaims) {\r\n        const allowedDefaultActions = defaultActions?.filter((m) => {\r\n            if (m.subscriptionClaims && m.subscriptionClaims.length > 0) {\r\n                const matchedClaim = m.subscriptionClaims.find((claim) => subscriptionClaims.includes(claim));\r\n                return matchedClaim;\r\n            }\r\n            return true;\r\n        });\r\n        if (allowedDefaultActions?.length > 0) {\r\n            return allowedDefaultActions;\r\n        }\r\n        return [];\r\n    }\r\n}\r\nMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenuService, deps: [{ token: i1.HttpClient }, { token: i1$2.Router }, { token: i1$1.AppContextService }, { token: i4.I18nService }, { token: i5.SearchService }, { token: i1$1.BroadcastService }, { token: i1$1.RouteHelperService }, { token: i1$1.CacheHelperService }, { token: i1$1.StorageService }, { token: i1$1.RoleService }, { token: i1$1.AmsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenuService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenuService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i1$2.Router }, { type: i1$1.AppContextService }, { type: i4.I18nService }, { type: i5.SearchService }, { type: i1$1.BroadcastService }, { type: i1$1.RouteHelperService }, { type: i1$1.CacheHelperService }, { type: i1$1.StorageService }, { type: i1$1.RoleService }, { type: i1$1.AmsService }]; } });\n\nclass DraftsService extends SearchProvider {\r\n    constructor(http, searchService, i18nService, menuService, exceptionHandlerService) {\r\n        super();\r\n        this.http = http;\r\n        this.searchService = searchService;\r\n        this.i18nService = i18nService;\r\n        this.menuService = menuService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this._allItems = [];\r\n        this._subscribers = [];\r\n        this.name = 'drafts';\r\n        this.title = this.i18nService.get('shell.components.RES_Shell_Drafts_Heading');\r\n        this.searchService.registerProvider(this);\r\n    }\r\n    Add(item) {\r\n        this._allItems.push(item);\r\n        if (this._subscribers.length > 0) {\r\n            this._subscribers.forEach((s) => {\r\n                if (!this._subscribers[0].closed) {\r\n                    s.next(this._allItems);\r\n                }\r\n            });\r\n        }\r\n    }\r\n    populateUserWorkInProgress(uri, forceGet = false) {\r\n        // Set MinDate and MaxDate Params - ex: '2019-07-15T00:00:00'\r\n        const startingFrom = new Date();\r\n        startingFrom.setMonth(startingFrom.getMonth() - 1);\r\n        const minDate = startingFrom.toISOString();\r\n        const until = new Date();\r\n        until.setDate(until.getDate() + 1);\r\n        const maxDate = until.toISOString();\r\n        uri = uri.replace('{{MinDate}}', minDate);\r\n        uri = uri.replace('{{MaxDate}}', maxDate);\r\n        const result = new Observable((subsc) => {\r\n            this._subscribers.push(subsc);\r\n            if (this._initialLoad && !forceGet) {\r\n                subsc.next(this._allItems);\r\n            }\r\n            else {\r\n                this.getEndpointResponse(uri).subscribe((r) => {\r\n                    this._initialLoad = true;\r\n                    const items = r.body;\r\n                    // Extracts the account and subscription from the url.\r\n                    // Use them to create a new url which the account and subscription are url query parameters.\r\n                    this._allItems = items.map((item) => {\r\n                        item.url = item.url.split('/#/')[1];\r\n                        const draftOperationMenu = this.menuService.findParentMenuItem(item.operationId);\r\n                        if (draftOperationMenu) {\r\n                            item.group = this.i18nService.get(draftOperationMenu.caption);\r\n                        }\r\n                        return item;\r\n                    });\r\n                    subsc.next(items);\r\n                }, (error) => {\r\n                    this.exceptionHandlerService.showError(error);\r\n                });\r\n            }\r\n        });\r\n        return result;\r\n    }\r\n    search(searchTerm) {\r\n        return new Promise((resolve) => {\r\n            searchTerm = searchTerm.toLowerCase();\r\n            const match = this._allItems.filter((i) => (i.description && i.description.toLowerCase().includes(searchTerm)) ||\r\n                i.title\r\n                    .toLowerCase()\r\n                    .normalize('NFD')\r\n                    .replace(/[\\u0300-\\u036f]/g, '')\r\n                    .includes(searchTerm));\r\n            const res = match.map((o) => {\r\n                const r = {\r\n                    id: o.documentId,\r\n                    url: o.url,\r\n                    useCustomUri: false,\r\n                    authorityName: this.name,\r\n                    icon: o.icon,\r\n                    authorityTitle: this.title,\r\n                    title: o.title,\r\n                    snippet: o.description ? o.description : ''\r\n                };\r\n                return r;\r\n            });\r\n            resolve(res);\r\n        });\r\n    }\r\n    getEndpointResponse(configUrl) {\r\n        return this.http.get(configUrl, { observe: 'response' });\r\n    }\r\n}\r\nDraftsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftsService, deps: [{ token: i1.HttpClient }, { token: i5.SearchService }, { token: i4.I18nService }, { token: MenuService }, { token: i2.ExceptionHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDraftsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftsService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftsService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i5.SearchService }, { type: i4.I18nService }, { type: MenuService }, { type: i2.ExceptionHandlerService }]; } });\n\nclass DraftsComponent {\r\n    constructor(router, amsService, draftModelService, draftsService, messagesService, broadcastService, changeDetRef) {\r\n        this.router = router;\r\n        this.amsService = amsService;\r\n        this.draftModelService = draftModelService;\r\n        this.draftsService = draftsService;\r\n        this.messagesService = messagesService;\r\n        this.broadcastService = broadcastService;\r\n        this.changeDetRef = changeDetRef;\r\n        this.toggleMenu = new EventEmitter();\r\n        this.userWorkInProgressItemsLocal = new BehaviorSubject([]);\r\n        this.allWorkInProgressItemsLocal = [];\r\n        this.loadedWorkInProgressItems = 0;\r\n        this.lastNotifiedRefreshDrafts = false;\r\n    }\r\n    set checkForDraftUpdates(updates) {\r\n        updates?.subscribe((toUpdate) => {\r\n            if (toUpdate) {\r\n                if (this.canGetWorkInProgress()) {\r\n                    this.setWorkInProgress(true, false);\r\n                }\r\n            }\r\n        });\r\n    }\r\n    get userWorkInProgressItems() {\r\n        return this.userWorkInProgressItemsLocal.asObservable();\r\n    }\r\n    get allWorkInProgressItems() {\r\n        return this.allWorkInProgressItemsLocal;\r\n    }\r\n    ngOnInit() {\r\n        this.init();\r\n    }\r\n    removeDraft(event, draft) {\r\n        event.preventDefault();\r\n        event.stopPropagation();\r\n        this.draftModelService.delete(draft.documentId).then(() => {\r\n            this.allWorkInProgressItemsLocal = this.allWorkInProgressItemsLocal.filter((item) => item.documentId !== draft.documentId);\r\n            this.userWorkInProgressItemsLocal.next(this.allWorkInProgressItemsLocal);\r\n        }, (error) => {\r\n            this.messagesService.show(error);\r\n        });\r\n    }\r\n    showMoreWorkInProgress() {\r\n        let items = this.userWorkInProgressItemsLocal.value;\r\n        items = items.concat(this.allWorkInProgressItemsLocal.slice(this.loadedWorkInProgressItems, this.loadedWorkInProgressItems + 5));\r\n        this.userWorkInProgressItemsLocal.next(items);\r\n        this.loadedWorkInProgressItems = this.userWorkInProgressItemsLocal.value.length;\r\n    }\r\n    onMenuToggle() {\r\n        this.toggleMenu.emit(null);\r\n    }\r\n    getDraftUri(activityItem) {\r\n        const url = this.amsService.addAccountAndSubscriptionToUrl(activityItem.url.replace(/^(#\\/)/, '/'));\r\n        const result = url.indexOf('/') === 0 ? url : '/' + url;\r\n        return [result.split(/[?#]/)[0]];\r\n    }\r\n    getDraftQueryParams(activityItem) {\r\n        const url = this.amsService.addAccountAndSubscriptionToUrl(activityItem.url);\r\n        if (url.indexOf('#') !== -1) {\r\n            //access queryParams without '#' on the url\r\n            const urlQueryParams = url.split('#')[1];\r\n            return this.router.parseUrl(urlQueryParams).queryParams;\r\n        }\r\n        else {\r\n            return this.router.parseUrl(url).queryParams;\r\n        }\r\n    }\r\n    init() {\r\n        this.setWorkInProgress();\r\n        this.broadcastService.subscribe('refreshDrafts', () => this.setWorkInProgress(true, true));\r\n    }\r\n    canGetWorkInProgress() {\r\n        let getWorkInProgress = false;\r\n        // get works in progress(the drafts) if the selected menu is the overview\r\n        // this happens if menu selected is = IsDefault menu (only the Overview is isDefault)\r\n        // or at the initial when loading the menu and the overview selected by default has not yet been entered ie is still undefined.\r\n        if (this.selectedMenu === undefined) {\r\n            getWorkInProgress = true;\r\n        }\r\n        else if (this.selectedMenu.id === MenuItem.OverviewMenuId) {\r\n            getWorkInProgress = true;\r\n        }\r\n        return getWorkInProgress;\r\n    }\r\n    setWorkInProgress(refresh = false, notifiedRefreshDrafts = true) {\r\n        // Work in progress items (drafts)\r\n        if (this.workInProgressItemsUri && this.workInProgressItemsUri.length > 0) {\r\n            if ((!notifiedRefreshDrafts && this.lastNotifiedRefreshDrafts) || notifiedRefreshDrafts) {\r\n                //Check if can get work in progress (drafts)\r\n                if (this.canGetWorkInProgress()) {\r\n                    const uri = this.replaceStandardRequestParameters(this.workInProgressItemsUri);\r\n                    this.draftsService.populateUserWorkInProgress(uri, refresh).subscribe((items) => {\r\n                        this.allWorkInProgressItemsLocal = items;\r\n                        this.userWorkInProgressItemsLocal.next(items.slice(0, 5));\r\n                        if (!refresh) {\r\n                            this.loadedWorkInProgressItems += 5;\r\n                        }\r\n                    });\r\n                }\r\n            }\r\n            this.lastNotifiedRefreshDrafts = notifiedRefreshDrafts;\r\n            this.changeDetRef.detectChanges();\r\n        }\r\n    }\r\n    replaceStandardRequestParameters(uri, searchTerm) {\r\n        // pageSize={{PageSize}}&pageIndex={{PageIndex}}&searchTerm={{SearchTerm}}\r\n        uri = uri.replace('{{PageSize}}', '100');\r\n        uri = uri.replace('{{PageIndex}}', '1');\r\n        if (searchTerm !== undefined) {\r\n            uri = uri.replace('{{SearchTerm}}', searchTerm);\r\n        }\r\n        else {\r\n            uri = uri.replace('{{SearchTerm}}', '');\r\n        }\r\n        return uri;\r\n    }\r\n}\r\nDraftsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftsComponent, deps: [{ token: i1$2.Router }, { token: i1$1.AmsService }, { token: i2.DraftModelService }, { token: DraftsService }, { token: i2.MessagesService }, { token: i1$1.BroadcastService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nDraftsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: DraftsComponent, selector: \"pri-drafts\", inputs: { selectedMenu: \"selectedMenu\", workInProgressItemsUri: \"workInProgressItemsUri\", checkForDraftUpdates: \"checkForDraftUpdates\" }, outputs: { toggleMenu: \"toggleMenu\" }, ngImport: i0, template: \"<div id=\\\"drafts-icon\\\" class=\\\"drafts\\\" *ngIf=\\\"selectedMenu\\\">\\r\\n    <div [hidden]=\\\"!(allWorkInProgressItems && allWorkInProgressItems.length > 0)\\\" class=\\\"nav-item-heading\\\">\\r\\n        <span class=\\\"title\\\">{{'shell.components.RES_Shell_Drafts_Heading' | priI18n}}</span>\\r\\n    </div>\\r\\n    <ul class=\\\"user-activity\\\">\\r\\n        <li *ngFor=\\\"let draft of userWorkInProgressItems | async\\\">\\r\\n            <div class=\\\"event\\\">\\r\\n                <!-- the line on the left -->\\r\\n                <div class=\\\"timeline\\\">\\r\\n                    <div *ngIf=\\\"allWorkInProgressItemsLocal.length > 1\\\" class=\\\"event-line\\\"></div>\\r\\n                    <div *ngIf=\\\"allWorkInProgressItemsLocal.length > 0\\\" class=\\\"event-dot\\\"\\r\\n                        matTooltip=\\\"{{draft.timestamp}}\\\">\\r\\n                    </div>\\r\\n                </div>\\r\\n                <a [routerLink]=\\\"getDraftUri(draft)\\\" [queryParams]=\\\"getDraftQueryParams(draft)\\\"\\r\\n                    (click)=\\\"onMenuToggle()\\\">\\r\\n                    <div class=\\\"list-item\\\">\\r\\n                        <div class=\\\"remove-draft\\\" (click)=\\\"removeDraft($event, draft)\\\">\\r\\n                            <i class=\\\"ti-ux-eraser\\\" class=\\\"ti-ux-close\\\"></i>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\" *ngIf=\\\"draft.group && draft.group.length\\\">\\r\\n                            <span class=\\\"process-tag\\\">{{draft.group}}</span>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\">\\r\\n                            <span class=\\\"text\\\">{{draft.title}} </span>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\">\\r\\n                            <span class=\\\"second-line\\\">{{draft.description}}</span>\\r\\n                        </div>\\r\\n                    </div>\\r\\n                </a>\\r\\n            </div>\\r\\n        </li>\\r\\n    </ul>\\r\\n    <div class=\\\"show-more\\\" *ngIf=\\\"allWorkInProgressItems.length > loadedWorkInProgressItems\\\">\\r\\n        <a (click)=\\\"showMoreWorkInProgress()\\\" href=\\\"javascript:void(0);\\\">Show more</a>\\r\\n    </div>\\r\\n</div>\\r\\n\", styles: [\"pri-drafts .user-activity{list-style:none;padding-inline-start:.7142857143rem;padding-left:.7142857143rem}pri-drafts .user-activity li .event{position:relative;padding:.2857142857rem 0;border-radius:.2857142857rem;display:flex}pri-drafts .user-activity li .event>a{color:var(--grey-7);display:block;font-size:1rem;font-weight:500;padding:.2857142857rem;white-space:nowrap;width:100%;min-height:4.7142857143rem}pri-drafts .user-activity li .event>a:hover,pri-drafts .user-activity li .event>a:focus{background-color:var(--grey-4);color:var(--grey-8)}pri-drafts .user-activity li .event>a:hover .list-item .remove-draft,pri-drafts .user-activity li .event>a:focus .list-item .remove-draft{display:flex;opacity:1}pri-drafts .user-activity li .event>a .icon-holder{float:left;border-radius:.4285714286rem;display:none;font-size:1.2857142857rem;height:1.4285714286rem;left:0;line-height:2.5714285714rem;margin-left:-.4285714286rem;position:relative;text-align:center;width:2.5714285714rem}pri-drafts .user-activity li .event>a .list-item{position:relative;margin-left:3.8571428571rem;padding-bottom:.2857142857rem}pri-drafts .user-activity li .event>a .list-item .remove-draft{position:absolute;align-items:center;justify-content:center;color:var(--grey-7);font-size:.8571428571rem;display:none;opacity:0;right:0;top:0}pri-drafts .user-activity li .event>a .list-item .draft-line{display:flex;justify-content:space-between;margin-right:.8571428571rem}pri-drafts .user-activity li .event>a .list-item .draft-line .text{white-space:normal;width:auto;flex-shrink:inherit;margin-right:.2857142857rem}pri-drafts .user-activity li .event>a .list-item .draft-line .process-tag{font-size:.7142857143rem;font-weight:600;text-transform:uppercase;height:1.4285714286rem;margin-top:.0714285714rem}pri-drafts .user-activity li .event>a .list-item .draft-line .second-line{font-size:.8571428571rem;font-weight:400;white-space:initial}pri-drafts .user-activity li .event-line{position:absolute;left:.8571428571rem;height:100%;border-left:.0714285714rem solid var(--grey-5);top:1.4285714286rem}pri-drafts .user-activity li .event-dot{position:absolute;left:.2857142857rem;top:.5714285714rem;border:.2857142857rem solid var(--theme-10);background-color:var(--theme-20);height:1.4285714286rem;width:1.4285714286rem;border-radius:.5714285714rem;-moz-border-radius:.5714285714rem;-webkit-border-radius:.5714285714rem}pri-drafts .user-activity li:last-child .event-line{display:none}pri-drafts .nav-item-heading{letter-spacing:.0357142857rem;line-height:1.5;padding:.8571428571rem 0 0 1.7142857143rem;min-width:19.2857142857rem}pri-drafts .nav-item-heading .icon-holder,pri-drafts .nav-item-heading .title{display:inline-block;height:2.5714285714rem;font-size:.7142857143rem;font-weight:700;color:var(--grey-6);text-transform:uppercase;left:0;line-height:2.5714285714rem;padding-right:.8571428571rem;padding-bottom:.8571428571rem;position:relative}pri-drafts li{margin-top:.5714285714rem;padding-left:.5714285714rem;padding-right:.5714285714rem;position:relative;height:100%}pri-drafts li:empty{display:none}pri-drafts li a{padding:0;border-radius:.2857142857rem}pri-drafts li a .icon-holder{width:50px;margin-right:.5714285714rem}pri-drafts .is-collapsed:hover .user-activity li .event .icon-holder{opacity:1}pri-drafts .show-more{text-align:center;width:100%;font-size:.8571428571rem;margin-top:.5714285714rem;text-transform:lowercase;padding-bottom:1.7142857143rem;transition:opacity .05s}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$2.RouterLinkWithHref, selector: \"a[routerLink],area[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"state\", \"relativeTo\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"routerLink\"] }, { kind: \"directive\", type: i6.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"pipe\", type: i3.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: DraftsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-drafts', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div id=\\\"drafts-icon\\\" class=\\\"drafts\\\" *ngIf=\\\"selectedMenu\\\">\\r\\n    <div [hidden]=\\\"!(allWorkInProgressItems && allWorkInProgressItems.length > 0)\\\" class=\\\"nav-item-heading\\\">\\r\\n        <span class=\\\"title\\\">{{'shell.components.RES_Shell_Drafts_Heading' | priI18n}}</span>\\r\\n    </div>\\r\\n    <ul class=\\\"user-activity\\\">\\r\\n        <li *ngFor=\\\"let draft of userWorkInProgressItems | async\\\">\\r\\n            <div class=\\\"event\\\">\\r\\n                <!-- the line on the left -->\\r\\n                <div class=\\\"timeline\\\">\\r\\n                    <div *ngIf=\\\"allWorkInProgressItemsLocal.length > 1\\\" class=\\\"event-line\\\"></div>\\r\\n                    <div *ngIf=\\\"allWorkInProgressItemsLocal.length > 0\\\" class=\\\"event-dot\\\"\\r\\n                        matTooltip=\\\"{{draft.timestamp}}\\\">\\r\\n                    </div>\\r\\n                </div>\\r\\n                <a [routerLink]=\\\"getDraftUri(draft)\\\" [queryParams]=\\\"getDraftQueryParams(draft)\\\"\\r\\n                    (click)=\\\"onMenuToggle()\\\">\\r\\n                    <div class=\\\"list-item\\\">\\r\\n                        <div class=\\\"remove-draft\\\" (click)=\\\"removeDraft($event, draft)\\\">\\r\\n                            <i class=\\\"ti-ux-eraser\\\" class=\\\"ti-ux-close\\\"></i>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\" *ngIf=\\\"draft.group && draft.group.length\\\">\\r\\n                            <span class=\\\"process-tag\\\">{{draft.group}}</span>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\">\\r\\n                            <span class=\\\"text\\\">{{draft.title}} </span>\\r\\n                        </div>\\r\\n                        <div class=\\\"draft-line\\\">\\r\\n                            <span class=\\\"second-line\\\">{{draft.description}}</span>\\r\\n                        </div>\\r\\n                    </div>\\r\\n                </a>\\r\\n            </div>\\r\\n        </li>\\r\\n    </ul>\\r\\n    <div class=\\\"show-more\\\" *ngIf=\\\"allWorkInProgressItems.length > loadedWorkInProgressItems\\\">\\r\\n        <a (click)=\\\"showMoreWorkInProgress()\\\" href=\\\"javascript:void(0);\\\">Show more</a>\\r\\n    </div>\\r\\n</div>\\r\\n\", styles: [\"pri-drafts .user-activity{list-style:none;padding-inline-start:.7142857143rem;padding-left:.7142857143rem}pri-drafts .user-activity li .event{position:relative;padding:.2857142857rem 0;border-radius:.2857142857rem;display:flex}pri-drafts .user-activity li .event>a{color:var(--grey-7);display:block;font-size:1rem;font-weight:500;padding:.2857142857rem;white-space:nowrap;width:100%;min-height:4.7142857143rem}pri-drafts .user-activity li .event>a:hover,pri-drafts .user-activity li .event>a:focus{background-color:var(--grey-4);color:var(--grey-8)}pri-drafts .user-activity li .event>a:hover .list-item .remove-draft,pri-drafts .user-activity li .event>a:focus .list-item .remove-draft{display:flex;opacity:1}pri-drafts .user-activity li .event>a .icon-holder{float:left;border-radius:.4285714286rem;display:none;font-size:1.2857142857rem;height:1.4285714286rem;left:0;line-height:2.5714285714rem;margin-left:-.4285714286rem;position:relative;text-align:center;width:2.5714285714rem}pri-drafts .user-activity li .event>a .list-item{position:relative;margin-left:3.8571428571rem;padding-bottom:.2857142857rem}pri-drafts .user-activity li .event>a .list-item .remove-draft{position:absolute;align-items:center;justify-content:center;color:var(--grey-7);font-size:.8571428571rem;display:none;opacity:0;right:0;top:0}pri-drafts .user-activity li .event>a .list-item .draft-line{display:flex;justify-content:space-between;margin-right:.8571428571rem}pri-drafts .user-activity li .event>a .list-item .draft-line .text{white-space:normal;width:auto;flex-shrink:inherit;margin-right:.2857142857rem}pri-drafts .user-activity li .event>a .list-item .draft-line .process-tag{font-size:.7142857143rem;font-weight:600;text-transform:uppercase;height:1.4285714286rem;margin-top:.0714285714rem}pri-drafts .user-activity li .event>a .list-item .draft-line .second-line{font-size:.8571428571rem;font-weight:400;white-space:initial}pri-drafts .user-activity li .event-line{position:absolute;left:.8571428571rem;height:100%;border-left:.0714285714rem solid var(--grey-5);top:1.4285714286rem}pri-drafts .user-activity li .event-dot{position:absolute;left:.2857142857rem;top:.5714285714rem;border:.2857142857rem solid var(--theme-10);background-color:var(--theme-20);height:1.4285714286rem;width:1.4285714286rem;border-radius:.5714285714rem;-moz-border-radius:.5714285714rem;-webkit-border-radius:.5714285714rem}pri-drafts .user-activity li:last-child .event-line{display:none}pri-drafts .nav-item-heading{letter-spacing:.0357142857rem;line-height:1.5;padding:.8571428571rem 0 0 1.7142857143rem;min-width:19.2857142857rem}pri-drafts .nav-item-heading .icon-holder,pri-drafts .nav-item-heading .title{display:inline-block;height:2.5714285714rem;font-size:.7142857143rem;font-weight:700;color:var(--grey-6);text-transform:uppercase;left:0;line-height:2.5714285714rem;padding-right:.8571428571rem;padding-bottom:.8571428571rem;position:relative}pri-drafts li{margin-top:.5714285714rem;padding-left:.5714285714rem;padding-right:.5714285714rem;position:relative;height:100%}pri-drafts li:empty{display:none}pri-drafts li a{padding:0;border-radius:.2857142857rem}pri-drafts li a .icon-holder{width:50px;margin-right:.5714285714rem}pri-drafts .is-collapsed:hover .user-activity li .event .icon-holder{opacity:1}pri-drafts .show-more{text-align:center;width:100%;font-size:.8571428571rem;margin-top:.5714285714rem;text-transform:lowercase;padding-bottom:1.7142857143rem;transition:opacity .05s}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$1.AmsService }, { type: i2.DraftModelService }, { type: DraftsService }, { type: i2.MessagesService }, { type: i1$1.BroadcastService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { selectedMenu: [{\r\n                type: Input\r\n            }], workInProgressItemsUri: [{\r\n                type: Input\r\n            }], checkForDraftUpdates: [{\r\n                type: Input\r\n            }], toggleMenu: [{\r\n                type: Output\r\n            }] } });\n\nclass AboutComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     *  @param i18nService Service responsible to handle language translations\r\n     */\r\n    constructor(settingsService, exceptionHandlerService) {\r\n        this.settingsService = settingsService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n    }\r\n    ngOnInit() {\r\n        this.isLoading = true;\r\n        this.settingsService.getAboutConfiguration().then((info) => {\r\n            this.aboutInfo = info;\r\n            this.isLoading = false;\r\n        }, (error) => {\r\n            this.exceptionHandlerService.showError(error);\r\n            this.isLoading = false;\r\n        });\r\n    }\r\n}\r\nAboutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AboutComponent, deps: [{ token: i1$1.SettingsService }, { token: i2.ExceptionHandlerService }], target: i0.ɵɵFactoryTarget.Component });\r\nAboutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: AboutComponent, selector: \"pri-about\", ngImport: i0, template: \"<div class=\\\"pri-modal\\\">\\r\\n    <div class=\\\"pri-modal-header\\\">\\r\\n        <div class=\\\"pri-modal-header-title\\\">{{'shell.components.RES_AboutView_Title' | priI18n}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"pri-modal-content\\\">\\r\\n        <div class=\\\"pri-editor-view\\\">\\r\\n            <div *ngIf=\\\"this.aboutInfo\\\" class=\\\"modal-body\\\">\\r\\n                <!-- product version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.productVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_ProductVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.productVersion}}</span>\\r\\n                </div>\\r\\n                <!-- client version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.clientVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_ClientVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.clientVersion}}</span>\\r\\n                </div>\\r\\n                <!-- database version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.databaseVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_DatabaseVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.databaseVersion}}</span>\\r\\n                </div>\\r\\n                <!-- elevation fw version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.elevationFwVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">\\r\\n                        {{'shell.components.RES_About_ElevationFwVersion_Label' | priI18n}}:\\r\\n                    </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.elevationFwVersion}}</span>\\r\\n                </div>\\r\\n                <!-- elevation sdk version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.elevationSdkVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">\\r\\n                        {{'shell.components.RES_About_ElevationSdkVersion_Label' | priI18n}}:\\r\\n                    </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.elevationSdkVersion}}</span>\\r\\n                </div>\\r\\n                <!-- additional info -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.additionalInfo\\\" class=\\\"about-additional-info\\\">\\r\\n                    <span>{{this.aboutInfo.additionalInfo}}</span>\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"pri-modal-footer\\\">\\r\\n        <span *ngIf=\\\"this.isLoading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </span>\\r\\n        <button type=\\\"button\\\" (click)=\\\"dismiss()\\\"\\r\\n            class=\\\"btn pri-btn-link\\\">{{'shell.components.RES_AboutView_CloseButtonCaption' | priI18n}}</button>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-about{color:var(--grey-8)}pri-about .about-label{font-weight:700}pri-about .about-value{padding-left:3px}pri-about .about-additional-info{margin-top:10px}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: AboutComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-about', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-modal\\\">\\r\\n    <div class=\\\"pri-modal-header\\\">\\r\\n        <div class=\\\"pri-modal-header-title\\\">{{'shell.components.RES_AboutView_Title' | priI18n}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"pri-modal-content\\\">\\r\\n        <div class=\\\"pri-editor-view\\\">\\r\\n            <div *ngIf=\\\"this.aboutInfo\\\" class=\\\"modal-body\\\">\\r\\n                <!-- product version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.productVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_ProductVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.productVersion}}</span>\\r\\n                </div>\\r\\n                <!-- client version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.clientVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_ClientVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.clientVersion}}</span>\\r\\n                </div>\\r\\n                <!-- database version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.databaseVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">{{'shell.components.RES_About_DatabaseVersion_Label' | priI18n}}: </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.databaseVersion}}</span>\\r\\n                </div>\\r\\n                <!-- elevation fw version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.elevationFwVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">\\r\\n                        {{'shell.components.RES_About_ElevationFwVersion_Label' | priI18n}}:\\r\\n                    </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.elevationFwVersion}}</span>\\r\\n                </div>\\r\\n                <!-- elevation sdk version -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.elevationSdkVersion\\\">\\r\\n                    <span class=\\\"about-label\\\">\\r\\n                        {{'shell.components.RES_About_ElevationSdkVersion_Label' | priI18n}}:\\r\\n                    </span>\\r\\n                    <span class=\\\"about-value\\\">{{this.aboutInfo.elevationSdkVersion}}</span>\\r\\n                </div>\\r\\n                <!-- additional info -->\\r\\n                <div *ngIf=\\\"this.aboutInfo.additionalInfo\\\" class=\\\"about-additional-info\\\">\\r\\n                    <span>{{this.aboutInfo.additionalInfo}}</span>\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"pri-modal-footer\\\">\\r\\n        <span *ngIf=\\\"this.isLoading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </span>\\r\\n        <button type=\\\"button\\\" (click)=\\\"dismiss()\\\"\\r\\n            class=\\\"btn pri-btn-link\\\">{{'shell.components.RES_AboutView_CloseButtonCaption' | priI18n}}</button>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-about{color:var(--grey-8)}pri-about .about-label{font-weight:700}pri-about .about-value{padding-left:3px}pri-about .about-additional-info{margin-top:10px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.SettingsService }, { type: i2.ExceptionHandlerService }]; } });\n\nclass SubscriptionUserCardComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     *  @param i18nService Service responsible to handle language translations\r\n     *  @param subscriptionsService Service responsible for retrieving subscription information\r\n     * @param exceptionHandlerService Service responsible for handling exceptions\r\n     */\r\n    constructor(i18nService, subscriptionsService, exceptionHandlerService, messagesService) {\r\n        this.i18nService = i18nService;\r\n        this.subscriptionsService = subscriptionsService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.messagesService = messagesService;\r\n        this.removed = new EventEmitter();\r\n    }\r\n    /**\r\n     * Gets the user picture url.\r\n     */\r\n    get userPicture() {\r\n        if (this.user && this.user.picture) {\r\n            return this.user.picture;\r\n        }\r\n        else {\r\n            return '/assets/images/user_generic.png';\r\n        }\r\n    }\r\n    ngOnInit() { }\r\n    /*\r\n     * Shows confirmation message to remove the user from the current subscription\r\n     */\r\n    removeAccess() {\r\n        this.messagesService.showModal({\r\n            title: this.i18nService.get('shell.components.RES_SubscriptionUsersView_RemoveUserConfirmMessageTitle'),\r\n            detail: this.i18nService\r\n                .get('shell.components.RES_SubscriptionUsersView_RemoveUserConfirmMessage')\r\n                .replace('{0}', this.user.displayName),\r\n            type: 'info',\r\n            callbacks: {\r\n                yes: () => {\r\n                    this.doRemoveAccess();\r\n                },\r\n                no: () => { }\r\n            }\r\n        });\r\n    }\r\n    onError(event) {\r\n        event.target.src = '/assets/images/user_generic.png';\r\n    }\r\n    /*\r\n     * Removes access to the user to from the current subscription\r\n     */\r\n    doRemoveAccess() {\r\n        this.subscriptionsService.removeAccess(this.user.id, this.user.userName).then((result) => {\r\n            this.removed.emit();\r\n        }, (error) => {\r\n            this.exceptionHandlerService.showError(error);\r\n        });\r\n    }\r\n}\r\nSubscriptionUserCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUserCardComponent, deps: [{ token: i4.I18nService }, { token: SubscriptionsService }, { token: i2.ExceptionHandlerService }, { token: i2.MessagesService }], target: i0.ɵɵFactoryTarget.Component });\r\nSubscriptionUserCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubscriptionUserCardComponent, selector: \"pri-subscription-user-card\", inputs: { user: \"user\", roles: \"roles\", isManager: \"isManager\", isSingleUserProduct: \"isSingleUserProduct\", hasMoreThanOneRole: \"hasMoreThanOneRole\", allowInviteTechnician: \"allowInviteTechnician\" }, outputs: { removed: \"removed\" }, ngImport: i0, template: \"<div class=\\\"card\\\" *ngIf=\\\"this.user\\\">\\r\\n  <div class=\\\"row\\\" *ngIf=\\\"this.allowInviteTechnician\\\">\\r\\n    <div class=\\\"card-header col-xs-12 col-md-8\\\">{{this.user.displayName}}</div>\\r\\n    <div *ngIf=\\\"this.user.isTechnician\\\" class=\\\"pri-field-container pri-div-technician col-xs-12 col-md-4\\\">\\r\\n      <label class=\\\"pri-label-technician\\\">\\r\\n        <span>{{'shell.components.RES_SubscriptionUsersView_Technician' | priI18n}}</span>\\r\\n      </label>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div class=\\\"card-block\\\">\\r\\n    <div class=\\\"row\\\">\\r\\n      <div class=\\\"col-xs-12 col-md-4 col-lg-3 col-xl-1\\\">\\r\\n        <div class=\\\"pri-field-container\\\">\\r\\n          <div class=\\\"card-picture-container\\\">\\r\\n            <div class=\\\"image-wrapper\\\">\\r\\n              <img [src]=\\\"userPicture\\\" (error)=\\\"onError($event)\\\" title=\\\"en-US\\\" [alt]=\\\"\\\">\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12 col-md-8 col-lg-9 col-xl-11\\\">\\r\\n\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\">\\r\\n          <label id=\\\"identity-subscriptions-EmailLine\\\" for=\\\"{{this.user.id}}EmailValue\\\" style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_EmailLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <div class=\\\"text-value\\\">\\r\\n            <a [href]=\\\"'mailto:' + this.user.email\\\">{{this.user.email}}</a>\\r\\n          </div>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-4 col-lg-6\\\">\\r\\n          <label id=\\\"identity-subscriptions-StatusLine\\\" for=\\\"{{this.user.id}}StatusValue\\\" style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_StatusLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">{{this.user.status}}&nbsp;</span>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\" *ngIf=\\\"this.user.statusCode==='invitationSent'\\\">\\r\\n          <label id=\\\"identity-subscriptions-InvitationSentOnLine\\\" for=\\\"{{this.user.id}}InvitationSentOnValue\\\"\\r\\n                 style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_InvitationSentOnLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">\\r\\n            {{this.user.invitationSentOn | dateFieldView:'L'}}&nbsp;\\r\\n          </span>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-4 col-lg-6\\\" *ngIf=\\\"this.user.statusCode==='active' || this.user.statusCode==='inactive'\\\">\\r\\n          <label id=\\\"identity-subscriptions-LastLoginOnLine\\\" for=\\\"{{this.user.id}}LastLoginOnValue\\\"\\r\\n                 style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_LastLoginOnLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">\\r\\n            {{this.user.lastLoginOn | dateFieldView:'L'}}&nbsp;\\r\\n          </span>\\r\\n        </div>\\r\\n        <div *ngIf=\\\"this.hasMoreThanOneRole\\\" class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\">\\r\\n          <label style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_RoleLabel' | priI18n}}</span>\\r\\n          </label>\\r\\n          <br />\\r\\n          <span id=\\\"roleDescription\\\" class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">{{this.user.roleDescription}}&nbsp;</span>\\r\\n        </div>\\r\\n      </div>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div *ngIf=\\\"this.isManager && !this.isSingleUserProduct\\\" class=\\\"card-footer\\\">\\r\\n    <div class=\\\"pri-field-container\\\">\\r\\n      <button class=\\\"btn pri-btn-primary pri-btn-inline\\\" style=\\\"margin-top: 0px\\\" id=\\\"removeAccessButton\\\"\\r\\n              (click)=\\\"removeAccess()\\\"\\r\\n              type=\\\"button\\\">{{'shell.components.RES_SubscriptionUsersView_RemoveAccessButtonText' | priI18n}}</button>\\r\\n    </div>\\r\\n  </div>\\r\\n</div>\\r\\n\", styles: [\"pri-subscription-user-card .card{margin-bottom:.75rem}pri-subscription-user-card .card .card-header{padding:.75rem 1.25rem;color:var(--grey-8);font-size:1.24em}pri-subscription-user-card .card .card-block{padding:1.25rem}pri-subscription-user-card .card .card-footer{padding:.75rem 1.25rem;background-color:var(--grey-3);border-top:1px solid var(--grey-4)}pri-subscription-user-card .card .card-footer button{width:140px}pri-subscription-user-card .card-picture-container{display:flex;align-items:center;justify-content:center;height:144px;width:140px;overflow:hidden;border:1px solid var(--grey-4)}pri-subscription-user-card .card-picture-container .image-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}pri-subscription-user-card .card-picture-container .image-wrapper img{width:100%;height:100%}pri-subscription-user-card .pri-div-technician{display:flex}pri-subscription-user-card .pri-label-technician{border-radius:15px;margin-top:10px!important;color:var(--grey-2);background-color:var(--header-60);padding:5px;margin-left:auto}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i2.DateFieldViewPipe, name: \"dateFieldView\" }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUserCardComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-subscription-user-card', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"card\\\" *ngIf=\\\"this.user\\\">\\r\\n  <div class=\\\"row\\\" *ngIf=\\\"this.allowInviteTechnician\\\">\\r\\n    <div class=\\\"card-header col-xs-12 col-md-8\\\">{{this.user.displayName}}</div>\\r\\n    <div *ngIf=\\\"this.user.isTechnician\\\" class=\\\"pri-field-container pri-div-technician col-xs-12 col-md-4\\\">\\r\\n      <label class=\\\"pri-label-technician\\\">\\r\\n        <span>{{'shell.components.RES_SubscriptionUsersView_Technician' | priI18n}}</span>\\r\\n      </label>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div class=\\\"card-block\\\">\\r\\n    <div class=\\\"row\\\">\\r\\n      <div class=\\\"col-xs-12 col-md-4 col-lg-3 col-xl-1\\\">\\r\\n        <div class=\\\"pri-field-container\\\">\\r\\n          <div class=\\\"card-picture-container\\\">\\r\\n            <div class=\\\"image-wrapper\\\">\\r\\n              <img [src]=\\\"userPicture\\\" (error)=\\\"onError($event)\\\" title=\\\"en-US\\\" [alt]=\\\"\\\">\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12 col-md-8 col-lg-9 col-xl-11\\\">\\r\\n\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\">\\r\\n          <label id=\\\"identity-subscriptions-EmailLine\\\" for=\\\"{{this.user.id}}EmailValue\\\" style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_EmailLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <div class=\\\"text-value\\\">\\r\\n            <a [href]=\\\"'mailto:' + this.user.email\\\">{{this.user.email}}</a>\\r\\n          </div>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-4 col-lg-6\\\">\\r\\n          <label id=\\\"identity-subscriptions-StatusLine\\\" for=\\\"{{this.user.id}}StatusValue\\\" style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_StatusLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">{{this.user.status}}&nbsp;</span>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\" *ngIf=\\\"this.user.statusCode==='invitationSent'\\\">\\r\\n          <label id=\\\"identity-subscriptions-InvitationSentOnLine\\\" for=\\\"{{this.user.id}}InvitationSentOnValue\\\"\\r\\n                 style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_InvitationSentOnLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">\\r\\n            {{this.user.invitationSentOn | dateFieldView:'L'}}&nbsp;\\r\\n          </span>\\r\\n        </div>\\r\\n        <div class=\\\"pri-field-container col-xs-12 col-md-4 col-lg-6\\\" *ngIf=\\\"this.user.statusCode==='active' || this.user.statusCode==='inactive'\\\">\\r\\n          <label id=\\\"identity-subscriptions-LastLoginOnLine\\\" for=\\\"{{this.user.id}}LastLoginOnValue\\\"\\r\\n                 style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_LastLoginOnLabel' | priI18n}}</span>\\r\\n          </label><br />\\r\\n          <span class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">\\r\\n            {{this.user.lastLoginOn | dateFieldView:'L'}}&nbsp;\\r\\n          </span>\\r\\n        </div>\\r\\n        <div *ngIf=\\\"this.hasMoreThanOneRole\\\" class=\\\"pri-field-container col-xs-12 col-md-8 col-lg-6\\\">\\r\\n          <label style=\\\"position:relative\\\">\\r\\n            <span>{{'shell.components.RES_SubscriptionUsersView_RoleLabel' | priI18n}}</span>\\r\\n          </label>\\r\\n          <br />\\r\\n          <span id=\\\"roleDescription\\\" class=\\\"text-value\\\" style=\\\"margin-top: 0px;\\\">{{this.user.roleDescription}}&nbsp;</span>\\r\\n        </div>\\r\\n      </div>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div *ngIf=\\\"this.isManager && !this.isSingleUserProduct\\\" class=\\\"card-footer\\\">\\r\\n    <div class=\\\"pri-field-container\\\">\\r\\n      <button class=\\\"btn pri-btn-primary pri-btn-inline\\\" style=\\\"margin-top: 0px\\\" id=\\\"removeAccessButton\\\"\\r\\n              (click)=\\\"removeAccess()\\\"\\r\\n              type=\\\"button\\\">{{'shell.components.RES_SubscriptionUsersView_RemoveAccessButtonText' | priI18n}}</button>\\r\\n    </div>\\r\\n  </div>\\r\\n</div>\\r\\n\", styles: [\"pri-subscription-user-card .card{margin-bottom:.75rem}pri-subscription-user-card .card .card-header{padding:.75rem 1.25rem;color:var(--grey-8);font-size:1.24em}pri-subscription-user-card .card .card-block{padding:1.25rem}pri-subscription-user-card .card .card-footer{padding:.75rem 1.25rem;background-color:var(--grey-3);border-top:1px solid var(--grey-4)}pri-subscription-user-card .card .card-footer button{width:140px}pri-subscription-user-card .card-picture-container{display:flex;align-items:center;justify-content:center;height:144px;width:140px;overflow:hidden;border:1px solid var(--grey-4)}pri-subscription-user-card .card-picture-container .image-wrapper{width:100%;height:100%;display:flex;align-items:center;justify-content:center}pri-subscription-user-card .card-picture-container .image-wrapper img{width:100%;height:100%}pri-subscription-user-card .pri-div-technician{display:flex}pri-subscription-user-card .pri-label-technician{border-radius:15px;margin-top:10px!important;color:var(--grey-2);background-color:var(--header-60);padding:5px;margin-left:auto}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i4.I18nService }, { type: SubscriptionsService }, { type: i2.ExceptionHandlerService }, { type: i2.MessagesService }]; }, propDecorators: { user: [{\r\n                type: Input\r\n            }], roles: [{\r\n                type: Input\r\n            }], isManager: [{\r\n                type: Input\r\n            }], isSingleUserProduct: [{\r\n                type: Input\r\n            }], hasMoreThanOneRole: [{\r\n                type: Input\r\n            }], allowInviteTechnician: [{\r\n                type: Input\r\n            }], removed: [{\r\n                type: Output\r\n            }] } });\n\n/**\r\n * Model that represents a subscription user invitation\r\n */\r\nclass SubscriptionUserInvitation {\r\n    /**\r\n     * Builds the SubscriptionUserInvitation\r\n     *\r\n     * @param subscriptionsService Service responsible for retrieving subscription information\r\n     * @param name the user's name\r\n     * @param email the user's email\r\n     * @param roleKey? The user's roleKey\r\n     */\r\n    constructor(subscriptionsService, name, email, roleKey, isTechnician) {\r\n        this.subscriptionsService = subscriptionsService;\r\n        this.name = name;\r\n        this.email = email;\r\n        this.roleKey = roleKey;\r\n        this.isTechnician = isTechnician;\r\n    }\r\n    /**\r\n     * Sends the invite\r\n     */\r\n    sendInvite() {\r\n        return this.subscriptionsService.sendInvitation(this.name, this.email, this.roleKey, this.isTechnician);\r\n    }\r\n}\n\nclass SubscriptionUserInvitationComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     * @param subscriptionsService Service responsible for retrieving subscription information\r\n     * @param exceptionHandlerService Service responsible for handling exceptions\r\n     * @param messagesService Service responsible for showing messages\r\n     */\r\n    constructor(subscriptionsService, exceptionHandlerService, messagesService) {\r\n        this.subscriptionsService = subscriptionsService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.messagesService = messagesService;\r\n        this.loadingStateChange = new EventEmitter();\r\n        this.sentInvite = new EventEmitter();\r\n        this.userInvitationForm = new FormGroup({\r\n            name: new FormControl(null, [Validators.required]),\r\n            email: new FormControl(null, [Validators.required, this.validateEmail()]),\r\n            selectedRole: new FormControl(null)\r\n        });\r\n        this.isTechnician = false;\r\n    }\r\n    get name() {\r\n        return this.userInvitationForm.get('name');\r\n    }\r\n    get email() {\r\n        return this.userInvitationForm.get('email');\r\n    }\r\n    get selectedRole() {\r\n        return this.userInvitationForm.get('selectedRole');\r\n    }\r\n    // Custom angular form validator (more on custom validators: https://angular.io/guide/form-validation#custom-validators)\r\n    // Validates an email address\r\n    validateEmail() {\r\n        return (control) => {\r\n            const re = \r\n            // eslint-disable-next-line max-len\r\n            /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;\r\n            const valid = re.test(String(control.value).toLowerCase());\r\n            return valid ? null : { invalidEmail: { value: control.value } };\r\n        };\r\n    }\r\n    ngOnInit() { }\r\n    ngOnChanges(changes) {\r\n        if (changes['roles']) {\r\n            // Select the first role by default\r\n            if (this.roles && this.roles.length > 0) {\r\n                this.userInvitationForm.patchValue({ selectedRole: this.roles[0].roleKey });\r\n            }\r\n        }\r\n    }\r\n    /*\r\n     * Sends the invite\r\n     */\r\n    sendInvitation() {\r\n        const userInvitation = new SubscriptionUserInvitation(this.subscriptionsService, this.userInvitationForm.get('name').value, this.userInvitationForm.get('email').value, this.userInvitationForm.get('selectedRole').value, this.isTechnician);\r\n        this.loadingStateChange.emit(true);\r\n        userInvitation.sendInvite().then((result) => {\r\n            this.loadingStateChange.emit(false);\r\n            this.reset();\r\n            this.sentInvite.emit();\r\n            if (result && result.actions && result.actions[0] && result.actions[0].value) {\r\n                const msg = new MessageInfo(result.actions[0].value, null, 1 /* MessageType.Info */);\r\n                this.messagesService.show(msg);\r\n            }\r\n        }, (error) => {\r\n            this.exceptionHandlerService.showError(error, false);\r\n            this.loadingStateChange.emit(false);\r\n        });\r\n    }\r\n    /*\r\n     * Resets the form\r\n     */\r\n    reset() {\r\n        this.userInvitationForm.patchValue({ name: '' });\r\n        this.userInvitationForm.patchValue({ email: '' });\r\n        // Select the first role by default\r\n        if (this.roles != null && this.roles.length > 0) {\r\n            this.userInvitationForm.patchValue({ selectedRole: this.roles[0].roleKey });\r\n        }\r\n    }\r\n}\r\nSubscriptionUserInvitationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUserInvitationComponent, deps: [{ token: SubscriptionsService }, { token: i2.ExceptionHandlerService }, { token: i2.MessagesService }], target: i0.ɵɵFactoryTarget.Component });\r\nSubscriptionUserInvitationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubscriptionUserInvitationComponent, selector: \"pri-subscription-user-invitation\", inputs: { roles: \"roles\", isLoading: \"isLoading\", hasMoreThanOneRole: \"hasMoreThanOneRole\", allowInviteTechnician: \"allowInviteTechnician\" }, outputs: { loadingStateChange: \"loadingStateChange\", sentInvite: \"sentInvite\" }, usesOnChanges: true, ngImport: i0, template: \"<form class=\\\"form-horizontal\\\" autocomplete=\\\"nope\\\" [formGroup]=\\\"userInvitationForm\\\">\\r\\n  <div class=\\\"row\\\">\\r\\n    <div class=\\\"pri-row-header\\\">\\r\\n      <span>{{'shell.components.RES_SubscriptionUsersView_NewUserLabel' | priI18n}}</span>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div class=\\\"row new-user-container\\\">\\r\\n    <div class=\\\"col-xs-12 col-md-4 new-user-data\\\">\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Name\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_NameLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field\\\">\\r\\n              <input class=\\\"form-control input-md\\\" id=\\\"Identiy-SubscriptionUsers-Name\\\" type=\\\"text\\\"\\r\\n                     maxlength=\\\"100\\\" formControlName=\\\"name\\\" />\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Email\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_EmailLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field\\\">\\r\\n              <input class=\\\"form-control input-md\\\" id=\\\"Identiy-SubscriptionUsers-Email\\\" type=\\\"text\\\"\\r\\n                     maxlength=\\\"100\\\" formControlName=\\\"email\\\" />\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div *ngIf=\\\"this.hasMoreThanOneRole\\\" class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Role\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_RoleLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field col-xs-12 select-wrapper\\\">\\r\\n              <select class=\\\"form-control\\\" formControlName=\\\"selectedRole\\\" id=\\\"Identiy-SubscriptionUsers-Role\\\">\\r\\n                <option *ngFor=\\\"let r of this.roles\\\" [ngValue]=\\\"r.roleKey\\\">{{r.description}}</option>\\r\\n              </select>\\r\\n              <i class=\\\"ti-ux-chevron-down arrow\\\"></i>\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"col-xs-12 col-md-8 new-user-invitation-button\\\">\\r\\n      <div class=\\\"pri-field-container col-xs-3\\\">\\r\\n        <button class=\\\"btn pri-btn-primary pri-btn-inline\\\"\\r\\n                [disabled]=\\\"this.isLoading || !this.userInvitationForm || !this.userInvitationForm.valid\\\"\\r\\n                type=\\\"button\\\" id=\\\"sendInviteButton\\\"\\r\\n                (click)=\\\"sendInvitation()\\\">\\r\\n          {{'shell.components.RES_SubscriptionUsersView_InviteUserButtonText' | priI18n}}\\r\\n        </button>\\r\\n      </div>\\r\\n    </div>\\r\\n    <br />\\r\\n  </div> \\r\\n  <pri-slider-toggle *ngIf=\\\"allowInviteTechnician\\\" label=\\\"{{'shell.components.RES_SubscriptionUsersView_Technician' | priI18n}}\\\" (valueChange)=\\\"isTechnician = !isTechnician\\\" [value]=\\\"isTechnician\\\"></pri-slider-toggle>\\r\\n</form>\\r\\n\", styles: [\"pri-subscription-user-invitation .new-user-container{display:flex;flex-direction:row}pri-subscription-user-invitation .new-user-invitation-button{display:flex;justify-content:flex-start;align-items:flex-end;padding-bottom:8px}pri-subscription-user-invitation .new-user-invitation-button button{margin-left:5px}@media only screen and (max-width: 991px){pri-subscription-user-invitation .new-user-container{flex-direction:column}pri-subscription-user-invitation .new-user-invitation-button button{margin-left:0}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4$1.ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\" }, { kind: \"directive\", type: i4$1.NgSelectOption, selector: \"option\", inputs: [\"ngValue\", \"value\"] }, { kind: \"directive\", type: i4$1.ɵNgSelectMultipleOption, selector: \"option\", inputs: [\"ngValue\", \"value\"] }, { kind: \"directive\", type: i4$1.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i4$1.SelectControlValueAccessor, selector: \"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]\", inputs: [\"compareWith\"] }, { kind: \"directive\", type: i4$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i4$1.NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\" }, { kind: \"directive\", type: i4$1.MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: [\"maxlength\"] }, { kind: \"directive\", type: i4$1.FormGroupDirective, selector: \"[formGroup]\", inputs: [\"formGroup\"], outputs: [\"ngSubmit\"], exportAs: [\"ngForm\"] }, { kind: \"directive\", type: i4$1.FormControlName, selector: \"[formControlName]\", inputs: [\"formControlName\", \"disabled\", \"ngModel\"], outputs: [\"ngModelChange\"] }, { kind: \"component\", type: i2.PriSliderToggleComponent, selector: \"pri-slider-toggle\", inputs: [\"value\", \"label\", \"disabled\"], outputs: [\"valueChange\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUserInvitationComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-subscription-user-invitation', encapsulation: ViewEncapsulation.None, template: \"<form class=\\\"form-horizontal\\\" autocomplete=\\\"nope\\\" [formGroup]=\\\"userInvitationForm\\\">\\r\\n  <div class=\\\"row\\\">\\r\\n    <div class=\\\"pri-row-header\\\">\\r\\n      <span>{{'shell.components.RES_SubscriptionUsersView_NewUserLabel' | priI18n}}</span>\\r\\n    </div>\\r\\n  </div>\\r\\n  <div class=\\\"row new-user-container\\\">\\r\\n    <div class=\\\"col-xs-12 col-md-4 new-user-data\\\">\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Name\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_NameLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field\\\">\\r\\n              <input class=\\\"form-control input-md\\\" id=\\\"Identiy-SubscriptionUsers-Name\\\" type=\\\"text\\\"\\r\\n                     maxlength=\\\"100\\\" formControlName=\\\"name\\\" />\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Email\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_EmailLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field\\\">\\r\\n              <input class=\\\"form-control input-md\\\" id=\\\"Identiy-SubscriptionUsers-Email\\\" type=\\\"text\\\"\\r\\n                     maxlength=\\\"100\\\" formControlName=\\\"email\\\" />\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n      <div *ngIf=\\\"this.hasMoreThanOneRole\\\" class=\\\"col-xs-12\\\">\\r\\n        <div class=\\\"row\\\">\\r\\n          <div class=\\\"form-group\\\">\\r\\n            <label for=\\\"Identiy-SubscriptionUsers-Role\\\" style=\\\"position:relative\\\">\\r\\n              <span>{{'shell.components.RES_SubscriptionUsersView_RoleLabel' | priI18n}}</span>\\r\\n            </label>\\r\\n            <div class=\\\"pri-field col-xs-12 select-wrapper\\\">\\r\\n              <select class=\\\"form-control\\\" formControlName=\\\"selectedRole\\\" id=\\\"Identiy-SubscriptionUsers-Role\\\">\\r\\n                <option *ngFor=\\\"let r of this.roles\\\" [ngValue]=\\\"r.roleKey\\\">{{r.description}}</option>\\r\\n              </select>\\r\\n              <i class=\\\"ti-ux-chevron-down arrow\\\"></i>\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"col-xs-12 col-md-8 new-user-invitation-button\\\">\\r\\n      <div class=\\\"pri-field-container col-xs-3\\\">\\r\\n        <button class=\\\"btn pri-btn-primary pri-btn-inline\\\"\\r\\n                [disabled]=\\\"this.isLoading || !this.userInvitationForm || !this.userInvitationForm.valid\\\"\\r\\n                type=\\\"button\\\" id=\\\"sendInviteButton\\\"\\r\\n                (click)=\\\"sendInvitation()\\\">\\r\\n          {{'shell.components.RES_SubscriptionUsersView_InviteUserButtonText' | priI18n}}\\r\\n        </button>\\r\\n      </div>\\r\\n    </div>\\r\\n    <br />\\r\\n  </div> \\r\\n  <pri-slider-toggle *ngIf=\\\"allowInviteTechnician\\\" label=\\\"{{'shell.components.RES_SubscriptionUsersView_Technician' | priI18n}}\\\" (valueChange)=\\\"isTechnician = !isTechnician\\\" [value]=\\\"isTechnician\\\"></pri-slider-toggle>\\r\\n</form>\\r\\n\", styles: [\"pri-subscription-user-invitation .new-user-container{display:flex;flex-direction:row}pri-subscription-user-invitation .new-user-invitation-button{display:flex;justify-content:flex-start;align-items:flex-end;padding-bottom:8px}pri-subscription-user-invitation .new-user-invitation-button button{margin-left:5px}@media only screen and (max-width: 991px){pri-subscription-user-invitation .new-user-container{flex-direction:column}pri-subscription-user-invitation .new-user-invitation-button button{margin-left:0}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SubscriptionsService }, { type: i2.ExceptionHandlerService }, { type: i2.MessagesService }]; }, propDecorators: { roles: [{\r\n                type: Input\r\n            }], isLoading: [{\r\n                type: Input\r\n            }], hasMoreThanOneRole: [{\r\n                type: Input\r\n            }], allowInviteTechnician: [{\r\n                type: Input\r\n            }], loadingStateChange: [{\r\n                type: Output\r\n            }], sentInvite: [{\r\n                type: Output\r\n            }] } });\n\nclass SubscriptionUsersWrapperComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     *  @param subscriptionsService Service responsible for retrieving subscription information\r\n     */\r\n    constructor(subscriptionsService, appContextService) {\r\n        this.subscriptionsService = subscriptionsService;\r\n        this.appContextService = appContextService;\r\n        this.LoadingSpinnerSizeEnum = LoadingSpinnerSizeEnum;\r\n        this.LoadingSpinnerTypeEnum = LoadingSpinnerTypeEnum;\r\n        this.hasMoreThanOneRole = true;\r\n    }\r\n    ngOnInit() {\r\n        // Set isManager\r\n        this.subscriptionsService.isCurrentUserSubscriptionManager()\r\n            .then((data) => {\r\n            this.isManager = data;\r\n        });\r\n        // Set isSingleUserProduct\r\n        this.subscriptionsService.isSingleUserProduct()\r\n            .then((data) => {\r\n            this.isSingleUserProduct = data;\r\n        });\r\n        this.loadUsers();\r\n        this.loadRoles();\r\n        this.allowInviteTechnician = this.appContextService.getContext().allowInviteTechnician;\r\n    }\r\n    /*\r\n    * Handle loading state change\r\n    */\r\n    onLoadingStateChange(state) {\r\n        this.isLoading = state;\r\n    }\r\n    /*\r\n    * Method that iscalled after user is removed in the subscription-user-card component\r\n    */\r\n    onRemovedUser(user) {\r\n        this.users = this.users.filter(x => x.id !== user.id);\r\n    }\r\n    /*\r\n    * Loads the users\r\n    */\r\n    loadUsers() {\r\n        this.isLoading = true;\r\n        this.subscriptionsService.getSubscriptionUsers()\r\n            .then((data) => {\r\n            this.users = data;\r\n            this.isLoading = false;\r\n        }, () => {\r\n            this.isLoading = false;\r\n        });\r\n    }\r\n    /*\r\n    * Loads the roles\r\n    */\r\n    loadRoles() {\r\n        this.subscriptionsService.getSubscriptionRoles()\r\n            .then((data) => {\r\n            this.roles = data;\r\n            this.hasMoreThanOneRole = this.roles && this.roles.length > 1;\r\n        });\r\n    }\r\n}\r\nSubscriptionUsersWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUsersWrapperComponent, deps: [{ token: SubscriptionsService }, { token: i1$1.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nSubscriptionUsersWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubscriptionUsersWrapperComponent, selector: \"pri-subscription-users-wrapper\", ngImport: i0, template: \"<div class=\\\"picture-data-view\\\">\\r\\n  <form class=\\\"form-horizontal\\\">\\r\\n    <!-- Invite Users Section-->\\r\\n    <pri-subscription-user-invitation *ngIf=\\\"this.isManager && !this.isSingleUserProduct\\\" [roles]=\\\"this.roles\\\"\\r\\n                                      [isLoading]=\\\"this.isLoading\\\" [hasMoreThanOneRole]=\\\"this.hasMoreThanOneRole\\\" [allowInviteTechnician]=\\\"this.allowInviteTechnician\\\"\\r\\n                                      (loadingStateChange)=\\\"onLoadingStateChange($event)\\\" (sentInvite)=\\\"this.loadUsers()\\\">\\r\\n    </pri-subscription-user-invitation>\\r\\n    <!-- Users List section-->\\r\\n    <div class=\\\"row\\\">\\r\\n      <div class=\\\"pri-row-header\\\">\\r\\n        <span>{{'shell.components.RES_SubscriptionUsersView_UsersAreaTitle' | priI18n}}</span>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <pri-loading-spinner *ngIf=\\\"this.isLoading\\\" [type]=\\\"LoadingSpinnerTypeEnum.Indeterminate\\\" [size]=\\\"LoadingSpinnerSizeEnum.Large\\\" cssClass=\\\"loading center-block loading-margin\\\">\\r\\n        </pri-loading-spinner>\\r\\n        <!-- Loop users -->\\r\\n        <pri-subscription-user-card *ngFor=\\\"let user of users\\\" [user]=\\\"user\\\" [roles]=\\\"this.roles\\\" [allowInviteTechnician] =\\\"this.allowInviteTechnician\\\"\\r\\n                                    [isManager]=\\\"this.isManager\\\" [isSingleUserProduct]=\\\"this.isSingleUserProduct\\\"\\r\\n                                    [hasMoreThanOneRole]=\\\"this.hasMoreThanOneRole\\\" (removed)=\\\"onRemovedUser(user)\\\"></pri-subscription-user-card>\\r\\n      </div>\\r\\n    </div>\\r\\n  </form>\\r\\n</div>\\r\\n\", styles: [\"pri-subscription-users-wrapper .loading-margin{margin-top:75px}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4$1.ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\" }, { kind: \"directive\", type: i4$1.NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\" }, { kind: \"directive\", type: i4$1.NgForm, selector: \"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]\", inputs: [\"ngFormOptions\"], outputs: [\"ngSubmit\"], exportAs: [\"ngForm\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"component\", type: SubscriptionUserCardComponent, selector: \"pri-subscription-user-card\", inputs: [\"user\", \"roles\", \"isManager\", \"isSingleUserProduct\", \"hasMoreThanOneRole\", \"allowInviteTechnician\"], outputs: [\"removed\"] }, { kind: \"component\", type: SubscriptionUserInvitationComponent, selector: \"pri-subscription-user-invitation\", inputs: [\"roles\", \"isLoading\", \"hasMoreThanOneRole\", \"allowInviteTechnician\"], outputs: [\"loadingStateChange\", \"sentInvite\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubscriptionUsersWrapperComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-subscription-users-wrapper', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"picture-data-view\\\">\\r\\n  <form class=\\\"form-horizontal\\\">\\r\\n    <!-- Invite Users Section-->\\r\\n    <pri-subscription-user-invitation *ngIf=\\\"this.isManager && !this.isSingleUserProduct\\\" [roles]=\\\"this.roles\\\"\\r\\n                                      [isLoading]=\\\"this.isLoading\\\" [hasMoreThanOneRole]=\\\"this.hasMoreThanOneRole\\\" [allowInviteTechnician]=\\\"this.allowInviteTechnician\\\"\\r\\n                                      (loadingStateChange)=\\\"onLoadingStateChange($event)\\\" (sentInvite)=\\\"this.loadUsers()\\\">\\r\\n    </pri-subscription-user-invitation>\\r\\n    <!-- Users List section-->\\r\\n    <div class=\\\"row\\\">\\r\\n      <div class=\\\"pri-row-header\\\">\\r\\n        <span>{{'shell.components.RES_SubscriptionUsersView_UsersAreaTitle' | priI18n}}</span>\\r\\n      </div>\\r\\n      <div class=\\\"col-xs-12\\\">\\r\\n        <pri-loading-spinner *ngIf=\\\"this.isLoading\\\" [type]=\\\"LoadingSpinnerTypeEnum.Indeterminate\\\" [size]=\\\"LoadingSpinnerSizeEnum.Large\\\" cssClass=\\\"loading center-block loading-margin\\\">\\r\\n        </pri-loading-spinner>\\r\\n        <!-- Loop users -->\\r\\n        <pri-subscription-user-card *ngFor=\\\"let user of users\\\" [user]=\\\"user\\\" [roles]=\\\"this.roles\\\" [allowInviteTechnician] =\\\"this.allowInviteTechnician\\\"\\r\\n                                    [isManager]=\\\"this.isManager\\\" [isSingleUserProduct]=\\\"this.isSingleUserProduct\\\"\\r\\n                                    [hasMoreThanOneRole]=\\\"this.hasMoreThanOneRole\\\" (removed)=\\\"onRemovedUser(user)\\\"></pri-subscription-user-card>\\r\\n      </div>\\r\\n    </div>\\r\\n  </form>\\r\\n</div>\\r\\n\", styles: [\"pri-subscription-users-wrapper .loading-margin{margin-top:75px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: SubscriptionsService }, { type: i1$1.AppContextService }]; } });\n\nclass SupportRequestService {\r\n    /**\r\n     * Constructs the application\r\n     *\r\n     * @param httpClient Service responsible to manage http communications\r\n     */\r\n    constructor(httpClient) {\r\n        this.httpClient = httpClient;\r\n    }\r\n    /**\r\n     * Gets info about the support requests\r\n     *\r\n     * @returns ISupportRequestInfo\r\n     */\r\n    getSupportRequestsInfo() {\r\n        return this.httpClient.get('/app/identity/supportRequests/getSupportRequestsInfo').toPromise();\r\n    }\r\n    /**\r\n     *Sends the request\r\n     *\r\n     * @param subject the subject\r\n     * @param message the message\r\n     */\r\n    send(subject, message) {\r\n        const sendObj = { subject, message };\r\n        return this.httpClient.post('/app/identity/supportRequests/postRequest', sendObj).toPromise();\r\n    }\r\n}\r\nSupportRequestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SupportRequestService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });\r\nSupportRequestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SupportRequestService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SupportRequestService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });\n\nclass SupportRequestComponent {\r\n    /**\r\n     * Constructs the component\r\n     *\r\n     *  @param i18nService Service responsible to handle language translations\r\n     *  @param supportRequestService Service responsible to send support requests and get info about support requests\r\n     *  @param exceptionHandlerService Service responsible for handling exceptions\r\n     *  @param messagesService Service responsible for showing messages to the user\r\n     */\r\n    constructor(i18nService, supportRequestService, exceptionHandlerService, messagesService) {\r\n        this.i18nService = i18nService;\r\n        this.supportRequestService = supportRequestService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.messagesService = messagesService;\r\n        this.supportRequestForm = new FormGroup({\r\n            subject: new FormControl(null, [Validators.required]),\r\n            message: new FormControl()\r\n        });\r\n        this.availableRequests = 0;\r\n        this.percentage = 0;\r\n    }\r\n    ngOnInit() {\r\n        // Set supportRequestInfo\r\n        this.loadSupportRequestInfo();\r\n    }\r\n    get subject() {\r\n        return this.supportRequestForm.get('subject');\r\n    }\r\n    get message() {\r\n        return this.supportRequestForm.get('message');\r\n    }\r\n    /*\r\n      Sends the support request message\r\n      */\r\n    send() {\r\n        this.isLoading = true;\r\n        this.supportRequestService\r\n            .send(this.supportRequestForm.get('subject').value, this.supportRequestForm.get('message').value)\r\n            .then(() => {\r\n            this.isLoading = false;\r\n            // Show request sent success message\r\n            this.messagesService.show(new MessageInfo(this.i18nService.get('shell.components.RES_SupportRequestView_SupportRequestSent'), null, 1 /* MessageType.Info */));\r\n            this.dismiss();\r\n        }, (error) => {\r\n            this.isLoading = false;\r\n            // Handle error\r\n            this.exceptionHandlerService.showError(error);\r\n        });\r\n    }\r\n    /*\r\n  Calls the service that retrieves info about the support request availability\r\n  */\r\n    loadSupportRequestInfo() {\r\n        this.isLoading = true;\r\n        this.supportRequestService.getSupportRequestsInfo().then((data) => {\r\n            this.supportRequestInfo = data;\r\n            data.subscriptionRequests = 10;\r\n            this.availableRequests = data.subscriptionRequests - data.usedRequests;\r\n            this.percentage =\r\n                data.subscriptionRequests > 0\r\n                    ? parseFloat(((data.usedRequests * 100) / data.subscriptionRequests).toFixed(2))\r\n                    : 0;\r\n            this.setSupportRequestsLeftMessage();\r\n            this.isLoading = false;\r\n        }, (error) => {\r\n            this.exceptionHandlerService.showError(error);\r\n            this.isLoading = false;\r\n        });\r\n    }\r\n    /*\r\n  Sets the supportRequestLeftMessage value bases on the availableRequests property\r\n  */\r\n    setSupportRequestsLeftMessage() {\r\n        if (this.availableRequests !== undefined) {\r\n            if (this.availableRequests === 1) {\r\n                this.supportRequestsLeftMessage = this.i18nService.get('shell.components.RES_SupportRequestView_OneRequestLeftMessage');\r\n            }\r\n            else {\r\n                this.supportRequestsLeftMessage = this.i18nService\r\n                    .get('shell.components.RES_SupportRequestView_RequestsLeftMessage')\r\n                    .replace('{0}', this.availableRequests.toString());\r\n            }\r\n        }\r\n    }\r\n}\r\nSupportRequestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SupportRequestComponent, deps: [{ token: i4.I18nService }, { token: SupportRequestService }, { token: i2.ExceptionHandlerService }, { token: i2.MessagesService }], target: i0.ɵɵFactoryTarget.Component });\r\nSupportRequestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SupportRequestComponent, selector: \"pri-support-request\", ngImport: i0, template: \"<div class=\\\"pri-modal\\\">\\r\\n    <div class=\\\"pri-modal-header\\\">\\r\\n        <div class=\\\"pri-modal-header-title\\\">{{'shell.components.RES_SupportRequestView_Title' | priI18n}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"pri-modal-content\\\">\\r\\n        <div class=\\\"pri-editor-view\\\">\\r\\n            <div class=\\\"modal-body\\\">\\r\\n                <div class=\\\"row support-header\\\">\\r\\n                    <!-- Componente contagem circular -->\\r\\n                    <pri-circle-count [percentage]=\\\"this.percentage\\\"\\r\\n                        [count]=\\\"this.supportRequestInfo ? this.supportRequestInfo.usedRequests : null\\\"\\r\\n                        [message]=\\\"this.supportRequestsLeftMessage\\\"></pri-circle-count>\\r\\n                </div>\\r\\n                <ng-container *ngIf=\\\"this.supportRequestInfo && this.availableRequests > 0\\\">\\r\\n                    <form class=\\\"form-horizontal\\\" autocomplete=\\\"nope\\\" [formGroup]=\\\"supportRequestForm\\\">\\r\\n                        <div class=\\\"row\\\">\\r\\n                            <div class=\\\"col-xs-12\\\">\\r\\n                                <div class=\\\"col-xs-12 pri-field-support-subject\\\"\\r\\n                                    [ngClass]=\\\"{'pri-field-required' : !subject || subject.invalid}\\\">\\r\\n                                    <label for=\\\"Identiy-SupportRequest-Subject\\\" style=\\\"position:relative\\\">\\r\\n                                        <span>{{'shell.components.RES_SupportRequestView_Subject' | priI18n}}</span>\\r\\n                                    </label>\\r\\n                                    <div class=\\\"pri-field\\\">\\r\\n                                        <input class=\\\"form-control input-md\\\" type=\\\"text\\\" maxlength=\\\"100\\\" id=\\\"subject\\\"\\r\\n                                            id=\\\"Identiy-SupportRequest-Subject\\\" formControlName=\\\"subject\\\"\\r\\n                                            name=\\\"subject\\\" required tabindex=\\\"0\\\" />\\r\\n                                    </div>\\r\\n                                </div>\\r\\n\\r\\n                                <div class=\\\"col-xs-12\\\">\\r\\n                                    <label for=\\\"Identiy-SupportRequest-Message\\\" style=\\\"position:relative\\\" tabindex=\\\"-1\\\">\\r\\n                                        <span>{{'shell.components.RES_SupportRequestView_Description' | priI18n}}</span>\\r\\n                                    </label>\\r\\n                                    <pri-html-editor formControlName=\\\"message\\\" [minHeight]=\\\"250\\\"\\r\\n                                        id=\\\"Identiy-SupportRequest-Message\\\"></pri-html-editor>\\r\\n                                </div>\\r\\n                            </div>\\r\\n                        </div>\\r\\n                    </form>\\r\\n                </ng-container>\\r\\n                <div *ngIf=\\\"this.supportRequestInfo && this.availableRequests === 0\\\" class=\\\"row\\\">\\r\\n                    <div class=\\\"col-xs-10 col-xs-offset-1 col-md-6 col-md-offset-3\\\">\\r\\n                        <h1>{{'shell.components.RES_SupportRequestView_NoMoreTicketsTitle' | priI18n}}</h1>\\r\\n                        <h2>{{'shell.components.RES_SupportRequestView_NoMoreTicketsMessage' | priI18n}}</h2>\\r\\n                    </div>\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"pri-modal-footer\\\">\\r\\n        <span *ngIf=\\\"this.isLoading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </span>\\r\\n        <button type=\\\"button\\\" (click)=\\\"dismiss()\\\"\\r\\n            class=\\\"btn pri-btn-link\\\">{{'shell.components.RES_SupportRequestView_CloseButtonCaption' | priI18n}}</button>\\r\\n        <button *ngIf=\\\"this.availableRequests > 0\\\" type=\\\"button\\\" (click)=\\\"send()\\\"\\r\\n            [disabled]=\\\"!this.supportRequestForm || !this.supportRequestForm.valid\\\"\\r\\n            id=\\\"Identity-SupportRequest-SendButton\\\"\\r\\n            class=\\\"btn pri-btn-primary\\\">{{'shell.components.RES_SupportRequestView_SendButtonCaption' |\\r\\n            priI18n}}</button>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-support-request{height:70%}pri-support-request .pri-modal-content{height:100%}pri-support-request .pri-modal-content .support-header h1{border:none;margin-top:26px;color:var(--theme-100);padding:0 10px}pri-support-request pri-html-editor{height:180px}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4$1.ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\" }, { kind: \"directive\", type: i4$1.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i4$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i4$1.NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\" }, { kind: \"directive\", type: i4$1.RequiredValidator, selector: \":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]\", inputs: [\"required\"] }, { kind: \"directive\", type: i4$1.MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: [\"maxlength\"] }, { kind: \"directive\", type: i4$1.FormGroupDirective, selector: \"[formGroup]\", inputs: [\"formGroup\"], outputs: [\"ngSubmit\"], exportAs: [\"ngForm\"] }, { kind: \"directive\", type: i4$1.FormControlName, selector: \"[formControlName]\", inputs: [\"formControlName\", \"disabled\", \"ngModel\"], outputs: [\"ngModelChange\"] }, { kind: \"component\", type: i2.CircleCountComponent, selector: \"pri-circle-count\", inputs: [\"percentage\", \"count\", \"message\"] }, { kind: \"component\", type: i2.HtmlEditorFieldComponent, selector: \"pri-html-editor\", inputs: [\"minHeight\", \"culture\", \"content\", \"isDisabled\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SupportRequestComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-support-request', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"pri-modal\\\">\\r\\n    <div class=\\\"pri-modal-header\\\">\\r\\n        <div class=\\\"pri-modal-header-title\\\">{{'shell.components.RES_SupportRequestView_Title' | priI18n}}</div>\\r\\n    </div>\\r\\n    <div class=\\\"pri-modal-content\\\">\\r\\n        <div class=\\\"pri-editor-view\\\">\\r\\n            <div class=\\\"modal-body\\\">\\r\\n                <div class=\\\"row support-header\\\">\\r\\n                    <!-- Componente contagem circular -->\\r\\n                    <pri-circle-count [percentage]=\\\"this.percentage\\\"\\r\\n                        [count]=\\\"this.supportRequestInfo ? this.supportRequestInfo.usedRequests : null\\\"\\r\\n                        [message]=\\\"this.supportRequestsLeftMessage\\\"></pri-circle-count>\\r\\n                </div>\\r\\n                <ng-container *ngIf=\\\"this.supportRequestInfo && this.availableRequests > 0\\\">\\r\\n                    <form class=\\\"form-horizontal\\\" autocomplete=\\\"nope\\\" [formGroup]=\\\"supportRequestForm\\\">\\r\\n                        <div class=\\\"row\\\">\\r\\n                            <div class=\\\"col-xs-12\\\">\\r\\n                                <div class=\\\"col-xs-12 pri-field-support-subject\\\"\\r\\n                                    [ngClass]=\\\"{'pri-field-required' : !subject || subject.invalid}\\\">\\r\\n                                    <label for=\\\"Identiy-SupportRequest-Subject\\\" style=\\\"position:relative\\\">\\r\\n                                        <span>{{'shell.components.RES_SupportRequestView_Subject' | priI18n}}</span>\\r\\n                                    </label>\\r\\n                                    <div class=\\\"pri-field\\\">\\r\\n                                        <input class=\\\"form-control input-md\\\" type=\\\"text\\\" maxlength=\\\"100\\\" id=\\\"subject\\\"\\r\\n                                            id=\\\"Identiy-SupportRequest-Subject\\\" formControlName=\\\"subject\\\"\\r\\n                                            name=\\\"subject\\\" required tabindex=\\\"0\\\" />\\r\\n                                    </div>\\r\\n                                </div>\\r\\n\\r\\n                                <div class=\\\"col-xs-12\\\">\\r\\n                                    <label for=\\\"Identiy-SupportRequest-Message\\\" style=\\\"position:relative\\\" tabindex=\\\"-1\\\">\\r\\n                                        <span>{{'shell.components.RES_SupportRequestView_Description' | priI18n}}</span>\\r\\n                                    </label>\\r\\n                                    <pri-html-editor formControlName=\\\"message\\\" [minHeight]=\\\"250\\\"\\r\\n                                        id=\\\"Identiy-SupportRequest-Message\\\"></pri-html-editor>\\r\\n                                </div>\\r\\n                            </div>\\r\\n                        </div>\\r\\n                    </form>\\r\\n                </ng-container>\\r\\n                <div *ngIf=\\\"this.supportRequestInfo && this.availableRequests === 0\\\" class=\\\"row\\\">\\r\\n                    <div class=\\\"col-xs-10 col-xs-offset-1 col-md-6 col-md-offset-3\\\">\\r\\n                        <h1>{{'shell.components.RES_SupportRequestView_NoMoreTicketsTitle' | priI18n}}</h1>\\r\\n                        <h2>{{'shell.components.RES_SupportRequestView_NoMoreTicketsMessage' | priI18n}}</h2>\\r\\n                    </div>\\r\\n                </div>\\r\\n            </div>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <div class=\\\"pri-modal-footer\\\">\\r\\n        <span *ngIf=\\\"this.isLoading\\\">\\r\\n            <pri-loading-spinner cssClass=\\\"pri-fixed-footer-loading-icon\\\"></pri-loading-spinner>\\r\\n        </span>\\r\\n        <button type=\\\"button\\\" (click)=\\\"dismiss()\\\"\\r\\n            class=\\\"btn pri-btn-link\\\">{{'shell.components.RES_SupportRequestView_CloseButtonCaption' | priI18n}}</button>\\r\\n        <button *ngIf=\\\"this.availableRequests > 0\\\" type=\\\"button\\\" (click)=\\\"send()\\\"\\r\\n            [disabled]=\\\"!this.supportRequestForm || !this.supportRequestForm.valid\\\"\\r\\n            id=\\\"Identity-SupportRequest-SendButton\\\"\\r\\n            class=\\\"btn pri-btn-primary\\\">{{'shell.components.RES_SupportRequestView_SendButtonCaption' |\\r\\n            priI18n}}</button>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-support-request{height:70%}pri-support-request .pri-modal-content{height:100%}pri-support-request .pri-modal-content .support-header h1{border:none;margin-top:26px;color:var(--theme-100);padding:0 10px}pri-support-request pri-html-editor{height:180px}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i4.I18nService }, { type: SupportRequestService }, { type: i2.ExceptionHandlerService }, { type: i2.MessagesService }]; } });\n\nclass PriUpgradeComponent {\r\n    /**\r\n     * Constructs the application\r\n     *\r\n     * @param upgradeApplicationService Service responsible to handle application upgrade\r\n     * @param exceptionHandlerService Service responsible to handle services errors\r\n     * @param i18nService Service responsible to handle language translations\r\n     */\r\n    constructor(upgradeApplicationService, exceptionHandlerService, i18nService) {\r\n        this.upgradeApplicationService = upgradeApplicationService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.i18nService = i18nService;\r\n        /** Event emitted when the upgrade is complete */\r\n        this.upgradeCompleted = new EventEmitter();\r\n        /** The upgrade message status */\r\n        this.message = '';\r\n        /** The upgrade window title */\r\n        this.title = '';\r\n        /** Property to use enum on HTML */\r\n        this.upgradeStatusEnum = UpgradeStatusEnum;\r\n        /** The type of pri-loading-spinner component */\r\n        this.loadingSpinnerType = LoadingSpinnerTypeEnum.Indeterminate;\r\n        this.currentState = UpgradeStatusEnum.Init;\r\n        this.message = this.i18nService.get('shell.components.RES_Application_Update_Starting');\r\n        this.interval = setInterval(() => {\r\n            this.checkUpgradeStatus();\r\n        }, 3000);\r\n    }\r\n    /**\r\n     * A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive.\r\n     * Define an ngOnInit() method to handle any additional initialization tasks.\r\n     */\r\n    ngOnInit() {\r\n        this.checkUpgradeStatus();\r\n    }\r\n    /**\r\n     * Check the status of upgrade\r\n     */\r\n    checkUpgradeStatus() {\r\n        this.upgradeApplicationService\r\n            .checkApplicationUpgradesStatus()\r\n            .then((data) => {\r\n            if (data?.length) {\r\n                const upgrade = data.reverse()[0];\r\n                switch (upgrade.status) {\r\n                    case UpgradeStatusEnum.Progress:\r\n                        this.message = upgrade.message;\r\n                        break;\r\n                    case UpgradeStatusEnum.Completed:\r\n                        this.upgradeComplete();\r\n                        break;\r\n                    case UpgradeStatusEnum.CompletedWithError:\r\n                        this.upgradeCompleteWithError();\r\n                        break;\r\n                }\r\n            }\r\n        })\r\n            .catch((error) => {\r\n            clearInterval(this.interval);\r\n            this.interval = null;\r\n            if (error.status) {\r\n                this.exceptionHandlerService.showError(error, false);\r\n            }\r\n            else {\r\n                console.log(error);\r\n                this.exceptionHandlerService.showError({ status: 500 }, false);\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * Fire when the upgrade is complete\r\n     */\r\n    upgradeComplete() {\r\n        this.currentState = UpgradeStatusEnum.Completed;\r\n        clearInterval(this.interval);\r\n        this.interval = null;\r\n        setTimeout(() => {\r\n            this.upgradeCompleted.emit();\r\n        }, 1500);\r\n    }\r\n    /**\r\n     * Fire when the upgrade is complete with error\r\n     */\r\n    upgradeCompleteWithError() {\r\n        clearInterval(this.interval);\r\n        this.interval = null;\r\n        this.currentState = UpgradeStatusEnum.CompletedWithError;\r\n        this.title = this.i18nService.get('shell.components.RES_Application_Update_Finished_With_Error');\r\n        this.message = this.i18nService.get('shell.components.RES_Application_Update_Finished_With_Error_Detail');\r\n    }\r\n}\r\nPriUpgradeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriUpgradeComponent, deps: [{ token: i1$1.UpgradeApplicationService }, { token: i2.ExceptionHandlerService }, { token: i4.I18nService }], target: i0.ɵɵFactoryTarget.Component });\r\nPriUpgradeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: PriUpgradeComponent, selector: \"pri-upgrade-application\", outputs: { upgradeCompleted: \"upgradeCompleted\" }, ngImport: i0, template: \"<section [ngSwitch]=\\\"currentState\\\" class=\\\"application-upgrade\\\">\\r\\n    <!-- Loading -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.Init\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-flag\\\">\\r\\n            <span class=\\\"application-upgrade-flag-title\\\">{{'shell.components.RES_Application_Update_Starting_Title' | priI18n}}</span>\\r\\n            <span class=\\\"application-upgrade-flag-subtitle\\\">{{'shell.components.RES_Application_Update_Starting_Flag_First_Subtitle' | priI18n}}</span>\\r\\n            <span class=\\\"application-upgrade-flag-subtitle\\\">{{'shell.components.RES_Application_Update_Starting_Flag_Last_Subtitle' | priI18n}}</span>\\r\\n        </div>\\r\\n        <div class=\\\"application-upgrade-description-with-flag\\\">\\r\\n            <pri-loading-spinner [type]=\\\"loadingSpinnerType\\\" customSize=\\\"15px\\\" customThickness=\\\"0.1em\\\"></pri-loading-spinner>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{message}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Finish -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.Completed\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-description\\\">\\r\\n            <pri-success-svg width=\\\"162px\\\" height=\\\"162px\\\"></pri-success-svg>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{title || ('shell.components.RES_Application_Update_Finished_Default_Title' | priI18n)}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Error -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.CompletedWithError\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-description\\\">\\r\\n            <pri-error-svg width=\\\"162px\\\" height=\\\"162px\\\"></pri-error-svg>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{title}}</span>\\r\\n            <span class=\\\"application-upgrade-description-message\\\">{{message}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n</section>\", styles: [\"pri-upgrade-application{position:fixed;top:0;left:0;width:100%;height:100%}pri-upgrade-application .application-upgrade{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-upgrade-application .application-upgrade-container{width:440px;height:660px;background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:10px}pri-upgrade-application .application-upgrade-flag{margin-top:60px;background-color:var(--grey-3);width:400px;border-left:3px solid var(--grey-8);padding:22px 40px;display:flex;flex-direction:column}pri-upgrade-application .application-upgrade-flag-title{margin-bottom:10px;font-size:1.3rem;font-weight:700;color:var(--grey-8)}pri-upgrade-application .application-upgrade-flag-subtitle{color:var(--grey-7)}pri-upgrade-application .application-upgrade-description{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex-direction:column;text-align:center;height:100%;padding:40px}pri-upgrade-application .application-upgrade-description-title{font-size:1.3rem;font-weight:700;margin-top:40px;margin-bottom:10px}pri-upgrade-application .application-upgrade-description-title,pri-upgrade-application .application-upgrade-description-message{color:var(--grey-8)}pri-upgrade-application .application-upgrade-description-action{margin:20px 0}pri-upgrade-application .application-upgrade-description-with-flag{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex-direction:column;text-align:center;margin:100px 10px 0}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { kind: \"directive\", type: i3.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"pri-loading-spinner\", inputs: [\"type\", \"progress\", \"size\", \"customSize\", \"customThickness\", \"cssClass\"] }, { kind: \"component\", type: i2.SuccessSvgComponent, selector: \"pri-success-svg\", inputs: [\"width\", \"height\"] }, { kind: \"component\", type: i2.ErrorSvgComponent, selector: \"pri-error-svg\", inputs: [\"width\", \"height\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: PriUpgradeComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-upgrade-application', encapsulation: ViewEncapsulation.None, template: \"<section [ngSwitch]=\\\"currentState\\\" class=\\\"application-upgrade\\\">\\r\\n    <!-- Loading -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.Init\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-flag\\\">\\r\\n            <span class=\\\"application-upgrade-flag-title\\\">{{'shell.components.RES_Application_Update_Starting_Title' | priI18n}}</span>\\r\\n            <span class=\\\"application-upgrade-flag-subtitle\\\">{{'shell.components.RES_Application_Update_Starting_Flag_First_Subtitle' | priI18n}}</span>\\r\\n            <span class=\\\"application-upgrade-flag-subtitle\\\">{{'shell.components.RES_Application_Update_Starting_Flag_Last_Subtitle' | priI18n}}</span>\\r\\n        </div>\\r\\n        <div class=\\\"application-upgrade-description-with-flag\\\">\\r\\n            <pri-loading-spinner [type]=\\\"loadingSpinnerType\\\" customSize=\\\"15px\\\" customThickness=\\\"0.1em\\\"></pri-loading-spinner>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{message}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Finish -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.Completed\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-description\\\">\\r\\n            <pri-success-svg width=\\\"162px\\\" height=\\\"162px\\\"></pri-success-svg>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{title || ('shell.components.RES_Application_Update_Finished_Default_Title' | priI18n)}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Error -->\\r\\n    <div *ngSwitchCase=\\\"upgradeStatusEnum.CompletedWithError\\\" class=\\\"application-upgrade-container\\\">\\r\\n        <div class=\\\"application-upgrade-description\\\">\\r\\n            <pri-error-svg width=\\\"162px\\\" height=\\\"162px\\\"></pri-error-svg>\\r\\n            <span class=\\\"application-upgrade-description-title\\\">{{title}}</span>\\r\\n            <span class=\\\"application-upgrade-description-message\\\">{{message}}</span>\\r\\n        </div>\\r\\n    </div>\\r\\n</section>\", styles: [\"pri-upgrade-application{position:fixed;top:0;left:0;width:100%;height:100%}pri-upgrade-application .application-upgrade{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-upgrade-application .application-upgrade-container{width:440px;height:660px;background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:10px}pri-upgrade-application .application-upgrade-flag{margin-top:60px;background-color:var(--grey-3);width:400px;border-left:3px solid var(--grey-8);padding:22px 40px;display:flex;flex-direction:column}pri-upgrade-application .application-upgrade-flag-title{margin-bottom:10px;font-size:1.3rem;font-weight:700;color:var(--grey-8)}pri-upgrade-application .application-upgrade-flag-subtitle{color:var(--grey-7)}pri-upgrade-application .application-upgrade-description{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex-direction:column;text-align:center;height:100%;padding:40px}pri-upgrade-application .application-upgrade-description-title{font-size:1.3rem;font-weight:700;margin-top:40px;margin-bottom:10px}pri-upgrade-application .application-upgrade-description-title,pri-upgrade-application .application-upgrade-description-message{color:var(--grey-8)}pri-upgrade-application .application-upgrade-description-action{margin:20px 0}pri-upgrade-application .application-upgrade-description-with-flag{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex-direction:column;text-align:center;margin:100px 10px 0}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.UpgradeApplicationService }, { type: i2.ExceptionHandlerService }, { type: i4.I18nService }]; }, propDecorators: { upgradeCompleted: [{\r\n                type: Output\r\n            }] } });\n\nclass ZendeskConfig {\r\n    constructor() {\r\n        // lazyLoad: boolean = true;\r\n        this.accountUrl = 'd3v-testebot.zendesk.com';\r\n        this.timeOut = 0;\r\n    }\r\n    callback(zE) {\r\n        zE('webWidget', 'hide');\r\n    }\r\n    ;\r\n}\r\nZendeskConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZendeskConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nZendeskConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZendeskConfig });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZendeskConfig, decorators: [{\r\n            type: Injectable\r\n        }] });\n\nclass ZopimService {\r\n    constructor(appContextService, i18nService, zendeskConfig, windowService) {\r\n        this.appContextService = appContextService;\r\n        this.i18nService = i18nService;\r\n        this.zendeskConfig = zendeskConfig;\r\n        this.windowService = windowService;\r\n        this.initialized = false;\r\n        this.isChatOpen = false;\r\n        if (!zendeskConfig.accountUrl) {\r\n            throw new Error('Missing accountUrl. Please set in app config via ZendeskWidgetProvider');\r\n        }\r\n        this.window = this.windowService.window;\r\n    }\r\n    /**\r\n     *\r\n     * @param increaseOffset\r\n     */\r\n    async init(accountUrl, increaseOffset) {\r\n        this.zendeskConfig.accountUrl = accountUrl;\r\n        if (await this.initializeZendesk(this.zendeskConfig)) {\r\n            const ctx = this.appContextService.getContext();\r\n            this.zE('webWidget', 'setLocale', ctx.user.culture);\r\n            this.zE('webWidget', 'identify', {\r\n                name: ctx.user.displayName,\r\n                email: ctx.user.name\r\n            });\r\n            const vOffset = (increaseOffset) ? '100px' : '72px';\r\n            this.zE('webWidget', 'updateSettings', {\r\n                webWidget: {\r\n                    position: { horizontal: 'right', vertical: 'top' },\r\n                    offset: { vertical: vOffset },\r\n                    chat: {\r\n                        departments: {\r\n                            enabled: [ctx.zopim?.department],\r\n                            select: ctx.zopim?.department\r\n                        },\r\n                        tags: [this.appContextService.tenantKey, this.appContextService.organizationKey],\r\n                        concierge: {\r\n                            name: this.i18nService.get('shell.components.RES_Chat_Concierge_Name'),\r\n                            title: { '*': this.i18nService.get('shell.components.RES_Chat_Concierge_Title') }\r\n                        },\r\n                        offlineForm: {\r\n                            greeting: {\r\n                                '*': this.i18nService.get('shell.components.RES_Chat_OfflineForm_Greeting')\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            });\r\n            this.onClose();\r\n        }\r\n    }\r\n    toggle() {\r\n        if (this.isChatOpen) {\r\n            this.zE('webWidget', 'hide');\r\n        }\r\n        else {\r\n            this.zE.activate();\r\n        }\r\n        this.isChatOpen = this.isChatOpen ? false : true;\r\n    }\r\n    hide() {\r\n        this.zE('webWidget', 'hide');\r\n    }\r\n    show() {\r\n        this.zE('webWidget', 'show');\r\n    }\r\n    switchFlag(flag) {\r\n        this.isChatOpen = flag;\r\n    }\r\n    onClose() {\r\n        const self = this;\r\n        this.zE(() => {\r\n            this.zE('webWidget:on', 'close', () => {\r\n                self.switchFlag(false);\r\n            });\r\n        });\r\n    }\r\n    initializeZendesk(config) {\r\n        if (this.window.zEmbed) {\r\n            this.window.zEmbed();\r\n        }\r\n        else {\r\n            this.zEmbed(config);\r\n        }\r\n        return this.finishLoading();\r\n    }\r\n    finishLoading() {\r\n        return new Promise((resolve) => {\r\n            const timeout = setTimeout(() => {\r\n                this.initialized = false;\r\n                resolve(false);\r\n            }, this.zendeskConfig.timeOut || 30000); // 30 seconds\r\n            this.window.zE(() => {\r\n                this.zendeskConfig.callback(this.window.zE);\r\n                this.initialized = true;\r\n                this.zE = this.window.zE;\r\n                clearTimeout(timeout);\r\n                resolve(true);\r\n            });\r\n        });\r\n    }\r\n    zEmbed(config) {\r\n        let n;\r\n        let o;\r\n        let d;\r\n        const a = [];\r\n        const r = document.createElement('iframe');\r\n        // eslint-disable-next-line prefer-arrow/prefer-arrow-functions\r\n        this.window.zEmbed = function () {\r\n            a.push(arguments);\r\n        };\r\n        this.window.zE = this.window.zE || this.window.zEmbed;\r\n        r.src = 'javascript:false';\r\n        r.title = '';\r\n        r.style.cssText = 'display: none';\r\n        d = document.getElementsByTagName(config.injectionTag || 'head');\r\n        d = d[d.length - 1];\r\n        d.parentNode.insertBefore(r, d);\r\n        const i = r.contentWindow;\r\n        const s = i.document;\r\n        try {\r\n            o = s;\r\n        }\r\n        catch (e) {\r\n            n = document.domain;\r\n            r.src = 'javascript:var d=document.open();d.domain=\"' + n + '\";void(0);';\r\n            o = s;\r\n        }\r\n        o.open()._l = function () {\r\n            const el = this.createElement('script');\r\n            if (n) {\r\n                this.domain = n;\r\n            }\r\n            el.id = 'js-iframe-async';\r\n            el.src = 'https://assets.zendesk.com/embeddable_framework/main.js';\r\n            this.t = +new Date();\r\n            this.zendeskHost = config.accountUrl;\r\n            this.zEQueue = a;\r\n            this.body.appendChild(el);\r\n        };\r\n        o.write('<body onload=\"document._l();\">');\r\n        o.close();\r\n    }\r\n}\r\nZopimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZopimService, deps: [{ token: i1$1.AppContextService }, { token: i4.I18nService }, { token: ZendeskConfig }, { token: i1$1.WindowService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nZopimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZopimService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ZopimService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i1$1.AppContextService }, { type: i4.I18nService }, { type: ZendeskConfig }, { type: i1$1.WindowService }]; } });\n\nclass LayoutRootService {\r\n    constructor() { }\r\n    onScroll() {\r\n        if (!this.scrollSubscriber) {\r\n            this.scrollObservable = new Observable((observer) => {\r\n                this.scrollSubscriber = observer;\r\n            });\r\n        }\r\n        return this.scrollObservable;\r\n    }\r\n    emitScrollEvent(event) {\r\n        if (this.scrollSubscriber) {\r\n            this.scrollSubscriber.next(event);\r\n        }\r\n    }\r\n    onMenuStateChanged() {\r\n        if (!this.menuSubscriber) {\r\n            this.menuObservable = new Observable((observer) => {\r\n                this.menuSubscriber = observer;\r\n            });\r\n        }\r\n        return this.menuObservable;\r\n    }\r\n    emitMenuState(state) {\r\n        if (this.menuSubscriber) {\r\n            this.menuSubscriber.next(state);\r\n        }\r\n    }\r\n}\r\nLayoutRootService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LayoutRootService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nLayoutRootService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LayoutRootService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LayoutRootService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return []; } });\n\nclass ShellConfigurationService {\r\n    /*\r\n      * Constructs the application\r\n    */\r\n    constructor(settingsService) {\r\n        this.settingsService = settingsService;\r\n    }\r\n    getGeneralConfiguration() {\r\n        return this.settingsService.getShellGeneralSettings();\r\n    }\r\n    getApplicationsConfiguration() {\r\n        return this.settingsService.getApplicationsConfiguration();\r\n    }\r\n}\r\nShellConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellConfigurationService, deps: [{ token: i1$1.SettingsService }], target: i0.ɵɵFactoryTarget.Injectable });\r\nShellConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellConfigurationService, providedIn: 'root' });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellConfigurationService, decorators: [{\r\n            type: Injectable,\r\n            args: [{\r\n                    providedIn: 'root'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.SettingsService }]; } });\n\nclass QuickActionsComponent {\r\n    constructor(menuService, shellConfigurationService, router, amsService) {\r\n        this.menuService = menuService;\r\n        this.shellConfigurationService = shellConfigurationService;\r\n        this.router = router;\r\n        this.amsService = amsService;\r\n        this.quickActionsHasItems = new EventEmitter();\r\n        this.quickActions = [];\r\n    }\r\n    clickOut(event) {\r\n        if (this.rootElement && !this.rootElement.nativeElement.contains(event.target)) {\r\n            this.isOpen = false;\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.shellConfigurationService.getGeneralConfiguration().then(({ shellResources: { quickActionsMenuUri } }) => {\r\n            if (quickActionsMenuUri) {\r\n                this.menuService.getQuickActions(quickActionsMenuUri).then(result => {\r\n                    this.quickActions = result;\r\n                    if (this.quickActions.length) {\r\n                        this.quickActionsHasItems.emit(true);\r\n                    }\r\n                });\r\n            }\r\n        });\r\n    }\r\n    onItemClick(url) {\r\n        url = this.amsService.addAccountAndSubscriptionToUrl(url);\r\n        this.router.navigateByUrl(`${url}`);\r\n        this.isOpen = false;\r\n    }\r\n}\r\nQuickActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: QuickActionsComponent, deps: [{ token: MenuService }, { token: ShellConfigurationService }, { token: i1$2.Router }, { token: i1$1.AmsService }], target: i0.ɵɵFactoryTarget.Component });\r\nQuickActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: QuickActionsComponent, selector: \"pri-quick-actions\", outputs: { quickActionsHasItems: \"quickActionsHasItems\" }, host: { listeners: { \"document:click\": \"clickOut($event)\" } }, viewQueries: [{ propertyName: \"rootElement\", first: true, predicate: [\"rootElement\"], descendants: true }, { propertyName: \"dropDownElement\", first: true, predicate: [\"dropDownElement\"], descendants: true }], ngImport: i0, template: \"<div #rootElement class=\\\"dropdown\\\" *ngIf=\\\"quickActions.length > 0\\\" [ngClass]=\\\"isOpen ? 'is-open ' : ''\\\">\\r\\n  <div data-testid=\\\"quick-actions-icon-wrapper\\\" class=\\\"icon-wrapper\\\" (click)=\\\"isOpen = !isOpen\\\">\\r\\n    <div data-testid=\\\"quick-actions-toggle-icon\\\" class=\\\"toggle-icon\\\">\\r\\n      <a href=\\\"javascript:void(0);\\\" class=\\\"dropdown-toggle no-after\\\" data-toggle=\\\"dropdown\\\">\\r\\n        <i class=\\\"ti-ux-quickactions\\\"></i>\\r\\n      </a>\\r\\n    </div>\\r\\n  </div>\\r\\n\\r\\n\\r\\n  <ul #dropDownElement data-testid=\\\"quick-actions-dropdown-menu\\\" class=\\\"dropdown-menu from-right pos-r scrollable\\\">\\r\\n\\r\\n    <li class=\\\"quick-menu-item\\\" *ngFor=\\\"let item of quickActions\\\">\\r\\n      <a (click)=\\\"onItemClick(item.uri)\\\">\\r\\n        <!-- <div class=\\\"mR-15\\\"> -->\\r\\n        <span class=\\\"icon-holder\\\">\\r\\n          <i [ngClass]=\\\"item.icon ? item.icon : 'cl-transparent ti-ux-favourite-outline'\\\"></i>\\r\\n        </span>\\r\\n        <!-- </div> -->\\r\\n        <div>\\r\\n          <span class=\\\"text-holder\\\">\\r\\n            <span class=\\\"line-one\\\">{{item.caption | priI18n }}</span>&nbsp;\\r\\n            <span class=\\\"line-two\\\">{{item.group | priI18n }}</span>\\r\\n          </span>\\r\\n        </div>\\r\\n      </a>\\r\\n    </li>\\r\\n\\r\\n  </ul>\\r\\n\\r\\n</div>\\r\\n\", styles: [\"pri-quick-actions{width:100%;height:100%}pri-quick-actions .toggle-icon{height:22px;width:22px;transition:all .1s linear}pri-quick-actions a.dropdown-toggle{color:#fff;display:flex;transition:all .2s ease-in-out}pri-quick-actions a.dropdown-toggle i{font-size:24px;line-height:21px;margin:auto;transition:color .2s ease}pri-quick-actions .dropdown{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-quick-actions .dropdown .icon-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-quick-actions .dropdown .dropdown-menu{min-width:290px;padding:0;left:auto;right:0;background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);display:block;margin:0;transform-origin:top right;transform:scale(0);transition:transform .15s ease-out}@media only screen and (max-width: 767px){pri-quick-actions .dropdown .dropdown-menu{max-width:300px}}pri-quick-actions .dropdown .dropdown-menu .divider{border-bottom:1px solid var(--grey-4);height:1px;overflow:hidden}pri-quick-actions .dropdown .dropdown-menu>li{left:auto;right:0}pri-quick-actions .dropdown .dropdown-menu>li>a{transition:all .2s ease-out;line-height:1.5;min-height:auto;padding:15px;display:flex;flex-direction:row}pri-quick-actions .dropdown .dropdown-menu>li>a:focus{background-color:inherit}pri-quick-actions .dropdown .dropdown-menu>li>a:hover{color:var(--grey-8)}pri-quick-actions .is-open{background-color:var(--header-60)}pri-quick-actions .is-open .dropdown-menu{transform:scale(1)}pri-quick-actions .is-open .toggle-icon{transform:rotate(-45deg)}pri-quick-actions .is-open .toggle-icon i{color:#fff}pri-quick-actions .quick-menu-item{color:var(--grey-8);border-bottom:1px solid var(--grey-4)}pri-quick-actions .quick-menu-item .icon-holder{font-size:24px;margin-top:3px;display:flex;align-items:center;justify-content:center;padding-right:6px}pri-quick-actions .quick-menu-item .icon-holder i{font-size:17px;color:var(--grey-8)}pri-quick-actions .quick-menu-item .text-holder{display:block;padding-left:10px}pri-quick-actions .quick-menu-item .text-holder .line-one{float:left;font-size:12px}pri-quick-actions .quick-menu-item .text-holder .line-two{float:left;clear:left;font-size:14px}pri-quick-actions .quick-menu-item a{color:var(--grey-8)}pri-quick-actions .quick-menu-item a:hover{background-color:var(--grey-4)}pri-quick-actions .quick-menu-item:last-child{border:none}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: QuickActionsComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-quick-actions', encapsulation: ViewEncapsulation.None, template: \"<div #rootElement class=\\\"dropdown\\\" *ngIf=\\\"quickActions.length > 0\\\" [ngClass]=\\\"isOpen ? 'is-open ' : ''\\\">\\r\\n  <div data-testid=\\\"quick-actions-icon-wrapper\\\" class=\\\"icon-wrapper\\\" (click)=\\\"isOpen = !isOpen\\\">\\r\\n    <div data-testid=\\\"quick-actions-toggle-icon\\\" class=\\\"toggle-icon\\\">\\r\\n      <a href=\\\"javascript:void(0);\\\" class=\\\"dropdown-toggle no-after\\\" data-toggle=\\\"dropdown\\\">\\r\\n        <i class=\\\"ti-ux-quickactions\\\"></i>\\r\\n      </a>\\r\\n    </div>\\r\\n  </div>\\r\\n\\r\\n\\r\\n  <ul #dropDownElement data-testid=\\\"quick-actions-dropdown-menu\\\" class=\\\"dropdown-menu from-right pos-r scrollable\\\">\\r\\n\\r\\n    <li class=\\\"quick-menu-item\\\" *ngFor=\\\"let item of quickActions\\\">\\r\\n      <a (click)=\\\"onItemClick(item.uri)\\\">\\r\\n        <!-- <div class=\\\"mR-15\\\"> -->\\r\\n        <span class=\\\"icon-holder\\\">\\r\\n          <i [ngClass]=\\\"item.icon ? item.icon : 'cl-transparent ti-ux-favourite-outline'\\\"></i>\\r\\n        </span>\\r\\n        <!-- </div> -->\\r\\n        <div>\\r\\n          <span class=\\\"text-holder\\\">\\r\\n            <span class=\\\"line-one\\\">{{item.caption | priI18n }}</span>&nbsp;\\r\\n            <span class=\\\"line-two\\\">{{item.group | priI18n }}</span>\\r\\n          </span>\\r\\n        </div>\\r\\n      </a>\\r\\n    </li>\\r\\n\\r\\n  </ul>\\r\\n\\r\\n</div>\\r\\n\", styles: [\"pri-quick-actions{width:100%;height:100%}pri-quick-actions .toggle-icon{height:22px;width:22px;transition:all .1s linear}pri-quick-actions a.dropdown-toggle{color:#fff;display:flex;transition:all .2s ease-in-out}pri-quick-actions a.dropdown-toggle i{font-size:24px;line-height:21px;margin:auto;transition:color .2s ease}pri-quick-actions .dropdown{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-quick-actions .dropdown .icon-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-quick-actions .dropdown .dropdown-menu{min-width:290px;padding:0;left:auto;right:0;background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);display:block;margin:0;transform-origin:top right;transform:scale(0);transition:transform .15s ease-out}@media only screen and (max-width: 767px){pri-quick-actions .dropdown .dropdown-menu{max-width:300px}}pri-quick-actions .dropdown .dropdown-menu .divider{border-bottom:1px solid var(--grey-4);height:1px;overflow:hidden}pri-quick-actions .dropdown .dropdown-menu>li{left:auto;right:0}pri-quick-actions .dropdown .dropdown-menu>li>a{transition:all .2s ease-out;line-height:1.5;min-height:auto;padding:15px;display:flex;flex-direction:row}pri-quick-actions .dropdown .dropdown-menu>li>a:focus{background-color:inherit}pri-quick-actions .dropdown .dropdown-menu>li>a:hover{color:var(--grey-8)}pri-quick-actions .is-open{background-color:var(--header-60)}pri-quick-actions .is-open .dropdown-menu{transform:scale(1)}pri-quick-actions .is-open .toggle-icon{transform:rotate(-45deg)}pri-quick-actions .is-open .toggle-icon i{color:#fff}pri-quick-actions .quick-menu-item{color:var(--grey-8);border-bottom:1px solid var(--grey-4)}pri-quick-actions .quick-menu-item .icon-holder{font-size:24px;margin-top:3px;display:flex;align-items:center;justify-content:center;padding-right:6px}pri-quick-actions .quick-menu-item .icon-holder i{font-size:17px;color:var(--grey-8)}pri-quick-actions .quick-menu-item .text-holder{display:block;padding-left:10px}pri-quick-actions .quick-menu-item .text-holder .line-one{float:left;font-size:12px}pri-quick-actions .quick-menu-item .text-holder .line-two{float:left;clear:left;font-size:14px}pri-quick-actions .quick-menu-item a{color:var(--grey-8)}pri-quick-actions .quick-menu-item a:hover{background-color:var(--grey-4)}pri-quick-actions .quick-menu-item:last-child{border:none}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: MenuService }, { type: ShellConfigurationService }, { type: i1$2.Router }, { type: i1$1.AmsService }]; }, propDecorators: { rootElement: [{\r\n                type: ViewChild,\r\n                args: ['rootElement']\r\n            }], dropDownElement: [{\r\n                type: ViewChild,\r\n                args: ['dropDownElement']\r\n            }], quickActionsHasItems: [{\r\n                type: Output\r\n            }], clickOut: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass UserAreaComponent {\r\n    constructor(appContextService, modalService, storageService, zopimService, helpPageService, broadcastService, i18nService, userSettings, elementReference, exceptionHandlerService, shellStateService, deviceService, shellConfigurationService, identityService, themeService, routeHelperService, amsService, settingsService, roleService) {\r\n        this.appContextService = appContextService;\r\n        this.modalService = modalService;\r\n        this.storageService = storageService;\r\n        this.zopimService = zopimService;\r\n        this.helpPageService = helpPageService;\r\n        this.broadcastService = broadcastService;\r\n        this.i18nService = i18nService;\r\n        this.userSettings = userSettings;\r\n        this.elementReference = elementReference;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.shellStateService = shellStateService;\r\n        this.deviceService = deviceService;\r\n        this.shellConfigurationService = shellConfigurationService;\r\n        this.identityService = identityService;\r\n        this.themeService = themeService;\r\n        this.routeHelperService = routeHelperService;\r\n        this.amsService = amsService;\r\n        this.settingsService = settingsService;\r\n        this.roleService = roleService;\r\n        this.isChatEnabled = false;\r\n        this.isSmallDevice = false;\r\n        this.subscriptionUsersPageUrl = '#/identity/users/list?listname=users';\r\n        this.hasMoreThanOneRole = false;\r\n        this.isVisible = false;\r\n        this.roleState = '';\r\n        this.themeState = '';\r\n        this.userAreaMenuSettings = {\r\n            userProfile: { hide: false, claims: [] },\r\n            subscriptionUsersButton: { hide: false, claims: [] },\r\n            subscriptionButton: { hide: false, claims: [] },\r\n            changeThemeMenu: { hide: false, claims: [] },\r\n            supportButton: { hide: false, claims: [] },\r\n            chatButton: { hide: false, claims: [] },\r\n            helpCenterButton: { hide: false, claims: [] },\r\n            shortcutsButton: { hide: false, claims: [] },\r\n            aboutButton: { hide: false, claims: [] },\r\n            applicationButton: { hide: false, claims: [] },\r\n            logoutButton: { hide: false, claims: [] }\r\n        };\r\n        this.ThemesEnum = ThemesEnum;\r\n        this.destroy$ = new Subject();\r\n    }\r\n    get subscriptionManagementUrl() {\r\n        return this.appContextService.getContext().subscriptionManagementUrl;\r\n    }\r\n    clickout(event) {\r\n        if (this.elementReference.nativeElement && !this.elementReference.nativeElement.contains(event.target)) {\r\n            this.isVisible = false;\r\n        }\r\n    }\r\n    async ngOnInit() {\r\n        const generalSettings = await this.settingsService.getShellGeneralSettings();\r\n        this.hasIdentity = generalSettings.identity.enabled;\r\n        this.hasSubscriptions = generalSettings.shellResources.subscriptionsSourceUri?.length > 0;\r\n        this.getUserAreaMenuSettings();\r\n        if (this.hasIdentity) {\r\n            this.setUserInfo();\r\n        }\r\n        this.loadHelpPageItems();\r\n        if (await this.settingsService.isElevationFW()) {\r\n            this.roleData = this.roleService.userSubscriptionRoles;\r\n            this.hasMoreThanOneRole = this.roleData && this.roleData.length > 1;\r\n            this.currentRole = this.roleData.find((o) => o.roleKey === this.roleService.roleKey);\r\n        }\r\n        this.shellConfigurationService\r\n            .getGeneralConfiguration()\r\n            .then(({ applicationsExternalUri, hideRoleIfSingleRole }) => {\r\n            this.applicationsExternalUri = applicationsExternalUri;\r\n            this.hideRoleIfSingleRole = hideRoleIfSingleRole;\r\n        });\r\n    }\r\n    ngOnDestroy() {\r\n        if (this.helpPageEventsSubscription) {\r\n            this.helpPageEventsSubscription();\r\n            this.helpPageEventsSubscription = null;\r\n        }\r\n        this.destroy$.next(true);\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    async getUserAreaMenuSettings() {\r\n        try {\r\n            const { userAreaMenuSettings } = await this.shellConfigurationService.getGeneralConfiguration();\r\n            this.userAreaMenuSettings = { ...this.userAreaMenuSettings, ...userAreaMenuSettings };\r\n        }\r\n        catch (ex) {\r\n            console.error(ex);\r\n        }\r\n    }\r\n    async handleUserAreaButtonClick() {\r\n        const haveSomeEnabledContent = Object.keys(this.userAreaMenuSettings).some((key) => !this.userAreaMenuSettings?.[key].hide);\r\n        if (haveSomeEnabledContent) {\r\n            this.isVisible = !this.isVisible;\r\n        }\r\n    }\r\n    scrollPerformed(event) {\r\n        // This code sets the top position of the sub-menus regarding the scroll position of the menu\r\n        event.srcElement.querySelector('.sub-menu').style.marginTop = `-${event.srcElement.scrollTop + 12}px`;\r\n    }\r\n    navigateTo(event, url, _blank) {\r\n        if (this.deviceService.isMobileDevice()) {\r\n            this.broadcastService.emit('onCloseMenuState');\r\n        }\r\n        event.preventDefault();\r\n        this.isVisible = false;\r\n        if (_blank) {\r\n            window.open(url, '_blank');\r\n        }\r\n        else {\r\n            this.routeHelperService.navigate(this.amsService.account, this.amsService.subscription, url);\r\n        }\r\n    }\r\n    onUserImgError() {\r\n        this.userInfo.picture = undefined; // show the user initials if the image failed to load\r\n    }\r\n    openSupportRequestModal() {\r\n        this.modalService.showModal(SupportRequestComponent, null, 'md', null, null, 'support-request-modal');\r\n        this.isVisible = false;\r\n    }\r\n    openAboutModal() {\r\n        this.modalService.showModal(AboutComponent, null, 'sm', null, null, 'about-modal');\r\n        this.isVisible = false;\r\n    }\r\n    toggleLiveChat() {\r\n        this.zopimService.toggle();\r\n    }\r\n    changeTheme(theme) {\r\n        if (theme === this.themeService.theme) {\r\n            return;\r\n        }\r\n        this.isVisible = false;\r\n        this.shellStateService.setLoadingState(true);\r\n        this.themeService.addTheme(theme).then(() => {\r\n            const settingDefinition = {\r\n                settingKey: 'appTheme',\r\n                value: theme\r\n            };\r\n            this.userSettings.setCurrentUserSetting(settingDefinition);\r\n            this.broadcastService.emit('theme_changed');\r\n            this.themeState = '';\r\n            this.shellStateService.setLoadingState(false);\r\n        });\r\n    }\r\n    signOut() {\r\n        this.storageService.sessionRemoveByPrefix('usersetting');\r\n        this.identityService.logout();\r\n    }\r\n    setUserDefaultRole(roleKey) {\r\n        if (roleKey && this.currentRole && roleKey !== this.currentRole.roleKey) {\r\n            this.shellStateService.setLoadingState(true);\r\n            this.roleService\r\n                .setCurrentUserRoleKeyAsync(roleKey)\r\n                .then((res) => {\r\n                window.location.href = `/${this.appContextService.tenantKey}/${this.appContextService.organizationKey}/`;\r\n            })\r\n                .catch((error) => {\r\n                this.shellStateService.setLoadingState(false);\r\n                this.exceptionHandlerService.showError(error);\r\n            });\r\n        }\r\n    }\r\n    openRoleMenu(event) {\r\n        if (this.isMobileDevice()) {\r\n            event.stopPropagation();\r\n        }\r\n    }\r\n    isMobileDevice() {\r\n        return this.deviceService.isMobileBrowser();\r\n    }\r\n    openUserProfile(userInfo) {\r\n        window.open(userInfo?.userProfileUrl, '_blank');\r\n    }\r\n    isAllowed(menuOption) {\r\n        if (!this.userAreaMenuSettings[menuOption].hide) {\r\n            const claimsToCheck = this.userAreaMenuSettings[menuOption].claims;\r\n            if (claimsToCheck?.length > 0) {\r\n                return this.appContextService.containsClaims(claimsToCheck.join(','));\r\n            }\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n    loadHelpPageItems() {\r\n        const helpPageItems = [\r\n            {\r\n                title: this.i18nService.get('shell.components.RES_Shell_Header_User_Help_Center'),\r\n                iconClass: 'icon ti-ux-help-outline',\r\n                elementId: 'ti-ux-help-outline',\r\n                canBeMounted: () => this.isAllowed('helpCenterButton'),\r\n                isDisabled: () => false,\r\n                action: () => {\r\n                    this.helpPageService.openHelpCenterPage(this.userAreaMenuSettings.helpCenterButton);\r\n                }\r\n            },\r\n            {\r\n                title: this.i18nService.get('shell.components.RES_Shell_Header_User_Help_Shortcuts'),\r\n                iconClass: 'icon ti-ux-shortcut',\r\n                elementId: 'ti-ux-shortcut',\r\n                canBeMounted: () => this.isAllowed('shortcutsButton'),\r\n                isDisabled: () => false,\r\n                action: () => {\r\n                    this.helpPageService.showShortcutsHelpPage(this.userAreaMenuSettings.shortcutsButton);\r\n                }\r\n            }\r\n        ];\r\n        this.helpPageItems = helpPageItems;\r\n    }\r\n    setUserInfo() {\r\n        this.userInfo = this.appContextService.getContext().user;\r\n        if (this.userInfo) {\r\n            const matches = this.userInfo.displayName?.match(/\\b(\\w)/g); // ['J','S','O','N']\r\n            if (matches) {\r\n                this.userInfo.initials = matches.join('');\r\n            }\r\n        }\r\n    }\r\n}\r\nUserAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserAreaComponent, deps: [{ token: i1$1.AppContextService }, { token: i2.ModalService }, { token: i1$1.StorageService }, { token: ZopimService }, { token: i2.HelpPageService }, { token: i1$1.BroadcastService }, { token: i4.I18nService }, { token: i1$1.UserSettingsService }, { token: i0.ElementRef }, { token: i2.ExceptionHandlerService }, { token: i1$1.ShellStateService }, { token: i1$1.DeviceService }, { token: ShellConfigurationService }, { token: i1$1.IdentityService }, { token: i1$1.ThemeService }, { token: i1$1.RouteHelperService }, { token: i1$1.AmsService }, { token: i1$1.SettingsService }, { token: i1$1.RoleService }], target: i0.ɵɵFactoryTarget.Component });\r\nUserAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: UserAreaComponent, selector: \"pri-user-area\", inputs: { isChatEnabled: \"isChatEnabled\", isSmallDevice: \"isSmallDevice\" }, host: { listeners: { \"document:click\": \"clickout($event)\" } }, ngImport: i0, template: \"<div\\r\\n\\tdata-testid=\\\"user-area-button\\\"\\r\\n\\tclass=\\\"user-area-button\\\"\\r\\n\\t(click)=\\\"handleUserAreaButtonClick()\\\"\\r\\n\\t[ngClass]=\\\"{ 'menu-open': isVisible }\\\">\\r\\n\\t<div *ngIf=\\\"hasIdentity\\\" class=\\\"icon\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"image\\\"\\r\\n\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\t(userInfo.picture && userInfo.picture.indexOf('user_generic.png') < 0) ||\\r\\n\\t\\t\\t\\t(userInfo.picture && !userInfo.initials)\\r\\n\\t\\t\\t\\\">\\r\\n\\t\\t\\t<img class=\\\"user-image\\\" [src]=\\\"userInfo.picture\\\" [alt]=\\\"userInfo.displayName\\\" (error)=\\\"onUserImgError()\\\" />\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"letter\\\" *ngIf=\\\"!userInfo.picture || userInfo.picture.indexOf('user_generic.png') >= 0\\\">\\r\\n\\t\\t\\t{{ userInfo.initials | slice : 0 : 2 }}\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"!hasIdentity\\\">\\r\\n\\t\\t<i class=\\\"ti-ux-system-outline\\\"></i>\\r\\n\\t</div>\\r\\n</div>\\r\\n<div data-testid=\\\"user-menu-wrapper\\\" class=\\\"user-menu-wrapper\\\">\\r\\n\\t<div\\r\\n\\t\\tdata-testid=\\\"user-area-menu\\\"\\r\\n\\t\\tclass=\\\"user-area-menu\\\"\\r\\n\\t\\t*ngIf=\\\"isVisible\\\"\\r\\n\\t\\t[@enterLeaveTopAnimation]\\r\\n\\t\\t(scroll)=\\\"scrollPerformed($event)\\\">\\r\\n\\t\\t<!-- Profile -->\\r\\n\\t\\t<div class=\\\"user-menu-header line hide-on-mobile\\\" *ngIf=\\\"this.isAllowed('userProfile') && hasIdentity\\\">\\r\\n\\t\\t\\t<div class=\\\"user-basic-info\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"user-name\\\">{{ userInfo.displayName }}</div>\\r\\n\\t\\t\\t\\t<div class=\\\"user-email\\\" priTooltipHover>{{ userInfo.email }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"user-profile-info\\\" (click)=\\\"openUserProfile(userInfo)\\\">\\r\\n\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\trole=\\\"user-profile-button\\\"\\r\\n\\t\\t\\t\\t\\tpriI18n=\\\"shell.components.RES_Shell_Header_User_Profile\\\"\\r\\n\\t\\t\\t\\t\\thref=\\\"{{ userInfo.userProfileUrl }}\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"$event.preventDefault()\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-profile\\\"></a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Role -->\\r\\n\\t\\t<div\\r\\n\\t\\t\\tid=\\\"RoleGroup\\\"\\r\\n\\t\\t\\tclass=\\\"user-menu-body line\\\"\\r\\n\\t\\t\\t*ngIf=\\\"currentRole && !(!hasMoreThanOneRole && hideRoleIfSingleRole) && hasIdentity\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(mouseover)=\\\"roleState = 'is-open-role'\\\"\\r\\n\\t\\t\\t\\t(mouseout)=\\\"roleState = ''\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"(roleState === 'is-open-role' ? '' : 'is-open-role')\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-open-role\\\">\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"!hasMoreThanOneRole\\\" class=\\\"small-line no-hover\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ currentRole.description }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"hasMoreThanOneRole\\\" class=\\\"small-line\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon ti-ux-chevron-left\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ currentRole.description }}</div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"sub-menu\\\" [ngClass]=\\\"roleState\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngFor=\\\"let item of roleData\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(click)=\\\"setUserDefaultRole(item.roleKey)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-role-{{ item.roleKey }}\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.description }}</div>\\r\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': item.roleKey === currentRole.roleKey }\\\"></div>\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"show-on-mobile\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let item of roleData\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"setUserDefaultRole(item.roleKey)\\\"\\r\\n\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-role-{{ item.roleKey }}-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" *ngIf=\\\"!(hasMoreThanOneRole && item.roleKey === currentRole.roleKey)\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"icon ti-ux-check\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"hasMoreThanOneRole && item.roleKey === currentRole.roleKey\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.description }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Users / Subscriptions / Support Requests -->\\r\\n\\t\\t<div *ngIf=\\\"hasSubscriptions\\\" class=\\\"user-menu-body line\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line menu-profile show-on-mobile-flex\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, userInfo.userProfileUrl, true)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-user-profile\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('userProfile')\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-user\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Profile' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, this.subscriptionUsersPageUrl)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-user-subscription\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('subscriptionUsersButton')\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SubscriptionUsers' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"this.isAllowed('subscriptionButton')\\\">\\r\\n\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\thref=\\\"{{ subscriptionManagementUrl }}\\\"\\r\\n\\t\\t\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-subscription-management\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_SubscriptionServices' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Theme -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('changeThemeMenu')\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(mouseover)=\\\"themeState = 'is-open-theme'\\\"\\r\\n\\t\\t\\t\\t(mouseout)=\\\"themeState = ''\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"(themeState === 'is-open-theme' ? '' : 'is-open-theme')\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-open-theme\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-chevron-left\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Change_Theme' | priI18n }}</div>\\r\\n\\t\\t\\t\\t<div class=\\\"sub-menu line\\\" [ngClass]=\\\"themeState\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"changeTheme(ThemesEnum.Light)\\\" data-testid=\\\"user-area-theme-white\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Regular' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Light === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"changeTheme(ThemesEnum.Dark)\\\" data-testid=\\\"user-area-theme-dark\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Dark' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Dark === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"show-on-mobile\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"changeTheme(ThemesEnum.Light)\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-theme-white-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Light === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Regular' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"changeTheme(ThemesEnum.Dark)\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-theme-dark-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Dark === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Dark' | priI18n }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Support Chat / Help Center / Quick Guide / Shortcutz -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('supportButton')\\\"\\r\\n\\t\\t\\t\\tclass=\\\"small-line hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"this.openSupportRequestModal()\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-support-request\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-email\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SupportRequest' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line show-on-mobile-flex live-chat\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"isChatEnabled && this.isAllowed('chatButton')\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"toggleLiveChat()\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-live-chat\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-support\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SupportChat' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<ng-container *ngFor=\\\"let item of helpPageItems\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"item.canBeMounted()\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'hide-on-mobile': item.hideOnMobile, 'is-disable': item.isDisabled() }\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"item.action()\\\"\\r\\n\\t\\t\\t\\t\\tid=\\\"{{ item.elementId }}\\\"\\r\\n\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-help-page-{{ item.elementId }}\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.title }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t<div class=\\\"small-line\\\" *ngIf=\\\"this.isAllowed('aboutButton')\\\" (click)=\\\"this.openAboutModal()\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-info\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_About' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- App Store -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('applicationButton') && applicationsExternalUri\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, applicationsExternalUri, true)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-applications\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-bag\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_App_Store' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Logout -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('logoutButton') && hasIdentity\\\">\\r\\n\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"signOut()\\\" data-testid=\\\"user-area-logout\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-power-off\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Logout' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-user-area{width:60px;height:100%;color:var(--grey-8)}pri-user-area .user-area-button{display:flex;align-items:center;justify-content:center;height:100%}pri-user-area .user-area-button .icon{width:2rem;height:2rem;border:2px solid #ffffff;border-radius:50%;font-size:12px;text-align:center;background:transparent;display:flex;align-items:center;justify-content:center}pri-user-area .user-area-button .icon .image{width:100%;height:100%}pri-user-area .user-area-button .icon .image .user-image{width:100%;height:100%;border-radius:50px;object-fit:cover}pri-user-area .user-area-button .icon .letter{color:#fff}pri-user-area .user-area-button.menu-open{background:var(--header-60)}pri-user-area .user-area-button.menu-open .ti-settings{color:var(--header-100)}pri-user-area .user-menu-wrapper{position:fixed;width:325px;right:0}pri-user-area .user-menu-wrapper .user-area-menu{background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);max-height:calc(100vh - 63px)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header{font-size:16px;display:flex;text-align:left;justify-content:space-between;padding:20px;align-items:center;cursor:auto}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info{margin-right:20px;overflow:hidden}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info .user-name{font-size:16px}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info .user-email{font-size:12px;color:var(--grey-7);text-overflow:ellipsis;overflow:hidden}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info{padding:0 12px;height:28px;display:flex;align-items:center;justify-content:center;font-size:14px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);transition:box-shadow .3s ease-in-out;border:1px solid var(--grey-4);cursor:pointer;flex-shrink:0}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info a{color:var(--grey-8)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body .menu-profile{display:none}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body [class*=\\\" ti-ux\\\"]:not(.ti-ux-chevron-left){font-size:1.2em;font-weight:400}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body-icons .live-chat{display:none}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body-icons .menu-profile{display:none}pri-user-area .user-menu-wrapper .user-area-menu .line{border-bottom:1px solid var(--grey-4)}pri-user-area .user-menu-wrapper .user-area-menu .line .no-hover:hover{background-color:transparent;cursor:default}pri-user-area .user-menu-wrapper .user-area-menu .small-line{font-size:.9rem;font-weight:400;display:flex;align-items:center;padding:11px;position:relative}pri-user-area .user-menu-wrapper .user-area-menu .small-line:hover{background-color:var(--grey-4)}pri-user-area .user-menu-wrapper .user-area-menu .small-line:hover.is-disable{background-color:var(--grey-1)}pri-user-area .user-menu-wrapper .user-area-menu .small-line.is-disable{cursor:default;color:var(--grey-6)}pri-user-area .user-menu-wrapper .user-area-menu .small-line.is-disable .text{color:var(--grey-6)}pri-user-area .user-menu-wrapper .user-area-menu .small-line .icon{width:24px;display:flex;align-items:center;justify-content:center;margin-right:10px;flex-shrink:0}pri-user-area .user-menu-wrapper .user-area-menu .small-line .ti-ux-check{width:auto;padding-right:initial;margin-right:12px}pri-user-area .user-menu-wrapper .user-area-menu .small-line .text{color:var(--grey-8)}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu{left:1px;position:absolute;transform:translate(-100%);background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);display:none;min-width:125px;top:-2px}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu .small-line{justify-content:space-between}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu .ti-ux-check{width:auto;padding-right:initial;margin-left:10px;margin-right:0}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu.is-open-theme{display:block}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu.is-open-role{display:block}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"directive\", type: i4.PriI18nDirective, selector: \"[priI18n]\", inputs: [\"priI18n\"] }, { kind: \"pipe\", type: i3.SlicePipe, name: \"slice\" }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('enterLeaveTopAnimation', [\r\n            transition(':enter', [\r\n                style({ opacity: 0, 'margin-top': '-15px' }),\r\n                animate('200ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n            ]),\r\n            transition(':leave', [\r\n                style({ opacity: 1, 'margin-top': '0px' }),\r\n                animate('200ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n            ])\r\n        ]),\r\n        trigger('enterLeaveRightAnimation', [\r\n            transition(':enter', [\r\n                style({ opacity: 0, 'margin-right': '-15px' }),\r\n                animate('200ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n            ]),\r\n            transition(':leave', [\r\n                style({ opacity: 1, 'margin-right': '0px' }),\r\n                animate('200ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: UserAreaComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-user-area', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('enterLeaveTopAnimation', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0, 'margin-top': '-15px' }),\r\n                                animate('200ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                style({ opacity: 1, 'margin-top': '0px' }),\r\n                                animate('200ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n                            ])\r\n                        ]),\r\n                        trigger('enterLeaveRightAnimation', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0, 'margin-right': '-15px' }),\r\n                                animate('200ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                style({ opacity: 1, 'margin-right': '0px' }),\r\n                                animate('200ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<div\\r\\n\\tdata-testid=\\\"user-area-button\\\"\\r\\n\\tclass=\\\"user-area-button\\\"\\r\\n\\t(click)=\\\"handleUserAreaButtonClick()\\\"\\r\\n\\t[ngClass]=\\\"{ 'menu-open': isVisible }\\\">\\r\\n\\t<div *ngIf=\\\"hasIdentity\\\" class=\\\"icon\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"image\\\"\\r\\n\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\t(userInfo.picture && userInfo.picture.indexOf('user_generic.png') < 0) ||\\r\\n\\t\\t\\t\\t(userInfo.picture && !userInfo.initials)\\r\\n\\t\\t\\t\\\">\\r\\n\\t\\t\\t<img class=\\\"user-image\\\" [src]=\\\"userInfo.picture\\\" [alt]=\\\"userInfo.displayName\\\" (error)=\\\"onUserImgError()\\\" />\\r\\n\\t\\t</div>\\r\\n\\t\\t<div class=\\\"letter\\\" *ngIf=\\\"!userInfo.picture || userInfo.picture.indexOf('user_generic.png') >= 0\\\">\\r\\n\\t\\t\\t{{ userInfo.initials | slice : 0 : 2 }}\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\t<div *ngIf=\\\"!hasIdentity\\\">\\r\\n\\t\\t<i class=\\\"ti-ux-system-outline\\\"></i>\\r\\n\\t</div>\\r\\n</div>\\r\\n<div data-testid=\\\"user-menu-wrapper\\\" class=\\\"user-menu-wrapper\\\">\\r\\n\\t<div\\r\\n\\t\\tdata-testid=\\\"user-area-menu\\\"\\r\\n\\t\\tclass=\\\"user-area-menu\\\"\\r\\n\\t\\t*ngIf=\\\"isVisible\\\"\\r\\n\\t\\t[@enterLeaveTopAnimation]\\r\\n\\t\\t(scroll)=\\\"scrollPerformed($event)\\\">\\r\\n\\t\\t<!-- Profile -->\\r\\n\\t\\t<div class=\\\"user-menu-header line hide-on-mobile\\\" *ngIf=\\\"this.isAllowed('userProfile') && hasIdentity\\\">\\r\\n\\t\\t\\t<div class=\\\"user-basic-info\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"user-name\\\">{{ userInfo.displayName }}</div>\\r\\n\\t\\t\\t\\t<div class=\\\"user-email\\\" priTooltipHover>{{ userInfo.email }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"user-profile-info\\\" (click)=\\\"openUserProfile(userInfo)\\\">\\r\\n\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\trole=\\\"user-profile-button\\\"\\r\\n\\t\\t\\t\\t\\tpriI18n=\\\"shell.components.RES_Shell_Header_User_Profile\\\"\\r\\n\\t\\t\\t\\t\\thref=\\\"{{ userInfo.userProfileUrl }}\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"$event.preventDefault()\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-profile\\\"></a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Role -->\\r\\n\\t\\t<div\\r\\n\\t\\t\\tid=\\\"RoleGroup\\\"\\r\\n\\t\\t\\tclass=\\\"user-menu-body line\\\"\\r\\n\\t\\t\\t*ngIf=\\\"currentRole && !(!hasMoreThanOneRole && hideRoleIfSingleRole) && hasIdentity\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(mouseover)=\\\"roleState = 'is-open-role'\\\"\\r\\n\\t\\t\\t\\t(mouseout)=\\\"roleState = ''\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"(roleState === 'is-open-role' ? '' : 'is-open-role')\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-open-role\\\">\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"!hasMoreThanOneRole\\\" class=\\\"small-line no-hover\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ currentRole.description }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div *ngIf=\\\"hasMoreThanOneRole\\\" class=\\\"small-line\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon ti-ux-chevron-left\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ currentRole.description }}</div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"sub-menu\\\" [ngClass]=\\\"roleState\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngFor=\\\"let item of roleData\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t(click)=\\\"setUserDefaultRole(item.roleKey)\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-role-{{ item.roleKey }}\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.description }}</div>\\r\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': item.roleKey === currentRole.roleKey }\\\"></div>\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"show-on-mobile\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngFor=\\\"let item of roleData\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"setUserDefaultRole(item.roleKey)\\\"\\r\\n\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-role-{{ item.roleKey }}-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" *ngIf=\\\"!(hasMoreThanOneRole && item.roleKey === currentRole.roleKey)\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"icon ti-ux-check\\\"\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"hasMoreThanOneRole && item.roleKey === currentRole.roleKey\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.description }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Users / Subscriptions / Support Requests -->\\r\\n\\t\\t<div *ngIf=\\\"hasSubscriptions\\\" class=\\\"user-menu-body line\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line menu-profile show-on-mobile-flex\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, userInfo.userProfileUrl, true)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-user-profile\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('userProfile')\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-user\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Profile' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, this.subscriptionUsersPageUrl)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-user-subscription\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('subscriptionUsersButton')\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SubscriptionUsers' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div *ngIf=\\\"this.isAllowed('subscriptionButton')\\\">\\r\\n\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\thref=\\\"{{ subscriptionManagementUrl }}\\\"\\r\\n\\t\\t\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-subscription-management\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_SubscriptionServices' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</a>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Theme -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('changeThemeMenu')\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(mouseover)=\\\"themeState = 'is-open-theme'\\\"\\r\\n\\t\\t\\t\\t(mouseout)=\\\"themeState = ''\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"(themeState === 'is-open-theme' ? '' : 'is-open-theme')\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-open-theme\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-chevron-left\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Change_Theme' | priI18n }}</div>\\r\\n\\t\\t\\t\\t<div class=\\\"sub-menu line\\\" [ngClass]=\\\"themeState\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"changeTheme(ThemesEnum.Light)\\\" data-testid=\\\"user-area-theme-white\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Regular' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Light === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"changeTheme(ThemesEnum.Dark)\\\" data-testid=\\\"user-area-theme-dark\\\">\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Dark' | priI18n }}\\r\\n\\t\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Dark === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"show-on-mobile\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"changeTheme(ThemesEnum.Light)\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-theme-white-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Light === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">\\r\\n\\t\\t\\t\\t\\t\\t{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Regular' | priI18n }}\\r\\n\\t\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"changeTheme(ThemesEnum.Dark)\\\"\\r\\n\\t\\t\\t\\t\\tdata-testid=\\\"user-area-theme-dark-mobile\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"{ 'ti-ux-check': ThemesEnum.Dark === themeService.theme }\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Change_Theme_Dark' | priI18n }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Support Chat / Help Center / Quick Guide / Shortcutz -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\t*ngIf=\\\"this.isAllowed('supportButton')\\\"\\r\\n\\t\\t\\t\\tclass=\\\"small-line hide-on-mobile\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"this.openSupportRequestModal()\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-support-request\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-email\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SupportRequest' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line show-on-mobile-flex live-chat\\\"\\r\\n\\t\\t\\t\\t*ngIf=\\\"isChatEnabled && this.isAllowed('chatButton')\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"toggleLiveChat()\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-live-chat\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-support\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_SupportChat' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<ng-container *ngFor=\\\"let item of helpPageItems\\\">\\r\\n\\t\\t\\t\\t<div\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"item.canBeMounted()\\\"\\r\\n\\t\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t\\t[ngClass]=\\\"{ 'hide-on-mobile': item.hideOnMobile, 'is-disable': item.isDisabled() }\\\"\\r\\n\\t\\t\\t\\t\\t(click)=\\\"item.action()\\\"\\r\\n\\t\\t\\t\\t\\tid=\\\"{{ item.elementId }}\\\"\\r\\n\\t\\t\\t\\t\\tattr.data-testid=\\\"user-area-help-page-{{ item.elementId }}\\\">\\r\\n\\t\\t\\t\\t\\t<div class=\\\"icon\\\" [ngClass]=\\\"item.iconClass\\\"></div>\\r\\n\\t\\t\\t\\t\\t<div class=\\\"text\\\">{{ item.title }}</div>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t\\t<div class=\\\"small-line\\\" *ngIf=\\\"this.isAllowed('aboutButton')\\\" (click)=\\\"this.openAboutModal()\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-info\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_About' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- App Store -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('applicationButton') && applicationsExternalUri\\\">\\r\\n\\t\\t\\t<div\\r\\n\\t\\t\\t\\tclass=\\\"small-line\\\"\\r\\n\\t\\t\\t\\t(click)=\\\"navigateTo($event, applicationsExternalUri, true)\\\"\\r\\n\\t\\t\\t\\tdata-testid=\\\"user-area-applications\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-bag\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_App_Store' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<!-- Logout -->\\r\\n\\t\\t<div class=\\\"user-menu-body line\\\" *ngIf=\\\"this.isAllowed('logoutButton') && hasIdentity\\\">\\r\\n\\t\\t\\t<div class=\\\"small-line\\\" (click)=\\\"signOut()\\\" data-testid=\\\"user-area-logout\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"icon ti-ux-power-off\\\"></div>\\r\\n\\t\\t\\t\\t<div class=\\\"text\\\">{{ 'shell.components.RES_Shell_Header_User_Logout' | priI18n }}</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-user-area{width:60px;height:100%;color:var(--grey-8)}pri-user-area .user-area-button{display:flex;align-items:center;justify-content:center;height:100%}pri-user-area .user-area-button .icon{width:2rem;height:2rem;border:2px solid #ffffff;border-radius:50%;font-size:12px;text-align:center;background:transparent;display:flex;align-items:center;justify-content:center}pri-user-area .user-area-button .icon .image{width:100%;height:100%}pri-user-area .user-area-button .icon .image .user-image{width:100%;height:100%;border-radius:50px;object-fit:cover}pri-user-area .user-area-button .icon .letter{color:#fff}pri-user-area .user-area-button.menu-open{background:var(--header-60)}pri-user-area .user-area-button.menu-open .ti-settings{color:var(--header-100)}pri-user-area .user-menu-wrapper{position:fixed;width:325px;right:0}pri-user-area .user-menu-wrapper .user-area-menu{background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);max-height:calc(100vh - 63px)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header{font-size:16px;display:flex;text-align:left;justify-content:space-between;padding:20px;align-items:center;cursor:auto}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info{margin-right:20px;overflow:hidden}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info .user-name{font-size:16px}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-basic-info .user-email{font-size:12px;color:var(--grey-7);text-overflow:ellipsis;overflow:hidden}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info{padding:0 12px;height:28px;display:flex;align-items:center;justify-content:center;font-size:14px;box-shadow:0 .2142857143rem 2.1428571429rem var(--shadow-1);transition:box-shadow .3s ease-in-out;border:1px solid var(--grey-4);cursor:pointer;flex-shrink:0}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info a{color:var(--grey-8)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-header .user-profile-info:hover{box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body .menu-profile{display:none}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body [class*=\\\" ti-ux\\\"]:not(.ti-ux-chevron-left){font-size:1.2em;font-weight:400}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body-icons .live-chat{display:none}pri-user-area .user-menu-wrapper .user-area-menu .user-menu-body-icons .menu-profile{display:none}pri-user-area .user-menu-wrapper .user-area-menu .line{border-bottom:1px solid var(--grey-4)}pri-user-area .user-menu-wrapper .user-area-menu .line .no-hover:hover{background-color:transparent;cursor:default}pri-user-area .user-menu-wrapper .user-area-menu .small-line{font-size:.9rem;font-weight:400;display:flex;align-items:center;padding:11px;position:relative}pri-user-area .user-menu-wrapper .user-area-menu .small-line:hover{background-color:var(--grey-4)}pri-user-area .user-menu-wrapper .user-area-menu .small-line:hover.is-disable{background-color:var(--grey-1)}pri-user-area .user-menu-wrapper .user-area-menu .small-line.is-disable{cursor:default;color:var(--grey-6)}pri-user-area .user-menu-wrapper .user-area-menu .small-line.is-disable .text{color:var(--grey-6)}pri-user-area .user-menu-wrapper .user-area-menu .small-line .icon{width:24px;display:flex;align-items:center;justify-content:center;margin-right:10px;flex-shrink:0}pri-user-area .user-menu-wrapper .user-area-menu .small-line .ti-ux-check{width:auto;padding-right:initial;margin-right:12px}pri-user-area .user-menu-wrapper .user-area-menu .small-line .text{color:var(--grey-8)}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu{left:1px;position:absolute;transform:translate(-100%);background-color:var(--grey-1);border:1px solid var(--grey-4);border-radius:0;box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);display:none;min-width:125px;top:-2px}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu .small-line{justify-content:space-between}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu .ti-ux-check{width:auto;padding-right:initial;margin-left:10px;margin-right:0}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu.is-open-theme{display:block}pri-user-area .user-menu-wrapper .user-area-menu .sub-menu.is-open-role{display:block}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.AppContextService }, { type: i2.ModalService }, { type: i1$1.StorageService }, { type: ZopimService }, { type: i2.HelpPageService }, { type: i1$1.BroadcastService }, { type: i4.I18nService }, { type: i1$1.UserSettingsService }, { type: i0.ElementRef }, { type: i2.ExceptionHandlerService }, { type: i1$1.ShellStateService }, { type: i1$1.DeviceService }, { type: ShellConfigurationService }, { type: i1$1.IdentityService }, { type: i1$1.ThemeService }, { type: i1$1.RouteHelperService }, { type: i1$1.AmsService }, { type: i1$1.SettingsService }, { type: i1$1.RoleService }]; }, propDecorators: { isChatEnabled: [{\r\n                type: Input\r\n            }], isSmallDevice: [{\r\n                type: Input\r\n            }], clickout: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass ApplicationsMenuComponent {\r\n    constructor(elementReference, shellConfigurationService, wildcardService, appContext) {\r\n        this.elementReference = elementReference;\r\n        this.shellConfigurationService = shellConfigurationService;\r\n        this.wildcardService = wildcardService;\r\n        this.appContext = appContext;\r\n        this.hasApplicationsEvent = new EventEmitter();\r\n        this.visible = false;\r\n        this.applications = [];\r\n    }\r\n    clickout(event) {\r\n        if (this.elementReference.nativeElement && !this.elementReference.nativeElement.contains(event.target)) {\r\n            this.visible = false;\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.shellConfigurationService.getApplicationsConfiguration().then((applications) => {\r\n            this.applications = this.isAllowed(applications, this.appContext.getSubscriptionClaims());\r\n            this.hasApplicationsEvent.emit(this.applications.length > 0);\r\n        });\r\n    }\r\n    openApplication(application) {\r\n        this.wildcardService\r\n            .formatOperation(application.url)\r\n            .pipe(take(1))\r\n            .subscribe((url) => {\r\n            window.open(url);\r\n            this.visible = false;\r\n        });\r\n    }\r\n    /**\r\n     * Determines whether allowed based in defined claims, loads the apps array\r\n     *\r\n     * @param apps Array of defined applications app's\r\n     * @param subscriptionClaims List of defined claims\r\n     * @returns allowed array of App's\r\n     */\r\n    isAllowed(apps, subscriptionClaims) {\r\n        const listAllowedApps = [];\r\n        apps.forEach((app) => {\r\n            if (app.claims != null) {\r\n                if (app.claims === '') {\r\n                    // load app if claim tag exists and is EMPTY string in json config\r\n                    listAllowedApps.push(app);\r\n                }\r\n                else {\r\n                    let count = 0;\r\n                    const tmpListAllowedApps = [];\r\n                    app.claims.split(' ').forEach((claim) => {\r\n                        count++;\r\n                        if (subscriptionClaims.includes(claim)) {\r\n                            tmpListAllowedApps.push(app);\r\n                        }\r\n                    });\r\n                    // loads app if finds all valid claims in array\r\n                    if (tmpListAllowedApps.length === count) {\r\n                        listAllowedApps.push(app);\r\n                    }\r\n                }\r\n            }\r\n            else {\r\n                // load app if not exists claim tag in json config\r\n                listAllowedApps.push(app);\r\n            }\r\n        });\r\n        return listAllowedApps;\r\n    }\r\n}\r\nApplicationsMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ApplicationsMenuComponent, deps: [{ token: i0.ElementRef }, { token: ShellConfigurationService }, { token: i1$1.WildcardService }, { token: i1$1.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nApplicationsMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ApplicationsMenuComponent, selector: \"pri-applications-menu\", outputs: { hasApplicationsEvent: \"hasApplicationsEvent\" }, host: { listeners: { \"document:click\": \"clickout($event)\" } }, ngImport: i0, template: \"<div class=\\\"menu-button\\\" (click)=\\\"visible = !visible\\\" *ngIf=\\\"applications && applications.length > 0\\\">\\r\\n    <i class=\\\"ti-ux-apps\\\"></i>\\r\\n</div>\\r\\n<div class=\\\"menu-area\\\" *ngIf=\\\"visible\\\" [@enterLeaveMenuAnimation]>\\r\\n    <div class=\\\"menu-button\\\" (click)=\\\"visible = !visible\\\">\\r\\n        <i class=\\\"ti-ux-apps\\\"></i>\\r\\n    </div>\\r\\n    <div class=\\\"main-title\\\">\\r\\n        {{'shell.components.RES_Shell_Header_Applications' | priI18n}}\\r\\n    </div>\\r\\n    <div class=\\\"menu-lines\\\">\\r\\n        <div class=\\\"menu-line\\\" *ngFor=\\\"let application of applications\\\" (click)=\\\"openApplication(application)\\\">\\r\\n            <div class=\\\"icon\\\">\\r\\n                <i [class]=\\\"application.icon\\\"></i>\\r\\n            </div>\\r\\n            <div class=\\\"description-wrapper\\\">\\r\\n                <div class=\\\"title\\\" *ngIf=\\\"application.title && application.title.length > 0\\\"> \\r\\n                    {{ application.title | priI18n }}\\r\\n                </div>\\r\\n                <div class=\\\"description\\\" *ngIf=\\\"application.description && application.description.length > 0\\\">\\r\\n                    {{ application.description | priI18n }}\\r\\n                </div>\\r\\n            </div>\\r\\n      \\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n</div>\", styles: [\"pri-applications-menu{height:100%;width:3.5714285714rem;background-color:var(--header-dark)}pri-applications-menu:hover{background-color:var(--header-80)}pri-applications-menu:focus{border:1px solid #ffffff}pri-applications-menu .menu-button{width:3.5714285714rem;display:flex;align-items:center;justify-content:center;font-size:17px;cursor:pointer;height:100%;flex-shrink:0}pri-applications-menu .menu-area{position:fixed;width:280px;height:100%;top:0;left:0;background-color:var(--grey-1);box-shadow:0 0 .7142857143rem var(--shadow-5);color:var(--grey-8);-webkit-user-select:none;user-select:none}pri-applications-menu .menu-area .menu-button{height:50px}pri-applications-menu .menu-area .main-title{margin-left:16px;margin-top:22px;font-size:18px;font-weight:500}pri-applications-menu .menu-area .menu-lines{margin-top:9px}pri-applications-menu .menu-area .menu-lines .menu-line{display:flex;margin:0 8px 4px;padding:10px 10px 10px 16px;border-radius:4px;transition:.2s all ease;cursor:pointer}pri-applications-menu .menu-area .menu-lines .menu-line .icon{padding-top:3px;justify-content:center;display:flex;margin-right:12px;color:var(--grey-8)}pri-applications-menu .menu-area .menu-lines .menu-line .icon i{font-size:16px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--grey-4)}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper{display:flex;justify-content:center;flex-direction:column}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper .title{font-size:14px;font-weight:500;margin-bottom:4px}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper .description{color:var(--grey-7);font-size:12px;margin-top:-2px;line-height:16px}pri-applications-menu .menu-area .menu-lines .menu-line:hover{background-color:var(--grey-2)}pri-applications-menu .menu-area .menu-lines .menu-line:active{background-color:var(--grey-3)}pri-applications-menu .menu-area .menu-lines .menu-line:active .icon{color:var(--grey-1)}pri-applications-menu .menu-area .menu-lines .menu-line:active .icon i{background-color:var(--grey-8)}pri-applications-menu .menu-area .menu-lines .menu-line:focus{border:1px solid var(--grey-8)}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], animations: [\r\n        trigger('enterLeaveMenuAnimation', [\r\n            transition(':enter', [\r\n                style({ opacity: 0, transform: 'scale(0.9)', 'transform-origin': 'top left' }),\r\n                animate('200ms ease-out', style({ opacity: 1, transform: 'scale(1)' }))\r\n            ]),\r\n            transition(':leave', [\r\n                style({ opacity: 1, transform: 'scale(1)', 'transform-origin': 'top left' }),\r\n                animate('200ms ease-in', style({ opacity: 0, transform: 'scale(0.9)' }))\r\n            ])\r\n        ])\r\n    ], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ApplicationsMenuComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-applications-menu', encapsulation: ViewEncapsulation.None, animations: [\r\n                        trigger('enterLeaveMenuAnimation', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0, transform: 'scale(0.9)', 'transform-origin': 'top left' }),\r\n                                animate('200ms ease-out', style({ opacity: 1, transform: 'scale(1)' }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                style({ opacity: 1, transform: 'scale(1)', 'transform-origin': 'top left' }),\r\n                                animate('200ms ease-in', style({ opacity: 0, transform: 'scale(0.9)' }))\r\n                            ])\r\n                        ])\r\n                    ], template: \"<div class=\\\"menu-button\\\" (click)=\\\"visible = !visible\\\" *ngIf=\\\"applications && applications.length > 0\\\">\\r\\n    <i class=\\\"ti-ux-apps\\\"></i>\\r\\n</div>\\r\\n<div class=\\\"menu-area\\\" *ngIf=\\\"visible\\\" [@enterLeaveMenuAnimation]>\\r\\n    <div class=\\\"menu-button\\\" (click)=\\\"visible = !visible\\\">\\r\\n        <i class=\\\"ti-ux-apps\\\"></i>\\r\\n    </div>\\r\\n    <div class=\\\"main-title\\\">\\r\\n        {{'shell.components.RES_Shell_Header_Applications' | priI18n}}\\r\\n    </div>\\r\\n    <div class=\\\"menu-lines\\\">\\r\\n        <div class=\\\"menu-line\\\" *ngFor=\\\"let application of applications\\\" (click)=\\\"openApplication(application)\\\">\\r\\n            <div class=\\\"icon\\\">\\r\\n                <i [class]=\\\"application.icon\\\"></i>\\r\\n            </div>\\r\\n            <div class=\\\"description-wrapper\\\">\\r\\n                <div class=\\\"title\\\" *ngIf=\\\"application.title && application.title.length > 0\\\"> \\r\\n                    {{ application.title | priI18n }}\\r\\n                </div>\\r\\n                <div class=\\\"description\\\" *ngIf=\\\"application.description && application.description.length > 0\\\">\\r\\n                    {{ application.description | priI18n }}\\r\\n                </div>\\r\\n            </div>\\r\\n      \\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n</div>\", styles: [\"pri-applications-menu{height:100%;width:3.5714285714rem;background-color:var(--header-dark)}pri-applications-menu:hover{background-color:var(--header-80)}pri-applications-menu:focus{border:1px solid #ffffff}pri-applications-menu .menu-button{width:3.5714285714rem;display:flex;align-items:center;justify-content:center;font-size:17px;cursor:pointer;height:100%;flex-shrink:0}pri-applications-menu .menu-area{position:fixed;width:280px;height:100%;top:0;left:0;background-color:var(--grey-1);box-shadow:0 0 .7142857143rem var(--shadow-5);color:var(--grey-8);-webkit-user-select:none;user-select:none}pri-applications-menu .menu-area .menu-button{height:50px}pri-applications-menu .menu-area .main-title{margin-left:16px;margin-top:22px;font-size:18px;font-weight:500}pri-applications-menu .menu-area .menu-lines{margin-top:9px}pri-applications-menu .menu-area .menu-lines .menu-line{display:flex;margin:0 8px 4px;padding:10px 10px 10px 16px;border-radius:4px;transition:.2s all ease;cursor:pointer}pri-applications-menu .menu-area .menu-lines .menu-line .icon{padding-top:3px;justify-content:center;display:flex;margin-right:12px;color:var(--grey-8)}pri-applications-menu .menu-area .menu-lines .menu-line .icon i{font-size:16px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--grey-4)}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper{display:flex;justify-content:center;flex-direction:column}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper .title{font-size:14px;font-weight:500;margin-bottom:4px}pri-applications-menu .menu-area .menu-lines .menu-line .description-wrapper .description{color:var(--grey-7);font-size:12px;margin-top:-2px;line-height:16px}pri-applications-menu .menu-area .menu-lines .menu-line:hover{background-color:var(--grey-2)}pri-applications-menu .menu-area .menu-lines .menu-line:active{background-color:var(--grey-3)}pri-applications-menu .menu-area .menu-lines .menu-line:active .icon{color:var(--grey-1)}pri-applications-menu .menu-area .menu-lines .menu-line:active .icon i{background-color:var(--grey-8)}pri-applications-menu .menu-area .menu-lines .menu-line:focus{border:1px solid var(--grey-8)}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ShellConfigurationService }, { type: i1$1.WildcardService }, { type: i1$1.AppContextService }]; }, propDecorators: { hasApplicationsEvent: [{\r\n                type: Output\r\n            }], clickout: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass TopbarComponent {\r\n    constructor(deployUrl, appContextService, modalService, broadcastService, deviceService, menuService, hotkeysService, shellConfigurationService, userPilotService, zopimService, environmentSettings) {\r\n        this.appContextService = appContextService;\r\n        this.modalService = modalService;\r\n        this.broadcastService = broadcastService;\r\n        this.deviceService = deviceService;\r\n        this.menuService = menuService;\r\n        this.hotkeysService = hotkeysService;\r\n        this.shellConfigurationService = shellConfigurationService;\r\n        this.userPilotService = userPilotService;\r\n        this.zopimService = zopimService;\r\n        this.environmentSettings = environmentSettings;\r\n        this.toggleMenuState = new EventEmitter();\r\n        //#region Public Properties\r\n        this.isSmallDevice = false;\r\n        this.hideTopbarButtons = false;\r\n        this.hideTopbarSearch = false;\r\n        this.hasApplications = true;\r\n        this.productLogo = 'assets/images/product_menu_logo.svg';\r\n        this.hasQuickActions = false;\r\n        this.states = {\r\n            contextBarState: 'closed',\r\n            contextBarButtonState: 'disabled' // closed, open, highlighted, disabled\r\n        };\r\n        this.topBarSettings = {\r\n            hiddenApplicationMenuButton: false,\r\n            hiddenLogo: false,\r\n            hiddenSearchBar: false,\r\n            hiddenQuickActionsButton: false,\r\n            hiddenChatButton: false,\r\n            hiddenContextBarButton: false,\r\n            hiddenResourceCenterButton: false,\r\n            hiddenNotificationsButton: false,\r\n            hiddenUserAreaMenuButton: false\r\n        };\r\n        this.broadcastService.subscribe('contextBarClose', () => {\r\n            this.closeContextBar();\r\n        });\r\n        this.broadcastService.subscribe('contextBarInfo', (info) => {\r\n            if (info) {\r\n                this.states.contextBarButtonState = 'disabled';\r\n                this.states.contextBarState = 'closed';\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('contextBarActivator', (activator) => {\r\n            this.openContextBar(activator);\r\n        });\r\n        this.broadcastService.subscribe('contextBarHighlight', () => {\r\n            this.states.contextBarButtonState = 'highlighted';\r\n        });\r\n        this.broadcastService.subscribe('contextBarReset', () => {\r\n            this.closeContextBar();\r\n        });\r\n        this.shellConfigurationService.getGeneralConfiguration().then((config) => {\r\n            const pnsExternalUri = this.appContextService.getContext().pnsExternalUri;\r\n            if (pnsExternalUri && pnsExternalUri.length > 0) {\r\n                this.pnsUri = pnsExternalUri;\r\n            }\r\n            if (config) {\r\n                if (config.logo && config.logo !== '') {\r\n                    this.productLogo = config.logo;\r\n                }\r\n            }\r\n        });\r\n        this.addHotKeys();\r\n        if (deployUrl && deployUrl.length > 0) {\r\n            this.productLogo = deployUrl + this.productLogo;\r\n        }\r\n    }\r\n    onResize(_event) {\r\n        this.updateIsMobileVariable();\r\n    }\r\n    //#region Public Methods\r\n    ngOnInit() {\r\n        this.broadcastService.subscribe('onToggleMenuState', () => {\r\n            this.menuIsCollapsed = !this.menuIsCollapsed;\r\n        });\r\n        // this.shellConfigurationService.getApplicationsConfiguration().then((applications: Array<Application>) => {\r\n        // \tthis.hasApplications = applications.length > 0;\r\n        // });\r\n        this.getTopbarSettings();\r\n    }\r\n    ngAfterViewInit() {\r\n        this.updateIsMobileVariable();\r\n    }\r\n    /**\r\n     * Get the settings to enable/disable specific actions from the topbar\r\n     */\r\n    async getTopbarSettings() {\r\n        try {\r\n            const { topbarSettings } = await this.shellConfigurationService.getGeneralConfiguration();\r\n            this.topBarSettings = { ...this.topBarSettings, ...topbarSettings };\r\n        }\r\n        catch (ex) {\r\n            console.error(ex);\r\n        }\r\n    }\r\n    verifyApplicationsAccess(hasApplications) {\r\n        this.hasApplications = hasApplications;\r\n    }\r\n    goHome() {\r\n        this.menuService.navigateToHomePage();\r\n    }\r\n    changeMenuState() {\r\n        this.menuIsCollapsed = !this.menuIsCollapsed;\r\n        this.toggleMenuState.emit(this.menuIsCollapsed);\r\n    }\r\n    toggleSearchActive() {\r\n        this.searchIsActive = !this.searchIsActive;\r\n        if (this.searchIsActive && this.searchField != null) {\r\n            const elemFocus = (elem) => {\r\n                elem.focus();\r\n            };\r\n            setTimeout(() => elemFocus(this.searchField.nativeElement), 0);\r\n        }\r\n    }\r\n    toggleNotificationsMenu() {\r\n        this.showNotificationsDropDown = !this.showNotificationsDropDown;\r\n    }\r\n    //#region Private Methods\r\n    openSupportRequestModal() {\r\n        this.modalService.showModal(SupportRequestComponent, null, 'md', null, null, 'support-request-modal');\r\n    }\r\n    isMobileDevice() {\r\n        return this.deviceService.isMobileBrowser();\r\n    }\r\n    toggleContextBar() {\r\n        if (this.states.contextBarButtonState === 'disabled') {\r\n            return;\r\n        }\r\n        if (this.states.contextBarState === 'closed') {\r\n            this.openContextBar();\r\n        }\r\n        else {\r\n            this.broadcastService.emit('contextBarToggle');\r\n            this.closeContextBar();\r\n        }\r\n    }\r\n    /**\r\n     * Shows or hides the live chat\r\n     */\r\n    toggleLiveChat() {\r\n        this.zopimService.toggle();\r\n    }\r\n    // TODO: review comments\r\n    get brandLabel() {\r\n        return this.appContextService.getContext().productBrand?.label || undefined;\r\n    }\r\n    get brandTitle() {\r\n        return this.appContextService.getContext().productBrand?.title || undefined;\r\n    }\r\n    toggleQuickActionsButton(hasItems) {\r\n        this.hasQuickActions = hasItems;\r\n    }\r\n    triggerUserPilot() {\r\n        this.userPilotService.trigger(this.environmentSettings.userEngagement.userpilot.resourceCenter);\r\n    }\r\n    addHotKeys() {\r\n        const hotkeysDefinitions = [\r\n            {\r\n                // Ctrl + Alt + Home => Go to Homepage\r\n                hotkey: [17 /* HotkeysKeys.Ctrl */, 18 /* HotkeysKeys.Alt */, 36 /* HotkeysKeys.Home */],\r\n                action: () => {\r\n                    this.goHome();\r\n                }\r\n            }\r\n        ];\r\n        this.hotkeysService.addHotkeys(hotkeysDefinitions);\r\n    }\r\n    closeContextBar() {\r\n        this.states.contextBarButtonState = this.states.contextBarState === 'open' ? 'closed' : 'disabled';\r\n        this.states.contextBarState = 'closed';\r\n    }\r\n    openContextBar(activator) {\r\n        if (this.states.contextBarState === 'closed') {\r\n            this.states.contextBarState = 'open';\r\n            this.states.contextBarButtonState = 'open';\r\n        }\r\n        if (activator) {\r\n            this.broadcastService.emit('contextBarOpen', activator);\r\n        }\r\n        else {\r\n            this.broadcastService.emit('contextBarOpen');\r\n        }\r\n    }\r\n    updateIsMobileVariable() {\r\n        const device = this.deviceService.getDetailedDevice();\r\n        switch (device) {\r\n            case \"BiggestDevices\" /* DetailedDeviceEnum.BiggestDevices */:\r\n            case \"ExtraLargeDevices\" /* DetailedDeviceEnum.ExtraLargeDevices */:\r\n            case \"LargeDevices\" /* DetailedDeviceEnum.LargeDevices */:\r\n                /* 992px and up */\r\n                this.isSmallDevice = false;\r\n                this.hideTopbarSearch = false;\r\n                this.hideTopbarButtons = false;\r\n                break;\r\n            case \"AlmostLargeDevice\" /* DetailedDeviceEnum.AlmostLargeDevices */:\r\n            case \"MediumDevices\" /* DetailedDeviceEnum.MediumDevices */:\r\n                /* 991px to 768px */\r\n                this.isSmallDevice = true;\r\n                this.hideTopbarSearch = false;\r\n                this.hideTopbarButtons = true;\r\n                break;\r\n            case \"AlmostMediumDevices\" /* DetailedDeviceEnum.AlmostMediumDevices */:\r\n            case \"SmallDevices\" /* DetailedDeviceEnum.SmallDevices */:\r\n                /* 767px to 600px */\r\n                this.isSmallDevice = true;\r\n                this.hideTopbarSearch = true;\r\n                this.hideTopbarButtons = true;\r\n                break;\r\n            case \"ExtraSmallDevices\" /* DetailedDeviceEnum.ExtraSmallDevices */:\r\n            case \"SmallestDevices\" /* DetailedDeviceEnum.SmallestDevices */:\r\n                /* 599px and down */\r\n                this.isSmallDevice = true;\r\n                this.hideTopbarSearch = true;\r\n                this.hideTopbarButtons = true;\r\n                break;\r\n            default:\r\n                break;\r\n        }\r\n        this.menuIsCollapsed = this.isSmallDevice;\r\n    }\r\n}\r\nTopbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TopbarComponent, deps: [{ token: DEPLOY_URL }, { token: i1$1.AppContextService }, { token: i2.ModalService }, { token: i1$1.BroadcastService }, { token: i1$1.DeviceService }, { token: MenuService }, { token: i1$1.HotkeysService }, { token: ShellConfigurationService }, { token: i1$1.UserPilotService }, { token: ZopimService }, { token: i1$1.EnvironmentSettings }], target: i0.ɵɵFactoryTarget.Component });\r\nTopbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: TopbarComponent, selector: \"pri-topbar\", inputs: { menuIsCollapsed: \"menuIsCollapsed\", userName: \"userName\", userPicture: \"userPicture\", userInitials: \"userInitials\" }, outputs: { toggleMenuState: \"toggleMenuState\" }, host: { listeners: { \"window:resize\": \"onResize($event)\" } }, viewQueries: [{ propertyName: \"searchField\", first: true, predicate: [\"searchInput\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"left\\\">\\r\\n\\t<div class=\\\"menu-logo-container\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"access-menu\\\"\\r\\n\\t\\t\\t[class.is-collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t\\tid=\\\"fullmenu-icon\\\"\\r\\n\\t\\t\\t(click)=\\\"changeMenuState()\\\"\\r\\n\\t\\t\\t*ngIf=\\\"isSmallDevice\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-menu\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<pri-applications-menu\\r\\n\\t\\t\\t(hasApplicationsEvent)=\\\"verifyApplicationsAccess($event)\\\"\\r\\n\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\thasApplications && !isSmallDevice && !topBarSettings?.hiddenApplicationMenuButton\\r\\n\\t\\t\\t\\\"></pri-applications-menu>\\r\\n\\r\\n\\t\\t<div class=\\\"logo\\\" id=\\\"sidebar-logo\\\" (click)=\\\"goHome()\\\" *ngIf=\\\"!topBarSettings?.hiddenLogo\\\">\\r\\n\\t\\t\\t<div class=\\\"logo-container\\\">\\r\\n\\t\\t\\t\\t<img class=\\\"product-logo\\\" [src]=\\\"productLogo\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"logo-extra-info\\\" *ngIf=\\\"brandLabel || brandTitle\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"logo-extra-info-label\\\" *ngIf=\\\"brandLabel\\\">\\r\\n\\t\\t\\t\\t\\t<span>{{ brandLabel }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"logo-extra-info-title\\\" *ngIf=\\\"brandTitle\\\">\\r\\n\\t\\t\\t\\t\\t<span>{{ brandTitle }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<div data-testid=\\\"navbar\\\" class=\\\"right\\\">\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"search-container\\\"\\r\\n\\t\\t[ngClass]=\\\"searchIsActive ? 'active' : ''\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarSearch && !topBarSettings?.hiddenSearchBar\\\">\\r\\n\\t\\t<pri-search></pri-search>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Quick Actions -->\\r\\n\\t<div\\r\\n\\t\\tid=\\\"quick-actions-icon\\\"\\r\\n\\t\\t[hidden]=\\\"!hasQuickActions\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_QuickActions' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t[ngClass]=\\\"{ 'top-bar-right-item quick-actions': hasQuickActions }\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarButtons && !topBarSettings?.hiddenQuickActionsButton\\\">\\r\\n\\t\\t<pri-quick-actions (quickActionsHasItems)=\\\"toggleQuickActionsButton($event)\\\"></pri-quick-actions>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Support Chat -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_SupportChat' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t*ngIf=\\\"zopimService.initialized && !hideTopbarButtons && !topBarSettings?.hiddenChatButton\\\">\\r\\n\\t\\t<div data-testid=\\\"chat-button\\\" class=\\\"chat-wrapper\\\" (click)=\\\"toggleLiveChat()\\\">\\r\\n\\t\\t\\t<div class=\\\"chat-toggle\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-support\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Context Dashboard -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_ContextPanel' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t[attr.disabled]=\\\"states.contextBarButtonState === 'disabled'\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarButtons && !topBarSettings?.hiddenContextBarButton\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"contextbar-toggle mobile-option-first-child\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{\\r\\n\\t\\t\\t\\t'header-option-first-child': !zopimService.initialized,\\r\\n\\t\\t\\t\\t'action-glow': states.contextBarButtonState === 'highlighted'\\r\\n\\t\\t\\t}\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"states.contextBarButtonState === 'disabled'\\\"\\r\\n\\t\\t\\t(click)=\\\"states.contextBarButtonState !== 'disabled' && toggleContextBar()\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-information\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Resource Center -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item notifications-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_Resource_Center' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t!hideTopbarButtons &&\\r\\n\\t\\t\\t!topBarSettings?.hiddenResourceCenterButton &&\\r\\n\\t\\t\\tenvironmentSettings.userEngagement?.userpilot?.applicationId &&\\r\\n\\t\\t\\tenvironmentSettings.userEngagement?.userpilot?.resourceCenter\\r\\n\\t\\t\\\"\\r\\n\\t\\t(click)=\\\"triggerUserPilot()\\\">\\r\\n\\t\\t<div data-testid=\\\"resource-center-button\\\" class=\\\"resource-center\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-resource-center\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Notifications -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item notifications-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_Notifications' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\tid=\\\"notifications-area\\\"\\r\\n\\t\\t*ngIf=\\\"pnsUri && !topBarSettings?.hiddenNotificationsButton\\\">\\r\\n\\t\\t<pri-notifications [pnsUri]=\\\"pnsUri\\\"></pri-notifications>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- User Area -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item user-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_UserArea' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\tid=\\\"user-area-image\\\"\\r\\n\\t\\t*ngIf=\\\"!topBarSettings?.hiddenUserAreaMenuButton\\\">\\r\\n\\t\\t<pri-user-area\\r\\n\\t\\t\\t[isChatEnabled]=\\\"zopimService.initialized && hideTopbarButtons\\\"\\r\\n\\t\\t\\t[isSmallDevice]=\\\"isSmallDevice\\\"></pri-user-area>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-topbar{position:relative;border-radius:0;width:100%;border:none;transition:all .2s ease;height:50px;flex-shrink:0;display:flex;background-color:var(--header-100);color:#fff;z-index:1042}pri-topbar .left{position:absolute;display:flex;font-size:1.2rem;flex-grow:1;left:0;height:100%;overflow:hidden;align-items:center}@media only screen and (max-width: 767px){pri-topbar .left{width:100%;padding-right:115px}}pri-topbar .left .menu-logo-container{display:flex;height:100%;width:100%;overflow:hidden;align-items:center;flex-shrink:0}pri-topbar .left .menu-logo-container .access-menu{height:100%;width:3.5714285714rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;background-color:transparent}pri-topbar .left .menu-logo-container .access-menu:not(.is-collapsed){background-color:var(--header-dark)}pri-topbar .left .menu-logo-container .access-menu:focus{border:1px solid #ffffff}pri-topbar .left .menu-logo-container .logo{display:flex;flex-direction:row;align-items:center;height:28px;cursor:pointer;overflow:hidden;margin-left:14px}pri-topbar .left .menu-logo-container .logo .logo-container{display:flex;align-items:center;height:100%;overflow:hidden;flex-shrink:0;margin-right:20px}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-container{margin-right:16px}}pri-topbar .left .menu-logo-container .logo .logo-container .product-logo{width:auto;height:auto;max-height:100%}pri-topbar .left .menu-logo-container .logo .logo-extra-info{display:flex;height:100%;flex-direction:row;padding-left:20px;white-space:nowrap;align-items:center;border-left:1px solid #ffffff;overflow:hidden}@media only screen and (max-width: 575px){pri-topbar .left .menu-logo-container .logo .logo-extra-info{display:none}}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info{flex-direction:column;align-items:flex-start;justify-content:center;padding-left:16px;padding-top:1px}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label{display:flex;flex-shrink:0}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label span{background-color:#fff;color:var(--header-100);border-radius:4px;font-size:12px;margin-right:7px;text-transform:uppercase;padding:1px 5px 0;line-height:18px;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label span{margin-right:0}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title{display:flex;flex-shrink:0}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title{display:none}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title span{font-size:14px;margin-right:20px;overflow:hidden;padding-top:1px;text-overflow:ellipsis;line-height:18px}pri-topbar .left .search-container{display:flex;width:100%;height:100%;overflow:hidden}pri-topbar .right{position:absolute;display:flex;font-size:1.2rem;justify-content:flex-end;flex-grow:1;right:0;height:100%;align-items:center;padding-left:20px}@media only screen and (max-width: 767px){pri-topbar .right{padding-left:5px}}pri-topbar .right .top-bar-right-item{height:100%;width:60px;display:flex;justify-content:center;align-items:center;align-self:center;text-align:center}pri-topbar .right .top-bar-right-item:not([disabled=true]):hover{background-color:var(--header-60);cursor:pointer}pri-topbar .right .top-bar-right-item:not([disabled=true]):hover .topbar-tooltip{visibility:visible}pri-topbar .right .top-bar-right-item .topbar-tooltip{visibility:hidden;width:114px;font-size:12px;color:var(--grey-1);background-color:var(--grey-8);text-align:center;border-radius:4px;padding:2px 6px;position:absolute;z-index:1042;top:3.5714285714rem5px;left:50%;margin-left:-57px}pri-topbar .right .top-bar-right-item .topbar-tooltip:after{content:\\\"\\\";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent var(--grey-8) transparent}pri-topbar .right .top-bar-right-item:focus{border:1px solid #ffffff}pri-topbar .right .top-bar-right-item.user-area-wrapper,pri-topbar .right .top-bar-right-item.quick-actions{width:60px;height:100%}@media only screen and (max-width: 767px){pri-topbar .right .top-bar-right-item.user-area-wrapper,pri-topbar .right .top-bar-right-item.quick-actions{width:auto}}pri-topbar .right .top-bar-right-item .chat-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-topbar .right .top-bar-right-item .chat-wrapper .chat-toggle{font-size:21px}pri-topbar .right .top-bar-right-item i{font-size:17px;color:#fff}pri-topbar .right .top-bar-right-item>.action-glow{animation-duration:2s;animation-name:contextActionGlow;animation-iteration-count:7;animation-direction:alternate;animation-timing-function:ease-in-out;background-color:var(--header-60);color:var(--header-100)}pri-topbar .right .top-bar-right-item .contextbar-toggle{font-size:24px;display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true]{cursor:default}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true] i{color:var(--header-60)}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true]:hover{background-color:unset}pri-topbar .open-theme{display:block;left:-160px;top:205px}@keyframes contextActionGlow{0%{background-color:var(--header-80)}to{background-color:var(--header-60)}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i7.PriNotificationsComponent, selector: \"pri-notifications\", inputs: [\"pnsUri\"] }, { kind: \"directive\", type: i6.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"component\", type: i5.SearchComponent, selector: \"pri-search\", inputs: [\"title\", \"disableKeyFocus\"] }, { kind: \"component\", type: QuickActionsComponent, selector: \"pri-quick-actions\", outputs: [\"quickActionsHasItems\"] }, { kind: \"component\", type: UserAreaComponent, selector: \"pri-user-area\", inputs: [\"isChatEnabled\", \"isSmallDevice\"] }, { kind: \"component\", type: ApplicationsMenuComponent, selector: \"pri-applications-menu\", outputs: [\"hasApplicationsEvent\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: TopbarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-topbar', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"left\\\">\\r\\n\\t<div class=\\\"menu-logo-container\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"access-menu\\\"\\r\\n\\t\\t\\t[class.is-collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t\\tid=\\\"fullmenu-icon\\\"\\r\\n\\t\\t\\t(click)=\\\"changeMenuState()\\\"\\r\\n\\t\\t\\t*ngIf=\\\"isSmallDevice\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-menu\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\r\\n\\t\\t<pri-applications-menu\\r\\n\\t\\t\\t(hasApplicationsEvent)=\\\"verifyApplicationsAccess($event)\\\"\\r\\n\\t\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t\\thasApplications && !isSmallDevice && !topBarSettings?.hiddenApplicationMenuButton\\r\\n\\t\\t\\t\\\"></pri-applications-menu>\\r\\n\\r\\n\\t\\t<div class=\\\"logo\\\" id=\\\"sidebar-logo\\\" (click)=\\\"goHome()\\\" *ngIf=\\\"!topBarSettings?.hiddenLogo\\\">\\r\\n\\t\\t\\t<div class=\\\"logo-container\\\">\\r\\n\\t\\t\\t\\t<img class=\\\"product-logo\\\" [src]=\\\"productLogo\\\" />\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t\\t<div class=\\\"logo-extra-info\\\" *ngIf=\\\"brandLabel || brandTitle\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"logo-extra-info-label\\\" *ngIf=\\\"brandLabel\\\">\\r\\n\\t\\t\\t\\t\\t<span>{{ brandLabel }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t\\t<div class=\\\"logo-extra-info-title\\\" *ngIf=\\\"brandTitle\\\">\\r\\n\\t\\t\\t\\t\\t<span>{{ brandTitle }}</span>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\\r\\n<div data-testid=\\\"navbar\\\" class=\\\"right\\\">\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"search-container\\\"\\r\\n\\t\\t[ngClass]=\\\"searchIsActive ? 'active' : ''\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarSearch && !topBarSettings?.hiddenSearchBar\\\">\\r\\n\\t\\t<pri-search></pri-search>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Quick Actions -->\\r\\n\\t<div\\r\\n\\t\\tid=\\\"quick-actions-icon\\\"\\r\\n\\t\\t[hidden]=\\\"!hasQuickActions\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_QuickActions' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t[ngClass]=\\\"{ 'top-bar-right-item quick-actions': hasQuickActions }\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarButtons && !topBarSettings?.hiddenQuickActionsButton\\\">\\r\\n\\t\\t<pri-quick-actions (quickActionsHasItems)=\\\"toggleQuickActionsButton($event)\\\"></pri-quick-actions>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Support Chat -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_SupportChat' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t*ngIf=\\\"zopimService.initialized && !hideTopbarButtons && !topBarSettings?.hiddenChatButton\\\">\\r\\n\\t\\t<div data-testid=\\\"chat-button\\\" class=\\\"chat-wrapper\\\" (click)=\\\"toggleLiveChat()\\\">\\r\\n\\t\\t\\t<div class=\\\"chat-toggle\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-support\\\"></i>\\r\\n\\t\\t\\t</div>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Context Dashboard -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_ContextPanel' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t[attr.disabled]=\\\"states.contextBarButtonState === 'disabled'\\\"\\r\\n\\t\\t*ngIf=\\\"!hideTopbarButtons && !topBarSettings?.hiddenContextBarButton\\\">\\r\\n\\t\\t<div\\r\\n\\t\\t\\tclass=\\\"contextbar-toggle mobile-option-first-child\\\"\\r\\n\\t\\t\\t[ngClass]=\\\"{\\r\\n\\t\\t\\t\\t'header-option-first-child': !zopimService.initialized,\\r\\n\\t\\t\\t\\t'action-glow': states.contextBarButtonState === 'highlighted'\\r\\n\\t\\t\\t}\\\"\\r\\n\\t\\t\\t[attr.disabled]=\\\"states.contextBarButtonState === 'disabled'\\\"\\r\\n\\t\\t\\t(click)=\\\"states.contextBarButtonState !== 'disabled' && toggleContextBar()\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-information\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Resource Center -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item notifications-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_Resource_Center' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\t*ngIf=\\\"\\r\\n\\t\\t\\t!hideTopbarButtons &&\\r\\n\\t\\t\\t!topBarSettings?.hiddenResourceCenterButton &&\\r\\n\\t\\t\\tenvironmentSettings.userEngagement?.userpilot?.applicationId &&\\r\\n\\t\\t\\tenvironmentSettings.userEngagement?.userpilot?.resourceCenter\\r\\n\\t\\t\\\"\\r\\n\\t\\t(click)=\\\"triggerUserPilot()\\\">\\r\\n\\t\\t<div data-testid=\\\"resource-center-button\\\" class=\\\"resource-center\\\">\\r\\n\\t\\t\\t<i class=\\\"ti-ux-resource-center\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- Notifications -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item notifications-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_Notifications' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\tid=\\\"notifications-area\\\"\\r\\n\\t\\t*ngIf=\\\"pnsUri && !topBarSettings?.hiddenNotificationsButton\\\">\\r\\n\\t\\t<pri-notifications [pnsUri]=\\\"pnsUri\\\"></pri-notifications>\\r\\n\\t</div>\\r\\n\\r\\n\\t<!-- User Area -->\\r\\n\\t<div\\r\\n\\t\\tclass=\\\"top-bar-right-item user-area-wrapper\\\"\\r\\n\\t\\t[matTooltip]=\\\"'shell.components.RES_TopBar_RightItem_UserArea' | priI18n\\\"\\r\\n\\t\\tmatTooltipPosition=\\\"below\\\"\\r\\n\\t\\tid=\\\"user-area-image\\\"\\r\\n\\t\\t*ngIf=\\\"!topBarSettings?.hiddenUserAreaMenuButton\\\">\\r\\n\\t\\t<pri-user-area\\r\\n\\t\\t\\t[isChatEnabled]=\\\"zopimService.initialized && hideTopbarButtons\\\"\\r\\n\\t\\t\\t[isSmallDevice]=\\\"isSmallDevice\\\"></pri-user-area>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-topbar{position:relative;border-radius:0;width:100%;border:none;transition:all .2s ease;height:50px;flex-shrink:0;display:flex;background-color:var(--header-100);color:#fff;z-index:1042}pri-topbar .left{position:absolute;display:flex;font-size:1.2rem;flex-grow:1;left:0;height:100%;overflow:hidden;align-items:center}@media only screen and (max-width: 767px){pri-topbar .left{width:100%;padding-right:115px}}pri-topbar .left .menu-logo-container{display:flex;height:100%;width:100%;overflow:hidden;align-items:center;flex-shrink:0}pri-topbar .left .menu-logo-container .access-menu{height:100%;width:3.5714285714rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;background-color:transparent}pri-topbar .left .menu-logo-container .access-menu:not(.is-collapsed){background-color:var(--header-dark)}pri-topbar .left .menu-logo-container .access-menu:focus{border:1px solid #ffffff}pri-topbar .left .menu-logo-container .logo{display:flex;flex-direction:row;align-items:center;height:28px;cursor:pointer;overflow:hidden;margin-left:14px}pri-topbar .left .menu-logo-container .logo .logo-container{display:flex;align-items:center;height:100%;overflow:hidden;flex-shrink:0;margin-right:20px}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-container{margin-right:16px}}pri-topbar .left .menu-logo-container .logo .logo-container .product-logo{width:auto;height:auto;max-height:100%}pri-topbar .left .menu-logo-container .logo .logo-extra-info{display:flex;height:100%;flex-direction:row;padding-left:20px;white-space:nowrap;align-items:center;border-left:1px solid #ffffff;overflow:hidden}@media only screen and (max-width: 575px){pri-topbar .left .menu-logo-container .logo .logo-extra-info{display:none}}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info{flex-direction:column;align-items:flex-start;justify-content:center;padding-left:16px;padding-top:1px}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label{display:flex;flex-shrink:0}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label span{background-color:#fff;color:var(--header-100);border-radius:4px;font-size:12px;margin-right:7px;text-transform:uppercase;padding:1px 5px 0;line-height:18px;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-label span{margin-right:0}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title{display:flex;flex-shrink:0}@media only screen and (max-width: 767px){pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title{display:none}}pri-topbar .left .menu-logo-container .logo .logo-extra-info .logo-extra-info-title span{font-size:14px;margin-right:20px;overflow:hidden;padding-top:1px;text-overflow:ellipsis;line-height:18px}pri-topbar .left .search-container{display:flex;width:100%;height:100%;overflow:hidden}pri-topbar .right{position:absolute;display:flex;font-size:1.2rem;justify-content:flex-end;flex-grow:1;right:0;height:100%;align-items:center;padding-left:20px}@media only screen and (max-width: 767px){pri-topbar .right{padding-left:5px}}pri-topbar .right .top-bar-right-item{height:100%;width:60px;display:flex;justify-content:center;align-items:center;align-self:center;text-align:center}pri-topbar .right .top-bar-right-item:not([disabled=true]):hover{background-color:var(--header-60);cursor:pointer}pri-topbar .right .top-bar-right-item:not([disabled=true]):hover .topbar-tooltip{visibility:visible}pri-topbar .right .top-bar-right-item .topbar-tooltip{visibility:hidden;width:114px;font-size:12px;color:var(--grey-1);background-color:var(--grey-8);text-align:center;border-radius:4px;padding:2px 6px;position:absolute;z-index:1042;top:3.5714285714rem5px;left:50%;margin-left:-57px}pri-topbar .right .top-bar-right-item .topbar-tooltip:after{content:\\\"\\\";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent var(--grey-8) transparent}pri-topbar .right .top-bar-right-item:focus{border:1px solid #ffffff}pri-topbar .right .top-bar-right-item.user-area-wrapper,pri-topbar .right .top-bar-right-item.quick-actions{width:60px;height:100%}@media only screen and (max-width: 767px){pri-topbar .right .top-bar-right-item.user-area-wrapper,pri-topbar .right .top-bar-right-item.quick-actions{width:auto}}pri-topbar .right .top-bar-right-item .chat-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-topbar .right .top-bar-right-item .chat-wrapper .chat-toggle{font-size:21px}pri-topbar .right .top-bar-right-item i{font-size:17px;color:#fff}pri-topbar .right .top-bar-right-item>.action-glow{animation-duration:2s;animation-name:contextActionGlow;animation-iteration-count:7;animation-direction:alternate;animation-timing-function:ease-in-out;background-color:var(--header-60);color:var(--header-100)}pri-topbar .right .top-bar-right-item .contextbar-toggle{font-size:24px;display:flex;align-items:center;justify-content:center;width:100%;height:100%}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true]{cursor:default}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true] i{color:var(--header-60)}pri-topbar .right .top-bar-right-item .contextbar-toggle[disabled=true]:hover{background-color:unset}pri-topbar .open-theme{display:block;left:-160px;top:205px}@keyframes contextActionGlow{0%{background-color:var(--header-80)}to{background-color:var(--header-60)}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [DEPLOY_URL]\r\n                }] }, { type: i1$1.AppContextService }, { type: i2.ModalService }, { type: i1$1.BroadcastService }, { type: i1$1.DeviceService }, { type: MenuService }, { type: i1$1.HotkeysService }, { type: ShellConfigurationService }, { type: i1$1.UserPilotService }, { type: ZopimService }, { type: i1$1.EnvironmentSettings }]; }, propDecorators: { menuIsCollapsed: [{\r\n                type: Input\r\n            }], userName: [{\r\n                type: Input\r\n            }], userPicture: [{\r\n                type: Input\r\n            }], userInitials: [{\r\n                type: Input\r\n            }], toggleMenuState: [{\r\n                type: Output\r\n            }], searchField: [{\r\n                type: ViewChild,\r\n                args: ['searchInput', { static: true }]\r\n            }], onResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize', ['$event']]\r\n            }] } });\n\nconst enterLeaveHeightAnimation = trigger('enterLeaveHeightAnimation', [\r\n    transition(':enter', [\r\n        style({ opacity: 1, 'overflow-y': 'hidden', height: '0px' }),\r\n        animate('200ms', style({ opacity: 1, height: '*' }))\r\n    ]),\r\n    transition(':leave', [\r\n        style({ opacity: 1, 'overflow-y': 'hidden', height: '*' }),\r\n        animate('200ms', style({ opacity: 1, height: '0px' }))\r\n    ])\r\n]);\n\nclass RootMenuSelectorItemComponent {\r\n    constructor(amsService, router) {\r\n        this.amsService = amsService;\r\n        this.router = router;\r\n        this.menuItemClick = new EventEmitter();\r\n    }\r\n    getCurrentIcon(menuItem) {\r\n        return MenuItem.getIcon(menuItem, this.isSelected || this.isHeading);\r\n    }\r\n    getCaptionKey(menuItem) {\r\n        return MenuItem.getCaptionKey(menuItem);\r\n    }\r\n    handleMenuItemClicked() {\r\n        this.menuItemClick.emit(this.menuItem);\r\n    }\r\n    getRouterLink(menuItem) {\r\n        if (menuItem.useCustomUri) {\r\n            return [menuItem.uri];\r\n        }\r\n        const url = this.amsService.addAccountAndSubscriptionToUrl(menuItem.uri);\r\n        const result = url.indexOf('/') === 0 ? url : '/' + url;\r\n        return [result.split(/[?#]/)[0]];\r\n    }\r\n    getRouterQueryParams(menuItem) {\r\n        if (menuItem.useCustomUri) {\r\n            return this.router.parseUrl(menuItem.uri).queryParams;\r\n        }\r\n        const url = this.amsService.addAccountAndSubscriptionToUrl(menuItem.uri);\r\n        return this.router.parseUrl(url).queryParams;\r\n    }\r\n}\r\nRootMenuSelectorItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RootMenuSelectorItemComponent, deps: [{ token: i1$1.AmsService }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component });\r\nRootMenuSelectorItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RootMenuSelectorItemComponent, selector: \"pri-root-menu-selector-item\", inputs: { opened: \"opened\", menuItem: \"menuItem\", isSelected: \"isSelected\", isHeading: \"isHeading\" }, outputs: { menuItemClick: \"menuItemClick\" }, ngImport: i0, template: \"<li\\r\\n\\t*ngIf=\\\"menuItem.isVisible\\\"\\r\\n\\t[class.active]=\\\"isSelected\\\"\\r\\n\\t[attr.data-testid]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\tclass=\\\"nav-item root-menu-options-item\\\">\\r\\n\\t<div *ngIf=\\\"isHeading\\\" class=\\\"left-highlight\\\"></div>\\r\\n\\r\\n\\t<!-- Menu without link -->\\r\\n\\t<a *ngIf=\\\"!menuItem.uri\\\" [id]=\\\"getCaptionKey(menuItem)\\\" class=\\\"sidebar-link\\\" (click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\r\\n\\t\\t<span *ngIf=\\\"isHeading\\\">\\r\\n\\t\\t\\t<span class=\\\"arrow\\\" [ngClass]=\\\"[opened ? 'open' : '']\\\" [attr.data-testid]=\\\"'menu-toggle-arrow'\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</span>\\r\\n\\t\\t</span>\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Menu with custom link -->\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"menuItem.uri && menuItem.useCustomUri\\\"\\r\\n\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t[href]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Menu with router link -->\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"menuItem.uri && !menuItem.useCustomUri\\\"\\r\\n\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t[routerLink]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t[queryParams]=\\\"getRouterQueryParams(menuItem)\\\"\\r\\n\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\r\\n\\t<div *ngIf=\\\"isHeading\\\" class=\\\"border-bottom\\\" [ngClass]=\\\"[opened ? 'open' : '']\\\"></div>\\r\\n</li>\\r\\n\\r\\n<ng-template #iconTitle>\\r\\n\\t<span class=\\\"icon-holder\\\">\\r\\n\\t\\t<i [ngClass]=\\\"getCurrentIcon(menuItem)\\\"></i>\\r\\n\\t</span>\\r\\n\\r\\n\\t<span class=\\\"title\\\" priTooltipHover>{{ menuItem.caption | priI18n }}</span>\\r\\n</ng-template>\\r\\n\", dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i3.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"directive\", type: i1$2.RouterLinkWithHref, selector: \"a[routerLink],area[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"state\", \"relativeTo\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"routerLink\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RootMenuSelectorItemComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-root-menu-selector-item', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<li\\r\\n\\t*ngIf=\\\"menuItem.isVisible\\\"\\r\\n\\t[class.active]=\\\"isSelected\\\"\\r\\n\\t[attr.data-testid]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\tclass=\\\"nav-item root-menu-options-item\\\">\\r\\n\\t<div *ngIf=\\\"isHeading\\\" class=\\\"left-highlight\\\"></div>\\r\\n\\r\\n\\t<!-- Menu without link -->\\r\\n\\t<a *ngIf=\\\"!menuItem.uri\\\" [id]=\\\"getCaptionKey(menuItem)\\\" class=\\\"sidebar-link\\\" (click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\r\\n\\t\\t<span *ngIf=\\\"isHeading\\\">\\r\\n\\t\\t\\t<span class=\\\"arrow\\\" [ngClass]=\\\"[opened ? 'open' : '']\\\" [attr.data-testid]=\\\"'menu-toggle-arrow'\\\">\\r\\n\\t\\t\\t\\t<i class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n\\t\\t\\t</span>\\r\\n\\t\\t</span>\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Menu with custom link -->\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"menuItem.uri && menuItem.useCustomUri\\\"\\r\\n\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t[href]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\r\\n\\t<!-- Menu with router link -->\\r\\n\\t<a\\r\\n\\t\\t*ngIf=\\\"menuItem.uri && !menuItem.useCustomUri\\\"\\r\\n\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t[routerLink]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t[queryParams]=\\\"getRouterQueryParams(menuItem)\\\"\\r\\n\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t<ng-container [ngTemplateOutlet]=\\\"iconTitle\\\"></ng-container>\\r\\n\\t</a>\\r\\n\\r\\n\\t<div *ngIf=\\\"isHeading\\\" class=\\\"border-bottom\\\" [ngClass]=\\\"[opened ? 'open' : '']\\\"></div>\\r\\n</li>\\r\\n\\r\\n<ng-template #iconTitle>\\r\\n\\t<span class=\\\"icon-holder\\\">\\r\\n\\t\\t<i [ngClass]=\\\"getCurrentIcon(menuItem)\\\"></i>\\r\\n\\t</span>\\r\\n\\r\\n\\t<span class=\\\"title\\\" priTooltipHover>{{ menuItem.caption | priI18n }}</span>\\r\\n</ng-template>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.AmsService }, { type: i1$2.Router }]; }, propDecorators: { opened: [{\r\n                type: Input\r\n            }], menuItem: [{\r\n                type: Input\r\n            }], isSelected: [{\r\n                type: Input\r\n            }], isHeading: [{\r\n                type: Input\r\n            }], menuItemClick: [{\r\n                type: Output\r\n            }] } });\n\nclass RootMenuSelectorComponent {\r\n    constructor(changeDetectorRef) {\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.toggleRootMenu = new EventEmitter();\r\n        this.selectedRootMenuChange = new EventEmitter();\r\n    }\r\n    ngOnInit() {\r\n        this.isInitialized = true;\r\n    }\r\n    ngOnChanges(changes) {\r\n        if (this.isInitialized && changes['menuDefinition']) {\r\n            // set the minHeight to 56 if the menu is not flat\r\n            // this is to enable the scroll in the root menu selector\r\n            if (!this.menuDefinition?.flatMenu) {\r\n                this.minHeight = 56;\r\n            }\r\n            else {\r\n                this.minHeight = null;\r\n            }\r\n            this.changeDetectorRef.markForCheck();\r\n        }\r\n    }\r\n    // When user clicks out of root menu selector...\r\n    clickOut(event) {\r\n        // Root Menu Selector\r\n        if (this.rootMenuSelectorElement && !this.rootMenuSelectorElement.nativeElement.contains(event.target)) {\r\n            if (this.visible) {\r\n                this.toggleRootMenuOptions();\r\n            }\r\n        }\r\n    }\r\n    trackById(index, menuItem) {\r\n        return menuItem.id;\r\n    }\r\n    toggleRootMenuOptions() {\r\n        if (this.menuDefinition.menuItems.length > 1) {\r\n            this.visible = !this.visible;\r\n            this.toggleRootMenu.emit(this.visible);\r\n        }\r\n    }\r\n    selectRootMenu(menu) {\r\n        this.selectedRootMenu = menu;\r\n        this.selectedRootMenuChange.emit(this.selectedRootMenu);\r\n        this.toggleRootMenuOptions();\r\n    }\r\n}\r\nRootMenuSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RootMenuSelectorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nRootMenuSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: RootMenuSelectorComponent, selector: \"pri-root-menu-selector\", inputs: { selectedRootMenu: \"selectedRootMenu\", menuDefinition: \"menuDefinition\" }, outputs: { toggleRootMenu: \"toggleRootMenu\", selectedRootMenuChange: \"selectedRootMenuChange\" }, host: { listeners: { \"document:click\": \"clickOut($event)\" }, properties: { \"style.minHeight.px\": \"this.minHeight\" } }, viewQueries: [{ propertyName: \"rootMenuSelectorElement\", first: true, predicate: [\"rootMenuSelectorElement\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<!-- Root Menu Container-->\\r\\n<div class=\\\"root-menus\\\" [ngClass]=\\\"{ overlay: !visible }\\\">\\r\\n\\t<!-- ROOT Menu Selector -->\\r\\n\\r\\n\\t<ul\\r\\n\\t\\t#rootMenuSelectorElement\\r\\n\\t\\tclass=\\\"sidebar-menu root-menu-selector\\\"\\r\\n\\t\\tdata-testid=\\\"root-menu-selector\\\"\\r\\n\\t\\t*ngIf=\\\"!menuDefinition.flatMenu && selectedRootMenu\\\">\\r\\n\\t\\t<pri-root-menu-selector-item\\r\\n\\t\\t\\t[opened]=\\\"visible\\\"\\r\\n\\t\\t\\t[isHeading]=\\\"true\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"selectedRootMenu\\\"\\r\\n\\t\\t\\t(menuItemClick)=\\\"toggleRootMenuOptions()\\\">\\r\\n\\t\\t</pri-root-menu-selector-item>\\r\\n\\t</ul>\\r\\n\\r\\n\\t<!-- ROOT Menu Options -->\\r\\n\\r\\n\\t<ul\\r\\n\\t\\tid=\\\"#root-menu-options\\\"\\r\\n\\t\\tclass=\\\"sidebar-menu root-menu-options scrollable\\\"\\r\\n\\t\\t*ngIf=\\\"visible && this.menuDefinition.menuItems\\\"\\r\\n\\t\\t[@enterLeaveHeightAnimation]>\\r\\n\\t\\t<pri-root-menu-selector-item\\r\\n\\t\\t\\t*ngFor=\\\"let menuItem of this.menuDefinition.menuItems; trackById\\\"\\r\\n\\t\\t\\t[isSelected]=\\\"menuItem === selectedRootMenu\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t\\t(menuItemClick)=\\\"selectRootMenu(menuItem)\\\">\\r\\n\\t\\t</pri-root-menu-selector-item>\\r\\n\\t</ul>\\r\\n</div>\\r\\n\", dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: RootMenuSelectorItemComponent, selector: \"pri-root-menu-selector-item\", inputs: [\"opened\", \"menuItem\", \"isSelected\", \"isHeading\"], outputs: [\"menuItemClick\"] }], animations: [enterLeaveHeightAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: RootMenuSelectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-root-menu-selector', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [enterLeaveHeightAnimation], template: \"<!-- Root Menu Container-->\\r\\n<div class=\\\"root-menus\\\" [ngClass]=\\\"{ overlay: !visible }\\\">\\r\\n\\t<!-- ROOT Menu Selector -->\\r\\n\\r\\n\\t<ul\\r\\n\\t\\t#rootMenuSelectorElement\\r\\n\\t\\tclass=\\\"sidebar-menu root-menu-selector\\\"\\r\\n\\t\\tdata-testid=\\\"root-menu-selector\\\"\\r\\n\\t\\t*ngIf=\\\"!menuDefinition.flatMenu && selectedRootMenu\\\">\\r\\n\\t\\t<pri-root-menu-selector-item\\r\\n\\t\\t\\t[opened]=\\\"visible\\\"\\r\\n\\t\\t\\t[isHeading]=\\\"true\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"selectedRootMenu\\\"\\r\\n\\t\\t\\t(menuItemClick)=\\\"toggleRootMenuOptions()\\\">\\r\\n\\t\\t</pri-root-menu-selector-item>\\r\\n\\t</ul>\\r\\n\\r\\n\\t<!-- ROOT Menu Options -->\\r\\n\\r\\n\\t<ul\\r\\n\\t\\tid=\\\"#root-menu-options\\\"\\r\\n\\t\\tclass=\\\"sidebar-menu root-menu-options scrollable\\\"\\r\\n\\t\\t*ngIf=\\\"visible && this.menuDefinition.menuItems\\\"\\r\\n\\t\\t[@enterLeaveHeightAnimation]>\\r\\n\\t\\t<pri-root-menu-selector-item\\r\\n\\t\\t\\t*ngFor=\\\"let menuItem of this.menuDefinition.menuItems; trackById\\\"\\r\\n\\t\\t\\t[isSelected]=\\\"menuItem === selectedRootMenu\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t\\t(menuItemClick)=\\\"selectRootMenu(menuItem)\\\">\\r\\n\\t\\t</pri-root-menu-selector-item>\\r\\n\\t</ul>\\r\\n</div>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { rootMenuSelectorElement: [{\r\n                type: ViewChild,\r\n                args: ['rootMenuSelectorElement']\r\n            }], minHeight: [{\r\n                type: HostBinding,\r\n                args: ['style.minHeight.px']\r\n            }], toggleRootMenu: [{\r\n                type: Output\r\n            }], selectedRootMenuChange: [{\r\n                type: Output\r\n            }], selectedRootMenu: [{\r\n                type: Input\r\n            }], menuDefinition: [{\r\n                type: Input\r\n            }], clickOut: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass MenutItemIsSelectedDirective {\r\n    constructor(el, renderer, router) {\r\n        this.el = el;\r\n        this.renderer = renderer;\r\n        this.router = router;\r\n    }\r\n    ngOnInit() {\r\n        // Call isSelected once initially\r\n        this.updateSelection();\r\n        // Call isSelected on every navigation end\r\n        this.subscription = this.router.events\r\n            .pipe(filter((event) => event instanceof NavigationEnd))\r\n            .subscribe(() => this.updateSelection());\r\n    }\r\n    ngOnDestroy() {\r\n        // don't forget to unsubscribe when the component is destroyed\r\n        this.subscription.unsubscribe();\r\n    }\r\n    updateSelection() {\r\n        if (this.isSelected(this.menuItem)) {\r\n            this.renderer.addClass(this.el.nativeElement, 'selected-class');\r\n            this.renderer.addClass(this.el.nativeElement, 'active');\r\n        }\r\n        else {\r\n            this.renderer.removeClass(this.el.nativeElement, 'active');\r\n            this.renderer.removeClass(this.el.nativeElement, 'selected-class');\r\n        }\r\n    }\r\n    isSelected(menuItem) {\r\n        // menuItem has submenu items\r\n        if (menuItem.menuItems.length > 0) {\r\n            return false;\r\n        }\r\n        // menuItem has no uri\r\n        if (!this.hasLink(menuItem)) {\r\n            return false;\r\n        }\r\n        // Function to get base URL and query parameters\r\n        const getUrlParts = (url) => {\r\n            const urlParts = url.split('?');\r\n            return {\r\n                baseUrl: urlParts[0].toLowerCase(),\r\n                queryParams: urlParts.length === 2 ? urlParts[1].toLowerCase() : ''\r\n            };\r\n        };\r\n        // Function to check if URLs are equal\r\n        const currentUrlIncludesSubMenuItemUrl = (url1, url2) => {\r\n            const url1Parts = getUrlParts(url1);\r\n            const url2Parts = getUrlParts(url2);\r\n            return (url1Parts.baseUrl.includes(url2Parts.baseUrl) && url1Parts.queryParams.includes(url2Parts.queryParams));\r\n        };\r\n        return currentUrlIncludesSubMenuItemUrl(this.router.url, menuItem.uri);\r\n    }\r\n    hasLink(menuItem) {\r\n        return menuItem.useCustomUri || (menuItem.uri != null && menuItem.uri.length > 0);\r\n    }\r\n}\r\nMenutItemIsSelectedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenutItemIsSelectedDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Directive });\r\nMenutItemIsSelectedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MenutItemIsSelectedDirective, selector: \"[priSubMenuItemIsSelected]\", inputs: { menuItem: \"menuItem\" }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenutItemIsSelectedDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priSubMenuItemIsSelected]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$2.Router }]; }, propDecorators: { menuItem: [{\r\n                type: Input\r\n            }] } });\n\nclass SubMenuItemIconDirective {\r\n    constructor(el, renderer, router) {\r\n        this.el = el;\r\n        this.renderer = renderer;\r\n        this.router = router;\r\n        this.useDefaultIcons = true;\r\n    }\r\n    ngOnInit() {\r\n        const menuItemIconClass = this.getCurrentIcon(this.menuItem);\r\n        if (this.defaultClass && menuItemIconClass?.length === 0) {\r\n            return this.renderer.addClass(this.el.nativeElement, this.defaultClass);\r\n        }\r\n        if (!this.defaultClass && menuItemIconClass?.length > 0) {\r\n            return this.renderer.addClass(this.el.nativeElement, menuItemIconClass);\r\n        }\r\n    }\r\n    isSelected(menuItem) {\r\n        // menuItem has submenu items\r\n        if (menuItem.menuItems.length > 0) {\r\n            return false;\r\n        }\r\n        // menuItem has no uri\r\n        if (!this.hasLink(menuItem)) {\r\n            return false;\r\n        }\r\n        // Function to get base URL and query parameters\r\n        const getUrlParts = (url) => {\r\n            const urlParts = url.split('?');\r\n            return {\r\n                baseUrl: urlParts[0].toLowerCase(),\r\n                queryParams: urlParts.length === 2 ? urlParts[1].toLowerCase() : ''\r\n            };\r\n        };\r\n        // Function to check if URLs are equal\r\n        const currentUrlIncludesSubMenuItemUrl = (url1, url2) => {\r\n            const url1Parts = getUrlParts(url1);\r\n            const url2Parts = getUrlParts(url2);\r\n            return (url1Parts.baseUrl.includes(url2Parts.baseUrl) && url1Parts.queryParams.includes(url2Parts.queryParams));\r\n        };\r\n        return currentUrlIncludesSubMenuItemUrl(this.router.url, menuItem.uri);\r\n    }\r\n    hasLink(menuItem) {\r\n        return menuItem.useCustomUri || (menuItem.uri != null && menuItem.uri.length > 0);\r\n    }\r\n    isActive() {\r\n        return this.menuItem === this.activeMenuItem;\r\n    }\r\n    getCurrentIcon(menuItem) {\r\n        return this.useDefaultIcons\r\n            ? MenuItem.getIcon(menuItem, this.isSelected(menuItem) || this.isActive())\r\n            : menuItem.icon;\r\n    }\r\n}\r\nSubMenuItemIconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuItemIconDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Directive });\r\nSubMenuItemIconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubMenuItemIconDirective, selector: \"[priSubMenuItemIcon]\", inputs: { menuItem: \"menuItem\", defaultClass: \"defaultClass\", useDefaultIcons: \"useDefaultIcons\", activeMenuItem: \"activeMenuItem\" }, ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuItemIconDirective, decorators: [{\r\n            type: Directive,\r\n            args: [{\r\n                    selector: '[priSubMenuItemIcon]'\r\n                }]\r\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$2.Router }]; }, propDecorators: { menuItem: [{\r\n                type: Input\r\n            }], defaultClass: [{\r\n                type: Input\r\n            }], useDefaultIcons: [{\r\n                type: Input\r\n            }], activeMenuItem: [{\r\n                type: Input\r\n            }] } });\n\nclass SubMenuItemComponent {\r\n    constructor(router, amsService) {\r\n        this.router = router;\r\n        this.amsService = amsService;\r\n        this.useDefaultIcons = true;\r\n        this.toggleMenuItem = new EventEmitter();\r\n        this.selectMenuItem = new EventEmitter();\r\n        this.destroy$ = new Subject();\r\n    }\r\n    ngOnInit() {\r\n        this.hasDropdownMenu = this.menuItem?.menuItems?.length > 0;\r\n        // set the selected menu title on app start\r\n        // user refresh included\r\n        // let's see if the menu item is selected or one of its children\r\n        // this only happens one time for each menu item\r\n        // check the menu item and it's submenu items\r\n        const foundItemMenu = this.findMenuItemByUrl([this.menuItem], this.router.url);\r\n        if (foundItemMenu) {\r\n            this.selectMenuItem.emit(foundItemMenu);\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    isActive() {\r\n        return this.menuItem === this.activeMenuItem;\r\n    }\r\n    handleMenuItemClicked() {\r\n        if (this.hasDropdownMenu) {\r\n            this.activeMenuItem = !this.isActive() ? this.menuItem : null;\r\n            this.toggleMenuItem.emit(this.menuItem);\r\n        }\r\n        else {\r\n            this.selectMenuItem.emit(this.menuItem);\r\n        }\r\n    }\r\n    selectChildMenuItem(menuItem) {\r\n        document.activeElement?.blur();\r\n        this.selectedChildMenuItem = menuItem;\r\n        this.selectMenuItem.emit(menuItem);\r\n    }\r\n    getRouterLink(menuItem) {\r\n        if (!menuItem.uri) {\r\n            return [];\r\n        }\r\n        if (menuItem.useCustomUri) {\r\n            return [menuItem.uri];\r\n        }\r\n        let url = this.amsService.addAccountAndSubscriptionToUrl(menuItem.uri);\r\n        url = url.replace('#/', '');\r\n        const result = url.indexOf('/') === 0 ? url : '/' + url;\r\n        return [result.split(/[?#]/)[0]];\r\n    }\r\n    getRouterQueryParams(menuItem) {\r\n        if (!menuItem.uri) {\r\n            return {};\r\n        }\r\n        if (menuItem.useCustomUri) {\r\n            return this.router.parseUrl(menuItem.uri).queryParams;\r\n        }\r\n        let url = this.amsService.addAccountAndSubscriptionToUrl(menuItem.uri);\r\n        url = url.replace('#/', '');\r\n        return this.router.parseUrl(url).queryParams;\r\n    }\r\n    getCaptionKey(menuItem) {\r\n        return MenuItem.getCaptionKey(menuItem);\r\n    }\r\n    findMenuItemByUrl(menuItems, url) {\r\n        const currentUrlInner = this.router.url.split('?')[0];\r\n        for (const item of menuItems) {\r\n            if (item?.uri && !item.useCustomUri) {\r\n                const menuUrlInner = item.uri.toLowerCase().split('?')[0];\r\n                const isSelectedInner = currentUrlInner.includes(menuUrlInner);\r\n                if (isSelectedInner) {\r\n                    return item;\r\n                }\r\n            }\r\n            else if (item.menuItems) {\r\n                const subitemMatch = this.findMenuItemByUrl(item.menuItems, url);\r\n                if (subitemMatch) {\r\n                    return subitemMatch;\r\n                }\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n}\r\nSubMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuItemComponent, deps: [{ token: i1$2.Router }, { token: i1$1.AmsService }], target: i0.ɵɵFactoryTarget.Component });\r\nSubMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubMenuItemComponent, selector: \"pri-sub-menu-item\", inputs: { menuItem: \"menuItem\", activeMenuItem: \"activeMenuItem\", useDefaultIcons: \"useDefaultIcons\" }, outputs: { toggleMenuItem: \"toggleMenuItem\", selectMenuItem: \"selectMenuItem\" }, ngImport: i0, template: \"<li\\r\\n\\tclass=\\\"nav-item menu-item\\\"\\r\\n\\t*ngIf=\\\"menuItem.isVisible\\\"\\r\\n\\tpriSubMenuItemIsSelected\\r\\n\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t[class.dropdown]=\\\"hasDropdownMenu\\\"\\r\\n\\t[class.open]=\\\"isActive()\\\"\\r\\n\\t[ngClass]=\\\"menuItem.extraClass ? menuItem.extraClass : ''\\\"\\r\\n\\t[attr.data-testid]=\\\"getCaptionKey(menuItem)\\\">\\r\\n\\t<div *ngIf=\\\"menuItem.type === 'heading' && menuItem.isVisible\\\" class=\\\"nav-item-heading\\\">\\r\\n\\t\\t<span class=\\\"title\\\" priTooltipHover>{{ menuItem.caption | priI18n }}</span>\\r\\n\\t</div>\\r\\n\\r\\n\\t<ng-container *ngIf=\\\"menuItem.type !== 'heading' && menuItem.isVisible\\\">\\r\\n\\t\\t<!-- Dropdown menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"hasDropdownMenu\\\"\\r\\n\\t\\t\\tclass=\\\"dropdown-toggle\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\thref=\\\"javascript:void(0);\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\r\\n\\t\\t\\t<span class=\\\"arrow\\\"><i class=\\\"ti-ux-chevron-right\\\"></i></span>\\r\\n\\t\\t</a>\\r\\n\\r\\n\\t\\t<!-- Custom Link menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"!hasDropdownMenu && menuItem.useCustomUri\\\"\\r\\n\\t\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\t[href]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\t\\t</a>\\r\\n\\r\\n\\t\\t<!-- Router Link menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"!hasDropdownMenu && !menuItem.useCustomUri\\\"\\r\\n\\t\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\t[routerLink]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t\\t[queryParams]=\\\"getRouterQueryParams(menuItem)\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\t\\t</a>\\r\\n\\t</ng-container>\\r\\n\\r\\n\\t<!-- Sub-menu -->\\r\\n\\t<ul class=\\\"dropdown-menu\\\" *ngIf=\\\"hasDropdownMenu && isActive()\\\">\\r\\n\\t\\t<li *ngFor=\\\"let subMenuItem of menuItem.menuItems\\\" priSubMenuItemIsSelected [menuItem]=\\\"subMenuItem\\\">\\r\\n\\t\\t\\t<ng-container *ngIf=\\\"subMenuItem.isVisible\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"sub-menu-link\\\" *ngIf=\\\"subMenuItem.menuItems?.length < 1\\\">\\r\\n\\t\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"subMenuItem.useCustomUri\\\"\\r\\n\\t\\t\\t\\t\\t\\t[id]=\\\"getCaptionKey(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"external-uri sidebar-link sub-menu\\\"\\r\\n\\t\\t\\t\\t\\t\\t[href]=\\\"subMenuItem.uri\\\"\\r\\n\\t\\t\\t\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"selectChildMenuItem(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tpriTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"menuContent; context: { $implicit: subMenuItem }\\\"></ng-container>\\r\\n\\t\\t\\t\\t\\t</a>\\r\\n\\r\\n\\t\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!subMenuItem.useCustomUri\\\"\\r\\n\\t\\t\\t\\t\\t\\t[id]=\\\"getCaptionKey(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"internal-uri sidebar-link sub-menu\\\"\\r\\n\\t\\t\\t\\t\\t\\t[routerLink]=\\\"getRouterLink(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\t[queryParams]=\\\"getRouterQueryParams(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"selectChildMenuItem(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tpriTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"menuContent; context: { $implicit: subMenuItem }\\\"></ng-container>\\r\\n\\t\\t\\t\\t\\t</a>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<pri-sub-menu-item\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"subMenuItem.menuItems.length > 0\\\"\\r\\n\\t\\t\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t\\t\\t\\t[menuItem]=\\\"subMenuItem\\\"\\r\\n\\t\\t\\t\\t\\t(selectMenuItem)=\\\"selectChildMenuItem($event)\\\"\\r\\n\\t\\t\\t\\t\\t[useDefaultIcons]=\\\"false\\\">\\r\\n\\t\\t\\t\\t</pri-sub-menu-item>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</li>\\r\\n\\t</ul>\\r\\n</li>\\r\\n\\r\\n<ng-template #menuContent let-menu>\\r\\n\\t<span\\r\\n\\t\\tclass=\\\"icon-holder\\\"\\r\\n\\t\\tpriSubMenuItemIcon\\r\\n\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t[defaultClass]=\\\"'no-icon'\\\"\\r\\n\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\">\\r\\n\\t\\t<i\\r\\n\\t\\t\\tpriSubMenuItemIcon\\r\\n\\t\\t\\t[menuItem]=\\\"menu\\\"\\r\\n\\t\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"></i>\\r\\n\\t</span>\\r\\n\\r\\n\\t<span class=\\\"title\\\" priTooltipHover>{{ menu.caption | priI18n }}</span>\\r\\n</ng-template>\\r\\n\", dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i3.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\", \"ngTemplateOutletInjector\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"directive\", type: i1$2.RouterLinkWithHref, selector: \"a[routerLink],area[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"state\", \"relativeTo\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"routerLink\"] }, { kind: \"component\", type: SubMenuItemComponent, selector: \"pri-sub-menu-item\", inputs: [\"menuItem\", \"activeMenuItem\", \"useDefaultIcons\"], outputs: [\"toggleMenuItem\", \"selectMenuItem\"] }, { kind: \"directive\", type: MenutItemIsSelectedDirective, selector: \"[priSubMenuItemIsSelected]\", inputs: [\"menuItem\"] }, { kind: \"directive\", type: SubMenuItemIconDirective, selector: \"[priSubMenuItemIcon]\", inputs: [\"menuItem\", \"defaultClass\", \"useDefaultIcons\", \"activeMenuItem\"] }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuItemComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-sub-menu-item', encapsulation: ViewEncapsulation.None, template: \"<li\\r\\n\\tclass=\\\"nav-item menu-item\\\"\\r\\n\\t*ngIf=\\\"menuItem.isVisible\\\"\\r\\n\\tpriSubMenuItemIsSelected\\r\\n\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t[class.dropdown]=\\\"hasDropdownMenu\\\"\\r\\n\\t[class.open]=\\\"isActive()\\\"\\r\\n\\t[ngClass]=\\\"menuItem.extraClass ? menuItem.extraClass : ''\\\"\\r\\n\\t[attr.data-testid]=\\\"getCaptionKey(menuItem)\\\">\\r\\n\\t<div *ngIf=\\\"menuItem.type === 'heading' && menuItem.isVisible\\\" class=\\\"nav-item-heading\\\">\\r\\n\\t\\t<span class=\\\"title\\\" priTooltipHover>{{ menuItem.caption | priI18n }}</span>\\r\\n\\t</div>\\r\\n\\r\\n\\t<ng-container *ngIf=\\\"menuItem.type !== 'heading' && menuItem.isVisible\\\">\\r\\n\\t\\t<!-- Dropdown menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"hasDropdownMenu\\\"\\r\\n\\t\\t\\tclass=\\\"dropdown-toggle\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\thref=\\\"javascript:void(0);\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\r\\n\\t\\t\\t<span class=\\\"arrow\\\"><i class=\\\"ti-ux-chevron-right\\\"></i></span>\\r\\n\\t\\t</a>\\r\\n\\r\\n\\t\\t<!-- Custom Link menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"!hasDropdownMenu && menuItem.useCustomUri\\\"\\r\\n\\t\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\t[href]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\t\\t</a>\\r\\n\\r\\n\\t\\t<!-- Router Link menu -->\\r\\n\\t\\t<a\\r\\n\\t\\t\\t*ngIf=\\\"!hasDropdownMenu && !menuItem.useCustomUri\\\"\\r\\n\\t\\t\\tclass=\\\"sidebar-link\\\"\\r\\n\\t\\t\\t[id]=\\\"getCaptionKey(menuItem)\\\"\\r\\n\\t\\t\\t[routerLink]=\\\"getRouterLink(menuItem)\\\"\\r\\n\\t\\t\\t[queryParams]=\\\"getRouterQueryParams(menuItem)\\\"\\r\\n\\t\\t\\t(click)=\\\"handleMenuItemClicked()\\\">\\r\\n\\t\\t\\t<ng-container *ngTemplateOutlet=\\\"menuContent; context: { $implicit: menuItem }\\\"></ng-container>\\r\\n\\t\\t</a>\\r\\n\\t</ng-container>\\r\\n\\r\\n\\t<!-- Sub-menu -->\\r\\n\\t<ul class=\\\"dropdown-menu\\\" *ngIf=\\\"hasDropdownMenu && isActive()\\\">\\r\\n\\t\\t<li *ngFor=\\\"let subMenuItem of menuItem.menuItems\\\" priSubMenuItemIsSelected [menuItem]=\\\"subMenuItem\\\">\\r\\n\\t\\t\\t<ng-container *ngIf=\\\"subMenuItem.isVisible\\\">\\r\\n\\t\\t\\t\\t<div class=\\\"sub-menu-link\\\" *ngIf=\\\"subMenuItem.menuItems?.length < 1\\\">\\r\\n\\t\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"subMenuItem.useCustomUri\\\"\\r\\n\\t\\t\\t\\t\\t\\t[id]=\\\"getCaptionKey(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"external-uri sidebar-link sub-menu\\\"\\r\\n\\t\\t\\t\\t\\t\\t[href]=\\\"subMenuItem.uri\\\"\\r\\n\\t\\t\\t\\t\\t\\ttarget=\\\"_blank\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"selectChildMenuItem(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tpriTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"menuContent; context: { $implicit: subMenuItem }\\\"></ng-container>\\r\\n\\t\\t\\t\\t\\t</a>\\r\\n\\r\\n\\t\\t\\t\\t\\t<a\\r\\n\\t\\t\\t\\t\\t\\t*ngIf=\\\"!subMenuItem.useCustomUri\\\"\\r\\n\\t\\t\\t\\t\\t\\t[id]=\\\"getCaptionKey(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tclass=\\\"internal-uri sidebar-link sub-menu\\\"\\r\\n\\t\\t\\t\\t\\t\\t[routerLink]=\\\"getRouterLink(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\t[queryParams]=\\\"getRouterQueryParams(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\t(click)=\\\"selectChildMenuItem(subMenuItem)\\\"\\r\\n\\t\\t\\t\\t\\t\\tpriTooltipHover>\\r\\n\\t\\t\\t\\t\\t\\t<ng-container\\r\\n\\t\\t\\t\\t\\t\\t\\t*ngTemplateOutlet=\\\"menuContent; context: { $implicit: subMenuItem }\\\"></ng-container>\\r\\n\\t\\t\\t\\t\\t</a>\\r\\n\\t\\t\\t\\t</div>\\r\\n\\r\\n\\t\\t\\t\\t<pri-sub-menu-item\\r\\n\\t\\t\\t\\t\\t*ngIf=\\\"subMenuItem.menuItems.length > 0\\\"\\r\\n\\t\\t\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t\\t\\t\\t[menuItem]=\\\"subMenuItem\\\"\\r\\n\\t\\t\\t\\t\\t(selectMenuItem)=\\\"selectChildMenuItem($event)\\\"\\r\\n\\t\\t\\t\\t\\t[useDefaultIcons]=\\\"false\\\">\\r\\n\\t\\t\\t\\t</pri-sub-menu-item>\\r\\n\\t\\t\\t</ng-container>\\r\\n\\t\\t</li>\\r\\n\\t</ul>\\r\\n</li>\\r\\n\\r\\n<ng-template #menuContent let-menu>\\r\\n\\t<span\\r\\n\\t\\tclass=\\\"icon-holder\\\"\\r\\n\\t\\tpriSubMenuItemIcon\\r\\n\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t[defaultClass]=\\\"'no-icon'\\\"\\r\\n\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\">\\r\\n\\t\\t<i\\r\\n\\t\\t\\tpriSubMenuItemIcon\\r\\n\\t\\t\\t[menuItem]=\\\"menu\\\"\\r\\n\\t\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"></i>\\r\\n\\t</span>\\r\\n\\r\\n\\t<span class=\\\"title\\\" priTooltipHover>{{ menu.caption | priI18n }}</span>\\r\\n</ng-template>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$1.AmsService }]; }, propDecorators: { menuItem: [{\r\n                type: Input\r\n            }], activeMenuItem: [{\r\n                type: Input\r\n            }], useDefaultIcons: [{\r\n                type: Input\r\n            }], toggleMenuItem: [{\r\n                type: Output\r\n            }], selectMenuItem: [{\r\n                type: Output\r\n            }] } });\n\nclass SubMenuComponent {\r\n    constructor(router, viewTitleService, activatedRoute, broadcastService, settingsService, deviceService) {\r\n        this.router = router;\r\n        this.viewTitleService = viewTitleService;\r\n        this.activatedRoute = activatedRoute;\r\n        this.broadcastService = broadcastService;\r\n        this.settingsService = settingsService;\r\n        this.deviceService = deviceService;\r\n        this.useDefaultIcons = true;\r\n        this.checkForDraftUpdates = new BehaviorSubject(false);\r\n        this.destroy$ = new Subject();\r\n    }\r\n    get parentMenu() {\r\n        return this._parentMenu;\r\n    }\r\n    set parentMenu(value) {\r\n        this._parentMenu = value;\r\n        this.activeMenuItem = null;\r\n        if (this.hasDraftSupport) {\r\n            this.checkForDraftUpdates.next(true);\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    async ngOnInit() {\r\n        const isElevationFW = await this.settingsService.isElevationFW();\r\n        if (!isElevationFW) {\r\n            this.router.events.pipe(takeUntil(this.destroy$)).subscribe((event) => {\r\n                if (event instanceof NavigationStart) {\r\n                    // Navigation started - clear the title\r\n                    this.viewTitleService.setViewTitle(this.activatedRoute, '');\r\n                }\r\n                if (event instanceof NavigationEnd) {\r\n                    // Navigation ended, set the title to this.activeMenuItem.title\r\n                    this.setViewTitle();\r\n                }\r\n            });\r\n            // If the router has not navigated yet, wait for the first NavigationEnd event.\r\n            // User may have navigated directly to a route with a title or F5'd the page.\r\n            if (!this.router.navigated) {\r\n                this.router.events\r\n                    .pipe(takeUntil(this.destroy$), filter((event) => event instanceof NavigationEnd))\r\n                    .subscribe(() => this.setViewTitle());\r\n            }\r\n            else {\r\n                this.setViewTitle();\r\n            }\r\n        }\r\n    }\r\n    trackById(index, menuItem) {\r\n        return menuItem.id;\r\n    }\r\n    onToggleMenu(event) {\r\n        this.toggleMenu(event);\r\n    }\r\n    isOverviewMenu() {\r\n        return this.parentMenu && this.parentMenu.id === MenuItem.OverviewMenuId;\r\n    }\r\n    selectMenu(menuItem) {\r\n        if (this.isMobileDevice() && !this.collapsed) {\r\n            this.broadcastService.emit('onToggleMenuState');\r\n        }\r\n        this.lastClickedMenuItem = menuItem;\r\n        this.setViewTitle();\r\n    }\r\n    toggleMenu(menuItem) {\r\n        this.activeMenuItem = menuItem;\r\n    }\r\n    setViewTitle() {\r\n        // Handle the case where the parent menu is null and the last clicked menu item is null\r\n        if (!this.lastClickedMenuItem && !this._parentMenu) {\r\n            return;\r\n        }\r\n        // Handle home page load (the user has not clicked on any menu item yet)\r\n        if (!this.lastClickedMenuItem) {\r\n            // figure out the \"last clicked\" menu item based on the current url\r\n            this.lastClickedMenuItem = this.findMenuItemByUrl(this._parentMenu.menuItems, this.router.url);\r\n        }\r\n        // set the view title to the last clicked menu item title\r\n        if (this.lastClickedMenuItem?.title?.length > 0) {\r\n            this.viewTitleService.setViewTitle(this.activatedRoute, this.lastClickedMenuItem.title);\r\n        }\r\n    }\r\n    findMenuItemByUrl(menuItems, url) {\r\n        const currentUrlInner = this.router.url.split('?')[0];\r\n        for (const item of menuItems) {\r\n            if (item?.uri && !item.useCustomUri) {\r\n                const menuUrlInner = item.uri.toLowerCase().split('?')[0];\r\n                const isSelectedInner = currentUrlInner.includes(menuUrlInner);\r\n                if (isSelectedInner) {\r\n                    return item;\r\n                }\r\n            }\r\n            else if (item.menuItems) {\r\n                const subitemMatch = this.findMenuItemByUrl(item.menuItems, url);\r\n                if (subitemMatch) {\r\n                    return subitemMatch;\r\n                }\r\n            }\r\n        }\r\n        return null;\r\n    }\r\n    isMobileDevice() {\r\n        const devicesEnum = this.deviceService.getDevice();\r\n        return (devicesEnum === \"ExtraSmallDevices\" /* DevicesEnum.ExtraSmallDevices */ ||\r\n            devicesEnum === \"SmallDevices\" /* DevicesEnum.SmallDevices */ ||\r\n            devicesEnum === \"MediumDevices\" /* DevicesEnum.MediumDevices */);\r\n    }\r\n}\r\nSubMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuComponent, deps: [{ token: i1$2.Router }, { token: i1$1.ViewTitleService }, { token: i1$2.ActivatedRoute }, { token: i1$1.BroadcastService }, { token: i1$1.SettingsService }, { token: i1$1.DeviceService }], target: i0.ɵɵFactoryTarget.Component });\r\nSubMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SubMenuComponent, selector: \"pri-sub-menu\", inputs: { visible: \"visible\", collapsed: \"collapsed\", useDefaultIcons: \"useDefaultIcons\", workInProgressItemsUri: \"workInProgressItemsUri\", activeMenuItem: \"activeMenuItem\", hasDraftSupport: \"hasDraftSupport\", parentMenu: \"parentMenu\" }, ngImport: i0, template: \"<div id=\\\"menu-options-container\\\" class=\\\"p-r menu-options-container\\\" [class.overlay]=\\\"!visible\\\">\\r\\n\\t<div *ngIf=\\\"!visible\\\" class=\\\"menu-overlay p-a\\\"></div>\\r\\n\\r\\n\\t<ul class=\\\"sidebar-menu scrollable pos-r\\\">\\r\\n\\t\\t<div class=\\\"left-highlight\\\"></div>\\r\\n\\r\\n\\t\\t<pri-sub-menu-item\\r\\n\\t\\t\\t*ngFor=\\\"let menuItem of parentMenu?.menuItems; trackById\\\"\\r\\n\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t\\t(toggleMenuItem)=\\\"toggleMenu(menuItem)\\\"\\r\\n\\t\\t\\t(selectMenuItem)=\\\"selectMenu($event)\\\">\\r\\n\\t\\t</pri-sub-menu-item>\\r\\n\\r\\n\\t\\t<!-- Drafts Activity -->\\r\\n\\t\\t<pri-drafts\\r\\n\\t\\t\\t*ngIf=\\\"hasDraftSupport && isOverviewMenu()\\\"\\r\\n\\t\\t\\t[selectedMenu]=\\\"parentMenu\\\"\\r\\n\\t\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t\\t[checkForDraftUpdates]=\\\"checkForDraftUpdates\\\"\\r\\n\\t\\t\\t(toggleMenu)=\\\"onToggleMenu($event)\\\">\\r\\n\\t\\t</pri-drafts>\\r\\n\\t</ul>\\r\\n</div>\\r\\n\", dependencies: [{ kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: SubMenuItemComponent, selector: \"pri-sub-menu-item\", inputs: [\"menuItem\", \"activeMenuItem\", \"useDefaultIcons\"], outputs: [\"toggleMenuItem\", \"selectMenuItem\"] }, { kind: \"component\", type: DraftsComponent, selector: \"pri-drafts\", inputs: [\"selectedMenu\", \"workInProgressItemsUri\", \"checkForDraftUpdates\"], outputs: [\"toggleMenu\"] }], animations: [enterLeaveHeightAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SubMenuComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-sub-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [enterLeaveHeightAnimation], template: \"<div id=\\\"menu-options-container\\\" class=\\\"p-r menu-options-container\\\" [class.overlay]=\\\"!visible\\\">\\r\\n\\t<div *ngIf=\\\"!visible\\\" class=\\\"menu-overlay p-a\\\"></div>\\r\\n\\r\\n\\t<ul class=\\\"sidebar-menu scrollable pos-r\\\">\\r\\n\\t\\t<div class=\\\"left-highlight\\\"></div>\\r\\n\\r\\n\\t\\t<pri-sub-menu-item\\r\\n\\t\\t\\t*ngFor=\\\"let menuItem of parentMenu?.menuItems; trackById\\\"\\r\\n\\t\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t\\t[menuItem]=\\\"menuItem\\\"\\r\\n\\t\\t\\t[useDefaultIcons]=\\\"useDefaultIcons\\\"\\r\\n\\t\\t\\t(toggleMenuItem)=\\\"toggleMenu(menuItem)\\\"\\r\\n\\t\\t\\t(selectMenuItem)=\\\"selectMenu($event)\\\">\\r\\n\\t\\t</pri-sub-menu-item>\\r\\n\\r\\n\\t\\t<!-- Drafts Activity -->\\r\\n\\t\\t<pri-drafts\\r\\n\\t\\t\\t*ngIf=\\\"hasDraftSupport && isOverviewMenu()\\\"\\r\\n\\t\\t\\t[selectedMenu]=\\\"parentMenu\\\"\\r\\n\\t\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t\\t[checkForDraftUpdates]=\\\"checkForDraftUpdates\\\"\\r\\n\\t\\t\\t(toggleMenu)=\\\"onToggleMenu($event)\\\">\\r\\n\\t\\t</pri-drafts>\\r\\n\\t</ul>\\r\\n</div>\\r\\n\" }]\r\n        }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$1.ViewTitleService }, { type: i1$2.ActivatedRoute }, { type: i1$1.BroadcastService }, { type: i1$1.SettingsService }, { type: i1$1.DeviceService }]; }, propDecorators: { visible: [{\r\n                type: Input\r\n            }], collapsed: [{\r\n                type: Input\r\n            }], useDefaultIcons: [{\r\n                type: Input\r\n            }], workInProgressItemsUri: [{\r\n                type: Input\r\n            }], activeMenuItem: [{\r\n                type: Input\r\n            }], hasDraftSupport: [{\r\n                type: Input\r\n            }], parentMenu: [{\r\n                type: Input\r\n            }] } });\n\nvar EnvParamItemProperties;\r\n(function (EnvParamItemProperties) {\r\n    EnvParamItemProperties[\"EnvParamName\"] = \"envParamName\";\r\n    EnvParamItemProperties[\"Id\"] = \"id\";\r\n    EnvParamItemProperties[\"Key\"] = \"key\";\r\n    EnvParamItemProperties[\"Name\"] = \"name\";\r\n    EnvParamItemProperties[\"Description\"] = \"description\";\r\n    EnvParamItemProperties[\"IsSelected\"] = \"isSelected\";\r\n    EnvParamItemProperties[\"Logo\"] = \"logo\";\r\n    EnvParamItemProperties[\"FavoriteDate\"] = \"favoriteDate\";\r\n    EnvParamItemProperties[\"Companies\"] = \"companies\";\r\n    EnvParamItemProperties[\"ContextInfo\"] = \"contextInfo\";\r\n})(EnvParamItemProperties || (EnvParamItemProperties = {}));\n\nclass EnvParamItem {\r\n    constructor(value) {\r\n        const { envParamName, id, key, name, description, logo, favoriteDate, companies, contextInfo, } = value;\r\n        this.envParamName = envParamName;\r\n        this.id = id;\r\n        this.key = key;\r\n        this.name = name;\r\n        this.description = description;\r\n        this.logo = logo;\r\n        this.favoriteDate = favoriteDate;\r\n        this.companies = companies;\r\n        this.contextInfo = contextInfo;\r\n    }\r\n}\n\nclass FilterPipe {\r\n    transform(items, searchText, searchProperties) {\r\n        if (!items) {\r\n            return [];\r\n        }\r\n        if (!searchText || !searchProperties?.length) {\r\n            return [...items];\r\n        }\r\n        searchText = searchText.toLowerCase();\r\n        return items.filter(item => this.buildSearchQuery(item, searchText, searchProperties) > 0);\r\n    }\r\n    /**\r\n     * This function builds the search query filter string\r\n     * (ex: \"true || true || false\")\r\n     *\r\n     * @param item\r\n     * @param searchText\r\n     * @param searchProperties\r\n     * @returns search query\r\n     */\r\n    buildSearchQuery(item, searchText, searchProperties) {\r\n        return searchProperties\r\n            .map(key => {\r\n            if (item.hasOwnProperty(key) && item[key]) {\r\n                return (Array.isArray(item[key]) ? item[key].join(';') : item[key])\r\n                    .toLowerCase()\r\n                    .includes(searchText);\r\n            }\r\n        })\r\n            .filter(a => a)\r\n            .length;\r\n    }\r\n}\r\nFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: FilterPipe, name: \"filter\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: FilterPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{ name: 'filter' }]\r\n        }] });\n\nclass SortByPropertyPipe {\r\n    constructor() {\r\n        this.defaultDate = new Date(null);\r\n    }\r\n    transform(items, property) {\r\n        if (!items) {\r\n            return [];\r\n        }\r\n        if (!property) {\r\n            return items;\r\n        }\r\n        // Sort by favorite\r\n        // An date approach is used to ensure the order wanted by UX\r\n        if (property === EnvParamItemProperties.FavoriteDate) {\r\n            const favItems = items.filter(item => item.favoriteDate.getTime() !== this.defaultDate.getTime());\r\n            const nonFavItems = items.filter(item => item.favoriteDate.getTime() === this.defaultDate.getTime());\r\n            favItems.sort((item1, item2) => item2[property].getTime() - item1[property].getTime());\r\n            return favItems.concat(nonFavItems);\r\n        }\r\n        // Sort by other properties\r\n        return items.sort((item1, item2) => item2[property] - item1[property]);\r\n    }\r\n}\r\nSortByPropertyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SortByPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\r\nSortByPropertyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: SortByPropertyPipe, name: \"sortByProperty\" });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SortByPropertyPipe, decorators: [{\r\n            type: Pipe,\r\n            args: [{ name: 'sortByProperty' }]\r\n        }] });\n\nclass SelectorComponent {\r\n    constructor(companyDependentService, broadcastService, i18nService, messagesService, http, changeDetRef, userSettings, appContextService) {\r\n        this.companyDependentService = companyDependentService;\r\n        this.broadcastService = broadcastService;\r\n        this.i18nService = i18nService;\r\n        this.messagesService = messagesService;\r\n        this.http = http;\r\n        this.changeDetRef = changeDetRef;\r\n        this.userSettings = userSettings;\r\n        this.appContextService = appContextService;\r\n        this.showEnvSelector = true;\r\n        this.envParamChanged = new EventEmitter();\r\n        this.titleToolTipConfiguration = {\r\n            position: 'right',\r\n            showDelay: 200,\r\n            hideDelay: undefined,\r\n            touchendHideDelay: undefined\r\n        };\r\n        this.lockMenuCompany = false;\r\n        this.EnvParamItemProperties = EnvParamItemProperties;\r\n        this.showEnvSelectorOptions = false;\r\n        this.subscriptions = [];\r\n        this.companies = [];\r\n        this.defaultDate = new Date(null);\r\n    }\r\n    get favoriteCompanies() {\r\n        return this.companies.filter((company) => company.favoriteDate !== this.defaultDate);\r\n    }\r\n    get favoriteSubscriptions() {\r\n        return this.subscriptions.filter((subscription) => subscription.favoriteDate !== this.defaultDate);\r\n    }\r\n    ngOnInit() {\r\n        if (this.subscriptionsSourceUri && this.subscriptionsSourceUri.length) {\r\n            this.populateUserTopSubscriptions();\r\n            this.subscriptionSettingKey = ['favorite', 'subscriptions'].join('_');\r\n            if (this.companiesSourceUri && this.companiesSourceUri.length) {\r\n                this.getCompany();\r\n                this.companyDependentService.getRefreshCompanies().subscribe(() => {\r\n                    // Top user subscriptions\r\n                    if (this.subscriptionsSourceUri && this.subscriptionsSourceUri.length > 0) {\r\n                        this.populateUserTopSubscriptions();\r\n                    }\r\n                    this.getCompany(true);\r\n                });\r\n                this.companyDependentService.getSelectCompany().subscribe((company) => {\r\n                    this.setCurrentCompany(company);\r\n                });\r\n                this.companyDependentService.getLockCompanyDependent().subscribe((lock) => {\r\n                    this.lockMenuCompany = lock;\r\n                });\r\n                this.companySettingKey = [\r\n                    'favorite',\r\n                    'companies',\r\n                    `for-subscription-${this.appContextService.organizationKey}`\r\n                ].join('_');\r\n            }\r\n        }\r\n    }\r\n    // When user clicks out of root menu selector...\r\n    clickout(event) {\r\n        // Environment Selector\r\n        if (this.envSelectorElement && !this.envSelectorElement.nativeElement.contains(event.target)) {\r\n            this.showEnvSelectorOptions = false;\r\n        }\r\n    }\r\n    toggleEnvSelectorOptions() {\r\n        if (this.hasEnvironmentOptions) {\r\n            this.showEnvSelectorOptions = !this.showEnvSelectorOptions;\r\n        }\r\n    }\r\n    selectEnvironmentParameter(event) {\r\n        if (event.id === this.selectedSubscription?.id || event.id === this.selectedCompany?.id) {\r\n            return;\r\n        }\r\n        this.envParamChanged.emit(event);\r\n        this.showEnvSelectorOptions = false;\r\n        if (event.envParamName === 'subscription') {\r\n            this.changeSubscription(event);\r\n        }\r\n        if (event.envParamName === 'company') {\r\n            if (this.selectedCompany === null || this.selectedCompany.key !== event.key) {\r\n                if (!this.lockMenuCompany) {\r\n                    this.selectedCompany = new EnvParamItem({\r\n                        envParamName: 'company',\r\n                        id: event.id,\r\n                        key: event.key,\r\n                        name: event.name,\r\n                        description: event.description,\r\n                        logo: event.logo,\r\n                        favoriteDate: this.defaultDate,\r\n                        companies: []\r\n                    });\r\n                    if (event.key) {\r\n                        this.setLastUsedCompany(event.key, event.id, this.selectedCompany);\r\n                    }\r\n                    else {\r\n                        // used for the case in there is no company\r\n                        this.broadcastService.emit('company', undefined);\r\n                        this.companyDependentService.onSelectCompany({\r\n                            key: undefined\r\n                        });\r\n                    }\r\n                    let companyChangedMessage = this.i18nService.get('shell.components.RES_Menu_SelectedCompanyChanged');\r\n                    companyChangedMessage = companyChangedMessage.replace('{0}', this.selectedCompany.name);\r\n                    this.messagesService.show(new MessageInfo(companyChangedMessage, null, 1 /* MessageType.Info */));\r\n                }\r\n                else {\r\n                    this.messagesService.show(new MessageInfo(this.i18nService.get('shell.components.RES_Menu_SelectedCompanyCantChanged'), null, 1 /* MessageType.Info */));\r\n                }\r\n            }\r\n        }\r\n    }\r\n    favoriteEnvironmentParameter(item, event, settingsKey, envParamList, envParamFavorite) {\r\n        event.stopPropagation();\r\n        if (this[envParamFavorite]?.length >= 5 && !this[envParamFavorite].includes(item)) {\r\n            return;\r\n        }\r\n        item.favoriteDate = item.favoriteDate.getTime() !== this.defaultDate.getTime() ? this.defaultDate : new Date();\r\n        const settingDefinition = {\r\n            settingKey: settingsKey,\r\n            value: JSON.stringify(this[envParamFavorite].map((envItem) => ({ id: envItem.id, favoriteDate: envItem.favoriteDate }))),\r\n            clientId: this.appContextService.getContext().productName\r\n        };\r\n        this.userSettings.setCurrentUserSetting(settingDefinition);\r\n        // Destroy old array reference to trigger change detection\r\n        this[envParamList] = [...this[envParamList]];\r\n    }\r\n    /**\r\n     * Returns a value to apply on \"top\" CSS property based on index of a ngFor item.\r\n     * Useful to apply animation/transition of \"favorited\" subscriptions\r\n     *\r\n     * @param index Index of item in ngFor\r\n     * @param environment The object of array binded in ngFor\r\n     * @returns The string of \"top\" CSS property value\r\n     */\r\n    getEnvironmentItemTopPosition(index, environment) {\r\n        const htmlItemID = `${environment.envParamName}-${environment.key}`;\r\n        const element = document.getElementById(htmlItemID);\r\n        const defaultElementHeight = 55;\r\n        const topPosition = defaultElementHeight * index;\r\n        // disable-eslint-line\r\n        const height = element?.clientHeight;\r\n        return `${topPosition}px`;\r\n    }\r\n    isFavoriteItem(item, itemType) {\r\n        return this[itemType].includes(item);\r\n    }\r\n    getSearchInputPlaceholder() {\r\n        // If companies array doesn't exist, return normal translation\r\n        if (this.subscriptions.length && this.subscriptions[0].companies === undefined) {\r\n            return this.i18nService.get('shell.components.RES_Shell_Menu_SearchSubscriptionPlaceholder');\r\n        }\r\n        const subscriptionsWithNifs = this.subscriptions.filter((subscription) => subscription.companies.length);\r\n        // If companies array exists, check if it has values or not\r\n        return subscriptionsWithNifs.length\r\n            ? this.i18nService.get('shell.components.RES_Shell_Menu_SearchSubscriptionPlaceholder_With_Nif')\r\n            : this.i18nService.get('shell.components.RES_Shell_Menu_SearchSubscriptionPlaceholder');\r\n    }\r\n    populateUserTopSubscriptions() {\r\n        const uri = this.replaceStandardRequestParameters(this.subscriptionsSourceUri);\r\n        const retryCount = 2;\r\n        const retryWaitMilliSeconds = 1000;\r\n        this.getEndpointResponse(uri)\r\n            .pipe(retry({ count: retryCount, delay: retryWaitMilliSeconds }))\r\n            .subscribe((r) => {\r\n            const items = r.body.map((s) => this.createNewSubscriptionMenuEntry(s));\r\n            this.subscriptions = [];\r\n            this.subscriptions = this.subscriptions.concat(items);\r\n            this.loadFavoriteEnvParameter(this.subscriptionSettingKey, 'subscriptions');\r\n            this.hasEnvironmentOptions = this.subscriptions.length > 1 || this.companies.length > 1;\r\n            // Select the current subscription based on the Url\r\n            const matchSubs = this.subscriptions.find((s) => s.key.toLocaleUpperCase() ===\r\n                this.appContextService.getContext().subscriptionAlias.toLocaleUpperCase());\r\n            if (matchSubs) {\r\n                this.selectedSubscription = matchSubs;\r\n                this.selectedSubscription.isSelected = true;\r\n            }\r\n            this.changeDetRef.detectChanges();\r\n        });\r\n    }\r\n    changeSubscription(toSubscription) {\r\n        if (toSubscription && toSubscription.contextInfo) {\r\n            const baseAddress = window.location.origin;\r\n            const accountKey = toSubscription.contextInfo.accountKey;\r\n            const finalUrl = this.concatenateAddressSegments([\r\n                baseAddress,\r\n                accountKey,\r\n                toSubscription.key,\r\n                '#',\r\n                'start'\r\n            ]);\r\n            window.location.assign(finalUrl);\r\n        }\r\n    }\r\n    concatenateAddressSegments(segments) {\r\n        let res = '';\r\n        segments.forEach((s) => {\r\n            if (s.startsWith('http') || s.startsWith('/')) {\r\n                res += s;\r\n            }\r\n            else {\r\n                res += '/' + s;\r\n            }\r\n        });\r\n        return res;\r\n    }\r\n    setLastUsedCompany(key, id, currentCompany) {\r\n        this.companyDependentService.onSelectCompany(currentCompany);\r\n    }\r\n    populateUserTopCompanies(settingDefinition = null, fromCompanyRefresh = false) {\r\n        const retryCount = 2;\r\n        const retryWaitMilliSeconds = 2500;\r\n        const uri = this.replaceStandardRequestParameters(this.companiesSourceUri);\r\n        this.getEndpointResponse(uri)\r\n            .pipe(retry({ count: retryCount, delay: retryWaitMilliSeconds }))\r\n            .subscribe((r) => {\r\n            const items = r.body.map((s) => new EnvParamItem({\r\n                envParamName: 'company',\r\n                id: s.id,\r\n                key: s.companyKey || s.key,\r\n                name: s.name,\r\n                description: s.companyTaxID || s.description,\r\n                logo: s.logoThumbnail,\r\n                favoriteDate: this.defaultDate,\r\n                companies: []\r\n            }));\r\n            this.companies = [];\r\n            this.companies = this.companies.concat(items);\r\n            if (this.companies.length > 0) {\r\n                this.loadFavoriteEnvParameter(this.companySettingKey, 'companies');\r\n                if ((this.companies.length > 1 && !this.hasEnvironmentOptions) || this.subscriptions.length > 1) {\r\n                    this.hasEnvironmentOptions = true; // enable company selector\r\n                }\r\n                else {\r\n                    this.hasEnvironmentOptions = false; // disable company selector\r\n                }\r\n                if (settingDefinition !== null) {\r\n                    const currentCompanyIndex = this.companies.findIndex((o) => o.key.toLocaleLowerCase() === settingDefinition.value.toLocaleLowerCase());\r\n                    this.selectedCompany = this.companies[currentCompanyIndex];\r\n                    if (currentCompanyIndex === -1) {\r\n                        this.selectedCompany = this.companies[0];\r\n                        this.setLastUsedCompany(this.selectedCompany.key, this.selectedCompany.id, this.selectedCompany);\r\n                        if (settingDefinition.value !== this.selectedCompany.key) {\r\n                            this.messagesService.show(new MessageInfo(this.i18nService.get('shell.components.RES_DynamicForm_NewCompany') +\r\n                                this.selectedCompany.name, undefined, 1 /* MessageType.Info */));\r\n                        }\r\n                        // For the case of a company created in a subscription without any company previously created.\r\n                    }\r\n                    else if (!this.selectedCompany && fromCompanyRefresh) {\r\n                        this.messagesService.show(new MessageInfo(this.i18nService.get('shell.components.RES_DynamicForm_NewCompany') +\r\n                            this.selectedCompany.name, undefined, 1 /* MessageType.Info */));\r\n                    }\r\n                }\r\n                if (settingDefinition === null &&\r\n                    (this.selectedCompany === undefined || this.selectedCompany === null)) {\r\n                    this.selectedCompany = this.companies[0];\r\n                    this.setLastUsedCompany(this.selectedCompany.key, this.selectedCompany.id, this.selectedCompany);\r\n                }\r\n                else {\r\n                    this.companyDependentService.onSelectCompany({\r\n                        key: this.selectedCompany.key,\r\n                        id: this.selectedCompany.id\r\n                    });\r\n                }\r\n                this.broadcastService.emit('company', { key: 'currentCompany', value: this.selectedCompany });\r\n            }\r\n            this.companyDependentService.onCompaniesCount(this.companies ? this.companies.length : 0);\r\n            this.changeDetRef.detectChanges();\r\n        });\r\n    }\r\n    loadFavoriteEnvParameter(settingKey, envParamList) {\r\n        this.userSettings\r\n            .getCurrentUserSetting(settingKey, this.appContextService.getContext().productName)\r\n            .then((userSettings) => {\r\n            if (userSettings) {\r\n                JSON.parse(userSettings.value).forEach((envParamFav) => {\r\n                    const existingEnvParam = this[envParamList].find((envParam) => envParam.id === envParamFav.id);\r\n                    if (existingEnvParam) {\r\n                        this[envParamList].find((envParam) => envParam.id === envParamFav.id).favoriteDate =\r\n                            new Date(envParamFav.favoriteDate);\r\n                        this[envParamList] = [...this[envParamList]];\r\n                    }\r\n                });\r\n            }\r\n        });\r\n    }\r\n    getCompany(fromCompanyRefresh = false) {\r\n        this.userSettings\r\n            .getCurrentUserSetting(this.appContextService.organizationKey.concat('_').concat('lastUsedCompany'), this.appContextService.getContext().productName)\r\n            .then((data) => {\r\n            if (this.companiesSourceUri && this.companiesSourceUri.length > 0) {\r\n                this.populateUserTopCompanies(data, fromCompanyRefresh);\r\n            }\r\n        });\r\n    }\r\n    setCurrentCompany(company) {\r\n        this.companies.map((o) => {\r\n            o.isSelected = false;\r\n        });\r\n        const currentCompanyIndex = this.companies.findIndex((o) => o.key.toLocaleLowerCase() === company.key.toLocaleLowerCase());\r\n        const currentCompany = this.companies[currentCompanyIndex];\r\n        currentCompany.isSelected = true;\r\n        this.selectedCompany = currentCompany;\r\n        this.changeDetRef.detectChanges();\r\n    }\r\n    replaceStandardRequestParameters(uri, searchTerm) {\r\n        // pageSize={{PageSize}}&pageIndex={{PageIndex}}&searchTerm={{SearchTerm}}\r\n        uri = uri.replace('{{PageSize}}', '1000');\r\n        uri = uri.replace('{{PageIndex}}', '1');\r\n        if (searchTerm !== undefined) {\r\n            uri = uri.replace('{{SearchTerm}}', searchTerm);\r\n        }\r\n        else {\r\n            uri = uri.replace('{{SearchTerm}}', '');\r\n        }\r\n        return uri;\r\n    }\r\n    getEndpointResponse(configUrl) {\r\n        const interceptorsOptions = new FrameworkInterceptors();\r\n        interceptorsOptions.skipErrors = true;\r\n        return this.http.get(configUrl, {\r\n            observe: 'response',\r\n            context: new HttpContext().set(FrameworkInterceptorsOptions, interceptorsOptions)\r\n        });\r\n    }\r\n    createNewSubscriptionMenuEntry(subscriptionInfo) {\r\n        const accountKeyInfo = {};\r\n        accountKeyInfo.accountKey = subscriptionInfo.accountKey;\r\n        return new EnvParamItem({\r\n            envParamName: 'subscription',\r\n            id: subscriptionInfo.subscriptionId,\r\n            key: subscriptionInfo.subscriptionAlias,\r\n            name: subscriptionInfo.subscriptionDescription,\r\n            description: subscriptionInfo.subscriptionAlias,\r\n            logo: null,\r\n            favoriteDate: this.defaultDate,\r\n            companies: subscriptionInfo.companies,\r\n            contextInfo: accountKeyInfo\r\n        });\r\n    }\r\n}\r\nSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectorComponent, deps: [{ token: i1$1.CompanyDependentService }, { token: i1$1.BroadcastService }, { token: i4.I18nService }, { token: i2.MessagesService }, { token: i1.HttpClient }, { token: i0.ChangeDetectorRef }, { token: i1$1.UserSettingsService }, { token: i1$1.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SelectorComponent, selector: \"pri-selector\", inputs: { showEnvSelector: \"showEnvSelector\", subscriptionsSourceUri: \"subscriptionsSourceUri\", companiesSourceUri: \"companiesSourceUri\" }, outputs: { envParamChanged: \"envParamChanged\" }, host: { listeners: { \"document:click\": \"clickout($event)\" } }, viewQueries: [{ propertyName: \"envSelectorElement\", first: true, predicate: [\"envSelectorElement\"], descendants: true }], ngImport: i0, template: \"<div #envSelectorElement *ngIf=\\\"subscriptionsSourceUri?.length\\\" class=\\\"env-selector-container\\\" x-ms-format-detection=\\\"none\\\">\\r\\n    <div *ngIf=\\\"showEnvSelector\\\" class=\\\"env-selector\\\" (click)=\\\"toggleEnvSelectorOptions()\\\"\\r\\n        data-testid=\\\"company-subscription-selector\\\">\\r\\n        <div class=\\\"icon-holder\\\">\\r\\n            <i *ngIf=\\\"!selectedCompany?.logo\\\" class=\\\"ti-ux-company-logo\\\"></i>\\r\\n            <img *ngIf=\\\"selectedCompany?.logo\\\"  class=\\\"company-image\\\" \\r\\n                [attr.src]=\\\"(selectedCompany.logo | imageSrc:true | async)\\\" [attr.alt]=\\\"\\\"/>\\r\\n        </div>\\r\\n        <div class=\\\"env-selector-item list-item\\\" data-testid=\\\"company-subscription-selector-info\\\">\\r\\n            <div class=\\\"line\\\">\\r\\n                <div class=\\\"first-line upper-case\\\"\\r\\n                    matTooltip=\\\"{{selectedCompany ? selectedCompany.name : '' }}\\\"\\r\\n                    [matTooltipPosition]=\\\"titleToolTipConfiguration.position\\\"\\r\\n                    [matTooltipShowDelay]=\\\"titleToolTipConfiguration.showDelay\\\"\\r\\n                    data-testid=\\\"company-subscription-selector-info-company\\\">{{selectedCompany ? selectedCompany.name : selectedSubscription?.name}}</div>\\r\\n            </div>\\r\\n            <div *ngIf=\\\"selectedCompany\\\" class=\\\"line flex-elements\\\">\\r\\n                <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                <div class=\\\"second-line upper-case\\\" matTooltip=\\\"{{selectedSubscription && selectedCompany ?\\r\\n                    (subscriptions.length <= 1 ? selectedCompany.description : selectedCompany.description + ' | ' + selectedSubscription.name ) :\\r\\n                    ''}}\\\"\\r\\n                    [matTooltipPosition]=\\\"titleToolTipConfiguration.position\\\"\\r\\n                    [matTooltipShowDelay]=\\\"titleToolTipConfiguration.showDelay\\\"\\r\\n                    data-testid=\\\"company-subscription-selector-info-subscription\\\">{{selectedSubscription && selectedCompany ?\\r\\n                        (subscriptions.length <= 1 ? selectedCompany.description : selectedCompany.description + ' | ' + selectedSubscription.name ) :\\r\\n                        ''}}</div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div *ngIf=\\\"hasEnvironmentOptions\\\" class=\\\"selector\\\">\\r\\n            <i [@rotate]=\\\"!showEnvSelectorOptions ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Subscriptions List -->\\r\\n    <div *ngIf=\\\"showEnvSelectorOptions\\\" class=\\\"sidebar-menu env-options\\\" [@enterLeaveTopAnimation]>\\r\\n        <mat-tab-group [selectedIndex]=\\\"1\\\" mat-stretch-tabs data-testid=\\\"company-subscription-selector-menu\\\">\\r\\n            <mat-tab *ngIf=\\\"subscriptions?.length > 1\\\">\\r\\n                <ng-template mat-tab-label>\\r\\n                    <span class=\\\"tab-text\\\" data-testid=\\\"subscription-selector\\\">{{'shell.components.RES_Shell_Menu_SubscriptionsLabel' | priI18n}}</span>\\r\\n                </ng-template>\\r\\n                <div class=\\\"search\\\">\\r\\n                    <!-- The search input -->\\r\\n                    <input type=\\\"text\\\" #subsSearchTerm\\r\\n                        [placeholder]=\\\"getSearchInputPlaceholder()\\\"\\r\\n                        [(ngModel)]=\\\"subscriptionsSearchTerm\\\" data-testid=\\\"subscription-selector-search\\\" />\\r\\n                </div>\\r\\n                <div class=\\\"list-scroll\\\">\\r\\n                    <!-- The Subscriptions List -->\\r\\n                    <ul data-testid=\\\"subscriptions-items-list\\\" class=\\\"items-list\\\">\\r\\n                        <li class=\\\"subscription-item\\\"\\r\\n                            *ngFor=\\\"let item of subscriptions | filter : subscriptionsSearchTerm : [EnvParamItemProperties.Name, EnvParamItemProperties.Companies, EnvParamItemProperties.Description] | sortByProperty : EnvParamItemProperties.FavoriteDate; let i = index;\\\"\\r\\n                            id=\\\"subscription-{{item.key}}\\\"\\r\\n                            [class.active]=\\\"item.isSelected\\\"\\r\\n                            [style.top]=\\\"getEnvironmentItemTopPosition(i, item)\\\"\\r\\n                            attr.data-testid=\\\"subscription-{{item.key}}\\\">\\r\\n                            <a class=\\\"sidebar-link\\\" (click)=\\\"selectEnvironmentParameter(item)\\\">\\r\\n\\r\\n                                <i *ngIf=\\\"subscriptions.length > 1\\\"\\r\\n                                    [ngClass]=\\\"{ 'ti-ux-pin-fill' : item.favoriteDate.getTime() !== defaultDate.getTime(), 'ti-ux-pin-outline' : item.favoriteDate.getTime() === defaultDate.getTime(), \\r\\n                                    'cursor-no-drop' : favoriteSubscriptions?.length === 5 && !isFavoriteItem(item, 'favoriteSubscriptions' )}\\\"\\r\\n                                    #tooltip=\\\"matTooltip\\\" (click)=\\\"tooltip.toggle()\\\"\\r\\n                                    [matTooltip]=\\\"'shell.components.RES_Shell_Menu_FavoriteSubscriptionsTooltip' | priI18n\\\"\\r\\n                                    [matTooltipDisabled]=\\\"favoriteSubscriptions?.length < 5 || isFavoriteItem(item, 'favoriteSubscriptions' )\\\"\\r\\n                                    (click)=\\\"favoriteEnvironmentParameter(item, $event, subscriptionSettingKey, 'subscriptions', 'favoriteSubscriptions')\\\"></i>\\r\\n\\r\\n                                <div class=\\\"list-item\\\">\\r\\n                                    <div class=\\\"line\\\">\\r\\n                                        <div class=\\\"first-line\\\" priTooltipHover>{{item.name}}</div>\\r\\n                                    </div>\\r\\n                                    <div class=\\\"line flex-elements\\\">\\r\\n                                        <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                                        <div class=\\\"second-line\\\" priTooltipHover>\\r\\n                                            {{item?.companies?.length ? \\r\\n                                                (item.companies.length + ' ' + ('shell.components.RES_Shell_Menu_CompaniesLabel' | priI18n)) \\r\\n                                                : item.description}}</div>\\r\\n                                    </div>\\r\\n                                </div>\\r\\n                            </a>\\r\\n                        </li>\\r\\n                    </ul>\\r\\n                </div>\\r\\n            </mat-tab>\\r\\n            <mat-tab *ngIf=\\\"companies?.length > 1\\\">\\r\\n                <ng-template mat-tab-label>\\r\\n                    <span class=\\\"tab-text\\\" data-testid=\\\"company-selector\\\">{{'shell.components.RES_Shell_Menu_CompaniesLabel' | priI18n}}</span>\\r\\n                </ng-template>\\r\\n                <div class=\\\"search\\\">\\r\\n                    <!-- The search input -->\\r\\n                    <input type=\\\"text\\\" #compSearchTerm\\r\\n                        placeholder=\\\"{{'shell.components.RES_Shell_Menu_SearchCompanyPlaceholder' | priI18n}}\\\"\\r\\n                        [(ngModel)]=\\\"companiesSearchTerm\\\" data-testid=\\\"company-selector-search\\\" />\\r\\n                </div>\\r\\n                <div class=\\\"list-scroll\\\">\\r\\n                    <!-- The Companies List -->\\r\\n                    <ul data-testid=\\\"company-items-list\\\" class=\\\"items-list scrollable\\\">\\r\\n                        <li class=\\\"company-item\\\" [class.active]=\\\"item.isSelected\\\"\\r\\n                            id=\\\"company-{{item.key}}\\\"\\r\\n                            *ngFor=\\\"let item of companies | filter : companiesSearchTerm : [EnvParamItemProperties.Name, EnvParamItemProperties.Key, EnvParamItemProperties.Description] | sortByProperty : EnvParamItemProperties.FavoriteDate; let i = index;\\\"\\r\\n                            [class.active]=\\\"item.isSelected\\\"\\r\\n                            [style.top]=\\\"getEnvironmentItemTopPosition(i, item)\\\"\\r\\n                            attr.data-testid=\\\"company-{{item.key}}\\\">\\r\\n                            <a class=\\\"sidebar-link\\\" (click)=\\\"selectEnvironmentParameter(item)\\\">\\r\\n\\r\\n                                <i *ngIf=\\\"companies.length > 1\\\" \\r\\n                                    [ngClass]=\\\"{ 'ti-ux-pin-fill' : item.favoriteDate.getTime() !== defaultDate.getTime(), 'ti-ux-pin-outline' : item.favoriteDate.getTime() === defaultDate.getTime(),\\r\\n                                    'cursor-no-drop' : favoriteCompanies?.length === 5 && !isFavoriteItem(item, 'favoriteCompanies' )}\\\"\\r\\n                                    #tooltip=\\\"matTooltip\\\" (click)=\\\"tooltip.toggle()\\\"\\r\\n                                    [matTooltip]=\\\"'shell.components.RES_Shell_Menu_FavoriteCompaniesTooltip' | priI18n\\\"\\r\\n                                    [matTooltipDisabled]=\\\"favoriteCompanies?.length < 5 || isFavoriteItem(item, 'favoriteCompanies')\\\"\\r\\n                                    (click)=\\\"favoriteEnvironmentParameter(item, $event, companySettingKey, 'companies', 'favoriteCompanies')\\\"></i>\\r\\n\\r\\n                                <div class=\\\"list-item\\\">\\r\\n                                    <div class=\\\"line\\\">\\r\\n                                        <div class=\\\"first-line\\\" priTooltipHover>{{item.name}}</div>\\r\\n                                    </div>\\r\\n                                    <div class=\\\"line flex-elements\\\">\\r\\n                                        <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                                        <div class=\\\"second-line\\\" priTooltipHover>{{item.description}}</div>\\r\\n                                    </div>\\r\\n                                </div>\\r\\n                            </a>\\r\\n                        </li>\\r\\n                    </ul>\\r\\n                </div>\\r\\n            </mat-tab>\\r\\n        </mat-tab-group>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-selector .env-selector-container{display:flex;width:100%;overflow:hidden}pri-selector .list-item{overflow:hidden}pri-selector .list-item .flex-elements{display:flex}pri-selector .list-item .line{overflow:hidden;white-space:nowrap;line-height:1}pri-selector .list-item .line .first-line{flex-shrink:0;flex-grow:1;color:var(--grey-8);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:17px;cursor:unset}pri-selector .list-item .line .second-line{font-size:.6875rem;flex-shrink:0;font-weight:500;color:var(--grey-7);letter-spacing:.05rem;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;margin-left:2px;width:calc(100% - 14px);cursor:unset}pri-selector .list-item .line .upper-case{text-transform:uppercase}pri-selector .list-item .line .ti-ux-step-down{color:var(--grey-7);margin-top:2px;margin-left:2px;font-size:10px}pri-selector .env-selector{margin:12px 8px;width:100%;height:60px;background-color:var(--grey-1);color:var(--grey-8);border-radius:6px;box-shadow:0 0 .7142857143rem var(--shadow-5);transition:all .2s ease;display:flex;align-items:center;overflow:hidden;cursor:pointer}pri-selector .env-selector .icon-holder{float:left;font-size:32px;text-align:center;width:58px;color:var(--grey-7);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:.2s all ease}pri-selector .env-selector .icon-holder .company-image{width:32px;height:32px;border-radius:50%;object-fit:contain}pri-selector .env-selector .icon-holder .ti-ux-company-logo{color:var(--grey-6)}pri-selector .env-selector .selector{flex-shrink:0;display:flex;margin-right:10px}pri-selector .env-selector .selector .ti-ux-chevron-down{font-size:12px;font-weight:700}pri-selector .env-selector .env-selector-item{transition:all .2s ease;opacity:1;padding-right:10px;display:flex;flex-direction:column;width:100%;overflow:hidden}pri-selector .env-selector .env-selector-item .first-line{font-size:.875rem}pri-selector .env-selector:hover{box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3)}pri-selector .env-options{position:absolute;margin:12px 8px;z-index:1200;height:auto;max-height:500px;overflow:hidden;top:60px;left:0;right:0;border:solid 1px var(--grey-4);box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);color:var(--grey-8);background-color:var(--grey-1)}pri-selector .env-options ul{height:auto}pri-selector .env-options li>a{display:block;padding:10px}pri-selector .env-options li>a:hover,pri-selector .env-options li>a:focus{background-color:var(--grey-4)}pri-selector .env-options .search{padding:4px;background:var(--grey-1);border-bottom:1px solid var(--grey-4)}pri-selector .env-options .search input{background-color:transparent;border:0px solid;height:20px;width:100%;color:var(--grey-7)}pri-selector .env-options .search input:focus{outline:none}pri-selector .env-options .mat-tab-body-content{overflow-x:hidden}pri-selector .env-options .mat-tab-body-content .list-scroll{overflow-x:hidden;overflow-y:auto;height:380px}pri-selector .env-options .items-list{margin:0;list-style:none;padding-inline-start:0px;padding-left:0;position:relative;width:100%}pri-selector .env-options .items-list .sidebar-link{border-bottom:1px solid var(--grey-4);display:flex;position:relative;cursor:pointer;color:var(--grey-8)}pri-selector .env-options .items-list .sidebar-link .ti-ux-pin-outline,pri-selector .env-options .items-list .sidebar-link .ti-ux-pin-fill{margin-right:5px;padding-top:2px;padding-left:5px;padding-right:5px;cursor:pointer}pri-selector .env-options .items-list .sidebar-link .cursor-no-drop{cursor:no-drop}pri-selector .env-options .items-list .subscription-item,pri-selector .env-options .items-list .company-item{width:100%;height:55px;position:absolute;transition:top .7s}pri-selector .env-options .items-list .active{background-color:var(--grey-3)}pri-selector .env-options .items-list .active a{cursor:default}pri-selector .env-options .mat-tab-label-active .tab-text{color:var(--theme-100);font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}pri-selector .env-options .tab-text{color:var(--grey-7);font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}pri-selector .mat-tab-header-pagination{display:none!important}pri-selector .mat-tab-group.mat-primary .mat-ink-bar,pri-selector .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:var(--theme-100);height:1px}pri-selector .mat-tab-label-container,pri-selector .mat-tab-list,pri-selector .mat-tab-labels{width:100%}pri-selector .mat-tab-header .mat-tab-label{min-width:50%!important;padding:0 10px!important;color:var(--grey-7);font-size:17px;height:37px}pri-selector .mat-tab-label-content{overflow:hidden}@media only screen and (max-width: 767px){pri-selector .env-options{width:calc(100% - 26px)}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i4$1.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i4$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i4$1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"directive\", type: i2.TooltipHoverDirective, selector: \"[priTooltipHover]\", inputs: [\"priTooltipHover\"] }, { kind: \"directive\", type: i6.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }, { kind: \"component\", type: i8.MatTabGroup, selector: \"mat-tab-group\", inputs: [\"color\", \"disableRipple\"], exportAs: [\"matTabGroup\"] }, { kind: \"directive\", type: i8.MatTabLabel, selector: \"[mat-tab-label], [matTabLabel]\" }, { kind: \"component\", type: i8.MatTab, selector: \"mat-tab\", inputs: [\"disabled\", \"label\", \"aria-label\", \"aria-labelledby\", \"labelClass\", \"bodyClass\"], exportAs: [\"matTab\"] }, { kind: \"pipe\", type: i3.AsyncPipe, name: \"async\" }, { kind: \"pipe\", type: i2.ImageSourcePipe, name: \"imageSrc\" }, { kind: \"pipe\", type: i4.PriI18nPipe, name: \"priI18n\" }, { kind: \"pipe\", type: FilterPipe, name: \"filter\" }, { kind: \"pipe\", type: SortByPropertyPipe, name: \"sortByProperty\" }], animations: [\r\n        trigger('enterLeaveTopAnimation', [\r\n            transition(':enter', [\r\n                style({ opacity: 0, 'margin-top': '-15px' }),\r\n                animate('100ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n            ]),\r\n            transition(':leave', [\r\n                style({ opacity: 1, 'margin-top': '0px' }),\r\n                animate('100ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n            ])\r\n        ]),\r\n        trigger('rotate', [\r\n            state('initial', style({\r\n                transform: 'rotate(0deg)'\r\n            })),\r\n            state('rotated', style({\r\n                transform: 'rotate(180deg)'\r\n            })),\r\n            transition('initial => rotated', [animate('0.2s')]),\r\n            transition('rotated => initial', [animate('0.2s')])\r\n        ])\r\n    ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SelectorComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-selector', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [\r\n                        trigger('enterLeaveTopAnimation', [\r\n                            transition(':enter', [\r\n                                style({ opacity: 0, 'margin-top': '-15px' }),\r\n                                animate('100ms', style({ opacity: 1, 'margin-top': '0px' }))\r\n                            ]),\r\n                            transition(':leave', [\r\n                                style({ opacity: 1, 'margin-top': '0px' }),\r\n                                animate('100ms', style({ opacity: 0, 'margin-top': '-15px' }))\r\n                            ])\r\n                        ]),\r\n                        trigger('rotate', [\r\n                            state('initial', style({\r\n                                transform: 'rotate(0deg)'\r\n                            })),\r\n                            state('rotated', style({\r\n                                transform: 'rotate(180deg)'\r\n                            })),\r\n                            transition('initial => rotated', [animate('0.2s')]),\r\n                            transition('rotated => initial', [animate('0.2s')])\r\n                        ])\r\n                    ], template: \"<div #envSelectorElement *ngIf=\\\"subscriptionsSourceUri?.length\\\" class=\\\"env-selector-container\\\" x-ms-format-detection=\\\"none\\\">\\r\\n    <div *ngIf=\\\"showEnvSelector\\\" class=\\\"env-selector\\\" (click)=\\\"toggleEnvSelectorOptions()\\\"\\r\\n        data-testid=\\\"company-subscription-selector\\\">\\r\\n        <div class=\\\"icon-holder\\\">\\r\\n            <i *ngIf=\\\"!selectedCompany?.logo\\\" class=\\\"ti-ux-company-logo\\\"></i>\\r\\n            <img *ngIf=\\\"selectedCompany?.logo\\\"  class=\\\"company-image\\\" \\r\\n                [attr.src]=\\\"(selectedCompany.logo | imageSrc:true | async)\\\" [attr.alt]=\\\"\\\"/>\\r\\n        </div>\\r\\n        <div class=\\\"env-selector-item list-item\\\" data-testid=\\\"company-subscription-selector-info\\\">\\r\\n            <div class=\\\"line\\\">\\r\\n                <div class=\\\"first-line upper-case\\\"\\r\\n                    matTooltip=\\\"{{selectedCompany ? selectedCompany.name : '' }}\\\"\\r\\n                    [matTooltipPosition]=\\\"titleToolTipConfiguration.position\\\"\\r\\n                    [matTooltipShowDelay]=\\\"titleToolTipConfiguration.showDelay\\\"\\r\\n                    data-testid=\\\"company-subscription-selector-info-company\\\">{{selectedCompany ? selectedCompany.name : selectedSubscription?.name}}</div>\\r\\n            </div>\\r\\n            <div *ngIf=\\\"selectedCompany\\\" class=\\\"line flex-elements\\\">\\r\\n                <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                <div class=\\\"second-line upper-case\\\" matTooltip=\\\"{{selectedSubscription && selectedCompany ?\\r\\n                    (subscriptions.length <= 1 ? selectedCompany.description : selectedCompany.description + ' | ' + selectedSubscription.name ) :\\r\\n                    ''}}\\\"\\r\\n                    [matTooltipPosition]=\\\"titleToolTipConfiguration.position\\\"\\r\\n                    [matTooltipShowDelay]=\\\"titleToolTipConfiguration.showDelay\\\"\\r\\n                    data-testid=\\\"company-subscription-selector-info-subscription\\\">{{selectedSubscription && selectedCompany ?\\r\\n                        (subscriptions.length <= 1 ? selectedCompany.description : selectedCompany.description + ' | ' + selectedSubscription.name ) :\\r\\n                        ''}}</div>\\r\\n            </div>\\r\\n        </div>\\r\\n        <div *ngIf=\\\"hasEnvironmentOptions\\\" class=\\\"selector\\\">\\r\\n            <i [@rotate]=\\\"!showEnvSelectorOptions ? 'initial' : 'rotated'\\\" class=\\\"ti-ux-chevron-down\\\"></i>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Subscriptions List -->\\r\\n    <div *ngIf=\\\"showEnvSelectorOptions\\\" class=\\\"sidebar-menu env-options\\\" [@enterLeaveTopAnimation]>\\r\\n        <mat-tab-group [selectedIndex]=\\\"1\\\" mat-stretch-tabs data-testid=\\\"company-subscription-selector-menu\\\">\\r\\n            <mat-tab *ngIf=\\\"subscriptions?.length > 1\\\">\\r\\n                <ng-template mat-tab-label>\\r\\n                    <span class=\\\"tab-text\\\" data-testid=\\\"subscription-selector\\\">{{'shell.components.RES_Shell_Menu_SubscriptionsLabel' | priI18n}}</span>\\r\\n                </ng-template>\\r\\n                <div class=\\\"search\\\">\\r\\n                    <!-- The search input -->\\r\\n                    <input type=\\\"text\\\" #subsSearchTerm\\r\\n                        [placeholder]=\\\"getSearchInputPlaceholder()\\\"\\r\\n                        [(ngModel)]=\\\"subscriptionsSearchTerm\\\" data-testid=\\\"subscription-selector-search\\\" />\\r\\n                </div>\\r\\n                <div class=\\\"list-scroll\\\">\\r\\n                    <!-- The Subscriptions List -->\\r\\n                    <ul data-testid=\\\"subscriptions-items-list\\\" class=\\\"items-list\\\">\\r\\n                        <li class=\\\"subscription-item\\\"\\r\\n                            *ngFor=\\\"let item of subscriptions | filter : subscriptionsSearchTerm : [EnvParamItemProperties.Name, EnvParamItemProperties.Companies, EnvParamItemProperties.Description] | sortByProperty : EnvParamItemProperties.FavoriteDate; let i = index;\\\"\\r\\n                            id=\\\"subscription-{{item.key}}\\\"\\r\\n                            [class.active]=\\\"item.isSelected\\\"\\r\\n                            [style.top]=\\\"getEnvironmentItemTopPosition(i, item)\\\"\\r\\n                            attr.data-testid=\\\"subscription-{{item.key}}\\\">\\r\\n                            <a class=\\\"sidebar-link\\\" (click)=\\\"selectEnvironmentParameter(item)\\\">\\r\\n\\r\\n                                <i *ngIf=\\\"subscriptions.length > 1\\\"\\r\\n                                    [ngClass]=\\\"{ 'ti-ux-pin-fill' : item.favoriteDate.getTime() !== defaultDate.getTime(), 'ti-ux-pin-outline' : item.favoriteDate.getTime() === defaultDate.getTime(), \\r\\n                                    'cursor-no-drop' : favoriteSubscriptions?.length === 5 && !isFavoriteItem(item, 'favoriteSubscriptions' )}\\\"\\r\\n                                    #tooltip=\\\"matTooltip\\\" (click)=\\\"tooltip.toggle()\\\"\\r\\n                                    [matTooltip]=\\\"'shell.components.RES_Shell_Menu_FavoriteSubscriptionsTooltip' | priI18n\\\"\\r\\n                                    [matTooltipDisabled]=\\\"favoriteSubscriptions?.length < 5 || isFavoriteItem(item, 'favoriteSubscriptions' )\\\"\\r\\n                                    (click)=\\\"favoriteEnvironmentParameter(item, $event, subscriptionSettingKey, 'subscriptions', 'favoriteSubscriptions')\\\"></i>\\r\\n\\r\\n                                <div class=\\\"list-item\\\">\\r\\n                                    <div class=\\\"line\\\">\\r\\n                                        <div class=\\\"first-line\\\" priTooltipHover>{{item.name}}</div>\\r\\n                                    </div>\\r\\n                                    <div class=\\\"line flex-elements\\\">\\r\\n                                        <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                                        <div class=\\\"second-line\\\" priTooltipHover>\\r\\n                                            {{item?.companies?.length ? \\r\\n                                                (item.companies.length + ' ' + ('shell.components.RES_Shell_Menu_CompaniesLabel' | priI18n)) \\r\\n                                                : item.description}}</div>\\r\\n                                    </div>\\r\\n                                </div>\\r\\n                            </a>\\r\\n                        </li>\\r\\n                    </ul>\\r\\n                </div>\\r\\n            </mat-tab>\\r\\n            <mat-tab *ngIf=\\\"companies?.length > 1\\\">\\r\\n                <ng-template mat-tab-label>\\r\\n                    <span class=\\\"tab-text\\\" data-testid=\\\"company-selector\\\">{{'shell.components.RES_Shell_Menu_CompaniesLabel' | priI18n}}</span>\\r\\n                </ng-template>\\r\\n                <div class=\\\"search\\\">\\r\\n                    <!-- The search input -->\\r\\n                    <input type=\\\"text\\\" #compSearchTerm\\r\\n                        placeholder=\\\"{{'shell.components.RES_Shell_Menu_SearchCompanyPlaceholder' | priI18n}}\\\"\\r\\n                        [(ngModel)]=\\\"companiesSearchTerm\\\" data-testid=\\\"company-selector-search\\\" />\\r\\n                </div>\\r\\n                <div class=\\\"list-scroll\\\">\\r\\n                    <!-- The Companies List -->\\r\\n                    <ul data-testid=\\\"company-items-list\\\" class=\\\"items-list scrollable\\\">\\r\\n                        <li class=\\\"company-item\\\" [class.active]=\\\"item.isSelected\\\"\\r\\n                            id=\\\"company-{{item.key}}\\\"\\r\\n                            *ngFor=\\\"let item of companies | filter : companiesSearchTerm : [EnvParamItemProperties.Name, EnvParamItemProperties.Key, EnvParamItemProperties.Description] | sortByProperty : EnvParamItemProperties.FavoriteDate; let i = index;\\\"\\r\\n                            [class.active]=\\\"item.isSelected\\\"\\r\\n                            [style.top]=\\\"getEnvironmentItemTopPosition(i, item)\\\"\\r\\n                            attr.data-testid=\\\"company-{{item.key}}\\\">\\r\\n                            <a class=\\\"sidebar-link\\\" (click)=\\\"selectEnvironmentParameter(item)\\\">\\r\\n\\r\\n                                <i *ngIf=\\\"companies.length > 1\\\" \\r\\n                                    [ngClass]=\\\"{ 'ti-ux-pin-fill' : item.favoriteDate.getTime() !== defaultDate.getTime(), 'ti-ux-pin-outline' : item.favoriteDate.getTime() === defaultDate.getTime(),\\r\\n                                    'cursor-no-drop' : favoriteCompanies?.length === 5 && !isFavoriteItem(item, 'favoriteCompanies' )}\\\"\\r\\n                                    #tooltip=\\\"matTooltip\\\" (click)=\\\"tooltip.toggle()\\\"\\r\\n                                    [matTooltip]=\\\"'shell.components.RES_Shell_Menu_FavoriteCompaniesTooltip' | priI18n\\\"\\r\\n                                    [matTooltipDisabled]=\\\"favoriteCompanies?.length < 5 || isFavoriteItem(item, 'favoriteCompanies')\\\"\\r\\n                                    (click)=\\\"favoriteEnvironmentParameter(item, $event, companySettingKey, 'companies', 'favoriteCompanies')\\\"></i>\\r\\n\\r\\n                                <div class=\\\"list-item\\\">\\r\\n                                    <div class=\\\"line\\\">\\r\\n                                        <div class=\\\"first-line\\\" priTooltipHover>{{item.name}}</div>\\r\\n                                    </div>\\r\\n                                    <div class=\\\"line flex-elements\\\">\\r\\n                                        <i class=\\\"ti-ux-step-down\\\"></i>\\r\\n                                        <div class=\\\"second-line\\\" priTooltipHover>{{item.description}}</div>\\r\\n                                    </div>\\r\\n                                </div>\\r\\n                            </a>\\r\\n                        </li>\\r\\n                    </ul>\\r\\n                </div>\\r\\n            </mat-tab>\\r\\n        </mat-tab-group>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-selector .env-selector-container{display:flex;width:100%;overflow:hidden}pri-selector .list-item{overflow:hidden}pri-selector .list-item .flex-elements{display:flex}pri-selector .list-item .line{overflow:hidden;white-space:nowrap;line-height:1}pri-selector .list-item .line .first-line{flex-shrink:0;flex-grow:1;color:var(--grey-8);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:17px;cursor:unset}pri-selector .list-item .line .second-line{font-size:.6875rem;flex-shrink:0;font-weight:500;color:var(--grey-7);letter-spacing:.05rem;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;margin-left:2px;width:calc(100% - 14px);cursor:unset}pri-selector .list-item .line .upper-case{text-transform:uppercase}pri-selector .list-item .line .ti-ux-step-down{color:var(--grey-7);margin-top:2px;margin-left:2px;font-size:10px}pri-selector .env-selector{margin:12px 8px;width:100%;height:60px;background-color:var(--grey-1);color:var(--grey-8);border-radius:6px;box-shadow:0 0 .7142857143rem var(--shadow-5);transition:all .2s ease;display:flex;align-items:center;overflow:hidden;cursor:pointer}pri-selector .env-selector .icon-holder{float:left;font-size:32px;text-align:center;width:58px;color:var(--grey-7);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:.2s all ease}pri-selector .env-selector .icon-holder .company-image{width:32px;height:32px;border-radius:50%;object-fit:contain}pri-selector .env-selector .icon-holder .ti-ux-company-logo{color:var(--grey-6)}pri-selector .env-selector .selector{flex-shrink:0;display:flex;margin-right:10px}pri-selector .env-selector .selector .ti-ux-chevron-down{font-size:12px;font-weight:700}pri-selector .env-selector .env-selector-item{transition:all .2s ease;opacity:1;padding-right:10px;display:flex;flex-direction:column;width:100%;overflow:hidden}pri-selector .env-selector .env-selector-item .first-line{font-size:.875rem}pri-selector .env-selector:hover{box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3)}pri-selector .env-options{position:absolute;margin:12px 8px;z-index:1200;height:auto;max-height:500px;overflow:hidden;top:60px;left:0;right:0;border:solid 1px var(--grey-4);box-shadow:0 .5714285714rem 1.4285714286rem var(--shadow-3);color:var(--grey-8);background-color:var(--grey-1)}pri-selector .env-options ul{height:auto}pri-selector .env-options li>a{display:block;padding:10px}pri-selector .env-options li>a:hover,pri-selector .env-options li>a:focus{background-color:var(--grey-4)}pri-selector .env-options .search{padding:4px;background:var(--grey-1);border-bottom:1px solid var(--grey-4)}pri-selector .env-options .search input{background-color:transparent;border:0px solid;height:20px;width:100%;color:var(--grey-7)}pri-selector .env-options .search input:focus{outline:none}pri-selector .env-options .mat-tab-body-content{overflow-x:hidden}pri-selector .env-options .mat-tab-body-content .list-scroll{overflow-x:hidden;overflow-y:auto;height:380px}pri-selector .env-options .items-list{margin:0;list-style:none;padding-inline-start:0px;padding-left:0;position:relative;width:100%}pri-selector .env-options .items-list .sidebar-link{border-bottom:1px solid var(--grey-4);display:flex;position:relative;cursor:pointer;color:var(--grey-8)}pri-selector .env-options .items-list .sidebar-link .ti-ux-pin-outline,pri-selector .env-options .items-list .sidebar-link .ti-ux-pin-fill{margin-right:5px;padding-top:2px;padding-left:5px;padding-right:5px;cursor:pointer}pri-selector .env-options .items-list .sidebar-link .cursor-no-drop{cursor:no-drop}pri-selector .env-options .items-list .subscription-item,pri-selector .env-options .items-list .company-item{width:100%;height:55px;position:absolute;transition:top .7s}pri-selector .env-options .items-list .active{background-color:var(--grey-3)}pri-selector .env-options .items-list .active a{cursor:default}pri-selector .env-options .mat-tab-label-active .tab-text{color:var(--theme-100);font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}pri-selector .env-options .tab-text{color:var(--grey-7);font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}pri-selector .mat-tab-header-pagination{display:none!important}pri-selector .mat-tab-group.mat-primary .mat-ink-bar,pri-selector .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:var(--theme-100);height:1px}pri-selector .mat-tab-label-container,pri-selector .mat-tab-list,pri-selector .mat-tab-labels{width:100%}pri-selector .mat-tab-header .mat-tab-label{min-width:50%!important;padding:0 10px!important;color:var(--grey-7);font-size:17px;height:37px}pri-selector .mat-tab-label-content{overflow:hidden}@media only screen and (max-width: 767px){pri-selector .env-options{width:calc(100% - 26px)}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.CompanyDependentService }, { type: i1$1.BroadcastService }, { type: i4.I18nService }, { type: i2.MessagesService }, { type: i1.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i1$1.UserSettingsService }, { type: i1$1.AppContextService }]; }, propDecorators: { envSelectorElement: [{\r\n                type: ViewChild,\r\n                args: ['envSelectorElement', { static: false }]\r\n            }], showEnvSelector: [{\r\n                type: Input\r\n            }], subscriptionsSourceUri: [{\r\n                type: Input\r\n            }], companiesSourceUri: [{\r\n                type: Input\r\n            }], envParamChanged: [{\r\n                type: Output\r\n            }], clickout: [{\r\n                type: HostListener,\r\n                args: ['document:click', ['$event']]\r\n            }] } });\n\nclass MenuComponent {\r\n    constructor(menuService, router, productInitialization, routeHelperService, telemetryService, amsService, environmentSettings, broadcastService, settingsService, changeDetectorRef) {\r\n        this.menuService = menuService;\r\n        this.router = router;\r\n        this.productInitialization = productInitialization;\r\n        this.routeHelperService = routeHelperService;\r\n        this.telemetryService = telemetryService;\r\n        this.amsService = amsService;\r\n        this.environmentSettings = environmentSettings;\r\n        this.broadcastService = broadcastService;\r\n        this.settingsService = settingsService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.hoverState = new EventEmitter();\r\n        this.envParamChanged = new EventEmitter();\r\n        this.showEnvSelector = true;\r\n        this.showEnvSelectorOptions = false;\r\n        this.showRootMenuSelector = true;\r\n        // selectedMenuCaption: string;\r\n        this.subscriptions = [];\r\n        this.companies = [];\r\n        this.loadedWorkInProgressItems = 0;\r\n        this.menuDefinition = new MenuDefinition();\r\n    }\r\n    onEnvironmentParameterChange(event) {\r\n        this.envParamChanged.emit(event);\r\n    }\r\n    ngOnInit() {\r\n        // init mark for telemetry\r\n        this.telemetryService.mark('ClientAppMenuLoad#init');\r\n        this.settingsService.isElevationFW().then((isElevation) => {\r\n            this.hasDraftSupport = isElevation;\r\n            // Populate all Menu\r\n            this.populateMenuDefinition();\r\n            // Navigation\r\n            this.router.events.subscribe((evt) => {\r\n                // if the path is '/start' or empty, navigate to the home page\r\n                if (evt instanceof NavigationEnd && (evt.url === '/start' || evt.url === '/')) {\r\n                    this.menuService.navigateToHomePage();\r\n                }\r\n                // if has initializationUri, navigate to Initialization Popup\r\n                else if (this.productInitialization.initializationUri &&\r\n                    evt instanceof NavigationEnd &&\r\n                    !this.compareUrls(this.productInitialization.initializationUri, evt.url)) {\r\n                    this.productInitialization.navigateToInitializationPopup();\r\n                }\r\n            });\r\n        });\r\n        this.broadcastService.subscribe('refreshMenu', () => this.populateMenuDefinition());\r\n    }\r\n    /**\r\n     * Compares two urls as follow: if the target url includes the source url, then it is return true.\r\n     *\r\n     * @param source Source url.\r\n     * @param target Target url.\r\n     * @return  Wether the target url includes the source url.\r\n     */\r\n    compareUrls(source, target) {\r\n        if (source.includes('#')) {\r\n            source = source.split('#')[1];\r\n        }\r\n        if (source[0] === '/') {\r\n            source = source.substring(1, source.length);\r\n        }\r\n        return target.includes(source);\r\n    }\r\n    populateMenuDefinition() {\r\n        this.menuService.getMenuDefinition(this.rootMenuUri).subscribe((menuDefinition) => {\r\n            this.menuDefinition = menuDefinition;\r\n            this.showRootMenuSelector = !this.menuDefinition.flatMenu || this.menuDefinition.menuItems.length > 1;\r\n            if (this.isStartPage()) {\r\n                const defaultAction = this.menuDefinition.defaultActions.length > 0 ? this.menuDefinition.defaultActions[0] : null;\r\n                this.navigateTo(defaultAction?.contextUri).then(() => {\r\n                    this.showCurrentPageMenuItem();\r\n                });\r\n            }\r\n            else {\r\n                this.showCurrentPageMenuItem();\r\n            }\r\n            // send the measure to the app insights\r\n            this.telemetryService.measure('ClientAppMenuLoad', 'ClientAppMenuLoad#init');\r\n            this.changeDetectorRef.markForCheck();\r\n        });\r\n        if (this.rootCustomMenuUri) {\r\n            this.menuService.getCustomMenu(this.rootCustomMenuUri).subscribe((menuDefinition) => { });\r\n        }\r\n    }\r\n    isStartPage() {\r\n        const url = this.routeHelperService.getUrl(this.amsService.account, this.amsService.subscription, false);\r\n        return url === '' || url === '/' || url === '/start';\r\n    }\r\n    navigateTo(uri) {\r\n        return new Promise((resolve, reject) => {\r\n            if (uri) {\r\n                this.routeHelperService\r\n                    .navigate(this.amsService.account, this.amsService.subscription, uri.toLowerCase())\r\n                    .then(() => resolve());\r\n            }\r\n            else {\r\n                resolve();\r\n            }\r\n        });\r\n    }\r\n    showCurrentPageMenuItem() {\r\n        const url = this.routeHelperService.getUrl(this.amsService.account, this.amsService.subscription, false);\r\n        const currentUrl = url.split('?')[0];\r\n        let found = false;\r\n        for (const menuItem of this.menuDefinition.menuItems) {\r\n            found = this.showCurrentPageMenuItemRecursive(currentUrl, menuItem, null);\r\n            if (found) {\r\n                this.selectedRootMenu = menuItem;\r\n                break;\r\n            }\r\n        }\r\n        if (!found && this.menuDefinition.menuItems.length > 0) {\r\n            this.selectedRootMenu = this.menuDefinition.menuItems[0];\r\n        }\r\n        this.changeDetectorRef.markForCheck();\r\n    }\r\n    showCurrentPageMenuItemRecursive(currentUrl, menuItem, parent) {\r\n        if (menuItem.menuItems.length === 0) {\r\n            const menuUrl = menuItem.uri?.toLowerCase().split('?')[0];\r\n            if (currentUrl.includes(menuUrl)) {\r\n                if (parent) {\r\n                    this.activeMenuItem = parent;\r\n                }\r\n                return true;\r\n            }\r\n        }\r\n        else {\r\n            for (const child of menuItem.menuItems) {\r\n                const found = this.showCurrentPageMenuItemRecursive(currentUrl, child, menuItem);\r\n                if (found) {\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n}\r\nMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenuComponent, deps: [{ token: MenuService }, { token: i1$2.Router }, { token: i1$1.ProductInitialization }, { token: i1$1.RouteHelperService }, { token: i1$1.TelemetryService }, { token: i1$1.AmsService }, { token: i1$1.EnvironmentSettings }, { token: i1$1.BroadcastService }, { token: i1$1.SettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\nMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: MenuComponent, selector: \"pri-menu\", inputs: { rootMenuUri: \"rootMenuUri\", rootCustomMenuUri: \"rootCustomMenuUri\", subscriptionsSourceUri: \"subscriptionsSourceUri\", companiesSourceUri: \"companiesSourceUri\", workInProgressItemsUri: \"workInProgressItemsUri\", defaultMenuCaptionPath: \"defaultMenuCaptionPath\", menuIsCollapsed: \"menuIsCollapsed\", configuration: \"configuration\" }, outputs: { hoverState: \"hoverState\", envParamChanged: \"envParamChanged\" }, ngImport: i0, template: \"<div\\r\\n\\tclass=\\\"sidebar-menu-container\\\"\\r\\n\\t[class.is-collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t[class.is-flat-menu]=\\\"menuDefinition?.flatMenu\\\"\\r\\n\\t(mouseenter)=\\\"hoverState.emit(true)\\\"\\r\\n\\t(mouseleave)=\\\"hoverState.emit(false)\\\">\\r\\n\\t<!-- Subscription/Company Selector -->\\r\\n\\t<pri-selector\\r\\n\\t\\t*ngIf=\\\"subscriptionsSourceUri !== undefined && subscriptionsSourceUri.length > 0\\\"\\r\\n\\t\\t[companiesSourceUri]=\\\"companiesSourceUri\\\"\\r\\n\\t\\t[subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n\\t\\t(envParamChanged)=\\\"onEnvironmentParameterChange($event)\\\">\\r\\n\\t</pri-selector>\\r\\n\\r\\n\\t<pri-root-menu-selector\\r\\n\\t\\t[menuDefinition]=\\\"menuDefinition\\\"\\r\\n\\t\\t(toggleRootMenu)=\\\"isRootMenuVisible = $event\\\"\\r\\n\\t\\t[(selectedRootMenu)]=\\\"selectedRootMenu\\\">\\r\\n\\t</pri-root-menu-selector>\\r\\n\\r\\n\\t<pri-sub-menu\\r\\n\\t\\t[visible]=\\\"selectedRootMenu !== null && !isRootMenuVisible\\\"\\r\\n\\t\\t[collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t[parentMenu]=\\\"selectedRootMenu\\\"\\r\\n\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t[hasDraftSupport]=\\\"hasDraftSupport\\\"\\r\\n\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t[useDefaultIcons]=\\\"menuDefinition?.useDefaultIcons\\\">\\r\\n\\t</pri-sub-menu>\\r\\n</div>\\r\\n\", styles: [\"pri-menu pri-root-menu-selector{display:flex}pri-menu pri-root-menu-selector .root-menus{display:flex;flex-direction:column;flex:0 0 100%}pri-menu .sidebar-menu{height:auto;list-style:none;overflow:auto;padding:0;position:relative;-webkit-user-select:none;user-select:none}pri-menu .sidebar-menu .dropdown-menu{display:block}pri-menu .sidebar-menu .dropdown-toggle:after{display:none}pri-menu .sidebar-menu pri-sub-menu-item li,pri-menu .sidebar-menu pri-root-menu-selector-item li{position:relative;height:100%}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).selected-child .title,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).selected-child .title{font-weight:700}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown .arrow{font-size:.7142857143rem;width:2rem;transition:all .05s ease-in;top:0;height:100%;align-items:center;display:flex;padding-top:.1428571429rem;flex-shrink:0}@media only screen and (max-width: 991px){pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown .arrow{width:1.7857142857rem}}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>a>.arrow i,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>a>.arrow i{transform:rotate(90deg)}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>.dropdown-menu .dropdown-menu,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>.dropdown-menu .dropdown-menu{padding-left:1.4285714286rem}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>.dropdown-menu .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>.dropdown-menu .arrow{line-height:1.7857142857rem}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a{color:var(--grey-8);transition:all .3s ease}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a:hover,pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a:focus,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a:hover,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a:focus{color:var(--grey-8);background-color:var(--grey-3);text-decoration:none}pri-menu .sidebar-menu pri-sub-menu-item>li>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li>a{font-size:1rem;padding:.2857142857rem 0;position:relative;white-space:nowrap;display:flex;align-items:center;height:100%;min-height:2.5714285714rem}pri-menu .sidebar-menu pri-sub-menu-item>li>a .icon-holder,pri-menu .sidebar-menu pri-root-menu-selector-item>li>a .icon-holder{border-radius:.4285714286rem;display:inline-block;font-size:1.1428571429rem;left:0;line-height:2.5714285714rem;position:relative;text-align:center;width:4.8571428571rem;flex-shrink:0;margin-left:-.1428571429rem;color:var(--grey-8)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown>a{height:2.5714285714rem}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu{background-color:transparent;border-radius:0;border:0;box-shadow:none;float:none;position:relative;width:100%;margin:0;padding:0}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li{padding:0;height:auto}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a{display:block;padding-left:4.0714285714rem;padding-top:.4285714286rem;padding-bottom:.4285714286rem;border-radius:.2857142857rem;margin-top:.5714285714rem;margin-bottom:.5714285714rem;text-overflow:ellipsis;overflow:hidden}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:hover,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:focus,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:hover,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:focus{background-color:var(--grey-3)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a .icon-holder,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a .icon-holder{display:none}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active a{color:#fff;background-color:var(--theme-100);font-weight:700}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active a i{color:#fff}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:hover a,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:focus a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:hover a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:focus a{color:var(--grey-8)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:hover a i,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:focus a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:hover a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:focus a i{color:var(--grey-8)}pri-menu .title{opacity:1;transition:all .2s ease;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:.2857142857rem}pri-menu .is-collapsed .env-options{display:none}pri-menu .is-collapsed:hover .env-options{display:inline-block}pri-menu .is-collapsed .env-selector>a>.env-selector-item{cursor:default}pri-menu .is-collapsed .env-selector .icon-holder{width:3.4285714286rem}pri-menu .is-collapsed .env-selector-item{opacity:0}pri-menu .is-collapsed .env-selector .selector{opacity:0}pri-menu .is-collapsed:hover .env-selector,pri-menu .is-collapsed:hover .env-selector-item,pri-menu .is-collapsed:hover .env-selector .selector{opacity:1}pri-menu .is-collapsed:hover .env-selector .icon-holder{width:4.1428571429rem}pri-menu .is-collapsed .drafts .title{opacity:0}pri-menu .is-collapsed:hover .title{display:inline-block;opacity:1}pri-menu .is-collapsed .drafts .show-more,pri-menu .is-collapsed .drafts .list-item{opacity:0}pri-menu .is-collapsed .sidebar-link.sub-menu{opacity:0}pri-menu .is-collapsed:hover .sidebar-link.sub-menu{opacity:1}pri-menu .is-collapsed .arrow{opacity:0}pri-menu .is-collapsed:hover .arrow{opacity:1}pri-menu .is-collapsed:hover .drafts .show-more,pri-menu .is-collapsed:hover .drafts .list-item{opacity:1}pri-menu .is-collapsed:hover .menu-options-container .icon-holder{opacity:1}pri-menu .is-collapsed .menu-options-container{overflow:hidden}pri-menu .is-collapsed .root-menu-selector .title{opacity:0}pri-menu .sidebar-menu-container{display:flex;flex-direction:column;overflow:hidden;transition:width .2s ease;width:100%;height:100%;position:relative}pri-menu .sidebar-menu-container.is-collapsed{overflow:hidden}pri-menu .sidebar-menu-container.is-collapsed:hover{overflow:auto}pri-menu .sidebar-menu-container.is-collapsed:hover pri-selector .icon-holder{width:4.1428571429rem}pri-menu .sidebar-menu-container.is-collapsed:hover .menu-options-container .icon-holder{left:0}pri-menu .sidebar-menu-container.is-collapsed:hover .root-menus .icon-holder{left:0}pri-menu .sidebar-menu-container.is-collapsed:hover .drafts .event-dot{left:.2857142857rem}pri-menu .sidebar-menu-container.is-collapsed:hover .drafts .event-line{left:.8571428571rem}pri-menu .sidebar-menu-container.is-collapsed pri-selector .icon-holder{width:2.4285714286rem}pri-menu .sidebar-menu-container.is-collapsed .menu-options-container .icon-holder{left:-.5714285714rem;opacity:1!important}pri-menu .sidebar-menu-container.is-collapsed .root-menus .icon-holder{left:-.5rem}pri-menu .sidebar-menu-container.is-collapsed .drafts .event-dot{left:-.2142857143rem}pri-menu .sidebar-menu-container.is-collapsed .drafts .event-line{left:.3571428571rem}pri-menu .sidebar-menu-container a{cursor:pointer}pri-menu .sidebar-menu{overflow-x:hidden}pri-menu .cl-transparent{color:transparent!important}pri-menu .left-highlight{border-top-right-radius:.2857142857rem;border-bottom-right-radius:.2857142857rem;height:100%;width:7px;float:left;background-color:var(--theme-100);margin-left:-.2857142857rem;position:absolute;z-index:1}pri-menu .border-bottom{position:absolute;width:0;height:.0714285714rem;background-color:var(--grey-4);bottom:0;right:0;transition:.2s all ease}pri-menu .border-bottom.open{width:76%}pri-menu .root-menu-selector{color:var(--grey-8);background-color:var(--grey-2);height:4rem;margin:0;flex-shrink:0;display:block}pri-menu .root-menu-selector pri-root-menu-selector-item{flex:0 0 100%}pri-menu .root-menu-selector a{color:var(--grey-8)}pri-menu .root-menu-selector a:hover{background-color:var(--grey-3);color:var(--grey-2)}pri-menu .root-menu-selector .arrow{flex-shrink:0;margin-right:1.5rem;width:1.5rem;height:1.5rem;display:flex;align-content:center;justify-content:center;background-color:var(--grey-4);border-radius:.2142857143rem;font-size:.7142857143rem;color:var(--grey-8)}pri-menu .root-menu-selector .arrow i{display:flex;align-items:center;justify-content:center}pri-menu .root-menu-selector .arrow.open{transform:rotate(180deg)}pri-menu .root-menu-selector .nav-item:first-child{margin-top:0}pri-menu .root-menu-selector .title{width:100%;padding-right:.7142857143rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:1.1428571429rem;font-weight:700}pri-menu .root-menu-options{width:100%;height:auto;border-bottom:.0714285714rem solid var(--grey-4);background-color:var(--grey-2);margin:0}pri-menu .root-menu-options pri-sub-menu-item .nav-item:first-child,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item:first-child{margin-top:0}pri-menu .root-menu-options pri-sub-menu-item .nav-item,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item{padding:.5714285714rem .7142857143rem .4285714286rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item .sidebar-link,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item .sidebar-link{border-radius:.2857142857rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item .sidebar-link .icon-holder,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item .sidebar-link .icon-holder{margin-left:-.8571428571rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link{background-color:var(--theme-100)}pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link .icon-holder,pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link .title,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link .icon-holder,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link .title{color:#fff;font-weight:700}pri-menu .root-menu-options pri-sub-menu-item li,pri-menu .root-menu-options pri-root-menu-selector-item li{height:45px}pri-menu .root-menu-options pri-sub-menu-item .root-menu-options .nav-item:last-child,pri-menu .root-menu-options pri-root-menu-selector-item .root-menu-options .nav-item:last-child{border-bottom:.0714285714rem solid var(--grey-4)}pri-menu .root-menu-options pri-sub-menu-item .title,pri-menu .root-menu-options pri-root-menu-selector-item .title{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-menu .menu-options-container .sidebar-menu>li.active a,pri-menu pri-sub-menu-item>li.active a{color:#fff;background-color:var(--theme-100)}pri-menu .menu-options-container .sidebar-menu>li.active a i,pri-menu pri-sub-menu-item>li.active a i{color:#fff}pri-menu .menu-options-container .sidebar-menu>li.active .title,pri-menu pri-sub-menu-item>li.active .title{font-weight:700}pri-menu .menu-options-container pri-sub-menu-item li,pri-menu .menu-options-container pri-root-menu-selector-item li{margin-top:.7142857143rem;padding-left:.7142857143rem;padding-right:.7142857143rem}pri-menu .menu-options-container pri-sub-menu-item li:empty,pri-menu .menu-options-container pri-root-menu-selector-item li:empty{display:none}pri-menu .menu-options-container pri-sub-menu-item li a,pri-menu .menu-options-container pri-root-menu-selector-item li a{padding:0;border-radius:.2857142857rem}pri-menu .menu-options-container pri-sub-menu-item li a .icon-holder,pri-menu .menu-options-container pri-root-menu-selector-item li a .icon-holder{width:50px;margin-right:.7142857143rem}pri-menu .nav-item-heading{letter-spacing:.0357142857rem;line-height:1.5;padding:1rem 0 0 1.7142857143rem;min-width:270px}pri-menu .nav-item-heading .icon-holder,pri-menu .nav-item-heading .title{display:inline-block;height:2.5714285714rem;font-size:.6rem;font-weight:500;color:var(--grey-7);text-transform:uppercase;left:0;line-height:2.5714285714rem;padding-right:1rem;padding-bottom:.8571428571rem;position:relative}pri-menu .root-menus.overlay{overflow:hidden;display:flex;flex-direction:column}pri-menu .root-menus .icon-holder{font-size:1.2142857143rem}pri-menu .menu-options-container{position:relative;overflow-y:auto;max-height:100%}pri-menu .menu-options-container.overlay{max-height:0;overflow-y:hidden}pri-menu pri-sub-menu{position:relative;overflow-y:auto;max-height:100%}pri-menu pri-sub-menu.overlay{max-height:0;overflow-y:hidden}pri-menu .menu-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background-color:var(--grey-1);z-index:1100}pri-menu .mat-mdc-tab-group.mat-mdc-primary .mat-mdc-ink-bar,pri-menu .mat-mdc-tab-nav-bar.mat-mdc-primary .mat-mdc-ink-bar{background-color:var(--theme-100);height:.0714285714rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a{height:2.5714285714rem;padding:0 1.1428571429rem;display:flex;align-items:center}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .icon-holder{width:1.2857142857rem;margin-right:.8571428571rem;display:flex}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .icon-holder.no-icon{display:none}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .arrow{width:.7142857143rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li .sub-menu-link,pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li pri-sub-menu-item li{margin-top:.7142857143rem;padding:0;padding-left:.7142857143rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li .sub-menu-link ul,pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li pri-sub-menu-item li ul{padding:0}@media only screen and (max-width: 767px){pri-menu .sidebar-menu-container .mat-mdc-tab-header{width:100%!important}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: RootMenuSelectorComponent, selector: \"pri-root-menu-selector\", inputs: [\"selectedRootMenu\", \"menuDefinition\"], outputs: [\"toggleRootMenu\", \"selectedRootMenuChange\"] }, { kind: \"component\", type: SubMenuComponent, selector: \"pri-sub-menu\", inputs: [\"visible\", \"collapsed\", \"useDefaultIcons\", \"workInProgressItemsUri\", \"activeMenuItem\", \"hasDraftSupport\", \"parentMenu\"] }, { kind: \"component\", type: SelectorComponent, selector: \"pri-selector\", inputs: [\"showEnvSelector\", \"subscriptionsSourceUri\", \"companiesSourceUri\"], outputs: [\"envParamChanged\"] }], animations: [enterLeaveHeightAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: MenuComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [enterLeaveHeightAnimation], template: \"<div\\r\\n\\tclass=\\\"sidebar-menu-container\\\"\\r\\n\\t[class.is-collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t[class.is-flat-menu]=\\\"menuDefinition?.flatMenu\\\"\\r\\n\\t(mouseenter)=\\\"hoverState.emit(true)\\\"\\r\\n\\t(mouseleave)=\\\"hoverState.emit(false)\\\">\\r\\n\\t<!-- Subscription/Company Selector -->\\r\\n\\t<pri-selector\\r\\n\\t\\t*ngIf=\\\"subscriptionsSourceUri !== undefined && subscriptionsSourceUri.length > 0\\\"\\r\\n\\t\\t[companiesSourceUri]=\\\"companiesSourceUri\\\"\\r\\n\\t\\t[subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n\\t\\t(envParamChanged)=\\\"onEnvironmentParameterChange($event)\\\">\\r\\n\\t</pri-selector>\\r\\n\\r\\n\\t<pri-root-menu-selector\\r\\n\\t\\t[menuDefinition]=\\\"menuDefinition\\\"\\r\\n\\t\\t(toggleRootMenu)=\\\"isRootMenuVisible = $event\\\"\\r\\n\\t\\t[(selectedRootMenu)]=\\\"selectedRootMenu\\\">\\r\\n\\t</pri-root-menu-selector>\\r\\n\\r\\n\\t<pri-sub-menu\\r\\n\\t\\t[visible]=\\\"selectedRootMenu !== null && !isRootMenuVisible\\\"\\r\\n\\t\\t[collapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t[parentMenu]=\\\"selectedRootMenu\\\"\\r\\n\\t\\t[activeMenuItem]=\\\"activeMenuItem\\\"\\r\\n\\t\\t[hasDraftSupport]=\\\"hasDraftSupport\\\"\\r\\n\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t[useDefaultIcons]=\\\"menuDefinition?.useDefaultIcons\\\">\\r\\n\\t</pri-sub-menu>\\r\\n</div>\\r\\n\", styles: [\"pri-menu pri-root-menu-selector{display:flex}pri-menu pri-root-menu-selector .root-menus{display:flex;flex-direction:column;flex:0 0 100%}pri-menu .sidebar-menu{height:auto;list-style:none;overflow:auto;padding:0;position:relative;-webkit-user-select:none;user-select:none}pri-menu .sidebar-menu .dropdown-menu{display:block}pri-menu .sidebar-menu .dropdown-toggle:after{display:none}pri-menu .sidebar-menu pri-sub-menu-item li,pri-menu .sidebar-menu pri-root-menu-selector-item li{position:relative;height:100%}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).selected-child .title,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).selected-child .title{font-weight:700}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown .arrow{font-size:.7142857143rem;width:2rem;transition:all .05s ease-in;top:0;height:100%;align-items:center;display:flex;padding-top:.1428571429rem;flex-shrink:0}@media only screen and (max-width: 991px){pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown .arrow{width:1.7857142857rem}}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>a>.arrow i,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>a>.arrow i{transform:rotate(90deg)}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>.dropdown-menu .dropdown-menu,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>.dropdown-menu .dropdown-menu{padding-left:1.4285714286rem}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active).dropdown.open>.dropdown-menu .arrow,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active).dropdown.open>.dropdown-menu .arrow{line-height:1.7857142857rem}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a{color:var(--grey-8);transition:all .3s ease}pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a:hover,pri-menu .sidebar-menu pri-sub-menu-item li:not(.active) a:focus,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a:hover,pri-menu .sidebar-menu pri-root-menu-selector-item li:not(.active) a:focus{color:var(--grey-8);background-color:var(--grey-3);text-decoration:none}pri-menu .sidebar-menu pri-sub-menu-item>li>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li>a{font-size:1rem;padding:.2857142857rem 0;position:relative;white-space:nowrap;display:flex;align-items:center;height:100%;min-height:2.5714285714rem}pri-menu .sidebar-menu pri-sub-menu-item>li>a .icon-holder,pri-menu .sidebar-menu pri-root-menu-selector-item>li>a .icon-holder{border-radius:.4285714286rem;display:inline-block;font-size:1.1428571429rem;left:0;line-height:2.5714285714rem;position:relative;text-align:center;width:4.8571428571rem;flex-shrink:0;margin-left:-.1428571429rem;color:var(--grey-8)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown>a{height:2.5714285714rem}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu{background-color:transparent;border-radius:0;border:0;box-shadow:none;float:none;position:relative;width:100%;margin:0;padding:0}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li{padding:0;height:auto}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a{display:block;padding-left:4.0714285714rem;padding-top:.4285714286rem;padding-bottom:.4285714286rem;border-radius:.2857142857rem;margin-top:.5714285714rem;margin-bottom:.5714285714rem;text-overflow:ellipsis;overflow:hidden}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:hover,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:focus,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:hover,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a:focus{background-color:var(--grey-3)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a .icon-holder,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li .sub-menu-link>a .icon-holder{display:none}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active a{color:#fff;background-color:var(--theme-100);font-weight:700}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active a i{color:#fff}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:hover a,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:focus a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:hover a,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:focus a{color:var(--grey-8)}pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:hover a i,pri-menu .sidebar-menu pri-sub-menu-item>li.dropdown ul.dropdown-menu>li.active:focus a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:hover a i,pri-menu .sidebar-menu pri-root-menu-selector-item>li.dropdown ul.dropdown-menu>li.active:focus a i{color:var(--grey-8)}pri-menu .title{opacity:1;transition:all .2s ease;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-right:.2857142857rem}pri-menu .is-collapsed .env-options{display:none}pri-menu .is-collapsed:hover .env-options{display:inline-block}pri-menu .is-collapsed .env-selector>a>.env-selector-item{cursor:default}pri-menu .is-collapsed .env-selector .icon-holder{width:3.4285714286rem}pri-menu .is-collapsed .env-selector-item{opacity:0}pri-menu .is-collapsed .env-selector .selector{opacity:0}pri-menu .is-collapsed:hover .env-selector,pri-menu .is-collapsed:hover .env-selector-item,pri-menu .is-collapsed:hover .env-selector .selector{opacity:1}pri-menu .is-collapsed:hover .env-selector .icon-holder{width:4.1428571429rem}pri-menu .is-collapsed .drafts .title{opacity:0}pri-menu .is-collapsed:hover .title{display:inline-block;opacity:1}pri-menu .is-collapsed .drafts .show-more,pri-menu .is-collapsed .drafts .list-item{opacity:0}pri-menu .is-collapsed .sidebar-link.sub-menu{opacity:0}pri-menu .is-collapsed:hover .sidebar-link.sub-menu{opacity:1}pri-menu .is-collapsed .arrow{opacity:0}pri-menu .is-collapsed:hover .arrow{opacity:1}pri-menu .is-collapsed:hover .drafts .show-more,pri-menu .is-collapsed:hover .drafts .list-item{opacity:1}pri-menu .is-collapsed:hover .menu-options-container .icon-holder{opacity:1}pri-menu .is-collapsed .menu-options-container{overflow:hidden}pri-menu .is-collapsed .root-menu-selector .title{opacity:0}pri-menu .sidebar-menu-container{display:flex;flex-direction:column;overflow:hidden;transition:width .2s ease;width:100%;height:100%;position:relative}pri-menu .sidebar-menu-container.is-collapsed{overflow:hidden}pri-menu .sidebar-menu-container.is-collapsed:hover{overflow:auto}pri-menu .sidebar-menu-container.is-collapsed:hover pri-selector .icon-holder{width:4.1428571429rem}pri-menu .sidebar-menu-container.is-collapsed:hover .menu-options-container .icon-holder{left:0}pri-menu .sidebar-menu-container.is-collapsed:hover .root-menus .icon-holder{left:0}pri-menu .sidebar-menu-container.is-collapsed:hover .drafts .event-dot{left:.2857142857rem}pri-menu .sidebar-menu-container.is-collapsed:hover .drafts .event-line{left:.8571428571rem}pri-menu .sidebar-menu-container.is-collapsed pri-selector .icon-holder{width:2.4285714286rem}pri-menu .sidebar-menu-container.is-collapsed .menu-options-container .icon-holder{left:-.5714285714rem;opacity:1!important}pri-menu .sidebar-menu-container.is-collapsed .root-menus .icon-holder{left:-.5rem}pri-menu .sidebar-menu-container.is-collapsed .drafts .event-dot{left:-.2142857143rem}pri-menu .sidebar-menu-container.is-collapsed .drafts .event-line{left:.3571428571rem}pri-menu .sidebar-menu-container a{cursor:pointer}pri-menu .sidebar-menu{overflow-x:hidden}pri-menu .cl-transparent{color:transparent!important}pri-menu .left-highlight{border-top-right-radius:.2857142857rem;border-bottom-right-radius:.2857142857rem;height:100%;width:7px;float:left;background-color:var(--theme-100);margin-left:-.2857142857rem;position:absolute;z-index:1}pri-menu .border-bottom{position:absolute;width:0;height:.0714285714rem;background-color:var(--grey-4);bottom:0;right:0;transition:.2s all ease}pri-menu .border-bottom.open{width:76%}pri-menu .root-menu-selector{color:var(--grey-8);background-color:var(--grey-2);height:4rem;margin:0;flex-shrink:0;display:block}pri-menu .root-menu-selector pri-root-menu-selector-item{flex:0 0 100%}pri-menu .root-menu-selector a{color:var(--grey-8)}pri-menu .root-menu-selector a:hover{background-color:var(--grey-3);color:var(--grey-2)}pri-menu .root-menu-selector .arrow{flex-shrink:0;margin-right:1.5rem;width:1.5rem;height:1.5rem;display:flex;align-content:center;justify-content:center;background-color:var(--grey-4);border-radius:.2142857143rem;font-size:.7142857143rem;color:var(--grey-8)}pri-menu .root-menu-selector .arrow i{display:flex;align-items:center;justify-content:center}pri-menu .root-menu-selector .arrow.open{transform:rotate(180deg)}pri-menu .root-menu-selector .nav-item:first-child{margin-top:0}pri-menu .root-menu-selector .title{width:100%;padding-right:.7142857143rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:1.1428571429rem;font-weight:700}pri-menu .root-menu-options{width:100%;height:auto;border-bottom:.0714285714rem solid var(--grey-4);background-color:var(--grey-2);margin:0}pri-menu .root-menu-options pri-sub-menu-item .nav-item:first-child,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item:first-child{margin-top:0}pri-menu .root-menu-options pri-sub-menu-item .nav-item,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item{padding:.5714285714rem .7142857143rem .4285714286rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item .sidebar-link,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item .sidebar-link{border-radius:.2857142857rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item .sidebar-link .icon-holder,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item .sidebar-link .icon-holder{margin-left:-.8571428571rem}pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link{background-color:var(--theme-100)}pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link .icon-holder,pri-menu .root-menu-options pri-sub-menu-item .nav-item.active .sidebar-link .title,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link .icon-holder,pri-menu .root-menu-options pri-root-menu-selector-item .nav-item.active .sidebar-link .title{color:#fff;font-weight:700}pri-menu .root-menu-options pri-sub-menu-item li,pri-menu .root-menu-options pri-root-menu-selector-item li{height:45px}pri-menu .root-menu-options pri-sub-menu-item .root-menu-options .nav-item:last-child,pri-menu .root-menu-options pri-root-menu-selector-item .root-menu-options .nav-item:last-child{border-bottom:.0714285714rem solid var(--grey-4)}pri-menu .root-menu-options pri-sub-menu-item .title,pri-menu .root-menu-options pri-root-menu-selector-item .title{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}pri-menu .menu-options-container .sidebar-menu>li.active a,pri-menu pri-sub-menu-item>li.active a{color:#fff;background-color:var(--theme-100)}pri-menu .menu-options-container .sidebar-menu>li.active a i,pri-menu pri-sub-menu-item>li.active a i{color:#fff}pri-menu .menu-options-container .sidebar-menu>li.active .title,pri-menu pri-sub-menu-item>li.active .title{font-weight:700}pri-menu .menu-options-container pri-sub-menu-item li,pri-menu .menu-options-container pri-root-menu-selector-item li{margin-top:.7142857143rem;padding-left:.7142857143rem;padding-right:.7142857143rem}pri-menu .menu-options-container pri-sub-menu-item li:empty,pri-menu .menu-options-container pri-root-menu-selector-item li:empty{display:none}pri-menu .menu-options-container pri-sub-menu-item li a,pri-menu .menu-options-container pri-root-menu-selector-item li a{padding:0;border-radius:.2857142857rem}pri-menu .menu-options-container pri-sub-menu-item li a .icon-holder,pri-menu .menu-options-container pri-root-menu-selector-item li a .icon-holder{width:50px;margin-right:.7142857143rem}pri-menu .nav-item-heading{letter-spacing:.0357142857rem;line-height:1.5;padding:1rem 0 0 1.7142857143rem;min-width:270px}pri-menu .nav-item-heading .icon-holder,pri-menu .nav-item-heading .title{display:inline-block;height:2.5714285714rem;font-size:.6rem;font-weight:500;color:var(--grey-7);text-transform:uppercase;left:0;line-height:2.5714285714rem;padding-right:1rem;padding-bottom:.8571428571rem;position:relative}pri-menu .root-menus.overlay{overflow:hidden;display:flex;flex-direction:column}pri-menu .root-menus .icon-holder{font-size:1.2142857143rem}pri-menu .menu-options-container{position:relative;overflow-y:auto;max-height:100%}pri-menu .menu-options-container.overlay{max-height:0;overflow-y:hidden}pri-menu pri-sub-menu{position:relative;overflow-y:auto;max-height:100%}pri-menu pri-sub-menu.overlay{max-height:0;overflow-y:hidden}pri-menu .menu-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background-color:var(--grey-1);z-index:1100}pri-menu .mat-mdc-tab-group.mat-mdc-primary .mat-mdc-ink-bar,pri-menu .mat-mdc-tab-nav-bar.mat-mdc-primary .mat-mdc-ink-bar{background-color:var(--theme-100);height:.0714285714rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a{height:2.5714285714rem;padding:0 1.1428571429rem;display:flex;align-items:center}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .icon-holder{width:1.2857142857rem;margin-right:.8571428571rem;display:flex}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .icon-holder.no-icon{display:none}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item a .arrow{width:.7142857143rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li .sub-menu-link,pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li pri-sub-menu-item li{margin-top:.7142857143rem;padding:0;padding-left:.7142857143rem}pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li .sub-menu-link ul,pri-menu .sidebar-menu-container.is-flat-menu pri-sub-menu .menu-options-container .sidebar-menu pri-sub-menu-item li.nav-item.menu-item.dropdown ul.dropdown-menu li pri-sub-menu-item li ul{padding:0}@media only screen and (max-width: 767px){pri-menu .sidebar-menu-container .mat-mdc-tab-header{width:100%!important}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: MenuService }, { type: i1$2.Router }, { type: i1$1.ProductInitialization }, { type: i1$1.RouteHelperService }, { type: i1$1.TelemetryService }, { type: i1$1.AmsService }, { type: i1$1.EnvironmentSettings }, { type: i1$1.BroadcastService }, { type: i1$1.SettingsService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { rootMenuUri: [{\r\n                type: Input\r\n            }], rootCustomMenuUri: [{\r\n                type: Input\r\n            }], subscriptionsSourceUri: [{\r\n                type: Input\r\n            }], companiesSourceUri: [{\r\n                type: Input\r\n            }], workInProgressItemsUri: [{\r\n                type: Input\r\n            }], defaultMenuCaptionPath: [{\r\n                type: Input\r\n            }], menuIsCollapsed: [{\r\n                type: Input\r\n            }], configuration: [{\r\n                type: Input\r\n            }], hoverState: [{\r\n                type: Output\r\n            }], envParamChanged: [{\r\n                type: Output\r\n            }] } });\n\nclass SidebarComponent {\r\n    constructor(broadcastService) {\r\n        this.broadcastService = broadcastService;\r\n        this.menuHoverState = false;\r\n    }\r\n    ngOnInit() { }\r\n    toggleMenu() {\r\n        this.broadcastService.emit('onToggleMenuState');\r\n    }\r\n    onMenuHoverStateChange(state) {\r\n        this.menuHoverState = state;\r\n    }\r\n}\r\nSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SidebarComponent, deps: [{ token: i1$1.BroadcastService }], target: i0.ɵɵFactoryTarget.Component });\r\nSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: SidebarComponent, selector: \"pri-sidebar\", inputs: { menuIsCollapsed: \"menuIsCollapsed\", rootMenuUri: \"rootMenuUri\", rootCustomMenuUri: \"rootCustomMenuUri\", subscriptionsSourceUri: \"subscriptionsSourceUri\", companiesSourceUri: \"companiesSourceUri\", workInProgressItemsUri: \"workInProgressItemsUri\", defaultMenuCaptionPath: \"defaultMenuCaptionPath\" }, ngImport: i0, template: \"<!-- #Left Sidebar ==================== -->\\r\\n<div class=\\\"sidebar\\\" [class.is-collapsed]=\\\"menuIsCollapsed\\\" [class.hover]=\\\"menuHoverState\\\">\\r\\n\\t<div class=\\\"sidebar-inner\\\">\\r\\n\\t\\t<!-- ### $Sidebar Header ### -->\\r\\n\\t\\t<!-- <app-sidebar-logo [menuIsCollapsed]=\\\"menuIsCollapsed\\\"></app-sidebar-logo> -->\\r\\n\\r\\n\\t\\t<!-- ### $Sidebar Menu ### -->\\r\\n\\t\\t<pri-menu\\r\\n\\t\\t\\t[rootMenuUri]=\\\"rootMenuUri\\\"\\r\\n\\t\\t\\t[rootCustomMenuUri]=\\\"rootCustomMenuUri\\\"\\r\\n\\t\\t\\t[subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n\\t\\t\\t[companiesSourceUri]=\\\"companiesSourceUri\\\"\\r\\n\\t\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t\\t[menuIsCollapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t\\t(hoverState)=\\\"onMenuHoverStateChange($event)\\\"></pri-menu>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"open-close-area\\\">\\r\\n\\t\\t<div class=\\\"icon\\\" (click)=\\\"toggleMenu()\\\">\\r\\n\\t\\t\\t<i [ngClass]=\\\"menuIsCollapsed ? 'ti-ux-expand' : 'ti-ux-collapse'\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-sidebar{height:100%}pri-sidebar .sidebar{position:absolute;left:0;display:flex;flex-direction:column;transition:width .2s ease;background-color:var(--grey-1);color:var(--grey-8);overflow:hidden;width:20rem;height:100%;flex-shrink:0;z-index:1005;box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-sidebar .sidebar.is-collapsed{width:3.5714285714rem;flex-shrink:0}pri-sidebar .sidebar.is-collapsed.hover{width:20rem}pri-sidebar .sidebar.is-collapsed.hover pri-menu .root-menu-selector .title{opacity:1}pri-sidebar .sidebar.is-collapsed.hover pri-menu pri-sub-menu .menu-options-container{height:100%;overflow-y:auto}pri-sidebar .sidebar ul{list-style-type:none}pri-sidebar .sidebar .sidebar-inner{height:100%;min-height:0}pri-sidebar .sidebar .open-close-area{height:50px;width:100%;flex-shrink:0;display:flex;align-items:center;border-top:1px solid var(--grey-4)}pri-sidebar .sidebar .open-close-area .icon{width:69px;display:flex;align-items:center;justify-content:center;height:100%;cursor:pointer}@media only screen and (max-width: 991px){pri-sidebar .sidebar{width:100%;height:100%;box-shadow:unset}pri-sidebar .sidebar .open-close-area{display:none}pri-sidebar .sidebar.is-collapsed{width:0}pri-sidebar .sidebar.is-collapsed.hover{width:0}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"component\", type: MenuComponent, selector: \"pri-menu\", inputs: [\"rootMenuUri\", \"rootCustomMenuUri\", \"subscriptionsSourceUri\", \"companiesSourceUri\", \"workInProgressItemsUri\", \"defaultMenuCaptionPath\", \"menuIsCollapsed\", \"configuration\"], outputs: [\"hoverState\", \"envParamChanged\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: SidebarComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-sidebar', encapsulation: ViewEncapsulation.None, template: \"<!-- #Left Sidebar ==================== -->\\r\\n<div class=\\\"sidebar\\\" [class.is-collapsed]=\\\"menuIsCollapsed\\\" [class.hover]=\\\"menuHoverState\\\">\\r\\n\\t<div class=\\\"sidebar-inner\\\">\\r\\n\\t\\t<!-- ### $Sidebar Header ### -->\\r\\n\\t\\t<!-- <app-sidebar-logo [menuIsCollapsed]=\\\"menuIsCollapsed\\\"></app-sidebar-logo> -->\\r\\n\\r\\n\\t\\t<!-- ### $Sidebar Menu ### -->\\r\\n\\t\\t<pri-menu\\r\\n\\t\\t\\t[rootMenuUri]=\\\"rootMenuUri\\\"\\r\\n\\t\\t\\t[rootCustomMenuUri]=\\\"rootCustomMenuUri\\\"\\r\\n\\t\\t\\t[subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n\\t\\t\\t[companiesSourceUri]=\\\"companiesSourceUri\\\"\\r\\n\\t\\t\\t[workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n\\t\\t\\t[menuIsCollapsed]=\\\"menuIsCollapsed\\\"\\r\\n\\t\\t\\t(hoverState)=\\\"onMenuHoverStateChange($event)\\\"></pri-menu>\\r\\n\\t</div>\\r\\n\\t<div class=\\\"open-close-area\\\">\\r\\n\\t\\t<div class=\\\"icon\\\" (click)=\\\"toggleMenu()\\\">\\r\\n\\t\\t\\t<i [ngClass]=\\\"menuIsCollapsed ? 'ti-ux-expand' : 'ti-ux-collapse'\\\"></i>\\r\\n\\t\\t</div>\\r\\n\\t</div>\\r\\n</div>\\r\\n\", styles: [\"pri-sidebar{height:100%}pri-sidebar .sidebar{position:absolute;left:0;display:flex;flex-direction:column;transition:width .2s ease;background-color:var(--grey-1);color:var(--grey-8);overflow:hidden;width:20rem;height:100%;flex-shrink:0;z-index:1005;box-shadow:0 0 .7142857143rem var(--shadow-5)}pri-sidebar .sidebar.is-collapsed{width:3.5714285714rem;flex-shrink:0}pri-sidebar .sidebar.is-collapsed.hover{width:20rem}pri-sidebar .sidebar.is-collapsed.hover pri-menu .root-menu-selector .title{opacity:1}pri-sidebar .sidebar.is-collapsed.hover pri-menu pri-sub-menu .menu-options-container{height:100%;overflow-y:auto}pri-sidebar .sidebar ul{list-style-type:none}pri-sidebar .sidebar .sidebar-inner{height:100%;min-height:0}pri-sidebar .sidebar .open-close-area{height:50px;width:100%;flex-shrink:0;display:flex;align-items:center;border-top:1px solid var(--grey-4)}pri-sidebar .sidebar .open-close-area .icon{width:69px;display:flex;align-items:center;justify-content:center;height:100%;cursor:pointer}@media only screen and (max-width: 991px){pri-sidebar .sidebar{width:100%;height:100%;box-shadow:unset}pri-sidebar .sidebar .open-close-area{display:none}pri-sidebar .sidebar.is-collapsed{width:0}pri-sidebar .sidebar.is-collapsed.hover{width:0}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.BroadcastService }]; }, propDecorators: { menuIsCollapsed: [{\r\n                type: Input\r\n            }], rootMenuUri: [{\r\n                type: Input\r\n            }], rootCustomMenuUri: [{\r\n                type: Input\r\n            }], subscriptionsSourceUri: [{\r\n                type: Input\r\n            }], companiesSourceUri: [{\r\n                type: Input\r\n            }], workInProgressItemsUri: [{\r\n                type: Input\r\n            }], defaultMenuCaptionPath: [{\r\n                type: Input\r\n            }] } });\n\nclass ViewTitleComponent {\r\n    constructor(broadcastService, editionHistoryEvent, changeDetectorRef, applicationRef, settingsService, appContextService) {\r\n        this.broadcastService = broadcastService;\r\n        this.editionHistoryEvent = editionHistoryEvent;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.applicationRef = applicationRef;\r\n        this.settingsService = settingsService;\r\n        this.appContextService = appContextService;\r\n        /** Outlet which the record selector was constructed.*/\r\n        this.outlet = \"primary\" /* OutletEnum.Primary */;\r\n        this.viewTitle = '';\r\n        this.showDeletedLabel = false;\r\n        this.showInactiveLabel = false;\r\n        this.lock = new Lock();\r\n        this.broadcastService.subscribe('eventTitleChanged', (changes) => {\r\n            if (changes && this.isToProceedWithEvent(changes.outlet)) {\r\n                this.viewTitle = changes.value;\r\n                document.title = this.pageTitle(changes.value);\r\n                // set default values\r\n                this.historyItems = undefined;\r\n                this.lock = new Lock(false);\r\n                this.showDeletedLabel = false;\r\n                this.showInactiveLabel = false;\r\n                this.changeDetectorRef.detectChanges();\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('documentIsLock', (lock) => {\r\n            if (this.isToProceedWithEvent(lock.outlet)) {\r\n                this.lock = lock;\r\n            }\r\n        });\r\n        this.broadcastService.subscribe('view_title', (titleDefinition) => {\r\n            if (titleDefinition && this.isToProceedWithEvent(titleDefinition.outlet)) {\r\n                this.setTitle(titleDefinition);\r\n            }\r\n        });\r\n    }\r\n    ngOnInit() {\r\n        this.editionHistoryEvent.getOnEvent().subscribe((events) => {\r\n            if (this.isToProceedWithEvent(events.outlet)) {\r\n                this.onEditionHistoryEvent(events);\r\n            }\r\n        });\r\n        this.lock.isLocked = false;\r\n    }\r\n    /**\r\n     * Whether is to proceed to with an event.\r\n     * For instance, the function will return true in case of this view was created\r\n     * by a popup view and there is an popup view open.\r\n     */\r\n    isToProceedWithEvent(outlet = \"primary\" /* OutletEnum.Primary */) {\r\n        return outlet === \"primary\" /* OutletEnum.Primary */;\r\n    }\r\n    setTitle(definition) {\r\n        this.viewTitle = definition.title || '';\r\n        document.title = this.pageTitle(definition.title);\r\n        this.showDeletedLabel = definition.isDeleted === true;\r\n        // Inactive is only visible if the entity is inactive and is not deleted\r\n        this.showInactiveLabel = definition.isInactive === true && !definition.isDeleted;\r\n        this.historyItems = undefined;\r\n    }\r\n    async onEditionHistoryEvent(events) {\r\n        this.historyItems = await events.getDropDownEditionHistoryItems();\r\n        /** because this function is async, some times the component does not detect changes on the history items.\r\n         * More info on https://stackoverflow.com/questions/35105374/how-to-force-a-components-re-rendering-in-angular-2*/\r\n        this.applicationRef.tick();\r\n    }\r\n    getProductName() {\r\n        return this.appContextService.getContext().productName || this.settingsService.environmentSettings.productName;\r\n    }\r\n    pageTitle(title) {\r\n        const titles = [];\r\n        const productName = this.getProductName();\r\n        if (title) {\r\n            titles.push(title);\r\n        }\r\n        if (productName) {\r\n            titles.push(productName);\r\n        }\r\n        if (titles.length > 0) {\r\n            return titles.join(' | ');\r\n        }\r\n        else {\r\n            return '';\r\n        }\r\n    }\r\n}\r\nViewTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewTitleComponent, deps: [{ token: i1$1.BroadcastService }, { token: i2.EditionHistoryEventService }, { token: i0.ChangeDetectorRef }, { token: i0.ApplicationRef }, { token: i1$1.SettingsService }, { token: i1$1.AppContextService }], target: i0.ɵɵFactoryTarget.Component });\r\nViewTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: ViewTitleComponent, selector: \"pri-view-title\", inputs: { historyItems: \"historyItems\", outlet: \"outlet\" }, ngImport: i0, template: \"<div class=\\\"view-title\\\" [ngClass]=\\\"{'is-lock-header': lock.isLocked}\\\" *ngIf=\\\"viewTitle && viewTitle.length > 0\\\">\\r\\n    <div priDropDownEditionHistory [priDropDownEditionHistoryItems]=\\\"historyItems\\\"\\r\\n        [priDropDownEditionHistoryTransformToLink]=\\\"true\\\" [origin]=\\\"origin\\\" class=\\\"view-title-value-wrapper\\\">\\r\\n        <span data-testid=\\\"layout-view-title-value\\\" class=\\\"view-title-value\\\">{{viewTitle}}</span>\\r\\n    </div>\\r\\n    <pri-record-selector [outlet]=\\\"outlet\\\" id=\\\"record-selector-tag\\\" class=\\\"record-selector-wrapper\\\">\\r\\n    </pri-record-selector>\\r\\n    <div class=\\\"document-states\\\">\\r\\n        <div class=\\\"state-label-wrapper deleted\\\" *ngIf=\\\"showDeletedLabel\\\">\\r\\n            <span class=\\\"state-label\\\" priI18n=\\\"shell.components.RES_EntityView_IsDeletedEntity\\\"></span>\\r\\n        </div>\\r\\n        <div class=\\\"state-label-wrapper inactive\\\" *ngIf=\\\"showInactiveLabel\\\">\\r\\n            <span class=\\\"state-label\\\" priI18n=\\\"shell.components.RES_EntityView_IsInactiveEntity\\\"></span>\\r\\n        </div>\\r\\n\\r\\n        <div class='is-lock-description-wrapper' *ngIf=\\\"lock.isLocked\\\">\\r\\n            <div class='is-lock-description'>\\r\\n                <span class=\\\"is-lock-span\\\" priI18n=\\\"shell.components.RES_EntityView_IsLockedEntity\\\"></span>\\r\\n            </div>\\r\\n\\r\\n            <span class=\\\"help-lock-description-tooltip\\\" [popover]=\\\"lock.lockReasonDescription\\\"\\r\\n                [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"bottom\\\" container=\\\"body\\\"\\r\\n                #priPopoverSave=\\\"bs-popover\\\" [priPopover]=\\\"priPopoverSave\\\">?</span>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-view-title .view-title{margin-bottom:16px;display:flex;align-items:center;position:relative;overflow:hidden;flex-shrink:0;padding:0 28px}pri-view-title .view-title .view-title-value-wrapper{overflow:hidden;text-overflow:ellipsis}pri-view-title .view-title .view-title-value-wrapper .view-title-value{font-size:18px;font-weight:700}pri-view-title .view-title .view-title-value-wrapper.history-link{color:var(--theme-100)}pri-view-title .view-title .view-title-value-wrapper.history-link:hover .view-title-value{cursor:pointer;text-decoration:underline}pri-view-title .view-title .view-title-value-wrapper:not(.history-link){color:var(--grey-8)}pri-view-title .view-title .record-selector-wrapper{margin-left:8px}pri-view-title .view-title .document-states{margin-left:0;display:flex}pri-view-title .view-title .document-states .state-label-wrapper{color:#fff;display:flex;align-items:center;padding:1px 3px;margin-left:8px}pri-view-title .view-title .document-states .state-label-wrapper.deleted{background-color:var(--error-100)}pri-view-title .view-title .document-states .state-label-wrapper.inactive{background-color:var(--warning-100)}pri-view-title .view-title .document-states .state-label-wrapper .state-label{font-weight:600;font-size:10px;text-transform:uppercase}pri-view-title .view-title .document-states .is-lock-description-wrapper{display:flex;align-items:center;margin-left:8px}pri-view-title .view-title .document-states .is-lock-description-wrapper .is-lock-description{background-color:var(--grey-6);color:#fff;display:flex;align-items:center;padding:1px 3px}pri-view-title .view-title .document-states .is-lock-description-wrapper .is-lock-description .is-lock-span{font-weight:600;font-size:10px;text-transform:uppercase}pri-view-title .view-title .document-states .is-lock-description-wrapper .help-lock-description-tooltip{margin-left:8px;display:flex;align-items:center;justify-content:center;border-radius:100%;color:var(--grey-6);font-weight:700;font-size:8pt;cursor:pointer;border:1px solid var(--grey-6);background-color:transparent;width:16px;height:16px;flex-shrink:0}pri-view-title .view-title .document-states .is-lock-description-wrapper .help-lock-description-tooltip:hover{background:var(--grey-6);color:#fff}@media only screen and (max-width: 991px){pri-view-title .view-title{padding:0 8px;margin-bottom:8px}pri-view-title .view-title .view-title-value-wrapper .view-title-value{font-size:14px}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.DropDownEditionHistoryDirective, selector: \"[priDropDownEditionHistory]\", inputs: [\"origin\", \"maxWidth\", \"customClass\", \"trigger\", \"priDropDownEditionHistoryTransformToLink\", \"priDropDownEditionHistoryItems\"] }, { kind: \"component\", type: i2.RecordSelectorComponent, selector: \"pri-record-selector\", inputs: [\"outlet\"] }, { kind: \"directive\", type: i4$2.PopoverDirective, selector: \"[popover]\", inputs: [\"adaptivePosition\", \"boundariesElement\", \"popover\", \"popoverContext\", \"popoverTitle\", \"placement\", \"outsideClick\", \"triggers\", \"container\", \"containerClass\", \"isOpen\", \"delay\"], outputs: [\"onShown\", \"onHidden\"], exportAs: [\"bs-popover\"] }, { kind: \"directive\", type: i4.PriI18nDirective, selector: \"[priI18n]\", inputs: [\"priI18n\"] }, { kind: \"directive\", type: i2.PriPopoverDirective, selector: \"[priPopover]\", inputs: [\"priPopover\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ViewTitleComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-view-title', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"view-title\\\" [ngClass]=\\\"{'is-lock-header': lock.isLocked}\\\" *ngIf=\\\"viewTitle && viewTitle.length > 0\\\">\\r\\n    <div priDropDownEditionHistory [priDropDownEditionHistoryItems]=\\\"historyItems\\\"\\r\\n        [priDropDownEditionHistoryTransformToLink]=\\\"true\\\" [origin]=\\\"origin\\\" class=\\\"view-title-value-wrapper\\\">\\r\\n        <span data-testid=\\\"layout-view-title-value\\\" class=\\\"view-title-value\\\">{{viewTitle}}</span>\\r\\n    </div>\\r\\n    <pri-record-selector [outlet]=\\\"outlet\\\" id=\\\"record-selector-tag\\\" class=\\\"record-selector-wrapper\\\">\\r\\n    </pri-record-selector>\\r\\n    <div class=\\\"document-states\\\">\\r\\n        <div class=\\\"state-label-wrapper deleted\\\" *ngIf=\\\"showDeletedLabel\\\">\\r\\n            <span class=\\\"state-label\\\" priI18n=\\\"shell.components.RES_EntityView_IsDeletedEntity\\\"></span>\\r\\n        </div>\\r\\n        <div class=\\\"state-label-wrapper inactive\\\" *ngIf=\\\"showInactiveLabel\\\">\\r\\n            <span class=\\\"state-label\\\" priI18n=\\\"shell.components.RES_EntityView_IsInactiveEntity\\\"></span>\\r\\n        </div>\\r\\n\\r\\n        <div class='is-lock-description-wrapper' *ngIf=\\\"lock.isLocked\\\">\\r\\n            <div class='is-lock-description'>\\r\\n                <span class=\\\"is-lock-span\\\" priI18n=\\\"shell.components.RES_EntityView_IsLockedEntity\\\"></span>\\r\\n            </div>\\r\\n\\r\\n            <span class=\\\"help-lock-description-tooltip\\\" [popover]=\\\"lock.lockReasonDescription\\\"\\r\\n                [adaptivePosition]=\\\"false\\\" triggers=\\\"mouseenter:mouseleave\\\" placement=\\\"bottom\\\" container=\\\"body\\\"\\r\\n                #priPopoverSave=\\\"bs-popover\\\" [priPopover]=\\\"priPopoverSave\\\">?</span>\\r\\n        </div>\\r\\n    </div>\\r\\n</div>\", styles: [\"pri-view-title .view-title{margin-bottom:16px;display:flex;align-items:center;position:relative;overflow:hidden;flex-shrink:0;padding:0 28px}pri-view-title .view-title .view-title-value-wrapper{overflow:hidden;text-overflow:ellipsis}pri-view-title .view-title .view-title-value-wrapper .view-title-value{font-size:18px;font-weight:700}pri-view-title .view-title .view-title-value-wrapper.history-link{color:var(--theme-100)}pri-view-title .view-title .view-title-value-wrapper.history-link:hover .view-title-value{cursor:pointer;text-decoration:underline}pri-view-title .view-title .view-title-value-wrapper:not(.history-link){color:var(--grey-8)}pri-view-title .view-title .record-selector-wrapper{margin-left:8px}pri-view-title .view-title .document-states{margin-left:0;display:flex}pri-view-title .view-title .document-states .state-label-wrapper{color:#fff;display:flex;align-items:center;padding:1px 3px;margin-left:8px}pri-view-title .view-title .document-states .state-label-wrapper.deleted{background-color:var(--error-100)}pri-view-title .view-title .document-states .state-label-wrapper.inactive{background-color:var(--warning-100)}pri-view-title .view-title .document-states .state-label-wrapper .state-label{font-weight:600;font-size:10px;text-transform:uppercase}pri-view-title .view-title .document-states .is-lock-description-wrapper{display:flex;align-items:center;margin-left:8px}pri-view-title .view-title .document-states .is-lock-description-wrapper .is-lock-description{background-color:var(--grey-6);color:#fff;display:flex;align-items:center;padding:1px 3px}pri-view-title .view-title .document-states .is-lock-description-wrapper .is-lock-description .is-lock-span{font-weight:600;font-size:10px;text-transform:uppercase}pri-view-title .view-title .document-states .is-lock-description-wrapper .help-lock-description-tooltip{margin-left:8px;display:flex;align-items:center;justify-content:center;border-radius:100%;color:var(--grey-6);font-weight:700;font-size:8pt;cursor:pointer;border:1px solid var(--grey-6);background-color:transparent;width:16px;height:16px;flex-shrink:0}pri-view-title .view-title .document-states .is-lock-description-wrapper .help-lock-description-tooltip:hover{background:var(--grey-6);color:#fff}@media only screen and (max-width: 991px){pri-view-title .view-title{padding:0 8px;margin-bottom:8px}pri-view-title .view-title .view-title-value-wrapper .view-title-value{font-size:14px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.BroadcastService }, { type: i2.EditionHistoryEventService }, { type: i0.ChangeDetectorRef }, { type: i0.ApplicationRef }, { type: i1$1.SettingsService }, { type: i1$1.AppContextService }]; }, propDecorators: { historyItems: [{\r\n                type: Input\r\n            }], \r\n        /** Outlet which the record selector was constructed.*/\r\n        outlet: [{\r\n                type: Input\r\n            }] } });\n\nclass LayoutRootComponent {\r\n    constructor(shellStateService, appContext, zopimService, layoutRootService, shellConfigurationService, broadcastService, hotKeysService, deviceService, upgradeApplicationService, exceptionHandlerService, settingsService, domService, identityService, menuService, changeDetectorRef, rightPanelService, i18nService, telemetryService, errorsService) {\r\n        this.shellStateService = shellStateService;\r\n        this.appContext = appContext;\r\n        this.zopimService = zopimService;\r\n        this.layoutRootService = layoutRootService;\r\n        this.shellConfigurationService = shellConfigurationService;\r\n        this.broadcastService = broadcastService;\r\n        this.hotKeysService = hotKeysService;\r\n        this.deviceService = deviceService;\r\n        this.upgradeApplicationService = upgradeApplicationService;\r\n        this.exceptionHandlerService = exceptionHandlerService;\r\n        this.settingsService = settingsService;\r\n        this.domService = domService;\r\n        this.identityService = identityService;\r\n        this.menuService = menuService;\r\n        this.changeDetectorRef = changeDetectorRef;\r\n        this.rightPanelService = rightPanelService;\r\n        this.i18nService = i18nService;\r\n        this.telemetryService = telemetryService;\r\n        this.errorsService = errorsService;\r\n        this.iosDevice = false;\r\n        this.showingAlerts = false;\r\n        this.picture = '';\r\n        this.hasActions = false;\r\n        this.hasErrorInLoading = false;\r\n        this.currentSize = 1200 /* ScreenBreakpointEnum.lg */;\r\n        this.progressBars = [];\r\n        this.destroy$ = new Subject();\r\n        this.readShellConfiguration();\r\n    }\r\n    onResize(event) {\r\n        this.onWindowResize(event.target.innerWidth);\r\n    }\r\n    onToggleMenuState() {\r\n        this.menuIsCollapsed = !this.menuIsCollapsed;\r\n        this.layoutRootService.emitMenuState(this.menuIsCollapsed);\r\n        const devicesEnum = this.deviceService.getDevice();\r\n        if (devicesEnum === \"ExtraSmallDevices\" /* DevicesEnum.ExtraSmallDevices */ ||\r\n            devicesEnum === \"SmallDevices\" /* DevicesEnum.SmallDevices */ ||\r\n            devicesEnum === \"MediumDevices\" /* DevicesEnum.MediumDevices */) {\r\n            this.broadcastService.emit('contextBarOnlyClose');\r\n        }\r\n    }\r\n    ngOnInit() {\r\n        this.addHotKeys();\r\n        this.broadcastService.subscribe('hasErrorInLoading', (data) => {\r\n            this.hasErrorInLoading = data;\r\n        });\r\n        this.broadcastService.subscribe('onToggleMenuState', () => {\r\n            this.onToggleMenuState();\r\n        });\r\n        this.broadcastService.subscribe('onCloseMenuState', () => {\r\n            this.closeMenu();\r\n        });\r\n        this.broadcastService.subscribe('addProgressBar', (data) => {\r\n            this.handleDownloadPanelComponent(data);\r\n        });\r\n        this.listenRightPanelOpen();\r\n        this.listenRightPanelClose();\r\n        this.broadcastService.subscribe('navigateToHomePage', () => {\r\n            this.menuService.navigateToHomePage();\r\n        });\r\n        const isSafari = !!navigator.userAgent.match(/Version\\/[\\d\\.]+.*Safari/);\r\n        const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\r\n        if (isSafari && iOS) {\r\n            this.iosDevice = true;\r\n        }\r\n        // For mobile devices, the menu should appear close as default\r\n        if (this.deviceService.isMobileDevice()) {\r\n            this.closeMenu();\r\n        }\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    ngAfterViewInit() {\r\n        this.onWindowResize(window.innerWidth);\r\n    }\r\n    ngAfterContentChecked() {\r\n        this.hasActions = this.wrapper?.nativeElement?.querySelector('.actions-wrapper') ? true : false;\r\n        if (this.hasActions) {\r\n            this.actionsHeight = this.wrapper?.nativeElement?.querySelector('.actions-wrapper')?.offsetHeight;\r\n        }\r\n        else {\r\n            this.actionsHeight = 0;\r\n        }\r\n    }\r\n    ngOnDestroy() {\r\n        this.destroy$.next();\r\n        this.destroy$.unsubscribe();\r\n    }\r\n    scrollHandler(event) {\r\n        this.layoutRootService.emitScrollEvent(event);\r\n    }\r\n    listenRightPanelOpen() {\r\n        this.rightPanelService.openRightPanel$.pipe(takeUntil$1(this.destroy$)).subscribe((config) => {\r\n            if (this.rightPanelService.currentOpenComponentRef) {\r\n                this.rightPanelService.closeRightPanel$.next({\r\n                    componentRef: this.rightPanelService.currentOpenComponentRef,\r\n                    onCloseFinish: () => this.handleRightPanelComponentOpen(config)\r\n                });\r\n            }\r\n            else {\r\n                this.handleRightPanelComponentOpen(config);\r\n            }\r\n        });\r\n    }\r\n    listenRightPanelClose() {\r\n        this.rightPanelService.closeRightPanel$\r\n            .pipe(filter$1(({ componentRef }) => {\r\n            if (!componentRef) {\r\n                componentRef = this.rightPanelService.currentOpenComponentRef;\r\n            }\r\n            return Boolean(componentRef);\r\n        }), takeUntil$1(this.destroy$))\r\n            .subscribe((callBackValue) => {\r\n            this.handleRightPanelComponentClose(callBackValue);\r\n        });\r\n    }\r\n    async readShellConfiguration() {\r\n        await this.i18nService.load();\r\n        await this.shellConfigurationService.getGeneralConfiguration().then(async (shellConfiguration) => {\r\n            this.configuration = shellConfiguration;\r\n            await this.checkToUpdates();\r\n        });\r\n    }\r\n    async checkToUpdates() {\r\n        const isElevation = await this.settingsService.isElevationFW();\r\n        if ((isElevation &&\r\n            this.identityService.isAuthenticated() &&\r\n            this.appContext.organizationKey &&\r\n            !this.appContext.hasErrorInContextLoading) ||\r\n            this.settingsService.environmentSettings?.requireUpgrade) {\r\n            this.upgradeApplicationService\r\n                .upgradeApplication()\r\n                .then((data) => {\r\n                if (data) {\r\n                    this.handleUpgradeComponent();\r\n                    this.broadcastService.emit('clientAppReady');\r\n                }\r\n                else {\r\n                    this.init();\r\n                }\r\n            })\r\n                .catch(() => {\r\n                this.exceptionHandlerService.showError({ status: 500 }, false);\r\n            });\r\n        }\r\n        else {\r\n            this.init();\r\n        }\r\n    }\r\n    handleContextBarComponent() {\r\n        if (!this.configuration.topbarSettings.hiddenContextBarButton) {\r\n            this.domService.appendComponentToBodyAndGetReference(ContextBarComponent);\r\n        }\r\n    }\r\n    handleUpgradeComponent() {\r\n        const upgradeComponentRef = this.domService.appendComponentToBodyAndGetReference(PriUpgradeComponent);\r\n        upgradeComponentRef.instance.upgradeCompleted.pipe(take(1)).subscribe(() => {\r\n            this.domService.removeComponentFromBody(upgradeComponentRef);\r\n            this.init();\r\n        });\r\n    }\r\n    handleDownloadPanelComponent({ overlay, progressBar }) {\r\n        this.progressBars.push(progressBar);\r\n        const downloadComponentData = { progressBars: this.progressBars, overlay };\r\n        const downloadComponentRef = this.domService.appendComponentToBodyAndGetReference(DownloadsPanelComponent, downloadComponentData);\r\n        const { total, onComplete, onAllComplete } = progressBar;\r\n        const { instance } = downloadComponentRef;\r\n        onComplete.pipe(take(total)).subscribe((uid) => instance.downloadComplete(uid));\r\n        onAllComplete.pipe(take(1)).subscribe((uid) => {\r\n            instance.allDownloadComplete(uid);\r\n            this.progressBars = [];\r\n            setTimeout(() => this.domService.removeComponentFromBody(downloadComponentRef), 300);\r\n        });\r\n    }\r\n    handleRightPanelComponentOpen(config) {\r\n        const rightPanelComponentData = {\r\n            config: {\r\n                ...config,\r\n                closeOnOutsideClick: config.closeOnOutsideClick ?? true\r\n            }\r\n        };\r\n        const rightPanelComponentRef = this.domService.appendComponentToBodyAndGetReference(RightPanelComponent, rightPanelComponentData);\r\n        this.rightPanelService.currentOpenComponentRef = rightPanelComponentRef;\r\n        const { instance } = rightPanelComponentRef;\r\n        instance.open();\r\n    }\r\n    handleRightPanelComponentClose(callBackValue) {\r\n        if (this.rightPanelService.currentOpenComponentRef) {\r\n            this.rightPanelService.currentOpenComponentRef.instance.panelIsOpened = false;\r\n            const cssAnimationDurationInMS = 300;\r\n            setTimeout(() => {\r\n                this.rightPanelService.currentOpenComponentRef?.destroy();\r\n                this.rightPanelService.currentOpenComponentRef = null;\r\n                callBackValue?.onCloseFinish?.();\r\n            }, cssAnimationDurationInMS);\r\n        }\r\n    }\r\n    init() {\r\n        if (this.configuration !== null && !this.appContext.hasErrorInContextLoading) {\r\n            this.handleContextBarComponent();\r\n            this.parseConfigurationUris();\r\n            this.showingAlerts = this.appContext.hasAlerts();\r\n            if (this.configuration.zendeskAccountUrl?.length) {\r\n                this.zopimService.init(this.configuration.zendeskAccountUrl, this.showingAlerts);\r\n            }\r\n            this.ready = true;\r\n            if (this.identityService.isEnabled && !this.identityService.isAuthenticated()) {\r\n                return;\r\n            }\r\n            this.telemetryService.measure('ClientAppBootstrap', 'navigationStart', true);\r\n            this.broadcastService.emit('clientAppReady');\r\n        }\r\n        else {\r\n            this.errorInContext = true;\r\n            this.broadcastService.emit('clientAppReady');\r\n            this.errorsService.showErrorMessage({\r\n                message: this.i18nService.get('shell.components.RES_Error_OnApplicationInit'),\r\n                canBackToHome: false,\r\n                canBackToPreviousPage: false,\r\n                canGoToSubscriptionsPage: true\r\n            });\r\n        }\r\n        this.changeDetectorRef.detectChanges();\r\n    }\r\n    parseConfigurationUris() {\r\n        const { rootMenuUri, rootCustomMenuUri, subscriptionsSourceUri, companiesSourceUri, workInProgressItemsUri } = this.configuration.shellResources;\r\n        this.rootMenuUri = rootMenuUri;\r\n        this.rootCustomMenuUri = rootCustomMenuUri;\r\n        this.subscriptionsSourceUri = subscriptionsSourceUri;\r\n        // force to not have companies if doesn't have subscriptions\r\n        this.companiesSourceUri = !this.subscriptionsSourceUri ? '' : companiesSourceUri;\r\n        this.workInProgressItemsUri = workInProgressItemsUri;\r\n    }\r\n    addHotKeys() {\r\n        const hotkeysDefinitions = [\r\n            {\r\n                // Ctrl + Alt + M => Toggle Menu\r\n                hotkey: [17 /* HotkeysKeys.Ctrl */, 18 /* HotkeysKeys.Alt */, 77 /* HotkeysKeys.M */],\r\n                action: () => {\r\n                    this.onToggleMenuState();\r\n                }\r\n            }\r\n        ];\r\n        this.hotKeysService.addHotkeys(hotkeysDefinitions);\r\n    }\r\n    onWindowResize(width) {\r\n        if (width < 992 /* ScreenBreakpointEnum.md */ && this.currentSize !== 992 /* ScreenBreakpointEnum.md */) {\r\n            this.currentSize = 992 /* ScreenBreakpointEnum.md */;\r\n            this.menuIsCollapsed = true;\r\n        }\r\n        if (width >= 992 /* ScreenBreakpointEnum.md */) {\r\n            this.currentSize = 1200 /* ScreenBreakpointEnum.lg */;\r\n            this.menuIsCollapsed = false;\r\n        }\r\n    }\r\n    closeMenu() {\r\n        this.menuIsCollapsed = true;\r\n        this.layoutRootService.emitMenuState(this.menuIsCollapsed);\r\n    }\r\n}\r\nLayoutRootComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LayoutRootComponent, deps: [{ token: i1$1.ShellStateService }, { token: i1$1.AppContextService }, { token: ZopimService }, { token: LayoutRootService }, { token: ShellConfigurationService }, { token: i1$1.BroadcastService }, { token: i1$1.HotkeysService }, { token: i1$1.DeviceService }, { token: i1$1.UpgradeApplicationService }, { token: i2.ExceptionHandlerService }, { token: i1$1.SettingsService }, { token: i1$1.DomService }, { token: i1$1.IdentityService }, { token: MenuService }, { token: i0.ChangeDetectorRef }, { token: i7$1.RightPanelService }, { token: i4.I18nService }, { token: i1$1.TelemetryService }, { token: i1$1.ErrorsService }], target: i0.ɵɵFactoryTarget.Component });\r\nLayoutRootComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.3.0\", type: LayoutRootComponent, selector: \"pri-layout-root\", host: { listeners: { \"window:resize\": \"onResize($event)\" } }, viewQueries: [{ propertyName: \"wrapper\", first: true, predicate: [\"wrapper\"], descendants: true }], ngImport: i0, template: \"<div *ngIf=\\\"ready && !errorInContext\\\" class=\\\"root-container\\\">\\r\\n\\r\\n    <pri-alert-bar *ngIf=\\\"showingAlerts\\\"></pri-alert-bar>\\r\\n\\r\\n    <pri-topbar (toggleMenuState)=\\\"onToggleMenuState()\\\" [userName]=\\\"userName\\\" [userPicture]=\\\"picture\\\"\\r\\n        [userInitials]=\\\"userInitials\\\"></pri-topbar>\\r\\n\\r\\n    <div class=\\\"page-container\\\">\\r\\n        <pri-sidebar [rootMenuUri]=\\\"rootMenuUri\\\" [rootCustomMenuUri]=\\\"rootCustomMenuUri\\\" [subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n            [companiesSourceUri]=\\\"companiesSourceUri\\\" [workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n            [menuIsCollapsed]=\\\"menuIsCollapsed\\\"></pri-sidebar>\\r\\n        <div class=\\\"pri-editor-view\\\" [ngClass]=\\\"{'is-collapsed': menuIsCollapsed}\\\">\\r\\n            <pri-view-title></pri-view-title>\\r\\n            <div #wrapper class=\\\"router-wrapper\\\" [ngClass]=\\\"{'has-footer' : hasActions}\\\"\\r\\n                [style.marginBottom.px]=\\\"actionsHeight\\\">\\r\\n                <router-outlet></router-outlet>\\r\\n            </div>\\r\\n            <router-outlet name=\\\"popup\\\"></router-outlet>\\r\\n            <router-outlet name=\\\"panel\\\"></router-outlet>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Loading layer -->\\r\\n    <div *ngIf=\\\"shellStateService && shellStateService.isLoadingState\\\">\\r\\n        <div class=\\\"page-overlay\\\"></div>\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<div *ngIf=\\\"errorInContext\\\" class=\\\"root-container\\\">\\r\\n    <router-outlet></router-outlet>\\r\\n</div>\", styles: [\"pri-layout-root{width:100%;height:100%}pri-layout-root .root-container{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}pri-layout-root .root-container .page-container{display:flex;width:100%;height:100%;overflow:hidden;position:relative}pri-layout-root .root-container .page-container .pri-editor-view{display:flex;width:100%;height:100%;padding-top:28px;overflow:hidden;flex-direction:column;margin-left:20rem;transition:all .2s ease}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed{margin-left:3.5714285714rem}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed .router-wrapper .actions-wrapper{left:3.5714285714rem}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper{width:100%;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;padding:0 28px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper.has-footer{padding-bottom:8px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper .actions-wrapper{position:fixed;left:20rem;background-color:var(--grey-3);margin:0 28px;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);transition:all .2s ease;padding:4px 0}pri-layout-root .page-overlay{z-index:99999;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;background-color:#00000026}@media only screen and (max-width: 991px){pri-layout-root{width:100%;height:100%}pri-layout-root .root-container .page-container .pri-editor-view{padding-top:16px;margin-left:0}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed{margin-left:0}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed .router-wrapper .actions-wrapper{left:0}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper{padding:0 8px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper .actions-wrapper{left:0;margin:0 8px}}\\n\"], dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i1$2.RouterOutlet, selector: \"router-outlet\", outputs: [\"activate\", \"deactivate\", \"attach\", \"detach\"], exportAs: [\"outlet\"] }, { kind: \"component\", type: AlertBarComponent, selector: \"pri-alert-bar\" }, { kind: \"component\", type: TopbarComponent, selector: \"pri-topbar\", inputs: [\"menuIsCollapsed\", \"userName\", \"userPicture\", \"userInitials\"], outputs: [\"toggleMenuState\"] }, { kind: \"component\", type: SidebarComponent, selector: \"pri-sidebar\", inputs: [\"menuIsCollapsed\", \"rootMenuUri\", \"rootCustomMenuUri\", \"subscriptionsSourceUri\", \"companiesSourceUri\", \"workInProgressItemsUri\", \"defaultMenuCaptionPath\"] }, { kind: \"component\", type: ViewTitleComponent, selector: \"pri-view-title\", inputs: [\"historyItems\", \"outlet\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: LayoutRootComponent, decorators: [{\r\n            type: Component,\r\n            args: [{ selector: 'pri-layout-root', encapsulation: ViewEncapsulation.None, template: \"<div *ngIf=\\\"ready && !errorInContext\\\" class=\\\"root-container\\\">\\r\\n\\r\\n    <pri-alert-bar *ngIf=\\\"showingAlerts\\\"></pri-alert-bar>\\r\\n\\r\\n    <pri-topbar (toggleMenuState)=\\\"onToggleMenuState()\\\" [userName]=\\\"userName\\\" [userPicture]=\\\"picture\\\"\\r\\n        [userInitials]=\\\"userInitials\\\"></pri-topbar>\\r\\n\\r\\n    <div class=\\\"page-container\\\">\\r\\n        <pri-sidebar [rootMenuUri]=\\\"rootMenuUri\\\" [rootCustomMenuUri]=\\\"rootCustomMenuUri\\\" [subscriptionsSourceUri]=\\\"subscriptionsSourceUri\\\"\\r\\n            [companiesSourceUri]=\\\"companiesSourceUri\\\" [workInProgressItemsUri]=\\\"workInProgressItemsUri\\\"\\r\\n            [menuIsCollapsed]=\\\"menuIsCollapsed\\\"></pri-sidebar>\\r\\n        <div class=\\\"pri-editor-view\\\" [ngClass]=\\\"{'is-collapsed': menuIsCollapsed}\\\">\\r\\n            <pri-view-title></pri-view-title>\\r\\n            <div #wrapper class=\\\"router-wrapper\\\" [ngClass]=\\\"{'has-footer' : hasActions}\\\"\\r\\n                [style.marginBottom.px]=\\\"actionsHeight\\\">\\r\\n                <router-outlet></router-outlet>\\r\\n            </div>\\r\\n            <router-outlet name=\\\"popup\\\"></router-outlet>\\r\\n            <router-outlet name=\\\"panel\\\"></router-outlet>\\r\\n        </div>\\r\\n    </div>\\r\\n\\r\\n    <!-- Loading layer -->\\r\\n    <div *ngIf=\\\"shellStateService && shellStateService.isLoadingState\\\">\\r\\n        <div class=\\\"page-overlay\\\"></div>\\r\\n    </div>\\r\\n</div>\\r\\n\\r\\n<div *ngIf=\\\"errorInContext\\\" class=\\\"root-container\\\">\\r\\n    <router-outlet></router-outlet>\\r\\n</div>\", styles: [\"pri-layout-root{width:100%;height:100%}pri-layout-root .root-container{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}pri-layout-root .root-container .page-container{display:flex;width:100%;height:100%;overflow:hidden;position:relative}pri-layout-root .root-container .page-container .pri-editor-view{display:flex;width:100%;height:100%;padding-top:28px;overflow:hidden;flex-direction:column;margin-left:20rem;transition:all .2s ease}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed{margin-left:3.5714285714rem}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed .router-wrapper .actions-wrapper{left:3.5714285714rem}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper{width:100%;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;padding:0 28px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper.has-footer{padding-bottom:8px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper .actions-wrapper{position:fixed;left:20rem;background-color:var(--grey-3);margin:0 28px;right:0;bottom:0;z-index:1003;border-top:1px solid var(--theme-100);transition:all .2s ease;padding:4px 0}pri-layout-root .page-overlay{z-index:99999;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;background-color:#00000026}@media only screen and (max-width: 991px){pri-layout-root{width:100%;height:100%}pri-layout-root .root-container .page-container .pri-editor-view{padding-top:16px;margin-left:0}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed{margin-left:0}pri-layout-root .root-container .page-container .pri-editor-view.is-collapsed .router-wrapper .actions-wrapper{left:0}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper{padding:0 8px}pri-layout-root .root-container .page-container .pri-editor-view .router-wrapper .actions-wrapper{left:0;margin:0 8px}}\\n\"] }]\r\n        }], ctorParameters: function () { return [{ type: i1$1.ShellStateService }, { type: i1$1.AppContextService }, { type: ZopimService }, { type: LayoutRootService }, { type: ShellConfigurationService }, { type: i1$1.BroadcastService }, { type: i1$1.HotkeysService }, { type: i1$1.DeviceService }, { type: i1$1.UpgradeApplicationService }, { type: i2.ExceptionHandlerService }, { type: i1$1.SettingsService }, { type: i1$1.DomService }, { type: i1$1.IdentityService }, { type: MenuService }, { type: i0.ChangeDetectorRef }, { type: i7$1.RightPanelService }, { type: i4.I18nService }, { type: i1$1.TelemetryService }, { type: i1$1.ErrorsService }]; }, propDecorators: { wrapper: [{\r\n                type: ViewChild,\r\n                args: ['wrapper', { static: false }]\r\n            }], onResize: [{\r\n                type: HostListener,\r\n                args: ['window:resize', ['$event']]\r\n            }] } });\n\nconst popoverModule = PopoverModule.forRoot();\r\nconst primaveraI18nModule = PrimaveraI18nModule.forRoot();\r\nconst primaveraServicesModule = PrimaveraServicesModule.forRoot();\r\nconst componentsModule = ComponentsModule.forRoot();\r\nclass ShellModule {\r\n    static forRoot() {\r\n        return {\r\n            ngModule: ShellModule\r\n        };\r\n    }\r\n}\r\nShellModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nShellModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellModule, declarations: [\r\n        // DeclarationsComponents\r\n        AlertBarComponent,\r\n        SubscriptionUsersWrapperComponent,\r\n        SubscriptionUserCardComponent,\r\n        AboutComponent,\r\n        SubscriptionUserInvitationComponent,\r\n        SupportRequestComponent,\r\n        MenuComponent,\r\n        RootMenuSelectorComponent,\r\n        RootMenuSelectorItemComponent,\r\n        SubMenuComponent,\r\n        SubMenuItemComponent,\r\n        LayoutRootComponent,\r\n        TopbarComponent,\r\n        SidebarComponent,\r\n        AlertBarComponent,\r\n        QuickActionsComponent,\r\n        ViewTitleComponent,\r\n        UserAreaComponent,\r\n        ContextBarComponent,\r\n        ContextPageComponent,\r\n        ContextComponentContainerComponent,\r\n        ApplicationsMenuComponent,\r\n        DownloadsPanelComponent,\r\n        PriUpgradeComponent,\r\n        DraftsComponent,\r\n        SelectorComponent,\r\n        FilterPipe,\r\n        SortByPropertyPipe,\r\n        MenutItemIsSelectedDirective,\r\n        SubMenuItemIconDirective], imports: [CommonModule,\r\n        FormsModule,\r\n        ReactiveFormsModule, i2.ComponentsModule, i4$2.PopoverModule, i4.PrimaveraI18nModule, PushNotificationsModule,\r\n        RouterModule,\r\n        MatIconModule,\r\n        MatTooltipModule,\r\n        MatTabsModule,\r\n        ScrollingModule,\r\n        PrimaveraSearchModule,\r\n        A11yModule, i1$1.PrimaveraServicesModule, PriPopoverDirective], exports: [AlertBarComponent,\r\n        SubscriptionUsersWrapperComponent,\r\n        LayoutRootComponent,\r\n        SidebarComponent,\r\n        TopbarComponent,\r\n        QuickActionsComponent,\r\n        SupportRequestComponent,\r\n        MenuComponent,\r\n        DownloadsPanelComponent] });\r\nShellModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellModule, providers: [\r\n        // ProvidersServices\r\n        ZopimService,\r\n        LayoutRootService,\r\n        ScrollDispatcher,\r\n        ZendeskConfig\r\n    ], imports: [CommonModule,\r\n        FormsModule,\r\n        ReactiveFormsModule,\r\n        componentsModule,\r\n        popoverModule,\r\n        primaveraI18nModule,\r\n        PushNotificationsModule,\r\n        RouterModule,\r\n        MatIconModule,\r\n        MatTooltipModule,\r\n        MatTabsModule,\r\n        ScrollingModule,\r\n        PrimaveraSearchModule,\r\n        A11yModule,\r\n        primaveraServicesModule] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.3.0\", ngImport: i0, type: ShellModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [\r\n                        CommonModule,\r\n                        FormsModule,\r\n                        ReactiveFormsModule,\r\n                        componentsModule,\r\n                        popoverModule,\r\n                        primaveraI18nModule,\r\n                        PushNotificationsModule,\r\n                        RouterModule,\r\n                        MatIconModule,\r\n                        MatTooltipModule,\r\n                        MatTabsModule,\r\n                        ScrollingModule,\r\n                        PrimaveraSearchModule,\r\n                        A11yModule,\r\n                        primaveraServicesModule,\r\n                        PriPopoverDirective\r\n                    ],\r\n                    declarations: [\r\n                        // DeclarationsComponents\r\n                        AlertBarComponent,\r\n                        SubscriptionUsersWrapperComponent,\r\n                        SubscriptionUserCardComponent,\r\n                        AboutComponent,\r\n                        SubscriptionUserInvitationComponent,\r\n                        SupportRequestComponent,\r\n                        MenuComponent,\r\n                        RootMenuSelectorComponent,\r\n                        RootMenuSelectorItemComponent,\r\n                        SubMenuComponent,\r\n                        SubMenuItemComponent,\r\n                        LayoutRootComponent,\r\n                        TopbarComponent,\r\n                        SidebarComponent,\r\n                        AlertBarComponent,\r\n                        QuickActionsComponent,\r\n                        ViewTitleComponent,\r\n                        UserAreaComponent,\r\n                        ContextBarComponent,\r\n                        ContextPageComponent,\r\n                        ContextComponentContainerComponent,\r\n                        ApplicationsMenuComponent,\r\n                        DownloadsPanelComponent,\r\n                        PriUpgradeComponent,\r\n                        DraftsComponent,\r\n                        SelectorComponent,\r\n                        FilterPipe,\r\n                        SortByPropertyPipe,\r\n                        MenutItemIsSelectedDirective,\r\n                        SubMenuItemIconDirective\r\n                    ],\r\n                    providers: [\r\n                        // ProvidersServices\r\n                        ZopimService,\r\n                        LayoutRootService,\r\n                        ScrollDispatcher,\r\n                        ZendeskConfig\r\n                    ],\r\n                    exports: [\r\n                        AlertBarComponent,\r\n                        SubscriptionUsersWrapperComponent,\r\n                        LayoutRootComponent,\r\n                        SidebarComponent,\r\n                        TopbarComponent,\r\n                        QuickActionsComponent,\r\n                        SupportRequestComponent,\r\n                        MenuComponent,\r\n                        DownloadsPanelComponent\r\n                    ]\r\n                }]\r\n        }] });\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { AlertBarComponent, DownloadsPanelComponent, DraftsComponent, LayoutRootComponent, MenuComponent, MenuDefinition, MenuItem, MenuService, QuickActionsComponent, RootMenuSelectorComponent, RootMenuSelectorItemComponent, SelectorComponent, ShellModule, SidebarComponent, SubMenuComponent, SubMenuItemComponent, SubscriptionUsersWrapperComponent, SupportRequestComponent, TopbarComponent, componentsModule, popoverModule, primaveraI18nModule, primaveraServicesModule };\n","import * as i0 from '@angular/core';\nimport { Injectable, Optional, Inject, NgModule, InjectionToken } from '@angular/core';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders, HttpParams, HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { Subject, of, from, race, throwError, combineLatest, merge } from 'rxjs';\nimport { filter, tap, debounceTime, delay, switchMap, map, first, catchError, timeout, take, mergeMap } from 'rxjs/operators';\nimport fsha256 from 'fast-sha256';\n\nclass DateTimeProvider {\r\n}\r\nclass SystemDateTimeProvider extends DateTimeProvider {\r\n    now() {\r\n        return Date.now();\r\n    }\r\n    new() {\r\n        return new Date();\r\n    }\r\n}\r\nSystemDateTimeProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: SystemDateTimeProvider, deps: null, target: i0.ɵɵFactoryTarget.Injectable });\r\nSystemDateTimeProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: SystemDateTimeProvider });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: SystemDateTimeProvider, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Additional options that can be passed to tryLogin.\r\n */\r\nclass LoginOptions {\r\n    constructor() {\r\n        /**\r\n         * Set this to true to disable the nonce\r\n         * check which is used to avoid\r\n         * replay attacks.\r\n         * This flag should never be true in\r\n         * production environments.\r\n         */\r\n        this.disableNonceCheck = false;\r\n        /**\r\n         * Normally, you want to clear your hash fragment after\r\n         * the lib read the token(s) so that they are not displayed\r\n         * anymore in the url. If not, set this to true. For code flow\r\n         * this controls removing query string values.\r\n         */\r\n        this.preventClearHashAfterLogin = false;\r\n    }\r\n}\r\n/**\r\n * Defines the logging interface the OAuthService uses\r\n * internally. Is compatible with the `console` object,\r\n * but you can provide your own implementation as well\r\n * through dependency injection.\r\n */\r\nclass OAuthLogger {\r\n}\r\n/**\r\n * Defines a simple storage that can be used for\r\n * storing the tokens at client side.\r\n * Is compatible to localStorage and sessionStorage,\r\n * but you can also create your own implementations.\r\n */\r\nclass OAuthStorage {\r\n}\r\nclass MemoryStorage {\r\n    constructor() {\r\n        this.data = new Map();\r\n    }\r\n    getItem(key) {\r\n        return this.data.get(key);\r\n    }\r\n    removeItem(key) {\r\n        this.data.delete(key);\r\n    }\r\n    setItem(key, data) {\r\n        this.data.set(key, data);\r\n    }\r\n}\r\nMemoryStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: MemoryStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nMemoryStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: MemoryStorage });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: MemoryStorage, decorators: [{\r\n            type: Injectable\r\n        }] });\r\n/**\r\n * Represents the received tokens, the received state\r\n * and the parsed claims from the id-token.\r\n */\r\nclass ReceivedTokens {\r\n}\n\nclass OAuthEvent {\r\n    constructor(type) {\r\n        this.type = type;\r\n    }\r\n}\r\nclass OAuthSuccessEvent extends OAuthEvent {\r\n    constructor(type, info = null) {\r\n        super(type);\r\n        this.info = info;\r\n    }\r\n}\r\nclass OAuthInfoEvent extends OAuthEvent {\r\n    constructor(type, info = null) {\r\n        super(type);\r\n        this.info = info;\r\n    }\r\n}\r\nclass OAuthErrorEvent extends OAuthEvent {\r\n    constructor(type, reason, params = null) {\r\n        super(type);\r\n        this.reason = reason;\r\n        this.params = params;\r\n    }\r\n}\n\n// see: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_.22Unicode_Problem.22\r\nfunction b64DecodeUnicode(str) {\r\n    const base64 = str.replace(/\\-/g, '+').replace(/\\_/g, '/');\r\n    return decodeURIComponent(atob(base64)\r\n        .split('')\r\n        .map(function (c) {\r\n        return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\r\n    })\r\n        .join(''));\r\n}\r\nfunction base64UrlEncode(str) {\r\n    const base64 = btoa(str);\r\n    return base64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\r\n}\n\nclass AuthConfig {\r\n    constructor(json) {\r\n        /**\r\n         * The client's id as registered with the auth server\r\n         */\r\n        this.clientId = '';\r\n        /**\r\n         * The client's redirectUri as registered with the auth server\r\n         */\r\n        this.redirectUri = '';\r\n        /**\r\n         * An optional second redirectUri where the auth server\r\n         * redirects the user to after logging out.\r\n         */\r\n        this.postLogoutRedirectUri = '';\r\n        /**\r\n         * Defines whether to use 'redirectUri' as a replacement\r\n         * of 'postLogoutRedirectUri' if the latter is not set.\r\n         */\r\n        this.redirectUriAsPostLogoutRedirectUriFallback = true;\r\n        /**\r\n         * The auth server's endpoint that allows to log\r\n         * the user in when using implicit flow.\r\n         */\r\n        this.loginUrl = '';\r\n        /**\r\n         * The requested scopes\r\n         */\r\n        this.scope = 'openid profile';\r\n        this.resource = '';\r\n        this.rngUrl = '';\r\n        /**\r\n         * Defines whether to use OpenId Connect during\r\n         * implicit flow.\r\n         */\r\n        this.oidc = true;\r\n        /**\r\n         * Defines whether to request an access token during\r\n         * implicit flow.\r\n         */\r\n        this.requestAccessToken = true;\r\n        this.options = null;\r\n        /**\r\n         * The issuer's uri.\r\n         */\r\n        this.issuer = '';\r\n        /**\r\n         * The logout url.\r\n         */\r\n        this.logoutUrl = '';\r\n        /**\r\n         * Defines whether to clear the hash fragment after logging in.\r\n         */\r\n        this.clearHashAfterLogin = true;\r\n        /**\r\n         * Url of the token endpoint as defined by OpenId Connect and OAuth 2.\r\n         */\r\n        this.tokenEndpoint = null;\r\n        /**\r\n         * Url of the revocation endpoint as defined by OpenId Connect and OAuth 2.\r\n         */\r\n        this.revocationEndpoint = null;\r\n        /**\r\n         * Names of known parameters sent out in the TokenResponse. https://tools.ietf.org/html/rfc6749#section-5.1\r\n         */\r\n        this.customTokenParameters = [];\r\n        /**\r\n         * Url of the userinfo endpoint as defined by OpenId Connect.\r\n         */\r\n        this.userinfoEndpoint = null;\r\n        this.responseType = '';\r\n        /**\r\n         * Defines whether additional debug information should\r\n         * be shown at the console. Note that in certain browsers\r\n         * the verbosity of the console needs to be explicitly set\r\n         * to include Debug level messages.\r\n         */\r\n        this.showDebugInformation = false;\r\n        /**\r\n         * The redirect uri used when doing silent refresh.\r\n         */\r\n        this.silentRefreshRedirectUri = '';\r\n        this.silentRefreshMessagePrefix = '';\r\n        /**\r\n         * Set this to true to display the iframe used for\r\n         * silent refresh for debugging.\r\n         */\r\n        this.silentRefreshShowIFrame = false;\r\n        /**\r\n         * Timeout for silent refresh.\r\n         * @internal\r\n         * depreacted b/c of typo, see silentRefreshTimeout\r\n         */\r\n        this.siletRefreshTimeout = 1000 * 20;\r\n        /**\r\n         * Timeout for silent refresh.\r\n         */\r\n        this.silentRefreshTimeout = 1000 * 20;\r\n        /**\r\n         * Some auth servers don't allow using password flow\r\n         * w/o a client secret while the standards do not\r\n         * demand for it. In this case, you can set a password\r\n         * here. As this password is exposed to the public\r\n         * it does not bring additional security and is therefore\r\n         * as good as using no password.\r\n         */\r\n        this.dummyClientSecret = null;\r\n        /**\r\n         * Defines whether https is required.\r\n         * The default value is remoteOnly which only allows\r\n         * http for localhost, while every other domains need\r\n         * to be used with https.\r\n         */\r\n        this.requireHttps = 'remoteOnly';\r\n        /**\r\n         * Defines whether every url provided by the discovery\r\n         * document has to start with the issuer's url.\r\n         */\r\n        this.strictDiscoveryDocumentValidation = true;\r\n        /**\r\n         * JSON Web Key Set (https://tools.ietf.org/html/rfc7517)\r\n         * with keys used to validate received id_tokens.\r\n         * This is taken out of the disovery document. Can be set manually too.\r\n         */\r\n        this.jwks = null;\r\n        /**\r\n         * Map with additional query parameter that are appended to\r\n         * the request when initializing implicit flow.\r\n         */\r\n        this.customQueryParams = null;\r\n        this.silentRefreshIFrameName = 'angular-oauth-oidc-silent-refresh-iframe';\r\n        /**\r\n         * Defines when the token_timeout event should be raised.\r\n         * If you set this to the default value 0.75, the event\r\n         * is triggered after 75% of the token's life time.\r\n         */\r\n        this.timeoutFactor = 0.75;\r\n        /**\r\n         * If true, the lib will try to check whether the user\r\n         * is still logged in on a regular basis as described\r\n         * in http://openid.net/specs/openid-connect-session-1_0.html#ChangeNotification\r\n         */\r\n        this.sessionChecksEnabled = false;\r\n        /**\r\n         * Interval in msec for checking the session\r\n         * according to http://openid.net/specs/openid-connect-session-1_0.html#ChangeNotification\r\n         */\r\n        this.sessionCheckIntervall = 3 * 1000;\r\n        /**\r\n         * Url for the iframe used for session checks\r\n         */\r\n        this.sessionCheckIFrameUrl = null;\r\n        /**\r\n         * Name of the iframe to use for session checks\r\n         */\r\n        this.sessionCheckIFrameName = 'angular-oauth-oidc-check-session-iframe';\r\n        /**\r\n         * This property has been introduced to disable at_hash checks\r\n         * and is indented for Identity Provider that does not deliver\r\n         * an at_hash EVEN THOUGH its recommended by the OIDC specs.\r\n         * Of course, when disabling these checks then we are bypassing\r\n         * a security check which means we are more vulnerable.\r\n         */\r\n        this.disableAtHashCheck = false;\r\n        /**\r\n         * Defines wether to check the subject of a refreshed token after silent refresh.\r\n         * Normally, it should be the same as before.\r\n         */\r\n        this.skipSubjectCheck = false;\r\n        this.useIdTokenHintForSilentRefresh = false;\r\n        /**\r\n         * Defined whether to skip the validation of the issuer in the discovery document.\r\n         * Normally, the discovey document's url starts with the url of the issuer.\r\n         */\r\n        this.skipIssuerCheck = false;\r\n        /**\r\n         * final state sent to issuer is built as follows:\r\n         * state = nonce + nonceStateSeparator + additional state\r\n         * Default separator is ';' (encoded %3B).\r\n         * In rare cases, this character might be forbidden or inconvenient to use by the issuer so it can be customized.\r\n         */\r\n        this.nonceStateSeparator = ';';\r\n        /**\r\n         * Set this to true to use HTTP BASIC auth for AJAX calls\r\n         */\r\n        this.useHttpBasicAuth = false;\r\n        /**\r\n         * The interceptors waits this time span if there is no token\r\n         */\r\n        this.waitForTokenInMsec = 0;\r\n        /**\r\n         * Code Flow is by defauld used together with PKCI which is also higly recommented.\r\n         * You can disbale it here by setting this flag to true.\r\n         * https://tools.ietf.org/html/rfc7636#section-1.1\r\n         */\r\n        this.disablePKCE = false;\r\n        /**\r\n         * Set this to true to preserve the requested route including query parameters after code flow login.\r\n         * This setting enables deep linking for the code flow.\r\n         */\r\n        this.preserveRequestedRoute = false;\r\n        /**\r\n         * This property allows you to override the method that is used to open the login url,\r\n         * allowing a way for implementations to specify their own method of routing to new\r\n         * urls.\r\n         */\r\n        this.openUri = (uri) => {\r\n            location.href = uri;\r\n        };\r\n        if (json) {\r\n            Object.assign(this, json);\r\n        }\r\n    }\r\n}\n\n/**\r\n * This custom encoder allows charactes like +, % and / to be used in passwords\r\n */\r\nclass WebHttpUrlEncodingCodec {\r\n    encodeKey(k) {\r\n        return encodeURIComponent(k);\r\n    }\r\n    encodeValue(v) {\r\n        return encodeURIComponent(v);\r\n    }\r\n    decodeKey(k) {\r\n        return decodeURIComponent(k);\r\n    }\r\n    decodeValue(v) {\r\n        return decodeURIComponent(v);\r\n    }\r\n}\n\n/**\r\n * Interface for Handlers that are hooked in to\r\n * validate tokens.\r\n */\r\nclass ValidationHandler {\r\n}\r\n/**\r\n * This abstract implementation of ValidationHandler already implements\r\n * the method validateAtHash. However, to make use of it,\r\n * you have to override the method calcHash.\r\n */\r\nclass AbstractValidationHandler {\r\n    /**\r\n     * Validates the at_hash in an id_token against the received access_token.\r\n     */\r\n    async validateAtHash(params) {\r\n        let hashAlg = this.inferHashAlgorithm(params.idTokenHeader);\r\n        let tokenHash = await this.calcHash(params.accessToken, hashAlg); // sha256(accessToken, { asString: true });\r\n        let leftMostHalf = tokenHash.substr(0, tokenHash.length / 2);\r\n        let atHash = base64UrlEncode(leftMostHalf);\r\n        let claimsAtHash = params.idTokenClaims['at_hash'].replace(/=/g, '');\r\n        if (atHash !== claimsAtHash) {\r\n            console.error('exptected at_hash: ' + atHash);\r\n            console.error('actual at_hash: ' + claimsAtHash);\r\n        }\r\n        return atHash === claimsAtHash;\r\n    }\r\n    /**\r\n     * Infers the name of the hash algorithm to use\r\n     * from the alg field of an id_token.\r\n     *\r\n     * @param jwtHeader the id_token's parsed header\r\n     */\r\n    inferHashAlgorithm(jwtHeader) {\r\n        let alg = jwtHeader['alg'];\r\n        if (!alg.match(/^.S[0-9]{3}$/)) {\r\n            throw new Error('Algorithm not supported: ' + alg);\r\n        }\r\n        return 'sha-' + alg.substr(2);\r\n    }\r\n}\n\nclass UrlHelperService {\r\n    getHashFragmentParams(customHashFragment) {\r\n        let hash = customHashFragment || window.location.hash;\r\n        hash = decodeURIComponent(hash);\r\n        if (hash.indexOf('#') !== 0) {\r\n            return {};\r\n        }\r\n        const questionMarkPosition = hash.indexOf('?');\r\n        if (questionMarkPosition > -1) {\r\n            hash = hash.substr(questionMarkPosition + 1);\r\n        }\r\n        else {\r\n            hash = hash.substr(1);\r\n        }\r\n        return this.parseQueryString(hash);\r\n    }\r\n    parseQueryString(queryString) {\r\n        const data = {};\r\n        let pairs, pair, separatorIndex, escapedKey, escapedValue, key, value;\r\n        if (queryString === null) {\r\n            return data;\r\n        }\r\n        pairs = queryString.split('&');\r\n        for (let i = 0; i < pairs.length; i++) {\r\n            pair = pairs[i];\r\n            separatorIndex = pair.indexOf('=');\r\n            if (separatorIndex === -1) {\r\n                escapedKey = pair;\r\n                escapedValue = null;\r\n            }\r\n            else {\r\n                escapedKey = pair.substr(0, separatorIndex);\r\n                escapedValue = pair.substr(separatorIndex + 1);\r\n            }\r\n            key = decodeURIComponent(escapedKey);\r\n            value = decodeURIComponent(escapedValue);\r\n            if (key.substr(0, 1) === '/') {\r\n                key = key.substr(1);\r\n            }\r\n            data[key] = value;\r\n        }\r\n        return data;\r\n    }\r\n}\r\nUrlHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: UrlHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nUrlHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: UrlHelperService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: UrlHelperService, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * [js-sha256]{@link https://github.com/emn178/js-sha256}\r\n *\r\n * @version 0.9.0\r\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\r\n * @copyright Chen, Yi-Cyuan 2014-2017\r\n * @license MIT\r\n */\r\n/*jslint bitwise: true */\r\nfunction factory() {\r\n    var ERROR = 'input is invalid type';\r\n    var WINDOW = typeof window === 'object';\r\n    var root = WINDOW ? window : {};\r\n    if (root.JS_SHA256_NO_WINDOW) {\r\n        WINDOW = false;\r\n    }\r\n    var WEB_WORKER = !WINDOW && typeof self === 'object';\r\n    var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\r\n    if (NODE_JS) {\r\n        root = global;\r\n    }\r\n    else if (WEB_WORKER) {\r\n        root = self;\r\n    }\r\n    var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module === 'object' && module.exports;\r\n    var AMD = typeof define === 'function' && define.amd;\r\n    var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';\r\n    const HEX_CHARS = '0123456789abcdef'.split('');\r\n    const EXTRA = [-2147483648, 8388608, 32768, 128];\r\n    const SHIFT = [24, 16, 8, 0];\r\n    const K = [\r\n        0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\r\n        0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\r\n        0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\r\n        0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\r\n        0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\r\n        0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\r\n        0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\r\n        0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\r\n    ];\r\n    const OUTPUT_TYPES = ['hex', 'array', 'digest', 'arrayBuffer'];\r\n    var blocks = [];\r\n    if (root.JS_SHA256_NO_NODE_JS || !Array.isArray) {\r\n        Array.isArray = function (obj) {\r\n            return Object.prototype.toString.call(obj) === '[object Array]';\r\n        };\r\n    }\r\n    if (ARRAY_BUFFER && (root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {\r\n        ArrayBuffer.isView = function (obj) {\r\n            return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;\r\n        };\r\n    }\r\n    var createOutputMethod = function (outputType, is224) {\r\n        return function (message) {\r\n            return new Sha256(is224, true).update(message)[outputType]();\r\n        };\r\n    };\r\n    var createMethod = function (is224) {\r\n        var method = createOutputMethod('hex', is224);\r\n        if (NODE_JS) {\r\n            method = nodeWrap(method, is224);\r\n        }\r\n        method.create = function () {\r\n            return new Sha256(is224);\r\n        };\r\n        method.update = function (message) {\r\n            return method.create().update(message);\r\n        };\r\n        for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n            var type = OUTPUT_TYPES[i];\r\n            method[type] = createOutputMethod(type, is224);\r\n        }\r\n        return method;\r\n    };\r\n    var nodeWrap = function (method, is224) {\r\n        var crypto = eval(\"require('crypto')\");\r\n        var Buffer = eval(\"require('buffer').Buffer\");\r\n        var algorithm = is224 ? 'sha224' : 'sha256';\r\n        var nodeMethod = function (message) {\r\n            if (typeof message === 'string') {\r\n                return crypto.createHash(algorithm).update(message, 'utf8').digest('hex');\r\n            }\r\n            else {\r\n                if (message === null || message === undefined) {\r\n                    throw new Error(ERROR);\r\n                }\r\n                else if (message.constructor === ArrayBuffer) {\r\n                    message = new Uint8Array(message);\r\n                }\r\n            }\r\n            if (Array.isArray(message) || ArrayBuffer.isView(message) ||\r\n                message.constructor === Buffer) {\r\n                return crypto.createHash(algorithm).update(new Buffer(message)).digest('hex');\r\n            }\r\n            else {\r\n                return method(message);\r\n            }\r\n        };\r\n        return nodeMethod;\r\n    };\r\n    var createHmacOutputMethod = function (outputType, is224) {\r\n        return function (key, message) {\r\n            return new HmacSha256(key, is224, true).update(message)[outputType]();\r\n        };\r\n    };\r\n    var createHmacMethod = function (is224) {\r\n        var method = createHmacOutputMethod('hex', is224);\r\n        method.create = function (key) {\r\n            return new HmacSha256(key, is224);\r\n        };\r\n        method.update = function (key, message) {\r\n            return method.create(key).update(message);\r\n        };\r\n        for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n            var type = OUTPUT_TYPES[i];\r\n            method[type] = createHmacOutputMethod(type, is224);\r\n        }\r\n        return method;\r\n    };\r\n    function Sha256(is224, sharedMemory) {\r\n        if (sharedMemory) {\r\n            blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] =\r\n                blocks[4] = blocks[5] = blocks[6] = blocks[7] =\r\n                    blocks[8] = blocks[9] = blocks[10] = blocks[11] =\r\n                        blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;\r\n            this.blocks = blocks;\r\n        }\r\n        else {\r\n            this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n        }\r\n        if (is224) {\r\n            this.h0 = 0xc1059ed8;\r\n            this.h1 = 0x367cd507;\r\n            this.h2 = 0x3070dd17;\r\n            this.h3 = 0xf70e5939;\r\n            this.h4 = 0xffc00b31;\r\n            this.h5 = 0x68581511;\r\n            this.h6 = 0x64f98fa7;\r\n            this.h7 = 0xbefa4fa4;\r\n        }\r\n        else { // 256\r\n            this.h0 = 0x6a09e667;\r\n            this.h1 = 0xbb67ae85;\r\n            this.h2 = 0x3c6ef372;\r\n            this.h3 = 0xa54ff53a;\r\n            this.h4 = 0x510e527f;\r\n            this.h5 = 0x9b05688c;\r\n            this.h6 = 0x1f83d9ab;\r\n            this.h7 = 0x5be0cd19;\r\n        }\r\n        this.block = this.start = this.bytes = this.hBytes = 0;\r\n        this.finalized = this.hashed = false;\r\n        this.first = true;\r\n        this.is224 = is224;\r\n    }\r\n    Sha256.prototype.update = function (message) {\r\n        if (this.finalized) {\r\n            return;\r\n        }\r\n        var notString, type = typeof message;\r\n        if (type !== 'string') {\r\n            if (type === 'object') {\r\n                if (message === null) {\r\n                    throw new Error(ERROR);\r\n                }\r\n                else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {\r\n                    message = new Uint8Array(message);\r\n                }\r\n                else if (!Array.isArray(message)) {\r\n                    if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {\r\n                        throw new Error(ERROR);\r\n                    }\r\n                }\r\n            }\r\n            else {\r\n                throw new Error(ERROR);\r\n            }\r\n            notString = true;\r\n        }\r\n        var code, index = 0, i, length = message.length, blocks = this.blocks;\r\n        while (index < length) {\r\n            if (this.hashed) {\r\n                this.hashed = false;\r\n                blocks[0] = this.block;\r\n                blocks[16] = blocks[1] = blocks[2] = blocks[3] =\r\n                    blocks[4] = blocks[5] = blocks[6] = blocks[7] =\r\n                        blocks[8] = blocks[9] = blocks[10] = blocks[11] =\r\n                            blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;\r\n            }\r\n            if (notString) {\r\n                for (i = this.start; index < length && i < 64; ++index) {\r\n                    blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\r\n                }\r\n            }\r\n            else {\r\n                for (i = this.start; index < length && i < 64; ++index) {\r\n                    code = message.charCodeAt(index);\r\n                    if (code < 0x80) {\r\n                        blocks[i >> 2] |= code << SHIFT[i++ & 3];\r\n                    }\r\n                    else if (code < 0x800) {\r\n                        blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n                    }\r\n                    else if (code < 0xd800 || code >= 0xe000) {\r\n                        blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n                    }\r\n                    else {\r\n                        code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\r\n                        blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n                        blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n                    }\r\n                }\r\n            }\r\n            this.lastByteIndex = i;\r\n            this.bytes += i - this.start;\r\n            if (i >= 64) {\r\n                this.block = blocks[16];\r\n                this.start = i - 64;\r\n                this.hash();\r\n                this.hashed = true;\r\n            }\r\n            else {\r\n                this.start = i;\r\n            }\r\n        }\r\n        if (this.bytes > 4294967295) {\r\n            this.hBytes += this.bytes / 4294967296 << 0;\r\n            this.bytes = this.bytes % 4294967296;\r\n        }\r\n        return this;\r\n    };\r\n    Sha256.prototype.finalize = function () {\r\n        if (this.finalized) {\r\n            return;\r\n        }\r\n        this.finalized = true;\r\n        var blocks = this.blocks, i = this.lastByteIndex;\r\n        blocks[16] = this.block;\r\n        blocks[i >> 2] |= EXTRA[i & 3];\r\n        this.block = blocks[16];\r\n        if (i >= 56) {\r\n            if (!this.hashed) {\r\n                this.hash();\r\n            }\r\n            blocks[0] = this.block;\r\n            blocks[16] = blocks[1] = blocks[2] = blocks[3] =\r\n                blocks[4] = blocks[5] = blocks[6] = blocks[7] =\r\n                    blocks[8] = blocks[9] = blocks[10] = blocks[11] =\r\n                        blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;\r\n        }\r\n        blocks[14] = this.hBytes << 3 | this.bytes >>> 29;\r\n        blocks[15] = this.bytes << 3;\r\n        this.hash();\r\n    };\r\n    Sha256.prototype.hash = function () {\r\n        var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4, f = this.h5, g = this.h6, h = this.h7, blocks = this.blocks, j, s0, s1, maj, t1, t2, ch, ab, da, cd, bc;\r\n        for (j = 16; j < 64; ++j) {\r\n            // rightrotate\r\n            t1 = blocks[j - 15];\r\n            s0 = ((t1 >>> 7) | (t1 << 25)) ^ ((t1 >>> 18) | (t1 << 14)) ^ (t1 >>> 3);\r\n            t1 = blocks[j - 2];\r\n            s1 = ((t1 >>> 17) | (t1 << 15)) ^ ((t1 >>> 19) | (t1 << 13)) ^ (t1 >>> 10);\r\n            blocks[j] = blocks[j - 16] + s0 + blocks[j - 7] + s1 << 0;\r\n        }\r\n        bc = b & c;\r\n        for (j = 0; j < 64; j += 4) {\r\n            if (this.first) {\r\n                if (this.is224) {\r\n                    ab = 300032;\r\n                    t1 = blocks[0] - 1413257819;\r\n                    h = t1 - 150054599 << 0;\r\n                    d = t1 + 24177077 << 0;\r\n                }\r\n                else {\r\n                    ab = 704751109;\r\n                    t1 = blocks[0] - 210244248;\r\n                    h = t1 - 1521486534 << 0;\r\n                    d = t1 + 143694565 << 0;\r\n                }\r\n                this.first = false;\r\n            }\r\n            else {\r\n                s0 = ((a >>> 2) | (a << 30)) ^ ((a >>> 13) | (a << 19)) ^ ((a >>> 22) | (a << 10));\r\n                s1 = ((e >>> 6) | (e << 26)) ^ ((e >>> 11) | (e << 21)) ^ ((e >>> 25) | (e << 7));\r\n                ab = a & b;\r\n                maj = ab ^ (a & c) ^ bc;\r\n                ch = (e & f) ^ (~e & g);\r\n                t1 = h + s1 + ch + K[j] + blocks[j];\r\n                t2 = s0 + maj;\r\n                h = d + t1 << 0;\r\n                d = t1 + t2 << 0;\r\n            }\r\n            s0 = ((d >>> 2) | (d << 30)) ^ ((d >>> 13) | (d << 19)) ^ ((d >>> 22) | (d << 10));\r\n            s1 = ((h >>> 6) | (h << 26)) ^ ((h >>> 11) | (h << 21)) ^ ((h >>> 25) | (h << 7));\r\n            da = d & a;\r\n            maj = da ^ (d & b) ^ ab;\r\n            ch = (h & e) ^ (~h & f);\r\n            t1 = g + s1 + ch + K[j + 1] + blocks[j + 1];\r\n            t2 = s0 + maj;\r\n            g = c + t1 << 0;\r\n            c = t1 + t2 << 0;\r\n            s0 = ((c >>> 2) | (c << 30)) ^ ((c >>> 13) | (c << 19)) ^ ((c >>> 22) | (c << 10));\r\n            s1 = ((g >>> 6) | (g << 26)) ^ ((g >>> 11) | (g << 21)) ^ ((g >>> 25) | (g << 7));\r\n            cd = c & d;\r\n            maj = cd ^ (c & a) ^ da;\r\n            ch = (g & h) ^ (~g & e);\r\n            t1 = f + s1 + ch + K[j + 2] + blocks[j + 2];\r\n            t2 = s0 + maj;\r\n            f = b + t1 << 0;\r\n            b = t1 + t2 << 0;\r\n            s0 = ((b >>> 2) | (b << 30)) ^ ((b >>> 13) | (b << 19)) ^ ((b >>> 22) | (b << 10));\r\n            s1 = ((f >>> 6) | (f << 26)) ^ ((f >>> 11) | (f << 21)) ^ ((f >>> 25) | (f << 7));\r\n            bc = b & c;\r\n            maj = bc ^ (b & d) ^ cd;\r\n            ch = (f & g) ^ (~f & h);\r\n            t1 = e + s1 + ch + K[j + 3] + blocks[j + 3];\r\n            t2 = s0 + maj;\r\n            e = a + t1 << 0;\r\n            a = t1 + t2 << 0;\r\n        }\r\n        this.h0 = this.h0 + a << 0;\r\n        this.h1 = this.h1 + b << 0;\r\n        this.h2 = this.h2 + c << 0;\r\n        this.h3 = this.h3 + d << 0;\r\n        this.h4 = this.h4 + e << 0;\r\n        this.h5 = this.h5 + f << 0;\r\n        this.h6 = this.h6 + g << 0;\r\n        this.h7 = this.h7 + h << 0;\r\n    };\r\n    Sha256.prototype.hex = function () {\r\n        this.finalize();\r\n        var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, h6 = this.h6, h7 = this.h7;\r\n        var hex = HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] +\r\n            HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] +\r\n            HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] +\r\n            HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] +\r\n            HEX_CHARS[(h4 >> 28) & 0x0F] + HEX_CHARS[(h4 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h4 >> 20) & 0x0F] + HEX_CHARS[(h4 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h4 >> 12) & 0x0F] + HEX_CHARS[(h4 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h4 >> 4) & 0x0F] + HEX_CHARS[h4 & 0x0F] +\r\n            HEX_CHARS[(h5 >> 28) & 0x0F] + HEX_CHARS[(h5 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h5 >> 20) & 0x0F] + HEX_CHARS[(h5 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h5 >> 12) & 0x0F] + HEX_CHARS[(h5 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h5 >> 4) & 0x0F] + HEX_CHARS[h5 & 0x0F] +\r\n            HEX_CHARS[(h6 >> 28) & 0x0F] + HEX_CHARS[(h6 >> 24) & 0x0F] +\r\n            HEX_CHARS[(h6 >> 20) & 0x0F] + HEX_CHARS[(h6 >> 16) & 0x0F] +\r\n            HEX_CHARS[(h6 >> 12) & 0x0F] + HEX_CHARS[(h6 >> 8) & 0x0F] +\r\n            HEX_CHARS[(h6 >> 4) & 0x0F] + HEX_CHARS[h6 & 0x0F];\r\n        if (!this.is224) {\r\n            hex += HEX_CHARS[(h7 >> 28) & 0x0F] + HEX_CHARS[(h7 >> 24) & 0x0F] +\r\n                HEX_CHARS[(h7 >> 20) & 0x0F] + HEX_CHARS[(h7 >> 16) & 0x0F] +\r\n                HEX_CHARS[(h7 >> 12) & 0x0F] + HEX_CHARS[(h7 >> 8) & 0x0F] +\r\n                HEX_CHARS[(h7 >> 4) & 0x0F] + HEX_CHARS[h7 & 0x0F];\r\n        }\r\n        return hex;\r\n    };\r\n    Sha256.prototype.toString = Sha256.prototype.hex;\r\n    Sha256.prototype.digest = function () {\r\n        this.finalize();\r\n        var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, h6 = this.h6, h7 = this.h7;\r\n        var arr = [\r\n            (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, h0 & 0xFF,\r\n            (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, h1 & 0xFF,\r\n            (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, h2 & 0xFF,\r\n            (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, h3 & 0xFF,\r\n            (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, h4 & 0xFF,\r\n            (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, h5 & 0xFF,\r\n            (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, h6 & 0xFF\r\n        ];\r\n        if (!this.is224) {\r\n            arr.push((h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, h7 & 0xFF);\r\n        }\r\n        return arr;\r\n    };\r\n    Sha256.prototype.array = Sha256.prototype.digest;\r\n    Sha256.prototype.arrayBuffer = function () {\r\n        this.finalize();\r\n        var buffer = new ArrayBuffer(this.is224 ? 28 : 32);\r\n        var dataView = new DataView(buffer);\r\n        dataView.setUint32(0, this.h0);\r\n        dataView.setUint32(4, this.h1);\r\n        dataView.setUint32(8, this.h2);\r\n        dataView.setUint32(12, this.h3);\r\n        dataView.setUint32(16, this.h4);\r\n        dataView.setUint32(20, this.h5);\r\n        dataView.setUint32(24, this.h6);\r\n        if (!this.is224) {\r\n            dataView.setUint32(28, this.h7);\r\n        }\r\n        return buffer;\r\n    };\r\n    function HmacSha256(key, is224, sharedMemory) {\r\n        var i, type = typeof key;\r\n        if (type === 'string') {\r\n            var bytes = [], length = key.length, index = 0, code;\r\n            for (i = 0; i < length; ++i) {\r\n                code = key.charCodeAt(i);\r\n                if (code < 0x80) {\r\n                    bytes[index++] = code;\r\n                }\r\n                else if (code < 0x800) {\r\n                    bytes[index++] = (0xc0 | (code >> 6));\r\n                    bytes[index++] = (0x80 | (code & 0x3f));\r\n                }\r\n                else if (code < 0xd800 || code >= 0xe000) {\r\n                    bytes[index++] = (0xe0 | (code >> 12));\r\n                    bytes[index++] = (0x80 | ((code >> 6) & 0x3f));\r\n                    bytes[index++] = (0x80 | (code & 0x3f));\r\n                }\r\n                else {\r\n                    code = 0x10000 + (((code & 0x3ff) << 10) | (key.charCodeAt(++i) & 0x3ff));\r\n                    bytes[index++] = (0xf0 | (code >> 18));\r\n                    bytes[index++] = (0x80 | ((code >> 12) & 0x3f));\r\n                    bytes[index++] = (0x80 | ((code >> 6) & 0x3f));\r\n                    bytes[index++] = (0x80 | (code & 0x3f));\r\n                }\r\n            }\r\n            key = bytes;\r\n        }\r\n        else {\r\n            if (type === 'object') {\r\n                if (key === null) {\r\n                    throw new Error(ERROR);\r\n                }\r\n                else if (ARRAY_BUFFER && key.constructor === ArrayBuffer) {\r\n                    key = new Uint8Array(key);\r\n                }\r\n                else if (!Array.isArray(key)) {\r\n                    if (!ARRAY_BUFFER || !ArrayBuffer.isView(key)) {\r\n                        throw new Error(ERROR);\r\n                    }\r\n                }\r\n            }\r\n            else {\r\n                throw new Error(ERROR);\r\n            }\r\n        }\r\n        if (key.length > 64) {\r\n            key = (new Sha256(is224, true)).update(key).array();\r\n        }\r\n        var oKeyPad = [], iKeyPad = [];\r\n        for (i = 0; i < 64; ++i) {\r\n            var b = key[i] || 0;\r\n            oKeyPad[i] = 0x5c ^ b;\r\n            iKeyPad[i] = 0x36 ^ b;\r\n        }\r\n        Sha256.call(this, is224, sharedMemory);\r\n        this.update(iKeyPad);\r\n        this.oKeyPad = oKeyPad;\r\n        this.inner = true;\r\n        this.sharedMemory = sharedMemory;\r\n    }\r\n    HmacSha256.prototype = new Sha256();\r\n    HmacSha256.prototype.finalize = function () {\r\n        Sha256.prototype.finalize.call(this);\r\n        if (this.inner) {\r\n            this.inner = false;\r\n            var innerHash = this.array();\r\n            Sha256.call(this, this.is224, this.sharedMemory);\r\n            this.update(this.oKeyPad);\r\n            this.update(innerHash);\r\n            Sha256.prototype.finalize.call(this);\r\n        }\r\n    };\r\n    var exports = createMethod();\r\n    exports.sha256 = exports;\r\n    exports.sha224 = createMethod(true);\r\n    exports.sha256.hmac = createHmacMethod();\r\n    exports.sha224.hmac = createHmacMethod(true);\r\n    return exports;\r\n}\n\nconst sha256 = factory();\r\n/**\r\n * Abstraction for crypto algorithms\r\n */\r\nclass HashHandler {\r\n}\r\nfunction decodeUTF8(s) {\r\n    if (typeof s !== 'string')\r\n        throw new TypeError('expected string');\r\n    var i, d = s, b = new Uint8Array(d.length);\r\n    for (i = 0; i < d.length; i++)\r\n        b[i] = d.charCodeAt(i);\r\n    return b;\r\n}\r\nfunction encodeUTF8(arr) {\r\n    var i, s = [];\r\n    for (i = 0; i < arr.length; i++)\r\n        s.push(String.fromCharCode(arr[i]));\r\n    return s.join('');\r\n}\r\nclass DefaultHashHandler {\r\n    async calcHash(valueToHash, algorithm) {\r\n        // const encoder = new TextEncoder();\r\n        // const hashArray = await window.crypto.subtle.digest(algorithm, data);\r\n        // const data = encoder.encode(valueToHash);\r\n        // const fhash = fsha256(valueToHash);\r\n        const candHash = encodeUTF8(fsha256(decodeUTF8(valueToHash)));\r\n        // const hashArray = (sha256 as any).array(valueToHash);\r\n        // // const hashString = this.toHashString(hashArray);\r\n        // const hashString = this.toHashString2(hashArray);\r\n        // console.debug('hash orig - cand', candHash, hashString);\r\n        // alert(1);\r\n        return candHash;\r\n    }\r\n    toHashString2(byteArray) {\r\n        let result = '';\r\n        for (let e of byteArray) {\r\n            result += String.fromCharCode(e);\r\n        }\r\n        return result;\r\n    }\r\n    toHashString(buffer) {\r\n        const byteArray = new Uint8Array(buffer);\r\n        let result = '';\r\n        for (let e of byteArray) {\r\n            result += String.fromCharCode(e);\r\n        }\r\n        return result;\r\n    }\r\n}\r\nDefaultHashHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultHashHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\r\nDefaultHashHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultHashHandler });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultHashHandler, decorators: [{\r\n            type: Injectable\r\n        }] });\n\n/**\r\n * Service for logging in and logging out with\r\n * OIDC and OAuth2. Supports implicit flow and\r\n * password flow.\r\n */\r\nclass OAuthService extends AuthConfig {\r\n    constructor(ngZone, http, storage, tokenValidationHandler, config, urlHelper, logger, crypto, document, dateTimeService) {\r\n        super();\r\n        this.ngZone = ngZone;\r\n        this.http = http;\r\n        this.config = config;\r\n        this.urlHelper = urlHelper;\r\n        this.logger = logger;\r\n        this.crypto = crypto;\r\n        this.dateTimeService = dateTimeService;\r\n        /**\r\n         * @internal\r\n         * Deprecated:  use property events instead\r\n         */\r\n        this.discoveryDocumentLoaded = false;\r\n        /**\r\n         * The received (passed around) state, when logging\r\n         * in with implicit flow.\r\n         */\r\n        this.state = '';\r\n        this.eventsSubject = new Subject();\r\n        this.discoveryDocumentLoadedSubject = new Subject();\r\n        this.grantTypesSupported = [];\r\n        this.inImplicitFlow = false;\r\n        this.saveNoncesInLocalStorage = false;\r\n        this.debug('angular-oauth2-oidc v10');\r\n        // See https://github.com/manfredsteyer/angular-oauth2-oidc/issues/773 for why this is needed\r\n        this.document = document;\r\n        if (!config) {\r\n            config = {};\r\n        }\r\n        this.discoveryDocumentLoaded$ =\r\n            this.discoveryDocumentLoadedSubject.asObservable();\r\n        this.events = this.eventsSubject.asObservable();\r\n        if (tokenValidationHandler) {\r\n            this.tokenValidationHandler = tokenValidationHandler;\r\n        }\r\n        if (config) {\r\n            this.configure(config);\r\n        }\r\n        try {\r\n            if (storage) {\r\n                this.setStorage(storage);\r\n            }\r\n            else if (typeof sessionStorage !== 'undefined') {\r\n                this.setStorage(sessionStorage);\r\n            }\r\n        }\r\n        catch (e) {\r\n            console.error('No OAuthStorage provided and cannot access default (sessionStorage).' +\r\n                'Consider providing a custom OAuthStorage implementation in your module.', e);\r\n        }\r\n        // in IE, sessionStorage does not always survive a redirect\r\n        if (this.checkLocalStorageAccessable()) {\r\n            const ua = window?.navigator?.userAgent;\r\n            const msie = ua?.includes('MSIE ') || ua?.includes('Trident');\r\n            if (msie) {\r\n                this.saveNoncesInLocalStorage = true;\r\n            }\r\n        }\r\n        this.setupRefreshTimer();\r\n    }\r\n    checkLocalStorageAccessable() {\r\n        if (typeof window === 'undefined')\r\n            return false;\r\n        const test = 'test';\r\n        try {\r\n            if (typeof window['localStorage'] === 'undefined')\r\n                return false;\r\n            localStorage.setItem(test, test);\r\n            localStorage.removeItem(test);\r\n            return true;\r\n        }\r\n        catch (e) {\r\n            return false;\r\n        }\r\n    }\r\n    /**\r\n     * Use this method to configure the service\r\n     * @param config the configuration\r\n     */\r\n    configure(config) {\r\n        // For the sake of downward compatibility with\r\n        // original configuration API\r\n        Object.assign(this, new AuthConfig(), config);\r\n        this.config = Object.assign({}, new AuthConfig(), config);\r\n        if (this.sessionChecksEnabled) {\r\n            this.setupSessionCheck();\r\n        }\r\n        this.configChanged();\r\n    }\r\n    configChanged() {\r\n        this.setupRefreshTimer();\r\n    }\r\n    restartSessionChecksIfStillLoggedIn() {\r\n        if (this.hasValidIdToken()) {\r\n            this.initSessionCheck();\r\n        }\r\n    }\r\n    restartRefreshTimerIfStillLoggedIn() {\r\n        this.setupExpirationTimers();\r\n    }\r\n    setupSessionCheck() {\r\n        this.events\r\n            .pipe(filter((e) => e.type === 'token_received'))\r\n            .subscribe((e) => {\r\n            this.initSessionCheck();\r\n        });\r\n    }\r\n    /**\r\n     * Will setup up silent refreshing for when the token is\r\n     * about to expire. When the user is logged out via this.logOut method, the\r\n     * silent refreshing will pause and not refresh the tokens until the user is\r\n     * logged back in via receiving a new token.\r\n     * @param params Additional parameter to pass\r\n     * @param listenTo Setup automatic refresh of a specific token type\r\n     */\r\n    setupAutomaticSilentRefresh(params = {}, listenTo, noPrompt = true) {\r\n        let shouldRunSilentRefresh = true;\r\n        this.clearAutomaticRefreshTimer();\r\n        this.automaticRefreshSubscription = this.events\r\n            .pipe(tap((e) => {\r\n            if (e.type === 'token_received') {\r\n                shouldRunSilentRefresh = true;\r\n            }\r\n            else if (e.type === 'logout') {\r\n                shouldRunSilentRefresh = false;\r\n            }\r\n        }), filter((e) => e.type === 'token_expires' &&\r\n            (listenTo == null || listenTo === 'any' || e.info === listenTo)), debounceTime(1000))\r\n            .subscribe((_) => {\r\n            if (shouldRunSilentRefresh) {\r\n                // this.silentRefresh(params, noPrompt).catch(_ => {\r\n                this.refreshInternal(params, noPrompt).catch((_) => {\r\n                    this.debug('Automatic silent refresh did not work');\r\n                });\r\n            }\r\n        });\r\n        this.restartRefreshTimerIfStillLoggedIn();\r\n    }\r\n    refreshInternal(params, noPrompt) {\r\n        if (!this.useSilentRefresh && this.responseType === 'code') {\r\n            return this.refreshToken();\r\n        }\r\n        else {\r\n            return this.silentRefresh(params, noPrompt);\r\n        }\r\n    }\r\n    /**\r\n     * Convenience method that first calls `loadDiscoveryDocument(...)` and\r\n     * directly chains using the `then(...)` part of the promise to call\r\n     * the `tryLogin(...)` method.\r\n     *\r\n     * @param options LoginOptions to pass through to `tryLogin(...)`\r\n     */\r\n    loadDiscoveryDocumentAndTryLogin(options = null) {\r\n        return this.loadDiscoveryDocument().then((doc) => {\r\n            return this.tryLogin(options);\r\n        });\r\n    }\r\n    /**\r\n     * Convenience method that first calls `loadDiscoveryDocumentAndTryLogin(...)`\r\n     * and if then chains to `initLoginFlow()`, but only if there is no valid\r\n     * IdToken or no valid AccessToken.\r\n     *\r\n     * @param options LoginOptions to pass through to `tryLogin(...)`\r\n     */\r\n    loadDiscoveryDocumentAndLogin(options = null) {\r\n        options = options || {};\r\n        return this.loadDiscoveryDocumentAndTryLogin(options).then((_) => {\r\n            if (!this.hasValidIdToken() || !this.hasValidAccessToken()) {\r\n                const state = typeof options.state === 'string' ? options.state : '';\r\n                this.initLoginFlow(state);\r\n                return false;\r\n            }\r\n            else {\r\n                return true;\r\n            }\r\n        });\r\n    }\r\n    debug(...args) {\r\n        if (this.showDebugInformation) {\r\n            this.logger.debug.apply(this.logger, args);\r\n        }\r\n    }\r\n    validateUrlFromDiscoveryDocument(url) {\r\n        const errors = [];\r\n        const httpsCheck = this.validateUrlForHttps(url);\r\n        const issuerCheck = this.validateUrlAgainstIssuer(url);\r\n        if (!httpsCheck) {\r\n            errors.push('https for all urls required. Also for urls received by discovery.');\r\n        }\r\n        if (!issuerCheck) {\r\n            errors.push('Every url in discovery document has to start with the issuer url.' +\r\n                'Also see property strictDiscoveryDocumentValidation.');\r\n        }\r\n        return errors;\r\n    }\r\n    validateUrlForHttps(url) {\r\n        if (!url) {\r\n            return true;\r\n        }\r\n        const lcUrl = url.toLowerCase();\r\n        if (this.requireHttps === false) {\r\n            return true;\r\n        }\r\n        if ((lcUrl.match(/^http:\\/\\/localhost($|[:\\/])/) ||\r\n            lcUrl.match(/^http:\\/\\/localhost($|[:\\/])/)) &&\r\n            this.requireHttps === 'remoteOnly') {\r\n            return true;\r\n        }\r\n        return lcUrl.startsWith('https://');\r\n    }\r\n    assertUrlNotNullAndCorrectProtocol(url, description) {\r\n        if (!url) {\r\n            throw new Error(`'${description}' should not be null`);\r\n        }\r\n        if (!this.validateUrlForHttps(url)) {\r\n            throw new Error(`'${description}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`);\r\n        }\r\n    }\r\n    validateUrlAgainstIssuer(url) {\r\n        if (!this.strictDiscoveryDocumentValidation) {\r\n            return true;\r\n        }\r\n        if (!url) {\r\n            return true;\r\n        }\r\n        return url.toLowerCase().startsWith(this.issuer.toLowerCase());\r\n    }\r\n    setupRefreshTimer() {\r\n        if (typeof window === 'undefined') {\r\n            this.debug('timer not supported on this plattform');\r\n            return;\r\n        }\r\n        if (this.hasValidIdToken() || this.hasValidAccessToken()) {\r\n            this.clearAccessTokenTimer();\r\n            this.clearIdTokenTimer();\r\n            this.setupExpirationTimers();\r\n        }\r\n        if (this.tokenReceivedSubscription)\r\n            this.tokenReceivedSubscription.unsubscribe();\r\n        this.tokenReceivedSubscription = this.events\r\n            .pipe(filter((e) => e.type === 'token_received'))\r\n            .subscribe((_) => {\r\n            this.clearAccessTokenTimer();\r\n            this.clearIdTokenTimer();\r\n            this.setupExpirationTimers();\r\n        });\r\n    }\r\n    setupExpirationTimers() {\r\n        if (this.hasValidAccessToken()) {\r\n            this.setupAccessTokenTimer();\r\n        }\r\n        if (this.hasValidIdToken()) {\r\n            this.setupIdTokenTimer();\r\n        }\r\n    }\r\n    setupAccessTokenTimer() {\r\n        const expiration = this.getAccessTokenExpiration();\r\n        const storedAt = this.getAccessTokenStoredAt();\r\n        const timeout = this.calcTimeout(storedAt, expiration);\r\n        this.ngZone.runOutsideAngular(() => {\r\n            this.accessTokenTimeoutSubscription = of(new OAuthInfoEvent('token_expires', 'access_token'))\r\n                .pipe(delay(timeout))\r\n                .subscribe((e) => {\r\n                this.ngZone.run(() => {\r\n                    this.eventsSubject.next(e);\r\n                });\r\n            });\r\n        });\r\n    }\r\n    setupIdTokenTimer() {\r\n        const expiration = this.getIdTokenExpiration();\r\n        const storedAt = this.getIdTokenStoredAt();\r\n        const timeout = this.calcTimeout(storedAt, expiration);\r\n        this.ngZone.runOutsideAngular(() => {\r\n            this.idTokenTimeoutSubscription = of(new OAuthInfoEvent('token_expires', 'id_token'))\r\n                .pipe(delay(timeout))\r\n                .subscribe((e) => {\r\n                this.ngZone.run(() => {\r\n                    this.eventsSubject.next(e);\r\n                });\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Stops timers for automatic refresh.\r\n     * To restart it, call setupAutomaticSilentRefresh again.\r\n     */\r\n    stopAutomaticRefresh() {\r\n        this.clearAccessTokenTimer();\r\n        this.clearIdTokenTimer();\r\n        this.clearAutomaticRefreshTimer();\r\n    }\r\n    clearAccessTokenTimer() {\r\n        if (this.accessTokenTimeoutSubscription) {\r\n            this.accessTokenTimeoutSubscription.unsubscribe();\r\n        }\r\n    }\r\n    clearIdTokenTimer() {\r\n        if (this.idTokenTimeoutSubscription) {\r\n            this.idTokenTimeoutSubscription.unsubscribe();\r\n        }\r\n    }\r\n    clearAutomaticRefreshTimer() {\r\n        if (this.automaticRefreshSubscription) {\r\n            this.automaticRefreshSubscription.unsubscribe();\r\n        }\r\n    }\r\n    calcTimeout(storedAt, expiration) {\r\n        const now = this.dateTimeService.now();\r\n        const delta = (expiration - storedAt) * this.timeoutFactor - (now - storedAt);\r\n        return Math.max(0, delta);\r\n    }\r\n    /**\r\n     * DEPRECATED. Use a provider for OAuthStorage instead:\r\n     *\r\n     * { provide: OAuthStorage, useFactory: oAuthStorageFactory }\r\n     * export function oAuthStorageFactory(): OAuthStorage { return localStorage; }\r\n     * Sets a custom storage used to store the received\r\n     * tokens on client side. By default, the browser's\r\n     * sessionStorage is used.\r\n     * @ignore\r\n     *\r\n     * @param storage\r\n     */\r\n    setStorage(storage) {\r\n        this._storage = storage;\r\n        this.configChanged();\r\n    }\r\n    /**\r\n     * Loads the discovery document to configure most\r\n     * properties of this service. The url of the discovery\r\n     * document is infered from the issuer's url according\r\n     * to the OpenId Connect spec. To use another url you\r\n     * can pass it to to optional parameter fullUrl.\r\n     *\r\n     * @param fullUrl\r\n     */\r\n    loadDiscoveryDocument(fullUrl = null) {\r\n        return new Promise((resolve, reject) => {\r\n            if (!fullUrl) {\r\n                fullUrl = this.issuer || '';\r\n                if (!fullUrl.endsWith('/')) {\r\n                    fullUrl += '/';\r\n                }\r\n                fullUrl += '.well-known/openid-configuration';\r\n            }\r\n            if (!this.validateUrlForHttps(fullUrl)) {\r\n                reject(\"issuer  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n                return;\r\n            }\r\n            this.http.get(fullUrl).subscribe((doc) => {\r\n                if (!this.validateDiscoveryDocument(doc)) {\r\n                    this.eventsSubject.next(new OAuthErrorEvent('discovery_document_validation_error', null));\r\n                    reject('discovery_document_validation_error');\r\n                    return;\r\n                }\r\n                this.loginUrl = doc.authorization_endpoint;\r\n                this.logoutUrl = doc.end_session_endpoint || this.logoutUrl;\r\n                this.grantTypesSupported = doc.grant_types_supported;\r\n                this.issuer = doc.issuer;\r\n                this.tokenEndpoint = doc.token_endpoint;\r\n                this.userinfoEndpoint =\r\n                    doc.userinfo_endpoint || this.userinfoEndpoint;\r\n                this.jwksUri = doc.jwks_uri;\r\n                this.sessionCheckIFrameUrl =\r\n                    doc.check_session_iframe || this.sessionCheckIFrameUrl;\r\n                this.discoveryDocumentLoaded = true;\r\n                this.discoveryDocumentLoadedSubject.next(doc);\r\n                this.revocationEndpoint =\r\n                    doc.revocation_endpoint || this.revocationEndpoint;\r\n                if (this.sessionChecksEnabled) {\r\n                    this.restartSessionChecksIfStillLoggedIn();\r\n                }\r\n                this.loadJwks()\r\n                    .then((jwks) => {\r\n                    const result = {\r\n                        discoveryDocument: doc,\r\n                        jwks: jwks,\r\n                    };\r\n                    const event = new OAuthSuccessEvent('discovery_document_loaded', result);\r\n                    this.eventsSubject.next(event);\r\n                    resolve(event);\r\n                    return;\r\n                })\r\n                    .catch((err) => {\r\n                    this.eventsSubject.next(new OAuthErrorEvent('discovery_document_load_error', err));\r\n                    reject(err);\r\n                    return;\r\n                });\r\n            }, (err) => {\r\n                this.logger.error('error loading discovery document', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('discovery_document_load_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    loadJwks() {\r\n        return new Promise((resolve, reject) => {\r\n            if (this.jwksUri) {\r\n                this.http.get(this.jwksUri).subscribe((jwks) => {\r\n                    this.jwks = jwks;\r\n                    this.eventsSubject.next(new OAuthSuccessEvent('discovery_document_loaded'));\r\n                    resolve(jwks);\r\n                }, (err) => {\r\n                    this.logger.error('error loading jwks', err);\r\n                    this.eventsSubject.next(new OAuthErrorEvent('jwks_load_error', err));\r\n                    reject(err);\r\n                });\r\n            }\r\n            else {\r\n                resolve(null);\r\n            }\r\n        });\r\n    }\r\n    validateDiscoveryDocument(doc) {\r\n        let errors;\r\n        if (!this.skipIssuerCheck && doc.issuer !== this.issuer) {\r\n            this.logger.error('invalid issuer in discovery document', 'expected: ' + this.issuer, 'current: ' + doc.issuer);\r\n            return false;\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.authorization_endpoint);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating authorization_endpoint in discovery document', errors);\r\n            return false;\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.end_session_endpoint);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating end_session_endpoint in discovery document', errors);\r\n            return false;\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.token_endpoint);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating token_endpoint in discovery document', errors);\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.revocation_endpoint);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating revocation_endpoint in discovery document', errors);\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.userinfo_endpoint);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating userinfo_endpoint in discovery document', errors);\r\n            return false;\r\n        }\r\n        errors = this.validateUrlFromDiscoveryDocument(doc.jwks_uri);\r\n        if (errors.length > 0) {\r\n            this.logger.error('error validating jwks_uri in discovery document', errors);\r\n            return false;\r\n        }\r\n        if (this.sessionChecksEnabled && !doc.check_session_iframe) {\r\n            this.logger.warn('sessionChecksEnabled is activated but discovery document' +\r\n                ' does not contain a check_session_iframe field');\r\n        }\r\n        return true;\r\n    }\r\n    /**\r\n     * Uses password flow to exchange userName and password for an\r\n     * access_token. After receiving the access_token, this method\r\n     * uses it to query the userinfo endpoint in order to get information\r\n     * about the user in question.\r\n     *\r\n     * When using this, make sure that the property oidc is set to false.\r\n     * Otherwise stricter validations take place that make this operation\r\n     * fail.\r\n     *\r\n     * @param userName\r\n     * @param password\r\n     * @param headers Optional additional http-headers.\r\n     */\r\n    fetchTokenUsingPasswordFlowAndLoadUserProfile(userName, password, headers = new HttpHeaders()) {\r\n        return this.fetchTokenUsingPasswordFlow(userName, password, headers).then(() => this.loadUserProfile());\r\n    }\r\n    /**\r\n     * Loads the user profile by accessing the user info endpoint defined by OpenId Connect.\r\n     *\r\n     * When using this with OAuth2 password flow, make sure that the property oidc is set to false.\r\n     * Otherwise stricter validations take place that make this operation fail.\r\n     */\r\n    loadUserProfile() {\r\n        if (!this.hasValidAccessToken()) {\r\n            throw new Error('Can not load User Profile without access_token');\r\n        }\r\n        if (!this.validateUrlForHttps(this.userinfoEndpoint)) {\r\n            throw new Error(\"userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            const headers = new HttpHeaders().set('Authorization', 'Bearer ' + this.getAccessToken());\r\n            this.http\r\n                .get(this.userinfoEndpoint, {\r\n                headers,\r\n                observe: 'response',\r\n                responseType: 'text',\r\n            })\r\n                .subscribe((response) => {\r\n                this.debug('userinfo received', JSON.stringify(response));\r\n                if (response.headers\r\n                    .get('content-type')\r\n                    .startsWith('application/json')) {\r\n                    let info = JSON.parse(response.body);\r\n                    const existingClaims = this.getIdentityClaims() || {};\r\n                    if (!this.skipSubjectCheck) {\r\n                        if (this.oidc &&\r\n                            (!existingClaims['sub'] || info.sub !== existingClaims['sub'])) {\r\n                            const err = 'if property oidc is true, the received user-id (sub) has to be the user-id ' +\r\n                                'of the user that has logged in with oidc.\\n' +\r\n                                'if you are not using oidc but just oauth2 password flow set oidc to false';\r\n                            reject(err);\r\n                            return;\r\n                        }\r\n                    }\r\n                    info = Object.assign({}, existingClaims, info);\r\n                    this._storage.setItem('id_token_claims_obj', JSON.stringify(info));\r\n                    this.eventsSubject.next(new OAuthSuccessEvent('user_profile_loaded'));\r\n                    resolve({ info });\r\n                }\r\n                else {\r\n                    this.debug('userinfo is not JSON, treating it as JWE/JWS');\r\n                    this.eventsSubject.next(new OAuthSuccessEvent('user_profile_loaded'));\r\n                    resolve(JSON.parse(response.body));\r\n                }\r\n            }, (err) => {\r\n                this.logger.error('error loading user info', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('user_profile_load_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Uses password flow to exchange userName and password for an access_token.\r\n     * @param userName\r\n     * @param password\r\n     * @param headers Optional additional http-headers.\r\n     */\r\n    fetchTokenUsingPasswordFlow(userName, password, headers = new HttpHeaders()) {\r\n        const parameters = {\r\n            username: userName,\r\n            password: password,\r\n        };\r\n        return this.fetchTokenUsingGrant('password', parameters, headers);\r\n    }\r\n    /**\r\n     * Uses a custom grant type to retrieve tokens.\r\n     * @param grantType Grant type.\r\n     * @param parameters Parameters to pass.\r\n     * @param headers Optional additional HTTP headers.\r\n     */\r\n    fetchTokenUsingGrant(grantType, parameters, headers = new HttpHeaders()) {\r\n        this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint, 'tokenEndpoint');\r\n        /**\r\n         * A `HttpParameterCodec` that uses `encodeURIComponent` and `decodeURIComponent` to\r\n         * serialize and parse URL parameter keys and values.\r\n         *\r\n         * @stable\r\n         */\r\n        let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() })\r\n            .set('grant_type', grantType)\r\n            .set('scope', this.scope);\r\n        if (this.useHttpBasicAuth) {\r\n            const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);\r\n            headers = headers.set('Authorization', 'Basic ' + header);\r\n        }\r\n        if (!this.useHttpBasicAuth) {\r\n            params = params.set('client_id', this.clientId);\r\n        }\r\n        if (!this.useHttpBasicAuth && this.dummyClientSecret) {\r\n            params = params.set('client_secret', this.dummyClientSecret);\r\n        }\r\n        if (this.customQueryParams) {\r\n            for (const key of Object.getOwnPropertyNames(this.customQueryParams)) {\r\n                params = params.set(key, this.customQueryParams[key]);\r\n            }\r\n        }\r\n        // set explicit parameters last, to allow overwriting\r\n        for (const key of Object.keys(parameters)) {\r\n            params = params.set(key, parameters[key]);\r\n        }\r\n        headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');\r\n        return new Promise((resolve, reject) => {\r\n            this.http\r\n                .post(this.tokenEndpoint, params, { headers })\r\n                .subscribe((tokenResponse) => {\r\n                this.debug('tokenResponse', tokenResponse);\r\n                this.storeAccessTokenResponse(tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in ||\r\n                    this.fallbackAccessTokenExpirationTimeInSec, tokenResponse.scope, this.extractRecognizedCustomParameters(tokenResponse));\r\n                if (this.oidc && tokenResponse.id_token) {\r\n                    this.processIdToken(tokenResponse.id_token, tokenResponse.access_token).then((result) => {\r\n                        this.storeIdToken(result);\r\n                        resolve(tokenResponse);\r\n                    });\r\n                }\r\n                this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n                resolve(tokenResponse);\r\n            }, (err) => {\r\n                this.logger.error('Error performing ${grantType} flow', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('token_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Refreshes the token using a refresh_token.\r\n     * This does not work for implicit flow, b/c\r\n     * there is no refresh_token in this flow.\r\n     * A solution for this is provided by the\r\n     * method silentRefresh.\r\n     */\r\n    refreshToken() {\r\n        this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint, 'tokenEndpoint');\r\n        return new Promise((resolve, reject) => {\r\n            let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() })\r\n                .set('grant_type', 'refresh_token')\r\n                .set('scope', this.scope)\r\n                .set('refresh_token', this._storage.getItem('refresh_token'));\r\n            let headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');\r\n            if (this.useHttpBasicAuth) {\r\n                const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);\r\n                headers = headers.set('Authorization', 'Basic ' + header);\r\n            }\r\n            if (!this.useHttpBasicAuth) {\r\n                params = params.set('client_id', this.clientId);\r\n            }\r\n            if (!this.useHttpBasicAuth && this.dummyClientSecret) {\r\n                params = params.set('client_secret', this.dummyClientSecret);\r\n            }\r\n            if (this.customQueryParams) {\r\n                for (const key of Object.getOwnPropertyNames(this.customQueryParams)) {\r\n                    params = params.set(key, this.customQueryParams[key]);\r\n                }\r\n            }\r\n            this.http\r\n                .post(this.tokenEndpoint, params, { headers })\r\n                .pipe(switchMap((tokenResponse) => {\r\n                if (tokenResponse.id_token) {\r\n                    return from(this.processIdToken(tokenResponse.id_token, tokenResponse.access_token, true)).pipe(tap((result) => this.storeIdToken(result)), map((_) => tokenResponse));\r\n                }\r\n                else {\r\n                    return of(tokenResponse);\r\n                }\r\n            }))\r\n                .subscribe((tokenResponse) => {\r\n                this.debug('refresh tokenResponse', tokenResponse);\r\n                this.storeAccessTokenResponse(tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in ||\r\n                    this.fallbackAccessTokenExpirationTimeInSec, tokenResponse.scope, this.extractRecognizedCustomParameters(tokenResponse));\r\n                this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n                this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));\r\n                resolve(tokenResponse);\r\n            }, (err) => {\r\n                this.logger.error('Error refreshing token', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('token_refresh_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    removeSilentRefreshEventListener() {\r\n        if (this.silentRefreshPostMessageEventListener) {\r\n            window.removeEventListener('message', this.silentRefreshPostMessageEventListener);\r\n            this.silentRefreshPostMessageEventListener = null;\r\n        }\r\n    }\r\n    setupSilentRefreshEventListener() {\r\n        this.removeSilentRefreshEventListener();\r\n        this.silentRefreshPostMessageEventListener = (e) => {\r\n            const message = this.processMessageEventMessage(e);\r\n            this.tryLogin({\r\n                customHashFragment: message,\r\n                preventClearHashAfterLogin: true,\r\n                customRedirectUri: this.silentRefreshRedirectUri || this.redirectUri,\r\n            }).catch((err) => this.debug('tryLogin during silent refresh failed', err));\r\n        };\r\n        window.addEventListener('message', this.silentRefreshPostMessageEventListener);\r\n    }\r\n    /**\r\n     * Performs a silent refresh for implicit flow.\r\n     * Use this method to get new tokens when/before\r\n     * the existing tokens expire.\r\n     */\r\n    silentRefresh(params = {}, noPrompt = true) {\r\n        const claims = this.getIdentityClaims() || {};\r\n        if (this.useIdTokenHintForSilentRefresh && this.hasValidIdToken()) {\r\n            params['id_token_hint'] = this.getIdToken();\r\n        }\r\n        if (!this.validateUrlForHttps(this.loginUrl)) {\r\n            throw new Error(\"loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n        }\r\n        if (typeof this.document === 'undefined') {\r\n            throw new Error('silent refresh is not supported on this platform');\r\n        }\r\n        const existingIframe = this.document.getElementById(this.silentRefreshIFrameName);\r\n        if (existingIframe) {\r\n            this.document.body.removeChild(existingIframe);\r\n        }\r\n        this.silentRefreshSubject = claims['sub'];\r\n        const iframe = this.document.createElement('iframe');\r\n        iframe.id = this.silentRefreshIFrameName;\r\n        this.setupSilentRefreshEventListener();\r\n        const redirectUri = this.silentRefreshRedirectUri || this.redirectUri;\r\n        this.createLoginUrl(null, null, redirectUri, noPrompt, params).then((url) => {\r\n            iframe.setAttribute('src', url);\r\n            if (!this.silentRefreshShowIFrame) {\r\n                iframe.style['display'] = 'none';\r\n            }\r\n            this.document.body.appendChild(iframe);\r\n        });\r\n        const errors = this.events.pipe(filter((e) => e instanceof OAuthErrorEvent), first());\r\n        const success = this.events.pipe(filter((e) => e.type === 'token_received'), first());\r\n        const timeout = of(new OAuthErrorEvent('silent_refresh_timeout', null)).pipe(delay(this.silentRefreshTimeout));\r\n        return race([errors, success, timeout])\r\n            .pipe(map((e) => {\r\n            if (e instanceof OAuthErrorEvent) {\r\n                if (e.type === 'silent_refresh_timeout') {\r\n                    this.eventsSubject.next(e);\r\n                }\r\n                else {\r\n                    e = new OAuthErrorEvent('silent_refresh_error', e);\r\n                    this.eventsSubject.next(e);\r\n                }\r\n                throw e;\r\n            }\r\n            else if (e.type === 'token_received') {\r\n                e = new OAuthSuccessEvent('silently_refreshed');\r\n                this.eventsSubject.next(e);\r\n            }\r\n            return e;\r\n        }))\r\n            .toPromise();\r\n    }\r\n    /**\r\n     * This method exists for backwards compatibility.\r\n     * {@link OAuthService#initLoginFlowInPopup} handles both code\r\n     * and implicit flows.\r\n     */\r\n    initImplicitFlowInPopup(options) {\r\n        return this.initLoginFlowInPopup(options);\r\n    }\r\n    initLoginFlowInPopup(options) {\r\n        options = options || {};\r\n        return this.createLoginUrl(null, null, this.silentRefreshRedirectUri, false, {\r\n            display: 'popup',\r\n        }).then((url) => {\r\n            return new Promise((resolve, reject) => {\r\n                /**\r\n                 * Error handling section\r\n                 */\r\n                const checkForPopupClosedInterval = 500;\r\n                let windowRef = null;\r\n                // If we got no window reference we open a window\r\n                // else we are using the window already opened\r\n                if (!options.windowRef) {\r\n                    windowRef = window.open(url, 'ngx-oauth2-oidc-login', this.calculatePopupFeatures(options));\r\n                }\r\n                else if (options.windowRef && !options.windowRef.closed) {\r\n                    windowRef = options.windowRef;\r\n                    windowRef.location.href = url;\r\n                }\r\n                let checkForPopupClosedTimer;\r\n                const tryLogin = (hash) => {\r\n                    this.tryLogin({\r\n                        customHashFragment: hash,\r\n                        preventClearHashAfterLogin: true,\r\n                        customRedirectUri: this.silentRefreshRedirectUri,\r\n                    }).then(() => {\r\n                        cleanup();\r\n                        resolve(true);\r\n                    }, (err) => {\r\n                        cleanup();\r\n                        reject(err);\r\n                    });\r\n                };\r\n                const checkForPopupClosed = () => {\r\n                    if (!windowRef || windowRef.closed) {\r\n                        cleanup();\r\n                        reject(new OAuthErrorEvent('popup_closed', {}));\r\n                    }\r\n                };\r\n                if (!windowRef) {\r\n                    reject(new OAuthErrorEvent('popup_blocked', {}));\r\n                }\r\n                else {\r\n                    checkForPopupClosedTimer = window.setInterval(checkForPopupClosed, checkForPopupClosedInterval);\r\n                }\r\n                const cleanup = () => {\r\n                    window.clearInterval(checkForPopupClosedTimer);\r\n                    window.removeEventListener('storage', storageListener);\r\n                    window.removeEventListener('message', listener);\r\n                    if (windowRef !== null) {\r\n                        windowRef.close();\r\n                    }\r\n                    windowRef = null;\r\n                };\r\n                const listener = (e) => {\r\n                    const message = this.processMessageEventMessage(e);\r\n                    if (message && message !== null) {\r\n                        window.removeEventListener('storage', storageListener);\r\n                        tryLogin(message);\r\n                    }\r\n                    else {\r\n                        console.log('false event firing');\r\n                    }\r\n                };\r\n                const storageListener = (event) => {\r\n                    if (event.key === 'auth_hash') {\r\n                        window.removeEventListener('message', listener);\r\n                        tryLogin(event.newValue);\r\n                    }\r\n                };\r\n                window.addEventListener('message', listener);\r\n                window.addEventListener('storage', storageListener);\r\n            });\r\n        });\r\n    }\r\n    calculatePopupFeatures(options) {\r\n        // Specify an static height and width and calculate centered position\r\n        const height = options.height || 470;\r\n        const width = options.width || 500;\r\n        const left = window.screenLeft + (window.outerWidth - width) / 2;\r\n        const top = window.screenTop + (window.outerHeight - height) / 2;\r\n        return `location=no,toolbar=no,width=${width},height=${height},top=${top},left=${left}`;\r\n    }\r\n    processMessageEventMessage(e) {\r\n        let expectedPrefix = '#';\r\n        if (this.silentRefreshMessagePrefix) {\r\n            expectedPrefix += this.silentRefreshMessagePrefix;\r\n        }\r\n        if (!e || !e.data || typeof e.data !== 'string') {\r\n            return;\r\n        }\r\n        const prefixedMessage = e.data;\r\n        if (!prefixedMessage.startsWith(expectedPrefix)) {\r\n            return;\r\n        }\r\n        return '#' + prefixedMessage.substr(expectedPrefix.length);\r\n    }\r\n    canPerformSessionCheck() {\r\n        if (!this.sessionChecksEnabled) {\r\n            return false;\r\n        }\r\n        if (!this.sessionCheckIFrameUrl) {\r\n            console.warn('sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl');\r\n            return false;\r\n        }\r\n        const sessionState = this.getSessionState();\r\n        if (!sessionState) {\r\n            console.warn('sessionChecksEnabled is activated but there is no session_state');\r\n            return false;\r\n        }\r\n        if (typeof this.document === 'undefined') {\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    setupSessionCheckEventListener() {\r\n        this.removeSessionCheckEventListener();\r\n        this.sessionCheckEventListener = (e) => {\r\n            const origin = e.origin.toLowerCase();\r\n            const issuer = this.issuer.toLowerCase();\r\n            this.debug('sessionCheckEventListener');\r\n            if (!issuer.startsWith(origin)) {\r\n                this.debug('sessionCheckEventListener', 'wrong origin', origin, 'expected', issuer, 'event', e);\r\n                return;\r\n            }\r\n            // only run in Angular zone if it is 'changed' or 'error'\r\n            switch (e.data) {\r\n                case 'unchanged':\r\n                    this.ngZone.run(() => {\r\n                        this.handleSessionUnchanged();\r\n                    });\r\n                    break;\r\n                case 'changed':\r\n                    this.ngZone.run(() => {\r\n                        this.handleSessionChange();\r\n                    });\r\n                    break;\r\n                case 'error':\r\n                    this.ngZone.run(() => {\r\n                        this.handleSessionError();\r\n                    });\r\n                    break;\r\n            }\r\n            this.debug('got info from session check inframe', e);\r\n        };\r\n        // prevent Angular from refreshing the view on every message (runs in intervals)\r\n        this.ngZone.runOutsideAngular(() => {\r\n            window.addEventListener('message', this.sessionCheckEventListener);\r\n        });\r\n    }\r\n    handleSessionUnchanged() {\r\n        this.debug('session check', 'session unchanged');\r\n        this.eventsSubject.next(new OAuthInfoEvent('session_unchanged'));\r\n    }\r\n    handleSessionChange() {\r\n        this.eventsSubject.next(new OAuthInfoEvent('session_changed'));\r\n        this.stopSessionCheckTimer();\r\n        if (!this.useSilentRefresh && this.responseType === 'code') {\r\n            this.refreshToken()\r\n                .then((_) => {\r\n                this.debug('token refresh after session change worked');\r\n            })\r\n                .catch((_) => {\r\n                this.debug('token refresh did not work after session changed');\r\n                this.eventsSubject.next(new OAuthInfoEvent('session_terminated'));\r\n                this.logOut(true);\r\n            });\r\n        }\r\n        else if (this.silentRefreshRedirectUri) {\r\n            this.silentRefresh().catch((_) => this.debug('silent refresh failed after session changed'));\r\n            this.waitForSilentRefreshAfterSessionChange();\r\n        }\r\n        else {\r\n            this.eventsSubject.next(new OAuthInfoEvent('session_terminated'));\r\n            this.logOut(true);\r\n        }\r\n    }\r\n    waitForSilentRefreshAfterSessionChange() {\r\n        this.events\r\n            .pipe(filter((e) => e.type === 'silently_refreshed' ||\r\n            e.type === 'silent_refresh_timeout' ||\r\n            e.type === 'silent_refresh_error'), first())\r\n            .subscribe((e) => {\r\n            if (e.type !== 'silently_refreshed') {\r\n                this.debug('silent refresh did not work after session changed');\r\n                this.eventsSubject.next(new OAuthInfoEvent('session_terminated'));\r\n                this.logOut(true);\r\n            }\r\n        });\r\n    }\r\n    handleSessionError() {\r\n        this.stopSessionCheckTimer();\r\n        this.eventsSubject.next(new OAuthInfoEvent('session_error'));\r\n    }\r\n    removeSessionCheckEventListener() {\r\n        if (this.sessionCheckEventListener) {\r\n            window.removeEventListener('message', this.sessionCheckEventListener);\r\n            this.sessionCheckEventListener = null;\r\n        }\r\n    }\r\n    initSessionCheck() {\r\n        if (!this.canPerformSessionCheck()) {\r\n            return;\r\n        }\r\n        const existingIframe = this.document.getElementById(this.sessionCheckIFrameName);\r\n        if (existingIframe) {\r\n            this.document.body.removeChild(existingIframe);\r\n        }\r\n        const iframe = this.document.createElement('iframe');\r\n        iframe.id = this.sessionCheckIFrameName;\r\n        this.setupSessionCheckEventListener();\r\n        const url = this.sessionCheckIFrameUrl;\r\n        iframe.setAttribute('src', url);\r\n        iframe.style.display = 'none';\r\n        this.document.body.appendChild(iframe);\r\n        this.startSessionCheckTimer();\r\n    }\r\n    startSessionCheckTimer() {\r\n        this.stopSessionCheckTimer();\r\n        this.ngZone.runOutsideAngular(() => {\r\n            this.sessionCheckTimer = setInterval(this.checkSession.bind(this), this.sessionCheckIntervall);\r\n        });\r\n    }\r\n    stopSessionCheckTimer() {\r\n        if (this.sessionCheckTimer) {\r\n            clearInterval(this.sessionCheckTimer);\r\n            this.sessionCheckTimer = null;\r\n        }\r\n    }\r\n    checkSession() {\r\n        const iframe = this.document.getElementById(this.sessionCheckIFrameName);\r\n        if (!iframe) {\r\n            this.logger.warn('checkSession did not find iframe', this.sessionCheckIFrameName);\r\n        }\r\n        const sessionState = this.getSessionState();\r\n        if (!sessionState) {\r\n            this.stopSessionCheckTimer();\r\n        }\r\n        const message = this.clientId + ' ' + sessionState;\r\n        iframe.contentWindow.postMessage(message, this.issuer);\r\n    }\r\n    async createLoginUrl(state = '', loginHint = '', customRedirectUri = '', noPrompt = false, params = {}) {\r\n        const that = this;\r\n        let redirectUri;\r\n        if (customRedirectUri) {\r\n            redirectUri = customRedirectUri;\r\n        }\r\n        else {\r\n            redirectUri = this.redirectUri;\r\n        }\r\n        const nonce = await this.createAndSaveNonce();\r\n        if (state) {\r\n            state =\r\n                nonce + this.config.nonceStateSeparator + encodeURIComponent(state);\r\n        }\r\n        else {\r\n            state = nonce;\r\n        }\r\n        if (!this.requestAccessToken && !this.oidc) {\r\n            throw new Error('Either requestAccessToken or oidc or both must be true');\r\n        }\r\n        if (this.config.responseType) {\r\n            this.responseType = this.config.responseType;\r\n        }\r\n        else {\r\n            if (this.oidc && this.requestAccessToken) {\r\n                this.responseType = 'id_token token';\r\n            }\r\n            else if (this.oidc && !this.requestAccessToken) {\r\n                this.responseType = 'id_token';\r\n            }\r\n            else {\r\n                this.responseType = 'token';\r\n            }\r\n        }\r\n        const seperationChar = that.loginUrl.indexOf('?') > -1 ? '&' : '?';\r\n        let scope = that.scope;\r\n        if (this.oidc && !scope.match(/(^|\\s)openid($|\\s)/)) {\r\n            scope = 'openid ' + scope;\r\n        }\r\n        let url = that.loginUrl +\r\n            seperationChar +\r\n            'response_type=' +\r\n            encodeURIComponent(that.responseType) +\r\n            '&client_id=' +\r\n            encodeURIComponent(that.clientId) +\r\n            '&state=' +\r\n            encodeURIComponent(state) +\r\n            '&redirect_uri=' +\r\n            encodeURIComponent(redirectUri) +\r\n            '&scope=' +\r\n            encodeURIComponent(scope);\r\n        if (this.responseType.includes('code') && !this.disablePKCE) {\r\n            const [challenge, verifier] = await this.createChallangeVerifierPairForPKCE();\r\n            if (this.saveNoncesInLocalStorage &&\r\n                typeof window['localStorage'] !== 'undefined') {\r\n                localStorage.setItem('PKCE_verifier', verifier);\r\n            }\r\n            else {\r\n                this._storage.setItem('PKCE_verifier', verifier);\r\n            }\r\n            url += '&code_challenge=' + challenge;\r\n            url += '&code_challenge_method=S256';\r\n        }\r\n        if (loginHint) {\r\n            url += '&login_hint=' + encodeURIComponent(loginHint);\r\n        }\r\n        if (that.resource) {\r\n            url += '&resource=' + encodeURIComponent(that.resource);\r\n        }\r\n        if (that.oidc) {\r\n            url += '&nonce=' + encodeURIComponent(nonce);\r\n        }\r\n        if (noPrompt) {\r\n            url += '&prompt=none';\r\n        }\r\n        for (const key of Object.keys(params)) {\r\n            url +=\r\n                '&' + encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);\r\n        }\r\n        if (this.customQueryParams) {\r\n            for (const key of Object.getOwnPropertyNames(this.customQueryParams)) {\r\n                url +=\r\n                    '&' + key + '=' + encodeURIComponent(this.customQueryParams[key]);\r\n            }\r\n        }\r\n        return url;\r\n    }\r\n    initImplicitFlowInternal(additionalState = '', params = '') {\r\n        if (this.inImplicitFlow) {\r\n            return;\r\n        }\r\n        this.inImplicitFlow = true;\r\n        if (!this.validateUrlForHttps(this.loginUrl)) {\r\n            throw new Error(\"loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n        }\r\n        let addParams = {};\r\n        let loginHint = null;\r\n        if (typeof params === 'string') {\r\n            loginHint = params;\r\n        }\r\n        else if (typeof params === 'object') {\r\n            addParams = params;\r\n        }\r\n        this.createLoginUrl(additionalState, loginHint, null, false, addParams)\r\n            .then(this.config.openUri)\r\n            .catch((error) => {\r\n            console.error('Error in initImplicitFlow', error);\r\n            this.inImplicitFlow = false;\r\n        });\r\n    }\r\n    /**\r\n     * Starts the implicit flow and redirects to user to\r\n     * the auth servers' login url.\r\n     *\r\n     * @param additionalState Optional state that is passed around.\r\n     *  You'll find this state in the property `state` after `tryLogin` logged in the user.\r\n     * @param params Hash with additional parameter. If it is a string, it is used for the\r\n     *               parameter loginHint (for the sake of compatibility with former versions)\r\n     */\r\n    initImplicitFlow(additionalState = '', params = '') {\r\n        if (this.loginUrl !== '') {\r\n            this.initImplicitFlowInternal(additionalState, params);\r\n        }\r\n        else {\r\n            this.events\r\n                .pipe(filter((e) => e.type === 'discovery_document_loaded'))\r\n                .subscribe((_) => this.initImplicitFlowInternal(additionalState, params));\r\n        }\r\n    }\r\n    /**\r\n     * Reset current implicit flow\r\n     *\r\n     * @description This method allows resetting the current implict flow in order to be initialized again.\r\n     */\r\n    resetImplicitFlow() {\r\n        this.inImplicitFlow = false;\r\n    }\r\n    callOnTokenReceivedIfExists(options) {\r\n        const that = this;\r\n        if (options.onTokenReceived) {\r\n            const tokenParams = {\r\n                idClaims: that.getIdentityClaims(),\r\n                idToken: that.getIdToken(),\r\n                accessToken: that.getAccessToken(),\r\n                state: that.state,\r\n            };\r\n            options.onTokenReceived(tokenParams);\r\n        }\r\n    }\r\n    storeAccessTokenResponse(accessToken, refreshToken, expiresIn, grantedScopes, customParameters) {\r\n        this._storage.setItem('access_token', accessToken);\r\n        if (grantedScopes && !Array.isArray(grantedScopes)) {\r\n            this._storage.setItem('granted_scopes', JSON.stringify(grantedScopes.split(' ')));\r\n        }\r\n        else if (grantedScopes && Array.isArray(grantedScopes)) {\r\n            this._storage.setItem('granted_scopes', JSON.stringify(grantedScopes));\r\n        }\r\n        this._storage.setItem('access_token_stored_at', '' + this.dateTimeService.now());\r\n        if (expiresIn) {\r\n            const expiresInMilliSeconds = expiresIn * 1000;\r\n            const now = this.dateTimeService.new();\r\n            const expiresAt = now.getTime() + expiresInMilliSeconds;\r\n            this._storage.setItem('expires_at', '' + expiresAt);\r\n        }\r\n        if (refreshToken) {\r\n            this._storage.setItem('refresh_token', refreshToken);\r\n        }\r\n        if (customParameters) {\r\n            customParameters.forEach((value, key) => {\r\n                this._storage.setItem(key, value);\r\n            });\r\n        }\r\n    }\r\n    /**\r\n     * Delegates to tryLoginImplicitFlow for the sake of competability\r\n     * @param options Optional options.\r\n     */\r\n    tryLogin(options = null) {\r\n        if (this.config.responseType === 'code') {\r\n            return this.tryLoginCodeFlow(options).then((_) => true);\r\n        }\r\n        else {\r\n            return this.tryLoginImplicitFlow(options);\r\n        }\r\n    }\r\n    parseQueryString(queryString) {\r\n        if (!queryString || queryString.length === 0) {\r\n            return {};\r\n        }\r\n        if (queryString.charAt(0) === '?') {\r\n            queryString = queryString.substr(1);\r\n        }\r\n        return this.urlHelper.parseQueryString(queryString);\r\n    }\r\n    async tryLoginCodeFlow(options = null) {\r\n        options = options || {};\r\n        const querySource = options.customHashFragment\r\n            ? options.customHashFragment.substring(1)\r\n            : window.location.search;\r\n        const parts = this.getCodePartsFromUrl(querySource);\r\n        const code = parts['code'];\r\n        const state = parts['state'];\r\n        const sessionState = parts['session_state'];\r\n        if (!options.preventClearHashAfterLogin) {\r\n            const href = location.origin +\r\n                location.pathname +\r\n                location.search\r\n                    .replace(/code=[^&\\$]*/, '')\r\n                    .replace(/scope=[^&\\$]*/, '')\r\n                    .replace(/state=[^&\\$]*/, '')\r\n                    .replace(/session_state=[^&\\$]*/, '')\r\n                    .replace(/^\\?&/, '?')\r\n                    .replace(/&$/, '')\r\n                    .replace(/^\\?$/, '')\r\n                    .replace(/&+/g, '&')\r\n                    .replace(/\\?&/, '?')\r\n                    .replace(/\\?$/, '') +\r\n                location.hash;\r\n            history.replaceState(null, window.name, href);\r\n        }\r\n        let [nonceInState, userState] = this.parseState(state);\r\n        this.state = userState;\r\n        if (parts['error']) {\r\n            this.debug('error trying to login');\r\n            this.handleLoginError(options, parts);\r\n            const err = new OAuthErrorEvent('code_error', {}, parts);\r\n            this.eventsSubject.next(err);\r\n            return Promise.reject(err);\r\n        }\r\n        if (!options.disableNonceCheck) {\r\n            if (!nonceInState) {\r\n                this.saveRequestedRoute();\r\n                return Promise.resolve();\r\n            }\r\n            if (!options.disableOAuth2StateCheck) {\r\n                const success = this.validateNonce(nonceInState);\r\n                if (!success) {\r\n                    const event = new OAuthErrorEvent('invalid_nonce_in_state', null);\r\n                    this.eventsSubject.next(event);\r\n                    return Promise.reject(event);\r\n                }\r\n            }\r\n            this.storeSessionState(sessionState);\r\n            if (code) {\r\n                await this.getTokenFromCode(code, options);\r\n                this.restoreRequestedRoute();\r\n                return Promise.resolve();\r\n            }\r\n            else {\r\n                return Promise.resolve();\r\n            }\r\n        }\r\n        return Promise.reject();\r\n    }\r\n    saveRequestedRoute() {\r\n        if (this.config.preserveRequestedRoute) {\r\n            this._storage.setItem('requested_route', window.location.pathname + window.location.search);\r\n        }\r\n    }\r\n    restoreRequestedRoute() {\r\n        const requestedRoute = this._storage.getItem('requested_route');\r\n        if (requestedRoute) {\r\n            history.replaceState(null, '', window.location.origin + requestedRoute);\r\n        }\r\n    }\r\n    /**\r\n     * Retrieve the returned auth code from the redirect uri that has been called.\r\n     * If required also check hash, as we could use hash location strategy.\r\n     */\r\n    getCodePartsFromUrl(queryString) {\r\n        if (!queryString || queryString.length === 0) {\r\n            return this.urlHelper.getHashFragmentParams();\r\n        }\r\n        // normalize query string\r\n        if (queryString.charAt(0) === '?') {\r\n            queryString = queryString.substr(1);\r\n        }\r\n        return this.urlHelper.parseQueryString(queryString);\r\n    }\r\n    /**\r\n     * Get token using an intermediate code. Works for the Authorization Code flow.\r\n     */\r\n    getTokenFromCode(code, options) {\r\n        let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() })\r\n            .set('grant_type', 'authorization_code')\r\n            .set('code', code)\r\n            .set('redirect_uri', options.customRedirectUri || this.redirectUri);\r\n        if (!this.disablePKCE) {\r\n            let PKCEVerifier;\r\n            if (this.saveNoncesInLocalStorage &&\r\n                typeof window['localStorage'] !== 'undefined') {\r\n                PKCEVerifier = localStorage.getItem('PKCE_verifier');\r\n            }\r\n            else {\r\n                PKCEVerifier = this._storage.getItem('PKCE_verifier');\r\n            }\r\n            if (!PKCEVerifier) {\r\n                console.warn('No PKCE verifier found in oauth storage!');\r\n            }\r\n            else {\r\n                params = params.set('code_verifier', PKCEVerifier);\r\n            }\r\n        }\r\n        return this.fetchAndProcessToken(params, options);\r\n    }\r\n    fetchAndProcessToken(params, options) {\r\n        options = options || {};\r\n        this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint, 'tokenEndpoint');\r\n        let headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');\r\n        if (this.useHttpBasicAuth) {\r\n            const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);\r\n            headers = headers.set('Authorization', 'Basic ' + header);\r\n        }\r\n        if (!this.useHttpBasicAuth) {\r\n            params = params.set('client_id', this.clientId);\r\n        }\r\n        if (!this.useHttpBasicAuth && this.dummyClientSecret) {\r\n            params = params.set('client_secret', this.dummyClientSecret);\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            if (this.customQueryParams) {\r\n                for (let key of Object.getOwnPropertyNames(this.customQueryParams)) {\r\n                    params = params.set(key, this.customQueryParams[key]);\r\n                }\r\n            }\r\n            this.http\r\n                .post(this.tokenEndpoint, params, { headers })\r\n                .subscribe((tokenResponse) => {\r\n                this.debug('refresh tokenResponse', tokenResponse);\r\n                this.storeAccessTokenResponse(tokenResponse.access_token, tokenResponse.refresh_token, tokenResponse.expires_in ||\r\n                    this.fallbackAccessTokenExpirationTimeInSec, tokenResponse.scope, this.extractRecognizedCustomParameters(tokenResponse));\r\n                if (this.oidc && tokenResponse.id_token) {\r\n                    this.processIdToken(tokenResponse.id_token, tokenResponse.access_token, options.disableNonceCheck)\r\n                        .then((result) => {\r\n                        this.storeIdToken(result);\r\n                        this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n                        this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));\r\n                        resolve(tokenResponse);\r\n                    })\r\n                        .catch((reason) => {\r\n                        this.eventsSubject.next(new OAuthErrorEvent('token_validation_error', reason));\r\n                        console.error('Error validating tokens');\r\n                        console.error(reason);\r\n                        reject(reason);\r\n                    });\r\n                }\r\n                else {\r\n                    this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n                    this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));\r\n                    resolve(tokenResponse);\r\n                }\r\n            }, (err) => {\r\n                console.error('Error getting token', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('token_refresh_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Checks whether there are tokens in the hash fragment\r\n     * as a result of the implicit flow. These tokens are\r\n     * parsed, validated and used to sign the user in to the\r\n     * current client.\r\n     *\r\n     * @param options Optional options.\r\n     */\r\n    tryLoginImplicitFlow(options = null) {\r\n        options = options || {};\r\n        let parts;\r\n        if (options.customHashFragment) {\r\n            parts = this.urlHelper.getHashFragmentParams(options.customHashFragment);\r\n        }\r\n        else {\r\n            parts = this.urlHelper.getHashFragmentParams();\r\n        }\r\n        this.debug('parsed url', parts);\r\n        const state = parts['state'];\r\n        let [nonceInState, userState] = this.parseState(state);\r\n        this.state = userState;\r\n        if (parts['error']) {\r\n            this.debug('error trying to login');\r\n            this.handleLoginError(options, parts);\r\n            const err = new OAuthErrorEvent('token_error', {}, parts);\r\n            this.eventsSubject.next(err);\r\n            return Promise.reject(err);\r\n        }\r\n        const accessToken = parts['access_token'];\r\n        const idToken = parts['id_token'];\r\n        const sessionState = parts['session_state'];\r\n        const grantedScopes = parts['scope'];\r\n        if (!this.requestAccessToken && !this.oidc) {\r\n            return Promise.reject('Either requestAccessToken or oidc (or both) must be true.');\r\n        }\r\n        if (this.requestAccessToken && !accessToken) {\r\n            return Promise.resolve(false);\r\n        }\r\n        if (this.requestAccessToken && !options.disableOAuth2StateCheck && !state) {\r\n            return Promise.resolve(false);\r\n        }\r\n        if (this.oidc && !idToken) {\r\n            return Promise.resolve(false);\r\n        }\r\n        if (this.sessionChecksEnabled && !sessionState) {\r\n            this.logger.warn('session checks (Session Status Change Notification) ' +\r\n                'were activated in the configuration but the id_token ' +\r\n                'does not contain a session_state claim');\r\n        }\r\n        if (this.requestAccessToken && !options.disableNonceCheck) {\r\n            const success = this.validateNonce(nonceInState);\r\n            if (!success) {\r\n                const event = new OAuthErrorEvent('invalid_nonce_in_state', null);\r\n                this.eventsSubject.next(event);\r\n                return Promise.reject(event);\r\n            }\r\n        }\r\n        if (this.requestAccessToken) {\r\n            this.storeAccessTokenResponse(accessToken, null, parts['expires_in'] || this.fallbackAccessTokenExpirationTimeInSec, grantedScopes);\r\n        }\r\n        if (!this.oidc) {\r\n            this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n            if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) {\r\n                this.clearLocationHash();\r\n            }\r\n            this.callOnTokenReceivedIfExists(options);\r\n            return Promise.resolve(true);\r\n        }\r\n        return this.processIdToken(idToken, accessToken, options.disableNonceCheck)\r\n            .then((result) => {\r\n            if (options.validationHandler) {\r\n                return options\r\n                    .validationHandler({\r\n                    accessToken: accessToken,\r\n                    idClaims: result.idTokenClaims,\r\n                    idToken: result.idToken,\r\n                    state: state,\r\n                })\r\n                    .then((_) => result);\r\n            }\r\n            return result;\r\n        })\r\n            .then((result) => {\r\n            this.storeIdToken(result);\r\n            this.storeSessionState(sessionState);\r\n            if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) {\r\n                this.clearLocationHash();\r\n            }\r\n            this.eventsSubject.next(new OAuthSuccessEvent('token_received'));\r\n            this.callOnTokenReceivedIfExists(options);\r\n            this.inImplicitFlow = false;\r\n            return true;\r\n        })\r\n            .catch((reason) => {\r\n            this.eventsSubject.next(new OAuthErrorEvent('token_validation_error', reason));\r\n            this.logger.error('Error validating tokens');\r\n            this.logger.error(reason);\r\n            return Promise.reject(reason);\r\n        });\r\n    }\r\n    parseState(state) {\r\n        let nonce = state;\r\n        let userState = '';\r\n        if (state) {\r\n            const idx = state.indexOf(this.config.nonceStateSeparator);\r\n            if (idx > -1) {\r\n                nonce = state.substr(0, idx);\r\n                userState = state.substr(idx + this.config.nonceStateSeparator.length);\r\n            }\r\n        }\r\n        return [nonce, userState];\r\n    }\r\n    validateNonce(nonceInState) {\r\n        let savedNonce;\r\n        if (this.saveNoncesInLocalStorage &&\r\n            typeof window['localStorage'] !== 'undefined') {\r\n            savedNonce = localStorage.getItem('nonce');\r\n        }\r\n        else {\r\n            savedNonce = this._storage.getItem('nonce');\r\n        }\r\n        if (savedNonce !== nonceInState) {\r\n            const err = 'Validating access_token failed, wrong state/nonce.';\r\n            console.error(err, savedNonce, nonceInState);\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    storeIdToken(idToken) {\r\n        this._storage.setItem('id_token', idToken.idToken);\r\n        this._storage.setItem('id_token_claims_obj', idToken.idTokenClaimsJson);\r\n        this._storage.setItem('id_token_expires_at', '' + idToken.idTokenExpiresAt);\r\n        this._storage.setItem('id_token_stored_at', '' + this.dateTimeService.now());\r\n    }\r\n    storeSessionState(sessionState) {\r\n        this._storage.setItem('session_state', sessionState);\r\n    }\r\n    getSessionState() {\r\n        return this._storage.getItem('session_state');\r\n    }\r\n    handleLoginError(options, parts) {\r\n        if (options.onLoginError) {\r\n            options.onLoginError(parts);\r\n        }\r\n        if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) {\r\n            this.clearLocationHash();\r\n        }\r\n    }\r\n    getClockSkewInMsec(defaultSkewMsc = 600000) {\r\n        if (!this.clockSkewInSec) {\r\n            return defaultSkewMsc;\r\n        }\r\n        return this.clockSkewInSec * 1000;\r\n    }\r\n    /**\r\n     * @ignore\r\n     */\r\n    processIdToken(idToken, accessToken, skipNonceCheck = false) {\r\n        const tokenParts = idToken.split('.');\r\n        const headerBase64 = this.padBase64(tokenParts[0]);\r\n        const headerJson = b64DecodeUnicode(headerBase64);\r\n        const header = JSON.parse(headerJson);\r\n        const claimsBase64 = this.padBase64(tokenParts[1]);\r\n        const claimsJson = b64DecodeUnicode(claimsBase64);\r\n        const claims = JSON.parse(claimsJson);\r\n        let savedNonce;\r\n        if (this.saveNoncesInLocalStorage &&\r\n            typeof window['localStorage'] !== 'undefined') {\r\n            savedNonce = localStorage.getItem('nonce');\r\n        }\r\n        else {\r\n            savedNonce = this._storage.getItem('nonce');\r\n        }\r\n        if (Array.isArray(claims.aud)) {\r\n            if (claims.aud.every((v) => v !== this.clientId)) {\r\n                const err = 'Wrong audience: ' + claims.aud.join(',');\r\n                this.logger.warn(err);\r\n                return Promise.reject(err);\r\n            }\r\n        }\r\n        else {\r\n            if (claims.aud !== this.clientId) {\r\n                const err = 'Wrong audience: ' + claims.aud;\r\n                this.logger.warn(err);\r\n                return Promise.reject(err);\r\n            }\r\n        }\r\n        if (!claims.sub) {\r\n            const err = 'No sub claim in id_token';\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        /* For now, we only check whether the sub against\r\n         * silentRefreshSubject when sessionChecksEnabled is on\r\n         * We will reconsider in a later version to do this\r\n         * in every other case too.\r\n         */\r\n        if (this.sessionChecksEnabled &&\r\n            this.silentRefreshSubject &&\r\n            this.silentRefreshSubject !== claims['sub']) {\r\n            const err = 'After refreshing, we got an id_token for another user (sub). ' +\r\n                `Expected sub: ${this.silentRefreshSubject}, received sub: ${claims['sub']}`;\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        if (!claims.iat) {\r\n            const err = 'No iat claim in id_token';\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        if (!this.skipIssuerCheck && claims.iss !== this.issuer) {\r\n            const err = 'Wrong issuer: ' + claims.iss;\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        if (!skipNonceCheck && claims.nonce !== savedNonce) {\r\n            const err = 'Wrong nonce: ' + claims.nonce;\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        // at_hash is not applicable to authorization code flow\r\n        // addressing https://github.com/manfredsteyer/angular-oauth2-oidc/issues/661\r\n        // i.e. Based on spec the at_hash check is only true for implicit code flow on Ping Federate\r\n        // https://www.pingidentity.com/developer/en/resources/openid-connect-developers-guide.html\r\n        if (this.hasOwnProperty('responseType') &&\r\n            (this.responseType === 'code' || this.responseType === 'id_token')) {\r\n            this.disableAtHashCheck = true;\r\n        }\r\n        if (!this.disableAtHashCheck &&\r\n            this.requestAccessToken &&\r\n            !claims['at_hash']) {\r\n            const err = 'An at_hash is needed!';\r\n            this.logger.warn(err);\r\n            return Promise.reject(err);\r\n        }\r\n        const now = this.dateTimeService.now();\r\n        const issuedAtMSec = claims.iat * 1000;\r\n        const expiresAtMSec = claims.exp * 1000;\r\n        const clockSkewInMSec = this.getClockSkewInMsec(); // (this.getClockSkewInMsec() || 600) * 1000;\r\n        if (issuedAtMSec - clockSkewInMSec >= now ||\r\n            expiresAtMSec + clockSkewInMSec <= now) {\r\n            const err = 'Token has expired';\r\n            console.error(err);\r\n            console.error({\r\n                now: now,\r\n                issuedAtMSec: issuedAtMSec,\r\n                expiresAtMSec: expiresAtMSec,\r\n            });\r\n            return Promise.reject(err);\r\n        }\r\n        const validationParams = {\r\n            accessToken: accessToken,\r\n            idToken: idToken,\r\n            jwks: this.jwks,\r\n            idTokenClaims: claims,\r\n            idTokenHeader: header,\r\n            loadKeys: () => this.loadJwks(),\r\n        };\r\n        if (this.disableAtHashCheck) {\r\n            return this.checkSignature(validationParams).then((_) => {\r\n                const result = {\r\n                    idToken: idToken,\r\n                    idTokenClaims: claims,\r\n                    idTokenClaimsJson: claimsJson,\r\n                    idTokenHeader: header,\r\n                    idTokenHeaderJson: headerJson,\r\n                    idTokenExpiresAt: expiresAtMSec,\r\n                };\r\n                return result;\r\n            });\r\n        }\r\n        return this.checkAtHash(validationParams).then((atHashValid) => {\r\n            if (!this.disableAtHashCheck && this.requestAccessToken && !atHashValid) {\r\n                const err = 'Wrong at_hash';\r\n                this.logger.warn(err);\r\n                return Promise.reject(err);\r\n            }\r\n            return this.checkSignature(validationParams).then((_) => {\r\n                const atHashCheckEnabled = !this.disableAtHashCheck;\r\n                const result = {\r\n                    idToken: idToken,\r\n                    idTokenClaims: claims,\r\n                    idTokenClaimsJson: claimsJson,\r\n                    idTokenHeader: header,\r\n                    idTokenHeaderJson: headerJson,\r\n                    idTokenExpiresAt: expiresAtMSec,\r\n                };\r\n                if (atHashCheckEnabled) {\r\n                    return this.checkAtHash(validationParams).then((atHashValid) => {\r\n                        if (this.requestAccessToken && !atHashValid) {\r\n                            const err = 'Wrong at_hash';\r\n                            this.logger.warn(err);\r\n                            return Promise.reject(err);\r\n                        }\r\n                        else {\r\n                            return result;\r\n                        }\r\n                    });\r\n                }\r\n                else {\r\n                    return result;\r\n                }\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Returns the received claims about the user.\r\n     */\r\n    getIdentityClaims() {\r\n        const claims = this._storage.getItem('id_token_claims_obj');\r\n        if (!claims) {\r\n            return null;\r\n        }\r\n        return JSON.parse(claims);\r\n    }\r\n    /**\r\n     * Returns the granted scopes from the server.\r\n     */\r\n    getGrantedScopes() {\r\n        const scopes = this._storage.getItem('granted_scopes');\r\n        if (!scopes) {\r\n            return null;\r\n        }\r\n        return JSON.parse(scopes);\r\n    }\r\n    /**\r\n     * Returns the current id_token.\r\n     */\r\n    getIdToken() {\r\n        return this._storage ? this._storage.getItem('id_token') : null;\r\n    }\r\n    padBase64(base64data) {\r\n        while (base64data.length % 4 !== 0) {\r\n            base64data += '=';\r\n        }\r\n        return base64data;\r\n    }\r\n    /**\r\n     * Returns the current access_token.\r\n     */\r\n    getAccessToken() {\r\n        return this._storage ? this._storage.getItem('access_token') : null;\r\n    }\r\n    getRefreshToken() {\r\n        return this._storage ? this._storage.getItem('refresh_token') : null;\r\n    }\r\n    /**\r\n     * Returns the expiration date of the access_token\r\n     * as milliseconds since 1970.\r\n     */\r\n    getAccessTokenExpiration() {\r\n        if (!this._storage.getItem('expires_at')) {\r\n            return null;\r\n        }\r\n        return parseInt(this._storage.getItem('expires_at'), 10);\r\n    }\r\n    getAccessTokenStoredAt() {\r\n        return parseInt(this._storage.getItem('access_token_stored_at'), 10);\r\n    }\r\n    getIdTokenStoredAt() {\r\n        return parseInt(this._storage.getItem('id_token_stored_at'), 10);\r\n    }\r\n    /**\r\n     * Returns the expiration date of the id_token\r\n     * as milliseconds since 1970.\r\n     */\r\n    getIdTokenExpiration() {\r\n        if (!this._storage.getItem('id_token_expires_at')) {\r\n            return null;\r\n        }\r\n        return parseInt(this._storage.getItem('id_token_expires_at'), 10);\r\n    }\r\n    /**\r\n     * Checkes, whether there is a valid access_token.\r\n     */\r\n    hasValidAccessToken() {\r\n        if (this.getAccessToken()) {\r\n            const expiresAt = this._storage.getItem('expires_at');\r\n            const now = this.dateTimeService.new();\r\n            if (expiresAt &&\r\n                parseInt(expiresAt, 10) < now.getTime() - this.getClockSkewInMsec()) {\r\n                return false;\r\n            }\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n    /**\r\n     * Checks whether there is a valid id_token.\r\n     */\r\n    hasValidIdToken() {\r\n        if (this.getIdToken()) {\r\n            const expiresAt = this._storage.getItem('id_token_expires_at');\r\n            const now = this.dateTimeService.new();\r\n            if (expiresAt &&\r\n                parseInt(expiresAt, 10) < now.getTime() - this.getClockSkewInMsec()) {\r\n                return false;\r\n            }\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n    /**\r\n     * Retrieve a saved custom property of the TokenReponse object. Only if predefined in authconfig.\r\n     */\r\n    getCustomTokenResponseProperty(requestedProperty) {\r\n        return this._storage &&\r\n            this.config.customTokenParameters &&\r\n            this.config.customTokenParameters.indexOf(requestedProperty) >= 0 &&\r\n            this._storage.getItem(requestedProperty) !== null\r\n            ? JSON.parse(this._storage.getItem(requestedProperty))\r\n            : null;\r\n    }\r\n    /**\r\n     * Returns the auth-header that can be used\r\n     * to transmit the access_token to a service\r\n     */\r\n    authorizationHeader() {\r\n        return 'Bearer ' + this.getAccessToken();\r\n    }\r\n    logOut(customParameters = {}, state = '') {\r\n        let noRedirectToLogoutUrl = false;\r\n        if (typeof customParameters === 'boolean') {\r\n            noRedirectToLogoutUrl = customParameters;\r\n            customParameters = {};\r\n        }\r\n        const id_token = this.getIdToken();\r\n        this._storage.removeItem('access_token');\r\n        this._storage.removeItem('id_token');\r\n        this._storage.removeItem('refresh_token');\r\n        if (this.saveNoncesInLocalStorage) {\r\n            localStorage.removeItem('nonce');\r\n            localStorage.removeItem('PKCE_verifier');\r\n        }\r\n        else {\r\n            this._storage.removeItem('nonce');\r\n            this._storage.removeItem('PKCE_verifier');\r\n        }\r\n        this._storage.removeItem('expires_at');\r\n        this._storage.removeItem('id_token_claims_obj');\r\n        this._storage.removeItem('id_token_expires_at');\r\n        this._storage.removeItem('id_token_stored_at');\r\n        this._storage.removeItem('access_token_stored_at');\r\n        this._storage.removeItem('granted_scopes');\r\n        this._storage.removeItem('session_state');\r\n        if (this.config.customTokenParameters) {\r\n            this.config.customTokenParameters.forEach((customParam) => this._storage.removeItem(customParam));\r\n        }\r\n        this.silentRefreshSubject = null;\r\n        this.eventsSubject.next(new OAuthInfoEvent('logout'));\r\n        if (!this.logoutUrl) {\r\n            return;\r\n        }\r\n        if (noRedirectToLogoutUrl) {\r\n            return;\r\n        }\r\n        if (!id_token && !this.postLogoutRedirectUri) {\r\n            return;\r\n        }\r\n        let logoutUrl;\r\n        if (!this.validateUrlForHttps(this.logoutUrl)) {\r\n            throw new Error(\"logoutUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n        }\r\n        // For backward compatibility\r\n        if (this.logoutUrl.indexOf('{{') > -1) {\r\n            logoutUrl = this.logoutUrl\r\n                .replace(/\\{\\{id_token\\}\\}/, encodeURIComponent(id_token))\r\n                .replace(/\\{\\{client_id\\}\\}/, encodeURIComponent(this.clientId));\r\n        }\r\n        else {\r\n            let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() });\r\n            if (id_token) {\r\n                params = params.set('id_token_hint', id_token);\r\n            }\r\n            const postLogoutUrl = this.postLogoutRedirectUri ||\r\n                (this.redirectUriAsPostLogoutRedirectUriFallback && this.redirectUri) ||\r\n                '';\r\n            if (postLogoutUrl) {\r\n                params = params.set('post_logout_redirect_uri', postLogoutUrl);\r\n                if (state) {\r\n                    params = params.set('state', state);\r\n                }\r\n            }\r\n            for (let key in customParameters) {\r\n                params = params.set(key, customParameters[key]);\r\n            }\r\n            logoutUrl =\r\n                this.logoutUrl +\r\n                    (this.logoutUrl.indexOf('?') > -1 ? '&' : '?') +\r\n                    params.toString();\r\n        }\r\n        this.config.openUri(logoutUrl);\r\n    }\r\n    /**\r\n     * @ignore\r\n     */\r\n    createAndSaveNonce() {\r\n        const that = this;\r\n        return this.createNonce().then(function (nonce) {\r\n            // Use localStorage for nonce if possible\r\n            // localStorage is the only storage who survives a\r\n            // redirect in ALL browsers (also IE)\r\n            // Otherwiese we'd force teams who have to support\r\n            // IE into using localStorage for everything\r\n            if (that.saveNoncesInLocalStorage &&\r\n                typeof window['localStorage'] !== 'undefined') {\r\n                localStorage.setItem('nonce', nonce);\r\n            }\r\n            else {\r\n                that._storage.setItem('nonce', nonce);\r\n            }\r\n            return nonce;\r\n        });\r\n    }\r\n    /**\r\n     * @ignore\r\n     */\r\n    ngOnDestroy() {\r\n        this.clearAccessTokenTimer();\r\n        this.clearIdTokenTimer();\r\n        this.removeSilentRefreshEventListener();\r\n        const silentRefreshFrame = this.document.getElementById(this.silentRefreshIFrameName);\r\n        if (silentRefreshFrame) {\r\n            silentRefreshFrame.remove();\r\n        }\r\n        this.stopSessionCheckTimer();\r\n        this.removeSessionCheckEventListener();\r\n        const sessionCheckFrame = this.document.getElementById(this.sessionCheckIFrameName);\r\n        if (sessionCheckFrame) {\r\n            sessionCheckFrame.remove();\r\n        }\r\n    }\r\n    createNonce() {\r\n        return new Promise((resolve) => {\r\n            if (this.rngUrl) {\r\n                throw new Error('createNonce with rng-web-api has not been implemented so far');\r\n            }\r\n            /*\r\n             * This alphabet is from:\r\n             * https://tools.ietf.org/html/rfc7636#section-4.1\r\n             *\r\n             * [A-Z] / [a-z] / [0-9] / \"-\" / \".\" / \"_\" / \"~\"\r\n             */\r\n            const unreserved = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~';\r\n            let size = 45;\r\n            let id = '';\r\n            const crypto = typeof self === 'undefined' ? null : self.crypto || self['msCrypto'];\r\n            if (crypto) {\r\n                let bytes = new Uint8Array(size);\r\n                crypto.getRandomValues(bytes);\r\n                // Needed for IE\r\n                if (!bytes.map) {\r\n                    bytes.map = Array.prototype.map;\r\n                }\r\n                bytes = bytes.map((x) => unreserved.charCodeAt(x % unreserved.length));\r\n                id = String.fromCharCode.apply(null, bytes);\r\n            }\r\n            else {\r\n                while (0 < size--) {\r\n                    id += unreserved[(Math.random() * unreserved.length) | 0];\r\n                }\r\n            }\r\n            resolve(base64UrlEncode(id));\r\n        });\r\n    }\r\n    async checkAtHash(params) {\r\n        if (!this.tokenValidationHandler) {\r\n            this.logger.warn('No tokenValidationHandler configured. Cannot check at_hash.');\r\n            return true;\r\n        }\r\n        return this.tokenValidationHandler.validateAtHash(params);\r\n    }\r\n    checkSignature(params) {\r\n        if (!this.tokenValidationHandler) {\r\n            this.logger.warn('No tokenValidationHandler configured. Cannot check signature.');\r\n            return Promise.resolve(null);\r\n        }\r\n        return this.tokenValidationHandler.validateSignature(params);\r\n    }\r\n    /**\r\n     * Start the implicit flow or the code flow,\r\n     * depending on your configuration.\r\n     */\r\n    initLoginFlow(additionalState = '', params = {}) {\r\n        if (this.responseType === 'code') {\r\n            return this.initCodeFlow(additionalState, params);\r\n        }\r\n        else {\r\n            return this.initImplicitFlow(additionalState, params);\r\n        }\r\n    }\r\n    /**\r\n     * Starts the authorization code flow and redirects to user to\r\n     * the auth servers login url.\r\n     */\r\n    initCodeFlow(additionalState = '', params = {}) {\r\n        if (this.loginUrl !== '') {\r\n            this.initCodeFlowInternal(additionalState, params);\r\n        }\r\n        else {\r\n            this.events\r\n                .pipe(filter((e) => e.type === 'discovery_document_loaded'))\r\n                .subscribe((_) => this.initCodeFlowInternal(additionalState, params));\r\n        }\r\n    }\r\n    initCodeFlowInternal(additionalState = '', params = {}) {\r\n        if (!this.validateUrlForHttps(this.loginUrl)) {\r\n            throw new Error(\"loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).\");\r\n        }\r\n        let addParams = {};\r\n        let loginHint = null;\r\n        if (typeof params === 'string') {\r\n            loginHint = params;\r\n        }\r\n        else if (typeof params === 'object') {\r\n            addParams = params;\r\n        }\r\n        this.createLoginUrl(additionalState, loginHint, null, false, addParams)\r\n            .then(this.config.openUri)\r\n            .catch((error) => {\r\n            console.error('Error in initAuthorizationCodeFlow');\r\n            console.error(error);\r\n        });\r\n    }\r\n    async createChallangeVerifierPairForPKCE() {\r\n        if (!this.crypto) {\r\n            throw new Error('PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?');\r\n        }\r\n        const verifier = await this.createNonce();\r\n        const challengeRaw = await this.crypto.calcHash(verifier, 'sha-256');\r\n        const challenge = base64UrlEncode(challengeRaw);\r\n        return [challenge, verifier];\r\n    }\r\n    extractRecognizedCustomParameters(tokenResponse) {\r\n        let foundParameters = new Map();\r\n        if (!this.config.customTokenParameters) {\r\n            return foundParameters;\r\n        }\r\n        this.config.customTokenParameters.forEach((recognizedParameter) => {\r\n            if (tokenResponse[recognizedParameter]) {\r\n                foundParameters.set(recognizedParameter, JSON.stringify(tokenResponse[recognizedParameter]));\r\n            }\r\n        });\r\n        return foundParameters;\r\n    }\r\n    /**\r\n     * Revokes the auth token to secure the vulnarability\r\n     * of the token issued allowing the authorization server to clean\r\n     * up any security credentials associated with the authorization\r\n     */\r\n    revokeTokenAndLogout(customParameters = {}, ignoreCorsIssues = false) {\r\n        let revokeEndpoint = this.revocationEndpoint;\r\n        let accessToken = this.getAccessToken();\r\n        let refreshToken = this.getRefreshToken();\r\n        if (!accessToken) {\r\n            return;\r\n        }\r\n        let params = new HttpParams({ encoder: new WebHttpUrlEncodingCodec() });\r\n        let headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded');\r\n        if (this.useHttpBasicAuth) {\r\n            const header = btoa(`${this.clientId}:${this.dummyClientSecret}`);\r\n            headers = headers.set('Authorization', 'Basic ' + header);\r\n        }\r\n        if (!this.useHttpBasicAuth) {\r\n            params = params.set('client_id', this.clientId);\r\n        }\r\n        if (!this.useHttpBasicAuth && this.dummyClientSecret) {\r\n            params = params.set('client_secret', this.dummyClientSecret);\r\n        }\r\n        if (this.customQueryParams) {\r\n            for (const key of Object.getOwnPropertyNames(this.customQueryParams)) {\r\n                params = params.set(key, this.customQueryParams[key]);\r\n            }\r\n        }\r\n        return new Promise((resolve, reject) => {\r\n            let revokeAccessToken;\r\n            let revokeRefreshToken;\r\n            if (accessToken) {\r\n                let revokationParams = params\r\n                    .set('token', accessToken)\r\n                    .set('token_type_hint', 'access_token');\r\n                revokeAccessToken = this.http.post(revokeEndpoint, revokationParams, { headers });\r\n            }\r\n            else {\r\n                revokeAccessToken = of(null);\r\n            }\r\n            if (refreshToken) {\r\n                let revokationParams = params\r\n                    .set('token', refreshToken)\r\n                    .set('token_type_hint', 'refresh_token');\r\n                revokeRefreshToken = this.http.post(revokeEndpoint, revokationParams, { headers });\r\n            }\r\n            else {\r\n                revokeRefreshToken = of(null);\r\n            }\r\n            if (ignoreCorsIssues) {\r\n                revokeAccessToken = revokeAccessToken.pipe(catchError((err) => {\r\n                    if (err.status === 0) {\r\n                        return of(null);\r\n                    }\r\n                    return throwError(err);\r\n                }));\r\n                revokeRefreshToken = revokeRefreshToken.pipe(catchError((err) => {\r\n                    if (err.status === 0) {\r\n                        return of(null);\r\n                    }\r\n                    return throwError(err);\r\n                }));\r\n            }\r\n            combineLatest([revokeAccessToken, revokeRefreshToken]).subscribe((res) => {\r\n                this.logOut(customParameters);\r\n                resolve(res);\r\n                this.logger.info('Token successfully revoked');\r\n            }, (err) => {\r\n                this.logger.error('Error revoking token', err);\r\n                this.eventsSubject.next(new OAuthErrorEvent('token_revoke_error', err));\r\n                reject(err);\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * Clear location.hash if it's present\r\n     */\r\n    clearLocationHash() {\r\n        // Checking for empty hash is necessary for Firefox\r\n        // as setting an empty hash to an empty string adds # to the URL\r\n        if (location.hash != '') {\r\n            location.hash = '';\r\n        }\r\n    }\r\n}\r\nOAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthService, deps: [{ token: i0.NgZone }, { token: i1.HttpClient }, { token: OAuthStorage, optional: true }, { token: ValidationHandler, optional: true }, { token: AuthConfig, optional: true }, { token: UrlHelperService }, { token: OAuthLogger }, { token: HashHandler, optional: true }, { token: DOCUMENT }, { token: DateTimeProvider }], target: i0.ɵɵFactoryTarget.Injectable });\r\nOAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthService });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthService, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.HttpClient }, { type: OAuthStorage, decorators: [{\r\n                    type: Optional\r\n                }] }, { type: ValidationHandler, decorators: [{\r\n                    type: Optional\r\n                }] }, { type: AuthConfig, decorators: [{\r\n                    type: Optional\r\n                }] }, { type: UrlHelperService }, { type: OAuthLogger }, { type: HashHandler, decorators: [{\r\n                    type: Optional\r\n                }] }, { type: undefined, decorators: [{\r\n                    type: Inject,\r\n                    args: [DOCUMENT]\r\n                }] }, { type: DateTimeProvider }]; } });\n\nclass OAuthModuleConfig {\r\n}\r\nclass OAuthResourceServerConfig {\r\n}\n\nclass OAuthResourceServerErrorHandler {\r\n}\r\nclass OAuthNoopResourceServerErrorHandler {\r\n    handleError(err) {\r\n        return throwError(err);\r\n    }\r\n}\n\nclass DefaultOAuthInterceptor {\r\n    constructor(oAuthService, errorHandler, moduleConfig) {\r\n        this.oAuthService = oAuthService;\r\n        this.errorHandler = errorHandler;\r\n        this.moduleConfig = moduleConfig;\r\n    }\r\n    checkUrl(url) {\r\n        if (this.moduleConfig.resourceServer.customUrlValidation) {\r\n            return this.moduleConfig.resourceServer.customUrlValidation(url);\r\n        }\r\n        if (this.moduleConfig.resourceServer.allowedUrls) {\r\n            return !!this.moduleConfig.resourceServer.allowedUrls.find((u) => url.toLowerCase().startsWith(u.toLowerCase()));\r\n        }\r\n        return true;\r\n    }\r\n    intercept(req, next) {\r\n        const url = req.url.toLowerCase();\r\n        if (!this.moduleConfig ||\r\n            !this.moduleConfig.resourceServer ||\r\n            !this.checkUrl(url)) {\r\n            return next.handle(req);\r\n        }\r\n        const sendAccessToken = this.moduleConfig.resourceServer.sendAccessToken;\r\n        if (!sendAccessToken) {\r\n            return next\r\n                .handle(req)\r\n                .pipe(catchError((err) => this.errorHandler.handleError(err)));\r\n        }\r\n        return merge(of(this.oAuthService.getAccessToken()).pipe(filter((token) => !!token)), this.oAuthService.events.pipe(filter((e) => e.type === 'token_received'), timeout(this.oAuthService.waitForTokenInMsec || 0), catchError((_) => of(null)), // timeout is not an error\r\n        map((_) => this.oAuthService.getAccessToken()))).pipe(take(1), mergeMap((token) => {\r\n            if (token) {\r\n                const header = 'Bearer ' + token;\r\n                const headers = req.headers.set('Authorization', header);\r\n                req = req.clone({ headers });\r\n            }\r\n            return next\r\n                .handle(req)\r\n                .pipe(catchError((err) => this.errorHandler.handleError(err)));\r\n        }));\r\n    }\r\n}\r\nDefaultOAuthInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultOAuthInterceptor, deps: [{ token: OAuthService }, { token: OAuthResourceServerErrorHandler }, { token: OAuthModuleConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\r\nDefaultOAuthInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultOAuthInterceptor });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultOAuthInterceptor, decorators: [{\r\n            type: Injectable\r\n        }], ctorParameters: function () { return [{ type: OAuthService }, { type: OAuthResourceServerErrorHandler }, { type: OAuthModuleConfig, decorators: [{\r\n                    type: Optional\r\n                }] }]; } });\n\n/**\r\n * A validation handler that isn't validating nothing.\r\n * Can be used to skip validation (at your own risk).\r\n */\r\nclass NullValidationHandler {\r\n    validateSignature(validationParams) {\r\n        return Promise.resolve(null);\r\n    }\r\n    validateAtHash(validationParams) {\r\n        return Promise.resolve(true);\r\n    }\r\n}\n\nfunction createDefaultLogger() {\r\n    return console;\r\n}\r\nfunction createDefaultStorage() {\r\n    return typeof sessionStorage !== 'undefined'\r\n        ? sessionStorage\r\n        : new MemoryStorage();\r\n}\n\nclass OAuthModule {\r\n    static forRoot(config = null, validationHandlerClass = NullValidationHandler) {\r\n        return {\r\n            ngModule: OAuthModule,\r\n            providers: [\r\n                OAuthService,\r\n                UrlHelperService,\r\n                { provide: OAuthLogger, useFactory: createDefaultLogger },\r\n                { provide: OAuthStorage, useFactory: createDefaultStorage },\r\n                { provide: ValidationHandler, useClass: validationHandlerClass },\r\n                { provide: HashHandler, useClass: DefaultHashHandler },\r\n                {\r\n                    provide: OAuthResourceServerErrorHandler,\r\n                    useClass: OAuthNoopResourceServerErrorHandler,\r\n                },\r\n                { provide: OAuthModuleConfig, useValue: config },\r\n                {\r\n                    provide: HTTP_INTERCEPTORS,\r\n                    useClass: DefaultOAuthInterceptor,\r\n                    multi: true,\r\n                },\r\n                { provide: DateTimeProvider, useClass: SystemDateTimeProvider },\r\n            ],\r\n        };\r\n    }\r\n}\r\nOAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nOAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthModule, imports: [CommonModule] });\r\nOAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthModule, imports: [[CommonModule]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: OAuthModule, decorators: [{\r\n            type: NgModule,\r\n            args: [{\r\n                    imports: [CommonModule],\r\n                    declarations: [],\r\n                    exports: [],\r\n                }]\r\n        }] });\n\nconst err = `PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n  npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n  import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n`;\r\n/**\r\n * This is just a dummy of the JwksValidationHandler\r\n * telling the users that the real one has been moved\r\n * to an library of its own, namely angular-oauth2-oidc-utils\r\n */\r\nclass JwksValidationHandler extends NullValidationHandler {\r\n    constructor() {\r\n        super();\r\n        console.error(err);\r\n    }\r\n}\n\nconst AUTH_CONFIG = new InjectionToken('AUTH_CONFIG');\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { AUTH_CONFIG, AbstractValidationHandler, AuthConfig, DateTimeProvider, DefaultHashHandler, DefaultOAuthInterceptor, HashHandler, JwksValidationHandler, LoginOptions, MemoryStorage, NullValidationHandler, OAuthErrorEvent, OAuthEvent, OAuthInfoEvent, OAuthLogger, OAuthModule, OAuthModuleConfig, OAuthNoopResourceServerErrorHandler, OAuthResourceServerConfig, OAuthResourceServerErrorHandler, OAuthService, OAuthStorage, OAuthSuccessEvent, ReceivedTokens, SystemDateTimeProvider, UrlHelperService, ValidationHandler };\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Injector, ElementRef, TemplateRef, Injectable, Inject } from '@angular/core';\nimport { listenToTriggersV2, registerOutsideClick, registerEscClick } from 'ngx-bootstrap/utils';\nimport * as i1 from 'ngx-bootstrap/positioning';\nimport { DOCUMENT } from '@angular/common';\n\nclass BsComponentRef {\n}\n\n/**\n * @copyright Valor Software\n * @copyright Angular ng-bootstrap team\n */\nclass ContentRef {\n    constructor(\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    nodes, viewRef, \n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    componentRef) {\n        this.nodes = nodes;\n        this.viewRef = viewRef;\n        this.componentRef = componentRef;\n    }\n}\n\n// todo: add delay support\nclass ComponentLoader {\n    /**\n     * Do not use this directly, it should be instanced via\n     * `ComponentLoadFactory.attach`\n     * @internal\n     */\n    constructor(_viewContainerRef, _renderer, _elementRef, _injector, _componentFactoryResolver, _ngZone, _applicationRef, _posService, _document) {\n        this._viewContainerRef = _viewContainerRef;\n        this._renderer = _renderer;\n        this._elementRef = _elementRef;\n        this._injector = _injector;\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._ngZone = _ngZone;\n        this._applicationRef = _applicationRef;\n        this._posService = _posService;\n        this._document = _document;\n        this.onBeforeShow = new EventEmitter();\n        this.onShown = new EventEmitter();\n        this.onBeforeHide = new EventEmitter();\n        this.onHidden = new EventEmitter();\n        this._providers = [];\n        this._isHiding = false;\n        /**\n         * A selector used if container element was not found\n         */\n        this.containerDefaultSelector = 'body';\n        this._listenOpts = {};\n        this._globalListener = Function.prototype;\n    }\n    get isShown() {\n        if (this._isHiding) {\n            return false;\n        }\n        return !!this._componentRef;\n    }\n    attach(compType) {\n        this._componentFactory = this._componentFactoryResolver\n            .resolveComponentFactory(compType);\n        return this;\n    }\n    // todo: add behaviour: to target element, `body`, custom element\n    to(container) {\n        this.container = container || this.container;\n        return this;\n    }\n    position(opts) {\n        if (!opts) {\n            return this;\n        }\n        this.attachment = opts.attachment || this.attachment;\n        this._elementRef = opts.target || this._elementRef;\n        return this;\n    }\n    provide(provider) {\n        this._providers.push(provider);\n        return this;\n    }\n    // todo: appendChild to element or document.querySelector(this.container)\n    show(opts = {}) {\n        this._subscribePositioning();\n        this._innerComponent = void 0;\n        if (!this._componentRef) {\n            this.onBeforeShow.emit();\n            this._contentRef = this._getContentRef(opts.content, opts.context, opts.initialState);\n            const injector = Injector.create({\n                providers: this._providers,\n                parent: this._injector\n            });\n            if (!this._componentFactory) {\n                return;\n            }\n            this._componentRef = this._componentFactory.create(injector, this._contentRef.nodes);\n            this._applicationRef.attachView(this._componentRef.hostView);\n            // this._componentRef = this._viewContainerRef\n            //   .createComponent(this._componentFactory, 0, injector, this._contentRef.nodes);\n            this.instance = this._componentRef.instance;\n            Object.assign(this._componentRef.instance, opts);\n            if (this.container instanceof ElementRef) {\n                this.container.nativeElement.appendChild(this._componentRef.location.nativeElement);\n            }\n            if (typeof this.container === 'string' && typeof this._document !== 'undefined') {\n                const selectedElement = this._document.querySelector(this.container) ||\n                    this._document.querySelector(this.containerDefaultSelector);\n                if (!selectedElement) {\n                    return;\n                }\n                selectedElement.appendChild(this._componentRef.location.nativeElement);\n            }\n            if (!this.container &&\n                this._elementRef &&\n                this._elementRef.nativeElement.parentElement) {\n                this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement);\n            }\n            // we need to manually invoke change detection since events registered\n            // via\n            // Renderer::listen() are not picked up by change detection with the\n            // OnPush strategy\n            if (this._contentRef.componentRef) {\n                this._innerComponent = this._contentRef.componentRef.instance;\n                this._contentRef.componentRef.changeDetectorRef.markForCheck();\n                this._contentRef.componentRef.changeDetectorRef.detectChanges();\n            }\n            this._componentRef.changeDetectorRef.markForCheck();\n            this._componentRef.changeDetectorRef.detectChanges();\n            this.onShown.emit(opts.id ? { id: opts.id } : this._componentRef.instance);\n        }\n        this._registerOutsideClick();\n        return this._componentRef;\n    }\n    hide(id) {\n        if (!this._componentRef) {\n            return this;\n        }\n        this._posService.deletePositionElement(this._componentRef.location);\n        this.onBeforeHide.emit(this._componentRef.instance);\n        const componentEl = this._componentRef.location.nativeElement;\n        componentEl.parentNode?.removeChild(componentEl);\n        this._contentRef?.componentRef?.destroy();\n        if (this._viewContainerRef && this._contentRef?.viewRef) {\n            this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef));\n        }\n        this._contentRef?.viewRef?.destroy();\n        this._contentRef = void 0;\n        this._componentRef = void 0;\n        this._removeGlobalListener();\n        this.onHidden.emit(id ? { id } : null);\n        return this;\n    }\n    toggle() {\n        if (this.isShown) {\n            this.hide();\n            return;\n        }\n        this.show();\n    }\n    dispose() {\n        if (this.isShown) {\n            this.hide();\n        }\n        this._unsubscribePositioning();\n        if (this._unregisterListenersFn) {\n            this._unregisterListenersFn();\n        }\n    }\n    listen(listenOpts) {\n        this.triggers = listenOpts.triggers || this.triggers;\n        this._listenOpts.outsideClick = listenOpts.outsideClick;\n        this._listenOpts.outsideEsc = listenOpts.outsideEsc;\n        listenOpts.target = listenOpts.target || this._elementRef?.nativeElement;\n        const hide = (this._listenOpts.hide = () => listenOpts.hide ? listenOpts.hide() : void this.hide());\n        const show = (this._listenOpts.show = (registerHide) => {\n            listenOpts.show ? listenOpts.show(registerHide) : this.show(registerHide);\n            registerHide();\n        });\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        const toggle = (registerHide) => {\n            this.isShown ? hide() : show(registerHide);\n        };\n        if (this._renderer) {\n            this._unregisterListenersFn = listenToTriggersV2(this._renderer, {\n                target: listenOpts.target,\n                triggers: listenOpts.triggers,\n                show,\n                hide,\n                toggle\n            });\n        }\n        return this;\n    }\n    _removeGlobalListener() {\n        if (this._globalListener) {\n            this._globalListener();\n            this._globalListener = Function.prototype;\n        }\n    }\n    attachInline(vRef, \n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    template) {\n        if (vRef && template) {\n            this._inlineViewRef = vRef.createEmbeddedView(template);\n        }\n        return this;\n    }\n    _registerOutsideClick() {\n        if (!this._componentRef || !this._componentRef.location) {\n            return;\n        }\n        // why: should run after first event bubble\n        if (this._listenOpts.outsideClick) {\n            const target = this._componentRef.location.nativeElement;\n            setTimeout(() => {\n                if (this._renderer && this._elementRef) {\n                    this._globalListener = registerOutsideClick(this._renderer, {\n                        targets: [target, this._elementRef.nativeElement],\n                        outsideClick: this._listenOpts.outsideClick,\n                        hide: () => this._listenOpts.hide && this._listenOpts.hide()\n                    });\n                }\n            });\n        }\n        if (this._listenOpts.outsideEsc && this._renderer && this._elementRef) {\n            const target = this._componentRef.location.nativeElement;\n            this._globalListener = registerEscClick(this._renderer, {\n                targets: [target, this._elementRef.nativeElement],\n                outsideEsc: this._listenOpts.outsideEsc,\n                hide: () => this._listenOpts.hide && this._listenOpts.hide()\n            });\n        }\n    }\n    getInnerComponent() {\n        return this._innerComponent;\n    }\n    _subscribePositioning() {\n        if (this._zoneSubscription || !this.attachment) {\n            return;\n        }\n        this.onShown.subscribe(() => {\n            this._posService.position({\n                element: this._componentRef?.location,\n                target: this._elementRef,\n                attachment: this.attachment,\n                appendToBody: this.container === 'body'\n            });\n        });\n        this._zoneSubscription = this._ngZone.onStable.subscribe(() => {\n            if (!this._componentRef) {\n                return;\n            }\n            this._posService.calcPosition();\n        });\n    }\n    _unsubscribePositioning() {\n        if (!this._zoneSubscription) {\n            return;\n        }\n        this._zoneSubscription.unsubscribe();\n        this._zoneSubscription = void 0;\n    }\n    _getContentRef(\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    content, \n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    context, \n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    initialState) {\n        if (!content) {\n            return new ContentRef([]);\n        }\n        if (content instanceof TemplateRef) {\n            if (this._viewContainerRef) {\n                const _viewRef = this._viewContainerRef\n                    .createEmbeddedView(content, context);\n                _viewRef.markForCheck();\n                return new ContentRef([_viewRef.rootNodes], _viewRef);\n            }\n            const viewRef = content.createEmbeddedView({});\n            this._applicationRef.attachView(viewRef);\n            return new ContentRef([viewRef.rootNodes], viewRef);\n        }\n        if (typeof content === 'function') {\n            const contentCmptFactory = this._componentFactoryResolver.resolveComponentFactory(content);\n            const modalContentInjector = Injector.create({\n                providers: this._providers,\n                parent: this._injector\n            });\n            const componentRef = contentCmptFactory.create(modalContentInjector);\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n            Object.assign(componentRef.instance, initialState);\n            this._applicationRef.attachView(componentRef.hostView);\n            return new ContentRef([[componentRef.location.nativeElement]], componentRef.hostView, componentRef);\n        }\n        const nodes = this._renderer\n            ? [this._renderer.createText(`${content}`)]\n            : [];\n        return new ContentRef([nodes]);\n    }\n}\n\nclass ComponentLoaderFactory {\n    constructor(_componentFactoryResolver, _ngZone, _injector, _posService, _applicationRef, _document) {\n        this._componentFactoryResolver = _componentFactoryResolver;\n        this._ngZone = _ngZone;\n        this._injector = _injector;\n        this._posService = _posService;\n        this._applicationRef = _applicationRef;\n        this._document = _document;\n    }\n    /**\n     *\n     * @param _elementRef\n     * @param _viewContainerRef\n     * @param _renderer\n     */\n    createLoader(_elementRef, _viewContainerRef, _renderer) {\n        return new ComponentLoader(_viewContainerRef, _renderer, _elementRef, this._injector, this._componentFactoryResolver, this._ngZone, this._applicationRef, this._posService, this._document);\n    }\n}\nComponentLoaderFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ComponentLoaderFactory, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1.PositioningService }, { token: i0.ApplicationRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nComponentLoaderFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ComponentLoaderFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ComponentLoaderFactory, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.NgZone }, { type: i0.Injector }, { type: i1.PositioningService }, { type: i0.ApplicationRef }, { type: Document, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BsComponentRef, ComponentLoader, ComponentLoaderFactory, ContentRef };\n","import * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Directive, Input, Output, HostListener, HostBinding, NgModule } from '@angular/core';\nimport { filter } from 'rxjs/operators';\nimport * as i1 from 'ngx-bootstrap/component-loader';\nimport { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport * as i2 from '@angular/animations';\nimport { style, animate } from '@angular/animations';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\n\n/** Default dropdown configuration */\nclass BsDropdownConfig {\n    constructor() {\n        /** default dropdown auto closing behavior */\n        this.autoClose = true;\n        /** default dropdown auto closing behavior */\n        this.insideClick = false;\n        /** turn on/off animation */\n        this.isAnimated = false;\n        /** value true of stopOnClickPropagation allows event stopPropagation*/\n        this.stopOnClickPropagation = false;\n    }\n}\nBsDropdownConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nBsDropdownConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownConfig, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownConfig, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'root'\n                }]\n        }] });\n\nclass BsDropdownState {\n    constructor() {\n        this.direction = 'down';\n        this.autoClose = true;\n        this.insideClick = false;\n        this.isAnimated = false;\n        this.stopOnClickPropagation = false;\n        this.isOpenChange = new EventEmitter();\n        this.isDisabledChange = new EventEmitter();\n        this.toggleClick = new EventEmitter();\n        this.counts = 0;\n        this.dropdownMenu = new Promise(resolve => {\n            this.resolveDropdownMenu = resolve;\n        });\n    }\n}\nBsDropdownState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nBsDropdownState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownState, providedIn: 'platform' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownState, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'platform' }]\n        }], ctorParameters: function () { return []; } });\n\nconst DROPDOWN_ANIMATION_TIMING = '220ms cubic-bezier(0, 0, 0.2, 1)';\nconst dropdownAnimation = [\n    style({ height: 0, overflow: 'hidden' }),\n    animate(DROPDOWN_ANIMATION_TIMING, style({ height: '*', overflow: 'hidden' }))\n];\n\n// todo: revert ngClass to [class] when false positive angular-cli issue is fixed\n//          [class.dropdown]=\"direction === 'down'\"-->\nclass BsDropdownContainerComponent {\n    constructor(_state, cd, _renderer, _element, _builder) {\n        this._state = _state;\n        this.cd = cd;\n        this._renderer = _renderer;\n        this._element = _element;\n        this.isOpen = false;\n        this._factoryDropDownAnimation = _builder.build(dropdownAnimation);\n        this._subscription = _state.isOpenChange.subscribe((value) => {\n            this.isOpen = value;\n            const dropdown = this._element.nativeElement.querySelector('.dropdown-menu');\n            this._renderer.addClass(this._element.nativeElement.querySelector('div'), 'open');\n            if (dropdown && !isBs3()) {\n                this._renderer.addClass(dropdown, 'show');\n                if (dropdown.classList.contains('dropdown-menu-right') || dropdown.classList.contains('dropdown-menu-end')) {\n                    this._renderer.setStyle(dropdown, 'left', 'auto');\n                    this._renderer.setStyle(dropdown, 'right', '0');\n                }\n                if (this.direction === 'up') {\n                    this._renderer.setStyle(dropdown, 'top', 'auto');\n                    this._renderer.setStyle(dropdown, 'transform', 'translateY(-101%)');\n                }\n            }\n            if (dropdown && this._state.isAnimated) {\n                this._factoryDropDownAnimation.create(dropdown)\n                    .play();\n            }\n            this.cd.markForCheck();\n            this.cd.detectChanges();\n        });\n    }\n    get direction() {\n        return this._state.direction;\n    }\n    /** @internal */\n    _contains(el) {\n        return this._element.nativeElement.contains(el);\n    }\n    ngOnDestroy() {\n        this._subscription.unsubscribe();\n    }\n}\nBsDropdownContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownContainerComponent, deps: [{ token: BsDropdownState }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Component });\nBsDropdownContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.6\", type: BsDropdownContainerComponent, selector: \"bs-dropdown-container\", host: { styleAttribute: \"display:block;position: absolute;z-index: 1040\" }, ngImport: i0, template: `\n    <div [class.dropup]=\"direction === 'up'\"\n         [ngClass]=\"{dropdown: direction === 'down'}\"\n         [class.show]=\"isOpen\"\n         [class.open]=\"isOpen\"><ng-content></ng-content>\n    </div>\n  `, isInline: true, dependencies: [{ kind: \"directive\", type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownContainerComponent, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'bs-dropdown-container',\n                    changeDetection: ChangeDetectionStrategy.OnPush,\n                    // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n                    host: {\n                        style: 'display:block;position: absolute;z-index: 1040'\n                    },\n                    template: `\n    <div [class.dropup]=\"direction === 'up'\"\n         [ngClass]=\"{dropdown: direction === 'down'}\"\n         [class.show]=\"isOpen\"\n         [class.open]=\"isOpen\"><ng-content></ng-content>\n    </div>\n  `\n                }]\n        }], ctorParameters: function () { return [{ type: BsDropdownState }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i2.AnimationBuilder }]; } });\n\nclass BsDropdownDirective {\n    constructor(_elementRef, _renderer, _viewContainerRef, _cis, _state, _config, _builder) {\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this._viewContainerRef = _viewContainerRef;\n        this._cis = _cis;\n        this._state = _state;\n        this._config = _config;\n        /**\n         * This attribute indicates that the dropdown should be opened upwards\n         */\n        this.dropup = false;\n        // todo: move to component loader\n        this._isInlineOpen = false;\n        this._isDisabled = false;\n        this._subscriptions = [];\n        this._isInited = false;\n        // set initial dropdown state from config\n        this._state.autoClose = this._config.autoClose;\n        this._state.insideClick = this._config.insideClick;\n        this._state.isAnimated = this._config.isAnimated;\n        this._state.stopOnClickPropagation = this._config.stopOnClickPropagation;\n        this._factoryDropDownAnimation = _builder.build(dropdownAnimation);\n        // create dropdown component loader\n        this._dropdown = this._cis\n            .createLoader(this._elementRef, this._viewContainerRef, this._renderer)\n            .provide({ provide: BsDropdownState, useValue: this._state });\n        this.onShown = this._dropdown.onShown;\n        this.onHidden = this._dropdown.onHidden;\n        this.isOpenChange = this._state.isOpenChange;\n    }\n    /**\n     * Indicates that dropdown will be closed on item or document click,\n     * and after pressing ESC\n     */\n    set autoClose(value) {\n        this._state.autoClose = value;\n    }\n    get autoClose() {\n        return this._state.autoClose;\n    }\n    /**\n     * Indicates that dropdown will be animated\n     */\n    set isAnimated(value) {\n        this._state.isAnimated = value;\n    }\n    get isAnimated() {\n        return this._state.isAnimated;\n    }\n    /**\n     * This attribute indicates that the dropdown shouldn't close on inside click when autoClose is set to true\n     */\n    set insideClick(value) {\n        this._state.insideClick = value;\n    }\n    get insideClick() {\n        return this._state.insideClick;\n    }\n    /**\n     * Disables dropdown toggle and hides dropdown menu if opened\n     */\n    set isDisabled(value) {\n        this._isDisabled = value;\n        this._state.isDisabledChange.emit(value);\n        if (value) {\n            this.hide();\n        }\n    }\n    get isDisabled() {\n        return this._isDisabled;\n    }\n    /**\n     * Returns whether or not the popover is currently being shown\n     */\n    get isOpen() {\n        if (this._showInline) {\n            return this._isInlineOpen;\n        }\n        return this._dropdown.isShown;\n    }\n    set isOpen(value) {\n        if (value) {\n            this.show();\n        }\n        else {\n            this.hide();\n        }\n    }\n    get isBs4() {\n        return !isBs3();\n    }\n    get _showInline() {\n        return !this.container;\n    }\n    ngOnInit() {\n        // fix: seems there are an issue with `routerLinkActive`\n        // which result in duplicated call ngOnInit without call to ngOnDestroy\n        // read more: https://github.com/valor-software/ngx-bootstrap/issues/1885\n        if (this._isInited) {\n            return;\n        }\n        this._isInited = true;\n        // attach DOM listeners\n        this._dropdown.listen({\n            // because of dropdown inline mode\n            outsideClick: false,\n            triggers: this.triggers,\n            show: () => this.show()\n        });\n        // toggle visibility on toggle element click\n        this._subscriptions.push(this._state.toggleClick.subscribe((value) => this.toggle(value)));\n        // hide dropdown if set disabled while opened\n        this._subscriptions.push(this._state.isDisabledChange\n            .pipe(filter((value) => value))\n            .subscribe(( /*value: boolean*/) => this.hide()));\n    }\n    /**\n     * Opens an element’s popover. This is considered a “manual” triggering of\n     * the popover.\n     */\n    show() {\n        if (this.isOpen || this.isDisabled) {\n            return;\n        }\n        if (this._showInline) {\n            if (!this._inlinedMenu) {\n                this._state.dropdownMenu.then((dropdownMenu) => {\n                    this._dropdown.attachInline(dropdownMenu.viewContainer, dropdownMenu.templateRef);\n                    this._inlinedMenu = this._dropdown._inlineViewRef;\n                    this.addBs4Polyfills();\n                    if (this._inlinedMenu) {\n                        this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode, 'open');\n                    }\n                    this.playAnimation();\n                })\n                    // swallow errors\n                    .catch();\n            }\n            this.addBs4Polyfills();\n            this._isInlineOpen = true;\n            this.onShown.emit(true);\n            this._state.isOpenChange.emit(true);\n            this.playAnimation();\n            return;\n        }\n        this._state.dropdownMenu.then(dropdownMenu => {\n            // check direction in which dropdown should be opened\n            const _dropup = this.dropup ||\n                (typeof this.dropup !== 'undefined' && this.dropup);\n            this._state.direction = _dropup ? 'up' : 'down';\n            const _placement = this.placement || (_dropup ? 'top start' : 'bottom start');\n            // show dropdown\n            this._dropdown\n                .attach(BsDropdownContainerComponent)\n                .to(this.container)\n                .position({ attachment: _placement })\n                .show({\n                content: dropdownMenu.templateRef,\n                placement: _placement\n            });\n            this._state.isOpenChange.emit(true);\n        })\n            // swallow error\n            .catch();\n    }\n    /**\n     * Closes an element’s popover. This is considered a “manual” triggering of\n     * the popover.\n     */\n    hide() {\n        if (!this.isOpen) {\n            return;\n        }\n        if (this._showInline) {\n            this.removeShowClass();\n            this.removeDropupStyles();\n            this._isInlineOpen = false;\n            this.onHidden.emit(true);\n        }\n        else {\n            this._dropdown.hide();\n        }\n        this._state.isOpenChange.emit(false);\n    }\n    /**\n     * Toggles an element’s popover. This is considered a “manual” triggering of\n     * the popover. With parameter <code>true</code> allows toggling, with parameter <code>false</code>\n     * only hides opened dropdown. Parameter usage will be removed in ngx-bootstrap v3\n     */\n    toggle(value) {\n        if (this.isOpen || !value) {\n            return this.hide();\n        }\n        return this.show();\n    }\n    /** @internal */\n    _contains(event) {\n        // todo: valorkin fix typings\n        return this._elementRef.nativeElement.contains(event.target) ||\n            (this._dropdown.instance && this._dropdown.instance._contains(event.target));\n    }\n    navigationClick(event) {\n        const ref = this._elementRef.nativeElement.querySelector('.dropdown-menu');\n        if (!ref) {\n            return;\n        }\n        const firstActive = this._elementRef.nativeElement.ownerDocument.activeElement;\n        const allRef = ref.querySelectorAll('.dropdown-item');\n        switch (event.keyCode) {\n            case 38:\n                if (this._state.counts > 0) {\n                    allRef[--this._state.counts].focus();\n                }\n                break;\n            case 40:\n                if (this._state.counts + 1 < allRef.length) {\n                    if (firstActive.classList !== allRef[this._state.counts].classList) {\n                        allRef[this._state.counts].focus();\n                    }\n                    else {\n                        allRef[++this._state.counts].focus();\n                    }\n                }\n                break;\n            default:\n        }\n        event.preventDefault();\n    }\n    ngOnDestroy() {\n        // clean up subscriptions and destroy dropdown\n        for (const sub of this._subscriptions) {\n            sub.unsubscribe();\n        }\n        this._dropdown.dispose();\n    }\n    addBs4Polyfills() {\n        if (!isBs3()) {\n            this.addShowClass();\n            this.checkRightAlignment();\n            this.addDropupStyles();\n        }\n    }\n    playAnimation() {\n        if (this._state.isAnimated && this._inlinedMenu) {\n            setTimeout(() => {\n                if (this._inlinedMenu) {\n                    this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play();\n                }\n            });\n        }\n    }\n    addShowClass() {\n        if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {\n            this._renderer.addClass(this._inlinedMenu.rootNodes[0], 'show');\n        }\n    }\n    removeShowClass() {\n        if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {\n            this._renderer.removeClass(this._inlinedMenu.rootNodes[0], 'show');\n        }\n    }\n    checkRightAlignment() {\n        if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {\n            const isRightAligned = this._inlinedMenu.rootNodes[0].classList.contains('dropdown-menu-right') || this._inlinedMenu.rootNodes[0].classList.contains('dropdown-menu-end');\n            this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'left', isRightAligned ? 'auto' : '0');\n            this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'right', isRightAligned ? '0' : 'auto');\n        }\n    }\n    addDropupStyles() {\n        if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {\n            // a little hack to not break support of bootstrap 4 beta\n            this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'top', this.dropup ? 'auto' : '100%');\n            this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'transform', this.dropup ? 'translateY(-101%)' : 'translateY(0)');\n            this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'bottom', 'auto');\n        }\n    }\n    removeDropupStyles() {\n        if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {\n            this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'top');\n            this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'transform');\n            this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'bottom');\n        }\n    }\n}\nBsDropdownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i1.ComponentLoaderFactory }, { token: BsDropdownState }, { token: BsDropdownConfig }, { token: i2.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Directive });\nBsDropdownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: BsDropdownDirective, selector: \"[bsDropdown], [dropdown]\", inputs: { placement: \"placement\", triggers: \"triggers\", container: \"container\", dropup: \"dropup\", autoClose: \"autoClose\", isAnimated: \"isAnimated\", insideClick: \"insideClick\", isDisabled: \"isDisabled\", isOpen: \"isOpen\" }, outputs: { isOpenChange: \"isOpenChange\", onShown: \"onShown\", onHidden: \"onHidden\" }, host: { listeners: { \"keydown.arrowDown\": \"navigationClick($event)\", \"keydown.arrowUp\": \"navigationClick($event)\" }, properties: { \"class.dropup\": \"dropup\", \"class.open\": \"isOpen\", \"class.show\": \"isOpen && isBs4\" } }, providers: [BsDropdownState], exportAs: [\"bs-dropdown\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[bsDropdown], [dropdown]',\n                    exportAs: 'bs-dropdown',\n                    providers: [BsDropdownState],\n                    // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n                    host: {\n                        '[class.dropup]': 'dropup',\n                        '[class.open]': 'isOpen',\n                        '[class.show]': 'isOpen && isBs4'\n                    }\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i1.ComponentLoaderFactory }, { type: BsDropdownState }, { type: BsDropdownConfig }, { type: i2.AnimationBuilder }]; }, propDecorators: { placement: [{\n                type: Input\n            }], triggers: [{\n                type: Input\n            }], container: [{\n                type: Input\n            }], dropup: [{\n                type: Input\n            }], autoClose: [{\n                type: Input\n            }], isAnimated: [{\n                type: Input\n            }], insideClick: [{\n                type: Input\n            }], isDisabled: [{\n                type: Input\n            }], isOpen: [{\n                type: Input\n            }], isOpenChange: [{\n                type: Output\n            }], onShown: [{\n                type: Output\n            }], onHidden: [{\n                type: Output\n            }], navigationClick: [{\n                type: HostListener,\n                args: ['keydown.arrowDown', ['$event']]\n            }, {\n                type: HostListener,\n                args: ['keydown.arrowUp', ['$event']]\n            }] } });\n\nclass BsDropdownMenuDirective {\n    constructor(_state, _viewContainer, _templateRef) {\n        _state.resolveDropdownMenu({\n            templateRef: _templateRef,\n            viewContainer: _viewContainer\n        });\n    }\n}\nBsDropdownMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownMenuDirective, deps: [{ token: BsDropdownState }, { token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nBsDropdownMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: BsDropdownMenuDirective, selector: \"[bsDropdownMenu],[dropdownMenu]\", exportAs: [\"bs-dropdown-menu\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownMenuDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[bsDropdownMenu],[dropdownMenu]',\n                    exportAs: 'bs-dropdown-menu'\n                }]\n        }], ctorParameters: function () { return [{ type: BsDropdownState }, { type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; } });\n\nclass BsDropdownToggleDirective {\n    constructor(_changeDetectorRef, _dropdown, _element, _renderer, _state) {\n        this._changeDetectorRef = _changeDetectorRef;\n        this._dropdown = _dropdown;\n        this._element = _element;\n        this._renderer = _renderer;\n        this._state = _state;\n        this.isOpen = false;\n        this._subscriptions = [];\n        // sync is open value with state\n        this._subscriptions.push(this._state.isOpenChange.subscribe((value) => {\n            this.isOpen = value;\n            if (value) {\n                this._documentClickListener = this._renderer.listen('document', 'click', (event) => {\n                    if (this._state.autoClose && event.button !== 2 &&\n                        !this._element.nativeElement.contains(event.target) &&\n                        !(this._state.insideClick && this._dropdown._contains(event))) {\n                        this._state.toggleClick.emit(false);\n                        this._changeDetectorRef.detectChanges();\n                    }\n                });\n                this._escKeyUpListener = this._renderer.listen(this._element.nativeElement, 'keyup.esc', () => {\n                    if (this._state.autoClose) {\n                        this._state.toggleClick.emit(false);\n                        this._changeDetectorRef.detectChanges();\n                    }\n                });\n            }\n            else {\n                this._documentClickListener && this._documentClickListener();\n                this._escKeyUpListener && this._escKeyUpListener();\n            }\n        }));\n        // populate disabled state\n        this._subscriptions.push(this._state.isDisabledChange\n            .subscribe((value) => this.isDisabled = value || void 0));\n    }\n    onClick(event) {\n        if (this._state.stopOnClickPropagation) {\n            event.stopPropagation();\n        }\n        if (this.isDisabled) {\n            return;\n        }\n        this._state.toggleClick.emit(true);\n    }\n    ngOnDestroy() {\n        if (this._documentClickListener) {\n            this._documentClickListener();\n        }\n        if (this._escKeyUpListener) {\n            this._escKeyUpListener();\n        }\n        for (const sub of this._subscriptions) {\n            sub.unsubscribe();\n        }\n    }\n}\nBsDropdownToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownToggleDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: BsDropdownDirective }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: BsDropdownState }], target: i0.ɵɵFactoryTarget.Directive });\nBsDropdownToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: BsDropdownToggleDirective, selector: \"[bsDropdownToggle],[dropdownToggle]\", host: { listeners: { \"click\": \"onClick($event)\" }, properties: { \"attr.aria-haspopup\": \"true\", \"attr.disabled\": \"this.isDisabled\", \"attr.aria-expanded\": \"this.isOpen\" } }, exportAs: [\"bs-dropdown-toggle\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownToggleDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[bsDropdownToggle],[dropdownToggle]',\n                    exportAs: 'bs-dropdown-toggle',\n                    // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n                    host: {\n                        '[attr.aria-haspopup]': 'true'\n                    }\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: BsDropdownDirective }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: BsDropdownState }]; }, propDecorators: { isDisabled: [{\n                type: HostBinding,\n                args: ['attr.disabled']\n            }], isOpen: [{\n                type: HostBinding,\n                args: ['attr.aria-expanded']\n            }], onClick: [{\n                type: HostListener,\n                args: ['click', ['$event']]\n            }] } });\n\nclass BsDropdownModule {\n    static forRoot() {\n        return {\n            ngModule: BsDropdownModule,\n            providers: [\n                ComponentLoaderFactory,\n                PositioningService,\n                BsDropdownState\n            ]\n        };\n    }\n}\nBsDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBsDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownModule, declarations: [BsDropdownMenuDirective,\n        BsDropdownToggleDirective,\n        BsDropdownContainerComponent,\n        BsDropdownDirective], imports: [CommonModule], exports: [BsDropdownMenuDirective,\n        BsDropdownToggleDirective,\n        BsDropdownDirective] });\nBsDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsDropdownModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                    declarations: [\n                        BsDropdownMenuDirective,\n                        BsDropdownToggleDirective,\n                        BsDropdownContainerComponent,\n                        BsDropdownDirective\n                    ],\n                    exports: [\n                        BsDropdownMenuDirective,\n                        BsDropdownToggleDirective,\n                        BsDropdownDirective\n                    ]\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BsDropdownConfig, BsDropdownContainerComponent, BsDropdownDirective, BsDropdownMenuDirective, BsDropdownModule, BsDropdownState, BsDropdownToggleDirective };\n","import * as i0 from '@angular/core';\nimport { Injectable, PLATFORM_ID, Inject, Directive, Input, NgModule } from '@angular/core';\nimport { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';\nimport { take } from 'rxjs/operators';\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.io/license\n */\n/** Injectable that ensures only the most recently enabled FocusTrap is active. */\nclass FocusTrapManager {\n    constructor() {\n        // A stack of the FocusTraps on the page. Only the FocusTrap at the\n        // top of the stack is active.\n        this._focusTrapStack = [];\n    }\n    /**\n     * Disables the FocusTrap at the top of the stack, and then pushes\n     * the new FocusTrap onto the stack.\n     */\n    register(focusTrap) {\n        // Dedupe focusTraps that register multiple times.\n        this._focusTrapStack = this._focusTrapStack.filter((ft) => ft !== focusTrap);\n        let stack = this._focusTrapStack;\n        if (stack.length) {\n            stack[stack.length - 1]._disable();\n        }\n        stack.push(focusTrap);\n        focusTrap._enable();\n    }\n    /**\n     * Removes the FocusTrap from the stack, and activates the\n     * FocusTrap that is the new top of the stack.\n     */\n    deregister(focusTrap) {\n        focusTrap._disable();\n        const stack = this._focusTrapStack;\n        const i = stack.indexOf(focusTrap);\n        if (i !== -1) {\n            stack.splice(i, 1);\n            if (stack.length) {\n                stack[stack.length - 1]._enable();\n            }\n        }\n    }\n}\nFocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapManager, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\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.io/license\n */\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nlet hasV8BreakIterator;\n// We need a try/catch around the reference to `Intl`, because accessing it in some cases can\n// cause IE to throw. These cases are tied to particular versions of Windows and can happen if\n// the consumer is providing a polyfilled `Map`. See:\n// https://github.com/Microsoft/ChakraCore/issues/3189\n// https://github.com/angular/components/issues/15687\ntry {\n    hasV8BreakIterator = (typeof Intl !== 'undefined' && Intl.v8BreakIterator);\n}\ncatch {\n    hasV8BreakIterator = false;\n}\n/**\n * Service to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n */\nclass Platform {\n    constructor(_platformId) {\n        this._platformId = _platformId;\n        // We want to use the Angular platform check because if the Document is shimmed\n        // without the navigator, the following checks will fail. This is preferred because\n        // sometimes the Document may be shimmed without the user's knowledge or intention\n        /** Whether the Angular application is being rendered in the browser. */\n        this.isBrowser = this._platformId ?\n            isPlatformBrowser(this._platformId) : typeof document === 'object' && !!document;\n        /** Whether the current browser is Microsoft Edge. */\n        this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);\n        /** Whether the current rendering engine is Microsoft Trident. */\n        this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);\n        // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.\n        /** Whether the current rendering engine is Blink. */\n        this.BLINK = this.isBrowser && (!!(window.chrome || hasV8BreakIterator) &&\n            typeof CSS !== 'undefined' && !this.EDGE && !this.TRIDENT);\n        // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to\n        // ensure that Webkit runs standalone and is not used as another engine's base.\n        /** Whether the current rendering engine is WebKit. */\n        this.WEBKIT = this.isBrowser &&\n            /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;\n        /** Whether the current platform is Apple iOS. */\n        this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) &&\n            !('MSStream' in window);\n        // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n        // them self as Gecko-like browsers and modify the userAgent's according to that.\n        // Since we only cover one explicit Firefox case, we can simply check for Firefox\n        // instead of having an unstable check for Gecko.\n        /** Whether the current browser is Firefox. */\n        this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);\n        /** Whether the current platform is Android. */\n        // Trident on mobile adds the android platform to the userAgent to trick detections.\n        this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;\n        // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake\n        // this and just place the Safari keyword in the userAgent. To be more safe about Safari every\n        // Safari browser should also use Webkit as its layout engine.\n        /** Whether the current browser is Safari. */\n        this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;\n    }\n}\nPlatform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: Platform, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nPlatform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: Platform, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: Platform, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: Object, decorators: [{\n                    type: Inject,\n                    args: [PLATFORM_ID]\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.io/license\n */\n/**\n * Configuration for the isFocusable method.\n */\nclass IsFocusableConfig {\n    constructor() {\n        /**\n         * Whether to count an element as focusable even if it is not currently visible.\n         */\n        this.ignoreVisibility = false;\n    }\n}\n// The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n// Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n// supported.\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\nclass InteractivityChecker {\n    constructor(_platform) {\n        this._platform = _platform;\n    }\n    /**\n     * Gets whether an element is disabled.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is disabled.\n     */\n    isDisabled(element) {\n        // This does not capture some cases, such as a non-form control with a disabled attribute or\n        // a form control inside of a disabled form, but should capture the most common cases.\n        return element.hasAttribute('disabled');\n    }\n    /**\n     * Gets whether an element is visible for the purposes of interactivity.\n     *\n     * This will capture states like `display: none` and `visibility: hidden`, but not things like\n     * being clipped by an `overflow: hidden` parent or being outside the viewport.\n     *\n     * @returns Whether the element is visible.\n     */\n    isVisible(element) {\n        return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n    }\n    /**\n     * Gets whether an element can be reached via Tab key.\n     * Assumes that the element has already been checked with isFocusable.\n     *\n     * @param element Element to be checked.\n     * @returns Whether the element is tabbable.\n     */\n    isTabbable(element) {\n        // Nothing is tabbable on the server 😎\n        if (!this._platform.isBrowser) {\n            return false;\n        }\n        const frameElement = getFrameElement(getWindow(element));\n        if (frameElement) {\n            // Frame elements inherit their tabindex onto all child elements.\n            if (getTabIndexValue(frameElement) === -1) {\n                return false;\n            }\n            // Browsers disable tabbing to an element inside of an invisible frame.\n            if (!this.isVisible(frameElement)) {\n                return false;\n            }\n        }\n        let nodeName = element.nodeName.toLowerCase();\n        let tabIndexValue = getTabIndexValue(element);\n        if (element.hasAttribute('contenteditable')) {\n            return tabIndexValue !== -1;\n        }\n        if (nodeName === 'iframe' || nodeName === 'object') {\n            // The frame or object's content may be tabbable depending on the content, but it's\n            // not possibly to reliably detect the content of the frames. We always consider such\n            // elements as non-tabbable.\n            return false;\n        }\n        // In iOS, the browser only considers some specific elements as tabbable.\n        if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n            return false;\n        }\n        if (nodeName === 'audio') {\n            // Audio elements without controls enabled are never tabbable, regardless\n            // of the tabindex attribute explicitly being set.\n            if (!element.hasAttribute('controls')) {\n                return false;\n            }\n            // Audio elements with controls are by default tabbable unless the\n            // tabindex attribute is set to `-1` explicitly.\n            return tabIndexValue !== -1;\n        }\n        if (nodeName === 'video') {\n            // For all video elements, if the tabindex attribute is set to `-1`, the video\n            // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`\n            // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The\n            // tabindex attribute is the source of truth here.\n            if (tabIndexValue === -1) {\n                return false;\n            }\n            // If the tabindex is explicitly set, and not `-1` (as per check before), the\n            // video element is always tabbable (regardless of whether it has controls or not).\n            if (tabIndexValue !== null) {\n                return true;\n            }\n            // Otherwise (when no explicit tabindex is set), a video is only tabbable if it\n            // has controls enabled. Firefox is special as videos are always tabbable regardless\n            // of whether there are controls or not.\n            return this._platform.FIREFOX || element.hasAttribute('controls');\n        }\n        return element.tabIndex >= 0;\n    }\n    /**\n     * Gets whether an element can be focused by the user.\n     *\n     * @param element Element to be checked.\n     * @param config The config object with options to customize this method's behavior\n     * @returns Whether the element is focusable.\n     */\n    isFocusable(element, config) {\n        // Perform checks in order of left to most expensive.\n        // Again, naive approach that does not capture many edge cases and browser quirks.\n        return isPotentiallyFocusable(element) && !this.isDisabled(element) &&\n            (config?.ignoreVisibility || this.isVisible(element));\n    }\n}\nInteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: InteractivityChecker, deps: [{ token: Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nInteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: InteractivityChecker, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: Platform }]; } });\n/**\n * Returns the frame element from a window object. Since browsers like MS Edge throw errors if\n * the frameElement property is being accessed from a different host address, this property\n * should be accessed carefully.\n */\nfunction getFrameElement(window) {\n    try {\n        return window.frameElement;\n    }\n    catch {\n        return null;\n    }\n}\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element) {\n    // Use logic from jQuery to check for an invisible element.\n    // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n    return !!(element.offsetWidth || element.offsetHeight ||\n        (typeof element.getClientRects === 'function' && element.getClientRects().length));\n}\n/** Gets whether an element's  */\nfunction isNativeFormElement(element) {\n    let nodeName = element.nodeName.toLowerCase();\n    return nodeName === 'input' ||\n        nodeName === 'select' ||\n        nodeName === 'button' ||\n        nodeName === 'textarea';\n}\n/** Gets whether an element is an `<input type=\"hidden\">`. */\nfunction isHiddenInput(element) {\n    return isInputElement(element) && element.type == 'hidden';\n}\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element) {\n    return isAnchorElement(element) && element.hasAttribute('href');\n}\n/** Gets whether an element is an input element. */\nfunction isInputElement(element) {\n    return element.nodeName.toLowerCase() == 'input';\n}\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element) {\n    return element.nodeName.toLowerCase() == 'a';\n}\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element) {\n    if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n        return false;\n    }\n    let tabIndex = element.getAttribute('tabindex');\n    // IE11 parses tabindex=\"\" as the value \"-32768\"\n    if (tabIndex == '-32768') {\n        return false;\n    }\n    return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element) {\n    if (!hasValidTabIndex(element)) {\n        return null;\n    }\n    // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n    const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);\n    return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element) {\n    let nodeName = element.nodeName.toLowerCase();\n    let inputType = nodeName === 'input' && element.type;\n    return inputType === 'text'\n        || inputType === 'password'\n        || nodeName === 'select'\n        || nodeName === 'textarea';\n}\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element) {\n    // Inputs are potentially focusable *unless* they're type=\"hidden\".\n    if (isHiddenInput(element)) {\n        return false;\n    }\n    return isNativeFormElement(element) ||\n        isAnchorWithHref(element) ||\n        element.hasAttribute('contenteditable') ||\n        hasValidTabIndex(element);\n}\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node) {\n    // ownerDocument is null if `node` itself *is* a document.\n    return node.ownerDocument && node.ownerDocument.defaultView || window;\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.io/license\n */\n/** Coerces a data-bound value (typically a string) to a boolean. */\nfunction coerceBooleanProperty(value) {\n    return value != null && `${value}` !== '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.io/license\n */\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class currently uses a relatively simple approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to misalign.\n *\n * @deprecated Use `ConfigurableFocusTrap` instead.\n * @breaking-change for 11.0.0 Remove this class.\n */\nclass FocusTrap {\n    constructor(_element, _checker, _ngZone, _document, deferAnchors = false) {\n        this._element = _element;\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._document = _document;\n        this._hasAttached = false;\n        // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.\n        this.startAnchorListener = () => this.focusLastTabbableElement();\n        this.endAnchorListener = () => this.focusFirstTabbableElement();\n        this._enabled = true;\n        if (!deferAnchors) {\n            this.attachAnchors();\n        }\n    }\n    /** Whether the focus trap is active. */\n    get enabled() {\n        return this._enabled;\n    }\n    set enabled(value) {\n        this._enabled = value;\n        if (this._startAnchor && this._endAnchor) {\n            this._toggleAnchorTabIndex(value, this._startAnchor);\n            this._toggleAnchorTabIndex(value, this._endAnchor);\n        }\n    }\n    /** Destroys the focus trap by cleaning up the anchors. */\n    destroy() {\n        const startAnchor = this._startAnchor;\n        const endAnchor = this._endAnchor;\n        if (startAnchor) {\n            startAnchor.removeEventListener('focus', this.startAnchorListener);\n            if (startAnchor.parentNode) {\n                startAnchor.parentNode.removeChild(startAnchor);\n            }\n        }\n        if (endAnchor) {\n            endAnchor.removeEventListener('focus', this.endAnchorListener);\n            if (endAnchor.parentNode) {\n                endAnchor.parentNode.removeChild(endAnchor);\n            }\n        }\n        this._startAnchor = this._endAnchor = null;\n        this._hasAttached = false;\n    }\n    /**\n     * Inserts the anchors into the DOM. This is usually done automatically\n     * in the constructor, but can be deferred for cases like directives with `*ngIf`.\n     * @returns Whether the focus trap managed to attach successfuly. This may not be the case\n     * if the target element isn't currently in the DOM.\n     */\n    attachAnchors() {\n        // If we're not on the browser, there can be no focus to trap.\n        if (this._hasAttached) {\n            return true;\n        }\n        this._ngZone.runOutsideAngular(() => {\n            if (!this._startAnchor) {\n                this._startAnchor = this._createAnchor();\n                this._startAnchor.addEventListener('focus', this.startAnchorListener);\n            }\n            if (!this._endAnchor) {\n                this._endAnchor = this._createAnchor();\n                this._endAnchor.addEventListener('focus', this.endAnchorListener);\n            }\n        });\n        if (this._element.parentNode) {\n            this._element.parentNode.insertBefore(this._startAnchor, this._element);\n            this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);\n            this._hasAttached = true;\n        }\n        return this._hasAttached;\n    }\n    /**\n     * Waits for the zone to stabilize, then either focuses the first element that the\n     * user specified, or the first tabbable element.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusInitialElementWhenReady() {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusInitialElement()));\n        });\n    }\n    /**\n     * Waits for the zone to stabilize, then focuses\n     * the first tabbable element within the focus trap region.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusFirstTabbableElementWhenReady() {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusFirstTabbableElement()));\n        });\n    }\n    /**\n     * Waits for the zone to stabilize, then focuses\n     * the last tabbable element within the focus trap region.\n     * @returns Returns a promise that resolves with a boolean, depending\n     * on whether focus was moved successfully.\n     */\n    focusLastTabbableElementWhenReady() {\n        return new Promise(resolve => {\n            this._executeOnStable(() => resolve(this.focusLastTabbableElement()));\n        });\n    }\n    /**\n     * Get the specified boundary element of the trapped region.\n     * @param bound The boundary to get (start or end of trapped region).\n     * @returns The boundary element.\n     */\n    _getRegionBoundary(bound) {\n        // Contains the deprecated version of selector, for temporary backwards comparability.\n        let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` +\n            `[cdkFocusRegion${bound}], ` +\n            `[cdk-focus-${bound}]`);\n        for (let i = 0; i < markers.length; i++) {\n            // @breaking-change 8.0.0\n            if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {\n                console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` +\n                    `use 'cdkFocusRegion${bound}' instead. The deprecated ` +\n                    `attribute will be removed in 8.0.0.`, markers[i]);\n            }\n            else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {\n                console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` +\n                    `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` +\n                    `will be removed in 8.0.0.`, markers[i]);\n            }\n        }\n        if (bound == 'start') {\n            return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);\n        }\n        return markers.length ?\n            markers[markers.length - 1] : this._getLastTabbableElement(this._element);\n    }\n    /**\n     * Focuses the element that should be focused when the focus trap is initialized.\n     * @returns Whether focus was moved successfully.\n     */\n    focusInitialElement() {\n        // Contains the deprecated version of selector, for temporary backwards comparability.\n        const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` +\n            `[cdkFocusInitial]`);\n        if (redirectToElement) {\n            // @breaking-change 8.0.0\n            if (redirectToElement.hasAttribute(`cdk-focus-initial`)) {\n                console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` +\n                    `use 'cdkFocusInitial' instead. The deprecated attribute ` +\n                    `will be removed in 8.0.0`, redirectToElement);\n            }\n            // Warn the consumer if the element they've pointed to\n            // isn't focusable, when not in production mode.\n            if (!this._checker.isFocusable(redirectToElement)) {\n                const focusableChild = this._getFirstTabbableElement(redirectToElement);\n                focusableChild?.focus();\n                return !!focusableChild;\n            }\n            redirectToElement.focus();\n            return true;\n        }\n        return this.focusFirstTabbableElement();\n    }\n    /**\n     * Focuses the first tabbable element within the focus trap region.\n     * @returns Whether focus was moved successfully.\n     */\n    focusFirstTabbableElement() {\n        const redirectToElement = this._getRegionBoundary('start');\n        if (redirectToElement) {\n            redirectToElement.focus();\n        }\n        return !!redirectToElement;\n    }\n    /**\n     * Focuses the last tabbable element within the focus trap region.\n     * @returns Whether focus was moved successfully.\n     */\n    focusLastTabbableElement() {\n        const redirectToElement = this._getRegionBoundary('end');\n        if (redirectToElement) {\n            redirectToElement.focus();\n        }\n        return !!redirectToElement;\n    }\n    /**\n     * Checks whether the focus trap has successfully been attached.\n     */\n    hasAttached() {\n        return this._hasAttached;\n    }\n    /** Get the first tabbable element from a DOM subtree (inclusive). */\n    _getFirstTabbableElement(root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        // Iterate in DOM order. Note that IE doesn't have `children` for SVG so we fall\n        // back to `childNodes` which includes text nodes, comments etc.\n        let children = root.children || root.childNodes;\n        for (let i = 0; i < children.length; i++) {\n            let tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?\n                this._getFirstTabbableElement(children[i]) :\n                null;\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    }\n    /** Get the last tabbable element from a DOM subtree (inclusive). */\n    _getLastTabbableElement(root) {\n        if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n            return root;\n        }\n        // Iterate in reverse DOM order.\n        let children = root.children || root.childNodes;\n        for (let i = children.length - 1; i >= 0; i--) {\n            let tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?\n                this._getLastTabbableElement(children[i]) :\n                null;\n            if (tabbableChild) {\n                return tabbableChild;\n            }\n        }\n        return null;\n    }\n    /** Creates an anchor element. */\n    _createAnchor() {\n        const anchor = this._document.createElement('div');\n        this._toggleAnchorTabIndex(this._enabled, anchor);\n        anchor.classList.add('cdk-visually-hidden');\n        anchor.classList.add('cdk-focus-trap-anchor');\n        anchor.setAttribute('aria-hidden', 'true');\n        return anchor;\n    }\n    /**\n     * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.\n     * @param isEnabled Whether the focus trap is enabled.\n     * @param anchor Anchor on which to toggle the tabindex.\n     */\n    _toggleAnchorTabIndex(isEnabled, anchor) {\n        // Remove the tabindex completely, rather than setting it to -1, because if the\n        // element has a tabindex, the user might still hit it when navigating with the arrow keys.\n        isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');\n    }\n    /**\n     * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.\n     * @param enabled: Whether the anchors should trap Tab.\n     */\n    toggleAnchors(enabled) {\n        if (this._startAnchor && this._endAnchor) {\n            this._toggleAnchorTabIndex(enabled, this._startAnchor);\n            this._toggleAnchorTabIndex(enabled, this._endAnchor);\n        }\n    }\n    /** Executes a function when the zone is stable. */\n    _executeOnStable(fn) {\n        if (this._ngZone.isStable) {\n            fn();\n        }\n        else {\n            this._ngZone.onStable.pipe(take(1)).subscribe(fn);\n        }\n    }\n}\n/**\n * Factory that allows easy instantiation of focus traps.\n * @deprecated Use `ConfigurableFocusTrapFactory` instead.\n * @breaking-change for 11.0.0 Remove this class.\n */\nclass FocusTrapFactory {\n    constructor(_checker, _ngZone, _document) {\n        this._checker = _checker;\n        this._ngZone = _ngZone;\n        this._document = _document;\n    }\n    /**\n     * Creates a focus-trapped region around the given element.\n     * @param element The element around which focus will be trapped.\n     * @param deferCaptureElements Defers the creation of focus-capturing elements to be done\n     *     manually by the user.\n     * @returns The created focus trap instance.\n     */\n    create(element, deferCaptureElements = false) {\n        return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);\n    }\n}\nFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapFactory, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; } });\n/** Directive for trapping focus within a region. */\nclass FocusTrapDirective {\n    constructor(_elementRef, _focusTrapFactory, _document) {\n        this._elementRef = _elementRef;\n        this._focusTrapFactory = _focusTrapFactory;\n        /** Previously focused element to restore focus to upon destroy when using autoCapture. */\n        this._previouslyFocusedElement = null;\n        this._autoCapture = false;\n        this._document = _document;\n        this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n    }\n    /** Whether the focus trap is active. */\n    get enabled() {\n        return this.focusTrap.enabled;\n    }\n    set enabled(value) {\n        this.focusTrap.enabled = coerceBooleanProperty(value);\n    }\n    /**\n     * Whether the directive should automatically move focus into the trapped region upon\n     * initialization and return focus to the previous activeElement upon destruction.\n     */\n    get autoCapture() {\n        return this._autoCapture;\n    }\n    set autoCapture(value) {\n        this._autoCapture = coerceBooleanProperty(value);\n    }\n    ngOnDestroy() {\n        this.focusTrap.destroy();\n        // If we stored a previously focused element when using autoCapture, return focus to that\n        // element now that the trapped region is being destroyed.\n        if (this._previouslyFocusedElement) {\n            this._previouslyFocusedElement.focus();\n            this._previouslyFocusedElement = null;\n        }\n    }\n    ngAfterContentInit() {\n        this.focusTrap.attachAnchors();\n        if (this.autoCapture) {\n            this._captureFocus();\n        }\n    }\n    ngDoCheck() {\n        if (!this.focusTrap.hasAttached()) {\n            this.focusTrap.attachAnchors();\n        }\n    }\n    ngOnChanges(changes) {\n        const autoCaptureChange = changes['autoCapture'];\n        if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture &&\n            this.focusTrap.hasAttached()) {\n            this._captureFocus();\n        }\n    }\n    _captureFocus() {\n        this._previouslyFocusedElement = this._document.activeElement;\n        this.focusTrap.focusInitialElementWhenReady();\n    }\n}\nFocusTrapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapDirective, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nFocusTrapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: FocusTrapDirective, selector: \"[focusTrap]\", inputs: { enabled: [\"cdkTrapFocus\", \"enabled\"], autoCapture: [\"cdkTrapFocusAutoCapture\", \"autoCapture\"] }, exportAs: [\"focusTrap\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[focusTrap]',\n                    exportAs: 'focusTrap'\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FocusTrapFactory }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [DOCUMENT]\n                }] }]; }, propDecorators: { enabled: [{\n                type: Input,\n                args: ['cdkTrapFocus']\n            }], autoCapture: [{\n                type: Input,\n                args: ['cdkTrapFocusAutoCapture']\n            }] } });\n\nclass FocusTrapModule {\n    static forRoot() {\n        return {\n            ngModule: FocusTrapModule,\n            providers: [\n                FocusTrapManager,\n                Platform,\n                InteractivityChecker\n            ]\n        };\n    }\n}\nFocusTrapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nFocusTrapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapModule, declarations: [FocusTrapDirective], imports: [CommonModule], exports: [FocusTrapDirective] });\nFocusTrapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: FocusTrapModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                    declarations: [FocusTrapDirective],\n                    exports: [FocusTrapDirective]\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FocusTrap, FocusTrapDirective, FocusTrapModule };\n","import * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, Component, HostListener, EventEmitter, Directive, Optional, Inject, Input, Output, NgModule } from '@angular/core';\nimport { isBs3, Utils, document as document$1, window as window$1 } from 'ngx-bootstrap/utils';\nimport * as i2 from 'ngx-bootstrap/focus-trap';\nimport { FocusTrapModule } from 'ngx-bootstrap/focus-trap';\nimport * as i1 from 'ngx-bootstrap/component-loader';\nimport { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nclass BsModalRef {\n    constructor() {\n        /**\n         * Hides the modal\n         */\n        this.hide = () => void 0;\n        /**\n         * Sets new class to modal window\n         */\n        this.setClass = () => void 0;\n    }\n}\nBsModalRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nBsModalRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalRef, providedIn: 'platform' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalRef, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'platform' }]\n        }] });\n\nclass ModalBackdropOptions {\n    constructor(options) {\n        this.animate = true;\n        Object.assign(this, options);\n    }\n}\n\nclass ModalOptions {\n}\nModalOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nModalOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalOptions, providedIn: 'platform' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalOptions, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'platform' }]\n        }] });\nconst modalConfigDefaults = {\n    backdrop: true,\n    keyboard: true,\n    focus: true,\n    show: false,\n    ignoreBackdropClick: false,\n    class: '',\n    animated: true,\n    initialState: {},\n    closeInterceptor: void 0\n};\nconst MODAL_CONFIG_DEFAULT_OVERRIDE = new InjectionToken('override-default-config');\nconst CLASS_NAME = {\n    SCROLLBAR_MEASURER: 'modal-scrollbar-measure',\n    BACKDROP: 'modal-backdrop',\n    OPEN: 'modal-open',\n    FADE: 'fade',\n    IN: 'in',\n    SHOW: 'show' // bs4\n};\nconst SELECTOR = {\n    DIALOG: '.modal-dialog',\n    DATA_TOGGLE: '[data-toggle=\"modal\"]',\n    DATA_DISMISS: '[data-dismiss=\"modal\"]',\n    FIXED_CONTENT: '.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed'\n};\nconst TRANSITION_DURATIONS = {\n    MODAL: 300,\n    BACKDROP: 150\n};\nconst DISMISS_REASONS = {\n    BACKRDOP: 'backdrop-click',\n    ESC: 'esc',\n    BACK: 'browser-back-navigation-clicked'\n};\n\nclass ModalContainerComponent {\n    constructor(options, _element, _renderer) {\n        this._element = _element;\n        this._renderer = _renderer;\n        this.isShown = false;\n        this.isAnimated = false;\n        this.isModalHiding = false;\n        this.clickStartedInContent = false;\n        this.config = Object.assign({}, options);\n    }\n    ngOnInit() {\n        if (this.isAnimated) {\n            this._renderer.addClass(this._element.nativeElement, CLASS_NAME.FADE);\n        }\n        this._renderer.setStyle(this._element.nativeElement, 'display', 'block');\n        setTimeout(() => {\n            this.isShown = true;\n            this._renderer.addClass(this._element.nativeElement, isBs3() ? CLASS_NAME.IN : CLASS_NAME.SHOW);\n        }, this.isAnimated ? TRANSITION_DURATIONS.BACKDROP : 0);\n        if (document && document.body) {\n            if (this.bsModalService && this.bsModalService.getModalsCount() === 1) {\n                this.bsModalService.checkScrollbar();\n                this.bsModalService.setScrollbar();\n            }\n            this._renderer.addClass(document.body, CLASS_NAME.OPEN);\n            this._renderer.setStyle(document.body, 'overflow-y', 'hidden');\n        }\n        if (this._element.nativeElement) {\n            this._element.nativeElement.focus();\n        }\n    }\n    onClickStarted(event) {\n        this.clickStartedInContent = event.target !== this._element.nativeElement;\n    }\n    onClickStop(event) {\n        const clickedInBackdrop = event.target === this._element.nativeElement && !this.clickStartedInContent;\n        if (this.config.ignoreBackdropClick ||\n            this.config.backdrop === 'static' ||\n            !clickedInBackdrop) {\n            this.clickStartedInContent = false;\n            return;\n        }\n        this.bsModalService?.setDismissReason(DISMISS_REASONS.BACKRDOP);\n        this.hide();\n    }\n    onPopState() {\n        this.bsModalService?.setDismissReason(DISMISS_REASONS.BACK);\n        this.hide();\n    }\n    onEsc(event) {\n        if (!this.isShown) {\n            return;\n        }\n        if (event.keyCode === 27 || event.key === 'Escape') {\n            event.preventDefault();\n        }\n        if (this.config.keyboard &&\n            this.level === this.bsModalService?.getModalsCount()) {\n            this.bsModalService?.setDismissReason(DISMISS_REASONS.ESC);\n            this.hide();\n        }\n    }\n    ngOnDestroy() {\n        if (this.isShown) {\n            this._hide();\n        }\n    }\n    hide() {\n        if (this.isModalHiding || !this.isShown) {\n            return;\n        }\n        if (this.config.closeInterceptor) {\n            this.config.closeInterceptor().then(() => this._hide(), () => undefined);\n            return;\n        }\n        this._hide();\n    }\n    _hide() {\n        this.isModalHiding = true;\n        this._renderer.removeClass(this._element.nativeElement, isBs3() ? CLASS_NAME.IN : CLASS_NAME.SHOW);\n        setTimeout(() => {\n            this.isShown = false;\n            if (document &&\n                document.body &&\n                this.bsModalService?.getModalsCount() === 1) {\n                this._renderer.removeClass(document.body, CLASS_NAME.OPEN);\n                this._renderer.setStyle(document.body, 'overflow-y', '');\n            }\n            this.bsModalService?.hide(this.config.id);\n            this.isModalHiding = false;\n        }, this.isAnimated ? TRANSITION_DURATIONS.MODAL : 0);\n    }\n}\nModalContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalContainerComponent, deps: [{ token: ModalOptions }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });\nModalContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.6\", type: ModalContainerComponent, selector: \"modal-container\", host: { attributes: { \"role\": \"dialog\", \"tabindex\": \"-1\" }, listeners: { \"mousedown\": \"onClickStarted($event)\", \"click\": \"onClickStop($event)\", \"window:popstate\": \"onPopState()\", \"window:keydown.esc\": \"onEsc($event)\" }, properties: { \"attr.aria-modal\": \"true\", \"attr.aria-labelledby\": \"config.ariaLabelledBy\", \"attr.aria-describedby\": \"config.ariaDescribedby\" }, classAttribute: \"modal\" }, ngImport: i0, template: `\n    <div [class]=\"'modal-dialog' + (config.class ? ' ' + config.class : '')\"\n         role=\"document\"\n         focusTrap>\n      <div class=\"modal-content\">\n        <ng-content></ng-content>\n      </div>\n    </div>\n  `, isInline: true, dependencies: [{ kind: \"directive\", type: i2.FocusTrapDirective, selector: \"[focusTrap]\", inputs: [\"cdkTrapFocus\", \"cdkTrapFocusAutoCapture\"], exportAs: [\"focusTrap\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalContainerComponent, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'modal-container',\n                    template: `\n    <div [class]=\"'modal-dialog' + (config.class ? ' ' + config.class : '')\"\n         role=\"document\"\n         focusTrap>\n      <div class=\"modal-content\">\n        <ng-content></ng-content>\n      </div>\n    </div>\n  `,\n                    // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n                    host: {\n                        class: 'modal',\n                        role: 'dialog',\n                        tabindex: '-1',\n                        '[attr.aria-modal]': 'true',\n                        '[attr.aria-labelledby]': 'config.ariaLabelledBy',\n                        '[attr.aria-describedby]': 'config.ariaDescribedby'\n                    }\n                }]\n        }], ctorParameters: function () { return [{ type: ModalOptions }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { onClickStarted: [{\n                type: HostListener,\n                args: ['mousedown', ['$event']]\n            }], onClickStop: [{\n                type: HostListener,\n                args: ['click', ['$event']]\n            }], onPopState: [{\n                type: HostListener,\n                args: ['window:popstate']\n            }], onEsc: [{\n                type: HostListener,\n                args: ['window:keydown.esc', ['$event']]\n            }] } });\n\n/** This component will be added as background layout for modals if enabled */\nclass ModalBackdropComponent {\n    constructor(element, renderer) {\n        this._isAnimated = false;\n        this._isShown = false;\n        this.element = element;\n        this.renderer = renderer;\n    }\n    get isAnimated() {\n        return this._isAnimated;\n    }\n    set isAnimated(value) {\n        this._isAnimated = value;\n    }\n    get isShown() {\n        return this._isShown;\n    }\n    set isShown(value) {\n        this._isShown = value;\n        if (value) {\n            this.renderer.addClass(this.element.nativeElement, `${CLASS_NAME.IN}`);\n        }\n        else {\n            this.renderer.removeClass(this.element.nativeElement, `${CLASS_NAME.IN}`);\n        }\n        if (!isBs3()) {\n            if (value) {\n                this.renderer.addClass(this.element.nativeElement, `${CLASS_NAME.SHOW}`);\n            }\n            else {\n                this.renderer.removeClass(this.element.nativeElement, `${CLASS_NAME.SHOW}`);\n            }\n        }\n    }\n    ngOnInit() {\n        if (this.isAnimated) {\n            this.renderer.addClass(this.element.nativeElement, `${CLASS_NAME.FADE}`);\n            Utils.reflow(this.element.nativeElement);\n        }\n        this.isShown = true;\n    }\n}\nModalBackdropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalBackdropComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });\nModalBackdropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.6\", type: ModalBackdropComponent, selector: \"bs-modal-backdrop\", host: { classAttribute: \"modal-backdrop\" }, ngImport: i0, template: ' ', isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalBackdropComponent, decorators: [{\n            type: Component,\n            args: [{\n                    selector: 'bs-modal-backdrop',\n                    template: ' ',\n                    // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n                    host: { class: CLASS_NAME.BACKDROP }\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; } });\n\n// todo: should we support enforce focus in?\nconst TRANSITION_DURATION = 300;\nconst BACKDROP_TRANSITION_DURATION = 150;\n/** Mark any code with directive to show it's content in modal */\nclass ModalDirective {\n    constructor(_element, _viewContainerRef, _renderer, clf, modalDefaultOption) {\n        this._element = _element;\n        this._renderer = _renderer;\n        /** This event fires immediately when the `show` instance method is called. */\n        this.onShow = new EventEmitter();\n        /** This event is fired when the modal has been made visible to the user\n         * (will wait for CSS transitions to complete)\n         */\n        this.onShown = new EventEmitter();\n        /** This event is fired immediately when\n         * the hide instance method has been called.\n         */\n        this.onHide = new EventEmitter();\n        /** This event is fired when the modal has finished being\n         * hidden from the user (will wait for CSS transitions to complete).\n         */\n        this.onHidden = new EventEmitter();\n        this._isShown = false;\n        this.isBodyOverflowing = false;\n        this.originalBodyPadding = 0;\n        this.scrollbarWidth = 0;\n        this.timerHideModal = 0;\n        this.timerRmBackDrop = 0;\n        this.isNested = false;\n        this.clickStartedInContent = false;\n        this._backdrop = clf.createLoader(_element, _viewContainerRef, _renderer);\n        this._config = modalDefaultOption || modalConfigDefaults;\n    }\n    /** allows to set modal configuration via element property */\n    set config(conf) {\n        this._config = this.getConfig(conf);\n    }\n    get config() {\n        return this._config;\n    }\n    get isShown() {\n        return this._isShown;\n    }\n    onClickStarted(event) {\n        this.clickStartedInContent = event.target !== this._element.nativeElement;\n    }\n    onClickStop(event) {\n        const clickedInBackdrop = event.target === this._element.nativeElement && !this.clickStartedInContent;\n        if (this.config.ignoreBackdropClick ||\n            this.config.backdrop === 'static' ||\n            !clickedInBackdrop) {\n            this.clickStartedInContent = false;\n            return;\n        }\n        this.dismissReason = DISMISS_REASONS.BACKRDOP;\n        this.hide(event);\n    }\n    // todo: consider preventing default and stopping propagation\n    onEsc(event) {\n        if (!this._isShown) {\n            return;\n        }\n        if (event.keyCode === 27 || event.key === 'Escape') {\n            event.preventDefault();\n        }\n        if (this.config.keyboard) {\n            this.dismissReason = DISMISS_REASONS.ESC;\n            this.hide();\n        }\n    }\n    ngOnDestroy() {\n        if (this._isShown) {\n            this._isShown = false;\n            this.hideModal();\n            this._backdrop.dispose();\n        }\n    }\n    ngOnInit() {\n        this._config = this._config || this.getConfig();\n        setTimeout(() => {\n            if (this._config.show) {\n                this.show();\n            }\n        }, 0);\n    }\n    /* Public methods */\n    /** Allows to manually toggle modal visibility */\n    toggle() {\n        return this._isShown ? this.hide() : this.show();\n    }\n    /** Allows to manually open modal */\n    show() {\n        this.dismissReason = void 0;\n        this.onShow.emit(this);\n        if (this._isShown) {\n            return;\n        }\n        clearTimeout(this.timerHideModal);\n        clearTimeout(this.timerRmBackDrop);\n        this._isShown = true;\n        this.checkScrollbar();\n        this.setScrollbar();\n        if (document$1 && document$1.body) {\n            if (document$1.body.classList.contains(CLASS_NAME.OPEN)) {\n                this.isNested = true;\n            }\n            else {\n                this._renderer.addClass(document$1.body, CLASS_NAME.OPEN);\n                this._renderer.setStyle(document$1.body, 'overflow-y', 'hidden');\n            }\n        }\n        this.showBackdrop(() => {\n            this.showElement();\n        });\n    }\n    /** Check if we can close the modal */\n    hide(event) {\n        if (!this._isShown) {\n            return;\n        }\n        if (event) {\n            event.preventDefault();\n        }\n        if (this.config.closeInterceptor) {\n            this.config.closeInterceptor().then(() => this._hide(), () => undefined);\n            return;\n        }\n        this._hide();\n    }\n    /** Private methods @internal */\n    /**\n     *  Manually close modal\n     *  @internal\n     */\n    _hide() {\n        this.onHide.emit(this);\n        window$1.clearTimeout(this.timerHideModal);\n        window$1.clearTimeout(this.timerRmBackDrop);\n        this._isShown = false;\n        this._renderer.removeClass(this._element.nativeElement, CLASS_NAME.IN);\n        if (!isBs3()) {\n            this._renderer.removeClass(this._element.nativeElement, CLASS_NAME.SHOW);\n        }\n        // this._addClassIn = false;\n        if (this._config.animated) {\n            this.timerHideModal = window$1.setTimeout(() => this.hideModal(), TRANSITION_DURATION);\n        }\n        else {\n            this.hideModal();\n        }\n    }\n    getConfig(config) {\n        return Object.assign({}, this._config, config);\n    }\n    /**\n     *  Show dialog\n     *  @internal\n     */\n    showElement() {\n        // todo: replace this with component loader usage\n        if (!this._element.nativeElement.parentNode ||\n            this._element.nativeElement.parentNode.nodeType !== Node.ELEMENT_NODE) {\n            // don't move modals dom position\n            if (document$1 && document$1.body) {\n                document$1.body.appendChild(this._element.nativeElement);\n            }\n        }\n        this._renderer.setAttribute(this._element.nativeElement, 'aria-hidden', 'false');\n        this._renderer.setAttribute(this._element.nativeElement, 'aria-modal', 'true');\n        this._renderer.setStyle(this._element.nativeElement, 'display', 'block');\n        this._renderer.setProperty(this._element.nativeElement, 'scrollTop', 0);\n        if (this._config.animated) {\n            Utils.reflow(this._element.nativeElement);\n        }\n        // this._addClassIn = true;\n        this._renderer.addClass(this._element.nativeElement, CLASS_NAME.IN);\n        if (!isBs3()) {\n            this._renderer.addClass(this._element.nativeElement, CLASS_NAME.SHOW);\n        }\n        const transitionComplete = () => {\n            if (this._config.focus) {\n                this._element.nativeElement.focus();\n            }\n            this.onShown.emit(this);\n        };\n        if (this._config.animated) {\n            setTimeout(transitionComplete, TRANSITION_DURATION);\n        }\n        else {\n            transitionComplete();\n        }\n    }\n    /** @internal */\n    hideModal() {\n        this._renderer.setAttribute(this._element.nativeElement, 'aria-hidden', 'true');\n        this._renderer.setStyle(this._element.nativeElement, 'display', 'none');\n        this.showBackdrop(() => {\n            if (!this.isNested) {\n                if (document$1 && document$1.body) {\n                    this._renderer.removeClass(document$1.body, CLASS_NAME.OPEN);\n                    this._renderer.setStyle(document$1.body, 'overflow-y', '');\n                }\n                this.resetScrollbar();\n            }\n            this.resetAdjustments();\n            this.focusOtherModal();\n            this.onHidden.emit(this);\n        });\n    }\n    // todo: original show was calling a callback when done, but we can use\n    // promise\n    /** @internal */\n    showBackdrop(callback) {\n        if (this._isShown &&\n            this.config.backdrop &&\n            (!this.backdrop || !this.backdrop.instance.isShown)) {\n            this.removeBackdrop();\n            this._backdrop\n                .attach(ModalBackdropComponent)\n                .to('body')\n                .show({ isAnimated: this._config.animated });\n            this.backdrop = this._backdrop._componentRef;\n            if (!callback) {\n                return;\n            }\n            if (!this._config.animated) {\n                callback();\n                return;\n            }\n            setTimeout(callback, BACKDROP_TRANSITION_DURATION);\n        }\n        else if (!this._isShown && this.backdrop) {\n            this.backdrop.instance.isShown = false;\n            const callbackRemove = () => {\n                this.removeBackdrop();\n                if (callback) {\n                    callback();\n                }\n            };\n            if (this.backdrop.instance.isAnimated) {\n                this.timerRmBackDrop = window$1.setTimeout(callbackRemove, BACKDROP_TRANSITION_DURATION);\n            }\n            else {\n                callbackRemove();\n            }\n        }\n        else if (callback) {\n            callback();\n        }\n    }\n    /** @internal */\n    removeBackdrop() {\n        this._backdrop.hide();\n    }\n    /** Events tricks */\n    // no need for it\n    // protected setEscapeEvent():void {\n    //   if (this._isShown && this._config.keyboard) {\n    //     $(this._element).on(Event.KEYDOWN_DISMISS, (event) => {\n    //       if (event.which === 27) {\n    //         this.hide()\n    //       }\n    //     })\n    //\n    //   } else if (!this._isShown) {\n    //     $(this._element).off(Event.KEYDOWN_DISMISS)\n    //   }\n    // }\n    // protected setResizeEvent():void {\n    // console.log(this.renderer.listenGlobal('', Event.RESIZE));\n    // if (this._isShown) {\n    //   $(window).on(Event.RESIZE, $.proxy(this._handleUpdate, this))\n    // } else {\n    //   $(window).off(Event.RESIZE)\n    // }\n    // }\n    focusOtherModal() {\n        if (this._element.nativeElement.parentElement == null) {\n            return;\n        }\n        const otherOpenedModals = this._element.nativeElement.parentElement.querySelectorAll('.in[bsModal]');\n        if (!otherOpenedModals.length) {\n            return;\n        }\n        otherOpenedModals[otherOpenedModals.length - 1].focus();\n    }\n    /** @internal */\n    resetAdjustments() {\n        this._renderer.setStyle(this._element.nativeElement, 'paddingLeft', '');\n        this._renderer.setStyle(this._element.nativeElement, 'paddingRight', '');\n    }\n    /** Scroll bar tricks */\n    /** @internal */\n    checkScrollbar() {\n        this.isBodyOverflowing = document$1.body.clientWidth < window$1.innerWidth;\n        this.scrollbarWidth = this.getScrollbarWidth();\n    }\n    setScrollbar() {\n        if (!document$1) {\n            return;\n        }\n        this.originalBodyPadding = parseInt(window$1\n            .getComputedStyle(document$1.body)\n            .getPropertyValue('padding-right') || 0, 10);\n        if (this.isBodyOverflowing) {\n            document$1.body.style.paddingRight = `${this.originalBodyPadding +\n                this.scrollbarWidth}px`;\n        }\n    }\n    resetScrollbar() {\n        document$1.body.style.paddingRight = `${this.originalBodyPadding}px`;\n    }\n    // thx d.walsh\n    getScrollbarWidth() {\n        const scrollDiv = this._renderer.createElement('div');\n        this._renderer.addClass(scrollDiv, CLASS_NAME.SCROLLBAR_MEASURER);\n        this._renderer.appendChild(document$1.body, scrollDiv);\n        const scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n        this._renderer.removeChild(document$1.body, scrollDiv);\n        return scrollbarWidth;\n    }\n}\nModalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }, { token: i1.ComponentLoaderFactory }, { token: MODAL_CONFIG_DEFAULT_OVERRIDE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nModalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: ModalDirective, selector: \"[bsModal]\", inputs: { config: \"config\", closeInterceptor: \"closeInterceptor\" }, outputs: { onShow: \"onShow\", onShown: \"onShown\", onHide: \"onHide\", onHidden: \"onHidden\" }, host: { listeners: { \"mousedown\": \"onClickStarted($event)\", \"mouseup\": \"onClickStop($event)\", \"keydown.esc\": \"onEsc($event)\" } }, exportAs: [\"bs-modal\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalDirective, decorators: [{\n            type: Directive,\n            args: [{\n                    selector: '[bsModal]',\n                    exportAs: 'bs-modal'\n                }]\n        }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.Renderer2 }, { type: i1.ComponentLoaderFactory }, { type: ModalOptions, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MODAL_CONFIG_DEFAULT_OVERRIDE]\n                }] }]; }, propDecorators: { config: [{\n                type: Input\n            }], closeInterceptor: [{\n                type: Input\n            }], onShow: [{\n                type: Output\n            }], onShown: [{\n                type: Output\n            }], onHide: [{\n                type: Output\n            }], onHidden: [{\n                type: Output\n            }], onClickStarted: [{\n                type: HostListener,\n                args: ['mousedown', ['$event']]\n            }], onClickStop: [{\n                type: HostListener,\n                args: ['mouseup', ['$event']]\n            }], onEsc: [{\n                type: HostListener,\n                args: ['keydown.esc', ['$event']]\n            }] } });\n\nlet currentId = 1;\nclass BsModalService {\n    constructor(rendererFactory, clf, modalDefaultOption) {\n        this.clf = clf;\n        this.modalDefaultOption = modalDefaultOption;\n        this.onShow = new EventEmitter();\n        this.onShown = new EventEmitter();\n        this.onHide = new EventEmitter();\n        this.onHidden = new EventEmitter();\n        this.isBodyOverflowing = false;\n        this.originalBodyPadding = 0;\n        this.scrollbarWidth = 0;\n        this.modalsCount = 0;\n        this.loaders = [];\n        this._backdropLoader = this.clf.createLoader();\n        this._renderer = rendererFactory.createRenderer(null, null);\n        this.config = modalDefaultOption ?\n            (Object.assign({}, modalConfigDefaults, modalDefaultOption)) :\n            modalConfigDefaults;\n    }\n    /** Shows a modal */\n    show(\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    content, config) {\n        this.modalsCount++;\n        this._createLoaders();\n        // must be different per every show() call\n        const id = config?.id || currentId++;\n        this.config = this.modalDefaultOption ?\n            Object.assign({}, modalConfigDefaults, this.modalDefaultOption, config) :\n            Object.assign({}, modalConfigDefaults, config);\n        this.config.id = id;\n        this._showBackdrop();\n        this.lastDismissReason = void 0;\n        return this._showModal(content);\n    }\n    hide(id) {\n        if (this.modalsCount === 1 || id == null) {\n            this._hideBackdrop();\n            this.resetScrollbar();\n        }\n        this.modalsCount = this.modalsCount >= 1 && id != null ? this.modalsCount - 1 : 0;\n        setTimeout(() => {\n            this._hideModal(id);\n            this.removeLoaders(id);\n        }, this.config.animated ? TRANSITION_DURATIONS.BACKDROP : 0);\n    }\n    _showBackdrop() {\n        const isBackdropEnabled = this.config.backdrop === true || this.config.backdrop === 'static';\n        const isBackdropInDOM = !this.backdropRef || !this.backdropRef.instance.isShown;\n        if (this.modalsCount === 1) {\n            this.removeBackdrop();\n            if (isBackdropEnabled && isBackdropInDOM) {\n                this._backdropLoader\n                    .attach(ModalBackdropComponent)\n                    .to('body')\n                    .show({ isAnimated: this.config.animated });\n                this.backdropRef = this._backdropLoader._componentRef;\n            }\n        }\n    }\n    _hideBackdrop() {\n        if (!this.backdropRef) {\n            return;\n        }\n        this.backdropRef.instance.isShown = false;\n        const duration = this.config.animated ? TRANSITION_DURATIONS.BACKDROP : 0;\n        setTimeout(() => this.removeBackdrop(), duration);\n    }\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    _showModal(content) {\n        const modalLoader = this.loaders[this.loaders.length - 1];\n        if (this.config && this.config.providers) {\n            for (const provider of this.config.providers) {\n                modalLoader.provide(provider);\n            }\n        }\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        const bsModalRef = new BsModalRef();\n        const modalContainerRef = modalLoader\n            .provide({ provide: ModalOptions, useValue: this.config })\n            .provide({ provide: BsModalRef, useValue: bsModalRef })\n            .attach(ModalContainerComponent)\n            .to('body');\n        bsModalRef.hide = () => modalContainerRef.instance?.hide();\n        bsModalRef.setClass = (newClass) => {\n            if (modalContainerRef.instance) {\n                modalContainerRef.instance.config.class = newClass;\n            }\n        };\n        bsModalRef.onHidden = new EventEmitter();\n        bsModalRef.onHide = new EventEmitter();\n        this.copyEvent(modalLoader.onBeforeHide, bsModalRef.onHide);\n        this.copyEvent(modalLoader.onHidden, bsModalRef.onHidden);\n        // call 'show' method after assign setClass in bsModalRef.\n        // it makes modal component's bsModalRef available to call setClass method\n        modalContainerRef.show({\n            content,\n            isAnimated: this.config.animated,\n            initialState: this.config.initialState,\n            bsModalService: this,\n            id: this.config.id\n        });\n        if (modalContainerRef.instance) {\n            modalContainerRef.instance.level = this.getModalsCount();\n            bsModalRef.content = modalLoader.getInnerComponent();\n            bsModalRef.id = modalContainerRef.instance.config?.id;\n        }\n        return bsModalRef;\n    }\n    _hideModal(id) {\n        if (id != null) {\n            const indexToRemove = this.loaders.findIndex(loader => loader.instance?.config.id === id);\n            const modalLoader = this.loaders[indexToRemove];\n            if (modalLoader) {\n                modalLoader.hide(id);\n            }\n        }\n        else {\n            this.loaders.forEach((loader) => {\n                if (loader.instance) {\n                    loader.hide(loader.instance.config.id);\n                }\n            });\n        }\n    }\n    getModalsCount() {\n        return this.modalsCount;\n    }\n    setDismissReason(reason) {\n        this.lastDismissReason = reason;\n    }\n    removeBackdrop() {\n        this._renderer.removeClass(document.body, CLASS_NAME.OPEN);\n        this._renderer.setStyle(document.body, 'overflow-y', '');\n        this._backdropLoader.hide();\n        this.backdropRef = void 0;\n    }\n    /** Checks if the body is overflowing and sets scrollbar width */\n    /** @internal */\n    checkScrollbar() {\n        this.isBodyOverflowing = document.body.clientWidth < window.innerWidth;\n        this.scrollbarWidth = this.getScrollbarWidth();\n    }\n    setScrollbar() {\n        if (!document) {\n            return;\n        }\n        this.originalBodyPadding = parseInt(window\n            .getComputedStyle(document.body)\n            .getPropertyValue('padding-right') || '0', 10);\n        if (this.isBodyOverflowing) {\n            document.body.style.paddingRight = `${this.originalBodyPadding +\n                this.scrollbarWidth}px`;\n        }\n    }\n    resetScrollbar() {\n        document.body.style.paddingRight = `${this.originalBodyPadding}px`;\n    }\n    // thx d.walsh\n    getScrollbarWidth() {\n        const scrollDiv = this._renderer.createElement('div');\n        this._renderer.addClass(scrollDiv, CLASS_NAME.SCROLLBAR_MEASURER);\n        this._renderer.appendChild(document.body, scrollDiv);\n        const scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n        this._renderer.removeChild(document.body, scrollDiv);\n        return scrollbarWidth;\n    }\n    _createLoaders() {\n        const loader = this.clf.createLoader();\n        this.copyEvent(loader.onBeforeShow, this.onShow);\n        this.copyEvent(loader.onShown, this.onShown);\n        this.copyEvent(loader.onBeforeHide, this.onHide);\n        this.copyEvent(loader.onHidden, this.onHidden);\n        this.loaders.push(loader);\n    }\n    removeLoaders(id) {\n        if (id != null) {\n            const indexToRemove = this.loaders.findIndex(loader => loader.instance?.config.id === id);\n            if (indexToRemove >= 0) {\n                this.loaders.splice(indexToRemove, 1);\n                this.loaders.forEach((loader, i) => {\n                    if (loader.instance) {\n                        loader.instance.level = i + 1;\n                    }\n                });\n            }\n        }\n        else {\n            this.loaders.splice(0, this.loaders.length);\n        }\n    }\n    copyEvent(from, to) {\n        from.subscribe((data) => {\n            to.emit(this.lastDismissReason || data);\n        });\n    }\n}\nBsModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalService, deps: [{ token: i0.RendererFactory2 }, { token: i1.ComponentLoaderFactory }, { token: MODAL_CONFIG_DEFAULT_OVERRIDE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nBsModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalService, providedIn: 'platform' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: BsModalService, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'platform' }]\n        }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ComponentLoaderFactory }, { type: ModalOptions, decorators: [{\n                    type: Optional\n                }, {\n                    type: Inject,\n                    args: [MODAL_CONFIG_DEFAULT_OVERRIDE]\n                }] }]; } });\n\nconst focusTrapModule = FocusTrapModule.forRoot();\nclass ModalModule {\n    static forRoot() {\n        return {\n            ngModule: ModalModule,\n            providers: [BsModalService, ComponentLoaderFactory, PositioningService]\n        };\n    }\n    static forChild() {\n        return {\n            ngModule: ModalModule,\n            providers: [BsModalService, ComponentLoaderFactory, PositioningService]\n        };\n    }\n}\nModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalModule, declarations: [ModalBackdropComponent,\n        ModalDirective,\n        ModalContainerComponent], imports: [FocusTrapModule], exports: [ModalBackdropComponent, ModalDirective] });\nModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalModule, imports: [FocusTrapModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: ModalModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [FocusTrapModule],\n                    declarations: [\n                        ModalBackdropComponent,\n                        ModalDirective,\n                        ModalContainerComponent\n                    ],\n                    exports: [ModalBackdropComponent, ModalDirective]\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BsModalRef, BsModalService, MODAL_CONFIG_DEFAULT_OVERRIDE, ModalBackdropComponent, ModalBackdropOptions, ModalContainerComponent, ModalDirective, ModalModule, ModalOptions };\n","import * as i0 from '@angular/core';\nimport { Injectable, Component, ChangeDetectionStrategy, Input, Directive, Output, NgModule } from '@angular/core';\nimport * as i2$1 from 'ngx-bootstrap/component-loader';\nimport { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { getBsVer, parseTriggers } from 'ngx-bootstrap/utils';\nimport * as i3 from 'ngx-bootstrap/positioning';\nimport { PlacementForBs5, checkMargins, PositioningService } from 'ngx-bootstrap/positioning';\nimport * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { timer } from 'rxjs';\n\n/**\n * Configuration service for the Popover directive.\n * You can inject this service, typically in your root component, and customize\n * the values of its properties in order to provide default values for all the\n * popovers used in the application.\n */\nclass PopoverConfig {\n    constructor() {\n        /** sets disable adaptive position */\n        this.adaptivePosition = true;\n        /**\n         * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\", \"auto\"\n         */\n        this.placement = 'top';\n        /**\n         * Specifies events that should trigger. Supports a space separated list of\n         * event names.\n         */\n        this.triggers = 'click';\n        this.outsideClick = false;\n        /** delay before showing the tooltip */\n        this.delay = 0;\n    }\n}\nPopoverConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPopoverConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverConfig, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverConfig, decorators: [{\n            type: Injectable,\n            args: [{\n                    providedIn: 'root'\n                }]\n        }] });\n\nclass PopoverContainerComponent {\n    constructor(config) {\n        this._placement = 'top';\n        Object.assign(this, config);\n    }\n    set placement(value) {\n        if (!this._bsVersions.isBs5) {\n            this._placement = value;\n        }\n        else {\n            this._placement = PlacementForBs5[value];\n        }\n    }\n    ;\n    get _bsVersions() {\n        return getBsVer();\n    }\n    checkMarginNecessity() {\n        return checkMargins(this._placement);\n    }\n}\nPopoverContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverContainerComponent, deps: [{ token: PopoverConfig }], target: i0.ɵɵFactoryTarget.Component });\nPopoverContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"14.0.6\", type: PopoverContainerComponent, selector: \"popover-container\", inputs: { placement: \"placement\", title: \"title\" }, host: { attributes: { \"role\": \"tooltip\" }, properties: { \"attr.id\": \"popoverId\", \"class\": \"\\\"popover in popover-\\\" + _placement + \\\" \\\" + \\\"bs-popover-\\\" + _placement + \\\" \\\" + _placement + \\\" \\\" + containerClass + \\\" \\\" + checkMarginNecessity()\", \"class.show\": \"!_bsVersions.isBs3\", \"class.bs3\": \"_bsVersions.isBs3\" }, styleAttribute: \"display:block;\" }, ngImport: i0, template: \"<div class=\\\"popover-arrow arrow\\\"></div>\\n<h3 class=\\\"popover-title popover-header\\\" *ngIf=\\\"title\\\">{{ title }}</h3>\\n<div class=\\\"popover-content popover-body\\\">\\n  <ng-content></ng-content>\\n</div>\\n\", styles: [\":host.bs3.popover-top{margin-bottom:10px}:host.bs3.popover.top>.arrow{margin-left:-2px}:host.bs3.popover.top{margin-bottom:10px}:host.popover.bottom>.arrow{margin-left:-4px}:host.bs3.bs-popover-left{margin-right:.5rem}:host.bs3.bs-popover-right .arrow,:host.bs3.bs-popover-left .arrow{margin:.3rem 0}\\n\"], dependencies: [{ kind: \"directive\", type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverContainerComponent, decorators: [{\n            type: Component,\n            args: [{ selector: 'popover-container', changeDetection: ChangeDetectionStrategy.OnPush, host: {\n                        '[attr.id]': 'popoverId',\n                        '[class]': '\"popover in popover-\" + _placement + \" \" + \"bs-popover-\" + _placement + \" \" + _placement + \" \" + containerClass + \" \" + checkMarginNecessity()',\n                        '[class.show]': '!_bsVersions.isBs3',\n                        '[class.bs3]': '_bsVersions.isBs3',\n                        role: 'tooltip',\n                        style: 'display:block;'\n                    }, template: \"<div class=\\\"popover-arrow arrow\\\"></div>\\n<h3 class=\\\"popover-title popover-header\\\" *ngIf=\\\"title\\\">{{ title }}</h3>\\n<div class=\\\"popover-content popover-body\\\">\\n  <ng-content></ng-content>\\n</div>\\n\", styles: [\":host.bs3.popover-top{margin-bottom:10px}:host.bs3.popover.top>.arrow{margin-left:-2px}:host.bs3.popover.top{margin-bottom:10px}:host.popover.bottom>.arrow{margin-left:-4px}:host.bs3.bs-popover-left{margin-right:.5rem}:host.bs3.bs-popover-right .arrow,:host.bs3.bs-popover-left .arrow{margin:.3rem 0}\\n\"] }]\n        }], ctorParameters: function () { return [{ type: PopoverConfig }]; }, propDecorators: { placement: [{\n                type: Input\n            }], title: [{\n                type: Input\n            }] } });\n\nlet id = 0;\n/**\n * A lightweight, extensible directive for fancy popover creation.\n */\nclass PopoverDirective {\n    constructor(_config, _elementRef, _renderer, _viewContainerRef, cis, _positionService) {\n        this._elementRef = _elementRef;\n        this._renderer = _renderer;\n        this._positionService = _positionService;\n        /** unique id popover - use for aria-describedby */\n        this.popoverId = id++;\n        /** sets disable adaptive position */\n        this.adaptivePosition = true;\n        /**\n         * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\"\n         */\n        this.placement = 'top';\n        /**\n         * Close popover on outside click\n         */\n        this.outsideClick = false;\n        /**\n         * Specifies events that should trigger. Supports a space separated list of\n         * event names.\n         */\n        this.triggers = 'click';\n        /**\n         * Css class for popover container\n         */\n        this.containerClass = '';\n        /**\n         * Delay before showing the tooltip\n         */\n        this.delay = 0;\n        this._isInited = false;\n        this._popover = cis\n            .createLoader(_elementRef, _viewContainerRef, _renderer)\n            .provide({ provide: PopoverConfig, useValue: _config });\n        Object.assign(this, _config);\n        this.onShown = this._popover.onShown;\n        this.onHidden = this._popover.onHidden;\n        // fix: no focus on button on Mac OS #1795\n        if (typeof window !== 'undefined') {\n            _elementRef.nativeElement.addEventListener('click', function () {\n                try {\n                    _elementRef.nativeElement.focus();\n                }\n                catch (err) {\n                    return;\n                }\n            });\n        }\n    }\n    /**\n     * Returns whether or not the popover is currently being shown\n     */\n    get isOpen() {\n        return this._popover.isShown;\n    }\n    set isOpen(value) {\n        if (value) {\n            this.show();\n        }\n        else {\n            this.hide();\n        }\n    }\n    /**\n     * Set attribute aria-describedBy for element directive and\n     * set id for the popover\n     */\n    setAriaDescribedBy() {\n        this._ariaDescribedby = this.isOpen ? `ngx-popover-${this.popoverId}` : void 0;\n        if (this._ariaDescribedby) {\n            if (this._popover.instance) {\n                this._popover.instance.popoverId = this._ariaDescribedby;\n            }\n            this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ariaDescribedby);\n        }\n        else {\n            this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n        }\n    }\n    /**\n     * Opens an element’s popover. This is considered a “manual” triggering of\n     * the popover.\n     */\n    show() {\n        if (this._popover.isShown || !this.popover || this._delayTimeoutId) {\n            return;\n        }\n        this._positionService.setOptions({\n            modifiers: {\n                flip: {\n                    enabled: this.adaptivePosition\n                },\n                preventOverflow: {\n                    enabled: this.adaptivePosition,\n                    boundariesElement: this.boundariesElement || 'scrollParent'\n                }\n            }\n        });\n        const showPopover = () => {\n            if (this._delayTimeoutId) {\n                this._delayTimeoutId = undefined;\n            }\n            this._popover\n                .attach(PopoverContainerComponent)\n                .to(this.container)\n                .position({ attachment: this.placement })\n                .show({\n                content: this.popover,\n                context: this.popoverContext,\n                placement: this.placement,\n                title: this.popoverTitle,\n                containerClass: this.containerClass\n            });\n            if (!this.adaptivePosition && this._popover._componentRef) {\n                this._positionService.calcPosition();\n                this._positionService.deletePositionElement(this._popover._componentRef.location);\n            }\n            this.isOpen = true;\n            this.setAriaDescribedBy();\n        };\n        const cancelDelayedTooltipShowing = () => {\n            if (this._popoverCancelShowFn) {\n                this._popoverCancelShowFn();\n            }\n        };\n        if (this.delay) {\n            const _timer = timer(this.delay).subscribe(() => {\n                showPopover();\n                cancelDelayedTooltipShowing();\n            });\n            if (this.triggers) {\n                parseTriggers(this.triggers)\n                    .forEach((trigger) => {\n                    if (!trigger.close) {\n                        return;\n                    }\n                    this._popoverCancelShowFn = this._renderer.listen(this._elementRef.nativeElement, trigger.close, () => {\n                        _timer.unsubscribe();\n                        cancelDelayedTooltipShowing();\n                    });\n                });\n            }\n        }\n        else {\n            showPopover();\n        }\n    }\n    /**\n     * Closes an element’s popover. This is considered a “manual” triggering of\n     * the popover.\n     */\n    hide() {\n        if (this._delayTimeoutId) {\n            clearTimeout(this._delayTimeoutId);\n            this._delayTimeoutId = undefined;\n        }\n        if (this.isOpen) {\n            this._popover.hide();\n            this.setAriaDescribedBy();\n            this.isOpen = false;\n        }\n    }\n    /**\n     * Toggles an element’s popover. This is considered a “manual” triggering of\n     * the popover.\n     */\n    toggle() {\n        if (this.isOpen) {\n            return this.hide();\n        }\n        this.show();\n    }\n    ngOnInit() {\n        // fix: seems there are an issue with `routerLinkActive`\n        // which result in duplicated call ngOnInit without call to ngOnDestroy\n        // read more: https://github.com/valor-software/ngx-bootstrap/issues/1885\n        if (this._isInited) {\n            return;\n        }\n        this._isInited = true;\n        this._popover.listen({\n            triggers: this.triggers,\n            outsideClick: this.outsideClick,\n            show: () => this.show(),\n            hide: () => this.hide()\n        });\n    }\n    ngOnDestroy() {\n        this._popover.dispose();\n    }\n}\nPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverDirective, deps: [{ token: PopoverConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2$1.ComponentLoaderFactory }, { token: i3.PositioningService }], target: i0.ɵɵFactoryTarget.Directive });\nPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"14.0.6\", type: PopoverDirective, selector: \"[popover]\", inputs: { adaptivePosition: \"adaptivePosition\", boundariesElement: \"boundariesElement\", popover: \"popover\", popoverContext: \"popoverContext\", popoverTitle: \"popoverTitle\", placement: \"placement\", outsideClick: \"outsideClick\", triggers: \"triggers\", container: \"container\", containerClass: \"containerClass\", isOpen: \"isOpen\", delay: \"delay\" }, outputs: { onShown: \"onShown\", onHidden: \"onHidden\" }, exportAs: [\"bs-popover\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverDirective, decorators: [{\n            type: Directive,\n            args: [{ selector: '[popover]', exportAs: 'bs-popover' }]\n        }], ctorParameters: function () { return [{ type: PopoverConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.ComponentLoaderFactory }, { type: i3.PositioningService }]; }, propDecorators: { adaptivePosition: [{\n                type: Input\n            }], boundariesElement: [{\n                type: Input\n            }], popover: [{\n                type: Input\n            }], popoverContext: [{\n                type: Input\n            }], popoverTitle: [{\n                type: Input\n            }], placement: [{\n                type: Input\n            }], outsideClick: [{\n                type: Input\n            }], triggers: [{\n                type: Input\n            }], container: [{\n                type: Input\n            }], containerClass: [{\n                type: Input\n            }], isOpen: [{\n                type: Input\n            }], delay: [{\n                type: Input\n            }], onShown: [{\n                type: Output\n            }], onHidden: [{\n                type: Output\n            }] } });\n\nclass PopoverModule {\n    static forRoot() {\n        return {\n            ngModule: PopoverModule,\n            providers: [ComponentLoaderFactory, PositioningService]\n        };\n    }\n}\nPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverModule, declarations: [PopoverDirective, PopoverContainerComponent], imports: [CommonModule], exports: [PopoverDirective] });\nPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverModule, imports: [CommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PopoverModule, decorators: [{\n            type: NgModule,\n            args: [{\n                    imports: [CommonModule],\n                    declarations: [PopoverDirective, PopoverContainerComponent],\n                    exports: [PopoverDirective]\n                }]\n        }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { PopoverConfig, PopoverContainerComponent, PopoverDirective, PopoverModule };\n","import { getBsVer } from 'ngx-bootstrap/utils';\nimport * as i0 from '@angular/core';\nimport { PLATFORM_ID, Injectable, Inject, ElementRef } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Subject, merge, fromEvent, of, animationFrameScheduler } from 'rxjs';\n\nvar MapPlacementInToRL;\n(function (MapPlacementInToRL) {\n    MapPlacementInToRL[\"top\"] = \"top\";\n    MapPlacementInToRL[\"bottom\"] = \"bottom\";\n    MapPlacementInToRL[\"left\"] = \"left\";\n    MapPlacementInToRL[\"right\"] = \"right\";\n    MapPlacementInToRL[\"auto\"] = \"auto\";\n    MapPlacementInToRL[\"end\"] = \"right\";\n    MapPlacementInToRL[\"start\"] = \"left\";\n    MapPlacementInToRL[\"top left\"] = \"top left\";\n    MapPlacementInToRL[\"top right\"] = \"top right\";\n    MapPlacementInToRL[\"right top\"] = \"right top\";\n    MapPlacementInToRL[\"right bottom\"] = \"right bottom\";\n    MapPlacementInToRL[\"bottom right\"] = \"bottom right\";\n    MapPlacementInToRL[\"bottom left\"] = \"bottom left\";\n    MapPlacementInToRL[\"left bottom\"] = \"left bottom\";\n    MapPlacementInToRL[\"left top\"] = \"left top\";\n    MapPlacementInToRL[\"top start\"] = \"top left\";\n    MapPlacementInToRL[\"top end\"] = \"top right\";\n    MapPlacementInToRL[\"end top\"] = \"right top\";\n    MapPlacementInToRL[\"end bottom\"] = \"right bottom\";\n    MapPlacementInToRL[\"bottom end\"] = \"bottom right\";\n    MapPlacementInToRL[\"bottom start\"] = \"bottom left\";\n    MapPlacementInToRL[\"start bottom\"] = \"start bottom\";\n    MapPlacementInToRL[\"start top\"] = \"left top\";\n})(MapPlacementInToRL || (MapPlacementInToRL = {}));\nvar PlacementForBs5;\n(function (PlacementForBs5) {\n    PlacementForBs5[\"top\"] = \"top\";\n    PlacementForBs5[\"bottom\"] = \"bottom\";\n    PlacementForBs5[\"left\"] = \"start\";\n    PlacementForBs5[\"right\"] = \"end\";\n    PlacementForBs5[\"auto\"] = \"auto\";\n    PlacementForBs5[\"end\"] = \"end\";\n    PlacementForBs5[\"start\"] = \"start\";\n    PlacementForBs5[\"top left\"] = \"top start\";\n    PlacementForBs5[\"top right\"] = \"top end\";\n    PlacementForBs5[\"right top\"] = \"end top\";\n    PlacementForBs5[\"right bottom\"] = \"end bottom\";\n    PlacementForBs5[\"bottom right\"] = \"bottom end\";\n    PlacementForBs5[\"bottom left\"] = \"bottom start\";\n    PlacementForBs5[\"left bottom\"] = \"start bottom\";\n    PlacementForBs5[\"left top\"] = \"start top\";\n    PlacementForBs5[\"top start\"] = \"top start\";\n    PlacementForBs5[\"top end\"] = \"top end\";\n    PlacementForBs5[\"end top\"] = \"end top\";\n    PlacementForBs5[\"end bottom\"] = \"end bottom\";\n    PlacementForBs5[\"bottom end\"] = \"bottom end\";\n    PlacementForBs5[\"bottom start\"] = \"bottom start\";\n    PlacementForBs5[\"start bottom\"] = \"start bottom\";\n    PlacementForBs5[\"start top\"] = \"start top\";\n})(PlacementForBs5 || (PlacementForBs5 = {}));\n\nfunction getStyleComputedProperty(element, property) {\n    if (element.nodeType !== 1) {\n        return [];\n    }\n    // NOTE: 1 DOM access here\n    const window = element.ownerDocument.defaultView;\n    const css = window?.getComputedStyle(element, null);\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return property ? css && css[property] : css;\n}\n\n/**\n * Returns the offset parent of the given element\n */\nfunction getOffsetParent(element) {\n    if (!element) {\n        return document.documentElement;\n    }\n    const noOffsetParent = null;\n    // NOTE: 1 DOM access here\n    let offsetParent = element?.offsetParent;\n    // Skip hidden elements which don't have an offsetParent\n    let sibling = void 0;\n    while (offsetParent === noOffsetParent\n        && element.nextElementSibling\n        && sibling !== element.nextElementSibling) {\n        // todo: valorkin fix\n        sibling = element.nextElementSibling;\n        offsetParent = sibling.offsetParent;\n    }\n    const nodeName = offsetParent && offsetParent.nodeName;\n    if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n        return sibling ? sibling.ownerDocument.documentElement : document.documentElement;\n    }\n    // .offsetParent will return the closest TH, TD or TABLE in case\n    if (offsetParent &&\n        ['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 &&\n        getStyleComputedProperty(offsetParent, 'position') === 'static') {\n        return getOffsetParent(offsetParent);\n    }\n    return offsetParent;\n}\n\n// todo: valorkin fix\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction isOffsetContainer(element) {\n    const { nodeName } = element;\n    if (nodeName === 'BODY') {\n        return false;\n    }\n    return (nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element);\n}\n\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n */\nfunction getRoot(node) {\n    if (node.parentNode !== null) {\n        return getRoot(node.parentNode);\n    }\n    return node;\n}\n\n/**\n * Finds the offset parent common to the two provided nodes\n */\nfunction findCommonOffsetParent(element1, element2) {\n    // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n    if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n        return document.documentElement;\n    }\n    // Here we make sure to give as \"start\" the element that comes first in the DOM\n    const order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n    const start = order ? element1 : element2;\n    const end = order ? element2 : element1;\n    // Get common ancestor container\n    const range = document.createRange();\n    range.setStart(start, 0);\n    range.setEnd(end, 0);\n    // todo: valorkin fix\n    const commonAncestorContainer = range.commonAncestorContainer;\n    // Both nodes are inside #document\n    if ((element1 !== commonAncestorContainer &&\n        element2 !== commonAncestorContainer) ||\n        start.contains(end)) {\n        if (isOffsetContainer(commonAncestorContainer)) {\n            return commonAncestorContainer;\n        }\n        return getOffsetParent(commonAncestorContainer);\n    }\n    // one of the nodes is inside shadowDOM, find which one\n    const element1root = getRoot(element1);\n    if (element1root.host) {\n        return findCommonOffsetParent(element1root.host, element2);\n    }\n    else {\n        return findCommonOffsetParent(element1, getRoot(element2).host);\n    }\n}\n\n/**\n * Finds the first parent of an element that has a transformed property defined\n */\nfunction getFixedPositionOffsetParent(element) {\n    // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n    if (!element || !element.parentElement) {\n        return document.documentElement;\n    }\n    let el = element.parentElement;\n    while (el?.parentElement && getStyleComputedProperty(el, 'transform') === 'none') {\n        el = el.parentElement;\n    }\n    return el || document.documentElement;\n}\n\n/**\n * Helper to detect borders of a given element\n */\nfunction getBordersSize(styles, axis) {\n    const sideA = axis === 'x' ? 'Left' : 'Top';\n    const sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n    return (parseFloat(styles[`border${sideA}Width`]) +\n        parseFloat(styles[`border${sideB}Width`]));\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n    const _body = body;\n    const _html = html;\n    const _computedStyle = computedStyle;\n    return Math.max(_body[`offset${axis}`], _body[`scroll${axis}`], _html[`client${axis}`], _html[`offset${axis}`], _html[`scroll${axis}`], 0);\n}\nfunction getWindowSizes(document) {\n    const body = document.body;\n    const html = document.documentElement;\n    const computedStyle = void 0;\n    return {\n        height: getSize('Height', body, html, computedStyle),\n        width: getSize('Width', body, html, computedStyle)\n    };\n}\n\nfunction getClientRect(offsets) {\n    return {\n        ...offsets,\n        right: (offsets.left || 0) + offsets.width,\n        bottom: (offsets.top || 0) + offsets.height\n    };\n}\n\n/**\n * Tells if a given input is a number\n */\nfunction isNumeric(n) {\n    return n !== '' && !isNaN(parseFloat(n)) && isFinite(Number(n));\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction isNumber(value) {\n    return typeof value === 'number' || Object.prototype.toString.call(value) === '[object Number]';\n}\n\n/**\n * Get bounding client rect of given element\n */\nfunction getBoundingClientRect(element) {\n    const rect = element.getBoundingClientRect();\n    // IE10 10 FIX: Please, don't ask, the element isn't\n    // considered in DOM in some circumstances...\n    // This isn't reproducible in IE10 compatibility mode of IE11\n    // try {\n    //   if (isIE(10)) {\n    //     const scrollTop = getScroll(element, 'top');\n    //     const scrollLeft = getScroll(element, 'left');\n    //     if (rect && isNumber(rect.top) && isNumber(rect.left) && isNumber(rect.bottom) && isNumber(rect.right)) {\n    //       rect.top += scrollTop;\n    //       rect.left += scrollLeft;\n    //       rect.bottom += scrollTop;\n    //       rect.right += scrollLeft;\n    //     }\n    //   }\n    // } catch (e) {\n    //   return rect;\n    // }\n    if (!(rect && isNumber(rect.top) && isNumber(rect.left) && isNumber(rect.bottom) && isNumber(rect.right))) {\n        return rect;\n    }\n    const result = {\n        left: rect.left,\n        top: rect.top,\n        width: rect.right - rect.left,\n        height: rect.bottom - rect.top\n    };\n    // subtract scrollbar size from sizes\n    const sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : undefined;\n    const width = sizes?.width || element.clientWidth\n        || isNumber(rect.right) && isNumber(result.left) && rect.right - result.left || 0;\n    const height = sizes?.height || element.clientHeight\n        || isNumber(rect.bottom) && isNumber(result.top) && rect.bottom - result.top || 0;\n    let horizScrollbar = element.offsetWidth - width;\n    let vertScrollbar = element.offsetHeight - height;\n    // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n    // we make this check conditional for performance reasons\n    if (horizScrollbar || vertScrollbar) {\n        const styles = getStyleComputedProperty(element);\n        horizScrollbar -= getBordersSize(styles, 'x');\n        vertScrollbar -= getBordersSize(styles, 'y');\n        result.width -= horizScrollbar;\n        result.height -= vertScrollbar;\n    }\n    return getClientRect(result);\n}\n\n/**\n * Returns the parentNode or the host of the element\n */\n// todo: valorkin fix\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getParentNode(element) {\n    if (element.nodeName === 'HTML') {\n        return element;\n    }\n    return element.parentNode || element.host;\n}\n\n/**\n * Returns the scrolling parent of the given element\n */\n// todo: valorkin fix\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getScrollParent(element) {\n    // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n    if (!element) {\n        return document.body;\n    }\n    switch (element.nodeName) {\n        case 'HTML':\n        case 'BODY':\n            return element.ownerDocument.body;\n        case '#document':\n            return element.body;\n        default:\n    }\n    // Firefox want us to check `-x` and `-y` variations as well\n    const { overflow, overflowX, overflowY } = getStyleComputedProperty(element);\n    if (/(auto|scroll|overlay)/.test(String(overflow) + String(overflowY) + String(overflowX))) {\n        return element;\n    }\n    return getScrollParent(getParentNode(element));\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition = false) {\n    const isHTML = parent.nodeName === 'HTML';\n    const childrenRect = getBoundingClientRect(children);\n    const parentRect = getBoundingClientRect(parent);\n    const scrollParent = getScrollParent(children);\n    const styles = getStyleComputedProperty(parent);\n    const borderTopWidth = parseFloat(styles.borderTopWidth);\n    const borderLeftWidth = parseFloat(styles.borderLeftWidth);\n    // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n    if (fixedPosition && isHTML) {\n        parentRect.top = Math.max(parentRect.top ?? 0, 0);\n        parentRect.left = Math.max(parentRect.left ?? 0, 0);\n    }\n    const offsets = getClientRect({\n        top: (childrenRect.top ?? 0) - (parentRect.top ?? 0) - borderTopWidth,\n        left: (childrenRect.left ?? 0) - (parentRect.left ?? 0) - borderLeftWidth,\n        width: childrenRect.width,\n        height: childrenRect.height\n    });\n    offsets.marginTop = 0;\n    offsets.marginLeft = 0;\n    // Subtract margins of documentElement in case it's being used as parent\n    // we do this only on HTML because it's the only element that behaves\n    // differently when margins are applied to it. The margins are included in\n    // the box of the documentElement, in the other cases not.\n    if (isHTML) {\n        const marginTop = parseFloat(styles.marginTop);\n        const marginLeft = parseFloat(styles.marginLeft);\n        if (isNumber(offsets.top)) {\n            offsets.top -= borderTopWidth - marginTop;\n        }\n        if (isNumber(offsets.bottom)) {\n            offsets.bottom -= borderTopWidth - marginTop;\n        }\n        if (isNumber(offsets.left)) {\n            offsets.left -= borderLeftWidth - marginLeft;\n        }\n        if (isNumber(offsets.right)) {\n            offsets.right -= borderLeftWidth - marginLeft;\n        }\n        // Attach marginTop and marginLeft because in some circumstances we may need them\n        offsets.marginTop = marginTop;\n        offsets.marginLeft = marginLeft;\n    }\n    return offsets;\n}\n\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n */\nfunction getScroll(element, side = 'top') {\n    const upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n    const nodeName = element.nodeName;\n    if (nodeName === 'BODY' || nodeName === 'HTML') {\n        const html = element.ownerDocument.documentElement;\n        const scrollingElement = element.ownerDocument.scrollingElement || html;\n        return scrollingElement[upperSide];\n    }\n    return element[upperSide];\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element, excludeScroll = false) {\n    const html = element.ownerDocument.documentElement;\n    const relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n    const width = Math.max(html.clientWidth, window.innerWidth || 0);\n    const height = Math.max(html.clientHeight, window.innerHeight || 0);\n    const scrollTop = !excludeScroll ? getScroll(html) : 0;\n    const scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n    const offset = {\n        top: scrollTop - Number(relativeOffset?.top) + Number(relativeOffset?.marginTop),\n        left: scrollLeft - Number(relativeOffset?.left) + Number(relativeOffset?.marginLeft),\n        width,\n        height\n    };\n    return getClientRect(offset);\n}\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n */\nfunction isFixed(element) {\n    const nodeName = element.nodeName;\n    if (nodeName === 'BODY' || nodeName === 'HTML') {\n        return false;\n    }\n    if (getStyleComputedProperty(element, 'position') === 'fixed') {\n        return true;\n    }\n    return isFixed(getParentNode(element));\n}\n\nfunction getBoundaries(target, host, padding = 0, boundariesElement, fixedPosition = false) {\n    // NOTE: 1 DOM access here\n    let boundaries = { top: 0, left: 0 };\n    const offsetParent = fixedPosition ? getFixedPositionOffsetParent(target) : findCommonOffsetParent(target, host);\n    // Handle viewport case\n    if (boundariesElement === 'viewport') {\n        boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n    }\n    else {\n        // Handle other cases based on DOM element used as boundaries\n        let boundariesNode;\n        if (boundariesElement === 'scrollParent') {\n            boundariesNode = getScrollParent(getParentNode(host));\n            if (boundariesNode.nodeName === 'BODY') {\n                boundariesNode = target.ownerDocument.documentElement;\n            }\n        }\n        else if (boundariesElement === 'window') {\n            boundariesNode = target.ownerDocument.documentElement;\n        }\n        else {\n            boundariesNode = boundariesElement;\n        }\n        const offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);\n        // In case of HTML, we need a different computation\n        if (offsets && boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n            const { height, width } = getWindowSizes(target.ownerDocument);\n            if (isNumber(boundaries.top) && isNumber(offsets.top) && isNumber(offsets.marginTop)) {\n                boundaries.top += offsets.top - offsets.marginTop;\n            }\n            if (isNumber(boundaries.top)) {\n                boundaries.bottom = Number(height) + Number(offsets.top);\n            }\n            if (isNumber(boundaries.left) && isNumber(offsets.left) && isNumber(offsets.marginLeft)) {\n                boundaries.left += offsets.left - offsets.marginLeft;\n            }\n            if (isNumber(boundaries.top)) {\n                boundaries.right = Number(width) + Number(offsets.left);\n            }\n        }\n        else if (offsets) {\n            // for all the other DOM elements, this one is good\n            boundaries = offsets;\n        }\n    }\n    // Add paddings\n    if (isNumber(boundaries.left)) {\n        boundaries.left += padding;\n    }\n    if (isNumber(boundaries.top)) {\n        boundaries.top += padding;\n    }\n    if (isNumber(boundaries.right)) {\n        boundaries.right -= padding;\n    }\n    if (isNumber(boundaries.bottom)) {\n        boundaries.bottom -= padding;\n    }\n    return boundaries;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n */\nfunction getArea({ width, height }) {\n    return width * height;\n}\nfunction computeAutoPlacement(placement, refRect, target, host, allowedPositions = ['top', 'bottom', 'right', 'left'], boundariesElement = 'viewport', padding = 0) {\n    if (placement.indexOf('auto') === -1) {\n        return placement;\n    }\n    const boundaries = getBoundaries(target, host, padding, boundariesElement);\n    const rects = {\n        top: {\n            width: boundaries?.width ?? 0,\n            height: (refRect?.top ?? 0) - (boundaries?.top ?? 0)\n        },\n        right: {\n            width: (boundaries?.right ?? 0) - (refRect?.right ?? 0),\n            height: boundaries?.height ?? 0\n        },\n        bottom: {\n            width: boundaries?.width ?? 0,\n            height: (boundaries?.bottom ?? 0) - (refRect?.bottom ?? 0)\n        },\n        left: {\n            width: (refRect.left ?? 0) - (boundaries?.left ?? 0),\n            height: boundaries?.height ?? 0\n        }\n    };\n    const sortedAreas = Object.keys(rects)\n        .map((key) => ({\n        position: key,\n        ...rects[key],\n        area: getArea(rects[key])\n    }))\n        .sort((a, b) => b.area - a.area);\n    let filteredAreas = sortedAreas.filter(({ width, height }) => {\n        return width >= target.clientWidth && height >= target.clientHeight;\n    });\n    filteredAreas = filteredAreas.filter(({ position }) => {\n        return allowedPositions.some((allowedPosition) => {\n            return allowedPosition === position;\n        });\n    });\n    const computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].position : sortedAreas[0].position;\n    const variation = placement.split(' ')[1];\n    // for tooltip on auto position\n    target.className = target.className.replace(/bs-tooltip-auto/g, `bs-tooltip-${getBsVer().isBs5 ? PlacementForBs5[computedPlacement] : computedPlacement}`);\n    return computedPlacement + (variation ? `-${variation}` : '');\n}\n\nfunction getOffsets(data) {\n    return {\n        width: data.offsets.target.width,\n        height: data.offsets.target.height,\n        left: Math.floor(data.offsets.target.left ?? 0),\n        top: Math.round(data.offsets.target.top ?? 0),\n        bottom: Math.round(data.offsets.target.bottom ?? 0),\n        right: Math.floor(data.offsets.target.right ?? 0)\n    };\n}\n\n/**\n * Get the opposite placement of the given one\n */\nfunction getOppositePlacement(placement) {\n    const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n    return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);\n}\n\n/**\n * Get the opposite placement variation of the given one\n */\nfunction getOppositeVariation(variation) {\n    if (variation === 'right') {\n        return 'left';\n    }\n    else if (variation === 'left') {\n        return 'right';\n    }\n    return variation;\n}\n\nconst parse = (value, def = 0) => value ? parseFloat(value) : def;\nfunction getOuterSizes(element) {\n    const window = element.ownerDocument.defaultView;\n    const styles = window?.getComputedStyle(element);\n    const x = parse(styles?.marginTop) + parse(styles?.marginBottom);\n    const y = parse(styles?.marginLeft) + parse(styles?.marginRight);\n    return {\n        width: Number(element.offsetWidth) + y,\n        height: Number(element.offsetHeight) + x\n    };\n}\n\n/**\n * Get offsets to the reference element\n */\nfunction getReferenceOffsets(target, host, fixedPosition) {\n    const commonOffsetParent = fixedPosition\n        ? getFixedPositionOffsetParent(target)\n        : findCommonOffsetParent(target, host);\n    return getOffsetRectRelativeToArbitraryNode(host, commonOffsetParent, fixedPosition);\n}\n\n/**\n * Get offsets to the target\n */\nfunction getTargetOffsets(target, hostOffsets, position) {\n    const placement = position.split(' ')[0];\n    // Get target node sizes\n    const targetRect = getOuterSizes(target);\n    // Add position, width and height to our offsets object\n    const targetOffsets = {\n        width: targetRect.width,\n        height: targetRect.height\n    };\n    // depending by the target placement we have to compute its offsets slightly differently\n    const isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n    const mainSide = isHoriz ? 'top' : 'left';\n    const secondarySide = isHoriz ? 'left' : 'top';\n    const measurement = isHoriz ? 'height' : 'width';\n    const secondaryMeasurement = !isHoriz ? 'height' : 'width';\n    targetOffsets[mainSide] =\n        (hostOffsets[mainSide] ?? 0) +\n            hostOffsets[measurement] / 2 -\n            targetRect[measurement] / 2;\n    targetOffsets[secondarySide] = placement === secondarySide\n        ? (hostOffsets[secondarySide] ?? 0) - targetRect[secondaryMeasurement]\n        : hostOffsets[getOppositePlacement(secondarySide)] ?? 0;\n    return targetOffsets;\n}\n\nfunction isModifierEnabled(options, modifierName) {\n    return !!options.modifiers[modifierName]?.enabled;\n}\n\nconst availablePositions = {\n    top: ['top', 'top start', 'top end'],\n    bottom: ['bottom', 'bottom start', 'bottom end'],\n    start: ['start', 'start top', 'start bottom'],\n    end: ['end', 'end top', 'end bottom']\n};\nfunction checkPopoverMargin(placement, checkPosition) {\n    if (!getBsVer().isBs5) {\n        return false;\n    }\n    return availablePositions[checkPosition].includes(placement);\n}\nfunction checkMargins(placement) {\n    if (!getBsVer().isBs5) {\n        return '';\n    }\n    if (checkPopoverMargin(placement, 'end')) {\n        return 'ms-2';\n    }\n    if (checkPopoverMargin(placement, 'start')) {\n        return 'me-2';\n    }\n    if (checkPopoverMargin(placement, 'top')) {\n        return 'mb-2';\n    }\n    if (checkPopoverMargin(placement, 'bottom')) {\n        return 'mt-2';\n    }\n    return '';\n}\n\nfunction updateContainerClass(data, renderer) {\n    const target = data.instance.target;\n    let containerClass = target.className;\n    const dataPlacement = getBsVer().isBs5 ? PlacementForBs5[data.placement] : data.placement;\n    if (data.placementAuto) {\n        containerClass = containerClass.replace(/bs-popover-auto/g, `bs-popover-${dataPlacement}`);\n        containerClass = containerClass.replace(/ms-2|me-2|mb-2|mt-2/g, '');\n        containerClass = containerClass.replace(/bs-tooltip-auto/g, `bs-tooltip-${dataPlacement}`);\n        containerClass = containerClass.replace(/\\sauto/g, ` ${dataPlacement}`);\n        if (containerClass.indexOf('popover') !== -1) {\n            containerClass = containerClass + ' ' + checkMargins(dataPlacement);\n        }\n        if (containerClass.indexOf('popover') !== -1 && containerClass.indexOf('popover-auto') === -1) {\n            containerClass += ' popover-auto';\n        }\n        if (containerClass.indexOf('tooltip') !== -1 && containerClass.indexOf('tooltip-auto') === -1) {\n            containerClass += ' tooltip-auto';\n        }\n    }\n    containerClass = containerClass.replace(/left|right|top|bottom|end|start/g, `${dataPlacement.split(' ')[0]}`);\n    if (renderer) {\n        renderer.setAttribute(target, 'class', containerClass);\n        return;\n    }\n    target.className = containerClass;\n}\n\nfunction setStyles(element, styles, renderer) {\n    if (!element || !styles) {\n        return;\n    }\n    Object.keys(styles).forEach((prop) => {\n        let unit = '';\n        // add unit if the value is numeric and is one of the following\n        if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 &&\n            isNumeric(styles[prop])) {\n            unit = 'px';\n        }\n        if (renderer) {\n            renderer.setStyle(element, prop, `${String(styles[prop])}${unit}`);\n            return;\n        }\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        element.style[prop] = String(styles[prop]) + unit;\n    });\n}\n\nfunction arrow(data) {\n    let targetOffsets = data.offsets.target;\n    // if arrowElement is a string, suppose it's a CSS selector\n    const arrowElement = data.instance.target.querySelector('.arrow');\n    // if arrowElement is not found, don't run the modifier\n    if (!arrowElement) {\n        return data;\n    }\n    const isVertical = ['left', 'right'].indexOf(data.placement.split(' ')[0]) !== -1;\n    const len = isVertical ? 'height' : 'width';\n    const sideCapitalized = isVertical ? 'Top' : 'Left';\n    const side = sideCapitalized.toLowerCase();\n    const altSide = isVertical ? 'left' : 'top';\n    const opSide = isVertical ? 'bottom' : 'right';\n    const arrowElementSize = getOuterSizes(arrowElement)[len];\n    const placementVariation = data.placement.split(' ')[1];\n    // top/left side\n    if ((data.offsets.host[opSide] ?? 0) - arrowElementSize < (targetOffsets[side] ?? 0)) {\n        (targetOffsets)[side] -=\n            (targetOffsets[side] ?? 0) - ((data.offsets.host[opSide] ?? 0) - arrowElementSize);\n    }\n    // bottom/right side\n    if (Number((data).offsets.host[side]) + Number(arrowElementSize) > (targetOffsets[opSide] ?? 0)) {\n        (targetOffsets)[side] +=\n            Number((data).offsets.host[side]) + Number(arrowElementSize) - Number((targetOffsets)[opSide]);\n    }\n    targetOffsets = getClientRect(targetOffsets);\n    // Compute the sideValue using the updated target offsets\n    // take target margin in account because we don't have this info available\n    const css = getStyleComputedProperty(data.instance.target);\n    const targetMarginSide = parseFloat(css[`margin${sideCapitalized}`]) || 0;\n    const targetBorderSide = parseFloat(css[`border${sideCapitalized}Width`]) || 0;\n    // compute center of the target\n    let center;\n    if (!placementVariation) {\n        center = Number((data).offsets.host[side]) + Number(data.offsets.host[len] / 2 - arrowElementSize / 2);\n    }\n    else {\n        const targetBorderRadius = parseFloat(css[\"borderRadius\"]) || 0;\n        const targetSideArrowOffset = Number(targetMarginSide + targetBorderSide + targetBorderRadius);\n        center = side === placementVariation ?\n            Number((data).offsets.host[side]) + targetSideArrowOffset :\n            Number((data).offsets.host[side]) + Number(data.offsets.host[len] - targetSideArrowOffset);\n    }\n    let sideValue = center - (targetOffsets[side] ?? 0) - targetMarginSide - targetBorderSide;\n    // prevent arrowElement from being placed not contiguously to its target\n    sideValue = Math.max(Math.min(targetOffsets[len] - (arrowElementSize + 5), sideValue), 0);\n    data.offsets.arrow = {\n        [side]: Math.round(sideValue),\n        [altSide]: '' // make sure to unset any eventual altSide value from the DOM node\n    };\n    data.instance.arrow = arrowElement;\n    return data;\n}\n\nfunction flip(data) {\n    data.offsets.target = getClientRect(data.offsets.target);\n    if (!isModifierEnabled(data.options, 'flip')) {\n        data.offsets.target = {\n            ...data.offsets.target,\n            ...getTargetOffsets(data.instance.target, data.offsets.host, data.placement)\n        };\n        return data;\n    }\n    const boundaries = getBoundaries(data.instance.target, data.instance.host, 0, // padding\n    'viewport', false // positionFixed\n    );\n    let placement = data.placement.split(' ')[0];\n    let variation = data.placement.split(' ')[1] || '';\n    const offsetsHost = data.offsets.host;\n    const target = data.instance.target;\n    const host = data.instance.host;\n    const adaptivePosition = computeAutoPlacement('auto', offsetsHost, target, host, data.options.allowedPositions);\n    const flipOrder = [placement, adaptivePosition];\n    flipOrder.forEach((step, index) => {\n        if (placement !== step || flipOrder.length === index + 1) {\n            return;\n        }\n        placement = data.placement.split(' ')[0];\n        // using floor because the host offsets may contain decimals we are not going to consider here\n        const overlapsRef = (placement === 'left' &&\n            Math.floor(data.offsets.target.right ?? 0) > Math.floor(data.offsets.host.left ?? 0)) ||\n            (placement === 'right' &&\n                Math.floor(data.offsets.target.left ?? 0) < Math.floor(data.offsets.host.right ?? 0)) ||\n            (placement === 'top' &&\n                Math.floor(data.offsets.target.bottom ?? 0) > Math.floor(data.offsets.host.top ?? 0)) ||\n            (placement === 'bottom' &&\n                Math.floor(data.offsets.target.top ?? 0) < Math.floor(data.offsets.host.bottom ?? 0));\n        const overflowsLeft = Math.floor(data.offsets.target.left ?? 0) < Math.floor(boundaries.left ?? 0);\n        const overflowsRight = Math.floor(data.offsets.target.right ?? 0) > Math.floor(boundaries.right ?? 0);\n        const overflowsTop = Math.floor(data.offsets.target.top ?? 0) < Math.floor(boundaries.top ?? 0);\n        const overflowsBottom = Math.floor(data.offsets.target.bottom ?? 0) > Math.floor(boundaries.bottom ?? 0);\n        const overflowsBoundaries = (placement === 'left' && overflowsLeft) ||\n            (placement === 'right' && overflowsRight) ||\n            (placement === 'top' && overflowsTop) ||\n            (placement === 'bottom' && overflowsBottom);\n        // flip the variation if required\n        const isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n        const flippedVariation = ((isVertical && variation === 'left' && overflowsLeft) ||\n            (isVertical && variation === 'right' && overflowsRight) ||\n            (!isVertical && variation === 'left' && overflowsTop) ||\n            (!isVertical && variation === 'right' && overflowsBottom));\n        if (overlapsRef || overflowsBoundaries || flippedVariation) {\n            if (overlapsRef || overflowsBoundaries) {\n                placement = flipOrder[index + 1];\n            }\n            if (flippedVariation) {\n                variation = getOppositeVariation(variation);\n            }\n            data.placement = placement + (variation ? ` ${variation}` : '');\n            data.offsets.target = {\n                ...data.offsets.target,\n                ...getTargetOffsets(data.instance.target, data.offsets.host, data.placement)\n            };\n        }\n    });\n    return data;\n}\n\nfunction initData(targetElement, hostElement, position, options) {\n    if (!targetElement || !hostElement) {\n        return;\n    }\n    const hostElPosition = getReferenceOffsets(targetElement, hostElement);\n    if (!position.match(/^(auto)*\\s*(left|right|top|bottom|start|end)*$/)\n        && !position.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)) {\n        position = 'auto';\n    }\n    const placementAuto = !!position.match(/auto/g);\n    // support old placements 'auto left|right|top|bottom'\n    let placement = position.match(/auto\\s(left|right|top|bottom|start|end)/)\n        ? position.split(' ')[1] || 'auto'\n        : position;\n    // Normalize placements that have identical main placement and variation (\"right right\" => \"right\").\n    const matches = placement.match(/^(left|right|top|bottom|start|end)* ?(?!\\1)(left|right|top|bottom|start|end)?/);\n    if (matches) {\n        placement = matches[1] + (matches[2] ? ` ${matches[2]}` : '');\n    }\n    // \"left right\", \"top bottom\" etc. placements also considered incorrect.\n    if (['left right', 'right left', 'top bottom', 'bottom top'].indexOf(placement) !== -1) {\n        placement = 'auto';\n    }\n    placement = computeAutoPlacement(placement, hostElPosition, targetElement, hostElement, options ? options.allowedPositions : undefined);\n    const targetOffset = getTargetOffsets(targetElement, hostElPosition, placement);\n    return {\n        options: options || { modifiers: {} },\n        instance: {\n            target: targetElement,\n            host: hostElement,\n            arrow: void 0\n        },\n        offsets: {\n            target: targetOffset,\n            host: hostElPosition,\n            arrow: void 0\n        },\n        positionFixed: false,\n        placement,\n        placementAuto\n    };\n}\n\nfunction preventOverflow(data) {\n    if (!isModifierEnabled(data.options, 'preventOverflow')) {\n        return data;\n    }\n    // NOTE: DOM access here\n    // resets the target Offsets's position so that the document size can be calculated excluding\n    // the size of the targetOffsets element itself\n    const transformProp = 'transform';\n    const targetStyles = data.instance.target.style; // assignment to help minification\n    const { top, left, [transformProp]: transform } = targetStyles;\n    targetStyles.top = '';\n    targetStyles.left = '';\n    targetStyles[transformProp] = '';\n    const boundaries = getBoundaries(data.instance.target, data.instance.host, 0, // padding\n    data.options.modifiers.preventOverflow?.boundariesElement || 'scrollParent', false // positionFixed\n    );\n    // NOTE: DOM access here\n    // restores the original style properties after the offsets have been computed\n    targetStyles.top = top;\n    targetStyles.left = left;\n    targetStyles[transformProp] = transform;\n    const order = ['left', 'right', 'top', 'bottom'];\n    const check = {\n        primary(placement) {\n            let value = data.offsets.target[placement];\n            // options.escapeWithReference\n            if ((data.offsets.target[placement] ?? 0) < (boundaries[placement] ?? 0)) {\n                value = Math.max(data.offsets.target[placement] ?? 0, boundaries[placement] ?? 0);\n            }\n            return { [placement]: value };\n        },\n        secondary(placement) {\n            const isPlacementHorizontal = placement === 'right';\n            const mainSide = isPlacementHorizontal ? 'left' : 'top';\n            const measurement = isPlacementHorizontal ? 'width' : 'height';\n            let value = data.offsets.target[mainSide];\n            // escapeWithReference\n            if ((data.offsets.target[placement] ?? 0) > (boundaries[placement] ?? 0)) {\n                value = Math.min(data.offsets.target[mainSide] ?? 0, (boundaries[placement] ?? 0) - data.offsets.target[measurement]);\n            }\n            return { [mainSide]: value };\n        }\n    };\n    order.forEach((placement) => {\n        const side = ['left', 'top', 'start'].indexOf(placement) !== -1 ? check['primary'] : check['secondary'];\n        data.offsets.target = {\n            ...data.offsets.target,\n            ...side(placement)\n        };\n    });\n    return data;\n}\n\nfunction shift(data) {\n    const placement = data.placement;\n    const basePlacement = placement.split(' ')[0];\n    const shiftVariation = placement.split(' ')[1];\n    if (shiftVariation) {\n        const { host, target } = data.offsets;\n        const isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n        const side = isVertical ? 'left' : 'top';\n        const measurement = isVertical ? 'width' : 'height';\n        const shiftOffsets = {\n            start: { [side]: host[side] },\n            end: {\n                [side]: (host[side] ?? 0) + host[measurement] - target[measurement]\n            }\n        };\n        data.offsets.target = {\n            ...target, ...{\n                [side]: (side === shiftVariation ? shiftOffsets.start[side] : shiftOffsets.end[side])\n            }\n        };\n    }\n    return data;\n}\n\nclass Positioning {\n    position(hostElement, targetElement /*, round = true*/) {\n        return this.offset(hostElement, targetElement /*, false*/);\n    }\n    offset(hostElement, targetElement /*, round = true*/) {\n        return getReferenceOffsets(targetElement, hostElement);\n    }\n    positionElements(hostElement, targetElement, position, appendToBody, options) {\n        const chainOfModifiers = [flip, shift, preventOverflow, arrow];\n        const _position = MapPlacementInToRL[position];\n        const data = initData(targetElement, hostElement, _position, options);\n        if (!data) {\n            return;\n        }\n        return chainOfModifiers.reduce((modifiedData, modifier) => modifier(modifiedData), data);\n    }\n}\nconst positionService = new Positioning();\nfunction positionElements(hostElement, targetElement, placement, appendToBody, options, renderer) {\n    const data = positionService.positionElements(hostElement, targetElement, placement, appendToBody, options);\n    if (!data) {\n        return;\n    }\n    const offsets = getOffsets(data);\n    setStyles(targetElement, {\n        'will-change': 'transform',\n        top: '0px',\n        left: '0px',\n        transform: `translate3d(${offsets.left}px, ${offsets.top}px, 0px)`\n    }, renderer);\n    if (data.instance.arrow) {\n        setStyles(data.instance.arrow, data.offsets.arrow, renderer);\n    }\n    updateContainerClass(data, renderer);\n}\n\nclass PositioningService {\n    constructor(ngZone, rendererFactory, platformId) {\n        this.update$$ = new Subject();\n        this.positionElements = new Map();\n        this.isDisabled = false;\n        if (isPlatformBrowser(platformId)) {\n            ngZone.runOutsideAngular(() => {\n                this.triggerEvent$ = merge(fromEvent(window, 'scroll', { passive: true }), fromEvent(window, 'resize', { passive: true }), of(0, animationFrameScheduler), this.update$$);\n                this.triggerEvent$.subscribe(() => {\n                    if (this.isDisabled) {\n                        return;\n                    }\n                    this.positionElements\n                        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n                        .forEach((positionElement) => {\n                        positionElements(_getHtmlElement(positionElement.target), _getHtmlElement(positionElement.element), positionElement.attachment, positionElement.appendToBody, this.options, rendererFactory.createRenderer(null, null));\n                    });\n                });\n            });\n        }\n    }\n    position(options) {\n        this.addPositionElement(options);\n    }\n    get event$() {\n        return this.triggerEvent$;\n    }\n    disable() {\n        this.isDisabled = true;\n    }\n    enable() {\n        this.isDisabled = false;\n    }\n    addPositionElement(options) {\n        this.positionElements.set(_getHtmlElement(options.element), options);\n    }\n    calcPosition() {\n        this.update$$.next(null);\n    }\n    deletePositionElement(elRef) {\n        this.positionElements.delete(_getHtmlElement(elRef));\n    }\n    setOptions(options) {\n        this.options = options;\n    }\n}\nPositioningService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PositioningService, deps: [{ token: i0.NgZone }, { token: i0.RendererFactory2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nPositioningService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PositioningService, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"14.0.6\", ngImport: i0, type: PositioningService, decorators: [{\n            type: Injectable,\n            args: [{ providedIn: 'root' }]\n        }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.RendererFactory2 }, { type: undefined, decorators: [{\n                    type: Inject,\n                    args: [PLATFORM_ID]\n                }] }]; } });\nfunction _getHtmlElement(element) {\n    // it means that we got a selector\n    if (typeof element === 'string') {\n        return document.querySelector(element);\n    }\n    if (element instanceof ElementRef) {\n        return element.nativeElement;\n    }\n    return element ?? null;\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { PlacementForBs5, Positioning, PositioningService, checkMargins, positionElements };\n","import { isDevMode } from '@angular/core';\n\n/**\n * @copyright Valor Software\n * @copyright Angular ng-bootstrap team\n */\nclass Trigger {\n    constructor(open, close) {\n        this.open = open;\n        this.close = close || open;\n    }\n    isManual() {\n        return this.open === 'manual' || this.close === 'manual';\n    }\n}\n\nconst DEFAULT_ALIASES = {\n    hover: ['mouseover', 'mouseout'],\n    focus: ['focusin', 'focusout']\n};\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction parseTriggers(triggers, aliases = DEFAULT_ALIASES) {\n    const trimmedTriggers = (triggers || '').trim();\n    if (trimmedTriggers.length === 0) {\n        return [];\n    }\n    const parsedTriggers = trimmedTriggers\n        .split(/\\s+/)\n        .map((trigger) => trigger.split(':'))\n        .map((triggerPair) => {\n        const alias = aliases[triggerPair[0]] || triggerPair;\n        return new Trigger(alias[0], alias[1]);\n    });\n    const manualTriggers = parsedTriggers.filter((triggerPair) => triggerPair.isManual());\n    if (manualTriggers.length > 1) {\n        throw new Error('Triggers parse error: only one manual trigger is allowed');\n    }\n    if (manualTriggers.length === 1 && parsedTriggers.length > 1) {\n        throw new Error('Triggers parse error: manual trigger can\\'t be mixed with other triggers');\n    }\n    return parsedTriggers;\n}\nfunction listenToTriggers(renderer, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntarget, triggers, showFn, hideFn, toggleFn) {\n    const parsedTriggers = parseTriggers(triggers);\n    const listeners = [];\n    if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n        return Function.prototype;\n    }\n    parsedTriggers.forEach((trigger) => {\n        if (trigger.open === trigger.close) {\n            listeners.push(renderer.listen(target, trigger.open, toggleFn));\n            return;\n        }\n        listeners.push(renderer.listen(target, trigger.open, showFn));\n        if (trigger.close) {\n            listeners.push(renderer.listen(target, trigger.close, hideFn));\n        }\n    });\n    return () => {\n        listeners.forEach((unsubscribeFn) => unsubscribeFn());\n    };\n}\nfunction listenToTriggersV2(renderer, options) {\n    const parsedTriggers = parseTriggers(options.triggers);\n    const target = options.target;\n    // do nothing\n    if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n        return Function.prototype;\n    }\n    // all listeners\n    const listeners = [];\n    // lazy listeners registration\n    const _registerHide = [];\n    const registerHide = () => {\n        // add hide listeners to unregister array\n        _registerHide.forEach((fn) => listeners.push(fn()));\n        // register hide events only once\n        _registerHide.length = 0;\n    };\n    // register open\\close\\toggle listeners\n    parsedTriggers.forEach((trigger) => {\n        const useToggle = trigger.open === trigger.close;\n        const showFn = useToggle ? options.toggle : options.show;\n        if (!useToggle && trigger.close && options.hide) {\n            const _hide = renderer.listen(target, trigger.close, options.hide);\n            _registerHide.push(() => _hide);\n        }\n        if (showFn) {\n            listeners.push(renderer.listen(target, trigger.open, () => showFn(registerHide)));\n        }\n    });\n    return () => {\n        listeners.forEach((unsubscribeFn) => unsubscribeFn());\n    };\n}\nfunction registerOutsideClick(renderer, options) {\n    if (!options.outsideClick) {\n        return Function.prototype;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    return renderer.listen('document', 'click', (event) => {\n        if (options.target && options.target.contains(event.target)) {\n            return;\n        }\n        if (options.targets &&\n            options.targets.some(target => target.contains(event.target))) {\n            return;\n        }\n        if (options.hide) {\n            options.hide();\n        }\n    });\n}\nfunction registerEscClick(renderer, options) {\n    if (!options.outsideEsc) {\n        return Function.prototype;\n    }\n    return renderer.listen('document', 'keyup.esc', (event) => {\n        if (options.target && options.target.contains(event.target)) {\n            return;\n        }\n        if (options.targets &&\n            options.targets.some(target => target.contains(event.target))) {\n            return;\n        }\n        if (options.hide) {\n            options.hide();\n        }\n    });\n}\n\n/**\n * @license\n * Copyright Google Inc. 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.io/license\n */\n/**\n * JS version of browser APIs. This library can only run in the browser.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst win = (typeof window !== 'undefined' && window) || {};\nconst document = win.document;\nconst location = win.location;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst gc = win.gc ? () => win.gc() : () => null;\nconst performance = win.performance ? win.performance : null;\nconst Event = win.Event;\nconst MouseEvent = win.MouseEvent;\nconst KeyboardEvent = win.KeyboardEvent;\nconst EventTarget = win.EventTarget;\nconst History = win.History;\nconst Location = win.Location;\nconst EventListener = win.EventListener;\n\nvar BsVerions;\n(function (BsVerions) {\n    BsVerions[\"isBs3\"] = \"bs3\";\n    BsVerions[\"isBs4\"] = \"bs4\";\n    BsVerions[\"isBs5\"] = \"bs5\";\n})(BsVerions || (BsVerions = {}));\nlet guessedVersion;\nfunction _guessBsVersion() {\n    if (typeof win.document === 'undefined') {\n        return 'bs4';\n    }\n    const spanEl = win.document.createElement('span');\n    spanEl.innerText = 'testing bs version';\n    spanEl.classList.add('d-none');\n    spanEl.classList.add('pl-1');\n    win.document.head.appendChild(spanEl);\n    const rect = spanEl.getBoundingClientRect();\n    const checkPadding = win.getComputedStyle(spanEl).paddingLeft;\n    if (!rect || (rect && rect.top !== 0)) {\n        win.document.head.removeChild(spanEl);\n        return 'bs3';\n    }\n    if (checkPadding && parseFloat(checkPadding)) {\n        win.document.head.removeChild(spanEl);\n        return 'bs4';\n    }\n    win.document.head.removeChild(spanEl);\n    return 'bs5';\n}\nfunction setTheme(theme) {\n    guessedVersion = theme;\n}\n// todo: in ngx-bootstrap, bs4 will became a default one\nfunction isBs3() {\n    if (typeof win === 'undefined') {\n        return true;\n    }\n    if (typeof win.__theme === 'undefined') {\n        if (guessedVersion) {\n            return guessedVersion === 'bs3';\n        }\n        guessedVersion = _guessBsVersion();\n        return guessedVersion === 'bs3';\n    }\n    return win.__theme === 'bs3';\n}\nfunction isBs4() {\n    if (isBs3())\n        return false;\n    if (guessedVersion)\n        return guessedVersion === 'bs4';\n    guessedVersion = _guessBsVersion();\n    return guessedVersion === 'bs4';\n}\nfunction isBs5() {\n    if (isBs3() || isBs4())\n        return false;\n    if (guessedVersion)\n        return guessedVersion === 'bs5';\n    guessedVersion = _guessBsVersion();\n    return guessedVersion === 'bs5';\n}\nfunction getBsVer() {\n    return {\n        isBs3: isBs3(),\n        isBs4: isBs4(),\n        isBs5: isBs5()\n    };\n}\nfunction currentBsVersion() {\n    const bsVer = getBsVer();\n    const resVersion = Object.keys(bsVer).find(key => bsVer[key]);\n    return BsVerions[resVersion];\n}\n\nclass LinkedList {\n    constructor() {\n        this.length = 0;\n        this.asArray = [];\n        // Array methods overriding END\n    }\n    get(position) {\n        if (this.length === 0 || position < 0 || position >= this.length) {\n            return void 0;\n        }\n        let current = this.head;\n        for (let index = 0; index < position; index++) {\n            current = current?.next;\n        }\n        return current?.value;\n    }\n    add(value, position = this.length) {\n        if (position < 0 || position > this.length) {\n            throw new Error('Position is out of the list');\n        }\n        const node = {\n            value,\n            next: undefined,\n            previous: undefined\n        };\n        if (this.length === 0) {\n            this.head = node;\n            this.tail = node;\n            this.current = node;\n        }\n        else {\n            if (position === 0 && this.head) {\n                // first node\n                node.next = this.head;\n                this.head.previous = node;\n                this.head = node;\n            }\n            else if (position === this.length && this.tail) {\n                // last node\n                this.tail.next = node;\n                node.previous = this.tail;\n                this.tail = node;\n            }\n            else {\n                // node in middle\n                const currentPreviousNode = this.getNode(position - 1);\n                const currentNextNode = currentPreviousNode?.next;\n                if (currentPreviousNode && currentNextNode) {\n                    currentPreviousNode.next = node;\n                    currentNextNode.previous = node;\n                    node.previous = currentPreviousNode;\n                    node.next = currentNextNode;\n                }\n            }\n        }\n        this.length++;\n        this.createInternalArrayRepresentation();\n    }\n    remove(position = 0) {\n        if (this.length === 0 || position < 0 || position >= this.length) {\n            throw new Error('Position is out of the list');\n        }\n        if (position === 0 && this.head) {\n            // first node\n            this.head = this.head.next;\n            if (this.head) {\n                // there is no second node\n                this.head.previous = undefined;\n            }\n            else {\n                // there is no second node\n                this.tail = undefined;\n            }\n        }\n        else if (position === this.length - 1 && this.tail?.previous) {\n            // last node\n            this.tail = this.tail.previous;\n            this.tail.next = undefined;\n        }\n        else {\n            // middle node\n            const removedNode = this.getNode(position);\n            if (removedNode?.next && removedNode.previous) {\n                removedNode.next.previous = removedNode.previous;\n                removedNode.previous.next = removedNode.next;\n            }\n        }\n        this.length--;\n        this.createInternalArrayRepresentation();\n    }\n    set(position, value) {\n        if (this.length === 0 || position < 0 || position >= this.length) {\n            throw new Error('Position is out of the list');\n        }\n        const node = this.getNode(position);\n        if (node) {\n            node.value = value;\n            this.createInternalArrayRepresentation();\n        }\n    }\n    toArray() {\n        return this.asArray;\n    }\n    findAll(fn) {\n        let current = this.head;\n        const result = [];\n        if (!current) {\n            return result;\n        }\n        for (let index = 0; index < this.length; index++) {\n            if (!current) {\n                return result;\n            }\n            if (fn(current.value, index)) {\n                result.push({ index, value: current.value });\n            }\n            current = current.next;\n        }\n        return result;\n    }\n    // Array methods overriding start\n    push(...args) {\n        args.forEach((arg) => {\n            this.add(arg);\n        });\n        return this.length;\n    }\n    pop() {\n        if (this.length === 0) {\n            return undefined;\n        }\n        const last = this.tail;\n        this.remove(this.length - 1);\n        return last?.value;\n    }\n    unshift(...args) {\n        args.reverse();\n        args.forEach((arg) => {\n            this.add(arg, 0);\n        });\n        return this.length;\n    }\n    shift() {\n        if (this.length === 0) {\n            return undefined;\n        }\n        const lastItem = this.head?.value;\n        this.remove();\n        return lastItem;\n    }\n    forEach(fn) {\n        let current = this.head;\n        for (let index = 0; index < this.length; index++) {\n            if (!current) {\n                return;\n            }\n            fn(current.value, index);\n            current = current.next;\n        }\n    }\n    indexOf(value) {\n        let current = this.head;\n        let position = -1;\n        for (let index = 0; index < this.length; index++) {\n            if (!current) {\n                return position;\n            }\n            if (current.value === value) {\n                position = index;\n                break;\n            }\n            current = current.next;\n        }\n        return position;\n    }\n    some(fn) {\n        let current = this.head;\n        let result = false;\n        while (current && !result) {\n            if (fn(current.value)) {\n                result = true;\n                break;\n            }\n            current = current.next;\n        }\n        return result;\n    }\n    every(fn) {\n        let current = this.head;\n        let result = true;\n        while (current && result) {\n            if (!fn(current.value)) {\n                result = false;\n            }\n            current = current.next;\n        }\n        return result;\n    }\n    toString() {\n        return '[Linked List]';\n    }\n    find(fn) {\n        let current = this.head;\n        for (let index = 0; index < this.length; index++) {\n            if (!current) {\n                return;\n            }\n            if (fn(current.value, index)) {\n                return current.value;\n            }\n            current = current.next;\n        }\n    }\n    findIndex(fn) {\n        let current = this.head;\n        for (let index = 0; index < this.length; index++) {\n            if (!current) {\n                return -1;\n            }\n            if (fn(current.value, index)) {\n                return index;\n            }\n            current = current.next;\n        }\n        return -1;\n    }\n    getNode(position) {\n        if (this.length === 0 || position < 0 || position >= this.length) {\n            throw new Error('Position is out of the list');\n        }\n        let current = this.head;\n        for (let index = 0; index < position; index++) {\n            current = current?.next;\n        }\n        return current;\n    }\n    createInternalArrayRepresentation() {\n        const outArray = [];\n        let current = this.head;\n        while (current) {\n            outArray.push(current.value);\n            current = current.next;\n        }\n        this.asArray = outArray;\n    }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction OnChange() {\n    const sufix = 'Change';\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    return function OnChangeHandler(target, propertyKey) {\n        const _key = ` __${propertyKey}Value`;\n        Object.defineProperty(target, propertyKey, {\n            // eslint-disable-next-line @typescript-eslint/no-explicit-any\n            get() {\n                return this[_key];\n            },\n            // eslint-disable-next-line @typescript-eslint/no-explicit-any\n            set(value) {\n                const prevValue = this[_key];\n                this[_key] = value;\n                if (prevValue !== value && this[propertyKey + sufix]) {\n                    this[propertyKey + sufix].emit(value);\n                }\n            }\n        });\n    };\n}\n\nclass Utils {\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    static reflow(element) {\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        ((bs) => bs)(element.offsetHeight);\n    }\n    // source: https://github.com/jquery/jquery/blob/master/src/css/var/getStyles.js\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    static getStyles(elem) {\n        // Support: IE <=11 only, Firefox <=30 (#15098, #14150)\n        // IE throws on elements created in popups\n        // FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n        let view = elem.ownerDocument.defaultView;\n        if (!view || !view.opener) {\n            view = win;\n        }\n        return view.getComputedStyle(elem);\n    }\n    static stackOverflowConfig() {\n        const bsVer = currentBsVersion();\n        return {\n            crossorigin: bsVer !== 'bs3' ? \"anonymous\" : undefined,\n            integrity: bsVer === 'bs5' ? 'sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We' : bsVer === 'bs4' ? 'sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2' : undefined,\n            cdnLink: bsVer === 'bs5' ? 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css' : bsVer === 'bs4' ? 'https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css' : 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',\n        };\n    }\n}\n\nconst _messagesHash = {};\nconst _hideMsg = typeof console === 'undefined' || !('warn' in console);\nfunction warnOnce(msg) {\n    if (!isDevMode() || _hideMsg || msg in _messagesHash) {\n        return;\n    }\n    _messagesHash[msg] = true;\n    console.warn(msg);\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BsVerions, LinkedList, OnChange, Trigger, Utils, currentBsVersion, document, getBsVer, isBs3, listenToTriggers, listenToTriggersV2, parseTriggers, registerEscClick, registerOutsideClick, setTheme, warnOnce, win as window };\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n  try {\n    var info = gen[key](arg);\n    var value = info.value;\n  } catch (error) {\n    reject(error);\n    return;\n  }\n\n  if (info.done) {\n    resolve(value);\n  } else {\n    Promise.resolve(value).then(_next, _throw);\n  }\n}\n\nexport default function _asyncToGenerator(fn) {\n  return function () {\n    var self = this,\n        args = arguments;\n    return new Promise(function (resolve, reject) {\n      var gen = fn.apply(self, args);\n\n      function _next(value) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n      }\n\n      function _throw(err) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n      }\n\n      _next(undefined);\n    });\n  };\n}","function _typeof(o) {\n  \"@babel/helpers - typeof\";\n\n  return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n    return typeof o;\n  } : function (o) {\n    return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n  }, _typeof(o);\n}\nexport { _typeof as default };","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n  extendStatics = Object.setPrototypeOf ||\n      ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n      function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n  return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n  if (typeof b !== \"function\" && b !== null)\n      throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n  extendStatics(d, b);\n  function __() { this.constructor = d; }\n  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n  __assign = Object.assign || function __assign(t) {\n      for (var s, i = 1, n = arguments.length; i < n; i++) {\n          s = arguments[i];\n          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n      }\n      return t;\n  }\n  return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n      t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n      for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n          if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n              t[p[i]] = s[p[i]];\n      }\n  return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\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;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n  return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n  function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n  var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n  var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n  var _, done = false;\n  for (var i = decorators.length - 1; i >= 0; i--) {\n      var context = {};\n      for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n      for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n      context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n      var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n      if (kind === \"accessor\") {\n          if (result === void 0) continue;\n          if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n          if (_ = accept(result.get)) descriptor.get = _;\n          if (_ = accept(result.set)) descriptor.set = _;\n          if (_ = accept(result.init)) initializers.unshift(_);\n      }\n      else if (_ = accept(result)) {\n          if (kind === \"field\") initializers.unshift(_);\n          else descriptor[key] = _;\n      }\n  }\n  if (target) Object.defineProperty(target, contextIn.name, descriptor);\n  done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n  var useValue = arguments.length > 2;\n  for (var i = 0; i < initializers.length; i++) {\n      value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n  }\n  return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n  return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n  if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n  return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n  if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n  return new (P || (P = Promise))(function (resolve, reject) {\n      function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n      function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n      function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n      step((generator = generator.apply(thisArg, _arguments || [])).next());\n  });\n}\n\nexport function __generator(thisArg, body) {\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);\n  return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n  function verb(n) { return function (v) { return step([n, v]); }; }\n  function step(op) {\n      if (f) throw new TypeError(\"Generator is already executing.\");\n      while (g && (g = 0, op[0] && (_ = 0)), _) try {\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;\n          if (y = 0, t) op = [op[0] & 2, t.value];\n          switch (op[0]) {\n              case 0: case 1: t = op; break;\n              case 4: _.label++; return { value: op[1], done: false };\n              case 5: _.label++; y = op[1]; op = [0]; continue;\n              case 7: op = _.ops.pop(); _.trys.pop(); continue;\n              default:\n                  if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                  if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                  if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                  if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                  if (t[2]) _.ops.pop();\n                  _.trys.pop(); continue;\n          }\n          op = body.call(thisArg, _);\n      } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n      if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n  }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n  }\n  Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n  for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n  var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n  if (m) return m.call(o);\n  if (o && typeof o.length === \"number\") return {\n      next: function () {\n          if (o && i >= o.length) o = void 0;\n          return { value: o && o[i++], done: !o };\n      }\n  };\n  throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n  var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n  if (!m) return o;\n  var i = m.call(o), r, ar = [], e;\n  try {\n      while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n  }\n  catch (error) { e = { error: error }; }\n  finally {\n      try {\n          if (r && !r.done && (m = i[\"return\"])) m.call(i);\n      }\n      finally { if (e) throw e.error; }\n  }\n  return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n  for (var ar = [], i = 0; i < arguments.length; i++)\n      ar = ar.concat(__read(arguments[i]));\n  return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n  for (var r = Array(s), k = 0, i = 0; i < il; i++)\n      for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n          r[k] = a[j];\n  return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n      if (ar || !(i in from)) {\n          if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n          ar[i] = from[i];\n      }\n  }\n  return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n  return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var g = generator.apply(thisArg, _arguments || []), i, q = [];\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;\n  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\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]); } }\n  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n  function fulfill(value) { resume(\"next\", value); }\n  function reject(value) { resume(\"throw\", value); }\n  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n  var i, p;\n  return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\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; }\n}\n\nexport function __asyncValues(o) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var m = o[Symbol.asyncIterator], i;\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);\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); }); }; }\n  function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n  if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n  return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n  Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n  o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n  ownKeys = Object.getOwnPropertyNames || function (o) {\n    var ar = [];\n    for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n    return ar;\n  };\n  return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n  __setModuleDefault(result, mod);\n  return result;\n}\n\nexport function __importDefault(mod) {\n  return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\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\");\n  return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n  if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\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\");\n  return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n  if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n  return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n  if (value !== null && value !== void 0) {\n    if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n    var dispose, inner;\n    if (async) {\n      if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n      dispose = value[Symbol.asyncDispose];\n    }\n    if (dispose === void 0) {\n      if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n      dispose = value[Symbol.dispose];\n      if (async) inner = dispose;\n    }\n    if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n    if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n    env.stack.push({ value: value, dispose: dispose, async: async });\n  }\n  else if (async) {\n    env.stack.push({ async: true });\n  }\n  return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n  var e = new Error(message);\n  return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n  function fail(e) {\n    env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n    env.hasError = true;\n  }\n  var r, s = 0;\n  function next() {\n    while (r = env.stack.pop()) {\n      try {\n        if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n        if (r.dispose) {\n          var result = r.dispose.call(r.value);\n          if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n        }\n        else s |= 1;\n      }\n      catch (e) {\n        fail(e);\n      }\n    }\n    if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n    if (env.hasError) throw env.error;\n  }\n  return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n  if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n      return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n          return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n      });\n  }\n  return path;\n}\n\nexport default {\n  __extends,\n  __assign,\n  __rest,\n  __decorate,\n  __param,\n  __esDecorate,\n  __runInitializers,\n  __propKey,\n  __setFunctionName,\n  __metadata,\n  __awaiter,\n  __generator,\n  __createBinding,\n  __exportStar,\n  __values,\n  __read,\n  __spread,\n  __spreadArrays,\n  __spreadArray,\n  __await,\n  __asyncGenerator,\n  __asyncDelegator,\n  __asyncValues,\n  __makeTemplateObject,\n  __importStar,\n  __importDefault,\n  __classPrivateFieldGet,\n  __classPrivateFieldSet,\n  __classPrivateFieldIn,\n  __addDisposableResource,\n  __disposeResources,\n  __rewriteRelativeImportExtension,\n};\n"],"x_google_ignoreList":[3,4,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396]}